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
dd6b14ccf92fe2def866667b8a20601c8c28c8a6
PHP
guozhisong/pcgame
/fbsys.91yxq.com/cwps/classes/com/member/admin/biz/Operator.php
WINDOWS-1252
1,986
2.734375
3
[]
no_license
<?php Class Operator extends iData { /** * Method: * @param void * @return boolean */ function add() { global $table; if($this->dataInsert($table->operator)) return true; else return false; } /** * Method: * @param int $OpID * @return boolean *...
true
e3e6fecb4d283be04bb991c82601b97b223590fe
PHP
mohamedgaber-intake40/PHP_Native
/Includes/Validator/Validator.php
UTF-8
1,678
2.859375
3
[]
no_license
<?php namespace Includes\Validator; class Validator { public static function validate( $input , $rules) { $errors = []; $rules = explode('|',$rules); foreach ($rules as $rule) { $valid_result = self::checkRules($input , $rule ); if($valid_res...
true
ebac2d65ff0e1880f2497d9a13f57855bd5b7d58
PHP
jeremygiberson/Entropy
/src/Engine/Territory/Node.php
UTF-8
502
2.90625
3
[]
no_license
<?php /** * User: Jeremy * Date: 2/26/2015 * Time: 10:25 PM */ namespace JeremyGiberson\Entropy\Engine\Territory; class Node { /** @var array Node[] */ protected $neighbors = []; /** * @param Node $n */ public function addNeighbor(Node $n) { $this->neigh...
true
56323d5aaa3755b9c8a438330d5334dd6d05492c
PHP
kiranrana8973/tourofherophp
/index.php
UTF-8
775
2.515625
3
[]
no_license
<?php $conn = mysqli_connect("localhost","root",""); $db = mysqli_select_db($conn,"tourofheroes"); /* if($db){ echo "connected"; } else{ echo "failed"; } */ ?> <html> <head> </head> <body> <form action="user-process.php" method="post"> <label>fullname</label> <input type="text" name="fullName"> ...
true
b828bca039ac30b903314f9d0a3afe1641db703b
PHP
good88fella/21school-php_piscine
/d07/ex06/UnholyFactory.class.php
UTF-8
961
3.78125
4
[]
no_license
<?php class UnholyFactory { private $_absorbed = array(); function absorb($person) { if ($person instanceof Fighter) { if (!array_key_exists($person->getType(), $this->_absorbed)) { $this->_absorbed[$person->getType()] = $person; print("(Factory absorbed a fighter of type " . $person->getType() . ")"...
true
3d88ad125fa9aadaed1d7eece0270af864d0e42d
PHP
renandefariazk/AgendaTarefa-PHP
/controller/homeController.php
UTF-8
460
2.65625
3
[]
no_license
<?php namespace controller; class homeController{ public $template; function index(){ $this->renderTemp("home.php","template.php"); } // funcion callback function content(){ require_once $this->template; } function render($views){ require_once "./views/".$views; } ...
true
5f468dfb16c004d18d3b37d149a1dee785707726
PHP
collinsmarc/AzureTest
/Week6/functionsI.php
UTF-8
415
3.234375
3
[]
no_license
<!doctype html> <html> <head> </head> <body> <p> <?php $myname="Marc Collins"; $length=strlen($myname); print $length; $partial=substr($myname,0,2); print $partial; $upper=strtoupper($myname); print $upper; "<br><br>"; $round=round(M_PI); print "<br>".$round; $round...
true
cd77b90ab404a7a5e830a57aa93284076a915aac
PHP
felipecesr/php-uml
/app/src/Domain/Produto.php
UTF-8
949
3.15625
3
[]
no_license
<?php namespace Entity; class Produto implements \JsonSerializable { private $id; private $nome; private $preco; private $categorias = []; public function __construct(int $id, string $nome, float $preco) { $this->id = $id; $this->nome = $nome; $this->preco = $preco; ...
true
dc613990078d9d447bc4dcf231b412bf75d3cf71
PHP
hackgirl9/Abastecer
/App/Core/BaseController.php
UTF-8
3,409
3.09375
3
[]
no_license
<?php class BaseController{ // Clase que controla las vistas y los datos que reciben. public function __construct(){ require_once 'EntidadBase.php'; // Incluye el archivo EntidadBase require_once 'BaseModel.php'; // Incluye el archivo BaseModel foreach(glob('Model/*.php')...
true
71451e0ca043a206e9951caebdab54ff44ca6a84
PHP
Hardys1983/lothar
/application/models/Cell_phone_company_model.php
UTF-8
980
2.578125
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php class Cell_phone_company_model extends CI_Model { function __construct() { parent::__construct(); $this->load->database(); } function create($data) { $this->db->set('company_name', $data['company_name']); $this->db->insert('cell_phone_company'); return $this->db->inserted_id(); } function get_...
true
17db04495e5442bc5a68fe62592ea706712d79cb
PHP
duc1807/Gaming-Store-Website
/manage_type.php
UTF-8
1,834
2.640625
3
[]
no_license
<?php require_once 'adminheader.php'; $qry = "SELECT * FROM accessories"; $result = querySQL($qry); if(isset($_POST['add'])) { $type = $_POST['type']; $qry3 = "SELECT * FROM accessories WHERE accessories_type = '$type'"; $rst3 = querySQL($qry3); if ($rst3->num_rows == 0) { $qry = "INSERT accessories(accessories...
true
b3f70b52663446eaf3fc595490771f5746168512
PHP
sshakeel/ideatagr
/pin_idea.php
UTF-8
1,405
2.578125
3
[]
no_license
<?php require_once("includes/session.php"); ?> <?php require_once("includes/connections.php"); ?> <?php require_once("includes/functions.php"); ?> <?php $user = $_SESSION['email']; $tagToPin = $_GET['pintag']; $action = $_GET['action']; $pinnedResult = mysql_query("SELECT * FROM pinned WHERE user='{$user}' OR...
true
74a17b0a0dca016d588773b7952c4c7c58950988
PHP
Nizami00/iban-validator
/app/Models/Country.php
UTF-8
1,972
3.015625
3
[]
no_license
<?php declare(strict_types=1); namespace App\Models; use NNV\RestCountries; class Country { /** * @var string */ protected string $countryName; /** * @var string */ protected string $capitalCity; /** * @var string */ protected string $region; /** * @v...
true
18a49034338fc0addd2b9b8b41c121a9976f7d0b
PHP
Godjqb/Php-test
/cookie.php
UTF-8
223
2.671875
3
[]
no_license
<?php setcookie("user","God",time()+3600); ?> <?php if (isset($_COOKIE["user"])) echo "Welcome! ".$_COOKIE["user"]."<br />"; else echo"You are welcome!"; print_r($_COOKIE); //setcookie("user","",time()-3600); ?>
true
2ecba83b24d3a40d51d9ddd933a1086be110f944
PHP
technoexponent02/yii2
/common/models/PropertyCategory.php
UTF-8
2,882
2.546875
3
[]
no_license
<?php namespace common\models; use Yii; /** * This is the model class for table "property_category". * * @property int $id * @property string $category * @property string $status * @property int $created_at * @property int $updated_at * * @property Property[] $properties * @property PropertyCategoryTransla...
true
6e33c77b2a02b8391d54e8d5cbc6e677984e273b
PHP
jebscodev/sample_laravel_app
/database/migrations/2020_03_10_142357_create_prospects_table.php
UTF-8
1,162
2.609375
3
[]
no_license
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateProspectsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('prospects', f...
true
da83f4a78f6d8b0a940a35a6259f26ef8a6569e7
PHP
aautar/notary
/tests/ValidationErrorTest.php
UTF-8
761
2.5625
3
[ "MIT" ]
permissive
<?php namespace Notary\Tests; use Notary\ValidationError; use Notary\Rule; class ValidatorErrorTest extends \PHPUnit_Framework_TestCase { public function testJsonSerializeReturnsArray() { $error = new ValidationError("name", new Rule("r123", "something bad happened", function() { })); $jsonSe...
true
3efe889c09b23d72fbe6bdf390657c3b90729fc2
PHP
sherlock/php_example
/newfile6.php
UTF-8
559
2.984375
3
[]
no_license
<?php echo E_ERROR."<br />\n"; $switching = array( 10, // key = 0 5 => 6, 3 => 7, 'a' => 4, 11, // key = 6 (maximum of integer-indices was 5) '8' => 2, // key = 8 (integer!) '02' => 77, // key = '02' 0 => 12 // the value 10 will be ove...
true
20e7437afa507125c2fb416479915c772e20076d
PHP
iresults/core
/Classes/Iresults/Core/Locale/TranslationProviderInterface.php
UTF-8
956
2.6875
3
[ "MIT" ]
permissive
<?php /** * @author Daniel Corn <cod@iresults.li> * Created 03.10.13 11:41 */ namespace Iresults\Core\Locale; /** * Interface for Translation Providers which search for translations in the * sources they can handle (i.e. CSV files are handled by the CsvTranslationProvider) * * Think of the Translation Provide...
true
64dcfbc295656efc7f25c61fb0442aec5f949d46
PHP
ludovicjj/framework
/tests/Domain/Common/Router/RouterTest.php
UTF-8
3,640
2.71875
3
[]
no_license
<?php namespace Tests\Domain\Common\Router; use App\Domain\Common\Router\Router; use GuzzleHttp\Psr7\ServerRequest; use PHPUnit\Framework\TestCase; class RouterTest extends TestCase { /** @var Router */ private $router; public function setUp(): void { $this->router = new Router(); } ...
true
da27d9b115a223ef4197ee6c22c0d85cacb4e916
PHP
qcubed/application
/src/Action/ServerControl.php
UTF-8
1,045
2.625
3
[ "MIT" ]
permissive
<?php /** * * Part of the QCubed PHP framework. * * @license MIT * */ namespace QCubed\Action; use QCubed\Control\ControlBase; /** * Class ServerControl * * Server control action is identical to server action, except * the handler for it is defined NOT in the form, but in a control. * * @was QServerContr...
true
e8c8a6a29d19d17da6f6bd0db34c7e1fea46288c
PHP
troysxi/research-e-library
/app/Http/Controllers/ItemController.php
UTF-8
3,150
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Item; use App\Http\Requests; use App\Http\Controllers\Controller; use DB; class ItemController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function ...
true
e1532e73b77f4e29407991c6333fa50446835078
PHP
DoedeJaarsmaCommunicatie/smarble
/src/Providers/MenuServiceProvider.php
UTF-8
1,186
3
3
[]
no_license
<?php namespace App\Providers; use Timber\Menu; use function register_nav_menus; /** * Class MenuServiceProvider * * @package App\Providers */ class MenuServiceProvider { /** * The registered menus * * @var array */ protected $menus = [ 'primary-menu' => 'Primary', 'footer-menu' => 'Footer menu',...
true
69e05dd5b09fac1aa108e3842c1d79af4ae4367b
PHP
mzubairkhan/reviewstest
/api/CAP/Website/Manager.php
UTF-8
3,238
2.84375
3
[ "MIT" ]
permissive
<?php namespace CAP\Website; use CAP\Core\Common; use CAP\Core\DB; Class Manager { private $db; private $table; function __construct() { $this->db = new DB('DB-BI'); $this->table = array('websites'); } public function listAll() { return $this->db_listAll(); } ...
true
661ca9e78414942965a64603c8cc1f53c2324f02
PHP
cdnicoll/dependency-injection-test
/PersonClass.php
UTF-8
1,496
3.359375
3
[]
no_license
<?php class PersonClass { /** * Config options for authentication * @var array */ protected $_config; /** * Persons name * @var string */ protected $_name; /** * Persons Gender * @var string */ protected $_gender; /** * Persons age * @var int */ protect...
true
4b7cb2baa2cbcac699ac94f037cdf86844a5e756
PHP
knichel/AIT2Yii2
/models/Download.php
UTF-8
2,167
2.65625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use Yii; /** * This is the model class for table "download". * * @property integer $download_id * @property integer $teacher_id * @property integer $ed_center_id * @property string $filename * @property string $description * @property integer $size * @property string $file_type ...
true
dbc7bd24e91a20e3adcae9c38f103158125b2a85
PHP
juniorknot/biblesearch-api-php
/example/index.php
UTF-8
6,221
2.625
3
[]
no_license
<body> <ul> <li><a href="?action=version">Test Version</a></li> <li><a href="?action=book">Test Book</a></li> </ul> <?php include('../Version.php'); include('../Book.php'); include('../Chapter.php'); include('../Verse.php'); include('../Bookgroup.php'); include('../Iterator.ph...
true
0d158af6e9a94b57d0eee1653d827b0abde0aaaf
PHP
avijit1258/qa_site
/app/Http/Controllers/QuestionController.php
UTF-8
1,856
2.65625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Question; use App\Answer; use Illuminate\Http\Request; use Illuminate\Support\Facades\Validator; class QuestionController extends Controller { public function store(Request $request) { $this->validate($request, [ 'body' => 'required|min:5|rege...
true
bb29f305707acc4dd9add6c127bf83c941ea9eeb
PHP
buxianglei/sspanel
/app/Models/Order.php
UTF-8
431
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Order extends Model { /** * 获取套餐模型关联 * * @return Plan */ public function plan() { return $this->belongsTo("App\Models\Plan"); } /** * 获取用户模型关联 * * @return User */ public ...
true
68fe149722d92a2a3c3781285060b89f9b8cd384
PHP
Aab988/wifimap
/app/model/ArrayUtil.php
UTF-8
699
2.890625
3
[]
no_license
<?php /** * User: Roman * Date: 23.08.2015 * Time: 21:59 */ namespace App\Model; class ArrayUtil { /** * return if array is associative * * @param array $array * @return bool */ public static function isAssoc($array) { $return = true; foreach(array_keys($array) as $...
true
1f518ba56b1b3adf0065de741026f4903e7238ce
PHP
MatiasGalvan/MoviePass
/Models/Movie.php
UTF-8
1,823
3.15625
3
[]
no_license
<?php namespace Models; use Models\Genre as Genre; class Movie{ private $id; private $title; private $releaseDate; private $posterPath; private $overview; private $originalLanguage; private $runtime; private $genres = array(); publ...
true
5983520c95c606bbf69a4ce9ef4909d87d99cf61
PHP
jiripudil/Arrays
/tests/values.phpt
UTF-8
304
2.71875
3
[ "MIT" ]
permissive
<?php declare(strict_types = 1); namespace Arrays\Tests; use function Arrays\values; use Tester\Assert; require_once __DIR__ . '/bootstrap.php'; (function () { $array = [5 => 41, 15 => 42, 1 => 43, 7 => 44, 12 => 45]; $values = values($array); Assert::same([41, 42, 43, 44, 45], $values); })();
true
d8f1872e71c638a416c9bf27282a647ef488c265
PHP
hdwlyiai/p2p-
/app/controllers/mail/Mail.php
UTF-8
1,769
2.75
3
[]
no_license
<?php namespace app\controllers\mail; use app\controllers\mail\PHPMailer\PHPMailer; class Mail { // SMTP服务器 private $Host; // SMTP 用户名 private $Username; // SMTP 密码 private $Password; // 协议 private $SMTPSecure; // 服务器端口 private $Port; // 错误信息 private $errorInfo; publ...
true
bb5e6c467af83849c862458c1e41a96a9f63171a
PHP
gmatsov/SoftUni
/PHP/Simple Shop App/DeleteProduct.php
UTF-8
327
2.78125
3
[]
no_license
<?php class DeleteProduct { public function DeleteOneProduct($id) { $database = new ConnectDB(); $result = $database->DBConnect(); $sql = $result->prepare("DELETE FROM products WHERE product_id=:id"); $sql->bindParam(':id', $id); $sql->execute(); return $result; ...
true
5dd81544a9c81e0fef5ab5001d278fe4e881da48
PHP
tanthammar/tall-forms
/src/Traits/HasSharedProperties.php
UTF-8
878
2.859375
3
[ "MIT" ]
permissive
<?php namespace Tanthammar\TallForms\Traits; trait HasSharedProperties { public null|string $livewireComponent = null; public array $livewireParams = []; public bool $is_custom = false; public bool $is_relation = false; public bool $has_array_value = false; public bool $rules_apply_to_each_i...
true
e26b2d2c726efc11c9758a768093a76741c7941d
PHP
RamilYumaev/aa_dev
/modules/transfer/models/PassExamStatement.php
UTF-8
993
2.578125
3
[]
permissive
<?php namespace modules\transfer\models; use modules\entrant\helpers\FileHelper; use modules\transfer\behaviors\FileBehavior; use yii\db\ActiveRecord; /** * This is the model class for table "{{%pass_exam_statement}}". * * @property integer $id * @property integer $pass_exam_id **/ class PassExamStatement exte...
true
9922d6d688a613fc51b4ed2109ef6e8528c27774
PHP
dzineer/outside-joomla-black-rabbit-os-component-builder
/includes/helpers.php
UTF-8
2,343
2.90625
3
[ "MIT" ]
permissive
<?php class Helpers { public static function phpheader($filename, $varObject) { // Header PHP File $phpheader = '/*------------------------------------------------------------------------'.$varObject->return; $phpheader .= '# '.$filename.' - '.$varObject->comp_name.' Component'.$varObject->return; $phphea...
true
6cf872e00c9af5e971df98a865f78f93c006d309
PHP
newsworx/0.1a
/Memories Team/TEAM_MEM_LANES_ACTION.php
UTF-8
1,769
3.03125
3
[]
no_license
<?php ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <title>Basic database access</title> </head> <body> <?php $db_connection = mysqli_connect("localhost","jfolio_juser","j2013","jfolio_j680"); if (mysqli_connect_errno($db_connection)) { echo "Failed to connect to MySQL: " . mys...
true
78717055141e4529bdc866aee7afb33ec60917e3
PHP
KieranHolroyd/Gamepanel
/api/v2/controller/AuthenticationController.php
UTF-8
5,542
2.78125
3
[]
no_license
<?php namespace App\API\V2\Controller; use Helpers; class AuthenticationController { public function Login() { global $pdo; if (!isset($_POST['email']) || !isset($_POST['password'])) { echo Helpers::NewAPIResponse(["success" => false, "message" => "Email or password not set"]); exit(); } $email = $_...
true
125a7940b0b1ebee4eafd3c47b8156bb67347c95
PHP
TropicalRobot/finding-beyond
/public/app/plugins/easyazon-pro-4.0.17/components/localization/lib/geoip/vendor/guzzle/guzzle/src/Guzzle/Common/Exception/ExceptionCollection.php
UTF-8
1,708
3.015625
3
[ "GPL-2.0-or-later", "Apache-2.0", "MIT" ]
permissive
<?php namespace Guzzle\Common\Exception; class ExceptionCollection extends \Exception implements GuzzleException, \IteratorAggregate, \Countable { protected $exceptions = array(); private $shortMessage; public function __construct($message = '', $code = 0, \Exception $previous = null) { parent::__construct($me...
true
9db24d19880a94d4171a3262742765145de32009
PHP
jimrey91/PruebaPHP
/Fecha/FormatoFecha.php
UTF-8
104
2.640625
3
[]
no_license
<?php echo 'Today is: '. date("l").", ". date("j"). " of ". date("F"). " from ". date("Y"); ?>
true
9630998ca29b2e4f6572ab8f79684205a4d2c424
PHP
fannydai/CSE102
/hello/hello.php
UTF-8
452
2.640625
3
[]
no_license
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>Hello</title> </head> <body> <?php $name = $_POST['name']; $email = $_POST['email']; $phone = $_POST['phone']; print "<h3>Hello $name,</h3>"; print "<p>The email address you sent is</p>"; ...
true
223ae270585e95d1d6673cb881b341460de66ace
PHP
bahdanhal/brainstorm
/task_22.php
UTF-8
448
3.8125
4
[]
no_license
<?php function is_prime($number) { for($count = 2; $count <= sqrt($number); $count++){ if($number % $count == 0){ return false; } } return true; } $number = $argv[1]; $count = 2; for($count; $count <= sqrt($number); $count++){ if(is_prime($count)){ if($number % $...
true
883fb37f566f979da407cfaf759575c57ab1f67a
PHP
loveorigami/php-highcharts
/src/chart/BaseTitle.php
UTF-8
763
2.53125
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: Lukyanov Andrey <loveorigami@mail.ru> * Date: 29.08.2018 * Time: 11:32 */ namespace lo\highcharts\chart; use lo\highcharts\BaseObject; use lo\highcharts\chart\html\Style; /** * Class BaseTitle * * @package lo\highcharts\chart * @author Lukyanov Andrey <loveorigami@m...
true
efc42a4be5fb01a77de43c4b35edca461ee289a3
PHP
CesarJFS/php-project
/classes/Identidad-y-negacion.php
UTF-8
129
2.546875
3
[]
no_license
<?php $a=15; $b=5; $resta=$a-$b; $identidad=+$resta; echo $resta; echo $identidad; $negacion=-$resta; echo $negacion; ?>
true
76ad81fb71403c10d6df90a324f600fdb18d7e63
PHP
katsana/geocoder
/src/Processors/FindLocation.php
UTF-8
1,474
2.671875
3
[ "BSD-3-Clause" ]
permissive
<?php namespace Katsana\Geocoder\Processors; use Illuminate\Contracts\Cache\Repository; use Katsana\Geocoder\Contracts\ReverseGeocodeListener; use Katsana\Geocoder\Geocode; use Katsana\Geocoder\Location; use Katsana\Geocoder\Manager as GeocoderManager; class FindLocation { /** * The cache repository impleme...
true
e8e066264bf05615bc93b1c7baf00949f733161b
PHP
nadirvishun/logistics
/console/migrations/m170426_125724_create_markup_table.php
UTF-8
1,736
2.625
3
[ "BSD-3-Clause" ]
permissive
<?php use yii\db\Migration; /** * Handles the creation of table `markup`. */ class m170426_125724_create_markup_table extends Migration { const TBL_NAME = '{{%markup}}'; /** * @inheritdoc */ public function up() { $tableOptions = null; if ($this->db->driverName === 'mysql'...
true
a697120241b0e7700472b352db0264b1b2d5ae22
PHP
ertprs/cursoamais
/system/Modules/Modules.php
UTF-8
2,220
3.109375
3
[ "MIT" ]
permissive
<?php class Modules extends Template { //static $modules single ton handle static $modules; public $module; public $moduleName; public $requiredModules; public $subMenu = array(); //set constructor public function __construct($module, $moduleName, $path = "") { $this->module =...
true
8ed43ccfc9a292e7d20a28ef35bb0f39d7cb32be
PHP
tom40/tom
/web/application/models/TurnaroundTimeMapper.php
UTF-8
7,625
2.671875
3
[]
no_license
<?php class Application_Model_TurnaroundTimeMapper extends App_Db_Table { const TT_7DAYS = 1; const TT_48HR = 2; const TT_24HR = 3; const TT_SAMEDAY = 4; const TT_OVERNIGHT = 5; const TT_36HR = 6; const OFFICE_CLOSE_HR = 17; const OFFICE_OPEN_HR = 9; cons...
true
806300762276ef354c9e1b5f838e3efd3e20709f
PHP
tautvydascoding/2017-06-kurso-medziaga-tautvydas
/uzduotys/MAMP/uzduotis13/tautvydas/3-static/index.php
UTF-8
517
3.046875
3
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> </head> <body> <?php echo "<h1>darbas su Static kintamaisiais</h1>"; $b = 0; // global function count2() { global $b; // paima uz f-jos ribu esanti knitamaji static $a = 0; ...
true
dec0299d8abfc9154c2a7ecb3b86ea9fc7056cf0
PHP
itsromack/wwphptest
/src/AppBundle/Helper/FileUtility.php
UTF-8
2,094
3.140625
3
[]
no_license
<?php namespace AppBundle\Helper; /** * Description of FileUtility * * @author romack */ class FileUtility { public function getFileContents($filename) { $handle = fopen($filename, 'r'); $contents = []; $index = 0; while(($buffer = fgets($handle, 4096)) !== false) {...
true
ad48255ecc62f9ccb0de48ea4ab1c7bc2771abb7
PHP
hemal-shah/WebTechnologies
/php_practical3/showCart.php
UTF-8
1,590
2.578125
3
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>My Cart!</title> <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet"> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script> </head> <body> <div clas...
true
56db90d083667eb50728b19baced6f9ac306559e
PHP
jgodstime/marketing-st
/application/Controller/RegisterController.php
UTF-8
2,633
2.71875
3
[]
no_license
<?php namespace Mini\Controller; use Mini\Core\View; use Mini\Model\Register; class RegisterController { var $View; public $msg; function __construct() { $this->View = new View(); $this->msg = new \Mini\Libs\FlashMessages(); } public function index() { if(isset($...
true
7b8d8b5b6f1ff4342a0857649fa26b1d5872f737
PHP
harvardfop/foportal
/register.php
UTF-8
2,038
2.8125
3
[]
no_license
<?php // configuration require("includes/config.php"); // if form was submitted if ($_SERVER["REQUEST_METHOD"] == "POST") { // validate submission if (empty($_POST["username"])) { apologize("You must provide your username."); } else if (empty($_...
true
f279f9c9c514c8381f422284caedd6173e48de29
PHP
UtileHomme/Programming_Codes
/PHP_Object_Oriented_by_JREAM/video11.php
UTF-8
553
3.71875
4
[]
no_license
<?php class Test { function __construct() { echo 'item created<br />'; } function __destruct() //or we could use 'unset(object name)' { echo 'item erased<br />'; } function __toString() { return 'This happens <br />'; } function __clone() { echo 'data was passed<br />'; } ...
true
0a86c0fcbbf306c88c91da2ad5cf9d455af6e1dd
PHP
ccssmania/jobsityChallenge
/app/Http/Controllers/NoShowTweetController.php
UTF-8
1,048
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\NoShowTweet; use App\User; class NoShowTweetController extends Controller { /** * Just Users Logged in * * @return void */ public function __construct(){ $this->middleware("auth"); } /** * hide...
true
553ad3509c9c5c9dc732ed5575f23be98136231c
PHP
jettarin/SKTHM
/API/admin/repair/updatePaperPrinted.php
UTF-8
1,604
2.625
3
[]
no_license
<?php require "../../../includes/db.php"; $data = file_get_contents('php://input'); $dataJsonDecode = json_decode($data); $job_id = $dataJsonDecode->job_id; $dur_id = $dataJsonDecode->dur_id; $header = $dataJsonDecode->header; $status = $dataJsonDecode->status; $detail1 = $dataJsonDecode->detail1; $detail2 = $dataJs...
true
bfeb7a35d75f05ba32676023723b61ae471565c1
PHP
MostafaGhanbari9176/student-tools-backend
/v1/ads/AdsPresenter.php
UTF-8
2,641
2.59375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Mostafa * Date: 14/09/2019 * Time: 04:57 PM */ require_once dirname(__FILE__)."/../user/UserPresenter.php"; require_once "Ads.php"; class AdsPresenter { public function getFirstData($data) { $resArray = array(); if ($userId = (new UserPresenter())...
true
89ede9d43261a622ef2ac860658bb10cc1fdb20a
PHP
lllliuliu/NotificationsForTP
/src/Contracts/NotificationInterface.class.php
UTF-8
2,623
2.78125
3
[]
no_license
<?php // +---------------------------------------------------------------------- // | 消息接口 // +---------------------------------------------------------------------- // | Author: lllliuliu <lllliuliu@163.com> // +---------------------------------------------------------------------- namespace Common\Library\UserNotific...
true
169292e37b8ae5506209499795e16a27d5d32947
PHP
GGF/baza4
/_engine/classes/ITemplateCompiler.class.php
UTF-8
265
2.546875
3
[]
no_license
<?php interface ITemplateCompiler{ public function assign($var_name, $var_value); public function fetch($resource_name); public function setTemplateDir($template_dir); public function setCompileDir($compile_dir); public function getTemplateDir(); } ?>
true
05c4eeaa806147e5e07d0720fe5e99459fde8f7d
PHP
Bugger-Lee/myphp
/yanhui/basic/03-functionDemo.php
UTF-8
452
3.265625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Administrator * Date: 2018/1/5 * Time: 22:09 */ ?> <?php $s=100; $b=0; // isset() 判断变量是否存在,1 空 echo isset($b); echo isset($s); echo isset($a); // unset() 销毁变量 unset($s); echo isset($s); ?> <?php $empty=''; $noEmpty=1; //empty...
true
020eb25bd5d13366405eaa057f4f412915e42209
PHP
PraktikumWebdas4104/ta-modul-4-Richardmaulana
/proses.php
UTF-8
2,064
2.84375
3
[]
no_license
<?php error_reporting(0); $uss= $_POST['username']; $pss= $_POST['password']; $file = $_FILES["file"]["name"]; $tmp_name = $_FILES["file"]["tmp_name"]; $user = array( "user" => 'rich', "pass" => '1234'); if (isset($_POST['submit'])) { if ($uss==$user['user']&& $pss==$user['pass']) { echo "Hai <b>".$uss...
true
716f980cbef251cc2baf7a8690b02e0a15581206
PHP
contao-community-alliance-archive/composer-check
/src/ContaoCommunityAlliance/Composer/Check/Status.php
UTF-8
1,207
2.640625
3
[]
no_license
<?php /** * System Check for the Contao Composer Client * * PHP Version 5.1 * * @copyright bit3 UG 2013 * @author Tristan Lins <tristan.lins@bit3.de> * @package composer-check * @license LGPL-3.0+ * @link http://c-c-a.org */ class ContaoCommunityAlliance_Composer_Check_Status implements Cont...
true
c9b28ecf559fd99cfd50abf507741da2dcba7ce1
PHP
jamesmorris23/vet-website
/api/dogs.php
UTF-8
1,873
2.640625
3
[]
no_license
<?php header("Access-Control-Allow-Origin: *"); header("Content-Type: application/json; charset=UTF-8"); header("Cache-Control: no-cache"); header("Cache-Control: no-store"); include_once 'db.php'; session_start(); if (!isset($_SESSION)) { echo 'Please try logging in and re-accessi...
true
eb0f6f7ffc0ee18e6dce02bf7b6319240f0f6d50
PHP
brickservers/Event-ticket-system
/app/Http/ViewComposers/AdminDatabaseNotificationCreateComposer.php
UTF-8
1,226
2.703125
3
[]
no_license
<?php namespace App\Http\ViewComposers; use Illuminate\View\View; use App\Repositories\Contracts \{ NotificationRepoInterface, UserRepoInterface }; //php7 grouping use statements class AdminDatabaseNotificationCreateComposer { protected $userRepo; protected $notificationRepo; /** * AdminDat...
true
cea805e8675c7c8e56139c20232ca6fb8b402d11
PHP
HildaCruz/NoticiasOAW
/php/sections/sidebar.php
UTF-8
4,621
3.25
3
[]
no_license
<?php //GLOBAL VARIABLES $dates= array(); //todas las fechas existentes en la bd no repetidas por Y-m-d //DB CONNECTION $mysqli = new mysqli('localhost', 'root', '', 'noticias'); if (!$mysqli) { $info = "No se pudo realizar la conexión a la base de datos"; } else { //RECIBO TODAS LAS FECHAS $query = "SELE...
true
ca3f6380fb4cfc59ad1f284bda186b9da4db956c
PHP
tautvydascoding/2018-03-05
/dirbame_cia/diena_17/Jevgenijus/1-PHP-FOR(while-foreach)/index.php
UTF-8
579
3.171875
3
[]
no_license
<?php $masyvas = [1981, 1980, 1975 , 1995, 1999]; for ($i=0; $i < count($masyvas) ; $i++): echo "Gime:" . $masyvas[$i] . "<br>"; endfor; foreach ($masyvas as $stalciausPavad => $stalciausTurinys) { echo "Gimimo data su FOREACH $stalciausPavad: $stalciausTurinys <br>"; } $kk = 0; while ( $kk < 5) { echo "W...
true
75454a4df1e6eaf19d6a67df07bba5d93c22bd79
PHP
siIverbIade/spreng
/src/orm/entities/RbEntity.php
UTF-8
2,064
2.640625
3
[ "MIT" ]
permissive
<?php namespace Spreng\orm\entities; use JsonSerializable; use Spreng\connection\Connection; use Spreng\system\utils\FileUtils; /** * RbEntity */ abstract class RbEntity implements JsonSerializable { private $instance; private $connectionClass; public function __construct(Connection $conn, int $id = n...
true
e2d607deb5b6aeddeca8c9d782faeceb5441ea0a
PHP
zyd2001/SimplePHPFramework
/Framework/structure/App/Middlewares/Authentication.php
UTF-8
749
2.8125
3
[ "MIT" ]
permissive
<?php namespace App\Middlewares; use Framework\Middleware; use Framework\Request; use Framework\Response; use function Framework\redirect; use function Framework\session; class Authentication extends Middleware { public static function handle(Request $req, callable $next) : Response { if ($req->path...
true
de5f23f401370dc04551e200dc4c44400854cb30
PHP
lois2014/project_1
/src/Services/Users.php
UTF-8
3,696
2.5625
3
[ "MIT", "BSD-3-Clause" ]
permissive
<?php namespace Services; use Common\BaseController; use Doctrine\ORM\Query\AST\NullComparisonExpression; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use App\ModelBundle\Entity\User; use Common\BaseSer...
true
1439088fdfa4e01f6bdfc5bff0e72eebefdb2700
PHP
saidnamyzO/megaphpexercises
/45 Estilizar web dinámica/Archivos de proyecto/1_primeros_pasos/Estaticas.php
UTF-8
366
2.859375
3
[]
no_license
<?php class Estaticas{ public function estatizar($url,$archivo){ $estatica = file_get_contents($url); if(empty($estatica)){ return false; }else{ $estatica .= '<!-- '.date('d-m-Y H:i:s'). '-->'; } $handle = fopen($archivo, 'w+'); if(!$handle){ return false; }else{ fwrite($handle, $estatica); $handle...
true
6f9d14a6024ead94847aeda5a9956f78b96c155c
PHP
nome-gruppo/cicerone_test
/classi/activities/Review.php
UTF-8
1,032
2.921875
3
[]
no_license
<?php namespace classi\activities; class Review { private $id_turista; private $id_cicerone; private $title; private $valutation; private $text; public function getId_cicerone() { return $this->id_cicerone; } public function __construct($id_cicerone,$id_turista, $titl...
true
7da3b91f1903cb196833b475d92e2208a5537f25
PHP
mdimasdimyati/Lumen8-Jwt-Auth-Tymon
/app/Http/Controllers/UserController.php
UTF-8
3,871
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Models\User; use Illuminate\Support\Facades\Auth; class UserController extends Controller { public function __construct() { $this->middleware('auth:api', ['except' => ['login','register','refresh']]); } public f...
true
7126fa320abf4fd09d74332a9468bb3896a14f0c
PHP
xiao0811/modernPHP
/test/xiao.php
UTF-8
508
3.203125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: panxiao * Date: 2018/4/15 * Time: 上午1:59 */ $arr = []; function getNum($arr) { $num = rand(0, 500); if (in_array($num, $arr)) { getNum($arr); return $arr; } else { echo $num . "<br>"; $arr[] = $num; return $arr; ...
true
6854adc11b11334b84664b1dd829f36f7b8b287e
PHP
jymiko/simplecrudci
/application/views/user/form_ubah.php
UTF-8
2,175
2.5625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<html> <head> <title>Form Ubah - CRUD Codeigniter</title> </head> <body> <h1>Form Ubah Data Mahasiswa</h1> <hr> <!-- Menampilkan Error jika validasi tidak valid --> <div style="color: red;"><?php echo validation_errors(); ?></div> <?php echo form_open_multipart("user/ubah/".$users->id); ?>...
true
0ef2060891032bdc2b4e8925fdbe887410003aee
PHP
chrishodgson/symfony-food-hygiene
/tests/AppBundle/Utils/IntegerTraitTest.php
UTF-8
1,075
2.515625
3
[]
no_license
<?php namespace AppBundle\Test\Utils; use AppBundle\Utils\IntegerTrait; class IntegerTraitTest extends \PHPUnit_Framework_TestCase { /** @var IntegerTrait */ private $sut; protected function setUp() { $this->sut = $this->getMockForTrait(IntegerTrait::class); } public function testIsI...
true
e50effbd682a141c00e132f743f402674e890d9d
PHP
WyriHaximus/dead
/src/visitor/JsonVisitor.php
UTF-8
3,654
3.09375
3
[]
no_license
<?php class JsonVisitor extends AbstractNodeElementVisitor { private $dynamicAnalysis; private $versioning; private $json; /** * * @param $dynamicAnalysis DynamicAnalysis */ public function visitDynamicAnalysis(DynamicAnalysis &$dynamicAnalysis) { $this->dynamicAn...
true
8d6bd262869554a1ca4034abe45325f456346ee6
PHP
sbourne20/bkdana-va
/app/Http/Controllers/SoapController.php
UTF-8
1,350
2.609375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Models\Hello; class SoapController extends Controller { public function index(){ $serverUrl = "http://bkdana-va.localhost/api/server"; $options = [ 'uri' => $serverUrl, ]; $server = new \Zend\S...
true
528f138ee823d3e5620ed96ab1ee080a3b00fa71
PHP
DmitryKmita/phpbench
/lib/Result/SuiteResult.php
UTF-8
1,582
2.796875
3
[ "MIT" ]
permissive
<?php /* * This file is part of the PHP Bench package * * (c) Daniel Leech <daniel@dantleech.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace PhpBench\Result; class SuiteResult { private $benchmarkResults; ...
true
246bc7903ca1047ff14bbd779f1415bbc072e15e
PHP
1073229820/shop
/app/Admin.php
UTF-8
930
2.515625
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; //use Illuminate\Foundation\Auth\Admin as Authenticatable; use Illuminate\Foundation\Auth\User as Authenticatable; use Zizaco\Entrust\Traits\EntrustUserTrait; class Admin extends Authenticatable { use EntrustUserTrait; protected $fillable = [ ...
true
a7ea07e386550ef6cd607c0c8a9698ce408239fe
PHP
dexit/email-settings
/custom-functions/activation-email.php
UTF-8
971
2.578125
3
[ "MIT" ]
permissive
<?php if(!function_exists('email_settings_activation_email')) { /* [FOR THEME INTEGRATION | PLUGGABLE] Sends custom activation E-Mail with out activation code generation(provided by argument) @param $code - custom activation URL @param $user - user object, who needs to be activated @returns BOOLEAN */ f...
true
8d7ff8e9ee3db997783e31f23fa395d1b41c4968
PHP
Javellin01/microframework_articles
/src/Domain/Storage/IStorage.php
UTF-8
328
2.59375
3
[]
no_license
<?php namespace App\Domain\Storage; interface IStorage { public function find(string $table, int $id); public function findAll(string $table); public function create(string $table, object $entity); public function update(string $table, object $entity); public function delete(string $table, int...
true
6d5f760ef1e96cb5d2e4f53556710b59532a532a
PHP
hernaval/diagnostic-back
/app/Dimension.php
UTF-8
3,305
2.5625
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; use \App\Question; use \App\User; class Dimension extends Model { // protected $table = "dimension"; protected $guarded = ['']; public function user() { return $this->belongsTo(User::class); } public function ques...
true
d8427008467b941ae248fa24d6416bea2f93b00e
PHP
brulecap/et-admin-tools
/et-admin-tools/include/config/DBConfig.php
UTF-8
495
2.546875
3
[]
no_license
<?php /** * @package BBL\Classes\Config * * @author Bruce LeCaptain <brulecap@europeantableware.com> * */ namespace BBL\Classes\Config; /** * This DBConfig contains the login parameters for the "operational" MySQL database. * * See php {@link PHP_MANUAL#mysqli.construct} for details. */ class DB...
true
7abd6f0e33faf5d7d8846fccdb3b1d61c48cc1cc
PHP
alvinau0427/SmartController
/src/web/FYP/src/db/LocationDB.php
UTF-8
990
2.875
3
[ "Apache-2.0" ]
permissive
<?php require_once __DIR__ . '/DB.php'; class LocationDB extends DB { public function getLocationList(){ $conn = $this->getConnection(); $sql = "SELECT * FROM location"; $rs = mysqli_query($conn, $sql); $data = mysqli_fetch_all($rs, MYSQLI_ASSOC); mysqli_free_result($rs); mysqli_close($conn); ...
true
992f15614506ee8679a08eb80c49db6fe5c6ac92
PHP
kfrerichs/paperbyte
/blog/app/Http/Controllers/ProtocolController.php
UTF-8
3,449
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Support\Facades\Storage; use App\Protocol; class ProtocolController extends Controller { /** * Create a new controller instance. * * @return void */ public function __construct() { $this->middlew...
true
b6f8589e0abb1e157fe112a2bd5e2438edb6520c
PHP
Armel33/VITRY_2019
/BACK/AJAX/06-ajax-insert-ALL/ajax6.php
UTF-8
1,374
2.796875
3
[ "BSD-3-Clause", "MIT" ]
permissive
<?php require_once('init.php'); extract($_POST); $tab = array(); //---------- REQUETE D'INSERTION if(empty($prenom) || empty($nom) || empty($service) || empty($date_embauche) || empty($salaire)) { $tab['message'] = '<div class="col-md-6 offset-md-3 alert alert-danger text-center">Merci de remplir tout les champs d...
true
051259ec4c0905d6168d96d354b2f75b7cfb12fd
PHP
377123/framework
/src/JWTAuth/Support/CustomClaims.php
UTF-8
1,002
2.546875
3
[ "Apache-2.0" ]
permissive
<?php /** * This file is part of Notadd. * * @author TwilRoad <heshudong@ibenchu.com> * @copyright (c) 2017, notadd.com * @datetime 2017-10-17 11:51 */ namespace Notadd\Foundation\JWTAuth\Support; /** * Trait CustomClaims. */ trait CustomClaims { /** * Custom claims. * * @var arr...
true
83c2f0ad87c37668b6a8f91ad67984d52abd0aa0
PHP
flarum/framework
/framework/core/src/Post/RegisteredTypesScope.php
UTF-8
676
2.546875
3
[ "MIT" ]
permissive
<?php /* * This file is part of Flarum. * * For detailed copyright and license information, please view the * LICENSE file that was distributed with this source code. */ namespace Flarum\Post; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Scop...
true
91ab15273d6e3d654e41c8af385d729a58bca959
PHP
anistplenitud/Piscine-PHP
/day02/ex01/one_more_time.php
UTF-8
2,142
3.09375
3
[]
no_license
#!/usr/bin/php <?php date_default_timezone_set('Europe/Paris'); function months($s) { if (preg_match("/[Jj]anvier/", $s)) return 1; else if (preg_match("/[Ff]évrier/", $s)) return 2; else if (preg_match("/[Mm]ars/", $s)) return 3; else if (preg_match("/[Aa]vril/", $s)) return 4; else if (preg_m...
true
db135a3dee67cf1a5ca875825b41cc72627b7371
PHP
fz-29/cargoTesting
/includes/set_hierarchy_tree.php
UTF-8
6,230
3.28125
3
[]
no_license
<?php /** * A class that defines a tree - and can populate it based on either * wikitext or a category structure. * * @ingroup PFFormInput * * @author Yaron Koren */ class PFTree { var $title, $children; public $mLeft = 0; public $mRight = 0; public $mIsList = false; function __construct( $curTitl...
true
2aa30b6dc0f7ebc3c022353305066e50fef11404
PHP
serhiikovalenko30/php_skillup
/include/template/news/index_photo_news.php
UTF-8
741
2.59375
3
[]
no_license
<?php if(!isset($arData) || empty($arData)) return; ?> <div class="row mb-3"> <?php foreach ($arData as $news) { ?> <div class="col"> <div class="card"> <a href="<?php echo $news['url']; ?>"> <img src="<?php echo $news['image']; ?>" class="card-img-top" al...
true
52da04c0b0c4d94021fd2cd98cfcb928e758a3ea
PHP
angelsk/sfCmsPlugin
/lib/model/doctrine/PluginContentGroup.class.php
UTF-8
15,274
2.703125
3
[ "MIT" ]
permissive
<?php /** * ContentGroup * * This class has been auto-generated by the Doctrine ORM Framework * * @package site_cms * @subpackage model * @author Jo Carter * @version SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $ */ abstract class PluginContentGroup extends BaseContentGroup { /** * Use ...
true
23a6b4d4f02d4f958a5578b0de69a91a3b76c4b5
PHP
vidmahovic/ep-store
/app/Http/Requests/StoreProductRequest.php
UTF-8
817
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Requests; use App\Http\Requests\Request; use Illuminate\Support\Facades\Auth; class StoreProductRequest extends Request { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return Auth::use...
true
9caca31bdac34c31d29de23d7d3d9224128a5ecf
PHP
CDiosher/BLMC
/application/controllers/default/Login.php
UTF-8
2,219
2.515625
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Login extends MY_Controller { function __construct() { parent::__construct(); $this->load->model('admin/M_user', 'user'); } public function index() { if($this->session->userdata('logged_in')) redirect('dashboard'); ...
true
715581bfc6f49814be507786c4f25334448b68a5
PHP
lewi02/silabukir
/include/db_connect.php
UTF-8
2,532
3.03125
3
[]
no_license
<?php $servername = "localhost"; $username = "root"; $password = ""; $dbname = "db_silabukir"; // create connection $connect = new mysqli($servername, $username, $password, $dbname); // check connection if($connect->connect_error) { die("Connection Failed : " . $connect->connect_error); } else { // echo "Success...
true
c4a864e43c82408037d0cb84ad2bc3f780d12a98
PHP
Edwardyug/folke
/database/seeders/APIUsersSeeder.php
UTF-8
668
2.53125
3
[ "MIT" ]
permissive
<?php namespace Database\Seeders; use App\Models\Models\APIUsers; use Faker\Factory; use Illuminate\Database\Seeder; class APIUsersSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $user = []; $faker = Factory::create(); ...
true
a237c2f55c3b273a33a7fa49462c5c711d021fc2
PHP
phper95/api
/class/dao/user_v_phone.dao.php
UTF-8
6,974
2.578125
3
[]
no_license
<?php //负责从缓存或者数据库中 读写数据 require_once(dirname(__FILE__).'/'.'DaoBase.dao.php'); class user_v_phone_dao extends DaoBase{ public $user_id; public $phone_list; //初始化 function __construct(){ parent::__construct(); $this->user_id = 0; $this->phone_list = array(); } //加载数据,无论是MemCache还是Datab...
true
7316c5611ce3a75f7a74f2c8c396ffba27c32458
PHP
chiiya/filament-access-control
/src/Notifications/TwoFactorCode.php
UTF-8
1,618
2.6875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Chiiya\FilamentAccessControl\Notifications; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Notification; class TwoFactorCode extends Notification implements ShouldQueue ...
true
21818c5bd70432d8909759f6a984758541376f53
PHP
cristhian-infante/RegistroDiarioSL
/controller/RDiarios.php
UTF-8
2,631
2.578125
3
[]
no_license
<?php require_once "../model/MRDiarios.php"; $registrod=new MRDiarios(); $id=isset($_POST["id"])? limpiarCadena($_POST["id"]):""; $conductor=isset($_POST["conductor"])? limpiarCadena($_POST["conductor"]):""; $placa=isset($_POST["placa"])? limpiarCadena($_POST["placa"]):""; $capacidad=isset($_POST["capacidad"...
true