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
9c35c51742d1c7ef4fdd881ceb38f2d835cf83de
PHP
brianolingay/singly-snake-game
/app/World/Cursor.php
UTF-8
169
2.828125
3
[]
no_license
<?php declare(strict_types=1); namespace App\World; interface Cursor { const START = "\033[0;0f"; const HIDE = "\033[?25l"; const SHOW = "\033[?25h\033[?0c"; }
true
27cf9179aef4140790cfaac79f950ad9733b35a4
PHP
andrey-lobach/school-diary-system
/src/Form/ClassForm.php
UTF-8
1,241
3.09375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: andrei * Date: 12.12.18 * Time: 14.19 */ namespace Form; use Core\Request\Request; use Model\ClassModel; class ClassForm { private $data; private $violations = []; private $classModel; /** * ClassForm constructor. * @param ClassModel $classMode...
true
4150bc76a3814e62b55f0560ddb6e46f10247c5b
PHP
scheltwort-it-services/extbase_87
/as_product/Classes/Domain/Model/Product.php
UTF-8
3,019
2.59375
3
[]
no_license
<?php namespace Schmutt\AsProduct\Domain\Model; /*************************************************************** * * Copyright notice * * (c) 2015 * * All rights reserved * * This script is part of the TYPO3 project. The TYPO3 project is * free software; you can redistribute it and/or modify * it unde...
true
b04dd7ddce2d3244a94067fbf0e0b42b2207d0e1
PHP
fpauer/PHP-Laravel
/public_news/app/Http/Controllers/Auth/RegistrationController.php
UTF-8
2,016
2.59375
3
[ "MIT" ]
permissive
<?php namespace PublicNews\Http\Controllers\Auth; use Illuminate\Auth\Passwords\DatabaseTokenRepository; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Hash; use PublicNews\User; use Illuminate\Support\Facades\Validator; use PublicNews\Http\Controllers\Controller; use Illuminate\Support\Facades\Re...
true
52d16ed2193bdcfffe0f934653dc034500cb2c5d
PHP
daxingyou/fightgame
/webroot/master/detailsEquip.php
UTF-8
4,071
2.5625
3
[]
no_license
<?php //更新用户基本信息,其实真正的业务应该用不上这个方法 include $_SERVER['DOCUMENT_ROOT'].'/init.inc.php'; $equipId = isset($_REQUEST['equip_id'])?$_REQUEST['equip_id']:'';//装备ID $res = Equip_Info::getEquipInfoById($equipId); $base = json_decode($res['attribute_base_list'], true); $value = json_decode($res['attribute_list'], true); ...
true
9eeca83fa4d505b8a6c0ef1412e6b01366ab4178
PHP
Gtvar/FivePercent-ObjectSecurity
/src/Metadata/MetadataFactoryInterface.php
UTF-8
973
2.53125
3
[ "MIT" ]
permissive
<?php /** * This file is part of the ObjectSecurity package * * (c) InnovationGroup * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code */ namespace FivePercent\Component\ObjectSecurity\Metadata; /** * All metadata factories should be ...
true
13dd6d80da1a32fc53cc8c19c8f556cb1f8130f8
PHP
philo143/vivant_v4
/app/OfferParser.php
UTF-8
20,621
2.578125
3
[]
no_license
<?php namespace App; use Carbon\Carbon; use PHPExcel; use PHPExcel_IOFactory; use PHPExcel_Style_NumberFormat; class OfferParser { public function readEnergyTemplate($file,$type) { $uploaded_filename = $file->getClientOriginalName(); $dtetime = Carbon::now()->format('Ymd_His'); $workbook = PHPEx...
true
7c970a63b497d0def0b8a9704eefd2fb31354b3f
PHP
ricamgar/web-examples
/slim-framework/src/Project/Utils/MySqlProjectDao.php
UTF-8
985
2.84375
3
[ "Apache-2.0" ]
permissive
<?php /** * Created by PhpStorm. * User: ricardocampos * Date: 3/3/19 * Time: 2:29 PM */ namespace Project\Utils; class MySqlProjectDao implements ProjectDao { private $connection; public function __construct(\PDO $connection) { $this->connection = $connection; } public function fe...
true
baeb20aa984367d109b9e504f231c571f6bea416
PHP
spsjvc/testing-laravel-workshop
/src/app/Services/ThirdParty/WeatherService.php
UTF-8
250
2.828125
3
[ "MIT" ]
permissive
<?php namespace App\Services\ThirdParty; class WeatherService { public function getTemperature() { return random_int(50, 100); } public function getTemperatureByHour($hour) { return random_int(50, 100); } }
true
49ed98b81d5ee475629370114857ba85fe32c743
PHP
gonzalofp340/repoPHP
/console.class.php
UTF-8
688
3.71875
4
[]
no_license
<?php /* Clase para trabajar con php en linea de comando. */ class Console{ private $_stdin= null; /* Lee la entrada del usuario en la consola */ function readInput($str){ print $str; $stdin= fopen("php://stdin", "r"); $entrada= fgets($stdin); $this->_stdin= trim($entrada); } /* Retorna el texto de la e...
true
55a1fbcde09ca9899270e2fb0526bea1da783a1e
PHP
jowettgo/the-human-the-body
/wp-content/themes/Humanbody/library/features/@autoload/class.spinal_metaboxes.php
UTF-8
9,778
3
3
[]
no_license
<?php /** * Spinal Custom metaboxes Class [running with CMB2] * @version 0.1.2 * @author: Marius Moldovan * * usage : * $metaboxes = array( * array( * 'name' => __( 'Longitude', 'cmb2' ), * 'desc' => __( 'field description (optional)', 'cmb2' ), * 'id' => 'test', * ...
true
b1f5e922056f40ef8703e1488e4c81d03d31445e
PHP
hughgrigg/payment-api
/src/Domain/Entity/Payment/BillItem.php
UTF-8
597
2.65625
3
[]
no_license
<?php namespace PaymentApi\Domain\Entity\Payment; use PaymentApi\Domain\Entity\Entity; use PaymentApi\Domain\Money; class BillItem extends Entity { /** * @return Money */ public function amount(): Money { return new Money((int) $this->values->get('amount')); } /** * @retur...
true
b7477f403c28bee59d55db3cf643ea260a0ba05e
PHP
injitools/cms-Inji
/system/modules/Db/objects/Mysql/Mysql.php
UTF-8
3,934
2.765625
3
[ "Apache-2.0" ]
permissive
<?php /** * Mysql work class * * @author Alexey Krupskiy <admin@inji.ru> * @link http://inji.ru/ * @copyright 2015 Alexey Krupskiy * @license https://github.com/injitools/cms-Inji/blob/master/LICENSE */ namespace Db; class Mysql extends \Object { public $config = []; // настройки подключения выбраной баз...
true
200afbf549729fecd5d68abc1057b7ecd67fc67a
PHP
onutebaltrunaite/SPORT-CLUB
/controller/FeedbackController.php
UTF-8
2,164
2.671875
3
[]
no_license
<?php namespace app\controller; use app\core\Controller; use app\core\Request; use app\core\Validation; use app\model\FeedbackModel; use app\model\UserModel; class FeedbackController extends Controller { public FeedbackModel $feedbackModel; public UserModel $userModel; public Validation $vld; public...
true
a9f50862e041554f48dad96fd678299762c0ee19
PHP
tenikaler-smith/desarrollo_7
/lab4/lab43.php
UTF-8
1,609
3.09375
3
[]
no_license
<!doctype html> <html lang="es"> <head> <meta charset="UTF-8"> <title>Laboratorio 4.3</title> <style> table.table{ position: center; } td.resultado{ padding-left: 100px; } </style> </head> <body> <?php IF(array_key_exists('enviar', $_POST)) { if ...
true
0950cc7e5e4df9538673c8be9ba631a9b6f4ad4d
PHP
mojianhua/swoole
/process/create_process_sign.php
UTF-8
254
2.5625
3
[]
no_license
<?php //swoole 触发器 //触发函数 达到10停止 swoole_process::signal(SIGALRM,function(){ static $i = 0; echo "$i \n"; $i++; if($i>100){ swoole_process::alarm(-1); //清理定时器 } }); //定时信号 swoole_process::alarm(100 * 1000);
true
ed587b3dda66ad90e312f2488021f223d37d1679
PHP
rushstart/code-review
/Example/UseCases/ConvertCartToOrder.php
UTF-8
1,016
3.0625
3
[]
no_license
<?php namespace Example\UseCases; use Example\Domains\Cart\CartInterface; use Example\Domains\Order\Order; use Example\Domains\Order\OrderInterface; use Example\Services\NotifyInterface; class ConvertCartToOrder { private NotifyInterface $notifier; private OrderInterface $order; public function __con...
true
3425ce32cf087878e2dfff18a4f669afeea56a8e
PHP
YouweGit/filetransferbundle
/src/Service/Exception/RemoveFileFailed.php
UTF-8
634
2.515625
3
[]
no_license
<?php namespace FileTransferBundle\Service\Exception; class RemoveFileFailed extends \RuntimeException { public static function createRemoveFileFromRemoteFailed(string $remotePath, ?string $errorCode): self { return self::create('remote', $remotePath, $errorCode); } private static function ...
true
3426654533301b48fa131dd242b513dd81ccde7e
PHP
tatarysh/ceidg
/src/Type/ArrayOfInt.php
UTF-8
431
3.03125
3
[ "MIT" ]
permissive
<?php namespace TataRysh\Ceidg\Type; /** * Class ArrayOfInt */ class ArrayOfInt { /** * @var int */ private $int; /** * @return int */ public function getInt() { return $this->int; } /** * @param int $int * @return ArrayOfInt */ public fu...
true
c0ec63ccb75c2c4e6537ade2e294f5074db08eff
PHP
Collinsboss18/parking-space-mtp-app
/utilities/classes/Ticket.class.php
UTF-8
5,465
3
3
[]
no_license
<?php /** * @file This file that handles request to the database for parking * @author COLLINS <abadaikecollins@gmail.com> <11/09/2020> * Last Modified: Collins <abadaikecollins@gmail.com> <11/09/2020> */ if (isset($databasePath)) require_once ($databasePath); if (isset($clientPath)) require_once ($clientPath); ...
true
7313cb2e105c007885bc33fffcfc3f2ba14d4f8b
PHP
asbag/closures
/closure1/file4.php
UTF-8
498
4.03125
4
[]
no_license
<?php /** * Y otro uso muy común es utilizar una * función anónima como callback. En el * siguiente ejemplo vamos a utilizar una * función anónima como callback para * multiplicar los elementos de la misma * posición de cada uno de los arrays. */ $multiplicador = function ($a, $b) { return $a * $b; }; $n...
true
5d6b196378c8b5659cfaf860e0f33ae3b301c8c8
PHP
yinming93/xyt
/study/php计算器/index.php
UTF-8
2,054
3.359375
3
[]
no_license
<?php if(!empty($_POST)){ //接收一下操作数和运算符 $n1 = $_POST['n1']; $n2 = $_POST['n2']; $operator = $_POST['operator']; }else{ // 第一次进入页面的时候,没有传递数据,给一些些默认值 $n1 = 0; $n2 = 0; $operator = '+'; } // 通过多向条件分支结构来选择运算符 switch...
true
ca2d4f4f25dc518cad90c90402ebe08ae4b9928f
PHP
amrilukman/pusdatinamga
/app/Controllers/Operator/Info.php
UTF-8
2,221
2.65625
3
[ "MIT" ]
permissive
<?php namespace App\Controllers\Operator; use App\Controllers\BaseController; use App\Models\InfoModel; class Info extends BaseController { /** * Instance of the main Request object. * * @var HTTP\IncomingRequest */ protected $request; protected $info; function __construct() ...
true
34112e6332ba7199072799db74b1daa45859fc78
PHP
vanvinh-dev/blog2
/database/migrations/2020_12_25_140431_add_register_table.php
UTF-8
1,040
2.546875
3
[]
no_license
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class AddRegisterTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('registers', function (Blue...
true
52393f941d9975bf13d09e44d428caf3ce060524
PHP
gsmoraes16/Senac
/ProjetoBasicoMVC/controle/controle_cliente.php
UTF-8
2,139
2.8125
3
[]
no_license
<?php ///Load Modelo - START include ($_SERVER['DOCUMENT_ROOT']."/modelo/conexaobd.php"); /// "../" sai da pasta e vai para outra //Load Modelo - END class Cliente{ public function busca($idCliente = false){ $instansClass = new Conexaobd(); $conectar = $instansClass->conection(); ...
true
ca37297ce6aa6a0ccfe9edd332c084020f61e52a
PHP
relunctance/Relunctance
/Reluctance/Classes/Uploads.class.php
UTF-8
8,440
2.828125
3
[]
no_license
<?php /** * 文件上传+缩放+水印类 * @Author: Gaoqilin * @Mail : 334136724@qq.com * @Time : 2012-1-26 13:53:06 */ class Uploads extends Water{ //上传路径,和水印路径共用 STATIC protected $filepath = './Public/Upload/'; //上传后路径 STATIC private $upAfterPath = array(); //上传错误信息 STATIC private $errorInfo = array(); //允许大小 STATIC...
true
5db34ffc854a887464c400213bf162463baf7e8c
PHP
MahaAli18/BananaApp
/banana-app/CRUD/api/categories_api/create.php
UTF-8
935
2.640625
3
[]
no_license
<?php //Headers header('Access-Control-Allow--Origin: *'); header('Content-Type: application/json'); header('Access-Control-Allow-Methods: POST'); header('Access-Control-Allow-Headers: Access-Control-Allow-Headers, Content-Type,Access-Control-Allow-Methods, Authorization, X-Requested-With'); include_once '../../confi...
true
7dbab19d9ce26c14103e6d5bc8987439f5cbf608
PHP
TU-Berlin/WikidataMath
/wikidata/repo/maintenance/pruneChanges.php
UTF-8
3,377
2.828125
3
[]
no_license
<?php namespace Wikibase; use Maintenance; use Wikibase\Lib\Reporting\MessageReporter; use Wikibase\Lib\Reporting\ObservableMessageReporter; use Wikibase\Repo\ChangePruner; use Wikibase\Repo\PidLock; $basePath = getenv( 'MW_INSTALL_PATH' ) !== false ? getenv( 'MW_INSTALL_PATH' ) : __DIR__ . '/../../../..'; require_o...
true
7b2e2df636301a22923edf6f71b3413326965dad
PHP
DannyMeyer/bcmath
/src/Math/MathInterface.php
UTF-8
1,117
3.46875
3
[]
no_license
<?php namespace BCMath\Math; /** * Interface MathInterface * * @package BCMath\Math * @author Danny Meyer <danny.meyer@ravenc.de> */ interface MathInterface { /** * Floor a big number * * Use precision to floor to an fractional part * * @param int $precision Precision to floor to d...
true
ab69ed7df1cb4502d203d3ca4482a2f73b8976ab
PHP
Sajuk/SecretManager
/SM-secrets-server.php
UTF-8
19,092
2.578125
3
[]
no_license
<?php /** * Ce script gère les accès aux secrets. * Il tourne en tâche de fond. * Et répond aux questions des clients habilités. * * PHP version 5 * @license http://www.gnu.org/copyleft/lesser.html LGPL License 3 * @author Pierre-Luc MARY * @version 1.0 * @date 2013-02-18 * */ include( 'Constants.inc.php' ); $VERSI...
true
3cfef0831214fdcb94b2184c7698f13e82721503
PHP
kdjackson/PHPAdvClassFall2015
/week3/lab/models/MessageClass.php
UTF-8
612
3.171875
3
[]
no_license
<?php /** * Description of MessageClass * * @author 001348911 */ class MessageClass implements IMessage{ //put your code here protected $messages = array(); public function addMessage($key, $msg){ $this->messages[$key] = $msg; } publi...
true
14f8ecf059126094f9f1173139b9920fba2f80ca
PHP
edparrish/autograder
/filecontents.php
UTF-8
16,279
3.34375
3
[ "MIT" ]
permissive
<?php /** In memory copy of the contents of a file with methods for altering the in memory contents. For conversion of scripts see: static function toFileContents @author Edward Parrish @version 1.0 07/25/16 @version 1.2 11/07/16 @version 1.3 06/19/17 */ class FileContents { pr...
true
0c40cd0042f5a8b3e5541fda8e9d8bff4f7bb256
PHP
ossbrownie/carts-guru
/src/Brownie/CartsGuru/Model/ItemList.php
UTF-8
525
2.546875
3
[ "MIT" ]
permissive
<?php /** * @category Brownie/CartsGuru * @author Brownie <oss.brownie@gmail.com> * @license http://www.gnu.org/copyleft/lesser.html */ namespace Brownie\CartsGuru\Model; use Brownie\CartsGuru\Model\Base\EntityList; /** * Item list. */ class ItemList extends EntityList { protected $keyName = '...
true
04ff0ccd295bd34bd02bf033f6fb37a3ec7c6181
PHP
THE-STUDNET/twic-api
/module/Application/src/Application/Model/Base/Session.php
UTF-8
1,396
2.640625
3
[ "MIT" ]
permissive
<?php namespace Application\Model\Base; use Dal\Model\AbstractModel; class Session extends AbstractModel { protected $token; protected $data; protected $uid; protected $registration_id; protected $uuid; protected $package; protected $prefix = 'session'; public function getToken() ...
true
bf83d03fa2d959a4c6052a531b1251eff1201700
PHP
Meblart/NaukaPHP
/Stronka/class/PageView.class.php
UTF-8
785
3.140625
3
[]
no_license
<?php /** * Klasa odpowiedzialna za render strony oraz poszczególnych jej elementów */ class PageView { private $template; private $views = array(); public function __construct($templateFileName) { $this->template = $templateFileName; } public function addView(View $view) { $this->views[] = $view; } ...
true
6f52e34f2ec0586cd4ab7d083d473c68c27a7579
PHP
loyating/IMI
/src/Server/Http/SuperGlobals/Server.php
UTF-8
2,762
2.625
3
[ "LicenseRef-scancode-mulanpsl-2.0-en", "LicenseRef-scancode-mulanpsl-1.0-en", "MulanPSL-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php declare(strict_types=1); namespace Imi\Server\Http\SuperGlobals; use Imi\RequestContext; class Server implements \ArrayAccess, \JsonSerializable { /** * 默认的 $_SERVER 变量. */ private array $defaultServer = []; public function __construct(array $defaultServer) { $this->defaultS...
true
45d3f59d97c1992c0705c2c7267f50984a47f2db
PHP
Gonzalocl/share
/old/share.php
UTF-8
910
2.640625
3
[]
no_license
<?php $str1 = '<form action="/'.basename(__FILE__).'" method="get"><input name="dir" type="submit" value="'; $str2 = '"></form>'; function console_log( $data ){ echo '<script>'; // echo 'console.log('. json_encode( $data ) .')'; // echo 'console.log("dd/dd")'; echo 'console.log("'.$data.'")'; echo '</script>'; ...
true
ebb6769132e23f752912f9be060db0f3ac2e68ef
PHP
gitter-badger/PhpPulse
/src/Objects/PulseColumnPersonValue.php
UTF-8
1,703
2.921875
3
[ "MIT" ]
permissive
<?php namespace allejo\DaPulse\Objects; use allejo\DaPulse\PulseUser; /** * Class PulseColumnTextValue * * @package allejo\DaPulse\Objects * @since 0.1.0 */ class PulseColumnPersonValue extends PulseColumnValue { /** * Get the person assigned listed in the person column * * **Warning** This...
true
9da6bfd28fefce958abcb2386c3cc82a2f1fbccf
PHP
luisboch/ftbp-src
/entidades/Entidade.php
UTF-8
322
2.75
3
[]
no_license
<?php /* * Entidade.php */ /** * * @author Luis * @since Feb 23, 2013 */ interface Entidade { /** * @return integer */ function getId(); /** * @return DateTime */ function getDataCriacao(); /** * @param integer $id */ function setId($id); } ?...
true
ae2de0cd2aac9cbf8be0a105db7494f4d8d4235f
PHP
Rightpoint/lunchtrain
/include/lib_message.php
UTF-8
9,459
2.53125
3
[]
no_license
<?php function message_channel($id, $destination, $time, $creator, $train_type, $participants = array()){ $time_formated = getInformalTime($time); $train_article = 'a'; if ($train_type == 'express') $train_article = 'an'; if ($train_type) $train_type = " ".$train_type; $message = array ( 'response_t...
true
b649d833ee6644a4f3e3a7ed0082fc50dec5c8b8
PHP
BaronYan/sdzh-wxapp
/application/common/model/ScCategory.php
UTF-8
4,379
2.6875
3
[]
no_license
<?php namespace app\common\model; /** * 课程分类 */ class ScCategory extends Base { protected $pk = 'scc_id'; /** * 创建课程分类 */ public static function add() { $input = input('post.'); if (!isset($input['title']) || empty($input['title'])) { return result(-1, '分类名称不能为空...
true
f09f5246e261f350f4f1d16b33d37da89646f5a2
PHP
daruedar/Motoraicer
/micro/MisClases/Pdf.php
UTF-8
2,012
2.875
3
[]
no_license
<?php //El objetivo de esta clase es generar pdf. Cuando se crea una instancia, //se consultan todos los productos de la base de datos class Pdf { private $namebase; private $servidor; private $usuario; private $pass; public $id; public $nombre; public $imagen; public...
true
50d44674d04640acbf1a7e0a03783b46006724f9
PHP
philippkemmeter/mammun-gui
/include/classes/MapChooserFFA.inc
UTF-8
2,454
2.859375
3
[ "MIT" ]
permissive
<?php require_once(dirname(__FILE__).'/MapChooser.inc'); /** * Die Klasse ist zuständig dafür, dass der User eine FFA-Karte wählen kann, dass * diese sich füllt und, wenn voll, gestartet wird. */ class MapChooserFFA extends MapChooser { private static $INSTANCES; /** * @param uint $uid * @return MapChooserFFA...
true
2306b95570d8ccb5340e2d0efd9a07ac77b2197e
PHP
18bergen/webside
/includes/classes/base.php
UTF-8
21,441
2.53125
3
[]
no_license
<?php class base { var $getvars = array(); public $errorMessages = array(); var $allow_read = false; var $allow_write = false; var $userFilesDir = 'userfiles/'; var $userFilesVirtDir = 'brukerfiler/'; var $tempDir = '_temp/'; var $_cms; public function setCMS($cms) { $this->_cms = $cms; } private...
true
184d437d4230f401ffa8e9b029ee7006bc4e5e08
PHP
Codebreaker1/raw
/471/res/index.php
UTF-8
3,678
2.796875
3
[ "Apache-2.0", "MIT" ]
permissive
<?php include('header.php'); ?> <?php include('dbconn.php'); ?> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <title>CSS3 Bar Graphs</title> <meta http-equiv="content-type" content="text/html; charset=utf-8"/> <link rel="stylesheet" type="text/css" href="styles/main.css"/> </head> <body> <?...
true
9d0ba387e61bdfa653e68c9a114a4df37bfe4c8c
PHP
arsen00arsen/chat-back
/app/Http/Controllers/Auth/LoginController.php
UTF-8
888
2.53125
3
[]
no_license
<?php namespace App\Http\Controllers\Auth; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; class LoginController extends Controller { public function login(Request $request) { try { if (Auth::attempt($request->only('email', 'password'...
true
a65b0c836737c2baa0cebf6c14925bd5436ee184
PHP
Profilan/dutchfurniturefulfilment
/module/Application/src/Query/Resource/CustomSalesOrderShipmentResource.php
UTF-8
3,173
2.578125
3
[]
no_license
<?php namespace Application\Query\Resource; use ZF\Apigility\Doctrine\Server\Resource\DoctrineResource as Resource; use ZF\ApiProblem\ApiProblem; use ZF\Apigility\Doctrine\Server\Event\DoctrineResourceEvent; class CustomSalesOrderShipmentResource extends Resource { /** * Create a resource * * @para...
true
e0bcf6dce5c4f5e84a3b09a256c107c2bf4ef355
PHP
simondelliott/infinitepaper
/lib/framework/Database.php
UTF-8
18,045
3.03125
3
[]
no_license
<?php require_once ( dirname(__FILE__) . "/../../config.php"); require_once ( 'common.php'); class Database { const ERROR_NUM_TABLE_DOES_NOT_EXIST = 1146; /** @private string Internal variable to hold the query sql */ private $_sql=''; /** @private int Internal variable to hold the database error n...
true
06526ca243e1e1ea3ec541db7b29d61f9ad09671
PHP
sevenxian/LaraMall
/app/Repositories/FriendLinkRepository.php
UTF-8
837
2.953125
3
[ "MIT" ]
permissive
<?php namespace App\Repositories; use App\Model\FriendLink; /** * Class FriendLinkRepository * @package App\Repositories */ class FriendLinkRepository { use BaseRepository; /** * 友情链接模型 * * @var FriendLink * @author wutao */ protected $model; /** * 模型注入 * * F...
true
cc3fae80a6d0cd8ebadb360f8ce76bc9236b96ba
PHP
Sig2510/www
/test.php
UTF-8
122
2.5625
3
[]
no_license
<?php class var1 { } $product1 = new var1(); $product2 = new var1(); $product3 = new var1(); var_dump ($product1); ?>
true
2ac128816977ac0416952e4d57ac6a696b671427
PHP
GreenwichCodeZero/eSupervisionSystem
/staff/meetings.php
UTF-8
28,822
2.78125
3
[]
no_license
<?php // Initialise session session_start(); error_reporting(0); require '../database-connection.php'; require '../validation.php'; require '../login-check.php'; require '../classes/userDetails.class.php'; require '../classes/meetings.class.php'; // Redirect students if ($_SESSION['currentUser']['user_type'] == 'st...
true
79f8da43c520b07637a5a25177f42ae700c69cba
PHP
bahkali/CMS
/admin/functions.php
UTF-8
6,857
2.765625
3
[]
no_license
<?php function clean($n){ return htmlentities($n); } function confirm($r){ global $connection; if(!$r){ die("FAILED QUERY" . mysqli_error($connection)); } } function insert_categories(){ //handling the input global $connection; if(isset($_POST['submit'])){ $category = cle...
true
46ac55309a861142416dcf9c1bfdce6be7b47e2f
PHP
waldomero14/paint-shop
/src/File/FileReader.php
UTF-8
1,679
3.453125
3
[]
no_license
<?php namespace File; /** * Class FileReader. * * This class reads and process the input file. * * @package File */ class FileReader { /** * Validates that the first line is valid. * * @param string $line * The line string. * * @return bool * True if the validation is passed. */ ...
true
192594218f2675191e4e5e12c3a66e4c20442c63
PHP
imcastroboy/commission-task
/tests/Service/CommisionTest.php
UTF-8
1,918
2.546875
3
[]
no_license
<?php declare(strict_types=1); namespace JACastro\CommissionTask\Tests\Service; use JACastro\CommissionTask\Abstracts\TransactionInterface; use JACastro\CommissionTask\Entities\Transaction; use JACastro\CommissionTask\Service\CommissionCalculator; use JACastro\CommissionTask\Service\Math; use JACastro\CommissionTask...
true
9e2a3d68d40fc90089b5deda5766d141276609ca
PHP
nicexiaonie/Jnae
/Package/Library/Crypt/Aes.php
UTF-8
2,161
3.1875
3
[]
no_license
<?php //php aes加密类 namespace Library\Crypt; //使用方法 //$aes = new AESMcrypt($bit = 16, $key = '235467rsegyuk', $iv = '234', $mode = 'ecb'); class Aes { /** * 干扰串 * @var string * @access private */ private static $key = 'Jnae'; /** * 位数 * @var int 128、192、256 * @access private */ private static $bit ...
true
415f4c84d38081395256a0619b47f17cc776ad76
PHP
xiebruce/PicUploader
/vendor/sabre/vobject/lib/Property.php
UTF-8
16,927
3.125
3
[ "BSD-3-Clause", "MIT" ]
permissive
<?php namespace Sabre\VObject; use Sabre\Xml; /** * Property. * * A property is always in a KEY:VALUE structure, and may optionally contain * parameters. * * @copyright Copyright (C) fruux GmbH (https://fruux.com/) * @author Evert Pot (http://evertpot.com/) * @license http://sabre.io/license/ Modified BSD Li...
true
cdd01e46baa29f80ad2de0148ab83cc0d1a8f954
PHP
janmyszkier/akeneo-pim-middleware-connector
/src/SprykerEco/Zed/AkeneoPimMiddlewareConnector/Business/Stream/Json/JsonSuperAttributeWriteStream.php
UTF-8
2,327
2.671875
3
[ "MIT" ]
permissive
<?php /** * MIT License * For full license information, please view the LICENSE file that was distributed with this source code. */ namespace SprykerEco\Zed\AkeneoPimMiddlewareConnector\Business\Stream\Json; use SprykerMiddleware\Shared\Process\Stream\WriteStreamInterface; use SprykerMiddleware\Zed\Process\Busine...
true
58a06a952157715f1be486e8e00c24ce5a511bcc
PHP
lesichkovm/robo-tasks
/src/Task/ExecuteSqlViaPhpMyAdmin.php
UTF-8
3,451
2.90625
3
[ "MIT" ]
permissive
<?php namespace Brads\Robo\Task; use RuntimeException; use Robo\Result; use Robo\Task\BaseTask; use Robo\Task\Base\loadTasks; use Robo\Common\DynamicParams; use GuzzleHttp\Client as Http; use GuzzleHttp\TransferStats; use Stringy\Stringy as s; use Brads\Robo\Shared\PhpMyAdminLogin; use Brads\Robo\Shared\PhpMyAdminLogi...
true
58f3bb419ab5fa4821b2ee7bf3098629f9443fcb
PHP
aiupjulian/classified-ads-php
/resources/templates/register.php
UTF-8
2,606
2.703125
3
[]
no_license
<style> input[type="number"]::-webkit-outer-spin-button, input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; } input[type="number"] { -moz-appearance: textfield; } </style> <?php unset($error); if(isset($_SESSION['username'])) { header("location: profile.php"); } if (...
true
0fc56ad4f552c336fd943a3b9edd4d1fce97dcdf
PHP
webclinic017/marketvision
/php/password-reset.inc.php
UTF-8
1,835
2.515625
3
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
<?php $selector = bin2hex(random_bytes(8)); $token = random_bytes(32); $url = "WEBSITE HERE /forgotten-password.php?selector=".$selector."&validator=".bin2hex($token); $expires = date("U") + 1800; //Adds 1 hour (1800 seconds) to current time require 'database-connection.inc.php'; $userEmail = ...
true
a842e9389535d7d9c99138ac89b657cf4f6182d4
PHP
mz5c/learn_php
/2015c/dir1105before/lp10311314.php
UTF-8
335
3.25
3
[]
no_license
<?php /** * Created by PhpStorm. * User: mz5c * Date: 2015/10/31 * Time: 13:14 */ $x = 1234; var_dump($x); echo '<br>'; $y = -1234;//负数 var_dump($y); echo '<br>'; $z = 0x1234;//十六进制数 var_dump($z); echo '<br>'; $xyz = 0123;//八进制数 var_dump($xyz); /** * 十六进制数以0x开头 * 八进制数以0开头 */
true
c54a0e859d8c06169736771989e11a6999b621ae
PHP
gitlabware/unibol
/app/Model/Nivele.php
UTF-8
1,276
2.515625
3
[]
no_license
<?php App::uses('AppModel', 'Model'); /** * Nivele Model * * @property Gestione $Gestione * @property AlumnosParalelo $AlumnosParalelo * @property Paralelo $Paralelo */ class Nivele extends AppModel { //The Associations below have been created with all possible keys, those that are not needed can b...
true
4405e503bdc8e7aaddd755db1f94c29f4bc6b00e
PHP
jsbrhub/siav
/cadDetalhearquivo.php
UTF-8
2,045
2.515625
3
[]
no_license
<?php require_once("classes/class.Controle.php"); $oControle = new Controle(); // ================= Cadastrar Detalhearquivo ========================= if($_POST){ print ($oControle->cadastraDetalhearquivo()) ? "" : $oControle->msg; exit; } $aArquivo = $oControle->getAllArquivo(); ?> <!DOCTYPE html> <html lang="pt...
true
ae457a7db1107308b34d9152e50e6d31758ac9c1
PHP
nbnitishbharti2/docpoint
/database/seeds/RoleSeeder.php
UTF-8
521
2.640625
3
[]
no_license
<?php use Illuminate\Database\Seeder; class RoleSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $roles = array("Admin", "Doctor", "User"); foreach ($roles as $value) { DB::table('roles')->insert([ ...
true
3de1ddcdda5fe43c71855a33998ac2ea62ed8c4a
PHP
LucWatelet/wp_hades
/widget/class_hades_widget_search.php
UTF-8
24,039
2.59375
3
[]
no_license
<?php class Hades_Widget_Search extends WP_Widget { private static $instance = 0; protected $defaults; public function __construct() { $widget_ops = array ( 'classname' => 'widget_search hades_widget_search', 'description' => __( 'Recherches d\'of...
true
2a60899e3686478236422cb1df69e9cf966a4533
PHP
guihouchang/api.youmeiren.com
/app/models/UsrAdminUser.php
UTF-8
4,784
2.921875
3
[]
no_license
<?php class UsrAdminUser extends \Phalcon\Mvc\Model { /** * * @var integer */ protected $id; /** * * @var string */ protected $account; /** * * @var string */ protected $password; /** * * @var integer */ protected $privlege...
true
cb7aeb99f4f686554aacb1aa5733e5f5d7913c55
PHP
hakeembalghari/egn
/pages/topics.php
UTF-8
1,969
2.625
3
[]
no_license
<?PHP $query = " SELECT id,belongsto,title,madeby,lastby,sticky,locked,identifier,date FROM forum_threads WHERE belongsto = :identifier "; $query_params = array( ":identifier" => $_GET["s"] ); try { $stmt = $db->prepare($query); $stmt->execute($query_params); } ...
true
f3b22c72397addd472baa8e49437138a0f5c9aa3
PHP
s3802460/s3802460.github.io
/store/fetch_data_storehome.php
UTF-8
1,083
2.671875
3
[]
no_license
<?php include('find_products_from_store_id.php'); $product_file = '../data/product/products.csv'; $product_file = fopen($product_file, 'r'); $products = array(); $data = fgetcsv($product_file, 0, ','); while ($data = fgetcsv($product_file, 0, ',')) { $data[3] = date_create($data[3]); $products[] = $data; } fc...
true
ea7eb1bfc215260b16cea1185d7e2b7de47b5b79
PHP
tellibus/PONIpar
/src/ProductSubitem/Series.php
UTF-8
1,601
3.03125
3
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace PONIpar\ProductSubitem; use PONIpar\ProductSubitem\Subitem; /* This file is part of the PONIpar PHP Onix Parser Library. Copyright (c) 2018, tellibus All rights reserved. The software is provided under the terms of the new (3-clause) BSD license. Please see the file LICENSE for detail...
true
18131759204fcc1a95a1c831d592c077122f7947
PHP
dminerva/RegistrationSystem
/searchSections.php
UTF-8
4,712
2.53125
3
[]
no_license
<?php ob_start(); ?> <html> <head> <title>search sections</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> <link rel="stylesheet" type="text/css" href="style...
true
0b2113a32ca01618042d4e03614eb282a7b890b0
PHP
MikaHub/ProjetPhp
/ec-code-2020-codflix-php-master/model/media.php
UTF-8
5,315
3.0625
3
[]
no_license
<?php require_once( 'database.php' ); class Media { protected $id; protected $genre_id; protected $title; protected $type; protected $status; protected $release_date; protected $summary; protected $trailer_url; protected $typeOf; protected $saison; protected $episode1; protected $episode2; ...
true
ac473f6da6bef3187ba9ce1d45d8b85bd37b1084
PHP
JoenesGH/pms
/pms/glens_system/application/models/Sms_notif.php
UTF-8
3,919
2.59375
3
[ "MIT" ]
permissive
<?php defined('BASEPATH') OR exit(''); class Sms_notif extends CI_Model{ public function __construct(){ parent::__construct(); } public function getAll($orderBy, $orderFormat, $start=0, $limit=''){ $this->db->limit($limit, $start); $this->db->order_by($orderBy, $orderFormat); ...
true
ba21e7f773ed5dce62bf5dac14372ebd11abefe5
PHP
xuyuan5/Golf
/data/courses.php
UTF-8
1,036
2.65625
3
[]
no_license
<?php /* * @author Yuan Xu */ require_once('../helper/utilities.php'); require_once('../config.php'); require_once('../database/courses.php'); if(isset($_GET['name'])) { echo json_encode(get_course($_GET['name']), JSON_NUMERIC_CHECK); } else if(isset($_GET['all'])) { echo json_encode(get_courses_and_tees(),...
true
f510ea47c4dde44e50134c15fc7a3e9c738b23af
PHP
DarrylMcoder/lib822
/src/Lib822/HeaderTokenFactory.php
UTF-8
888
2.921875
3
[]
no_license
<?php /** * Factory which makes HeaderToken objects * * PHP version 5.3 * * @package Lib822 * @author Chris Wright <info@daverandom.com> * @copyright Copyright (c) 2013 Chris Wright * @license http://www.opensource.org/licenses/mit-license.html MIT License * @version 1.0 */ namespace Lib822; /** *...
true
b674947ba6b9576153cd7451e1d80cf5fcddb53e
PHP
zhuyunlong2018/exchange
/app/Console/Commands/Tonyenc.php
UTF-8
2,096
2.65625
3
[]
no_license
<?php namespace App\Console\Commands; use Illuminate\Console\Command; class Tonyenc extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'tonyenc'; /** * The console command description. * * ...
true
0cf38b90cdbb405b1253ffb359794785aa7adaf3
PHP
Isaipc/angelotti-api-rest
/database/seeds/CategoriaSeeder.php
UTF-8
503
2.546875
3
[ "MIT" ]
permissive
<?php use App\Categoria; use Illuminate\Database\Seeder; class CategoriaSeeder extends Seeder { const CATEGORIAS = array( 'Pizzas', 'Bebidas', 'Bebidas alcoholicas', 'Postres', 'Acompañamiento' ); /** * Run the database seeds. * * @return void *...
true
819439b9262cdef964b6d24d91bcff180aa53389
PHP
feliperom/fernandes-transportes
/assets/php/form-process.php
UTF-8
1,259
2.765625
3
[]
no_license
<?php $errorMSG = ""; // NAME if (empty($_POST["name"])) { $errorMSG = "Por favor, digite seu nome "; } else { $name = $_POST["name"]; } // EMAIL if (empty($_POST["email"])) { $errorMSG .= "Por favor, digite seu e-mail "; } else { $email = $_POST["email"]; } // MSG SUBJECT if (emp...
true
8f23eaa4ba1abdfede289c0235c83e9e7ea9b2ae
PHP
ios1024/jiesi
/include/verifycode.php
UTF-8
108
2.53125
3
[]
no_license
<?php function verifycode_1(){ $code_1=""; for($i=0;$i<4;$i++){ $code_1.=rand(0,9); } return $code_1; } ?>
true
7b6b0898cd913bfb5694012b40b70ff55c621fc0
PHP
shilgari-vandana/product-catalogue-symfony
/tests/Controller/Admin/ProductControllerTest.php
UTF-8
6,171
2.6875
3
[ "MIT" ]
permissive
<?php namespace App\Tests\Controller\Admin; use App\Repository\ProductRepository; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; use Symfony\Component\HttpFoundation\Response; /** * Functional test for the controllers defined inside the ProductController used * for managing the product in the backend. * Exe...
true
38f743dc125650586d717da3a40f0dedbea38922
PHP
Sapphirious/Bentley-To-Go
/Master/PHP/feedback.php
UTF-8
1,400
3
3
[]
no_license
<?php require "../project.inc"; function InsertNewFeedback() { // check to see if something was send via POST if ( isset( $_POST["first-name"] )) { // post data has been sent echo "<p>Thank you!</p>\n"; // write out the data sent echo "<p>Following feedback has been submitted:</p>\n"; for...
true
5163ee223e25213c2d9d99485f4bc29b30f13d4b
PHP
deflox/m183
/app/Libraries/API.php
UTF-8
1,408
3.09375
3
[]
no_license
<?php /** * Library for creating API responses. * * @author Leo Rudin */ namespace App\Libraries; use App\Accessor; class API extends Accessor { /** * Creates a general json response. * * @param $res * @param $content * @return string */ public function createResponse($re...
true
9aba89f24b7ee9d0e971d38d27545b98b8e18263
PHP
wassim-chegham/Design-Patterns
/factoryMethod/classes/Creator.php
UTF-8
187
3.09375
3
[]
no_license
<?php class Creator { public function Creator(){} public function FactoryMethod() { return new Product(); } public function AnOperation() { echo "I am an operation"; } } ?>
true
b3da77d83b51a439077fdfccf57a54453858ea23
PHP
JamesBondsky/4lapy
/src/SapBundle/Dto/In/ConfirmPayment/Item.php
UTF-8
5,154
2.59375
3
[]
no_license
<?php /* * @copyright Copyright (c) ADV/web-engineering co */ namespace FourPaws\SapBundle\Dto\In\ConfirmPayment; use JMS\Serializer\Annotation as Serializer; /** * Class Item * @package FourPaws\SapBundle\Dto\In */ class Item { /** * УИД торгового предложения * * @Serializer\XmlAttribute() ...
true
847021e541d7b400f25496da7af4d06264b8baeb
PHP
D1anap5/Cleansing-Data
/INLIS/5. Pengelolaan koleksi yang tidak memiliki nomor deposit/script.php
UTF-8
5,722
2.75
3
[]
no_license
<?php include 'connection.php'; include 'logs.php'; if (!$c) { die("Tidak dapat melakukan koneksi dengan database Oracle"); } $log = date('h:m:s') . " : Start cleansing collections dengan nomor deposit null"; writeLog($log); echo $log; /*------------------------------------------------------------------------- ----...
true
a42c4a17b36043f8e97a9e7db6588018f1b91fe6
PHP
dhwaneetbhatt/ahichhatra-vivah
/app/models/User.php
UTF-8
2,925
2.625
3
[ "Apache-2.0" ]
permissive
<?php use Illuminate\Auth\UserTrait; use Illuminate\Auth\UserInterface; use Illuminate\Auth\Reminders\RemindableTrait; use Illuminate\Auth\Reminders\RemindableInterface; class User extends Eloquent implements UserInterface, RemindableInterface { use UserTrait, RemindableTrait; /** * The database table ...
true
52a9ab64b182b0da7e7a7c37f33951c10cffaae4
PHP
oxiEva/masakiNews
/View/buscarTusNoticias.php
UTF-8
4,173
2.53125
3
[]
no_license
<?php /*Establir la connexio*/ require_once "../Classes/Conexion.php"; require_once "../Classes/BuscadorNoticias.php"; /*Carregar les classes q necessitem*/ require_once "../Model/Noticias.php"; /*Reanudem la sessió*/ session_start(); if(!isset($_SESSION['username'])){ header("location: login.php"); } /*$_PO...
true
2257c2054479bd49acbd5eca203a72a4f7e90ac6
PHP
DanielGeorgiev/PHP-Basics-2017
/PHPAdvancedSyntaxLab/InsideVolume.php
UTF-8
778
3.359375
3
[]
no_license
<?php function isInsideVolume($x, $y, $z){ $x1 = 10; $x2 = 50; $y1 = 20; $y2 = 80; $z1 = 15; $z2 = 50; if ($x >= $x1 && $x <= $x2){ if ($y >= $y1 && $y <= $y2){ if ($z >= $z1 && $z <= $z2){ return true; } } } ...
true
4d1266505097d0df29bda5d41e0a80fd64b6e682
PHP
PoojaKesarkar/sub3
/ph.php
UTF-8
2,180
2.765625
3
[]
no_license
<?php define('DB_SERVER', 'localhost:3325'); define('DB_USERNAME', 'root'); define('DB_PASSWORD', ''); define('DB_DATABASE', 'eventDB'); $connect = mysqli_connect(DB_SERVER,DB_USERNAME,DB_PASSWORD,DB_DATABASE); $data = json_decode(file_get_contents("php://input")); if(count($data) > 0) { $ev...
true
fb1c3c8ca711ceac5332c720c006bfa5aec0646b
PHP
Alcaind/clrbooking
/app/vendor/crell/api-problem/src/ApiProblem.php
UTF-8
15,658
2.84375
3
[ "MIT" ]
permissive
<?php /** * This file is part of the ApiProblem library. * * (c) Larry Garfield <larry@garfieldtech.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @package Crell\ApiProblem */ namespace Crell\ApiProblem; /** * An API e...
true
40b97c68f0d78a6c4c61bb711021f8e2f56e234e
PHP
YaroslavBemov/PHP-base-course
/hw-1/task-5/method-4.php
UTF-8
168
3
3
[]
no_license
<?php //самый быстрый метод в плане производительности $a = 1; $b = 2; $c = $a; $a = $b; $b = $c; echo "a = {$a}, b = {$b}";
true
0302da4e4a491d5bb306911c90f3a7e1134b7115
PHP
bit-lgmb/bit
/seminars_bioinfo.php
ISO-8859-1
6,276
2.6875
3
[]
no_license
<!--<?php // $Id: seminars_mbl.php,v 1.1 2003/09/17 20:39:25 mavcunha Exp $ ?> --> <?php require_once("includes/main.inc"); ?> <!-- BEGIN localfile --> <?php function paper_id2link ($paper_id,$title) { if($paper_id =="") { return "$title"; } else { return "<a href='http://lgmb.fmrp.usp.br/papers/results.php?are...
true
8693b985f535178ab1f7a22eac86ad10b7c44b00
PHP
bookboon/api-php
/src/Entity/Question.php
UTF-8
2,226
2.8125
3
[ "Apache-2.0" ]
permissive
<?php namespace Bookboon\Api\Entity; use Bookboon\Api\Bookboon; use Bookboon\Api\Client\BookboonResponse; use Bookboon\Api\Client\ClientInterface; class Question extends Entity { /** * Questions. * * @param Bookboon $bookboon * @param array $answerIds array of answer ids, can be empty * ...
true
86d4d82da67cad5d18902515b0818d488251e1f3
PHP
DustHoff/InfoManager
/app/Host.php
UTF-8
1,426
2.5625
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Host extends Model implements MaintainableInterface { const STAGE = ["TEST", "QS", "PROD"]; public $timestamps = false; protected $table="hosts"; protected $fillable = ["zabbix_id", "stage", "owner", "host_id", "address"]; /** ...
true
9d8f5b7fda81db597c3c2b3365ee3a1b8098ac5f
PHP
belushkin/bus115
/src/Telegram/Commands/GenericmessageCommand.php
UTF-8
715
2.578125
3
[ "MIT" ]
permissive
<?php namespace Longman\TelegramBot\Commands\SystemCommands; use Longman\TelegramBot\Commands\SystemCommand; use Longman\TelegramBot\Request; class GenericmessageCommand extends SystemCommand { protected $name = 'Genericmessage'; protected $description = 'Handle generic message'; protected $version = '1....
true
3f49c1724b9731d62af645ffb880851d21246470
PHP
francislavoie/cache
/src/PHPCache.php
UTF-8
2,577
3.453125
3
[ "MIT" ]
permissive
<?php namespace Vectorface\Cache; /** * A cache implementation using an internal PHP associative array. * * This cache is very fast, but volatile: cache is only maintained while the PHP interpreter is running. * Usually, this means one HTTP request. * * Capable of a huge number of requests/second */ class PHPC...
true
717859e961c067087b316d96dc91c42ef317252d
PHP
chevronphp/hooks
/src/Hooks.php
UTF-8
2,090
3.171875
3
[]
no_license
<?php namespace Chevron\Hooks; use \Psr\Log; /** * allow for the registration and dispatching of callables using events * @package Chevron\Hooks */ class Hooks implements Log\LoggerAwareInterface, Interfaces\HooksInterface { use Log\LoggerAwareTrait; /** * the array key for the functions, to avoid strings ...
true
a84294810c5a771360b348a189a9025d81bb9d75
PHP
khalilalquraan/Jordan_Covid-19_Heat_Map
/app/Model/Approve.php
UTF-8
1,479
2.5625
3
[]
no_license
<?php class Approve extends AppModel { public $validate = [ 'national_id' => [ 'required' => true, 'isUnique' => [ 'rule' => 'isUnique', 'message' => 'Provided National already exists.' ], 'numeric' => [ 'rule' =...
true
1ccd01201d396d2b32564501dc8155e403bc3914
PHP
rdadesukro/E-learning
/app/src/main/java/com/example/e_learning/php/admin/guru.php
UTF-8
4,537
2.71875
3
[]
no_license
<?php error_reporting(0); include "db.php"; $id_guru = $_GET['id_guru']; if($id_guru != ""){ $aksi = "pu_guru.php"; $q = mysqli_query($con, "select * from guru where id_guru = '$id_guru'"); $result = mysqli_fetch_assoc($q); $imageUrl = "../foto/".$result['foto']; }else{ $aksi = "ps_guru.php"; } ?> <h2><u>Form Tam...
true
b335721e66fa35c3b355ebf8fd3aebb859646973
PHP
spyric/ispmanager-sdk
/src/Request.php
UTF-8
1,872
2.875
3
[]
no_license
<?php namespace Spyric\ISPManager; use GuzzleHttp\Client; class Request { public static $defaultsCredentials = [ 'host' => 'localhost', 'port' => '1500', 'username' => 'root', 'password' => 'P@55word@123', ]; protected $host; protected $port; protected $use...
true
1e2f9365f752332ef7053751f99a4bef8eabd61d
PHP
ansata-biz/s1-form-widgets
/widgets/awgWidgetFormJQueryDateRange.php
UTF-8
1,578
2.765625
3
[]
no_license
<?php /** * Description of awgWidgetFormJQueryDateRange * * @author io */ class awgWidgetFormJQueryDateRange extends sfWidgetFormDateRange { protected function configure($options = array(), $attributes = array()) { /* * Actually standard sfWidgetFormDateRange can be used with JQueryDateRanges as well. ...
true