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
4a1db2e55d05692b2daf37bfc46f8be19a865ce1
PHP
exts/configured
/src/ConfigStorage.php
UTF-8
677
2.84375
3
[ "MIT" ]
permissive
<?php namespace Exts\Configured; use Exts\Configured\Storage\StorageInterface; /** * Class ConfigStorage * @package Exts\Configured */ class ConfigStorage { /** * @var StorageInterface */ private $storageInterface; /** * ConfigStorage constructor. * @param StorageInterface $storage...
true
c8fe08aa64fc1b558430e2bbd6a7a75793dfbc0b
PHP
yannyesteban/sevian2019
/BK/class/Menu.php
UTF-8
4,176
2.546875
3
[]
no_license
<?php namespace Sevian; class MenuItem extends HTML implements \JsonSerializable{ public $tagName = "li"; public $caption = false; private $_menu = false; private $_submenu = false; public $action = false; public $events = array(); public $classImage = false; public $id = false; public $index = false; publi...
true
2ca1e45fc58e870c294f601c11ff31fbe5bddec3
PHP
TsubasaReader/TsubasaServer
/rss.php
UTF-8
740
2.921875
3
[ "Apache-2.0" ]
permissive
<?php // atom encapsulation utilities. // (c) sebastian lin, 2018 function Feed($title, $link, $body) { return '<?xml version="1.0" encoding="UTF-8" ?> <feed xmlns="http://www.w3.org/2005/Atom"> <title>'. $title . '</title> <link href="' . $link . '" /> ' . $body . ' </feed> '; } function Entry($titl...
true
703c237454e2ba3f796426c335fa194764b6133d
PHP
sumanrajinbox/malhipur2
/mark/config.php
UTF-8
656
2.671875
3
[]
no_license
<?php // function __autoload($class_name) // { // if (file_exists('../lib/classes/' . $class_name . '.php')) { // require_once('../lib/classes/' . $class_name . '.php'); // } else { // echo ("Unable to load or File Not exist $class_name.php"); // die(); // } // } spl_autoload_regis...
true
2d510d049df5b106b1253b7c8fd56b800e605268
PHP
ganapathyhh/serendipity
/admin/customize.php
UTF-8
4,258
2.5625
3
[]
no_license
<?php $current = "Customize"; require_once 'header.php'; ?> <div class = "cell"> <h3>Customize</h3> </div> <div class = "cell"> <div class = "grid-x grid-margin-x"> <?php $themeDir = isset($_SESSION['theme-name'])?$_SESSION['theme-name']:themeName(); if(isset($_POST[...
true
3faf846a5997f4dad2349f73f823efc3012be549
PHP
make-it-all/website
/app/controllers/sessions_controller.php
UTF-8
1,097
2.5625
3
[]
no_license
<?php class SessionsController extends ApplicationController { public $layout = 'form_layout'; public function new() { // $user = User::new(['name'=>'Henry Morgan', 'email'=>'henry@cd2solutions.co.uk', 'password'=>'pass123', 'is_specialist'=>true]); // $user->save(); } public function create() { ...
true
b9749b5bbb2037be1d1f7290fdfec28c5728dc21
PHP
SlawomirOlchawa/examples
/example2/classes/Tag/Form/Hidden.php
UTF-8
350
2.734375
3
[]
no_license
<?php /** * @author Sławomir Olchawa <slawooo@gmail.com> */ /** * HTML Input hidden * * @property string $type */ class Tag_Form_Hidden extends Tag_Form_Input { /** * @param string $name * @param null|string $value */ public function __construct($name, $value=null) { parent::__construct($name, $...
true
2787682598c1587c3ddb275b962406083f1b15c0
PHP
liquiddesign/eshop
/src/DB/DeliveryDiscount.php
UTF-8
1,141
2.734375
3
[]
no_license
<?php declare(strict_types=1); namespace Eshop\DB; /** * Slevova dopravu * @table */ class DeliveryDiscount extends \StORM\Entity { /** * Sleva na dopravu v měně * @column */ public ?float $discountValue; /** * Sleva na dopravu v měně s DPH * @column */ public ?float $discountValueVat; /** ...
true
521cd1a345933ce72908213b210201b8b1f47c95
PHP
JaniceStefa/proyecto-seguimiento
/Codigo Fuente/modelo/m_producto.php
UTF-8
1,135
2.796875
3
[]
no_license
<?php class M_Producto{ private $db; private $productos; // Conexion con Base de Datos public function __construct(){ require_once("conectar_bd.php"); $this->db=Conectar::conexion(); $this->productos=array(); } // Agregar Nuevo Producto public function Agregar_Producto($descripcion,...
true
946ee751b4772d1d0b231e767cce40b65c345309
PHP
shomisha/stubless
/src/ImperativeCode/ControlBlocks/IfBlock.php
UTF-8
2,477
2.65625
3
[ "MIT" ]
permissive
<?php namespace Shomisha\Stubless\ImperativeCode\ControlBlocks; use PhpParser\Node\Stmt\Else_; use PhpParser\Node\Stmt\ElseIf_; use PhpParser\Node\Stmt\If_; use Shomisha\Stubless\Abstractions\ImperativeCode; use Shomisha\Stubless\Values\AssignableValue; class IfBlock extends ImperativeCode { private const ELSEIF_KE...
true
f7776e160e27aac908952ef878c08cb8777c2493
PHP
yangruofeng/wechat
/test/class/test_owen.class.php
UTF-8
2,806
2.75
3
[]
no_license
<?php /** * Created by PhpStorm. * User: owen * Date: 2018/9/26 * Time: 下午5:20 */ class test_owenClass { // static function getCODofTeller($teller_id) // { // return userClass::getPassbookBalanceOfUser($teller_id); // } /* * 新增用户 * $p 用户数据 //新增的时候直接操作database */ static fun...
true
fbc4cc646b872566847008e670108e0e9d838cac
PHP
MarinaMeza/Prog3_2018
/Clase12/prueba/clases/mediaApi.php
UTF-8
4,255
2.875
3
[]
no_license
<?php require_once 'media.php'; require_once 'IApiUsable.php'; class mediaApi extends Media implements IApiUsable{ public function CargarUno($request, $response, $args) { $objDelaRespuesta= new stdclass(); $ArrayDeParametros = $request->getParsedBody(); //var_dump($ArrayDeParametr...
true
b9c9b2e8164f2805fc9d1c586110e9570aa04acf
PHP
lcyoong/booqnow
/app/Booqnow/Filters/Addonfilter.php
UTF-8
2,815
2.609375
3
[ "MIT" ]
permissive
<?php namespace Filters; use Carbon\Carbon; class AddonFilter extends QueryFilter { /** * Resource type filter * @param string $value * @return Builder */ public function resourceType($value) { if (!empty($value)) { $this->joins[] = 'joinResources'; ...
true
b39ce1cd675fd42f53a7cb003a963f58380ea6b3
PHP
xylon1/Exam
/system/app/Http/Controllers/RoadAccessController.php
UTF-8
1,289
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Models\RoadAccess; use Illuminate\Http\Request; class RoadAccessController extends Controller { private $roadaccess; public function __construct(RoadAccess $roadaccess) { $this->roadaccess=$roadaccess; } public function index() { ...
true
a00eb0a7c181ffceb9eb2d5a4da27a1c328f2207
PHP
betitoglez/itinerary
/tests/Itinerary/ItineraryTest.php
UTF-8
3,600
2.828125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: betit * Date: 29/05/2017 * Time: 16:15 */ use Itinerary\Cards\Card; use Itinerary\Places\Cities\{ Madrid, London, Barcelona, Dubai, Rome }; use Itinerary\Places\Sites\{ GreatWall, EmpireState }; use Itinerary\Transports\{ Airplane, Bus, Car, Shi...
true
70facbd5c7adfe2fd0571a91c6fe194962739bf5
PHP
rtmatt/csvimport
/src/CSVImportDirectoryReader.php
UTF-8
732
2.78125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: mattemrick * Date: 11/27/15 * Time: 1:24 PM */ namespace RTMatt\CSVImport; use RTMatt\CSVImport\Exceptions\CSVDirectoryNotFoundExcepton; class CSVImportDirectoryReader { public static function readDirectory($directory) { if ( ! realpath($directory)) { ...
true
4f6cbd37d9b4e71d5bc9768233d52af44d365893
PHP
Gord80/Semaine4
/VerificationConnectionBack.php
UTF-8
2,951
2.734375
3
[]
no_license
<?php try { $db = new PDO('mysql:host=localhost;charset=utf8;dbname=jarditou', 'root', ''); } catch (Exception $e) { echo 'erreur : ' . $e->getMessage() . '<br>'; echo 'N° : ' . $e->getCode(); die('fin du script'); } /* Accès à la connexion */ if (isset($_POST['signIn'])) { // Vida...
true
6dd65e5a023da943d704b0cad27d6e55bf2515b1
PHP
andrelins/yii2-application
/models/Ddd.php
UTF-8
1,129
2.65625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use Yii; /** * This is the model class for table "ddd". * * @property integer $id * @property integer $ddd * @property string $name * * @property Calls[] $calls * @property Calls[] $calls0 */ class Ddd extends \yii\db\ActiveRecord { /** * @inheritdoc */ public s...
true
6d232880dc5a514a88b5d1b49126b2ec9402aed3
PHP
MusheAbdulHakim/CoinGeckoApi
/src/Api/Companies.php
UTF-8
487
2.65625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace MusheAbdulHakim\CoinGecko\Api; use MusheAbdulHakim\CoinGecko\Request; /** * Get public companies bitcoin or ethereum holdings */ class Companies extends Request { /** * Get public companies bitcoin or ethereum holdings * * @param string $coin_id * ...
true
5692b17eb8b6d91666b02cece9b6e73363d1cd81
PHP
MiguelScript/sistema_inventario_alquimista
/src/Sales/Services/GetProductsSoldBySale.php
UTF-8
373
2.71875
3
[ "MIT" ]
permissive
<?php namespace Src\Sales\Services; use Src\Sales\Repository\SaleRepository; class GetProductsSoldBySale { protected $repository; public function __construct(SaleRepository $repository) { $this->repository = $repository; } public function __invoke($sale_id) { return $this->...
true
fa2f6ef0da1d9efe67020abf8f72f7be0a85b3db
PHP
ChrisJim15/lala
/edit1.php
UTF-8
2,371
2.546875
3
[]
no_license
<?php session_start(); include_once("config.php"); if(isset($_POST['update'])){ $reservedate=mysqli_real_escape_string($db,$_POST['reservedate']); $restime=mysqli_real_escape_string($db,$_POST['restime']); $returndate=mysqli_real_escape_string($db,$_POST['returndate']); $studid=mys...
true
9a68d88e779f2b37e545ea271e58c3c978e83301
PHP
CrisRubio/Lab
/P1/pdo2.php
UTF-8
1,459
2.65625
3
[]
no_license
<?php header('Content-Type: application/json'); /** The name of the database */ define('DB_NAME', 'ei1036_42'); /** MySQL database username */ define('DB_USER', '*****'); /** MySQL database password */ define('DB_PASSWORD', '*****'); /** MySQL hostname */ define('DB_HOST', 'db-aules.uji.es' ); /** Database...
true
843aa0b483915962dfd99542c48add304f4f4dc0
PHP
ozgg/Brujo
/library/Brujo/Http/Router.php
UTF-8
3,935
2.890625
3
[]
no_license
<?php /** * Router * * @author Maxim Khan-Magomedov <maxim.km@gmail.com> * @package Brujo\Http */ namespace Brujo\Http; use Brujo\Http\Error\NotFound; /** * Router */ class Router { /** * Available routes * * @var Route[] */ protected $routes = []; /** * Add route * ...
true
73343c822b2f4c736e340f4eebb20c6a4057cc7c
PHP
Akhtar-18/LaravelCustComApp
/app/Console/Commands/UserCreate.php
UTF-8
1,301
2.71875
3
[ "MIT" ]
permissive
<?php namespace App\Console\Commands; use Illuminate\Console\Command; use Illuminate\Support\Facades\Hash; use App\Models\User; class UserCreate extends Command { /** * The name and signature of the console command. * * @var string */ //protected $signature = 'command:name'; protect...
true
11c1820ed78faa46be49f8415670accf80cf1918
PHP
lloricode/apiato-audit
/Audit/Tasks/GetAllAuditsTask.php
UTF-8
727
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Containers\Audit\Tasks; use App\Containers\Audit\Data\Repositories\AuditRepository; use App\Ship\Parents\Tasks\Task; use App\Ship\Exceptions\NotFoundException; use App\Containers\Audit\Data\Criterias\OneInstanceCriteria; class GetAllAuditsTask extends Task { protected $repository; public...
true
075795a9e76bbbca040b19de7ca6a92a8504ec74
PHP
MRLIXIANZHONG/tp_fancan
/application/home/model/CarKindTable.php
UTF-8
823
2.53125
3
[ "Apache-2.0" ]
permissive
<?php /** * Created by PhpStorm. * User: 吕卫萌 * Date: 2019/10/30/030 * Time: 15:46 */ namespace app\home\model; use think\exception\DbException; class CarKindTable extends Table { // 设置当前模型对应的完整数据表名称 protected $name = 'car_kind'; //没有使用id作为主键名 protected $pk = 'id'; /** * 获取站点类别 *...
true
751c62a72b52267574d7e81cec0aa4ed637a489a
PHP
jcastell7/AsignacionDeSalones
/Objetos/Salon.php
UTF-8
1,251
3.453125
3
[]
no_license
<?php class Salon { /* * clase salon * contiene los atributos del objeto salon */ private $idSalon; private $numero; private $capacidad; private $info; /* * constructor del objeto * recibe el numero de salon (bloque-salon ej: 11-112) * la capa...
true
27b4832edeaec4b0e15233f79a10634aa53a11af
PHP
lesterpadul/FDCNydus
/inc/core/ErrorHandler.php
UTF-8
586
3
3
[]
no_license
<?php class ErrorHandler{ private $const = NULL; function __construct(){ $this->const = new ConstVars; } // write log file on error public function writeError($err = FALSE){ // check if err is valid if ($err == FALSE) { return false; } if (strpos($err['content'], "CONTENT") !== FALSE) { $fil...
true
1e9e468a2f2a33a0be10449a3f4b730b55d8b6c0
PHP
cp3402-students/a2-cp3402-2019-team10
/wp-content/plugins/smart-slider-3/library/smartslider/libraries/slider/generator/generatorFactory.php
UTF-8
794
2.953125
3
[ "GPL-3.0-only", "GPL-3.0-or-later", "BSD-3-Clause" ]
permissive
<?php class N2SSGeneratorFactory { /** @var N2SliderGeneratorPluginAbstract[] */ private static $generators = array(); /** * @param N2SliderGeneratorPluginAbstract $generator */ public static function addGenerator($generator) { self::$generators[$generator->getName()] = $generator; ...
true
f73b76a0912b1d2bcea2703e4d7830d41dd77e4d
PHP
alejoto/permissions
/app/controllers/WebserviceController.php
UTF-8
1,698
2.765625
3
[]
no_license
<?php class WebservicesData{ public function all () { return Webservice::all(); } } class WebserviceController extends \BaseController { /** * Display a listing of the resource. * GET /webservice * * @return Response */ public function index() { $d=new WebservicesData; $data=array( 'webservice...
true
d84b8d0c43e5f70f13472123885944fcd84197d6
PHP
neformalist/not
/common/models/Text.php
UTF-8
1,393
2.53125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace common\models; use Yii; /** * This is the model class for table "{{%text}}". * * @property integer $id * @property integer $article_id * @property string $text_ru * @property string $text_en * * @property Article $article */ class Text extends \yii\db\ActiveRecord { /** * @inheritdo...
true
b9ca261005a6deda469921a9c3f69943b42b6d2a
PHP
whosnext000/work-samples
/php-mysql/Profolio-wordpress-plugin/edit_client.php
UTF-8
950
2.625
3
[]
no_license
<?php /** The database needs to know what we're updating **/ if(isset($_POST['client_name'])) { $name=$_POST['client_name']; $title_=strtolower($name); $slug=str_replace(" ","_",$title_); $update="update $client_tbl set name='$name', slug='$slug' where id=".$edit_id; $wpdb->query($update); header("Location: ?pag...
true
2cdddccc7ab6b821f4678a8d2cd5a606070f93fd
PHP
taleksey/chat
/controllers/ChatController.php
UTF-8
3,046
2.53125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\controllers; use app\models\Chat; use app\models\User; use Yii; use yii\bootstrap\ActiveForm; use yii\filters\AccessControl; use yii\web\BadRequestHttpException; use yii\web\Controller; use yii\web\ForbiddenHttpException; use yii\web\Response; use yii\web\ErrorAction; class ChatController extends...
true
9be563527f1e910415e66df822cc50fcb5699a44
PHP
Iskandarcoder/consul
/backend/models/News.php
UTF-8
2,452
2.59375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace backend\models; use Yii; /** * This is the model class for table "news". * * @property integer $id * @property integer $id_category_news * @property string $uz_thema * @property string $ru_thema * @property string $en_thema * @property string $x_thema * @property string $uz_description * @p...
true
f9a0ac5692329e255a67710f352de93038c10595
PHP
Dry7/analytics-backend
/app/Models/Post.php
UTF-8
1,405
2.625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace App\Models; use Carbon\Carbon; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\BelongsTo; /** * Class Post * @package App\Models * * @property int $id * @property int $group_id * @property int $post_id * @property Carbon $date * @pr...
true
785a95ec0185ee390837357f8ebe53c778880fbf
PHP
hongzhangMu/webapp
/config.php
GB18030
1,460
2.546875
3
[ "Apache-2.0" ]
permissive
<?php var_dump(123); die(); //header("Content-Type:application/json; charset=UTF-8"); //ļ define("DBServer", "localhost"); //ݿIPַ define("DBUser", "sa"); //ݿ¼ sa define("DBPassword", "cai83114"); //ݿ¼ cai83114 define("DBName", "GPS"); //Ҫʹõݿ //tUser //id = 1 //name = test //password = ...
true
079d6b71c8d5c58686d58c9482d4948b7048a410
PHP
shhphp/SHH
/src/SHH/TokenParser/Identifier.php
UTF-8
5,676
2.78125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace SHH\TokenParser; use SHH\TokenParser; use SHH\Node; use SHH\Parser; /* * This file is part of SHH. * (c) 2015 Dominique Schmitz <info@domizai.ch> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ /** * Identifier To...
true
c1e1f61ccdda510cd38418df66bcdfeb5f3a81f0
PHP
kristapsmors/bitcoin-chart
/app/commands/ExchangeBitstampTickerCommand.php
UTF-8
939
2.90625
3
[ "MIT" ]
permissive
<?php class ExchangeBitstampTickerCommand extends ExchangeTickerCommandBase { /** * The console command name. * * @var string */ protected $name = 'bc:ticker:bitstamp'; /** * The console command description. * * @var string */ protected $description = 'Get Bitstamp Exchange Data'; /** * Execu...
true
a1bb5110894e5f5cca6b4bc3bb33d78bb2523640
PHP
Dongs7/phpBoard
/application/controllers/Board.php
UTF-8
6,202
2.5625
3
[ "MIT" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Board extends CI_Controller { function __construct(){ parent::__construct(); date_default_timezone_set('America/Vancouver'); $this->load->database(); $this->load->model('board_m'); } public function index() { $this->lists(); }...
true
93a6b21e93edc916610dc86ec6f1830661b8dbd8
PHP
wizyoua/Notes
/PHP/udemy/udemyoop/index.php
UTF-8
246
2.5625
3
[]
no_license
<?php error_reporting(E_ALL); ini_set('display_errors', 'On'); spl_autoload_register(function($class_name){ include $class_name . '.php'; }); // include 'foo.php'; // include 'bar.php'; $foo = new Foo; $bar = new Bar; $bar->sayHello(); ?>
true
be5ef96777a73aa883b4415493271c0e012ad0ee
PHP
phacility/phabricator
/src/applications/drydock/query/DrydockBlueprintQuery.php
UTF-8
5,561
2.65625
3
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php final class DrydockBlueprintQuery extends DrydockQuery { private $ids; private $phids; private $blueprintClasses; private $datasourceQuery; private $disabled; private $authorizedPHIDs; private $identifiers; private $identifierIDs; private $identifierPHIDs; private $identifierMap; public ...
true
0c5314e3f388d38b3d90bd873aee18a27ad1b25d
PHP
armandolazarte/hello
/src/LLPP/backup/articoli_backup.php
UTF-8
1,177
2.796875
3
[ "BSD-3-Clause", "MIT" ]
permissive
<?php /** * @ORM\OneToMany(targetEntity="CommentiArticoli",mappedBy="articolo") * */ class Articoli { private $commenti; public function __construct() { $this->categorie = new \Doctrine\Common\Collections\ArrayCollection(); $this->commenti = new \Doctrine\Common\Collections\ArrayCollection();...
true
fb6da1411716770eeab7082e54bfe9f81348f07e
PHP
wolftracks/pushyads
/www/admin/data/save-this.php
UTF-8
7,968
2.640625
3
[]
no_license
<?php include_once("pushy_common.inc"); include_once("pushy_commonsql.inc"); $db = getPushyDatabaseConnection(); function describeTable($db,$tablename) { printf("\n\n------ TABLE=%s -------------------------------\n",$tablename); printf("%-22s | ","Field Name"); printf("%-12s | ","Type"); ...
true
21bc6813ab5c5a39a629e3ca6afefbcbd9bc2ce6
PHP
aion1/User-management-SW_project
/swe/connection.php
UTF-8
559
3.046875
3
[]
no_license
<?php class connection { var $host="localhost"; var $db="user acounts"; var $username="root"; var $password=""; var $connect; function connect() { $this->connect=mysqli_connect($this->host,$this->username,$this->password); mysqli_select_db($this->connect, $this...
true
cc6619832ef06600eb61969e3251d0aae4cf67f8
PHP
JasperLichte/jaspress
/server/classes/settings/settings/AppNameSetting.php
UTF-8
749
2.6875
3
[]
no_license
<?php namespace settings\settings; use settings\BaseSetting; use settings\categories\GeneralSettingCategory; use settings\categories\SettingsCategory; use settings\validator\StringValidator; use settings\validator\Validator; class AppNameSetting extends BaseSetting { public function getDefaultValue(): string ...
true
5c2f516a91536378dbf6a4851257080936ca7b90
PHP
HaciKandemir/simple-e-commerce
/basket.php
UTF-8
2,050
2.59375
3
[]
no_license
<?php session_start(); //session_destroy(); require ('vendor/autoload.php'); new \App\Database\Database("src/Database/database.json"); //basket sayfasındaki adet değiştirme işlemli if (isset($_POST['id']) && isset($_POST['action'])){ $id = $_POST['id']; $action = $_POST['action']; $total = null; $retur...
true
10d6429f7cc8b4e80a9d88b27af38b9cbc9525fe
PHP
gwalesh/fswd-static
/index.php
UTF-8
877
3.5
4
[]
no_license
<?php // $name = 'Gwalesh Singh Panchal'; // $salary = 20000; // $incentive = 5000; // $good = 18000; // $total = $salary + $incentive; // $students = array( // 1 => "Sunny", // 2 => "Sahil", // ); // foreach ($students as $key => $st) { // echo "We have many students whose names are $st <br>"; // } ...
true
5658caeb74a6b9a12b1ea45840709324606ca8ad
PHP
crazywhalecc/WTask
/src/BlueWhale/WTask/Mods/WRobot/WRobot.php
UTF-8
2,998
2.609375
3
[ "MIT" ]
permissive
<?php namespace BlueWhale\WTask\Mods\WRobot; use BlueWhale\WTask\Mods\ModBase; use pocketmine\event\Listener; use BlueWhale\WTask\Config; use pocketmine\Utils\Utils; use pocketmine\event\player\PlayerCommandPreprocessEvent; class WRobot extends ModBase implements Listener { private $plugin; public $status; ...
true
4282a706f1401c8f9e059371f3f8d0ba2b860196
PHP
TungPV998/manager
/app/Transformers/PositionTransformer.php
UTF-8
657
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\Transformers; use League\Fractal\TransformerAbstract; use App\Model\Position; /** * Class PositionTransformer. * * @package namespace App\Transformers; */ class PositionTransformer extends TransformerAbstract { /** * Transform the Position entity. * * @param \App\Model\Posi...
true
6abf5d69acab579c532f446c91cbc6808eb5ffad
PHP
vegas-cmf/session
/src/Session/ScopeInterface.php
UTF-8
1,346
2.765625
3
[]
no_license
<?php /** * This file is part of Vegas package * * @author Slawomir Zytko <slawek@amsterdam-standard.pl> * @copyright Amsterdam Standard Sp. Z o.o. * @homepage http://vegas-cmf.github.io * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code...
true
d5667b6bec795242a8afd8817460b5ae385836ff
PHP
AMgrade/google-geocoding-api
/src/Components/UrlBuilder.php
UTF-8
3,348
3.078125
3
[]
no_license
<?php declare(strict_types = 1); namespace McMatters\GoogleGeocoding\Components; use InvalidArgumentException; use McMatters\GoogleGeocoding\Exceptions\GeoCodingException; use McMatters\GoogleGeocoding\Exceptions\UrlLengthExceededException; use const false, true; use function array_filter, gettype, http_build_query,...
true
b4ec7eb09d2e875cb99a50bab3af152b924f7dc8
PHP
voidstone/DesignPatterns
/app/DesignPatterns/Creational/Multiton/MultitonTrait.php
UTF-8
1,317
3.1875
3
[]
no_license
<?php namespace App\DesignPatterns\Creational\Multiton; use App\DesignPatterns\Creational\Multiton\MultitonInterface; trait MultitonTrait { /** * @var array */ protected static $instances = []; /** * @var */ private $name; /** * */ private function __constru...
true
a4a3cd81cac411885ba19d238b112722af4e15da
PHP
tkuiitfcchangbackup/POSS107G05
/action_page.php
UTF-8
2,900
2.671875
3
[]
no_license
<!DOCTYPE html> <html> <head> <title>Mushroom Dictionary!</title> <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <link rel="icon" href="favicon.ico" type="image/x-icon" /> <link rel="shortcut...
true
bafb2ec0f088656dfb0e0196b51023b3ad248e72
PHP
mustardandrew/muan-laravel-acl
/src/Commands/Role/DetachPermissionCommand.php
UTF-8
1,148
2.75
3
[ "MIT" ]
permissive
<?php namespace Muan\Acl\Commands\Role; use Illuminate\Console\Command; use Muan\Acl\Models\Role; /** * Class DetachPermissionCommand * * @package Muan\Acl\Commands\Role */ class DetachPermissionCommand extends Command { /** * The name and signature of the console command. * * @var string ...
true
8bce7eefa128f19ecaf71d7e5fbc2c504edb4b96
PHP
ereckart/cis450FinalProj
/PHP/addToWatchList.php
UTF-8
1,230
2.53125
3
[]
no_license
<? session_start(); if (isset($_SESSION['userid'])) { $movieid = $_GET['movieid']; $userid = $_SESSION['userid']; $dbhost = 'tester.ca4um1hva9qk.us-east-1.rds.amazonaws.com'; $dbport = '3306'; $dbname = 'tester'; $charset = 'utf8' ; $username = 'cis450test'; $password = 'pas...
true
6b6fa2b3e1c6166ad3dbc6431a815922507b7bb4
PHP
kadnan/simpleb2b
/database/factories/ModelFactory.php
UTF-8
2,975
2.546875
3
[ "MIT" ]
permissive
<?php /* |-------------------------------------------------------------------------- | Model Factories |-------------------------------------------------------------------------- | | Here you may define all of your model factories. Model factories give | you a convenient way to create models for testing and seeding yo...
true
41bb8cc475de7ba9068355679de1ab29bc0906de
PHP
rhorber/id3rw
/src/Encoding/Iso88591.php
UTF-8
1,297
2.90625
3
[ "MIT" ]
permissive
<?php /** * Class Iso88591. * * @author Raphael Horber * @version 01.08.2019 */ namespace Rhorber\ID3rw\Encoding; /** * Implementation of EncodingInterface for 'ISO-8859-1'. * * @author Raphael Horber * @version 01.08.2019 */ class Iso88591 implements EncodingInterface { /** * Returns the encodi...
true
5142a7e204e2d26afb3fe77714acd33d7573917a
PHP
vadikdev/json_to_csv_converter
/src/Parser/Parsers/JsonParser.php
UTF-8
403
2.640625
3
[]
no_license
<?php namespace App\Parser\Parsers; use App\Parser\FileParserInterface; use Symfony\Component\HttpFoundation\File\File; class JsonParser implements FileParserInterface { public function supports(File $file): bool { return 'application/json' == $file->getMimeType(); } public function parse(Fi...
true
7a3f0a2afbb851f21d1372598d64e52a97678b9e
PHP
spatie/emoji
/src/Exceptions/CouldNotDetermineFlag.php
UTF-8
339
2.6875
3
[ "MIT" ]
permissive
<?php namespace Spatie\Emoji\Exceptions; use Exception; class CouldNotDetermineFlag extends Exception { public static function countryCodeLenghtIsWrong(string $invalidCountryCode): self { return new static("`{$invalidCountryCode}` is not a valid country code. A valid country code should have two char...
true
768edfa5fd2ca111d5e08ba485da09594770f66e
PHP
emeka-osuagwu/daily_devotional_api
/app/Http/Services/NotificationService.php
UTF-8
1,299
2.671875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Services; use GuzzleHttp\Client; use GuzzleHttp\Exception\ClientException; use Guzzle\Http\Exception\ClientErrorResponseException; class NotificationService { protected $http; protected $baseUrl; public function __construct() { $this->http = new Client();...
true
634e823f915cbb374e2ad00197e34cacdf88c56b
PHP
carlosruesta/php_doctrine_xml
/teste_atores_duplicados.php
UTF-8
526
2.71875
3
[]
no_license
<?php use Alura\Doctrine\Entity\Ator; use Alura\Doctrine\Entity\Filme; use Alura\Doctrine\Entity\Idioma; require_once 'vendor/autoload.php'; $em = (new \Alura\Doctrine\Helper\EntityManagerCreator())->criaEntityManager(); $ator1 = new Ator(null, 'Vinicius', 'Dias'); $ator2 = new Ator(null, 'Vinicius', 'Dias'); try {...
true
77bd0ccb3999bb64f17804365e218e166ef41112
PHP
keruald/keruald
/omnitools/src/Debug/_register_to_global_space.php
UTF-8
369
2.625
3
[ "BSD-2-Clause" ]
permissive
<?php /* This code is intentionally left in the global namespace. */ use Keruald\OmniTools\Debug\Debugger; if (!function_exists("dprint_r")) { function dprint_r ($variable) { Debugger::printVariable($variable); } } if (!function_exists("dieprint_r")) { function dieprint_r ($variable) { D...
true
a3804ce1a7219b6b723f18293fb41cdc99938343
PHP
peedrop/SIGC
/gerenciar/relatorios/RelatorioVendaPDF.php
UTF-8
3,338
2.625
3
[]
no_license
<?php include("../../class/Banco.php"); include("../../arquivos/mpdf/mpdf.php"); require_once '../../class/PedidoDAO.php'; require_once '../../class/PedidoProdutoDAO.php'; $mpdf = new mPDF(); $mpdf->SetDisplayMode("fullpage"); $html = "<div id='area02'> <img width = '100%' src='../../arquivos/img/cabec...
true
4c0a95f6b02c9bfecb100fd55396e4b6247cca23
PHP
paulalcabasa/vehicle_monitoring
/ajax/get_driver_details.php
UTF-8
316
2.59375
3
[]
no_license
<?php require_once("../initialize.php"); // convert $_POST global variable to object $post = (object)$_POST; $vehicle = new Vehicle(); $carplan_details = $vehicle->getCarPlanDetails($post->employee_no); if(empty($carplan_details[0])){ echo "false"; } else { echo json_encode($carplan_details[0]); }
true
622d6eba6d2be444110d60b55679f5889a00e0ab
PHP
archaugust/terraviva
/src/AppBundle/MiscFunctions.php
UTF-8
457
2.8125
3
[ "MIT", "BSD-3-Clause" ]
permissive
<?php namespace AppBundle; class MiscFunctions { public function slug($str) { $str = strtolower(trim($str)); $str = preg_replace('/[^a-z0-9-]/', '-', $str); $str = preg_replace('/-+/', "-", $str); if ($str == '-') $str = time(); return $str; } public...
true
2a6b3047416f70bcfc22f09483c57973467ff6a6
PHP
langrid/langrid-php-library
/commons/Choice.php
UTF-8
749
2.96875
3
[ "BSD-2-Clause" ]
permissive
<?php /** * Created by JetBrains PhpStorm. * User: tetsu * Date: 12/01/16 * Time: 23:34 * To change this template use File | Settings | File Templates. */ class Choice { // String private $choiceId; // String private $value; function __construct($choiceId, $value) { ...
true
122d01de68067eab97dde48cb51dfa9c4cb3250b
PHP
mochtioui/projets
/produits.php
UTF-8
853
2.734375
3
[]
no_license
<?php $servername = "localhost"; $username = "root"; $password = ""; $dbname = "projet_web"; $id=$_POST['id']; $nom=$_POST['nom']; $desc=$_POST['description']; $prix=$_POST['prix']; $quant=$_POST['quantite']; $categorie=$_POST['categorie']; $image=$_POST['image']; // Create connection $conn = new mysqli($servername...
true
7a696560546eb4c1cc91df4bb99c91fdbb9ddc11
PHP
tuancode/design-pattern
/Behavioral/Strategy/AdventureGame/src/Knight.php
UTF-8
386
2.9375
3
[]
no_license
<?php namespace AdventureGame; use AdventureGame\Weapon\AxeBehavior; /** * The Knight. */ class Knight extends AbstractCharacter { /** * Init Knight weapon. */ public function __construct() { $this->weapon = new AxeBehavior(); } /** * {@inheritdoc} */ public fun...
true
63156c52dec4bfd7229f27cfa13bd98bb781c012
PHP
Jorzel21/chat
/app/Repositories/ClienteRepository.php
UTF-8
803
2.78125
3
[ "MIT" ]
permissive
<?php namespace App\Repositories; use App\Models\Cliente; class ClienteRepository{ public function save($data){ $cliente = new Cliente(); $cliente->fill($data); $cliente->save(); return $cliente->fresh(); } public function getAll(){ $clientes = Cliente::all...
true
6823b4b5e5496484059837f09664505797e9b3ff
PHP
khonghung/demo_6_10
/app/Http/Controllers/LoginController.php
UTF-8
1,884
2.578125
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Models\User; use App\Http\Services\LoginService; use Illuminate\Http\Request; use Illuminate\Support\Facades\Session; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Hash; class LoginController extends Controller { protected $loginService; ...
true
0eb23d53dc81e8685f5ec0818aefa556a23a76f8
PHP
rajeevp727/PHP_Office
/addProd.php
UTF-8
3,176
2.859375
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <body> <?php require "config/config.inc.php"; if(isset($_POS...
true
158d4597ae1628566ceba5385156bbc7a38408d5
PHP
YuhiAida/ProgramacionWebII
/panel/procesarUpload.php
UTF-8
2,076
2.65625
3
[]
no_license
<?php require_once("../database/registroCategorias.php"); require_once("../funciones.php"); if(empty($_POST["nombreCategoria"]) || empty($_POST["descripcionCategoria"]) || empty($_FILES["imagenCategoria"])){ header("Location:index.php?seccion=edit&estado=vacio"); die(); }else { $nombre = $_P...
true
0b14372047434ed51d3ea7935cdba0b107fc2bbe
PHP
gyaan/php_laravel_challenge_template
/app/Http/Controllers/CustomerController.php
UTF-8
2,406
2.6875
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Http\Requests\CreateCustomerRequest; use App\Models\Customer; use Illuminate\Http\Request; /** * Customer controller handles all requests that has to do with customer * Some methods needs to be implemented from scratch while others may contain one or two bugs. * * N...
true
618cec0083380ed719e34299034bdd29b8db27e7
PHP
keshavsharma89/Loan
/models/UserSearch.php
UTF-8
2,067
2.53125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use Yii; use yii\base\Model; use yii\data\ActiveDataProvider; use app\models\Users; /** * OrderSearch represents the model behind the search form about `app\models\Orders`. */ class UserSearch extends Users { /** * @inheritdoc */ public function rules() { r...
true
c2565f48bf3c7181845b941a5451d043d160c247
PHP
gvisis/bank
/public/newaccount.php
UTF-8
1,661
2.5625
3
[]
no_license
<!-- Forma resubmitinasi refreshinant --> <?php require_once __DIR__.'/../bootstrap.php'; checkIfLoggedIn(); require_once DIR.'/header.php'; require_once DIR.'/accFile.php'; $accountFile = DIR.'/../src/data/accounts.json'; $firstname = ""; $lastname = ""; $accNumb = $_SESSION['accNumb'] ?? ''; $personalID = ''; $accb...
true
a868f357bb16706f49deb64db5ce3227e5d0d26b
PHP
xprt64/todosample-cqrs-es
/vendor/xprt64/code-analysis/src/Gica/CodeAnalysis/PhpClassInFileInspector.php
UTF-8
1,565
2.921875
3
[ "MIT" ]
permissive
<?php namespace Gica\CodeAnalysis; use Gica\FileSystem\FileSystemInterface; use Gica\FileSystem\OperatingSystemFileSystem; class PhpClassInFileInspector { /** * @var FileSystemInterface */ private $fileSystem; public function __construct( FileSystemInterface $fileSystem = null ) ...
true
ae025e1af74830150f2ecaa267ba237d32882d1c
PHP
shinichimc/IIC-Cainta-Library
/tsv_test.php
UTF-8
954
3.25
3
[]
no_license
<?php SortByMedal('medal_results.tsv'); function SortByMedal($file) { $tsv = array(); $fp = fopen($file, "r"); while (($data = fgetcsv($fp, 0, "\t")) !== FALSE) { $tsv[] = $data; } fclose($fp); //国名、金メダル、銀メダル、銅メダル、それぞれの配列を作成 foreach($tsv as $key=>$row) { $country[$key] = $row[0]; ...
true
b3c4e1d91b2978f65e9b9aefe5652bd601c67d9b
PHP
programgames/DesignPattern
/src/Patterns/Structural/Flyweight/ProductFlyweight.php
UTF-8
868
3.296875
3
[]
no_license
<?php namespace Flyweight; /** * Le poids-mouche stocke une portion commune de l'état ( appelé intrinsèque ) * qui appartient a plusieurs objets métier. le poids-mouche accepte le reste de l'état ( extrinsèque ) * unique à chaque entité dans les méthodes autre que le constructeur. */ class ProductFlyweight { ...
true
ebf011d456402bc9a722a3fd6bc29c29755eecf0
PHP
Kasparsu/KMS19laravel
/app/Http/Controllers/ImageController.php
UTF-8
2,070
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Models\Image; use Illuminate\Http\Request; use Illuminate\Http\UploadedFile; class ImageController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { // ...
true
8a03ebc267b978a2f2f55fd2374ea6af46abc964
PHP
tibaredha/mvc
/PDF/impcomp.php
UTF-8
3,346
2.625
3
[ "MIT" ]
permissive
<?php require('DNR.php'); $pdf = new DNR( 'L', 'mm', 'A4' );$pdf->AliasNbPages();//importatant pour metre en fonction le totale nombre de page avec "/{nb}" $date=date("d-m-y"); $pdf->SetFillColor(230);//fond gris il faut ajouter au cell un autre parametre pour qui accepte la coloration $pdf->SetTextColor(0,0,0);//tex...
true
2683e9416bd4f3cbb2f3bf804291f874a524d117
PHP
slickframework/cache
/tests/Driver/MemoryTest.php
UTF-8
1,603
2.609375
3
[ "MIT" ]
permissive
<?php /** * This file is part of slick/cache package * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Slick\Tests\Cache\Driver; use PHPUnit_Framework_TestCase as TestCase; use Slick\Cache\CacheItem; use Slick\Cache\Driver...
true
225db8152a37577c1df9de7fa1787f7ccb2ade1e
PHP
RamilYumaev/aa_dev
/olympic/repositories/UserOlimpiadsRepository.php
UTF-8
1,934
2.6875
3
[]
permissive
<?php namespace olympic\repositories; use common\helpers\FlashMessages; use olympic\models\OlimpicList; use olympic\models\UserOlimpiads; class UserOlimpiadsRepository { public function get($id): UserOlimpiads { if (!$model = UserOlimpiads::findOne($id)) { throw new \DomainException(Flash...
true
c455631a809257d7469c3047139964674772e40e
PHP
smsloverss/sms99
/your-project/app/Services/MessagebirdService.php
UTF-8
978
2.890625
3
[ "MIT" ]
permissive
<?php namespace App\Services; use Illuminate\Support\Facades\Log; use MessageBird\Client; use MessageBird\Exceptions\AuthenticateException; use MessageBird\Exceptions\BalanceException; use MessageBird\Objects\Message; class MessagebirdService { protected $api; public function __construct() { $...
true
7dfc2c8b455a7ef52a02321076c5c870ecc72f67
PHP
famfij/TP-BilletsDuLouvre
/src/AppBundle/Tests/DataFixtures/LoadTicketTypeData.php
UTF-8
4,594
2.515625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: jean FRIRY * Date: 22/11/2015 * Time: 00:29 */ namespace AppBundle\Tests\DataFixtures; use AppBundle\Entity\TicketType; use AppBundle\Entity\TicketTypeDetail; use Doctrine\Common\DataFixtures\AbstractFixture; use Doctrine\Common\DataFixtures\OrderedFixtureInterface; use D...
true
6c16e728584819e9c390cd5cfcaccf8fe896f2dd
PHP
TheDoctorOne/PHP-JSChart
/index.php
UTF-8
1,181
2.546875
3
[ "MIT" ]
permissive
<html> <table style='width:100%;height:100%;'> <tr> <td style='width:20%'> <?php $fileList = scandir("/xampp/htdocs/ChartJS/data"); foreach($fileList as $file) { if(!($file == "." || $file == "..")){ echo...
true
871f57a23dcb15b8193187c9641d377e33d94bc8
PHP
firebus/design-patterns
/Ndleton/SchroedingersNdleton.php
UTF-8
3,254
3.015625
3
[]
no_license
<?php namespace Firebus\DesignPatterns\Ndleton; /** * In a Schroedinger's Ndleton getInstance() will either return an instance or a null. * * There is no way of knowing if the $instanceContainer contains instances or nulls until you call getInstance() and "open the * box". A naive physicist might argue that the ...
true
ae3a290ae3a183b51b35cbea5c8ba0937ba62896
PHP
sunil209/mvc_Iinsta
/wp-content/themes/instapagev3/v5/components/v70/feature-repeater/templates/tile.php
UTF-8
1,902
2.703125
3
[]
no_license
<?php /** * Template file. Template params are stored in $params array * * @param string $sectionTitle Title of the section. * @param string $sectionSubtitle Subtitle of the section. * @param array $repeater Array of features to loop over, each containing: * string $icon ...
true
274b524f525266a787ae449d57090743d8f5596e
PHP
Repflez/osu-card
/public/osu.php
UTF-8
1,955
2.71875
3
[ "BSD-2-Clause" ]
permissive
<?php // Your app's name $appName = 'osu!card'; // Your app's URL $appURL = 'http://example.com'; // Your app's version number $appVersion = '1.0'; // Your e-mail (This is sent to the server) $appEmail = 'example@example.com'; // Your osu! API Key $apiKey = 'xxxxxxxx...
true
be16773eb74315de816ae640973babe2e549b275
PHP
faresouerghi98/snack-fit
/front/view/event/SMS.php
UTF-8
1,104
2.75
3
[]
no_license
<?php /** * */ class SMS { public static function send($from_number,$sms_text) { $key="1e36922a"; $secret="yWs8iZL4bJCwxq7k"; $to_number="21654855094"; return self::cspd_send_nexmo_sms($key,$secret,$to_number,$from_number,$sms_text); } public static function cspd_send_nexmo_sm...
true
00acb4c541c45cb1740c0cb9e0be6ca605c5c393
PHP
SofaKingCool/Webradio-API
/service/MP3Library.php
UTF-8
1,747
3.09375
3
[ "MIT" ]
permissive
<?php class MP3Library { public function search($query) { $number = rand(1, 8); $url = "http://cn{$number}.mp3li.org/audio.search/?"; $url .= http_build_query([ "query" => $query, "format" => "json", ]); $body = json_decode(file_get_contents($ur...
true
feb4bb6c9c74283227eb16a60e8d8aa2b95be699
PHP
Nitneuk-zz/training-api-platform
/src/DataPersister/CarPersister.php
UTF-8
1,237
2.53125
3
[]
no_license
<?php declare(strict_types=1); namespace App\DataPersister; use ApiPlatform\Core\DataPersister\DataPersisterInterface; use App\Entity\Car; use Symfony\Bridge\Doctrine\RegistryInterface; use Symfony\Component\Filesystem\Filesystem; use Symfony\Component\Serializer\Encoder\XmlEncoder; use Symfony\Component\Serializer\...
true
7cf310c484f997e4e5258cf23bcef2732068b2db
PHP
qwibit/testjob
/php/src/Database.php
UTF-8
1,268
3.15625
3
[]
no_license
<?php namespace src; class Database { /** * @var DI */ private $di; /** * @var \PDO */ private $link; /** * @param \src\DI $di */ public function __construct(DI $di) { $this->di = $di; $this->connect(); } /** * @return $this ...
true
7af9a710fcbb9414610ce9111d03ad10e3db5022
PHP
zhanzhaopeng1/yaf-support
/tests/SignTest.php
UTF-8
721
2.765625
3
[]
no_license
<?php namespace Yaf\Support\Test; class SignTest { public function testAes() { $content = json_encode(['name' => 'test', 'age' => 20]); $key = '123456789'; $encryptMethod = 'AES-128-CBC'; $ivLength = openssl_cipher_iv_length($encryptMethod); $iv ...
true
f975db722de24354ddd13dfb2da8ab47e5ab2597
PHP
rjbijl/mapscript-doc-parser
/src/Model/ArgumentModel.php
UTF-8
731
3.09375
3
[ "MIT" ]
permissive
<?php namespace Rjbijl\Model; /** * Rjbijl\Model\ArgumentModel * * @author Robert-Jan Bijl <robert-jan@prezent.nl> */ class ArgumentModel { /** * @var string */ private $name; /** * @var string */ private $type; /** * ArgumentModel constructor. * @param string$n...
true
3c5b9abfc6f2f4eb37413c6a88b7cc4f1da208c5
PHP
oleg-nyc/task-app
/task/models/UserAction.php
UTF-8
2,823
2.984375
3
[]
no_license
<?php require_once "UserDB.php"; require_once __DIR__ . "/../settings.php"; class UserAction { protected $db; protected $min_lvl = MIN_ACC_LVL; public function __construct(PDO $db) { $this->db = $db; $this->sess = $sess; } private function unserializesession($data) { $vars = preg...
true
a68980db9e0c18d555b9ee8266c860693f5c253a
PHP
IvanGonzalezMartin/Inventario
/src/Application/User/LogIn/UserLogInCommand.php
UTF-8
677
2.890625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: programador * Date: 28/05/18 * Time: 14:28 */ namespace App\Application\User\LogIn; class UserLogInCommand { private $anyThing; private $password; /** * UserLogInCommand constructor. * @param $anyThing * @param $password */ public fun...
true
5eaf634df4f921e78588aaaf711f9867584e7ee6
PHP
cyonder/StudentValley-PHP-New
/signup.php
UTF-8
7,435
2.578125
3
[]
no_license
<?php ob_start(); session_start(); require_once("./include/header-global-2.php"); $error_message = "none"; $user_first_name = NULL; $user_last_name = NULL; $user_email = NULL; $user_re_email = NULL; $user_password = NULL; $pass = 0; if($_POST){ $result = user_exist($dbConnection, $_POST['email']); if($result...
true
ea15abed787013c3f8ab92fbaf92a9ad286401a5
PHP
turkprogrammer/php-objects-patterns-practice-5-rus
/src/ch11/batch05/Observable.php
UTF-8
262
2.59375
3
[]
no_license
<?php declare(strict_types=1); namespace vitaliyviznyuk\popp5rus\ch11\batch05; /* Листинг 11.24 */ interface Observable { public function attach(Observer $observer); public function detach(Observer $observer); public function notify(); }
true
1ecdf0d60d0e67930d54e6975147895808ef429d
PHP
Mefyros/e-commerce
/back/app/Http/Controllers/TransporterController.php
UTF-8
3,711
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Transporter; class TransporterController extends Controller { // public function create(Request $request){ $toPush = $this->parseFromFront($request->all()); return Transporter::create([ 'name' => $toPush['n...
true
5c5f42682f550dfc71dd5389aeb088e216d0b3db
PHP
luclanet/Twitter
/libraries/twitter_tags.php
UTF-8
4,760
2.828125
3
[]
no_license
<?php class Twitter_Tags extends TagManager { /** * Tags declaration * To be available, each tag must be declared in this static array. * * @var array * */ public static $tag_definitions = array ( // <ion:twitter:tweets /> calls the method tag_tweets "twitter:tw...
true