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
6d0441bb5fa62e00975ace4abef996defd36be17
PHP
Krienas/rocketeer
/src/Rocketeer/Services/TasksHandler.php
UTF-8
8,768
2.53125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /* * This file is part of Rocketeer * * (c) Maxime Fabre <ehtnam6@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * */ namespace Rocketeer\Services; use Closure; use Illuminate\Container\Container; use Rocketeer\A...
true
277be563056694d905da160a8193a6efa1a109c0
PHP
ymihaylov/Football_Manager_OOP
/Modules/Database.php
UTF-8
761
2.890625
3
[]
no_license
<?php class Database { protected $database_name = 'FootballManager'; protected $host = 'localhost'; protected $username_db = 'yavcho_despark'; protected $password_db = 'quadro0'; public $connection; protected static $instance = null; protected function __construct() { $this->connection = new mysqli($this->...
true
c77aef67e581bb7080d9f98cb06cb309b5bca5d4
PHP
dianamontes1516/PHP-OO
/Curso11-12/Persona.php
ISO-8859-1
3,120
3.875
4
[]
no_license
<?php class Persona { /** * Clase que abstrae a una persona * Esta clase contiene el nombre y el contacto (email) **/ /** * Variable esttica de numero de personas creadas * @var nombre */ private static $poblacion = 0; /** * Primer nombre de la persona * @var nombre */ ...
true
c6f44497f2c57136e2482b020ea84bb2fe512e62
PHP
codelego/phpfox-pf5
/app/library/phpfox-view/src/HeadMeta.php
UTF-8
652
2.984375
3
[]
no_license
<?php namespace Phpfox\View; class HeadMeta implements HtmlElementInterface { /** * @var array */ protected $data = []; /** * @param string $name * @param array $props */ public function add($name, $props = []) { $this->data[$name] = $props; } public fu...
true
5cc38606980bb0ebd69f0eaaaabb33f7ce0b6301
PHP
PHPfrank/origin
/app/Repositories/Traits/BaseRepositoryTrait.php
UTF-8
8,448
2.703125
3
[]
no_license
<?php namespace App\Repositories\Traits; use Illuminate\Support\Facades\DB; /** * Created by PhpStorm. * User: frank * Date: 2018/12/3 * Time: 10:43 */ trait BaseRepositoryTrait { /** * 根据条件获取一条数据 * @param array $where * @param array $columns * @return mixed * @throws \Prettus\Reposit...
true
200841f39b5c8df46ea336f5fcda05d8456c2ac8
PHP
EmptyWave/test-order-api
/src/Dto/Api/ResponseData.php
UTF-8
466
2.765625
3
[]
no_license
<?php namespace App\Dto\Api; use App\Dto\DataTransferObject; class ResponseData extends DataTransferObject { /** @var array $body */ public $body; /** @var int $statusCode */ public $statusCode; /** * @return array|null */ public function getBody(): ?array { return $th...
true
c6c8ef854f7cdda0ac15d5042ea7a8427996ce6a
PHP
korhankonaray/FileTypeDetector
/dataset/php/repeater-class.php
UTF-8
14,247
2.703125
3
[ "DOC" ]
permissive
<?php /** * swing lite customizer repeater class * * * @package swing */ if( class_exists('WP_Customize_Control')): /** * Repeater Custom Control */ class swing_lite_Repeater_Controler extends WP_Customize_Control { /** * The control type. * * @access public * @v...
true
fe9f86d45946880cf441c2f6ce196ae38e99be82
PHP
lamu88/cgwx
/addons/netbuffer_domainsearch/ShowApi.class.php
UTF-8
3,371
2.59375
3
[]
no_license
<?php class ShowApiSdk { static $showapi_appid = '9958'; static $showapi_sign = '9fc7866fc5f14196859b38002f42b24f'; static function createSign($paramArr) { $sign = ""; ksort($paramArr); foreach ($paramArr as $key => $val) { if ($key != '' && $val != '') { ...
true
8b7d769b73d37994f220bb9209f76961a3cb4c52
PHP
Lucerno/nextwab
/nextwab.class.php
UTF-8
4,317
2.78125
3
[]
no_license
<?php /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * fichier : nextwab.class.php * version : 0.1 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * author : LucernoPower * copyright : (C)...
true
3ee39f987f1928d339a72f1cedff368bc39678ff
PHP
DenielWorld/TechMine-PM
/src/DenielWorld/TechMinePM/managers/Manager.php
UTF-8
630
3.0625
3
[ "Apache-2.0" ]
permissive
<?php namespace DenielWorld\TechMinePM\managers; use DenielWorld\TechMinePM\Main; use http\Exception\InvalidArgumentException; class Manager{ protected $type; private $plugin; public function __construct(Main $plugin, string $type) { $this->type = $type; $this->plugin = $plugin; ...
true
1ec78a67d107d579146566aadd76cfd23f5ed2ce
PHP
VladimirMolkin/First-Project
/PHP/cli/pdo/pdo.connect.mysql.errormode.test.php
UTF-8
1,449
2.84375
3
[ "MIT" ]
permissive
<?php // pdo.connect.mysql.errormode.test.php // example of PDO MySQL connection $host = "localhost"; $user = "root"; $pass = "ghbdtn"; $dbname = "store"; // PDO::ERRMODE_EXCEPTION // В большинстве ситуаций этот тип контроля выполнения скрипта предпочтителен. Он выбрасывает исключение, что позволяет вам ловко обраб...
true
532ec12ea763fa243ac7ad43df222444580ccde0
PHP
courtney-miles/schnoop
/src/SchemaFactory/MySQL/DataType/BlobTypeFactory.php
UTF-8
482
2.6875
3
[ "MIT" ]
permissive
<?php namespace MilesAsylum\Schnoop\SchemaFactory\MySQL\DataType; use MilesAsylum\SchnoopSchema\MySQL\DataType\BlobType; class BlobTypeFactory implements DataTypeFactoryInterface { public function createType($typeStr, $collation = null) { if (!$this->doRecognise($typeStr)) { return false;...
true
b97cae026330e979b21aa75b8e7e08c115857e09
PHP
shadysherifsayed/laravel-vue-notes-app
/database/factories/NoteFactory.php
UTF-8
2,259
2.671875
3
[]
no_license
<?php use Faker\Generator as Faker; $factory->define(App\Note::class, function (Faker $faker) { $title = $faker->sentence; $description = htmlspecialchars( "<h1>A Guide to Solving Web Development Problems</h1> <p>This is mainly about how to solve technical problems that arise from using front...
true
121cacdaedae788cd93cfb5a6a663cc2e7e2e91b
PHP
odaydev/MFF
/PostIt/contact.php
UTF-8
710
2.640625
3
[]
no_license
<?php session_start(); include 'includes/functions.php'; $result = isIsset($_POST); if($result == "true"){ $name = $_POST['name']; $email = $_POST['email']; $adresse = $_POST['adresse']; $message = $_POST['message']; $date = date("d-m-Y H:i:s"); $msg = "\r\n\r\n"; $msg .= $date."\r\n".$name."\r\n".$email."\...
true
877a6e2152b483b90fce46551c2b2ef6fe4606e4
PHP
camgeek/projetsEtna
/PHPmyadmin_2/vues/v_del_ligne.php
UTF-8
597
2.515625
3
[]
no_license
<div class="container"> <h1> Supprimer une ligne : </h1> <?php $key = ""; foreach ($values as $value) { foreach ($value as $key1 => $val) { if (!is_numeric($key1)) { echo "Colone ".$key1." Valeur :".$val." ||"; if ($key == "") ...
true
0251ba21d2aee984c0ec98164bbb715c0ecd36b0
PHP
cawitaz/Proyecto2014
/m_usuario/sql_select_usuario_insertar.php
UTF-8
1,740
3.015625
3
[]
no_license
<?php //Agregamos conexion a la base de datos include '../template/conexion.php'; //Si detecta post hacer operación if(isset($_POST['idUsuario'])){ //Obteniendo campos pasados por post $idUsuario = trim($_POST['idUsuario']); $nomUsuario = trim($_POST['nomUsuario']).' '.trim($_POST['apellUsuario']); $passUsuario...
true
4a9f16f7f149b810cfdd727e106647b745202368
PHP
dvsa/olcs-backend
/module/Api/src/Service/Qa/Structure/Element/Custom/Ecmt/AnnualTripsAbroad.php
UTF-8
1,147
2.828125
3
[ "MIT" ]
permissive
<?php namespace Dvsa\Olcs\Api\Service\Qa\Structure\Element\Custom\Ecmt; use Dvsa\Olcs\Api\Service\Qa\Structure\Element\ElementInterface; use Dvsa\Olcs\Api\Service\Qa\Structure\Element\Text\Text; class AnnualTripsAbroad implements ElementInterface { /** @var int */ private $intensityWarningThreshold; /**...
true
ed0a1b8184bd6c8995895e4de006ef76fb79dcdf
PHP
luispuentesvega/autospot
/app/Http/Controllers/UserController.php
UTF-8
764
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\User; use http\Env\Response; use Illuminate\Http\Request; use App\Http\Resources\User as UserResource; class UserController extends Controller { public function index() { //Get all users $users = User::get(); // Return a collection of $us...
true
f6f52c4060554516d715b16a5e6e7aca80476064
PHP
Wakeel03/social-distancing-detector-website
/lib/User.php
UTF-8
6,483
3.1875
3
[]
no_license
<?php class User{ private $db; public function __construct(){ $this->db = new Database; } // register a user public function register($firstname, $lastname, $username, $password, $email, $company_name){ $encrypted_password = hash('sha256', $password)...
true
ab60e8ad260d334542ee1ebdfa1202773627d68d
PHP
JohnAdib/dash
/addons/content_enter/home/controller.php
UTF-8
1,451
2.546875
3
[ "MIT" ]
permissive
<?php namespace addons\content_enter\home; class controller extends \addons\content_enter\main\controller { /** * check route of account * @return [type] [description] */ function _route() { // if the user login redirect to base if(\lib\permission::access('enter:another:session')) { // the admin can ...
true
69227fe6306bb4ecf010733c2d437c1c6d2e9447
PHP
samwilson/foodcoopstuff
/inc/request_new_password.php
UTF-8
1,773
2.65625
3
[]
no_license
<?php $Page['body'] .= "<div style='width:50%; margin:auto; text-align:justify'>"; if ($_POST['username']) { $sql = "SELECT * FROM people WHERE username=".dbesc($_POST['username'])." LIMIT 1"; $res = mysql_query($sql); if (mysql_num_rows($res) == 1) { $p = mysql_fetch_assoc($res); $newpwd ...
true
aa1122491af987596458df26db210e680d23693d
PHP
sampdubs/bar-mitzvah-website
/process.php
UTF-8
1,431
2.640625
3
[ "MIT" ]
permissive
<?php $servername = "localhost"; $username = "sampw"; $password = ""; $dbname = "formInfo_db"; $conn = mysqli_connect($servername, $username, $password, $dbname) or die(); function alert($msg) { echo '<script type="text/javascript">alert("' . $msg . '")</script>'; } $firstName = mysqli_real_escape_string($conn...
true
ff9a948dc0be18de1f8590e45fb83f8c129967f8
PHP
softedge/yii2-countries
/src/models/Country.php
UTF-8
1,973
2.546875
3
[ "MIT" ]
permissive
<?php namespace slayvin\countries\models; use Yii; use yii\helpers\ArrayHelper; use yii\db\ActiveRecord; use yeesoft\multilingual\behaviors\MultilingualBehavior; use slayvin\countries\models\CountryQuery; /** * This is the model class for table "{{%countries}}". * * @property string $iso (3) * @pro...
true
b90d73a5f07af480fe25a82494c4c8761d482b5c
PHP
wexo-labs/siteimprove-magento2
/src/Model/Token.php
UTF-8
542
2.640625
3
[]
no_license
<?php declare(strict_types=1); namespace Siteimprove\Magento\Model; use Siteimprove\Magento\Api\TokenInterface; class Token implements TokenInterface { /** * @var Flag */ protected $_flag; public function __construct( Flag $flag ) { $this->_flag = $flag; } /** ...
true
c271c7bdf9e5b2923b71f093b71d3415b3a02f15
PHP
QistiIzatus/pw2021_203040083
/praktikum/tubes/latihan6c/PHP/tambah.php
UTF-8
1,769
2.515625
3
[ "MIT" ]
permissive
<?php session_start(); if (!isset($_SESSION["username"])) { header("Location: login.php"); exit; } require 'functions.php'; if(isset($_POST['tambah'])) { if (tambah($_POST) > 0) { echo "<script> alert('Data Berhasil ditambahkan!'); document.location.href = 'admin.p...
true
c818f3d2f26ba515f59417f54fb0bb5b84f67aa1
PHP
valeu36/KanbanBoardLaravel
/app/Http/Controllers/Api/V1/TaskController.php
UTF-8
1,756
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Api\V1; use App\Classes\Constants; use App\Http\Controllers\Controller; use App\Task; use Illuminate\Http\Request; use Illuminate\Validation\Rule; class TaskController extends Controller { public function index() { $tasks = Task::all(); return response()-...
true
8a6e70534c2131a216bb351cd647c40a7f1c4e51
PHP
golinskis/php
/index.php
UTF-8
715
2.9375
3
[]
no_license
<!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"> <title>Prework PHP - zadanie 14</title> <...
true
e4c86234f084c9d2451da239863e937187339d55
PHP
nao-pon/xoopscube-preloads
/Script/MakePackageInfo.php
UTF-8
2,927
2.53125
3
[]
no_license
<?php $sourceFile = __DIR__.'/../xupdate.yaml'; $iniFile = __DIR__.'/../xupdate.ini'; $localizedIniFile = __DIR__.'/../xupdate/language/%s/xupdate.ini'; $readmeTemplate = __DIR__.'/README.template.md'; $readmeFile = __DIR__.'/../README.md'; $languageMap = [ 'ja' => 'ja_utf8', ]; $preloads = yaml_parse_file($...
true
533e75e1fa13a8d8e69cb40f9eace05c8aa2ef50
PHP
smalot/shell-commander
/src/Command.php
UTF-8
3,258
3.34375
3
[ "MIT" ]
permissive
<?php namespace Smalot\Commander; /** * Class Command * @package Smalot\Commander */ class Command { /** * @var string */ protected $command; /** * @var array */ protected $subCommands = []; /** * @var array */ protected $arguments = []; /** * @var ...
true
cf8d95c72292767acdfc18a9ca22e6611ed28b7c
PHP
BH-M87/sy
/app/models/PsBillIncomeInvoice.php
UTF-8
1,736
2.546875
3
[]
no_license
<?php namespace app\models; use Yii; /** * This is the model class for table "ps_bill_income_invoice". * * @property integer $id * @property integer $income_id * @property integer $type * @property string $invoice_no * @property string $title * @property string $tax_no * @property integer $create_at */ cla...
true
9f20d2f8106afe1002854e871971f553f70c87be
PHP
fileGetContents/bananams
/database/seeds/HotelRoom.php
UTF-8
750
2.578125
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; use Illuminate\Support\Facades\DB; class HotelRoom extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { foreach (range(1, 20) as $value) { DB::table('hotel_room')->insert([ '...
true
8704dc92549c2339806715814fe233bf163212b1
PHP
yuanshaoyue/openapi-sdk-php
/src/BssOpenApi/V20171214/GetPayAsYouGoPrice.php
UTF-8
2,420
2.703125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
<?php namespace AlibabaCloud\BssOpenApi\V20171214; use AlibabaCloud\Rpc; /** * Api GetPayAsYouGoPrice * * @method string getProductCode() * @method string getSubscriptionType() * @method array getModuleList() * @method string getOwnerId() * @method string getRegion() * @method string getProductType() */ cla...
true
8236346e334f2f7d11d023c93e6744ded4428a5f
PHP
Abhimanyu9988/cloudbox
/login.php
UTF-8
1,190
2.953125
3
[]
no_license
<?php include 'conn.php'; $error = ''; // Variable To Store Error Message if (isset($_POST['submit'])) { if (empty($_POST['username']) || empty($_POST['pass'])) { $error = "Username or Password is blank"; } else{ // Define $username and $password $username = $_POST['username']; $passw...
true
af144af157355c7a79bc542870d4cb90739ff978
PHP
ReaGet/reamedia
/php/uploadData.php
UTF-8
3,752
2.5625
3
[]
no_license
<?php $input_name = 'file'; $path = "../uploads/"; $deny = array( 'phtml', 'php', 'php3', 'php4', 'php5', 'php6', 'php7', 'phps', 'cgi', 'pl', 'asp', 'aspx', 'shtml', 'shtm', 'htaccess', 'htpasswd', 'ini', 'log', 'sh', 'js', 'html', 'htm', 'css', 'sql', 'spl', 'scgi', 'fcgi' ); if (isset($...
true
38e5c3e6755096fa78eadfd1b2ba83974f654d5a
PHP
natahon/QuickCode
/Test/Error.php
UTF-8
744
2.859375
3
[ "Apache-2.0" ]
permissive
<?php function getErrorMsg($error_level,$message,$file,$line){ $EXIT =FALSE; switch($error_level){ //提醒级别 case E_NOTICE: case E_USER_NOTICE: $error_type = 'Notice'; break; //警告级别 case E_WARNING: case E_USER_WARNING: $error_type='warning'; ...
true
ddb4795487ebf936b91e71589c4cd31fc90ea7b4
PHP
ValentinNikolaev/elevator
/src/Classes/Queue.php
UTF-8
1,117
3.28125
3
[]
no_license
<?php declare(strict_types=1); namespace Elevator\Classes; use Elevator\Classes\Contracts\QueueInterface; use Elevator\Classes\Contracts\QueueStorageInterface; class Queue implements QueueInterface { /** * @var QueueStorageInterface */ private $storage; /** * Queue construc...
true
f83b52320a12905eb7de2f49b38eea3635abe5ee
PHP
baaane/image-optimizer
/tests/Unit/Action/UploadTest.php
UTF-8
1,916
2.6875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php use Tests\TestCase; use Baaane\ImageOptimizer\Core\Upload; class UploadTest extends TestCase { public function setUp(): void { parent::setUp(); $this->directory = __DIR__. '/_files/'; $_FILES = [ 'filename' => [ 'name' => 'uploaded-image.jpg', ...
true
66b422cee369e96073e6891b124d11fc338cb38d
PHP
Uniceub-Web-Development-2016-2/Jader-Germano
/aula2/request.php
UTF-8
1,571
3.015625
3
[]
no_license
<?php class Request{ private $method; private $protocol; private $ip; private $resource; private $parameters; public function __construct($protocol, $ip, $resource, $parameters, $method){ $this->protocol = $protocol; $this->ip = $ip; $this->resource = $resource; $this->parameters = $parameters; $thi...
true
81b586fa9c97051d1a129771a1572cf3eecd7da3
PHP
hoku/HttpStatusCodeResolver
/src/HttpStatusCodeResolver/HttpHeader.php
UTF-8
1,026
2.9375
3
[ "MIT" ]
permissive
<?php /** * HttpStatusCode resolver. * * @license MIT License * @author hoku */ namespace HttpStatusCodeResolver; require_once(dirname(__FILE__) . '/HttpStatusCode.php'); class HttpHeader { public static function http_response_code($code, $unknownMessage = ...
true
32c127d9c91a70d2202a03ec329836b689eb8e30
PHP
andrewgilmartin/mws_signup
/lib/Volunteer.php
UTF-8
980
3.078125
3
[]
no_license
<?php class Volunteer { private static $nextId = 1; private $id; private $shift; private $contact; private $event; private $nameToProperty = array(); function __construct() { $this->id = Volunteer::$nextId++; } function setId( $id ) { $this->id = $id; } function getId() { return $this->id; }...
true
6a34b16359fdbb4f67542635ff561fce71dac043
PHP
maxy96/doer
/database/seeds/DatabaseSeeder.php
UTF-8
891
2.515625
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; class DatabaseSeeder extends Seeder { /** * Seed the application's database. * * @return void */ public function run() { $this->truncateTablas([ 'servicios', 'tipos_servicios', 'emps', 'users', '...
true
b6f2a7894596bb50c9cbfc74b67cfb8f483604fa
PHP
christianfp/ProyectoSisWeb
/final/CursosDeFormacionContinua/modulos/controlador.php
UTF-8
1,623
3.03125
3
[]
no_license
<?php include_once("./clases/cursos.php"); class ControladorCursos { // Atributos private $cursos; // Metodos public function __construct() { $this->cursos = new Curso(); } public function index() { $resultado = $this->cursos->listar(); return $resultado; } public function crear($sigla...
true
04d78f5f9f94fda50e41bd429fc4ff1b9275624c
PHP
aprbrown/ProjectManagement_GroupWork
/database/factories/ModelFactory.php
UTF-8
2,319
2.53125
3
[]
no_license
<?php use Faker\Generator as Faker; /* |-------------------------------------------------------------------------- | Model Factories |-------------------------------------------------------------------------- | | This directory should contain each of the model factory definitions for | your application. Factories pro...
true
125845dbab39642c23fb6a6b6833ef0ec4ab99a1
PHP
tronghieu/flywheel-framework
/src/Flywheel/Event/Dispatcher.php
UTF-8
4,648
2.984375
3
[]
no_license
<?php namespace Flywheel\Event; class Dispatcher implements IDispatcher { private $_listeners = array(); private $_sorted = array(); /** * @see IDispatcher::dispatch * * @api */ public function dispatch($eventName, \Flywheel\Event\Event $event = null) { if (null === $eve...
true
19bf25a91a21ea880ec4f3978be8ce3260165cca
PHP
PeeHaa/HexDump
/src/HexDump/Http/RequestData.php
UTF-8
1,965
2.984375
3
[ "MIT" ]
permissive
<?php /** * Interface for HTTP request classes * * PHP version 5.4 * * @category HexDump * @package Http * @author Pieter Hordijk <info@pieterhordijk.com> * @copyright Copyright (c) 2013 Pieter Hordijk * @license http://www.opensource.org/licenses/mit-license.html MIT License * @version 1.0.0...
true
431a7c8e795a00654aaa93056f3b96fa4203d5a7
PHP
1194331476/PolicePeople
/model/user.php
UTF-8
882
3.1875
3
[]
no_license
<?php class user{ private $username; private $truename; private $sex; /** * @return the $username */ public function getUsername() { return $this->username; } /** * @return the $truename */ public function getTruename() { return $t...
true
3ae5ba0459bf01d67cb2b6bfbfa9ea422222ac75
PHP
felixmetallica/gestionDelivery
/controladores/recetas.controlador.php
UTF-8
7,424
2.578125
3
[]
no_license
<?php class ControladorRecetas{ /*============================================= MOSTRAR RECETA =============================================*/ static public function ctrMostrarRecetas($item, $valor){ $tabla1 = "Receta"; $tabla2 = "Producto"; $respuesta = ModeloRecetas::mdlMost...
true
0a4c96b8226751faf835c1ee7a4241bfc99c6cdb
PHP
Zhao-666/MDYaf
/application/controllers/Mail.php
UTF-8
1,332
2.609375
3
[ "Apache-2.0" ]
permissive
<?php /** * Created by PhpStorm. * User: Next * Date: 2018/2/18 * Time: 12:38 */ class MailController extends Yaf_Controller_Abstract { public function indexAction() { } public function sendAction() { $submit = $this->getRequest()->getQuery("submit", "0"); if ($submit != "1")...
true
6d906466ad4864b02faa1b43d2aa03a4d921a6e6
PHP
awwab1384/php-cli
/restApi.php
UTF-8
1,422
2.578125
3
[ "MIT" ]
permissive
<?php require_once('vendor/autoload.php'); use Spatie\ArrayToXml\ArrayToXml; $file_name = "products.json"; if(!file_exists($file_name))return; $string = file_get_contents($file_name); $fData = $data = json_decode($string, true); $filter_by_name = $filter_by_pvp = false; $values = array('f_name:','f_pvp:'); $values ...
true
6ffd59dc41b999566f53ca1e064337fb5bb1f49b
PHP
yiyuanjian/asf
/Asf/ViewAction.php
UTF-8
407
2.71875
3
[]
no_license
<?php abstract class Asf_ViewAction { protected static function output($templateFilename, $data = array(), $autoExit = 1) { $tpl = new Asf_Template($templateFilename); $tpl->display($data); return $autoExit && exit(); } protected static function display($templateFilenam...
true
426fb67459c4f8cdb8ea119ff428720d7a443a09
PHP
yoonani/CBT
/include/frmValid.php
UTF-8
530
3.015625
3
[]
no_license
<? class frmValid { /* function __construct($historyBack = 1) { $this->historyBack = $historyBack; } */ function lengthlt($str, $length) { if(strlen(trim($str)) < $length) return true; else return false; } function lengthgt($str, $length) { if(strlen(trim($str)) > $length) return true; e...
true
895638fe4017ccf7ad67f997e31dc7a7b112deb9
PHP
WendyGraphex/jobs-application
/modules/employees/frontend/locales/Pagers/EmployeeControllerPager.class.php
UTF-8
742
2.59375
3
[]
no_license
<?php class EmployeeControllerPager extends Pager { function __construct() { parent::__construct(array("Employee","EmployeeContent","EmployeeContentI18n")); } protected function fetchObjects($db) { while ($items = $db->fetchObjects()) ...
true
a4a68d415d0a73c936feba33fa90563ec3b5928a
PHP
iamhefang/php-mvc
/src/link/hefang/mvc/views/ErrorView.class.php
UTF-8
828
2.5625
3
[ "MIT" ]
permissive
<?php namespace link\hefang\mvc\views; defined('PHP_MVC') or die("Access Refused"); use link\hefang\helpers\CollectionHelper; use link\hefang\helpers\ObjectHelper; class ErrorView extends BaseView { private $code = 200; /** * ErrorView constructor. * @param int $code * @param string|null $message */ pu...
true
285690172508cb1b5a1569909655bb062f687e41
PHP
chrislim1914/coinslide
/app/Http/Controllers/UserInfoController.php
UTF-8
3,525
2.546875
3
[]
no_license
<?php namespace App\Http\Controllers; use App\UserInfo; use App\Http\Controllers\Controller; use Illuminate\Support\Facades\DB; use Illuminate\Http\Request; use App\Http\Controllers\UtilityController; class UserInfoController extends Controller { /** * method to update userinformations collections * to...
true
e31e7f9f3d6106535dd6a4c1133196cbfffc9f46
PHP
BhavyaKalakata/Department-web-appplication
/backend/reg.php
UTF-8
752
2.546875
3
[]
no_license
<?php session_start(); $conn = mysqli_connect("localhost","root","","userdb"); $username = $_POST['name']; $email = $_POST['email']; $pwd = $_POST['psw']; $query = "select * from Users where name='$username'"; $check_result = mysqli_query($conn, $query); if(mysqli_num_rows($check_result) == ...
true
b88b5d04c2052ce74b4bdbfdefa48f431ca68ffa
PHP
instantjay/crontasksphp
/src/CronTask.php
UTF-8
2,401
2.921875
3
[ "MIT" ]
permissive
<?php namespace instantjay\crontasksphp; use Monolog\Logger; class CronTask { protected $callable; protected $successCallable; protected $failureCallable; protected $executed; protected $startTime; protected $endTime; protected $duration; protected $logger; /** * CronTask ...
true
e38697a5281b163b022160cb359fd787216606a5
PHP
sondy94/php-techdegree-project01
/inc/functions.php
UTF-8
1,656
3.546875
4
[]
no_license
<?php // PHP - Random Quote Generator // Below is a multidimensional array containing a list of quotes, sources, citations and years. $quotes = [ [ "quote" => "The greatest glory in living lies not in never falling, but in rising every time we fall.", "source" => "Nelson Mandela" ], [ "quote" => "The way...
true
03240313a5be8f0edf4eb9b06df7abc926617cc4
PHP
DaianaARuiz/E-commerce-
/FASE_INICIAL/functions.php
UTF-8
1,384
2.65625
3
[]
no_license
<?php function mostrarMensajes($rta){ switch($rta) { case "0x001": $mensaje="<span style=color:red>Nombre invalido</span>"; break; case "0x002": $mensaje="<span style=color:red>Email invalido</span>"; break; case "0x003": $mensaje="<span style=color:red>Mensaje Invalido</span>"; br...
true
add8ca8c52ac6683ba47ad558468b720c3c4ffbb
PHP
smedaer/info-h303_projet
/Horeca/signIn.php
UTF-8
2,238
2.828125
3
[]
no_license
<?php include "header.php"; include "connection.php"; $error = false; $errorMsg = null; $email = isset($_POST['email']) ? $_POST['email'] : null; $password = isset($_POST['password']) ? $_POST['password'] : null; if ($email === null) { $error = true; } else { $statement = $db->prepare("SELECT User_ID,PSWD,Is_...
true
a8eea31a21ed8c2db949901d064c88c64c2fd768
PHP
prasanth-spark/login-and-register-multi-auth
/src/App/Listeners/WelcomeNewUserListener.php
UTF-8
693
2.53125
3
[ "MIT" ]
permissive
<?php namespace Sparkouttech\UserMultiAuth\App\Listeners; use Sparkouttech\UserMultiAuth\App\Jobs\WelcomEmailJob; use Sparkouttech\UserMultiAuth\App\Mail\WelcomeNewUserMail; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Support\Facades\Mail; use Log; class WelcomeNewUserListener implements ShouldQueue {...
true
7256c5ded9d7d4f1558b77745a5a1c7cf9c6f11e
PHP
AminaInf/GPGISS
/Compagnie/modifierCompagnie.php
UTF-8
2,561
2.71875
3
[]
no_license
<html> <head> <meta charset="utf-8"> <title>modifier une compagnie</title> <meta charset="utf-8"> <link rel="stylesheet" href="stylec.css"> </head> <body> <div id ="conteneur"> <?php session_start(); /* if(!isset($_SESSION['login'])) { header("location:authentification.php?auth=Veuillez vous authentifier");...
true
876df4c1016d477c21e9f790b061e24b9d14e7f7
PHP
hulume/joydong
/app/Stario/Wesite/Repository/Eloquent/ArchiveRepo.php
UTF-8
441
2.734375
3
[]
no_license
<?php namespace Star\Wesite\Repository\Eloquent; use App\Archive; use Star\ICenter\Repository\Eloquent\BaseRepository; class ArchiveRepo extends BaseRepository { protected $model; // 定义字段用于前台vuetable检索 protected $fieldSearchable = [ 'name', 'mobile', 'identify', ]; /** * 必须在构造器中声明一下使用的模型 */ public func...
true
e49c1c72b38ca2c7c4919a7775e9fbd9a36b506e
PHP
googleads/googleads-php-lib
/src/Google/AdsApi/AdManager/v202302/CreativeAsset.php
UTF-8
4,677
2.625
3
[ "Apache-2.0" ]
permissive
<?php namespace Google\AdsApi\AdManager\v202302; /** * This file was generated from WSDL. DO NOT EDIT. */ class CreativeAsset { /** * @var int $assetId */ protected $assetId = null; /** * @var string $assetByteArray */ protected $assetByteArray = null; /** * @var str...
true
856286233fc84e3db0582711ab9f3519edc2d530
PHP
othercodes/rest
/src/Modules/Decoders/XMLRPCDecoder.php
UTF-8
721
2.640625
3
[ "MIT" ]
permissive
<?php namespace OtherCode\Rest\Modules\Decoders; /** * Class XMLRPCDecoder * @author Unay Santisteban <usantisteban@othercode.es> * @package OtherCode\Rest\Modules\Decoders */ class XMLRPCDecoder extends \OtherCode\Rest\Modules\Decoders\BaseDecoder { /** * The content type that trigger the decoder *...
true
ae934e8e3f92260b5e76a1dd16b5c680cc822cbf
PHP
lushaoming/paypal
/src/Shannon/PayPal/Payment.php
UTF-8
7,941
2.59375
3
[]
no_license
<?php /** * Class Payment * @author 卢绍明<lusm@sz-bcs.com.cn> * @date 2019/8/29 */ namespace Shannon\PayPal; use PayPal\Api\Amount; use PayPal\Api\Details; use PayPal\Api\Item; use PayPal\Api\ItemList; use PayPal\Api\Payer; use PayPal\Api\PaymentExecution; use PayPal\Api\RedirectUrls; use PayPal\Api\Transaction; ...
true
061927e06f37ffbe850579208ebc9eb20394181c
PHP
GlorianB/Camagru
/app/models/CommentModel.class.php
UTF-8
1,791
2.640625
3
[]
no_license
<?php class CommentModel { private $comment_id; private $user_id; private $image_id; private $content; public function __construct() {} public function add(UserModel $user) { ORM::getInstance()->insert("comment", ["user_id", "image_id", "content"], ["user_id" => $this->get...
true
2ea7c13caa29f8d140431e7b6f7c0d23246c4198
PHP
EPAMHackathons/2017-mogilev-hashtag
/include/misc/images.inc.php
UTF-8
3,111
2.625
3
[]
no_license
<? function resize_im($dir, $fname) { $res = false; $im = imagecreatefromstring(file_get_contents(DOC_ROOT . $dir . '/' . $fname)); if (!$im) return false; $w = $imw = imagesx($im); $h = $imh = imagesy($im); $th_w = $w; $th_h = $h; $move_w = $move_h = 0; $img_maxsize = 300; $t...
true
8d0b06dcb95aaa076f3bc198d63db3469c26696d
PHP
KhinZinZinThinn/phpPos
/pos/user_config.php
UTF-8
3,444
2.734375
3
[]
no_license
<?php include 'db_config.php'; session_start(); class User extends DB{ public function register($name,$email,$password,$password_again){ if($name){ if($email){ $sql_email="select email from users where email='$email'"; $db_email=$this->db->query($sql_email)->fet...
true
eebf1bbf6603fcab95cc6fe8587502db7576a688
PHP
tbauer2811/gnd-wikibase-converter
/src/GndItem.php
UTF-8
1,558
3.234375
3
[]
no_license
<?php declare( strict_types = 1 ); namespace DNB\WikibaseConverter; /** * Information to construct a single Wikibase Item from. */ class GndItem { public const GND_ID = 'P150'; /** @var array<string, array<int, GndStatement>> */ private array $map = []; public function __construct( GndStatement ...$gndState...
true
db65fcc551fc3577d95ee650345566363a6e1f44
PHP
insafzakariya/kiki_cms_v2-
/core/app/Http/Controllers/SolrUploadController.php
UTF-8
17,456
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; ini_set('max_execution_time', 0); use App\Http\Controllers\Controller; use ArtistManage\Models\Artist; use Exception; use Illuminate\Http\Request; use Log; use PlaylistManage\Models\AudioPlaylist; use ProductManage\Models\Product; use SongManage\Models\Songs; class SolrUploadCon...
true
e8a2cfaaacf354951ffe74a905fd047b51064e1e
PHP
lobostome/FurryBear
/src/FurryBear/Http/Adapter/Curl.php
UTF-8
3,281
2.90625
3
[ "MIT" ]
permissive
<?php /** * FurryBear * * PHP Version 5.3 * * @category Congress_API * @package FurryBear * @author lobostome <lobostome@local.dev> * @license http://opensource.org/licenses/MIT MIT License * @link https://github.com/lobostome/FurryBear */ namespace FurryBear\Http\Adapter; use FurryBear\Common\Exc...
true
3cfc7460513c40fdcf3a2d0438dc58706ad6e2da
PHP
richard5682/PrototypeAngular
/backend/lib/Session/SessionLibrary.php
UTF-8
1,578
2.828125
3
[]
no_license
<?php $GLOBAL_TIMEOUT = 3600; $TIMEOUT_SYNTAX = "_expiration"; session_start(); //USE TO CHECK TOKEN $token is the name of the Session variable function checkToken($token){ if(checkTimeout($token)){ return false; }else{ if(isset($_SESSION[$token])){ if($_SESSION[$token] == $_GET['token']){ retur...
true
aa1525089fb29186a83abbfd0882d1c79e26db97
PHP
bootiq/service-layer
/src/Response/ResponseInterface.php
UTF-8
494
2.5625
3
[ "Apache-2.0" ]
permissive
<?php namespace BootIq\ServiceLayer\Response; use Psr\Http\Message\ResponseInterface as PsrResponseInterface; interface ResponseInterface { /** * @return bool */ public function isError(): bool; /** * @return int */ public function getHttpCode(): int; /** * @return str...
true
b28b11549f638942bace26fe60e0c406b47d5d85
PHP
ra5k/handlebars
/src/Script/Memory.php
UTF-8
1,247
2.734375
3
[ "MIT" ]
permissive
<?php /* * This file is part of the Ra5k Handlebars implementation * (c) 2019 Ra5k <ra5k@mailbox.org> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Ra5k\Handlebars\Script; // [imports] use Ra5k\Handlebars\{Script}; ...
true
cf803c8d4f2311464cc484cd7a3823ae49633c4c
PHP
marfrancis/LojaVirtualComMySQL
/produto.php
UTF-8
1,563
2.515625
3
[]
no_license
<?php include_once 'conexao.php'; ?><!DOCTYPE html> <html lang="pt"> <?php include"head.php"; ?> <body> <?php include"header.php"; ?> <?php $produto = new Produto(['id'=>$_GET['produto']]); $produtos = Produto::pesquisarUm($produto); if(sizeof($produtos) != 1) die("Resultado não encontrado"); $produto = $p...
true
2fb4c7492191f15c7964e03cc7e6260601714058
PHP
estefansilvi/php-snacks-b1
/index.php
UTF-8
1,883
2.953125
3
[]
no_license
<!DOCTYPE html> <html lang="en" dir="ltr"> <head> <meta charset="utf-8"> <title></title> </head> <body> <!-- snack-1 --> <?php echo '<h1><b>Snack 1 - Partite di Basket di un’ipotetica tappa del calendario</b></h1>'; $matches = [ [ 'homeTeam' => 'Dinamo Sassari', 'gu...
true
d3c33e58925db816d4914b45df4a81843dfa4ab9
PHP
kaaterskil/phprt
/KM/IO/ObjectInput.php
UTF-8
3,142
2.6875
3
[]
no_license
<?php /** * Copyright (c) 2009-2014 Kaaterskil Management, LLC * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, c...
true
6742678cc75b472d2825c1bd95af162984f0014e
PHP
ontzuevanhussen/bariblocksites
/modules/backup-database/backup.php
UTF-8
2,404
2.703125
3
[]
no_license
<?php session_start(); // memulai session // Mengecek AJAX Request if (isset($_SERVER['HTTP_X_REQUESTED_WITH']) && ( $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest' )) { // panggil file "config.php" untuk koneksi ke database require_once "../../config/config.php"; // panggil file "fungsi_backup_...
true
38962c162fe70335a342701262bdb87bb8e4572e
PHP
shama/oven
/Console/Command/InitShell.php
UTF-8
2,433
2.734375
3
[ "MIT" ]
permissive
<?php App::uses('OvenAppShell', 'Oven.Console/Command'); /** * Init Shell * Inits Oven and creates a Config/database.php if it does not exist * * @package Oven * @author Kyle Robinson Young <kyle at dontkry.com> * @copyright 2012 Kyle Robinson Young */ class InitShell extends OvenAppShell { /** * uses * * ...
true
7c2a295b58147f3b7512f1f418fb2c22eb6a0c6a
PHP
jovijovi-john/PHP7
/Aula-29/manipular_arrays.php
UTF-8
4,330
3.90625
4
[]
no_license
<html> <head> <meta charset="UTF-8"> <title>Aula 29 - Funções Nativas para manipulação de arrays</title> </head> <body> <?php /* * => is_array(array) Verifica se o parametro é um array *...
true
efd6b5242c2255e6fb8be64877ad015c8c5f4107
PHP
baguzwahyu/bitcoin-faucet-rotator-v2
/app/Listeners/Users/UpdateLastLoggedOutAt.php
UTF-8
1,119
2.59375
3
[ "LicenseRef-scancode-warranty-disclaimer", "MIT" ]
permissive
<?php namespace App\Listeners\Users; use App\Helpers\Constants; use Carbon\Carbon; use Illuminate\Auth\Events\Logout; use Illuminate\Http\Request; /** * Class UpdateLastLoggedOutAt * * @author Rob Attfield <emailme@robertattfield.com> <http://www.robertattfield.com> * @package App\Listeners\Users */ class Upda...
true
fd32652dec5f1850f3701ef7ab64ec2031695b59
PHP
LourivalJunior27/P2Upgrade
/P2Upgrade/pages/login/ler.php
UTF-8
384
2.984375
3
[]
no_license
<?php /** * Essa função faz a leitura da tabela usuários. * @param string $login * @return object */ function ler($login) { $sql = 'select * from usuarios where login = :login'; $connection = connection(); $result = $connection->prepare($sql); $result->bindValue(':login', $login); $result->...
true
e9f793fda96ca06b716057aad4de7a7750c1680e
PHP
mdx-dev/li3_hierarchy
/extensions/inheritance/Parser.php
UTF-8
5,760
2.75
3
[ "BSD-2-Clause" ]
permissive
<?php /** * Li3_Hierarchy Parser: Parses final template and replaces "blocks" with `block` * from the top level block in the `BlockSet`. * * @copyright Copyright 2012, Josey Morton (http://github.com/joseym) * @license http://opensource.org/licenses/bsd-license.php The BSD License */ /** * Todo List:...
true
59dd9ed04e125f56696bd14eae3bf21d76af9417
PHP
david14ka/ID23Pay
/app/Models/MyStudents.php
UTF-8
430
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Models; use CodeIgniter\Model; class MyStudents extends Model { protected $DBGroup = 'default'; protected $table = 'students'; protected $primaryKey = 's_id'; protected $returnType = 'array'; protected $useTimestamps = true; protected $allowedFields=['s_name','s_date',...
true
320958cf9ee5094f1c7f61d23691d541d2f160f5
PHP
dungki/T1907A-Laravel
/database/seeds/DatabaseSeeder.php
UTF-8
712
2.796875
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; class DatabaseSeeder extends Seeder { /** * Seed the application's database. * * @return void */ public function run() { $timestamp = date('Y-m-d H:i:s'); // $this->call(UsersTableSeeder::class); // \DB::table('students')->insert([ // 'fullname' => 'TRAN VAN...
true
dd8982bc44b8ebabb373e24f2944ed8288c4bdd6
PHP
hcdisat/money
/src/Monetary/Exceptions/InvalidCurrencyOperationException.php
UTF-8
671
3.125
3
[]
no_license
<?php namespace HcDisat\Monetary\Exceptions; class InvalidCurrencyOperationException extends ExceptionBase { protected $message = '"%s currency cannot be added with %s currency'; /** * InvalidCurrencyOperationException constructor. * @param string $currentCurrency * @param string $otherCurren...
true
fc5247525574ab0896568b582897ae06367377ad
PHP
thecodingmachine/safe
/generated/pcre.php
UTF-8
12,971
3.265625
3
[ "MIT" ]
permissive
<?php namespace Safe; use Safe\Exceptions\PcreException; /** * Returns the array consisting of the elements of the * array array that match the given * pattern. * * @param string $pattern The pattern to search for, as a string. * @param array $array The input array. * @param int $flags If set to PREG_GREP_INV...
true
678d473e2f8656419803062ebd53792ec547d863
PHP
iborodikhin/php-glue
/src/Glue/Storage/Index.php
UTF-8
2,439
3.09375
3
[]
no_license
<?php namespace Glue\Storage; class Index extends AbstractFile { /** * File extension * * @var string */ protected $extension = 'idx'; /** * Save meta-data to index * * @param string $key * @param integer $offset * @param integer $le...
true
4dcd6c525c4843398d44119968eb42fb7ca1f970
PHP
hungvt13/restaurant-admin
/api/product/modTable.php
UTF-8
1,269
2.640625
3
[]
no_license
<?php // required headers header("Access-Control-Allow-Origin: *"); header("Content-Type: application/json; charset=UTF-8"); header("Access-Control-Allow-Methods: POST, GET, OPTIONS, DELETE, PUT"); header("Access-Control-Max-Age: 3600"); header("Access-Control-Allow-Headers: Content-Type, Access-Control-Allow-Headers, ...
true
5689e61fe96863f9b1e406e7207156c8a4d4f69c
PHP
enanlara/academicoweb
/Controllers/cursocontroller.class.php
UTF-8
3,305
2.90625
3
[]
no_license
<?php /** * Classe Controller de Cursos * */ require_once "../Views/cursoview.class.php"; require_once "../Models/cursomodel.class.php"; require_once "../Ados/cursoado.class.php"; class CursoController { private $cursoView = null; private $cursoModel = null; private $cursoAdo = null; private $acao...
true
c426228729eecf7339dfa20635297454a091fe02
PHP
loyalpy/dns
/1dns/model/classes/cls_ipv4.php
UTF-8
1,357
3.09375
3
[]
no_license
<?php // IPv4 class class cls_ipv4{ var $address; var $netbits; var $endaddress; //-------------- // Create new class function cls_ipv4($address,$endaddress,$netbits=1){ $this->address = $address; $this->netbits = $netbits; $this->endaddress = $endaddress; } //-------------- // Return th...
true
750918812b6ce492a6ccec476c0d8a1634f4a7f2
PHP
niko-afv/conquistadoresrejassur.cl
/apps/models/sub_categoria_flujo_caja.php
UTF-8
3,301
2.65625
3
[]
no_license
<?php /* * To change this template, choose Tools | Templates * and open the template in the editor. */ /** * Description of sub_categoria_flujo_caja * * @author nks */ class Sub_Categoria_Flujo_Caja extends CI_Model{ private $id; private $nombre; private $flujos; private $periodos = array(...
true
f922bca80c7a840e7bbf3453f7a10ccb2ee70dd4
PHP
vance-page/Code-Help
/Admin/APP/Common/Controller/BaseController.class.php
UTF-8
2,107
2.578125
3
[]
no_license
<?php namespace Common\Controller; use Think\Controller; /** * Created by PhpStorm. * User: Administrator * Date: 2017/8/29 * Time: 11:55 */ class BaseController extends Controller { public function __construct() { parent::__construct(); if (method_exists($this, '__init')) { ...
true
3d35bd2bbaa896eaba73a6e776f4c0a1ea704c66
PHP
swoole/swoole-src
/tests/swoole_table/del.phpt
UTF-8
1,395
2.65625
3
[ "Apache-2.0" ]
permissive
--TEST-- swoole_table: clear all columns --SKIPIF-- <?php require __DIR__ . '/../include/skipif.inc'; ?> --FILE-- <?php require __DIR__ . '/../include/bootstrap.php'; $table = new Swoole\Table(1024, 0.25); $table->column('state', Swoole\Table::TYPE_INT); $table->column('remainLen', Swoole\Table::TYPE_INT); $table->co...
true
d577040fbfcd2b713a2717cb1b593a5dc8454df9
PHP
carlomagno83/souko
/app/controllers/UsersController.php
UTF-8
3,510
2.625
3
[ "MIT" ]
permissive
<?php class UsersController extends BaseController { /** * User Repository * * @var User */ protected $user; public function __construct(User $user) { $this->user = $user; } /** * Display a listing of the resource. * * @return Response */ public function index() { $users = $this->user->a...
true
965bd4929605c8ad42bedb7cb4f26836a11f3397
PHP
davidredsox/hitmaps
/api/BusinessLogic/Authentication/RegisterNewUserCommand.php
UTF-8
1,355
2.8125
3
[ "MIT" ]
permissive
<?php namespace BusinessLogic\Authentication; use BusinessLogic\Emailer; use DataAccess\Models\User; use DataAccess\Models\UserRole; use Doctrine\ORM\EntityManager; class RegisterNewUserCommand { private $entityManager; private $emailer; public function __construct(EntityManager $entityManager, ...
true
46bc624fc73dae1d50e302d6fe2f4515151817f4
PHP
ketianlin/mymvc
/test/demo01/d03.php
UTF-8
1,106
3.421875
3
[]
no_license
<?php //第一步:创建随机字符串 //1.1 创建字符数组 $all_array = array_merge(range('a', 'z'), range('A', 'Z'), range('0', '9'));//所有字符数组 $div_array = ['1','l','0','o','O','I','9','g']; //去除容易混淆的字符 $array = array_diff($all_array, $div_array);//剩余的字符数组 unset($all_array, $div_array);//销毁不需要使用的数组 //1.2 随机获取4个字符 $index = array_rand($array, 4...
true
7b80b03386d7f804e7f6efc89ae7cd39c2e04172
PHP
wandersonwhcr/balance
/module/Balance/src/Balance/View/Table/Table.php
UTF-8
4,813
2.78125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace Balance\View\Table; use ArrayIterator; use Traversable; use Zend\Form\Form; use Zend\Stdlib\Hydrator\HydratorInterface; /** * Tabela para Renderização de Elementos em Visualização */ class Table { /** * Formulário * @type Form */ protected $form = null; /** * Título...
true
192af26f7036a54bf357d6ccde21802255c840d4
PHP
xiangxiang0826/phpunit
/application/models/NewsCategory.php
UTF-8
4,912
2.578125
3
[]
no_license
<?php /** * 扩展分类Model * * @author xiangxiang<xiangxiang@wondershare.cn> * @date 2014-10-10 */ class Model_NewsCategory extends ZendX_Model_Base { /** * 设置是否允许删除 * * @var boolean */ public $isDelete = TRUE; protected $_schema = 'website'; protected $_table = 'EZ_NEWS_CATEGORY'; protected $_map_tab...
true
1f1c5fd327d26fe285fea0f305206eb5da8f5061
PHP
Lamapups/heiha
/www/uploadaction.php
UTF-8
9,213
2.703125
3
[]
no_license
<?php session_start(); require('password.php'); try { // including the file containing definitions for the regular expressions include('regexp.php'); // filtering the POST data using the function filter_input // saving the data given by the user into simpler variables, e. g. $username // and validating type etc...
true