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
b195ee990c027c8a38998212358654e3a0c9cc8a
PHP
EquipoIngWeb/TiendaEnLinea
/app/Banner.php
UTF-8
702
2.671875
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Banner extends Model { protected $fillable = [ 'id', 'image','description' ]; public function setImageAttribute($image='') { if (filter_var($image, FILTER_VALIDATE_URL) || is_string($image)) { $this->attributes['image'] = $image; retu...
true
b0c36888033627dbdaf7eb659e2dba2fb9d69e4f
PHP
vinh28193/old-job
/models/manage/JobPic.php
UTF-8
3,687
2.671875
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models\manage; use app\modules\manage\models\Manager; use Yii; /** * Class JobPic * @package app\models * * @property MediaUpLoad[] $clientPics * @property MediaUpLoad[] $ownerPics */ class JobPic extends MediaUpload { /** @var static[] */ private $_ownerPics; /** @var static[]...
true
584cd84269123265952852e748fb9cfcb989cae0
PHP
carbontwelve/bloggy
/app/Bloggy/Repositories/Classification/TaxonRelationship/Eloquent/TaxonRelationship.php
UTF-8
4,390
2.90625
3
[ "MIT" ]
permissive
<?php namespace Bloggy\Repositories\Classification\TaxonRelationship\Eloquent; /** * -------------------------------------------------------------------------- * TaxonRelationship Eloquent Model * -------------------------------------------------------------------------- * * @extends \Illuminate\Database\Eloquent\Mode...
true
6501004ec8936a7339faa4feb9133ec6f30d58b4
PHP
vlad1987/backend.homework
/02-16-PHP-Arrays Loops Tasks/arrays_loops_tasks/p08.php
UTF-8
297
3.90625
4
[]
no_license
<?php $arr = [1, 2, 3, 4, 5, 6, 7, 8, 9]; $string = ''; foreach ($arr as $value) { $string .= $value; } var_dump($string); // <p>8. Дан массив с элементами 1, 2, 3, 4, 5, 6, 7, 8, 9. // С помощью цикла foreach создайте строку '123456789'. ?>
true
8b47881a261af5b38f8194fa245f1e89471d95f7
PHP
utsavdj/CMS-PHP
/admin/includes/admin_functions.php
UTF-8
2,201
2.71875
3
[]
no_license
<?php function confirmQuery($result){ global $connection; if (!$result){ die("Query Failed: " . mysqli_error($connection)); } } function currentDate(){ global $connection; $query = "SELECT NOW()"; $date_query = mysqli_query($connection, $query); ...
true
0c2e2e7c093ab1682249000e633a139063f84286
PHP
alexandra-fedotova/zf3-sample-app
/module/Axmit/Util/src/Hydrator/Strategy/BasicCollectionHydratorStrategy.php
UTF-8
1,046
2.53125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: jackxavier * Date: 07.09.17 * Time: 16:57 */ namespace Axmit\Util\Hydrator\Strategy; use Zend\Stdlib\Guard\ArrayOrTraversableGuardTrait; /** * Class BasicCollectionHydratorStrategy * * @package Axmit\Util\Hydrator\Strategy */ class BasicCollectionHydratorStrategy ex...
true
a2472b652bd460cbad78b7600b5d9ae30504925a
PHP
thomasedward/commerce__project
/admin/comments.php
UTF-8
6,332
2.546875
3
[]
no_license
<?php ob_start(); $pagetitle = 'Comments'; session_start(); if(isset($_SESSION['Username'])) { include 'init.php'; $do = isset($_GET['do']) ? $_GET['do'] : 'manage' ; if($do == 'manage') { //very good //for using join $stmt = $connect->prepare("SELECT comments.*,items.Name AS ite...
true
dac656c0109a5932e1cbc22a059a51038d35b9db
PHP
peter279k/parser-utils
/tests/BasicLexerTest.php
UTF-8
4,743
2.640625
3
[ "MIT" ]
permissive
<?php /* * This file is part of the Yosymfony\ParserUtils package. * * (c) YoSymfony <http://github.com/yosymfony> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Yosymfony\ParserUtils\Test; use PHPUnit\Framework\TestCa...
true
39f4ca8acc86baa563ae4dceb7a450b8693dd5a7
PHP
Woffee/MRCDOC_API
/app/Http/Controllers/FileController.php
UTF-8
8,285
2.515625
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Http\Services\FileService; use App\Http\Services\WriterService; use App\Http\Models\Writers; class FileController extends Controller { /** * 文件详情 * * @param $fileid * @param Request $request * @return \Illuminate\...
true
cfc82e86d640dd13353a47a528462a4cfa7804cb
PHP
abhikhapre/Message-Board
/MessageAPI.php
UTF-8
4,841
2.5625
3
[]
no_license
<?php $host_Name = "localhost"; $database_Name = "MessageDB"; $database_User = "root"; $database_Password = "abhi2756"; $conn = new mysqli($host_Name, $database_User, $database_Password, $database_Name); if ($conn->connect_error) { die("Connection faile...
true
64162c16e73a53b6863b01237e217171d800a588
PHP
mixas/pm_diplom
/module/Project/src/Form/TechnicalAssignmentForm.php
WINDOWS-1251
1,826
2.6875
3
[]
no_license
<?php namespace Project\Form; use Zend\Form\Form; use Zend\InputFilter\InputFilter; /** * / * * Class TechnicalAssignmentForm * @package Project\Form */ class TechnicalAssignmentForm extends Form { /** * Scenario ('create' or 'update'). * @var string */ private $scenario; /** ...
true
1104bf63019651865ab9688f28d30026fc550991
PHP
nervetattoo/aether-orm
/tests/integrate.php
UTF-8
1,577
2.6875
3
[]
no_license
<?php require_once('PHPUnit/Framework.php'); $basePath = preg_replace('/aether-orm\/tests([\/a-z]*)/', 'aether-orm/', dirname(__FILE__)); require_once($basePath . "AetherORM.php"); /** * Test entire orm * * Created: 2009-04-12 * @author Raymond Julin * @package aether-orm.test */ class TestAetherORMIntegrates...
true
9c5285cd2fbd75b1e9948fc618e7d5e6567c8109
PHP
yii2mod/yii2-editable
/EditableAction.php
UTF-8
3,374
2.765625
3
[ "MIT" ]
permissive
<?php namespace yii2mod\editable; use Yii; use yii\base\Action; use yii\base\InvalidConfigException; use yii\base\Model; use yii\web\BadRequestHttpException; /** * Class EditableAction * * @package yii2mod\editable */ class EditableAction extends Action { /** * @var string the class name to handle ...
true
276c7da32f2b64303e6a5d6cae64ac62ea0277b1
PHP
sangheonhan/modernphpstudygroup
/bookwormkr/chap02/05_closures/try.php
UTF-8
380
2.890625
3
[]
no_license
<?php function transaction(callable $func) { echo "Autocommit off\n"; if ($func() == true) { echo "Commit\n"; } else { echo "Rollback\n"; } echo "Autocommit on\n"; } transaction(function () { if (rand(1, 2) == 1) { echo "No error\n"; return true; } else { ...
true
0e05c68682c3add8799fe4b98e637f79e5c06a71
PHP
FrancoSagnella/ProgLab3
/prog_3/clase01/Guia/ejercicio7.php
UTF-8
547
3.5
4
[]
no_license
<?php //$fecha = date("l j"); $fecha = date("d/m/Y h:i:s A"); $mes = date("n"); echo $fecha . "<br>"; switch($mes){ case 1: case 2: case 3: echo " Es verano"; break; case 4: case 5: case 6: echo " Es otoño"; ...
true
42cbacbbadc334c680d99773247667d78fc13b41
PHP
valkyrjaio/valkyrja
/src/Valkyrja/Manager/Factories/Factory.php
UTF-8
902
2.53125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); /* * This file is part of the Valkyrja Framework package. * * (c) Melech Mizrachi <melechmizrachi@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Valkyrja\Manager\Factories; u...
true
232835bcade4ed32fa830abd3b3ae271eab89e80
PHP
preslyp/ITtalents
/HomeWork_4/Task_1/task_1.php
UTF-8
620
3.40625
3
[]
no_license
<?php $numberArr = array( array(48,72,13,14,15), array(21,22,53,24,75), array(31,57,33,34,35), array(41,95,43,44,45), array(59,52,53,54,55), array(59,52,53,54,55) ); $minValue = 10000; $maxValue = -10000; for ($row=0; $row < count($numberArr) ; $row++) { for ($col=0; $col < count($numberArr[$row]) ; $col...
true
6392ea62b825581cd2f2ee8189f55105fdc5e10d
PHP
dwuomo/eventbus
/src/EBus/EventLauncher.php
UTF-8
2,085
2.796875
3
[]
no_license
<?php namespace Dwuomo\events\EBus; use Dwuomo\events\container\EventContainer; use Dwuomo\events\exceptions\NotFoundException; use Dwuomo\events\listener\Listener; use Psr\Container\ContainerInterface; /** * Class EventLauncher * @package Dwuomo\events\EBus */ class EventLauncher { /** @var EventContainer *...
true
fb7f71e5ef206cf771537de9b181b88ec7f288df
PHP
Jose-Antonio1999/SISTEMA-COMUNICADO-PHP-ANGULAR
/Backend/RegistroAlumnado.php
UTF-8
2,838
2.59375
3
[]
no_license
<?php //permisos header("Access-Control-Allow-Origin: http://localhost:4200"); header("Access-Control-Allow-Methods: PUT"); header("Access-Control-Allow-Headers: *"); require('conexion.php'); // Get obtenemos los datos $data = file_get_contents("php://input"); if(isset($data)){ //decodificamos al formato JSON ...
true
9542556e2241627b1561204f07a657f4a6f872fc
PHP
suvasishm/ci-bootstrap
/application/views/admin_page.php
UTF-8
450
2.625
3
[ "MIT" ]
permissive
<?php if (isset($this->session->userdata['logged_in'])) { $email = ($this->session->userdata['logged_in']['email']); } ?> <div class="container"> <div class="row"> <?php echo "Hello <b id='welcome'><i>" . $email . "</i> !</b>"; echo "<br/>"; echo "<br/>"; echo "Welcome to Admin Page"; echo "<br/>"; echo...
true
f6a1f28a9bd9cd541ff99d571f38aabd9b58aef9
PHP
dudugou/job-support
/laravel/app/Queries/ScheduleQuery.php
UTF-8
905
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Queries; use App\Contracts\Queries\ScheduleQueryInterface; use App\Models\Schedule; use App\Queries\Abstracts\EloquentQuery; use Carbon\Carbon; class ScheduleQuery extends EloquentQuery implements ScheduleQueryInterface { public function __construct(Schedule $model) { $this->setBuilder($m...
true
824e2ab61cabab1865f45963d751f147e1d72475
PHP
igrekeichvi/timetable
/vendor/Fire/Helpers/File/IO.php
UTF-8
3,730
3.0625
3
[]
no_license
<?php /** * This file contains IO file class. * @package Library * @subpackage Helpers */ /** Loads object. */ require_once(FIRE_LIBRARY_PATH . 'Object.php'); /** Loads object. */ require_once(FIRE_LIBRARY_PATH . 'Error.php'); /** Loads file. */ require_once(sprintf('%1$s%2$sHelpers%2$sFile.php', FIRE_LIBR...
true
074df0ef455ad61998933b6fb1a7b1ab13c57de1
PHP
cronario/cronario
/src/Logger/Journal.php
UTF-8
1,926
2.984375
3
[ "MIT" ]
permissive
<?php namespace Cronario\Logger; class Journal implements \Psr\Log\LoggerInterface { use \Psr\Log\LoggerTrait; protected $journalFolder; protected $journalRecord; /** * @param string $folder * @param array $record */ public function __construct($folder = __DIR__, array $record = ...
true
580d6a061a071b512a2b8786ce86acfbb3bdc83b
PHP
opensansara/rest-api-test-task
/src/Model/Order/UseCase/Pay/PayOrderCommand.php
UTF-8
649
3.09375
3
[]
no_license
<?php namespace App\Model\Order\UseCase\Pay; class PayOrderCommand { /** * @var int */ private $orderId; /** * @var int */ private $price; /** * PayOrderCommand constructor. * @param int $orderId * @param int $price */ public function __construct(int $o...
true
f337c1dd037f326c79b56185493c2215cce7e01e
PHP
jinhanjiang/doba-plugins
/adapter/FtpAdapter.php
UTF-8
7,626
3.03125
3
[ "MIT" ]
permissive
<?php class FtpAdapter extends IAdapter { private $conn = null; private $configs = array(); private $host = '127.0.0.1'; private $port = 21; private $user = 'root'; private $pass = ''; /* 传入参数格式 array( 'default'=>array('host'=>'127.0.0.1', 'port'=>'21', 'user'...
true
47a42203a8c33e8974ba1b725c34ced60bbc2869
PHP
chajr/bluetree20
/BLUE_FRAMEWORK/packages/CORE/display_class.php
UTF-8
32,308
2.765625
3
[ "WTFPL" ]
permissive
<?php /** * display class * processing templates, replacing markers, loops, render of whole content * loading external templates, clean from unused markers, set errors, fix paths * display css and js content * * @category BlueFramework * @package BlueFramework Core * @subpackage display * @author ...
true
755b9b932c29bbb9389eb37cd5c7c7ab29ec297b
PHP
dotkernel/dot-navigation
/src/Page.php
UTF-8
2,007
2.78125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Dot\Navigation; use function count; use function is_string; class Page extends NavigationContainer { protected ?Page $parent = null; protected array $attributes = []; protected array $options = []; public function hasParent(): bool { retur...
true
d661fd2858c90a284df31028b5626fab08b7b9cc
PHP
goodsosbva/php_study_history
/array/array2.php
UTF-8
467
3.0625
3
[]
no_license
<?php $li = [1, 2, 3, 4, 5]; echo count($li); echo '<br />'; array_push($li, 'f'); var_dump($li); echo '<br />'; $li = array_merge($li, ['f','g']); var_dump($li); echo '<br />'; array_unshift($li,'z'); var_dump($li); echo '<br />'; array_splice($li, 2, 0, 'B'); var_dump($li); echo '<br />'; array_shift(...
true
60242612f2730c32aea10f81a811a216d41fa96a
PHP
nataliakierczak/misia_portfolio
/email.php
UTF-8
1,639
2.546875
3
[ "MIT" ]
permissive
<?php require 'phpmailer/PHPMailerAutoload.php'; require 'mail-config.php'; if (isset($_POST['send-email'])) { //Create a new PHPMailer instance $mail = new PHPMailer; //Tell PHPMailer to use SMTP $mail->isSMTP(); $mail->SMTPSecure = 'ssl'; $mail->Host = $config['host']; //Set the SMTP po...
true
0932e01805319f6fac3cc8b7b3df4f7114184c03
PHP
stnvh/silverstripe-infoboxes
/tests/InfoBoxesTest.php
UTF-8
1,543
2.734375
3
[]
no_license
<?php class InfoBoxesTest extends SapphireTest { public function testParseForJS() { $reflection = new ReflectionClass('InfoBoxes'); $method = $reflection->getMethod('parseForJS'); $method->setAccessible(true); $checks = new InfoBoxes(); $testConf = array( 'dev' => array( 'type' => 0, 'message...
true
ebbf315a767af51d2d008e85becd6736bbc7e1ba
PHP
Gorotto/megashop
/cms/includes/PasswordModule.class.php
UTF-8
813
2.53125
3
[]
no_license
<?php class PasswordModule extends AbstractModule { function handleAjaxRequest($uri) { try { $vars = Meta::vars(); Session::getInstance()->reloadData(); $user = Session::getInstance()->getUser(); if ($user->password != md5($vars['old_password'])) { ...
true
f0e4c138699300d0cc21ae064d0deafc8e0d7689
PHP
harimanantsoaroutsy/hcoproject
/controllers/route.php
UTF-8
1,042
2.71875
3
[]
no_license
<?php require_once 'fiche.php'; require_once 'categorie.php'; class Route{ private $fiche; private $categorie; public function __construct(){ $this->fiche = new Fiche(); $this->categorie = new Categorie(); } public function run(){ try{ if(!isset($_GET['action'])){ $this->categor...
true
423d9bfbccbe7ce6b686827ed0a9b7e18612ddde
PHP
eugene330/shop
/app/ViewComposers/ServicesComposer.php
UTF-8
247
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\ViewComposers; use App\Models\Service; use Illuminate\View\View; class ServicesComposer { public function compose(View $view) { $services = Service::get(); $view->with('services', $services); } }
true
c01b9130c1abb9d7ac981294ec829ecb13e2d00c
PHP
brianwalleshauser/Cart-Migration
/lib/Model/Data.php
UTF-8
897
2.890625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: bwalleshauser * Date: 3/31/2015 * Time: 4:11 PM */ namespace lib\Model; abstract class Data { public function get($member) { if(isset($this->$member)) { return $this->$member; } $vars = get_object_vars($this); ...
true
e5eaee993813620ddb504c5f914787bbb8c5d07a
PHP
nasminbegam1/dipp_driving
/front-app/modules_core/pass_guarantee_third/models/model_pass_guarantee_third.php
UTF-8
3,260
2.515625
3
[]
no_license
<?php ######################################################################### # # # This is Student model. # # # # # # # # # # # # ...
true
0e885406a23c52edb8527edbae4530332331fcd9
PHP
manhtk/Web_travel
/WebSite/login/views/resetPassword.php
UTF-8
1,324
2.578125
3
[]
no_license
<?php include "../controllers/resetcontroller.php" ; ?> <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"...
true
3bd8ee52667b9c10f2f4e96484effa3a938df7d9
PHP
anzasolutions/simlandia
/app/dao/videodao.class.php
UTF-8
618
2.640625
3
[]
no_license
<?php /** * Video persistance gateway. * @author anza * @version 09-08-2011 */ class VideoDAO extends DAO { public function findLatestForUser($limit, $profileId) { $subQuery = $this->db->query(); $subQuery->select('id')->from('User'); $subQuery->where('login', $profileId); $query = $this->simpleSelect();...
true
b7aac7992f5247534cb1bd60453e7c39ae3cac33
PHP
ardika27/belajar-php
/elseif1.php
UTF-8
156
3.09375
3
[]
no_license
<?php $a = 50; $b = 40; if ($a > $b){ echo "A Lebih Besar Dari B"; } elseif ($a == $b ){ echo "A Sama Dengan B"; }else{ echo "A Lebih Kecil Dari B"; }
true
adbbdef431b85d3ff2e4f9a6d0500a07fdc0180e
PHP
aiguardians/aiguardians_backend
/app/Models/Student.php
UTF-8
4,829
2.609375
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; use Backpack\CRUD\CrudTrait; class Student extends Model { use CrudTrait; /* |-------------------------------------------------------------------------- | GLOBAL VARIABLES |-------------------------------------------------------...
true
bfc7e08f5ab0d4c00a77dbe7c616b726ff2fe014
PHP
johnny-silverhand/project-x
/models/RequestDestination.php
UTF-8
1,967
2.578125
3
[ "MIT" ]
permissive
<?php namespace app\models; use yii\db\ActiveQuery; use yii\db\ActiveRecord; /** * Class RequestDestination * @package app\models * @author Dmitrii N <https://github.com/johnny-silverhand> * * @property int $id * @property int|null $request_id ид запроса * @property int|null $institution_id ид института * *...
true
8343ec6bbad57c00a7f76d97783ae4b6df41ab93
PHP
koosh/EUVATFreeZones
/src/EUVATFreeZone.php
UTF-8
4,109
2.796875
3
[]
no_license
<?php namespace koosh\VATUtility; /** * Simple check for areas in the European Union where VAT is not applicable * when charging from inside the EU. * * Class EUVATFreeZone * @package koosh\VATUtility */ class EUVATFreeZone { /** * ISO 3166-2 list of EU countries with tax free zones. * * @var...
true
4f33d80d5346fe665ac3d7ed705a2f4d6384149b
PHP
melaniehoneychurch/st09_pmmn
/src/Entity/ScanSearch.php
UTF-8
479
2.84375
3
[]
no_license
<?php namespace App\Entity; /** * Class ScanSearch * @package App\Entity */ class ScanSearch { /** * @var string|null */ private $code; /** * @return string|null */ public function getCode(): ?string { return $this->code; } /** * @param string|null $...
true
99c27af5c2abddcc4b054f4ca239e87fef4f43fe
PHP
avokicchi/login-manager
/src/Avokicchi/LoginManager/LoginService.php
UTF-8
17,663
2.9375
3
[ "MIT" ]
permissive
<?php namespace Avokicchi\LoginManager; /** * Class LoginService * * Extended login module with cookie session restore */ class LoginService { private $_template; private $_cookieName = null; private $_cookiePath = null; private $_cookieDomain = null; private $_urlPath="/"; private $_sess...
true
7577dbc2f48a856c86aca3e4114bb0d0d3ad402b
PHP
movibe/Laravel-4-CMS
/src/Mjolnic/Thor/Language.php
UTF-8
1,595
2.65625
3
[]
no_license
<?php namespace Mjolnic\Thor; class Language extends Model { protected $guarded = array(); public static $rules = array( 'name' => 'required', 'code' => 'required|unique:languages', 'is_active' => 'required', 'sorting' => 'required' ); protected static $current; /...
true
33688c37111776e57732f1b9f9c8a2d9a2b786cd
PHP
bono-cms/bono.cms
/module/Site/Social/FacebookService.php
UTF-8
1,060
2.5625
3
[]
no_license
<?php /** * This file is part of the Bono CMS * * Copyright (c) No Global State Lab * * For the full copyright and license information, please view * the license file that was distributed with this source code. */ namespace Site\Social; use Krystal\Http\Client\CurlHttplCrawler; final class FacebookService ...
true
cab869db55b6f0666578bf95311a26c74aa1f558
PHP
zaglara/ProyectoFinal
/WebApi/registerPet.php
UTF-8
1,020
2.640625
3
[]
no_license
<?php require_once 'db_function.php'; $db = new DB_Functions(); $response = array("error"=>FALSE); if (isset($_POST['description']) && isset($_POST['age']) && isset($_POST['details']) && isset($_POST['status']) && isset($_POST['category_id']) && isset($_POST['user_id'])){ $description = $_POST['description']; ...
true
7e5f2a2bc99e050f47f6611a2f403cc4a68e012a
PHP
fizechan/FizeThirdWechat
/src/Api/Ticket.php
UTF-8
573
2.8125
3
[ "MIT" ]
permissive
<?php namespace Fize\Third\Wechat\Api; use Fize\Third\Wechat\ApiAbstract; /** * 临时票据 */ class Ticket extends ApiAbstract { /** * 票据类型:JSAPI */ const TICKET_TYPE_JSAPI = 'jsapi'; /** * 票据类型:微信卡券 */ const TICKET_TYPE_WX_CARD = 'wx_card'; /** * 获取临时票据 * @param stri...
true
7bddb2492eaa2c809b3dcf0edfebb20e719eeb52
PHP
Maybraga30/mutirae
/App/Models/Mutiroes.php
UTF-8
1,129
2.96875
3
[]
no_license
<?php namespace App\Models; use MF\Model\Model; class Mutiroes extends Model{ private $id_mutirao; private $id_usuario; private $titulo; private $texto; private $data_mutirao; private $img; private $local; public function __get($atributo){ return $this->$atributo; } pub...
true
d2bb823ba10be29b750f76f121971642dddd90df
PHP
kiler129/CherryHttp
/src/IO/Exception/BufferOverflowException.php
UTF-8
1,523
2.890625
3
[ "MIT" ]
permissive
<?php /** * This file is part of CherryHttp project. * You are using it at your own risk and you are fully responsible for everything that code will do. * * Copyright (c) 2016 Grzegorz Zdanowski <grzegorz@noflash.pl> * * For the full copyright and license information, please view the LICENSE file distributed with...
true
873b7c54614fb8917cbe98c172cc5001cc5352df
PHP
frqnck/apix
/src/tests/unit-tests/php/Apix/Output/PhpTest.php
UTF-8
1,051
2.515625
3
[ "BSD-3-Clause" ]
permissive
<?php /** * * This file is part of the Apix Project. * * (c) Franck Cassedanne <franck at ouarz.net> * * @license http://opensource.org/licenses/BSD-3-Clause New BSD License * */ namespace Apix; class PhpTest extends \PHPUnit_Framework_TestCase { protected $php; public function setUp() { ...
true
c9a0cf71bf0fc486331171d1d39ab6bbe940359a
PHP
thomas-che/www
/tp/tp4/Archive/TP4.2/ex2/mvc/site.php
UTF-8
833
2.5625
3
[]
no_license
<?php require_once('controleur/controleur.php'); try{ if (isset($_POST['displayCustomer'])) { CtldisplayAllCustomer(); } elseif (isset($_POST['addCustomer'])) { $lastName=htmlspecialchars($_POST['lastName']); $name=htmlspecialchars($_POST['name']); $birthDate=$_POST['birthDate']; $ph...
true
d7b6a975ffd4f531d270c27cc8459e9584644987
PHP
mariamnef/php_day01
/ex08/ft_is_sort.php
UTF-8
238
2.875
3
[]
no_license
<?php function ft_is_sort($array) { $tab = $array; sort($array); $n = count($array); $i = 0; $c = 1; while ($i < $n) { if (strcmp($tab[$i], $array[$i]) != 0) $c = 0; $i++; } } ?>
true
098660b06d07c7e0d5a2357f9a61ce9f537c2181
PHP
mrsnowin/dataprovider
/src/SkyEng/CacheDataProviderDecorator.php
UTF-8
805
2.8125
3
[]
no_license
<?php namespace SkyEng; use Psr\SimpleCache\CacheInterface; use SkyEng\Request\DataRequest; use SkyEng\Response\DataResponse; class CacheDataProviderDecorator implements DataProviderInterface { private $dataProvider; private $cache; public function __construct(DataProviderInterface $dataProvider, CacheI...
true
ca187cf444d2b26f0a407e0c2733db020827d8dd
PHP
kanboard/kanboard
/tests/units/Core/Ldap/ClientTest.php
UTF-8
6,455
2.65625
3
[ "MIT" ]
permissive
<?php namespace Kanboard\Core\Ldap; require_once __DIR__.'/../../Base.php'; function ldap_connect($hostname, $port) { return ClientTest::$functions->ldap_connect($hostname, $port); } function ldap_set_option() { } function ldap_get_option($link_identifier, $option, &$error) { $error = 'some extended error'...
true
8e2d8d5b53248452c2ab73c693f9cc25d4b74cbd
PHP
paulouskunda/clinicManagementSystem
/staff/Results.php
UTF-8
3,277
2.84375
3
[]
no_license
<!DOCTYPE html> <html> <head> <title>Results </title> <?php if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on') $url = "https://"; else $url = "http://"; require '../includeFiles/header.php'; require '../includeFiles/Connection.php'; if (isset($_POST...
true
cd98813ac9fbf8f47c7c255a229b7b9dd7b57b85
PHP
ppillip/math
/classes/MastPDF.class.php
UTF-8
2,523
2.96875
3
[]
no_license
<? require_once($_SERVER['DOCUMENT_ROOT'].'/tcpdf/config/lang/eng.php'); require_once($_SERVER['DOCUMENT_ROOT'].'/tcpdf/tcpdf.php'); /** * Extend TCPDF to work with multiple columns */ class MastPDF extends TCPDF { /** * Print chapter * @param $num (int) chapter number * @param $title (string) ch...
true
ca37d868760fcabc05cca0679e0e20e0245d07de
PHP
RainerM10/projetoPix
/app/Validation/CompanyValidation.php
UTF-8
2,700
3.046875
3
[ "MIT" ]
permissive
<?php namespace App\Validation; class CompanyValidation extends BaseValidation { /** * Validate the data. * * @param Request $request * * @return boolean */ public function validateData($request = null) { if ($request != null) { return $this->baseValidation(...
true
c158ed2d54bc69e5d81e68ceb69d126c3140720e
PHP
Linwentao-tech/Hospital-Page
/headDoctor.php
UTF-8
862
2.796875
3
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>head doctor</title> </head> <body> <?php include 'connectdb.php'; ?> <h1>Here are the head doctors!:</h1> <ol> <?php $query = 'SELECT hospitalName,firstNamedoctor,lastNamedoctor,dateOfBecomingHead,province from hospital,doctor where workat = hospitalCode A...
true
be0d8af85316dc8e86c611f0a5e314721b411959
PHP
Evercise/evercise
/app/models/Category.php
UTF-8
5,035
2.78125
3
[]
no_license
<?php /** * Class Category */ class Category extends Eloquent { /** * @var array */ protected $fillable = array( 'id', 'name', 'image', 'order', 'visible', 'description', 'popular_classes', 'popular_subcategories', ); /** ...
true
08eb5c44f2cd2f9f515a689febab3a0dfa3f4a3d
PHP
isabella232/modules.zendframework.com
/module/Application/src/Application/Controller/ContributorsController.php
UTF-8
1,279
2.546875
3
[]
no_license
<?php namespace Application\Controller; use Application\Entity; use Application\Service; use Zend\Mvc\Controller\AbstractActionController; use Zend\View\Model\ViewModel; class ContributorsController extends AbstractActionController { /** * @var Service\RepositoryRetriever */ private $repositoryRetr...
true
bfe5e9cf648473f372ccf75abc679b196fe8b162
PHP
miamibc/salabim
/Indexer.class.php
UTF-8
1,470
3.015625
3
[]
no_license
<?php class Indexer { private $data = array(); public $delta = 0; public $buffer = 524288; // 512kb public $positions = array(0,1,2,3,4,5,6,7); public $chars = array('0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f'); public $status = ''; public function __construc...
true
f275df6339b9390be8225791af8c99516f9e0dab
PHP
NguyenSonArsenal/on-tap-php
/Exercises/Basic/7.GetCurrentFile.php
UTF-8
186
2.640625
3
[]
no_license
<?php function getCurrentFile() { return basename(__FILE__); } $currentFileName = getCurrentFile(); echo 'Current file name is ' . $currentFileName; echo '<pre>'; print_r($_SERVER);
true
9fc256ef627b626574f91771573c991e39d66213
PHP
tiggerli/SK
/php/add_cart.php
GB18030
1,829
2.546875
3
[]
no_license
<?php header('Content-Type:application/json;charset=UTF-8'); @$uname=$_REQUEST['uname']; @$pid=$_REQUEST['pid']; //жύûͲƷǷΪ if(!$uname||!$pid){ echo "{}"; return;//˳ǰҳִ } //json $output=[ 'msg'=>null, 'uid'=>0, 'cid'=>0, 'pid'=>intval($pid), 'count'=>0 ]; //ӷ include('config.php'); $conn=mysq...
true
15c0f07ee7a40efa2d555bccf832327c73dc9103
PHP
jeyziel/myEvolution
/cadastra-notas/src/App/Repositories/UserRepository.php
UTF-8
742
2.8125
3
[]
no_license
<?php namespace App\Repositories; use App\Models\User; use App\Repositories\Contracts\UserRepositoryInterface; use Exception; use Illuminate\Database\QueryException; use App\Auth\Auth; class UserRepository implements UserRepositoryInterface { private $auth; public function __construct() { $this->auth = new A...
true
58708026e2e42bfdf28df118b88575981cb6abb3
PHP
TechCor8/OP2MissionHub
/Server/public/op2missions/api/v1/authentication/verify_session.php
UTF-8
1,233
2.890625
3
[ "MIT" ]
permissive
<?php //////////////////////////////////////////////////////////////////////////////////////////////////// // verify_session.php // Verifies a user's session and userID. // -3 = Invalid Session // -2 = Bad Data // -1 = Exception // 1 = Success ///////////////////////////////////////////////////////////////////////////...
true
2a0953e07fafa540304f9eb1bb9e3a2ad124d522
PHP
Wdaisong/videos-tools
/dirList.php
UTF-8
522
2.765625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: met * Date: 2019/9/30 * Time: 15:49 */ function dir_list($file) { $file_list = scandir($file); foreach($file_list as $item) { if($item == '.' || $item == '..')continue; $file_path = $file . '/' . $item; if(is_dir($file_path)) ...
true
be2d6addbee2c8b948c58bb41998f4b8fb20cf31
PHP
123343103/fushikang_docker
/project/php_project/api/modules/common/models/VCsareaId.php
UTF-8
1,146
2.578125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\modules\common\models; use app\models\Common; use Yii; /** * This is the model class for table "v_csarea_id". * * @property integer $csarea_id * @property string $msg */ class VCsareaId extends Common { /** * @inheritdoc */ public static function tableName() { r...
true
814f30efa153bba44397c610688500833dc3ac05
PHP
rashim09/College_LAMP_STACK-Project
/signup.php
UTF-8
2,873
2.90625
3
[]
no_license
<?php function insertdata(){ include ('connection.php'); $mysqli=OpenCon(); $user_name = $mysqli->real_escape_string($_POST['uname']); $first_name = $mysqli->real_escape_string($_POST['fname']); $last_name = $mysqli->real_escape_string($_POST['lname']); $email = $mysqli->real_escape_string($_POST['email']); $pas...
true
eb5824fe8088cbb12463e481812f868c6ebf61f3
PHP
Dmitry-Kucher/orderGenerator
/app/Order.php
UTF-8
3,879
3.09375
3
[]
no_license
<?php namespace App; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\BelongsTo; use Illuminate\Database\Eloquent\Relations\BelongsToMany; /** * Модель для таблицы "orders". * * Таблица 'orders' содержит следующие поля : * @property int id Идентификатор заказа * @property ...
true
e325ab68ba344b9ffb8079fabeffd741ad9c8e03
PHP
oswaldderiemaecker/accountancy
/src/Accountancy/Features/AccountManagement/CreateAccount.php
UTF-8
2,066
2.78125
3
[]
no_license
<?php /** * */ namespace Accountancy\Features\AccountManagement; use Accountancy\Entity\Account; use Accountancy\Features\FeatureException; use Accountancy\Features\FeatureInterface; use Accountancy\Gateway\AccountsGatewayInterface; use Accountancy\Gateway\CurrenciesGatewayInterface; /** * Class CreateAccount * ...
true
5ae72364401b7cf225f2eae8a0636e44c7f12235
PHP
julianvink17/garage
/gar-zoek-klant2.php
UTF-8
1,784
2.8125
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>gar-zoek-klant2.php</title> <link href="style.css" rel="stylesheet" type="text/css"> <link href="https://fonts.googleapis.com/css?family=Imprima" rel="stylesheet"> </head> <body> <h1>Garage zoek op klantid 2</h1> <p> O...
true
04c655a95f6e7b9eed9f44c42af80aca244db0dc
PHP
Failon/prueba-tecnica-bodas.net
/src/ClientExport/ClientsExportService.php
UTF-8
1,113
2.8125
3
[]
no_license
<?php namespace App\ClientExport; use App\ClientExport\DataSources\ClientDataSourceInterface; use App\ClientExport\Entity\Client; use App\ClientExport\Strategy\ExportStrategyInterface; final class ClientsExportService { /** * @var ClientDataSourceInterface[] */ private $dataSources; /** *...
true
4b4a6cf831e5cc6ade09e8675a7ace196021f1d5
PHP
antlr/grammars-v4
/php/examples/alternativeSyntax.php
UTF-8
517
2.96875
3
[ "MIT" ]
permissive
<?php EcHo "asdf"; //comment? > ?> <?= "qwer"; // echo ?> <?= "zxcv" // missing semicolon ?> <html>asdf</html> <div class="container"> <?php if (jf::Check("workshop")): ?> <li><a href="asdf">Dashboard</a></li> <?php endIf ;?> </div> <p> <?php switch($a): case 1: // without semicolon?> <br> ...
true
f317d259c0821b0b3c540d6d86fb8e4f7085d993
PHP
manniL/uuid-mysql-performance
/src/DatabaseCommand.php
UTF-8
343
2.546875
3
[]
no_license
<?php namespace Spatie; use Doctrine\DBAL\Connection; use Symfony\Component\Console\Command\Command; abstract class DatabaseCommand extends Command { protected $connection; public function __construct(string $name, Connection $connection) { parent::__construct($name); $this->connection ...
true
96246cb784c38a367be00e35ef2eec57993c294b
PHP
candrandiyasa/belajar_pbw
/file_soal_uts_pbw_2017.2018-28.04.2018/4_arrayDaerah.php
UTF-8
1,626
3.046875
3
[]
no_license
<?php $data = array( "A" => array( "Laki" => 55, "Perempuan" => 45 ), "B" => array( "Laki" => 90, "Perempuan" => 56 ), "C" => array( "Laki" => 75, "Perempuan" => 89 ), "D" => array( "Laki" => 40, "Perempuan" => ...
true
38b9d76d1a2e16e62525daa3c69290c0f58ee2be
PHP
aulia2804/Assalam
/database/migrations/2018_05_13_110331_create_barangs_table.php
UTF-8
1,169
2.515625
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateBarangsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('barang', functi...
true
33265bde46e779b5c5d92c758db300d6628a7052
PHP
rzepedam/controlqtime
/app/Core/Entities/Image.php
UTF-8
429
2.5625
3
[]
no_license
<?php namespace Controlqtime\Core\Entities; use Illuminate\Database\Eloquent\Model as Eloquent; class Image extends Eloquent { /** * @var array */ protected $fillable = [ 'imageable_id', 'imageable_type', 'path', 'orig_name', 'size', ]; /** * @return \Illuminate\Database\Eloqu...
true
7952ae44bb0b00f98c8e2fccf2879a5cb62a3e81
PHP
foxycode/foe-tips
/app/Model/Entities/Age.php
UTF-8
1,148
2.59375
3
[]
no_license
<?php declare(strict_types=1); namespace App\Model\Entities; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Table(name="age") * @ORM\Entity */ class Age { public const NAME_TO_ID = [ 'Žádný věk' => 1, 'Doba kamenná' => 2, 'Doba bronzová' => 3, 'Doba železná' => 4, 'Raný st...
true
1aa4bae50291d76be4a607afb88e71261387872a
PHP
YuraRudyk/excurs
/web/typo3conf/ext/sem_ex_content/Classes/Domain/Repository/RowRepository.php
UTF-8
1,170
2.53125
3
[]
no_license
<?php namespace Rudyk\SemExContent\Domain\Repository; use TYPO3\CMS\Extbase\Persistence\Repository; /** * Class RowRepository * * @package sem_ex_content * @subpackage Rudyk\SemExContent\Domain\Repository * @author Yura Rudyk */ class RowRepository extends Repository { /** * Find row by uid. Do not res...
true
ec5f441c2444d0b2b7e3cf4eb3a7dcd66a0db213
PHP
ubaidpal/kinnect2
/local/packages/kinnect2Store/Store/src/migrations/2015_11_15_000000_create_store_products_table.php
UTF-8
4,736
2.53125
3
[]
no_license
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateStoreProductsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('store_product_categories', function (Blueprint...
true
a39b6a3b9cffd3c8d0b2dfe58a68688e541835ec
PHP
tarasovc47/mng
/common/models/radius/RadiusArchSearch.php
UTF-8
2,907
2.515625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: asmild * Date: 05.04.18 * Time: 11:34 */ namespace common\models\radius; use Yii; use yii\base\Model; use yii\data\ActiveDataProvider; class RadiusArchSearch extends RadiusArch { public function rules() { return [ [['login','macaddr','ipv4','...
true
3c024ed61af94a3834eef7876eb487af4b12647e
PHP
district09/php_package_gent-lez
/tests/Request/LezRequestTest.php
UTF-8
734
2.515625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace District09\Tests\Gent\Lez\Request; use District09\Gent\Lez\Request\LezRequest; use District09\Gent\Lez\Value\Geometry\Lambert72; use PHPUnit\Framework\TestCase; /** * @covers \District09\Gent\Lez\Request\LezRequest */ class LezRequestTest extends TestCase { /** * ...
true
41268266cabcac13f68255d6d8d8f392ff1360a9
PHP
FahrenheitRus/regeora.test
/app/Models/Bus/Stop.php
UTF-8
1,408
2.640625
3
[]
no_license
<?php namespace App\Models\Bus; use Illuminate\Database\Eloquent\Model; class Stop extends Model { /** * @var integer */ public $st_id; /** * @var integer */ public $time_minute; /** * @var integer */ public $distance_to_next; /** * @var integer ...
true
cc8cf54619ad19f6e438f8d699af8cb78a6efbff
PHP
pillar04/dake
/library/dao/news/NewsClassDao.php
UTF-8
2,446
2.6875
3
[ "BSD-3-Clause" ]
permissive
<?php /** * 单页 * @author dake */ class NewsClassDao extends BaseDao { protected $table_name = 'initapp_news_category'; /** * 新增单页 * * @param array $data * @return int */ public function add($data) { if (! $data) return false; return $this->dao->db->insert ( $data, $th...
true
5f254ce68e26f534e8d0b48db26fd3ca03a3cf5f
PHP
JosmarBracho/practica-de-php
/practica.php
UTF-8
1,883
3.875
4
[]
no_license
<?php //Video 1 echo"Practica 1"; echo"<br>"; echo"<br>"; echo("Hola Mundo desde PHP"); //Video 2 echo"<br>"; echo"<br>"; echo"Practica 2"; $edad = 17; //PHP es sencible a mayusculas y minusculas por ejemplo si escribimos el mismo nombre pero con una mayuscula $Edad = 18; //es diferente echo"<br>";//salto de li...
true
e848725bd938fce8522afc598e3ffbd5e9b65127
PHP
egodasa/komponen-elemen-html
/membuat-tabel.php
UTF-8
2,592
3.28125
3
[ "MIT" ]
permissive
<?php class genTable{ private $content; private $header; private $class; private $result; private $id; private $name; public function __construct(){ $this->class['table'] = ""; $this->class['th'] = ""; $this->class['tr'] = ""; $this->id = ""; $this->name = ""; } public function setContent($tmp_conten...
true
d55c149e89e371783f0682ee5be1e1daccfb23d5
PHP
datomatic/enum-helper
/src/Exceptions/EmptyCases.php
UTF-8
393
2.625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Datomatic\EnumHelper\Exceptions; use UnexpectedValueException; class EmptyCases extends UnexpectedValueException { public function __construct(string $enumClass) { // Matches the error message of invalid Foo::BAR access parent::__construct("The enum $...
true
2ffb7c350ea6a3ff3c158b08dfe81c1e3774bea0
PHP
codacy-badger/pam
/Database/PDOFactory.php
UTF-8
842
2.890625
3
[ "MIT" ]
permissive
<?php namespace Pam\Database; use PDO; /** * Class PDOFactory * @package Pam\Database */ class PDOFactory { /** * @var null */ static private $pdo = null; /** * @return PDO|null */ public static function getConnection() { require_once dirname(dirname(dirname(dirnam...
true
db6de5c8b4615d2c3fd62c7a7b3744855e1d2e4c
PHP
loganetherton/samples
/valuepad-backend/app/Mobile/Handlers/AbstractOrderHandler.php
UTF-8
1,639
2.734375
3
[]
no_license
<?php namespace ValuePad\Mobile\Handlers; use ValuePad\Core\Appraisal\Notifications\AbstractNotification; use ValuePad\Core\Session\Entities\Session; use ValuePad\Mobile\Support\HandlerInterface; use ValuePad\Mobile\Support\News; use ValuePad\Mobile\Support\Tuple; abstract class AbstractOrderHandler implements Handler...
true
a62264b6e08687754d518f165f5949a87a142f7d
PHP
linhld/memmem
/app/controllers/HomeController.php
UTF-8
1,632
2.65625
3
[]
no_license
<?php class HomeController extends BaseController { /* |-------------------------------------------------------------------------- | Default Home Controller |-------------------------------------------------------------------------- | | You may wish to use controllers instead of, or in addition to, Closure | ba...
true
5ef4b9bd8323ada08c59f228a13215db7310cef0
PHP
takagotch/phplib
/phpmook/github/find.php
UTF-8
1,007
3
3
[]
no_license
<?php // 初期設定 require_once ("vendor/autoload.php"); use Github\Client as Client; $client = new Client(); // (1) キーワードからのリポジトリの検索 $repo = $client->api( 'repo' ); $repo instanceof Github\Api\Repo; $repos = $repo->find( 'xml', // キーワードは'xml' array ( 'language' => 'php' )); // 言語は'php' $list = $repos['...
true
3f76331d1c65ce1366cadea3709c35abc5e22137
PHP
Tumbochka111/Doublefin
/index.php
UTF-8
1,107
3.015625
3
[]
no_license
<?php define("BASEURI", __DIR__); date_default_timezone_set("Europe/Moscow"); include BASEURI .'\core\LogAbstract.php'; include BASEURI .'\core\LogInterface.php'; include BASEURI .'\Daragan\DaraganLog.php'; include BASEURI .'\core\EquationInterface.php'; include BASEURI .'\Daragan\LineFun.php'; include BASEURI .'\Dar...
true
a0958908eac5bdebc5c8ad3be680869e12a7fcbd
PHP
giachini/login-cidadao
/src/PROCERGS/LoginCidadao/CoreBundle/Helper/NotificationsHelper.php
UTF-8
5,667
2.515625
3
[ "MIT" ]
permissive
<?php namespace PROCERGS\LoginCidadao\CoreBundle\Helper; use Symfony\Component\Security\Core\Exception\AccessDeniedException; use PROCERGS\LoginCidadao\CoreBundle\Entity\NotificationInterface; use Symfony\Component\Security\Core\SecurityContext; use Doctrine\ORM\EntityManager; use PROCERGS\LoginCidadao\CoreBundle\Ent...
true
475e1dbfd7c49c6dc70c5ec8dfffd783731537f6
PHP
Khazhinov/laravel-lighty
/src/Models/UUID/Uuidable.php
UTF-8
935
2.765625
3
[ "MIT" ]
permissive
<?php declare(strict_types = 1); namespace Khazhinov\LaravelLighty\Models\UUID; use Khazhinov\LaravelLighty\Exceptions\Models\ModelUUIDVersionUnsupportedException; use Ramsey\Uuid\Uuid; trait Uuidable { /** * @throws ModelUUIDVersionUnsupportedException * @return string */ public function gen...
true
94076b1181081c5d776231c92d5d6ce55441af82
PHP
labixiaoxiaoxin/phpDemo
/Filetest/doAction_2.php
UTF-8
2,060
2.8125
3
[]
no_license
<?php $fileinfo = $_FILES['myfile']; $allowext = array('jpg', 'jpeg', 'png', 'gif', 'wbmp'); // var_dump($fileinfo);exit; if ($fileinfo['error'] == 0) { // 限制文件上传大小 $maxsize = 2097152; if ($fileinfo['size'] > $maxsize) { exit("文件大小不符合要求"); } // 限制文件上传类型 // $explo=explode('.', $fileinfo...
true
1c52d3366f5849897f1f66af6f016ab494ae37cb
PHP
ashikawa/Budori
/www/library/Budori/Image.php
UTF-8
3,147
2.796875
3
[]
no_license
<?php class Budori_Image { /** * Enter description here... * @var Zend_Loader_PluginLoader_Interface */ protected static $_loader = null; /** * @var Budori_Image_Resourde */ protected $_resource = null; /** * コンストラクタ * 入力値から画像タイプを判別して、リソースオブジェクトの初期化 * @param...
true
5181719d5906f2c3b539c167d90b8a0f76627348
PHP
liangjiajun/star
/signSystem/sign(old)/updates.php
UTF-8
816
2.515625
3
[]
no_license
<?php require_once 'config/config.php'; $user = $db->select('users_data'); if(isset($_POST['sub'])){ $id = $_POST['user']; $pass = $_POST['pass']; $rpass = $_POST['rpass']; if($pass===$rpass){ $db->update('users_data',['password'=>md5($pass)],['id'=>$id]); jump('index.php'); }else{ echo '重复密码错误'...
true
9548f04334d363152cc15907032ae905cf4ec248
PHP
aionliao/PasswordGeneratorClass
/PasswordGenerator.php
UTF-8
3,202
3.578125
4
[]
no_license
<?php /** * Password generator class * * This class is helper for generating passwords with several parameters. * By default it generates password 12 characters long, including digits, lower\uppercase characters and special symbols. * * Basic Usage Example * $password = new PasswordGenerator; * echo $password->genera...
true
99ae4f383a8a084a6acc20d341b5157936dc2402
PHP
Joker666/Blogstyle-Backend
/server/app/database/seeds/UsersTableSeeder.php
UTF-8
461
2.53125
3
[ "MIT" ]
permissive
<?php // Composer: "fzaninotto/faker": "v1.3.0" use Faker\Factory as Faker; class UsersTableSeeder extends Seeder { public function run() { $faker = Faker::create(); foreach(range(1, 1) as $index) { User::create([ 'email' => 'mr.k779@gmail.com', 'username' => 'joker666', ...
true
aaaca364eb78d55274fc377f9b623fdc7d9bbb59
PHP
sonyzx/swa
/SessionHijackingFix.php
UTF-8
828
2.890625
3
[]
no_license
<?php //This code to avoid Session Hijacking by making sure the request is comming from same browser and same IP address session_start(); // generate token from IP and user agent function getToken(){ $user_agent = $_SERVER['HTTP_USER_AGENT']; $ip = null; if (!empty($_SERVER['HTTP_CLIENT_IP'])) { $i...
true