blob_id
stringlengths
40
40
language
stringclasses
1 value
repo_name
stringlengths
5
116
path
stringlengths
2
241
src_encoding
stringclasses
31 values
length_bytes
int64
14
3.6M
score
float64
2.52
5.13
int_score
int64
3
5
detected_licenses
listlengths
0
41
license_type
stringclasses
2 values
text
stringlengths
14
3.57M
download_success
bool
1 class
5611f2e060ba2c07e69fe5a62b807446f1e67b5b
PHP
bruno-rodrigues/bankfiles
/tests/Parsers/Bpay/Batch/TransactionTest.php
UTF-8
835
2.546875
3
[ "BSD-3-Clause" ]
permissive
<?php declare(strict_types=1); namespace Tests\EoneoPay\BankFiles\Parsers\Bpay\Batch; use EoneoPay\BankFiles\Parsers\Bpay\Batch\Results\Transaction; use Tests\EoneoPay\BankFiles\Parsers\TestCase; class TransactionTest extends TestCase { /** * Should return transaction amount as a decimal * * @grou...
true
cd67e01e426e1f782c2530dc4849c5fe7cdd1d81
PHP
RedTiger81/StormGames
/Core/src/StormGames/Form/economy/EconomyShopModalForm.php
UTF-8
1,493
2.609375
3
[]
no_license
<?php /** * Copyright (C) StormGames, Inc - All Rights Reserved * Unauthorized copying of this file, via any medium is strictly prohibited * Proprietary and confidential * Written by Eren Ahmet Akyol <ahmederen123@gmail.com>, July 2019 */ declare(strict_types=1); namespace StormGames\Form\economy; use pocket...
true
80221f308de912858c2304463a5b9c64982e7ba0
PHP
imakashsahu/Web-Based-Email-Manager-using-PHP
/IMAP - Sample/mail_2_db.php
UTF-8
1,572
2.546875
3
[]
no_license
<?php // Make Changes to the DB name $conn = new PDO("mysql:host=localhost;dbname=email2", "root", ""); $hostname = "{imap.gmail.com:993/imap/ssl}INBOX"; $username = "your-email-address@gmail.com"; $password = "your-password"; $inbox = imap_open($hostname,$username,$password) or die('Cannot connect to Gmail: ' . imap_...
true
a77b5f2c141b2c7e4edccb77b8e9dd58c2e3d6b0
PHP
HermanGonzalez/Isurvived
/hermanthingy/src/Exception/ValidationException.php
UTF-8
641
2.953125
3
[]
no_license
<?php namespace ISurvived\Demo\Exception; class ValidationException extends \Exception { /** * @var string[] */ private $messages; /** * ValidationException constructor. * * @param string[] $messages * @param int $code * @param \Exception $previous */ public f...
true
b5566f34d9ba2f8551707eb11f9e872599a8e13a
PHP
ko1z-se-2015/books
/funcionality/fun_reg.php
UTF-8
1,155
2.578125
3
[]
no_license
<?php $email = filter_var(trim($_POST['email']), FILTER_SANITIZE_STRING); $name = filter_var(trim($_POST['nickname']), FILTER_SANITIZE_STRING); $pass = filter_var(trim($_POST['pass']), FILTER_SANITIZE_STRING); if (mb_strlen($name) < 5 || mb_strlen($name) > 90) { echo "Недопустимая длина никнейма"; ...
true
99cb732a036c7c099d1b9991c013cb157af624a5
PHP
bgrande/retrap
/src/Analytic/Extract/QuestionExtractor.php
UTF-8
3,776
2.984375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); require_once __DIR__ . '/Extractable.php'; final class QuestionExtractor implements Extractable { private const NAME = 'Question'; private $useIdFallback; public function __construct(bool $useIdFallback = false) { $this->useIdFallback = $useIdFallback; } ...
true
2909fef8ec93d2e243e131fe51025fe95e268de1
PHP
spsjvc/testing-laravel-workshop
/src/app/Services/TemperatureService.php
UTF-8
998
3.3125
3
[ "MIT" ]
permissive
<?php namespace App\Services; use App\Services\ThirdParty\WeatherService; class TemperatureService { private $weatherService; public function __construct(WeatherService $weatherService) { $this->weatherService = $weatherService; } public function getTemperature() { return $t...
true
9677a246d20e2c1c90b7a4f21fa4d09d47f74a67
PHP
Tingbang/Burger-House
/Burgerhouse/edit_order.php
UTF-8
1,581
2.671875
3
[]
no_license
<?php ob_start(); session_start(); include 'header.php'; include 'Classes/admin.php'; //Checks if an admin is logged in //if they arent they are redirected back to index.php if(!isset($_SESSION['admin'])){ header ('Location: index.php'); } //Creates an object of the Admin Class $admin_obj = new Admin(); //Calls the...
true
3e582cd93e8eeb46182a11649d191baad4876944
PHP
WScore/AskQuestions
/src/Element/Select.php
UTF-8
547
2.90625
3
[ "MIT" ]
permissive
<?php namespace WScore\Ask\Element; use WScore\Ask\Interfaces\ElementInterface; class Select extends AbstractElement { /** * TextArea constructor. * @param string $name * @param string $label * @param array $options */ public function __construct($name, $label, $options = []) { ...
true
443b1a88fbc2fa5cee12fa4d29b66388031ba3c6
PHP
Zt-freak/casserai
/src/Entity/Reservation.php
UTF-8
2,609
2.734375
3
[]
no_license
<?php namespace App\Entity; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Validator\Constraints as Assert; /** * @ORM\Entity(repositoryClass="App\Repository\ReservationRepository") */ class Reservation { /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column(type="integer") */ ...
true
1990ee2f5593c06fb3470b529248adea34fca41e
PHP
ReCodEx/api
/app/helpers/FileStorage/IImmutableFile.php
UTF-8
2,500
3.15625
3
[ "BSD-3-Clause", "GPL-2.0-only", "MIT", "Apache-2.0" ]
permissive
<?php namespace App\Helpers\FileStorage; use ZipArchive; /** * Abstraction that represents one immutable (read-only) file. */ interface IImmutableFile { public const DIGEST_ALGORITHM_SHA1 = 'sha1'; /** * Get bare file name. * @return string */ public function getName(): string; /**...
true
9388623a5155e9e0180a2299fcf2fbc6bf65c326
PHP
robotil/legos2
/lib/model/ViewModel/mission_page.php
UTF-8
3,600
2.65625
3
[]
no_license
<?php class MissionPageViewModel { public $DcmTotalTime; public $PcmTotalTime; public $PcmTimes = array (); public $PushbackTimes = array (); public $TotalMissionTime; public $LeftPcmFuel; public $RightPcmFuel; public $LeftDcmFuel; public $RightDcmFuel; public $LeftPushbackFuel; public $RightPushbackFuel; p...
true
3b10e88f8b731d6784f1a3e32967e985f361160c
PHP
wcamiller/civDatabase
/php/populateUnits.php
UTF-8
821
2.578125
3
[]
no_license
<?php //Turn on error reporting error_reporting(E_ALL); ini_set('display_errors', 'On'); //Connects to the database $mysqli = new mysqli("oniddb.cws.oregonstate.edu", "[username]", "[password]", "[db]"); if ($mysqli->connect_errno) { print "Connection error " . $mysqli->connect_errno . " " . $mysqli->connect_error...
true
e1dabfe3c00be56d9228311de5a6ed1622ff99b2
PHP
InnovaTech-BD/dafb
/app/Rules/SlugChecker.php
UTF-8
1,081
2.921875
3
[ "MIT" ]
permissive
<?php namespace App\Rules; use Illuminate\Support\Str; use Illuminate\Contracts\Validation\Rule; class SlugChecker implements Rule { /** * Create a new rule instance. * * @return void */ public function __construct($model,$obj=null) { $this->slugModel=$model; $this->obj...
true
ff2658b7704be0dccc7bd23dd6f3bb87f7e4693a
PHP
kashirin/kscms
/backend/models/banner/BannerRecord.php
UTF-8
4,528
2.59375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace backend\models\banner; use Yii; use backend\traits\AdminFormTrait; /** * This is the model class for table "banner". * * @property integer $id * @property integer $parent_id * @property integer $created_at * @property integer $updated_at * @property integer $sort * @property string $resource ...
true
95c602b7949fcdf51516e1f292c1880eb2fb0fed
PHP
danielvmc/fake-link
/asido/class.driver.imagick_shell.php
UTF-8
11,792
2.734375
3
[]
no_license
<?php /** * @author Kaloyan K. Tsvetkov <kaloyan@kaloyan.info> * @license http://opensource.org/licenses/lgpl-license.php GNU Lesser General Public License Version 2.1 * @package Asido * @subpackage Asido.Driver.Imagick_Shell * @version $Id: class.driver.imagick_shell.php 7 2007-04-09 21:09:09Z mrasnika $ */ /////////...
true
54795cb0749542fc37b1cb72eb67f4d2f40ce35c
PHP
rafael-ogsantos/virtual-store
/app/Controllers/Site/RegisterController.php
UTF-8
1,851
2.65625
3
[]
no_license
<?php namespace App\Controllers\Site; use App\Classes\ErrorsValidate; use App\Classes\Filters; use App\Classes\FlashMessages; use App\Classes\Validate; use App\Controllers\BaseController; use App\Models\Site\User; class RegisterController extends BaseController { private $errorValidate; private $validate; priv...
true
199adcd3ae492d507b844288d4e76e190a566d22
PHP
lydian/acl_controller
/libraries/user/user.php
UTF-8
767
2.75
3
[]
no_license
<? abstract class User{ var $account; var $roles=array(); function __construct($account=""){ // Call the Model constructor // $this->load->helper('url'); $this->account = $account; $CI = & get_instance(); if($this->account!=""){ $CI->session->set_userdat...
true
c244b9db7f6e6f97e0363428d372afc5b911c971
PHP
bu-ist/wordpress-tests
/lib/functions.php
UTF-8
2,990
2.6875
3
[]
no_license
<?php /** * Activate plugins. * * @param array $plugins Plugins to activate. **/ function wp_test_install_plugins($plugins, $network_wide = false) { foreach($plugins as $plugin) { $valid = activate_plugin($plugin, '', $network_wide); if(is_wp_error($valid)) { echo "Plugin $plugin could not be activated " ....
true
5231ee8d228602f911b30717f65d6eb2b1371dfb
PHP
fmaksim/yii2-sample-project
/backend/models/Post.php
UTF-8
1,359
2.734375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace backend\models; use Yii; /** * This is the model class for table "post". * * @property int $id * @property string $description * @property string $filename * @property int $user_id * @property int $created_at * @property int $complaints */ class Post extends \yii\db\ActiveRecord { prote...
true
0b62b0bc58834981f4ea54cef98e1f64759c28a8
PHP
Barleyfield/PHP_and_MySQL_Practice
/function/12.php
UTF-8
246
3.296875
3
[ "Apache-2.0" ]
permissive
<?php $test = 1; function get_arguments($arg) { global $test; # global은 왠만하면 안 쓰는 게 좋다고 한다. # 출처 : https://opentutorials.org/course/62/5124 echo $test.'<br />'; echo $arg; } get_arguments(1); ?>
true
ee34257741ef05bdf3098f67fa7f24906c4da6dd
PHP
jpvincent/WPT-server
/jpeginfo/cleanup.php
UTF-8
778
2.75
3
[ "BSD-3-Clause" ]
permissive
<?php ignore_user_abort(true); chdir('..'); set_time_limit(36000); // Recursively walk the jpeginfo results directory and // delete anything that was last accessed more than a day ago ScanDirectory('./results/jpeginfo', false); function ScanDirectory($dir, $delete) { if (is_dir($dir)) { $files = scandir($dir)...
true
5eac7d1547955d0ee117a3aea56634251b917508
PHP
Cevenquan/bee-skeleton
/src/Middleware/CORS.php
UTF-8
1,000
2.671875
3
[]
no_license
<?php namespace Star\Middleware; use Phalcon\Events\Event; use Star\Util\Micro; /** * 跨域处理中间件 * * @package Star\Middleware */ class CORS { /** * 处理跨域header信息 * * @param Event $event * @param Micro $micro * @return bool */ public function beforeHandleRoute(Event $event, Micro ...
true
628c1f6f42904b52d3505e3c5e12ad24a2aabcaa
PHP
MuZiLee/dd-php
/application/common/model/EventsStaff.php
UTF-8
1,241
2.53125
3
[ "Apache-2.0" ]
permissive
<?php namespace app\common\model; use think\Model; /** * 员工服务 * Class EventsStaff * @package app\common\model */ class EventsStaff extends Model { public $autoWriteTimestamp = true; protected $type = [ "images" => "array", ]; public function more() { $this->etype; $this-...
true
4df18ba4c913a1b41dc3cfc535998095e643e122
PHP
manhcuong8899/auctiondemo
/app/VNPCMS/Currency/CurrencyApplicationService.php
UTF-8
1,083
2.6875
3
[ "MIT" ]
permissive
<?php namespace VNPCMS\Currency; use Illuminate\Support\Facades\App; use VNPCMS\Currency\Currency; use VNPCMS\Currency\Repository\CurrencyRepositoryInterface; class CurrencyApplicationService { /** * Create new Articles * * @return array * * @return Articles **/ public function...
true
bb2532494f5f7d5b0f8a8544a0e5c871199e2e66
PHP
sinkdb/homestead
/class/StudentAssignmentHistory.php
UTF-8
2,949
3.21875
3
[]
no_license
<?php /** * StudentAssignmentHistory.php * * @author Adam D. Dixon */ PHPWS_Core::initModClass('hms', 'AssignmentHistory.php'); PHPWS_Core::initModClass('hms', 'Term.php'); class StudentAssignmentHistory extends ArrayObject{ private $bannerId; private $assignmentHistory; // http://weierophinney.net...
true
ea5047ec9faaa6336bc44921fe2c1d7424f5697d
PHP
b2pweb/bdf-prime-analyzer
/src/Query/NotDeclaredAttributesAnalyzer.php
UTF-8
1,534
2.5625
3
[ "MIT" ]
permissive
<?php namespace Bdf\Prime\Analyzer\Query; use Bdf\Prime\Analyzer\AnalysisTypes; use Bdf\Prime\Analyzer\Repository\RepositoryQueryErrorAnalyzerInterface; use Bdf\Prime\Analyzer\Repository\Util\RepositoryUtil; use Bdf\Prime\Query\CompilableClause; use Bdf\Prime\Repository\RepositoryInterface; /** * Analyze use of not...
true
ea4707f203368f0a3599251b2a9bff7155704d2e
PHP
nik-nurul/humanastro
/public_html/calibration.php
UTF-8
5,308
2.546875
3
[]
no_license
<?php session_start(); // used to pass userId from page to page ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); ?> <!DOCTYPE html> <html lang="en"> <head> <title>Webcam Calibration</title> <?php require_once 'includes/head-base.html'; ?> </head> <body> <?ph...
true
6e79a89e8390a1ddfe424cd0ca38c85cd7e96d6f
PHP
wrh910201/hkwcd.com.bak
/App/Group/Manage/Action/PingbaiduAction.class.php
UTF-8
1,599
2.515625
3
[]
no_license
<?php class PingbaiduAction extends CommonContentAction { public function index(){ $this->type = '生成sitemap'; $this->display(); } // 用法 PHP自动PING百度代码 让新网页收录更快 // PingBaidu('网站名称','网站首页网址','新页面的网址','RSS订阅网址'); // 例如:PingBaidu('火端网络','http://www.huoduan.com','http://www.huoduan.com/pingbaidu.ht...
true
496c5594342f5104bbe1fea67b4152513db44ca2
PHP
symfonyx/KnpTimeBundle
/Templating/Helper/TimeHelper.php
UTF-8
3,073
3.015625
3
[ "MIT" ]
permissive
<?php namespace Knp\Bundle\TimeBundle\Templating\Helper; use Symfony\Component\Templating\Helper\Helper; use Knp\Bundle\TimeBundle\DateTimeFormatter; use DateTime; use DateTimeInterface; class TimeHelper extends Helper { protected $formatter; public function __construct(DateTimeFormatter $formatter) { ...
true
e22251b496b24326c9a175d5c4f9ebf111ec4f6c
PHP
shoebaamir7/demoProject
/tests/Services/MultiplicationTest.php
UTF-8
856
2.703125
3
[]
no_license
<?php declare(strict_types=1); /** * Created by PhpStorm. * User: AAMIR * Date: 11/11/2018 * Time: 1:48 PM */ namespace App\Tests\Services; use App\Services\Multiplication; use Symfony\Bundle\FrameworkBundle\Tests\TestCase; /** * Class MultiplicationTest * @package App\Tests\Services */ class MultiplicationT...
true
046880aa9139e35d4012252fd9fd3c08e4ce7e59
PHP
furaoing/edusoho
/src/Biz/CloudPlatform/Client/FailoverCloudAPI.php
UTF-8
6,963
2.6875
3
[]
no_license
<?php namespace Biz\CloudPlatform\Client; class FailoverCloudAPI extends AbstractCloudAPI { const FAILOVER_COUNT = 3; protected $servers = array(); protected $serverConfigPath = null; protected $apiType = null; protected $rootApiUrl = null; public function __construct(array $options) ...
true
c6702911c032077cc2a8c98b159927adba662a8c
PHP
kevinliposl/ProyectoGestion
/data/CareerData.php
UTF-8
4,736
2.796875
3
[]
no_license
<?php class CareerData { private $db; function __construct() { include_once 'SPDO.php'; $this->db = SPDO::singleton(); } function insert(Career $career) { $queryLastId = $this->db->prepare("SELECT MAX(careerid) AS careerid FROM tbcareer"); $queryLastId->execute(); ...
true
90c880ae4f7bf32effca1c83b67f900aa83f4494
PHP
betterphp/asterisk-manager
/app/Models/Call.php
UTF-8
477
2.625
3
[]
no_license
<?php declare(strict_types=1); namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; class Call extends AppModel { use HasFactory; /** * Specify that the model doesn't have created_at and updated_at fields * * @var bool */ public $timestamps = false; /** ...
true
e125e65529da7ef39da0731ec7089cc16607e0d7
PHP
ricco24/crm-users-module
/src/seeders/SegmentsSeeder.php
UTF-8
1,661
2.5625
3
[ "MIT" ]
permissive
<?php namespace Crm\UsersModule\Seeders; use Crm\ApplicationModule\Seeders\ISeeder; use Crm\SegmentModule\Repository\SegmentGroupsRepository; use Crm\SegmentModule\Repository\SegmentsRepository; use Symfony\Component\Console\Output\OutputInterface; class SegmentsSeeder implements ISeeder { private $segmentGroups...
true
d98d8fb90f2c15ed9bb25ddf968631c95435ead6
PHP
hsegnitz/soarce-application
/src/library/Soarce/Config/Service.php
UTF-8
1,466
3.109375
3
[ "MIT" ]
permissive
<?php namespace Soarce\Config; class Service { /** @var string */ private $name; /** @var string */ private $url; /** @var string */ private $parameterName; /** @var string */ private $commonPath; /** @var string */ private $presharedSecret; /** * Service construc...
true
ebc9c9d54dda477f6d5bb18fdb2f1eb49286535b
PHP
baagee/php-router
/src/Base/RouterInterface.php
UTF-8
423
2.65625
3
[ "MIT" ]
permissive
<?php /** * Desc: 路由接口 * User: baagee * Date: 2019/3/27 * Time: 下午10:54 */ namespace BaAGee\Router\Base; interface RouterInterface { public static function add($methods, string $path, $callback, $other = []); public static function dispatch(string $pathInfo, string $requestMethod); public static fu...
true
dd52948dbb4cee551610bf23e91cb32f08ab630d
PHP
CathPhoenix/phpWebsite
/templates/newProductForm.php
UTF-8
1,186
2.6875
3
[]
no_license
<?php $pageTitle = "New Product Form"; require_once __DIR__ . '/../templates/_header.php'; if(isset($_SESSION['role']) && $_SESSION['role']==2): ?> <h1>Create a new product</h1> <form action="index.php?action=createNewProduct" method="POST"> <p> <label class="formLabel">Product Name:</...
true
ebc48f58fe23f75087e16bc3d1ab2eba0929b6e9
PHP
alunix/hospital
/api/application/models/M_Billing.php
UTF-8
2,226
2.5625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /* Author : Cecep Rokani */ class M_Billing extends CI_Model { #variable private (poperpti) private $table= 'tagihan_mahasiswa'; private $pk = 'ID'; function __construct() { parent:: __construct(); } function get_data($MhswID, $limit = null, $offset = null){ $where = array(); ...
true
9a64bf68853623ee64c43f2801ed1a6e8513c01c
PHP
jinyphp/pages
/src/Http/Parsedown.php
UTF-8
5,686
2.78125
3
[ "MIT" ]
permissive
<?php /** * Modified Parsedown */ namespace Jiny\Pages\Http; use \Jiny\Pages\Http\Parsedown\Text; use \Jiny\Pages\Http\Parsedown\Block; use \Jiny\Pages\Http\Parsedown\Handler; use \Jiny\Pages\Http\Parsedown\Trans; use \Jiny\Polyglot\Message; use \Jiny\Html\CTag; class Parsedown { use Text; use Handler...
true
fba102bae2b37640b61a48f6ba4e13a314a31a24
PHP
jeroenherczeg/csgodb
/app/database/seeds/MatchesTableSeeder.php
UTF-8
2,169
2.75
3
[ "MIT" ]
permissive
<?php use Cdb\Match\Match; use Cdb\Team\Team; class MatchesTableSeeder extends Seeder { protected $matches; public function run() { Match::truncate(); // ESL Cologne 2014: NiP vs fnatic $this->addMatch(2, 5, 2, 1, 1, 3); // ESL Cologne 2014: NiP vs LDLC $this->ad...
true
bab95bcf35a10facd9650c87eae223320306a4f8
PHP
sparrko/tpc-api
/getGroups.php
UTF-8
851
2.6875
3
[]
no_license
<?php // Vars $url = 'http://www.tpcol.ru/asu/timetablestud.php?f=1'; // Include include 'system/s_getDom.php'; // Class class Group { public $name; public $value; } // Init $doc = s_getDom($url); $xpath = new DOMXpath($doc); // ...
true
a877738422ff3ef713fb4e985b702a69687de761
PHP
abdullahalamodi/Document-Management-System
/database/migrations/2020_10_14_162737_create_inner_departments_table.php
UTF-8
836
2.53125
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateInnerDepartmentsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('inner_...
true
bccb0d703a8b5262a826922719690849809aebf5
PHP
Kestutis-K/website
/valdymas/includes/item.php
UTF-8
790
2.84375
3
[]
no_license
<?php Class Item extends Main_class { protected static $db_table = "items"; protected static $db_table_fields = array('id', 'title', 'description'); public $id; public $title; public $description; public function delete_item() { global $database; $sql = "DELETE FROM " .stati...
true
ecf3707001af91a8ec1289ba7ea4f5a8722e8315
PHP
efdalustaoglu/secure-coding
/app/db.php
UTF-8
14,816
3.03125
3
[ "MIT" ]
permissive
<?php if(!defined('BANK_APP')) { die('Direct access not permitted'); } require_once "config.sample.php"; // standard return object for functions that need to // validate parameters and then return a value. // The value property is whatever the function will // ordinarily return, and should always be set. // The msg...
true
48182a03e89776b4347975bf7cf935fd86475996
PHP
KevinCP2064/tubes_pw2
/dao/BookDaoImpl.php
UTF-8
3,147
3.0625
3
[]
no_license
<?php class BookDaoImpl { public static function fetchBookData() { $link = PDOUtil::createConnection(); $query = "SELECT books.ISBN,books.cover, books.title,books.author,books.publisher,books.publish_year,categories.category FROM books LEFT JOIN categories ON books.category_id = categories.id...
true
8ad7547928d5f17f9a004ea12c935be936b55b75
PHP
webignition/php-basil-compilable-source-factory
/tests/Unit/CallFactory/ElementIdentifierCallFactoryTest.php
UTF-8
9,413
2.578125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace webignition\BasilCompilableSourceFactory\Tests\Unit\CallFactory; use webignition\BasilCompilableSourceFactory\CallFactory\ElementIdentifierCallFactory; use webignition\BasilCompilableSourceFactory\ElementIdentifierSerializer; use webignition\BasilCompilableSourceFactory\Model...
true
0a9079d122a691cbfbc235a39084b1e62fa25970
PHP
Mohammad-404/mailandexcel
/emails/app/Console/Commands/notify.php
UTF-8
1,339
2.734375
3
[ "MIT" ]
permissive
<?php namespace App\Console\Commands; use Illuminate\Console\Command; use App\User; use Illuminate\Support\Facades\Mail; use App\Mail\NotifyEmail; use Carbon\Carbon; class notify extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature...
true
40f7111dbfdd330a87ebae3d3ee20dab789587b6
PHP
AgustinaGuerendiain/BrainDamage2
/api/APIComentarioController.php
UTF-8
2,085
2.859375
3
[]
no_license
<?php require_once "./app/Model/ComentarioModel.php"; require_once "./app/Controller/UsuarioController.php"; require_once "APIController.php"; class APIComentarioController extends APIController{ protected $controllerUsuario; //CONSTRUCTOR function __construct(){ parent::__construct(); ...
true
74c3601feeb1c6450fafa6a5d8b2bc8c57aca019
PHP
ferleonardo/platform
/app/models/Menu.php
UTF-8
495
2.921875
3
[ "MIT" ]
permissive
<?php class Menu extends Eloquent { /** * The fillable array lets laravel know which fields are fillable * * @var array */ protected $fillable = ['title', 'url']; /** * The rules array lets us know how to to validate this model * * @var array */ public $rules = [ 'title' => 'required', ]; /*...
true
031a8dd09156d280b2b5e6296d4d9f37f5f0808c
PHP
FelipeIzquierdo/histoweb
/app/Http/Requests/Patient/CreateRequest.php
UTF-8
965
2.71875
3
[ "MIT" ]
permissive
<?php namespace Histoweb\Http\Requests\Patient; use Histoweb\Http\Requests\Request; class CreateRequest extends Request { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** * Get the validation rules that apply to the r...
true
aa0794e70425bacc22e5d27199a543da654d99e1
PHP
davidjguru/OpenInvoice2000
/index.php
UTF-8
5,994
2.90625
3
[]
no_license
<?php /** * Entry point to OpenInvoice2000 as main file * * @author David Rodríguez <davidjguru@gmail.com> * @version 0.7 */ // In this first block we're going to set initial charges // as the class-procesing tool (the autoloader), // the language to set or the first database connection // Autoloader require...
true
2c0ab48c4874f74a26b2118dcb39055fb6c41aaa
PHP
Edakos/cargamasiva-app
/protected/models/ResponsableForm.php
UTF-8
2,713
2.625
3
[]
no_license
<?php /** * LoginForm class. * LoginForm is the data structure for keeping * user login form data. It is used by the 'login' action of 'SiteController'. */ class ResponsableForm extends MyFormModel { public $cargo_elaborado_por; public $aprobado_por; public $cargo_aprobado_por; public $rector; pub...
true
63d9388b4c184b9902526d68cd894608fe186710
PHP
edvelezg/biomecanica
/Biomecanica/tipo_zap.php
UTF-8
4,981
2.5625
3
[]
no_license
<?php require("db.php"); require("functions.php"); require("header.php"); ?> <?php if ( isset($_GET['edit']) && isset($_GET['id'])): #accion editar $id = $_GET['id']; $sql = "select nro_cita, zap_tipo, zap_desc, zap_alt, zap_punta from citas where nro_cita='$id';"; $result = mysql_query($sql)...
true
8f720fa0c8ccbb8bfb2e2b380278647b56e27a94
PHP
emirvader/flowerpowerproject
/create_klant.php
UTF-8
1,945
2.5625
3
[]
no_license
<?php include_once 'database2.php'; if (isset($_POST['create'])) { $user_id = $_POST['user_id']; $username = $_POST['username']; $email = $_POST['email']; $password = $_POST['password']; $pdoQuery = "INSERT INTO klanten VALUES (:id, :username, :email, :password);"; $pdoquery_run = $conn->prepare($...
true
b61670e98753baef9bb144550452c6aaa1027be3
PHP
972581428/databases
/databases/Databases.php
UTF-8
11,373
2.53125
3
[ "Apache-2.0" ]
permissive
<?php /** * 数据库控类库 * @author [我就叫小柯] <[972581428@qq.com]> * @copyright Copyright (c) 2020 [环企优站科技] (https://www.h7uz.com) * @version v1.0 */ namespace databases; use think\Db; class Databases{ private $db = ''; private $datadir = '';//数据库备份地址 private $startrow = 0; private $startfrom = ...
true
ce4135bba6612d0bf611cdf0a2fe0b8c1b3d1329
PHP
naykel76/2703WAP
/week2/classes/PostSeeder.php
UTF-8
1,519
2.71875
3
[]
no_license
<?php /* Class Description: Initial user message data objects (sample data). - Each $post is a new instance (object) of 'Post' - Each $post object is pushed to the the last position of the $posts array. - PostSeeder::seed(); is a static method to generate sample posts. */ namespace wp; us...
true
aacda506112f230d21d2f7e330e35f9880d16463
PHP
algmzestrd/traveller-hub
/Experiement/Alberto's Experiement/search_in_test.php
UTF-8
883
2.578125
3
[]
no_license
<?php session_start(); $server = "mysql.cs.iastate.edu:3306"; $serverUser = "u30914"; $serverPassword = "AfzMyGF4c7"; $serverDatabase = "db30914"; $connection = msqli_connect($server, $serverUser, $serverPassword, $serverDatabase) or die("Could not connect."); $output=""; if(isset($_POST['search'])){ $search=$_POS...
true
c71ee4d9c72aaafed9320890da5f0d5e327cbdd9
PHP
espend/idea-php-symfony-plugin
/tests/fr/adrienbrault/idea/symfony2plugin/tests/templating/fixtures/TwigTemplateGoToLocalDeclarationHandlerTest.php
UTF-8
427
2.6875
3
[ "MIT" ]
permissive
<?php namespace { function foo_test() {} interface Twig_ExtensionInterface { public function getFunctions(); } class Twig_SimpleFunction { } } namespace Twig { class Extensions implements \Twig_ExtensionInterface { public function getFunctions() { ...
true
66e679b218f746c876f8b6f0fd939e40b1018463
PHP
buzzingpixel/executive-ee
/src/executive/services/MigrationsService.php
UTF-8
4,175
2.8125
3
[ "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0" ]
permissive
<?php declare(strict_types=1); namespace buzzingpixel\executive\services; use buzzingpixel\executive\factories\QueryBuilderFactory; use EllisLab\ExpressionEngine\Library\Filesystem\Filesystem; use EllisLab\ExpressionEngine\Library\Filesystem\FilesystemException; use const DIRECTORY_SEPARATOR; use function ksort; use...
true
d51fdd68b1d028c101d09fb119fc50834fbe2ffc
PHP
flamelin/worklog
/app/Notifications/LogCreated.php
UTF-8
1,190
2.6875
3
[]
no_license
<?php namespace App\Notifications; use App\Log; use Illuminate\Bus\Queueable; use Illuminate\Notifications\Messages\SlackMessage; use Illuminate\Notifications\Notification; class LogCreated extends Notification { use Queueable; protected $log = null; /** * Create a new notification instance. *...
true
7ba43e2022d728d9bd932fb6a6e7b34e6510dfc8
PHP
YassineZak/symfonyReact
/src/Entity/Carousel.php
UTF-8
2,178
2.59375
3
[]
no_license
<?php namespace App\Entity; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\HttpFoundation\File\File; use Vich\UploaderBundle\Mapping\Annotation as Vich; /** * @ORM\Entity(repositoryClass="App\Repository\CarouselRepository") * @Vich\Uploadable */ class Carousel { /** * @ORM\Id() * @ORM\Genera...
true
739476fee40e13635583198ebab562408670dcec
PHP
matthiasnoback/decoupling-from-infrastructure-workshop
/src/MeetupOrganizing/Infrastructure/AbstractDevelopmentServiceContainer.php
UTF-8
2,795
2.578125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace MeetupOrganizing\Infrastructure; use Common\EventDispatcher\EventDispatcher; use MeetupOrganizing\Application\Clock; use MeetupOrganizing\Infrastructure\Framework\TemplateRenderer; use MeetupOrganizing\Infrastructure\Web\Controllers; use MeetupOrganizing\Infrastructure\Web\Web...
true
5ecaa968703b4cfe81a3ad45adf589b12113d0f0
PHP
shacoqian/qq-custom
/qq/custom/protected/models/Tongji.php
UTF-8
1,566
2.53125
3
[]
no_license
<?php /** *users 数据模型 */ class Tongji extends ActiveRecord { public static function model($className = __CLASS__) { return parent::model($className); } /** * 表名 */ public function tableName() { return 'tongji'; } public function r...
true
327ab17cd3c4a00c3239d2be3f604844cea838c5
PHP
busangviajes/Proyecto
/db/repositorios/RepositorioEmpresa.inc.php
UTF-8
1,606
3
3
[]
no_license
<?php include_once 'db/tablas/Empresa.inc.php'; class RepositorioEmpresa { public static function insertarEmpresa($conexion, $empresa) { $empresaInsertada = false; if (isset($conexion)) { try { $sql = "INSERT INTO empresa (nombre, email) VALUES (:nombre, :email)"; ...
true
5a756a99160e3fe86b965f70a441738694555d91
PHP
kalamuna/hotdog
/lib.php
UTF-8
2,065
3.234375
3
[]
no_license
<?php use Google\Cloud\Vision\V1\ImageAnnotatorClient; /** * Process the given filepath to check if it's a hotdog. */ function processFile($filepath) { $output = []; // Retrieve the image information. $data = file_get_contents($filepath); $output['base64'] = base64_encode($data); $output['type'] = pathinfo($f...
true
a78a12fa0f15869959456c52a1f0c1eace6ed44e
PHP
santosh-potu/php_kus_mvc
/Http/Controllers/SampleController.php
UTF-8
2,346
2.671875
3
[]
no_license
<?php namespace Http\Controllers; class SampleController extends BaseController { protected function __construct() { parent::__construct(); $this->loadModel("Kus",['tableName' => 'users']); //optional table name } public function getRecordsAction($args = null) { $records = $this->...
true
98836f4046380072d75b3cf96a7355918e712a8c
PHP
DanDHirst/Login-Form
/public/process_login.php
UTF-8
4,152
2.96875
3
[]
no_license
<?php //login section //check session has been start else start session if(!isset($_SESSION)){ session_start(); } //google captcha code snippet $captcha; if(isset($_POST['g-recaptcha-response'])){ $captcha=$_POST['g-recaptcha-response']; } //if captacha doesnt equal anything break from the pr...
true
1e11658a1be105d715e2775dd55c7eef2d990cb0
PHP
narrowspark/framework
/src/Viserio/Component/HttpFactory/Tests/UploadedFileFactoryTest.php
UTF-8
2,708
2.546875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); /** * This file is part of Narrowspark Framework. * * (c) Daniel Bannert <d.bannert@anolilab.de> * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace Viserio\Component\HttpFactory\Tests; use PHPUnit\Framewo...
true
c52e05734b8e105ebee6e8d13cf09dec8eab35d5
PHP
HaagenDriftzs/Second-Year-Computer-Science
/Web Development 2 GitHub/AssignmentMain/login.php
UTF-8
2,104
2.59375
3
[ "MIT" ]
permissive
<!DOCTYPE html> <!-- Assignmet 08/11/2017 TK --> <html> <head> <title>Thomas Killeen</title> <meta charset="UTF-8"> <meta name="keywords" content="login, data, form"> <meta name="description" content="A page that allows the user to login to the site"> <meta name="author" content="Thomas K...
true
c0597337591b39b259a7ac2b8a1b4ab840643ebf
PHP
PFTMesquita/Boletim_Coronavirus
/form_action.php
UTF-8
4,502
2.59375
3
[]
no_license
<?php session_start(); require './Formulario.php'; require './Alert.php'; $postArray = filter_input_array(INPUT_POST, FILTER_SANITIZE_STRIPPED); $address = [ 'weslleyadesousa@gmail.com', ]; if($postArray) { if($postArray['nome'] == "" ) { header("location:index.php?erroNome=...
true
bce320d2c1d08c3e0624835826aa9998b4da5af5
PHP
jrmatson/wffa
/AM/AMHeadcounts_display_2.php
UTF-8
2,520
2.953125
3
[]
no_license
<?php require_once 'creds.php'; // Connect to DB and execute query //$db = mysqli_connect($db_hostname, $db_username, $db_password, $db_database) or die ('Error connecting to MySQL server.'); ?> <html> <head></head> <body> <h1>Annual Meeting Headcount Totals</h1> <table border="0" cellspacing="2" cellpadding="2"> ...
true
c21564dc2abeb038381bc1ad7291de4af81b5d77
PHP
charliemurphy07/riot_api
/function.php
UTF-8
1,338
2.625
3
[]
no_license
<?php include 'api_key.php'; include 'region.php'; //get summoner name from form $summoner_name = $_POST['summonername']; //converts summoner name into summoner ID //get api packet for summoner ID $summoner_id_url = "https://na.api.pvp.net/api/lol/$region/v1.4/summoner/by-name/$summoner_name?api_key=$api_k...
true
036d8107758def5612c3c1c81606a102d0b6b776
PHP
zhuzheng217/test
/php1.php
UTF-8
837
3.125
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> </head> <body> <?php echo date('Y-m-d H:i:s'); //输出php时间Y 大写,小写输出不全,H大写小写输出的不是24小时 ?> <?php echo "<br/>"; // 声明变量 // $num1=1; $num1=2; //变量赋值修改 $num2=2; $reslut=$num1+$num2; echo $reslut; //删除变量 unset($reslut); //...
true
5c0cbadb83d01c0024b52647bd0b8f05f9a2695a
PHP
shansen5/CommonMeals
/mapping/MemberAttendeeMapper.php
UTF-8
1,234
2.984375
3
[]
no_license
<?php /** * Mapper for {@link MemberAttendee} * @see MemberAttendeeValidator */ final class MemberAttendeeMapper { private function __construct() { } /** * Maps array to the given {@link MemberAttendee}. * <p> * Expected properties are: * <ul> * <li>id</li> * <li>per...
true
32f63f2f0a6607af373e44ca6241359c98e3b26e
PHP
dwBruijn/TRVL
/Server/api/models/InquiryStatus.php
UTF-8
1,321
3.390625
3
[]
no_license
<?php class InquiryStatus { // db conn and table name private $conn; private $table_name = "inquiry_status"; public $id; public $status; // constructor public function __construct($db) { $this->conn = $db; } // returns status_id on success and 0 if not found and -1 on failure ...
true
7f4ad1c6f7a7487f47856a8e03991dde5a77cb2a
PHP
77Roman44/frl-PHP-1
/Homework2/discriminant.php
UTF-8
140
3.765625
4
[]
no_license
<?php function discriminant($a, $b, $c) { return $b**2-4*$a*$c; } assert(4== discriminant(1, 4, 3)); assert(0== discriminant(1, 2, 1));
true
7c46e4283e800a497871687b65a81847e3c87883
PHP
totango/totango-commandline-utlis
/accountsRecentActivity.php
UTF-8
4,103
2.8125
3
[]
no_license
<?php include "lib/helpers.php"; include "lib/totangoAPI.php"; /************************************************************************************************/ /* Sample PHP code for using the Totango Data API. */ /* Please see: http://www.totango.com/developer/data-api/examples/ for more docs & ex...
true
809e1ad1cd0f975397173608d41644616a7370bd
PHP
uchchwas1/PHP
/setAndGetMethodAndInheritance.php
UTF-8
3,047
3.984375
4
[]
no_license
<?php class Fruit{ private $name; private $price; private static $numberOfObj; const message = 'I am in constructor'; public function __construct($name, $price){ $this->name = $name; $this->price = $price; self::$numberOfObj++; echo '<br>'.self::message; } p...
true
d9ff503206aa14e9782470dabc7425d81a86edb9
PHP
billywl/shop2
/core/Action.class.php
UTF-8
806
2.9375
3
[]
no_license
<?php //模块控制器的父类 class Action{ //增加一个视图类的属性 protected $view; //增加构造方法 public function __construct(){ $this->view=new View(); } //跳转方法:一个是成功,一个是失败 protected function success($url,$msg,$time=1){ //加载跳转页面 //分配数据 $this->view->assign('url',$url); $this->view->assign('msg',$msg); $thi...
true
9616a6eb5832514384c8c102f95f4dc9b1c119a7
PHP
tanthammar/tall-forms
/src/Components/Svg.php
UTF-8
529
2.734375
3
[ "MIT" ]
permissive
<?php namespace Tanthammar\TallForms\Components; use Illuminate\View\View; use Illuminate\View\Component; class Svg extends Component { public string $path; public ?string $class; public function __construct(string $path, ?string $class = null) { $this->path = $path; $this->class = ...
true
7b35f9ef8bba535843c565abea39e535ad7e8472
PHP
fer-develop/Noticias
/login.php
UTF-8
2,187
2.625
3
[]
no_license
<?php include_once('header.php'); session_start(); if(isset($_POST['enviar'])){ $usuario = $_POST['user']; $password = $_POST['password']; $email = $_POST['email']; //Estableciendo la conexión con la BD $conexion = mysqli_connect('localhost','root',''); if(!$conexion){ die("Error conectando con el ser...
true
5cbf25d6e816521e1b79ad03fbac727838b3bb9c
PHP
pocky/user
/spec/User/Infrastructure/CQRS/Command/DeactiveUserCommandSpec.php
UTF-8
541
2.515625
3
[ "MIT" ]
permissive
<?php namespace spec\Black\User\Infrastructure\CQRS\Command; use Black\User\Domain\Entity\User; use PhpSpec\ObjectBehavior; class DeactiveUserCommandSpec extends ObjectBehavior { function it_is_initializable() { $this->shouldHaveType('Black\User\Infrastructure\CQRS\Command\DeactiveUserCommand'); ...
true
f2722bd8b0b164fdcf1018e2db6fc2cc8757e57b
PHP
krillzip/playground
/php/blogger/framework/helpers/NAutoloader.php
UTF-8
2,798
2.8125
3
[]
no_license
<?php /* * To change this template, choose Tools | Templates * and open the template in the editor. */ /** * Description of NAutoloader * * @author krillzip */ class NAutoloader { protected static $classes; public static function autoload($class) { if (class_exists($class) || interface_exists...
true
595a0e7620415826f2defc78200b595e9396b219
PHP
vdbf/propel-finite-behavior
/src/Factory/LaravelContainerFactory.php
UTF-8
987
2.515625
3
[ "MIT" ]
permissive
<?php namespace Vdbf\Propel\Behaviors\Finite\Factory; use Finite\Factory\AbstractFactory; use Finite\Factory\FactoryInterface; use Illuminate\Contracts\Container\Container; /** * Class ContainerFactory * * State machine factory for the laravel dependency injection container * * @author Eelke van den B...
true
17524b7a612cb25ad8b816fbbc3d89c86eac279a
PHP
Cheddam/silverstripe-cloudflare
/src/Purge/Purge.php
UTF-8
16,072
2.703125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace SteadLane\Cloudflare; use SilverStripe\Core\Extensible; use SilverStripe\Core\Injector\Injectable; use SilverStripe\Control\Director; use SilverStripe\CMS\Model\SiteTree; use SilverStripe\ORM\DataObject; use SteadLane\Cloudflare\Messages\Notifications; /** * Class Purge * @package SteadLane\Cloudfl...
true
4433688abe9c5dd8502f1f52b0edf82a2c55e7f5
PHP
adamsky4111/OffersApplicationBackend
/src/Repository/Current/CategoryRepository/CurrentCategoryRepository.php
UTF-8
815
2.53125
3
[]
no_license
<?php namespace App\Repository\Current\CategoryRepository; use App\Entity\Category; use App\Repository\Current\AbstractRepository; use App\Repository\Doctrine\CategoryRepository; use Doctrine\ORM\EntityManagerInterface; /** * @property CategoryRepository $repository */ final class CurrentCategoryRepository extends...
true
2ccd1b8fb90d0ee578187a27f6d3b572173a19d3
PHP
kevinvdwebdeveloper/CMS
/cms/modules/dashboard/admin/controllers/DashboardController.php
UTF-8
2,981
2.5625
3
[]
no_license
<?php class DashboardController extends Controller { function runBeforeAction(){ if($_SESSION['is_admin'] ?? false == true){ return true; } $action = $_GET['action'] ?? $_POST['action'] ?? 'default'; if($action != 'login'){ header('Location: /admin/index.php?module=dashboar...
true
da9dbd0d29dde11177dae97384ec6b7ba436cf46
PHP
WalkerKharkov/PHP-UITS-homeworks
/homework 1/hw1.php
UTF-8
2,181
3.15625
3
[]
no_license
<form method="post"> <p> <label>1. Enter number for increase for 30% and 120% then : </label> <input type="text" name="number1" pattern="^[ 0-9]+$" required/> </p> <p> <label>2. Enter number for replacing middle char to zero : </label> <input type="text" name="number2" patter...
true
7fa278dc20cc461e744c0b7da4292cddb0818985
PHP
HeRedBo/laravel_vue_itf
/database/migrations/2018_03_02_164604_create_admin_venue_student_sign_table.php
UTF-8
1,557
2.53125
3
[ "MIT" ]
permissive
<?php use Jialeo\LaravelSchemaExtend\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateAdminVenueStudentSignTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('ad...
true
afe38ff1a05435347819a8a9b97e6b703824541a
PHP
cunhafrederico/giovane-php
/efeito-magnetico/efeito_magnetico.php
UTF-8
406
2.703125
3
[]
no_license
#!/usr/bin/php5 <?php $start = microtime(true); require_once 'src/EfeitoMagnetico.php'; $em = new EfeitoMagnetico($argv[1], $argv[2], $argv[3]); $ponto = $em->calculaPonto(); printf('O mouse deverá começar a desenhar no ponto (%d,%d).', $ponto['x'], $ponto['y']); echo PHP_EOL; $time_elapsed_secs = microtime(true...
true
138f74949a28b3dc78eb21fde326539a8f121fcb
PHP
bill80362/WebAdmin
/lib/class/SendMail.php
UTF-8
3,947
2.71875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: user * Date: 2020/5/5 * Time: 下午 12:09 */ class SendMail { protected $GmailUsername; protected $GmailPassword; protected $SendFromMail; protected $SendFromName; public function __construct(){ //SMTP $this->GmailUsername = GMAIL_USERNAM...
true
360300a430d89b6eaaee541d62e70c81b17a6ee5
PHP
oscarsalomon89/RestAdmin
/app/models/User.php
UTF-8
1,439
2.703125
3
[ "MIT" ]
permissive
<?php use Illuminate\Auth\UserInterface; use Illuminate\Auth\Reminders\RemindableInterface; class User extends Eloquent implements UserInterface{ public function orders(){ return $this->hasMany('Order'); } public static $rules = array( 'firstname' => 'required|min:2', 'username' => 'required|min:2...
true
ec838bb86a46ae8aa4aa1d85ea51a9ec94e96917
PHP
Anudeep07/Product-Display
/php/showQueue.php
UTF-8
1,057
2.578125
3
[]
no_license
<?php include 'getDBConnection.php'; $conn = openConnection(); $createdDate = $_GET['createdDate']; $stmt = $conn->prepare('SELECT * FROM products WHERE CreatedAt > ? ORDER BY CreatedAt'); ?> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=...
true
618eb590f3ae147cfd3493c5dddc153bdaa218ed
PHP
juanfv2/base-cms
/src/Entities/Models/Misc/XUserVerified.php
UTF-8
902
2.671875
3
[ "MIT" ]
permissive
<?php namespace App\Models\Misc; use Illuminate\Database\Eloquent\Model; /** * Class UserVerified * * @version February 7, 2019, 12:50 am UTC * * @property \Illuminate\Database\Eloquent\Collection authRolesHasPermissions * @property \Illuminate\Database\Eloquent\Collection authUsersHasRoles * @property int us...
true
1915c3f854071d6728982f340766be52adcb03f3
PHP
jchuo93/ACIT2910
/prototypefinal_1/shoppingcart.php
UTF-8
803
2.53125
3
[ "MIT" ]
permissive
<?php require_once('Utils.php'); require_once('ShoppingCartManager.php'); require_once('Parameters.php'); $data = array("status" => "not set!"); if(Utils::isPOST()) { $scm = new ShoppingCartManager(); $parameters = new Parameters("POST"); $action = $parameters->getValue('action'); ...
true
f56996ab9d11c9a28d80fc8faa6dbb14e0bf333a
PHP
raink1208/Athletic
/src/rain1208/athletic/tasks/AthleticTask.php
UTF-8
732
3.046875
3
[ "MIT" ]
permissive
<?php namespace rain1208\athletic\tasks; use pocketmine\scheduler\Task; use rain1208\athletic\game\Athletic; use rain1208\athletic\game\AthleticPlayer; class AthleticTask extends Task { /** @var AthleticPlayer[] */ private array $players = []; public function addPlayer(string $name, Athletic $athletic...
true
ae7493055f5b45db1d788608a058c4fdebe65023
PHP
Scouts-Sint-Joris/SIJOT-1.x
/application/controllers/Backend.php
UTF-8
3,674
2.578125
3
[ "MIT" ]
permissive
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); session_start(); //we need to call PHP's session object to access it through CI class backend extends MY_Controller { // Constructor public $Session = array(); public $Permissions = array(); public function __construct() ...
true
46d068761ebc7e652b1ad6354ecd1aa3de2e93c4
PHP
ibit98/ID_Card_Generator
/img.php
UTF-8
959
2.5625
3
[ "Apache-2.0" ]
permissive
<?php // File and new size $filename = 'images/background1.jpg'; $percent = 1.5; // Content type header('Content-Type: image/jpeg'); // Get new sizes list($width, $height) = getimagesize($filename); $newwidth = $width * 1.05; $newheight = $height * 1.5; //$black = imagecolorallocate($im, 0, 0, 0); // L...
true
b8a5b1748abaad6f7473a9f2b06e94a7a89ec8a7
PHP
jarmanbatth/bcc
/src/employees.php
UTF-8
2,037
2.515625
3
[]
no_license
<?php require 'include.php'; include 'header.php'; include 'EmployeeClass.php'; include 'UserClass.php'; include 'TemplateClass.php'; ?> <center><br><br> <?php $Employee = new EmployeeClass(); $employeeRows = $Employee->listingEmployees(); $User = new UserClass; $Template = new TemplateClass(); ...
true