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
ab5593870849c2648e6f85802b29e9b5b079d1e7
PHP
chestnutWu/petcity
/petMap/data_process/insertGoogleDataToDB.php
UTF-8
1,902
3.1875
3
[]
no_license
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>PHP Script Execution</title> </head> <body> <?php $servername = 'localhost'; $username = 'root'; $password = 'jason0524'; $dbname = 'place_data'; ...
true
7fba615f6f2d50f4912957d8151350baf235e0fb
PHP
myziyue/zookeeper-php
/src/Zookeeper.php
UTF-8
1,989
2.671875
3
[ "MulanPSL-1.0" ]
permissive
<?php declare(strict_types=1); /** * This file is part of Myziyue. * * @link https://www.myziyue.com/ * @contact evan2884@gmail.com * @license http://license.coscl.org.cn/MulanPSL/ */ namespace Myziyue\Zookeeper; use Myziyue\Zookeeper\Pool\PoolFactory; use Hyperf\Context\Context; class Zookeeper { /...
true
bbca88e4c756f38e36ecb2022a7691643b7c21e8
PHP
boshrin/or-match
/vendor/Luracast/Restler/Data/Util.php
UTF-8
3,088
3.046875
3
[ "BSD-3-Clause" ]
permissive
<?php namespace Luracast\Restler\Data; /** * Convenience class that converts the given object * in to associative array * * @category Framework * @package Restler * @author R.Arul Kumaran <arul@luracast.com> * @copyright 2010 Luracast * @license http://www.opensource.org/licenses/lgpl-license.php ...
true
7d97560ae30df634832792e600a8bbb2d16c5d76
PHP
jadebard/FinalProject_Current_2
/models/user.class.php
UTF-8
1,424
3.09375
3
[]
no_license
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ class User { //private properties of a Drum object private $user_id, $username, $password, $user_fname, $user_lname, $...
true
a19b25db6cd7d30978e755598aa3ae08c71b02ef
PHP
riahtu/NILM_website
/assets/php/login.php
UTF-8
4,088
3.015625
3
[]
no_license
<?php /** * Created by IntelliJ IDEA. * User: Max * Date: 08/05/2017 * Time: 13:59 */ include('db_config.php'); /***************************** * Get Variables * *****************************/ //LOGIN if (isset($_GET['login_email'])) { $email = $_GET['login_email']; } if ($email != '' && $em...
true
d809087e10bd827750677d05b78df55d9df1f1cd
PHP
prasad0552/docker-apache-php-symfony
/src/Compiler/Helpers/CleanUpHelpers.php
UTF-8
1,255
3.03125
3
[]
no_license
<?php namespace App\Compiler\Helpers; trait CleanUpHelpers { /** * Deletes directory content then delete the directory * @param $dir * @return bool */ public function deleteDirectory($dir) { if (!file_exists($dir)) { return true; } if (!is_dir($dir))...
true
c11e96354283e78a66e79d832b526c4a51dacb99
PHP
kreolll/destiny-example-api
/src/Lib/Http/Request/RequestInterface.php
UTF-8
245
2.578125
3
[]
no_license
<?php namespace App\Lib\Http\Request; interface RequestInterface { public function getUrl(): string; public function getHeaders(): ?array; public function getRequestType(): string; public function getPostFields(): ?string; }
true
c17d75bfa167b84a5b4459f2c8453e0806835186
PHP
cubex/quantum
/src/Modules/Upload/Filer/FilerObject.php
UTF-8
844
2.890625
3
[]
no_license
<?php namespace Cubex\Quantum\Modules\Upload\Filer; use Cubex\Quantum\Base\FileStore\Interfaces\FileStoreObjectInterface; use JsonSerializable; class FilerObject implements JsonSerializable { private $_path; private $_url; private $_type; private $_mime; private function __construct() { } public static ...
true
dade8cf2a402b9c4312d44f97535dc0abbeac733
PHP
AlexZ1937/AlexZ1937.github.io
/Block.php
UTF-8
143
2.515625
3
[]
no_license
<?php include_once("InfoS.php"); class Block { $info = new InfoS(); function Render() { return info; } } ?>
true
4205efb2e509f24afcaa455226b78b7307aac1e0
PHP
noikiy/bshare
/application/migrations/2012_10_25_151206_create_speeches.php
UTF-8
874
2.703125
3
[]
no_license
<?php class Create_Speeches { /** * Make changes to the database. * * @return void */ public function up() { Schema::create( 'speeches', function ($table) { $table->increments('id'); $table->string('title'); ...
true
1b79180b740334a0dbff061974536a2147abd81f
PHP
barobba/LiveAndTell
/mail-logger/mail-logger.inc
UTF-8
544
2.734375
3
[]
no_license
<?php /** * Logs email message to a file. */ function drupal_mail_wrapper($message) { // Prepare message filename "message-TIMESTAMP.txt" //$timestamp = time(); $message_id = uniqid(); $filename = "message-$message_id.txt"; $filepath = "sites/liveandtell.com/mail-logger/sent-mail/$filename"; // Wri...
true
1677814b80d4bf6c18a80826e7a8e5c22204b0b6
PHP
Luqheltod/PHP-Ejercicios
/Medios/Funciones/funcionesMedio4.php
UTF-8
1,088
3.3125
3
[]
no_license
<?php //gsprogramacion.com //Una ciudad quiere saber cuanto tardaria en alcanzar determinada poblacion. Conoce la poblacion inicial, el porcentaje que aumenta //al año y el aumento extra de habitantes que vienen libremente //Realiza una funcion con 4 argumentos. Poblacion inicial, porcentaje de aumento, aument...
true
cfa352a5c9a5b121835c0c4bb8804f02ef2c5884
PHP
otomoyoshi/atom
/theme/template/home_function/get_home_l3.php
UTF-8
1,877
2.734375
3
[]
no_license
<?php require('../../../developer/dbconnect.php'); if( isset($_GET['level']) && isset($_GET['level_id']) ){ $level = $_GET['level']; $level_id = $_GET['level_id']; // echo "level: " . $level . '<br>'; // echo "level_id: ". $level_id .'<br>'; //3階層目 // $tmp_category_l2_id = 3; $sql = 'SELECT ...
true
ee768a14131ad217abf4b17fe782dccbfe520c18
PHP
kevinrossi-dev/exam-securite
/miniprojet/secu/login.php
UTF-8
1,224
2.5625
3
[]
no_license
<html lang="fr-FR"> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <meta charset="UTF-8"> <script> window.onload = function() { // getMessages } </script> </head> <body> <header> <h1>FAILLES SQL : 'OR 1=1 -- </h1> <a href="index...
true
5e30c997a80032b5924fd6690e8dd0d18ff7e5d4
PHP
EQ-Port/site
/protected/components/FormModel.php
UTF-8
473
2.53125
3
[]
no_license
<?php class FormModel extends CFormModel { protected $_columns; public function getAttributesByScenario() { $scenarioAttributes = $this->{'_' . strtolower($this->scenario) . 'Attributes'}; foreach ($scenarioAttributes as &$attribute) { if (isset($this->_columns[$attribute])) { ...
true
8efa32d41b1b414a8319ff306f581e416b2eaabe
PHP
jtl-software/connector-core
/src/Model/TranslatableAttributesTrait.php
UTF-8
598
2.671875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Jtl\Connector\Core\Model; trait TranslatableAttributesTrait { /** * @param string $name * @param string $languageIso * * @return TranslatableAttribute|null */ public function findAttribute(string $name, string $languageIso = ''): ?Translatable...
true
db03283bc2864c6c2e1ebb2f298f85f6d239476d
PHP
slipperydippery/procesversneller
/database/migrations/2017_12_10_201236_create_compare_scan_table.php
UTF-8
844
2.546875
3
[]
no_license
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateCompareScanTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('compare_sca...
true
257c0507b1c6d5dd4d33f47d2c78460ae6502caf
PHP
Montandalar/FaceMagazine
/search_people.php
UTF-8
3,395
2.609375
3
[]
no_license
<?php require_once "Authenticator.php"; require_once 'AuthenticatedPage.php'; require_once "Component.php"; require_once "fbl_common.php"; require_once 'CommonHeader.php'; require_once 'FrameworkRoot.php'; require_once 'UserActions.php'; require_once 'FriendReqs.php'; class SearchResults extends Component { privat...
true
350f0b6786f9abc1ea3e5f41657e105a432a88fb
PHP
julienweb/php-crud-mvc
/src/Framework/Http/Response.php
UTF-8
757
2.9375
3
[]
no_license
<?php namespace Framework\Http; class Response { protected $page; public function addHeader($header) { header($header); } public function redirect($location) { header('Location: ' . $location); exit; } public function redirectTrailingSlash($...
true
e346456ac88fd945c540e68f619b70512ae4c191
PHP
michaeldouglas/laravel-pagseguro
/tests/unit/Address/BaseValidationRules.php
UTF-8
990
2.515625
3
[ "MIT" ]
permissive
<?php namespace laravel\pagseguro\Tests\Unit\Address; use laravel\pagseguro\Address\ValidationRules; /** * Address Validation Test * @author Isaque de Souza <isaquesb@gmail.com> */ class BaseValidationRules extends \laravel\pagseguro\Tests\Unit\ValidationRules { /** * @param string $key * @return m...
true
7322e1e8e715c535cdcc624b365ff19e32ad9bf8
PHP
ditesh/fail2ban-ui
/server/models/DB.php
UTF-8
793
2.921875
3
[ "MIT" ]
permissive
<?php /* A small convenience wrapper around the ADOdb5 library */ class DB { private $db; public function __construct(array $config) { $db = ADONewConnection("mysqli"); $retval = $db->Connect($config["hostname"], $config["username"], $config["password"], $config["dbname"]); if ($ret...
true
29f99358cb19122412c2df4a5cc8cb3c69001205
PHP
imtheu/CL7CK
/application/models/Tasks_model.php
UTF-8
672
2.625
3
[]
no_license
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Tasks_model extends CI_Model { public function save($task_data){ $this->db->insert('tasks', $task_data); } public function get($task_id){ $this->db->where('id', $task_id); return $this->db->get('tasks')->row_array(); } public fu...
true
853ea86993274bd3672ac4ecd848a70c878e260b
PHP
zhooravell/skrill-php-client
/tests/Request/OnDemandRequestTest.php
UTF-8
1,713
2.625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Skrill\Tests\Request; use Skrill\ValueObject\Url; use PHPUnit\Framework\TestCase; use Money\Currencies\ISOCurrencies; use Skrill\Request\OnDemandRequest; use Money\Parser\DecimalMoneyParser; use Skrill\ValueObject\TransactionID; use Skrill\Exception\InvalidUrlException; use S...
true
e87b8a07a943277d031e2d1af3e5c38de7e5a573
PHP
asafebymarques/counit
/tests/unit/case-by-case/SleepTest.php
UTF-8
964
2.765625
3
[ "MIT", "LicenseRef-scancode-dco-1.1" ]
permissive
<?php declare(strict_types=1); namespace Deminy\Counit\Tests; use Deminy\Counit\Counit; use PHPUnit\Framework\TestCase; /** * @internal * @coversNothing */ class SleepTest extends TestCase { public function dataSleep(): array { return [ [1, '1 second has elapsed.'], [2, '2...
true
0b3ff26eeead94f38803110cf91d4399a47a0f14
PHP
Naxon/laravel-errors
/src/FileLoader.php
UTF-8
4,886
2.84375
3
[ "MIT" ]
permissive
<?php namespace Naxon\Errors; use Naxon\Errors\Contracts\Loader; use Illuminate\Filesystem\Filesystem; class FileLoader implements Loader { /** * The Filesystem instance. * * @var Filesystem */ protected $files; /** * The default path for the loader. * * @var string ...
true
f8812c7727165402224fbe729bd5500ee341b6b9
PHP
sonata-project/SonataUserBundle
/src/Security/RolesBuilder/SecurityRolesBuilder.php
UTF-8
4,624
2.609375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); /* * This file is part of the Sonata Project package. * * (c) Thomas Rabaix <thomas.rabaix@sonata-project.org> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Sonata\UserBundle\Security\R...
true
d59e4576bd2ed25a37266465ecc201e7a365acba
PHP
KB-WEB-DEVELOPMENT/Kami_Barut_PHP_projects
/REST-API-Web-Service/Rest.php
UTF-8
1,197
2.703125
3
[]
no_license
<?php class Rest { function curl_get_call($url) { $headers = array('Accept:application/json','Content-Type:application/json'); $handle = curl_init(); curl_setopt($handle, CURLOPT_URL, $url); curl_setopt($handle, CURLOPT_HTTPHEADER, $headers); curl_setopt($handle, CURLOPT_RETURNTRANSFER, true); ...
true
cb5f332f8dc899e72b1e011f57c4026fff7049d0
PHP
marscore/hhvm
/hphp/test/zend/good/ext/simplexml/tests/024.php
UTF-8
544
2.640625
3
[ "Zend-2.0", "PHP-3.01", "MIT" ]
permissive
<?php $xml =<<<EOF <?xml version='1.0'?> <root> <elem attr1='11' attr2='12' attr3='13'/> <elem attr1='21' attr2='22' attr3='23'/> <elem attr1='31' attr2='32' attr3='33'/> </root> EOF; ZendGoodExtSimplexmlTests024::$sxe = simplexml_load_string($xml); function test($xpath) { echo "===$xpath===\n"; var_dump(ZendGoo...
true
5717f87f61b0d812c2ced12d67413e831d96f9b8
PHP
technodelight/php-cli-editor-input
/src/CliEditorInput.php
UTF-8
372
2.71875
3
[ "MIT" ]
permissive
<?php namespace Technodelight\CliEditorInput; class CliEditorInput { /** * @var Driver */ private $driver; public function __construct(Driver $driver) { $this->driver = $driver; } public function edit($title, $content, $stripComments = true) { return $this->driv...
true
ee216a980904dbc553f8479b1f1203c7dfc558d1
PHP
oldManLemon/birkshireHathawayL26
/contact.php
UTF-8
1,884
2.5625
3
[]
no_license
<?php /* Template Name: Kontakt */ get_header();?> <div id="primary"> <div id="content" role="main"> <font color="#FF0000"> <?php if (isset($_POST['submit'])) { $flag = 1; if ($_POST['kontaktName'] == '') { $flag = 0; echo "Please Enter Your Name<br>"; } else if (!preg_match('/[a-zA-Z_x7f-xf...
true
4a2e959c5ade1ef10b4539e16aa1cca3e0347f8f
PHP
dragonflylxp/shopnc
/data/model/rcb_log.model.php
UTF-8
1,372
2.5625
3
[]
no_license
<?php /** * 平台充值卡使用日志 * * @copyright Copyright (c) 2007-2016 shopec Inc. (http://www.shopec.net) * @license http://www.shopec.net * @link http://www.shopec.net * @since File available since Release v1.1 */ defined('Inshopec') or exit('Access Invalid!'); class rcb_logModel extends Model { pub...
true
5f401a8c35c8b018f1cbb762eb383c721a43f9ae
PHP
zhaozhanzhan/blog
/api/app/Http/Controllers/Front/CommentController.php
UTF-8
2,378
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Front; use App\Http\Common\Ip; use App\Http\Controllers\Controller; use App\Http\Requests\IdRequest; use App\Http\Requests\MessageRequest; use App\Models\FrontComment; use Illuminate\Http\Request; class CommentController extends Controller { protected $comment; public fu...
true
dd4e58118e5de508b6ac073af7ededa67b66f183
PHP
zendframework/ZendService_GoGrid
/library/ZendService/GoGrid/Object.php
UTF-8
1,022
2.890625
3
[]
no_license
<?php /** * Zend Framework (http://framework.zend.com/) * * @link http://github.com/zendframework/zf2 for the canonical source repository * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License * @package Z...
true
8b049cd7c08bb0c3a0f53a30fee5dd436d5e08bb
PHP
Decr0s/SOLID
/app/Infrastructure/PersistenceViaEloquent/Students/StudentsRepository.php
UTF-8
1,806
2.71875
3
[ "MIT" ]
permissive
<?php namespace App\Infrastructure\PersistenceViaEloquent\Students; use App\Application\Interfaces\ICancelEnrollmentRepository; use App\Application\Interfaces\IEnrollRepository; use App\Application\Interfaces\IFindIfStudentIsEnrolled; use App\Application\Interfaces\IFindStudentById; use App\Application\Interfaces\IFi...
true
fd072fe234f66ea4910817bb5fdbf29debe40842
PHP
tatain1/inventaire_jv
/general.php
UTF-8
1,373
2.515625
3
[]
no_license
<!-- refaire le tabelau country dans un tableau HTML --> <?php include 'include/pdo.php' ?> <?php include 'include/fonctions.php' ?> <?php include 'include/header.php' ?> <?php if (isLogged()) { $id_user = $_SESSION['user']['id']; } else { $id_user = 0; } // REQUETE D'AFFICHAGE $sql = "SELECT * FROM general WHERE ...
true
7ce4137cd4cf3d2da5fcb917e3a368a3e0791028
PHP
fadhlaoui-wided/php_testCorona
/login.php
UTF-8
1,952
2.734375
3
[]
no_license
<?php header( 'content-type: text/html; charset=utf-8' ); if (isset($_POST['login'])){ $cin = $_POST['cin']; $pass = $_POST['pass']; $servername = "localhost"; $username = "root"; $password = ""; $dbname = "loginsysteme"; // Create connection $conn = new mysqli($servernam...
true
0fd0a84306ef910f438e7217ac5b469c13ec38c4
PHP
kpicaza/schooly
/src/AppBundle/Handler/ApiHandlerInterface.php
UTF-8
764
2.78125
3
[ "MIT", "BSD-3-Clause" ]
permissive
<?php namespace AppBundle\Handler; /** * ApiHandlerInterface. */ interface ApiHandlerInterface { /** * Get object list from repository. * * @param array $criteria * @param array $sort * @param int $limit * @param int $skip */ public function getList(array $criteria, a...
true
903001e8f6023754debe2e463feb069d0cdc4efb
PHP
Jaysonliu9988/Bookstore_V3
/src/Command/DbListCommand.php
UTF-8
2,282
2.828125
3
[]
no_license
<?php namespace App; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Style\SymfonyStyle; use Symfony\Component\Console\Question\ChoiceQuestion; class DbListCommand extends Command { ...
true
8ff19265c76652df0e1ea3ea8cc6186c41d64914
PHP
mrzhaohe/php-
/PHP/函数/star.php
UTF-8
380
3.53125
4
[]
no_license
<?php /** * Created by PhpStorm. * User: zhaohe * Date: 2018/10/31 * Time: 17:42 */ function star($n) { echo '<pre>'; for ($i = 1; $i < $n; $i++) { for ($j = 1; $j <= $n - $i; $j++) { echo ' '; } for ($j = 1; $j <= 2 * $i - 1; $j++) { echo '*'; } ...
true
d10353455481a13e6b4cb69534522d354e68762f
PHP
elam0444/laasistente-laravel
/app/Models/RequirementService.php
UTF-8
2,181
2.640625
3
[]
no_license
<?php namespace App\Models; use App\Traits\HashableModel; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; /** * Class Requirement * @property integer requirement_id * @property integer service_id * @property integer associate_user_id * @property integer requirement_service_...
true
d0f0a2f7095ee15c8fbaf5276d378769bed8ad13
PHP
joshuagl/php-tuf
/src/RoleDB.php
UTF-8
2,649
2.828125
3
[ "MIT" ]
permissive
<?php namespace Tuf; class RoleDB { /** * @var \array[] * * Key roles indexed by role name. */ protected $roles; public static function createRoleDBFromRootMetadata($rootMetadata) { $db = new self(); foreach ($rootMetadata['roles'] as $roleName => $roleInfo) { ...
true
c6e0b317d5dbee54cb015a6369771f9c4b0c2c80
PHP
drinith/dojophp
/parimpar.php
UTF-8
227
2.65625
3
[]
no_license
<?php Class ParImpar{ public function verTipo($_numero){ $tipo=""; //Condicional onde somente o valor "um" é testado if($_numero==1){ $tipo= "impar"; return $tipo; } } } ?>
true
336a3db1fbd29009b86480b20d609f7af1da7aca
PHP
VahanMargaryan/LogViewer
/src/Providers/CommandsServiceProvider.php
UTF-8
1,261
2.640625
3
[ "MIT" ]
permissive
<?php namespace Arcanedev\LogViewer\Providers; use Arcanedev\LogViewer\Commands; use Arcanedev\Support\ServiceProvider; /** * Class CommandsServiceProvider * * @package Arcanedev\LogViewer\Providers * @author ARCANEDEV <arcanedev.maroc@gmail.com> */ class CommandsServiceProvider extends ServiceProvider { ...
true
ed47f442d207026c2b10096729b85f3df0fe3ea9
PHP
gipfl/rrdtool
/src/Graph/Rpn/IsUnknown.php
UTF-8
257
2.640625
3
[]
no_license
<?php namespace gipfl\RrdTool\Graph\Rpn; /** * Pop one element from the stack, compare this to unknown. * * Returns 1 for true or 0 for false. */ class IsUnknown extends BooleanOperator { const NAME = 'UN'; protected $requiredElements = 1; }
true
09271f2321dbcfc74c40bd2102ac8bce93ef4697
PHP
jaspeee/eChed
/database/migrations/2020_01_31_092703_create_institution_ids_table.php
UTF-8
722
2.578125
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateInstitutionIdsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('institut...
true
f4dd1ed65f4bf4ec792eab5e73743e94b138b5d2
PHP
sounboul/vlsm
/addInstanceHelper.php
UTF-8
4,237
2.546875
3
[]
no_license
<?php ob_start(); #require_once('../startup.php'); include_once(APPLICATION_PATH . '/includes/ImageResize.php'); $general = new \Vlsm\Models\General($db); $tableName = "s_vlsm_instance"; $globalTable = "global_config"; function getMacLinux() { exec('netstat -ie', $result); if (is_array($result)) { $iface =...
true
4edb764c1a8c04d4e1871aa6b1aee9fbd4971f1f
PHP
midhunmohananp/blacktrail-backup
/app/Http/Controllers/Api/UsersController.php
UTF-8
6,204
2.703125
3
[]
no_license
<?php namespace App\Http\Controllers\Api; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use App\Criminal ; use App\User ; use Hash ; use Validator; use Storage ; use \Image ; use Illuminate\Validation\Rule; use DB ; use App\Http\Requests\CreateProfileRequest; use App\Http\Requests\UpdateProf...
true
d48dc66f6867995b884ce80db277131ef203aa75
PHP
irhamdz/Sistem-Aspirasi-UIN-SUKA
/application/modules/yudisium/views/v_table/tabel_rekap_nilai_yudisium.php
UTF-8
1,023
2.625
3
[]
no_license
<table class="table table-bordered table-striped"> <thead> <tr > <td align="center"> <b>PROGRAM STUDI</b> </td> <td align="center"> <b>KELAS</b> </td> <td align="center"> <b>PILIHAN</b> </td> <td align="center"> <b>RATA</b> </td> <td align="center"> <b>SD</b> </td> ...
true
2e785b7c4069f05c8b74e00e95d7af3e68ef8626
PHP
PerThoGon/codeAppliFestival
/Site/listeEtablissements.php
UTF-8
2,808
2.5625
3
[]
no_license
<?php echo "<title>Accueil > Gestion Etablissements</title>"; include("_debut.inc.php"); include("_gestionBase.inc.php"); include("_controlesEtGestionErreurs.inc.php"); // CONNEXION AU SERVEUR MYSQL PUIS SÉLECTION DE LA BASE DE DONNÉES festival $connexion=connect(); if (!$connexion) { ajouterErreur("Echec de la ...
true
4c5e86dbba6ac53d2fde7e251722a5f64de73316
PHP
Azeem-Babar/Book-Record-Management-System-in-PHP
/brm/deletion.php
UTF-8
3,007
2.5625
3
[]
no_license
<?php $size = sizeof($_POST); $j = 1 ; for ($i=1; $i <= $size ; $i++ ,$j++) { $index = "b".$j; if (isset($_POST[$index])) { $b_id[$i] = $_POST[$index]; } else $i--; } $con = mysqli_connect('localhost' , 'root'); mysqli_select_db($con , 'brm_db'); for ($k=1; $k <= $size ; $k++) { $q = "delete from book w...
true
bec876871cd40bab398ec3b4240a56bc7159b04a
PHP
MrApr/AprTechFramework
/bootstrap/Helpers/RouteHandler.php
UTF-8
4,462
3.234375
3
[]
no_license
<?php class RouteHandler { /** * Controller source string container * @var string */ private $ctlrStrSrc = "App\\Controllers\\"; /** * Middleware source string container * @var string */ private string $middlewareSrc = "App\\Middlewares\\"; /** * Loads con...
true
a381ca43cef135b1352c3ae1a2d0cce08dedd3f6
PHP
KNIGHTTH0R/hotelbeds-1
/src/Pax.php
UTF-8
1,475
2.859375
3
[]
no_license
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ namespace LadonLabs\Hotelbeds; use LadonLabs\Hotelbeds\BaseJsonEncodable; /** * Description of Pax * * @author antonio */ c...
true
017f361a5cadec6b6b23a0987b71432aa1544338
PHP
alfathin21/ShareMasMalik
/tes.php
UTF-8
1,536
2.921875
3
[]
no_license
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body><? $prev_next_array[] = array("2002q1", "1st Quarter 2002"); $prev_next_array[] = ...
true
1028ccb71c063abf732c404dea8b7d39bfd4ed54
PHP
v-radev/laravel-auth-pack
/AuthCluster/Repositories/Contracts/RepositoryInterface.php
UTF-8
1,090
2.8125
3
[]
no_license
<?php namespace App\Clusters\AuthCluster\Repositories\Contracts; interface RepositoryInterface { /** * @param array $columns * * @return mixed */ public function all( $columns = [ '*' ] ); /** * @param $perPage * @param array $columns * * @return mixed ...
true
1a8189b7aa3ef80eb614c9269bf15234f0f3c06d
PHP
InnfinityAR/MetLife-CRM
/app/Admin/Common/function.php
UTF-8
4,524
2.578125
3
[ "Apache-2.0" ]
permissive
<?php /** * 获取时间范围 * @param int $type 时间范围类型 1代表本周 2本月 3上个月 4上3个月 5上6个月 6本年 */ function getTimeRange($type) { switch ($type) { case 1: $time_range['start_time'] = mktime(0, 0, 0, date('m'), date('d') - date('w'), date('y')); $time_range['end_time'] = mktime(23, 59, 59, date('m'),...
true
04e7fa52f2dcf6345fa0cde635041a11248be9c3
PHP
greeny/CzechClan
/app/model/repositories/UserRepository.php
UTF-8
1,744
2.8125
3
[ "MIT" ]
permissive
<?php /** * @author Tomáš Blatný */ namespace Tempeus\Model; use Nette\Utils\ArrayHash; use Nette\Security\AuthenticationException; use Nette\Utils\Random; use Tempeus\Security\PasswordHasher; class UserRepository extends BaseRepository { public function findByNick($nick) { $row = $this->connection->select('*...
true
60d33f0f9cda213b2434f670a3905d4ff7051705
PHP
rosselli/design-patterns-implemented.concepts
/tests/kamran-ahmed/BridgeTest.php
UTF-8
859
2.75
3
[]
no_license
<?php namespace Tests\KamranAhmed; use Patterns\Structural\Bridge\KamranAhmed\About; use Patterns\Structural\Bridge\KamranAhmed\AquaTheme; use Patterns\Structural\Bridge\KamranAhmed\Careers; use Patterns\Structural\Bridge\KamranAhmed\DarkTheme; use PHPUnit\Framework\TestCase; class BridgeTest extends TestCase { pub...
true
dedf76bcbe0bcff0e9970d8b1bf535c747341897
PHP
chrisijoyah/fizzbuzz
/tests/Step2Test.php
UTF-8
1,626
3.265625
3
[]
no_license
<?php use PHPUnit\Framework\TestCase; use FizzBuzz\Step2; class Step2Test extends TestCase { /** * Test to ensure numbers containing 3 output 'lucky'. */ public function testNumbersContaining3OutputLucky() { // Create a new instance of Step2 $step2 = new Step2; // Test r...
true
d1fada6154338e7d13313476408225cddd6f393f
PHP
abansagi/GroupRecommendationThesis
/Web Survey/app/SpotifyWrapper.php
UTF-8
1,621
2.875
3
[ "MIT" ]
permissive
<?php namespace App; use SpotifyWebAPI\SpotifyWebAPI; use SpotifyWebAPI\Session; /** * Class SpotifyWrapper * * Source: https://github.com/mikelgoig/laravel-spotify-wrapper * * @package App */ class SpotifyWrapper { /** * The Spotify session. */ public Session $session; /** * The ...
true
0c6d79d383d028e7b568bc66a3341db9d0223974
PHP
arecastudio/ehublang
/mvc/View.php
UTF-8
126
2.671875
3
[]
no_license
<?php //file View.php class View{ private $test; private function __construct(){ $this->test="Ini adalah test MVC."; } }
true
9db36a83a615f061aac62365c339ba9785b8f55e
PHP
Jordy281/Web-Centric
/Assignments/Lab5/register.php
UTF-8
3,492
2.8125
3
[]
no_license
<?php //header('Location: View.php'); require_once('User.php'); require_once('Cart.php'); require_once('../mysqli_connect.php'); if($_SERVER["REQUEST_METHOD"] == "POST"){ //First name check for unwanted characters if (preg_match ('%^[A-Za-z\.\'\-]{2,15}$%', stripslashes(trim...
true
c845ae21b946d112d86d982af07a18dbd7e53a22
PHP
CPHCloud/silverstripe-dynamictranslations
/code/i18n/DynamicTranslationAdapter.php
UTF-8
4,121
2.859375
3
[ "MIT" ]
permissive
<?php class DynamicTranslationAdapter { /** * Translate the given entity, or fall back to the default string if no matching entity exists * in the database * @param string $entity * @param string $string * @param array $injectionArray * @return string */ public function tra...
true
53bdb1ad3bc6295bc22ff7a8883eced9bd8cd0cb
PHP
volovodenko/php_homework_5
/functions_forms_tasks/13/13.php
UTF-8
1,152
2.890625
3
[]
no_license
<?php /** * Есть строка $string = "яблоко черешня вишня вишня черешня груша яблоко черешня вишня * яблоко вишня вишня черешня груша яблоко черешня черешня вишня яблоко вишня вишня черешня * вишня черешня груша яблоко черешня черешня вишня яблоко вишня вишня черешня черешня * груша яблоко черешня вишня" * Подсчитай...
true
f8c7ff532a143eda07e93dda87609d6bf0e9b066
PHP
RohmaAli/TeckQuiz
/database/migrations/2017_08_21_000009_create_user_profiles_table.php
UTF-8
979
2.578125
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateUserProfilesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('user_profi...
true
0d4f83154ee82dadc885a87a23fc86665ad24920
PHP
rohitthapar08/basic-programs
/num-pyramid.php
UTF-8
169
3.359375
3
[]
no_license
<html> <head> <title>Number Pyramid</title> </head> <body> <?php $r; $c; for($r=1;$r<=5;$r++) { for($c=1;$c<=$r;$c++) { print("$r"); } print "<br>"; } ?> </body> </html>
true
bef20c3891273054df8ee0ea4d0e7f8429fde61a
PHP
kurzyx/async-amqp-messenger-bundle
/AsyncAmqpTransportFactory.php
UTF-8
2,056
2.515625
3
[]
no_license
<?php declare(strict_types=1); namespace Kurzyx\AsyncAmqpMessengerBundle; use InvalidArgumentException; use Kurzyx\AsyncAmqpMessengerBundle\Connection\BunnyConnection; use Kurzyx\AsyncAmqpMessengerBundle\Connection\ConnectionInterface; use Psr\Log\LoggerAwareInterface; use Psr\Log\LoggerAwareTrait; use React\EventLo...
true
31b507dbe231c6587285614a4203aa35987b8265
PHP
77web/Nanaweb.ExcelSelectionSetter
/tests/Util/Setter/CellSelectionSetterTest.php
UTF-8
1,571
2.625
3
[ "MIT" ]
permissive
<?php namespace Nanaweb\ExcelSelectionSetter\Util\Setter; use Nanaweb\ExcelUtil\Book as BookUtil; use Nanaweb\ExcelUtil\ZipArchive; class CellSelectionSetterTest extends \PHPUnit_Framework_TestCase { /** * @param string $xmlFixtureFile * @dataProvider provideData */ public function test($xmlFi...
true
cdfe5e0bcefc9f0d622cd96db6aff60e5404693b
PHP
larabelt/spot
/src/Behaviors/IncludesLatLng.php
UTF-8
1,209
2.75
3
[]
no_license
<?php namespace Belt\Spot\Behaviors; trait IncludesLatLng { /** * @param $value */ public function setLatAttribute($value) { $this->attributes['lat'] = trim(floatval($value)); } /** * @param $value */ public function setNorthLatAttribute($value) { $thi...
true
0290eca4e13c8b9f46852cfbaf36c53872b0d2e4
PHP
open-steam/koala
/extensions/system/api_ajax/classes/FrontController.class.php
UTF-8
5,086
2.578125
3
[]
no_license
<?php class FrontController { public function handleRequest(AjaxRequestObject $ajaxRequestObject, AjaxResponseObject $ajaxResponseObject) { $response = new HttpResponse(); $extension = ExtensionMaster::getInstance()->getExtensionForNamespace($ajaxRequestObject->getNamespace()); if (isset($...
true
d4405df61644d72830ed3a7b36e3b831a238a7a4
PHP
mumingv/php
/func/filter/filter_filter_var.php
UTF-8
1,821
3.28125
3
[]
no_license
<?php /*********************************************************** * FileName: filter_filter_var.php * Desc: 使用特定的过滤器过滤一个变量 * Author: Jie Yin * Email: mumingv@163.com * HomePage: https://github.com/mumingv * Version: 0.0.1 * LastChange: 2016-03-29 15:40:26 * History: **...
true
acc1da1e4500084766cdea538491ccecf77a0b4e
PHP
skylide/soosyze
/core/modules/Menu/Services/Menu.php
UTF-8
5,685
2.53125
3
[ "MIT" ]
permissive
<?php namespace SoosyzeCore\Menu\Services; class Menu { protected $core; /** * @var \Soosyze\Components\Router\Router */ protected $router; protected $config; protected $query; protected $pathViews; public function __construct($alias, $core, $router, $config, $query) { ...
true
56783156d289a9dfa59b4534705628bb4388bd76
PHP
StefansArya/Scarlets
/src/Library/Schedule.php
UTF-8
5,758
2.78125
3
[ "MIT" ]
permissive
<?php namespace Scarlets\Library; use \Scarlets; use \Scarlets\Library\FileSystem\LocalFile; class Schedule{ private static $time = []; private static $modified = []; public static function init(){ self::$time = LocalFile::load('{framework}/schedule.cache'); if(self::$time === '') self::$time = []; else self...
true
33ee0cf811fd37dd23e65311a430a593d5ba252a
PHP
MaximeEvennou/Formation-WebForce3
/PHP/post/formulaire1.php
UTF-8
2,206
2.984375
3
[]
no_license
<?php require_once("include/header.php"); echo '<pre>'; print_r($_POST); echo '</pre>'; if(isset($_POST['formulaire1'])) // Si je valide le formulaire alors on entre dans les accolades { echo 'Email : ' . $_POST['email'] . '<br>'; echo 'MDP : ' . $_POST['mdp'] . '<hr>'; // Exo : Afficher les données saisi...
true
d83eb45311135e90425cdd726f592b987410ca64
PHP
iyidaclem/digitmoni2
/App/API/Model/UserCard.php
UTF-8
1,272
2.609375
3
[]
no_license
<?php namespace API\Model; use core\Encrypt; use core\Model; use core\Response; use core\FH; class UserCard extends Model{ public function __construct($table){ parent::__construct($table); $this->res = new Response(); } public function getAndDecryptUserCardInfo($targetUser){ //id username car...
true
2bc81f60274ac141dfbbf61bcc9700eb1a532c14
PHP
fabrizio-turchi/dftEditor
/tools/util.export.catalogue.to.xlsx.php
UTF-8
8,142
2.515625
3
[ "MIT" ]
permissive
<html> <head> <title>EVIDENCE project: Digital Forensics Tools Editor - Export into Calc Sheet Format</title> <link rel="stylesheet" href="./scripts/dfte.css" type="text/css"> <body> <?php date_default_timezone_set('Europe/Rome'); try { $db_conn = new PDO('mysql:host=localhost;dbname=dftCatalogue;...
true
744449f6b4a556fa1fd74803b65f4112d0440def
PHP
HyoDongPark/htdocs
/chatSystem/chat/chatList.php
UTF-8
1,205
2.734375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: 영진전문대 박효동 * Date: 2017-12-11 * Time: 오후 1:28 */ require_once '../classes.php'; class chatList extends foundationDatabase { private $TABLE_NAME = "roomlist"; private $check; function select($firstString, $backString) { $sql ...
true
06db893ffda19f5d5fe1d08c08ae675e5ac1f350
PHP
SAG-members/spaceage_guru
/application/models/admin/Blog.php
UTF-8
5,536
2.71875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php class Blog extends CI_Model { /* * Define table constants at the begining of class to ensure single * line of changes applies to whole class. */ const _TABLE = 'blog_post'; const _ID = 'id'; const _USER_ID = 'user_id'; const _POST_TITLE = 'post_title'; const _POST_CONTENT = 'post_content'; const _...
true
4bfda17064f94a0df5cb03d3dda326cd555427a0
PHP
resumenext/container
/src/Builder.php
UTF-8
11,108
2.78125
3
[ "MIT" ]
permissive
<?php namespace ResumeNext\Container; use Closure; use Interop\Container\ServiceProvider; use Iterator; use Psr\Container\ContainerInterface as PsrContainerInterface; use stdClass; class Builder { /** @var \stdClass */ protected $stash; /** @var string */ protected $containerClass; /** @var string */ protec...
true
d9debea13025b557646d2ec0b8df44b6e8202124
PHP
programmmerjosh/cs50-pset7
/public/history.php
UTF-8
1,383
2.6875
3
[]
no_license
<?php // configuration require("../includes/config.php"); // if user reached page via GET (as by clicking a link or via redirect) if ($_SERVER["REQUEST_METHOD"] == "GET") { // inner join select query from users and history table $rows = CS50::query("SELECT users.cash, history.* ...
true
17ce23705ba3ff0d2253f1e9a99ebad80beb0dc7
PHP
lara-ayo/Circe_SolarCalculator
/insert.php
UTF-8
1,620
3.15625
3
[]
no_license
<?php if($_SERVER["REQUEST_METHOD"] == "POST"){ //including the database file include_once 'datab.php'; // PHP variables $electronics = filter_var($_POST["electronics"], FILTER_SANITIZE_STRING); $watts = filter_var($_POST["watts"], FILTER_SANITIZE_STRING); //CHECKING FOR EMPTY FORMS if (empty($el...
true
27fcc87709411a921f87b5d8191a6a200bfb7dba
PHP
pengyaxiong/gather
/app/Models/System/User.php
UTF-8
857
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Models\System; use App\Models\Cms\Customer; use App\Models\Tool\PV; use Illuminate\Notifications\Notifiable; use Illuminate\Foundation\Auth\User as Authenticatable; use Spatie\Activitylog\Traits\LogsActivity; class User extends Authenticatable { use Notifiable, HasRoles, LogsActivity; /...
true
2e600bb184faa9b8bc428def21da25c2cacb5aae
PHP
hackle-io/hackle-php-sdk
/src/Hackle/Internal/Event/Dispatcher/TrackEventDto.php
UTF-8
3,730
2.6875
3
[]
no_license
<?php namespace Hackle\Internal\Event\Dispatcher; use JsonSerializable; use stdClass; class TrackEventDto implements JsonSerializable { /**@var string */ private $insertId; /**@var int */ private $timestamp; /**@var string|null */ private $userId; /**@var array */ private $identifi...
true
2781e7fedc128c2fe23704fe0377271b03be95a0
PHP
MatiasNAmendola/pattern-data-generator
/Library/IPatternDataOperator.php
UTF-8
113
2.75
3
[]
no_license
<?php interface IPatternDataOperator { public function SetPattern($Pattern); public function GetPattern(); }
true
1f0588fad1adb40bab559ee95afa42406d27eca1
PHP
afk11/pkcs5
/src/Cipher/Aes/AesCrypt.php
UTF-8
1,019
2.921875
3
[ "MIT" ]
permissive
<?php namespace Afk11\Pkcs5\Cipher\Aes; class AesCrypt { /** * @param string $key * @param AesParams $params */ private function checkKeyLength($key, AesParams $params) { if (strlen($key) !== $params->getKeyLength() / 8) { throw new \RuntimeException('Key does not match ...
true
04edd78256e3574616033228ff0b77013499d77e
PHP
Stephen-Ibe/quote-API
/config/Database.php
UTF-8
4,183
3.28125
3
[]
no_license
<?php class Database { // Class Variables private $host_name = "localhost"; private $db_name = "quote_api"; private $username = "root"; private $password = ""; private $pdo; // start database connection public function __construct() { $t...
true
d6ff89be9ec5885e01d309bff075feedfadb5114
PHP
marcbal/24IUTInfoWeb
/application/modele/mymodel/tables/Escales.class.php
UTF-8
369
2.53125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: SkynaCrow * Date: 30/05/2015 * Time: 00:57 */ class Escales extends Table{ public $date_entree; public $date_sortie; public function __construct($date_entree="", $date_sortie="") { parent::__construct(); $this->date_entree = $date_entree; ...
true
bb6ab4895570af1c6862b8956295d5330c501b79
PHP
nephie/AZL-website
/framework/lib/errortoexception.php
UTF-8
871
2.609375
3
[]
no_license
<?php function errortoexception($errno, $errstr, $errfile, $errline , $errcontext){ // Only throw exceptions for real errors, ... warnings and noticed may be debugged though switch ($errno){ case E_USER_WARNING: case E_USER_NOTICE: case E_WARNING: case E_NOTICE: case E_CORE_WARNING: case E...
true
b92bf8e8bb2dd8614d0ca66d1aac44d156daf497
PHP
piwii/mibu
/src/Component/Handler/PersonnageHandler.php
UTF-8
6,206
2.890625
3
[ "MIT" ]
permissive
<?php namespace App\Component\Handler; use App\Entity\Element\Personnage; use Symfony\Component\Config\Definition\Exception\Exception; use Symfony\Component\HttpFoundation\JsonResponse; class PersonnageHandler extends BaseHandler { /** * @param $fictionId * @param $limit * @return bool */ ...
true
2a94f5eb70bf79458434c0054433facb401dcaec
PHP
nikita2206/bumblebee
/src/Metadata/ObjectArray/ObjectArrayAccessorMetadata.php
UTF-8
675
2.96875
3
[]
no_license
<?php namespace Bumblebee\Metadata\ObjectArray; class ObjectArrayAccessorMetadata { /** * @var string */ protected $name; /** * @var bool */ protected $isMethod; /** * @param string $name * @param bool $isMethod Whether it is method name or field name */ ...
true
9715bac04ad1ccd2e78ac4f046736b65cea826b2
PHP
htetaungshine2111/better-hr
/app/GraphQL/Mutations/UpdateEmployeeMutation.php
UTF-8
1,349
2.703125
3
[ "MIT" ]
permissive
<?php namespace App\GraphQL\Mutations; use App\Employee; use Closure; use Rebing\GraphQL\Support\Facades\GraphQL; use GraphQL\Type\Definition\ResolveInfo; use GraphQL\Type\Definition\Type; use Rebing\GraphQL\Support\Mutation; class UpdateEmployeeMutation extends Mutation { protected $attributes = [ 'name...
true
3b080082514981a642589e7f3b409f16c7e54fb2
PHP
koenhoeymans/AnyMark
/tests/unit/Plugins/LinkDefinitionCollector/LinkDefinitionCollectorTest.php
UTF-8
4,388
2.65625
3
[ "BSD-2-Clause" ]
permissive
<?php namespace AnyMark\Plugins\LinkDefinitionCollector; class LinkDefinitionCollectorTest extends \PHPUnit\Framework\TestCase { public function setup() { $this->plugin = new \AnyMark\Plugins\LinkDefinitionCollector\LinkDefinitionCollector(); } /** * @test */ public function aLi...
true
5c6b71e0ec4366255d3f3dee452cf1c5891dd397
PHP
crazyrex/feeder
/src/TreeHouse/Feeder/Event/ResourceEvent.php
UTF-8
913
2.734375
3
[ "MIT" ]
permissive
<?php namespace TreeHouse\Feeder\Event; use Symfony\Component\EventDispatcher\Event; use TreeHouse\Feeder\Resource\ResourceCollection; use TreeHouse\Feeder\Resource\ResourceInterface; class ResourceEvent extends Event { /** * @var ResourceInterface */ protected $resource; /** * @var Resou...
true
f7d3a42e9180d5496208c236025a06913989860d
PHP
shoaibansari/mosque-donation-app
/public_html/app/Classes/CToolBox/CUploadTool.php
UTF-8
6,026
2.640625
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: Muhammad Adnan * Date: 11/28/2016 * Time: 12:48 AM */ namespace App\Classes\CToolBox; class CUploadTool { const NO_ERROR = 0; const ERR_NO_FILE_UPLOAD = 404; const ERR_STORAGE_NOT_WRITABLE = 405; const ERR_UNABLE_TO_MOVE_FILE = 406; const ERR_FILE_SIZE_EXCEEDS = 407...
true
a15d1345666deba060a6a4429b4f7aca07b5ac24
PHP
llaine/elasticsearch-php-river
/src/interface/ImporterInterface.php
UTF-8
1,643
2.890625
3
[ "MIT" ]
permissive
<?php namespace ElasticRiver; /** * Interface ImporterInterface * The importer "import" data from a source to a destination. * * An Importer could be, Elasticsearch, MongoDb or Mysql, etc. * * @author llaine */ interface ImporterInterface { /** * Must create the destination database with specific op...
true
1928901c3db10b7bd027fd78176dcb6d8b6ad884
PHP
organyx/mvc_cat
/application/models/model_register.php
UTF-8
7,124
2.546875
3
[]
no_license
<?php $GLOBALS['flag'] = false; $GLOBALS['secure_password'] = ""; $GLOBALS['file'] = ""; class Model_Register extends Model { public function min_max_pass($password) { $min = 8; $max = 32; if (strlen($password) > $max) { return 1; } elseif (strlen($password) < $min) { return -1; ...
true
f7582b7d5dc6f3cb77b9200c1a91d9606c4abaa5
PHP
mohammed-mansour000/php-project
/admin/add-class.php
UTF-8
9,535
2.53125
3
[]
no_license
<?php ob_start(); //output buffering start session_start(); $pageTitle='Classes'; if(isset($_SESSION['username']) && $_SESSION['userStatus'] == 1){ include 'includes/templates/header.php'; ?> <?php include "includes/templates/navbar.php" ?> <?php $do=isset($_GET['do'])? $_GET['do'] : 'Manage...
true
234148ecc3f7b7bd93da3618cd704bb17b9e39b3
PHP
MCripps/as1_SoGlad
/application/models/Content.php
UTF-8
901
2.78125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /** * Description of Content * * @author Marcus */ class Content extends CI_Model{ function _construct(){ parent::_construct(); // we initialise values manually but should really // populate this from the content_type table $this->contentTypes = array( 'g...
true
2acf876bdcd4847969d07ba94d47345d86d8f237
PHP
fullstack82/Master-php-7
/poo/constructores/coche.php
UTF-8
2,138
3.984375
4
[]
no_license
<?php class Coche { // Mala practica no se deben poner los valores directamente (se ponen en constructor) public $color; private $marca; protected $modelo; public $caballos; public $velocidad; public $plazas; // Constructor en php (setear valores dentro del constructor) public fun...
true
24da361dfa99bac6cc61aa396a3d7cd53642f5de
PHP
zcb888/putixuehui
/putixuehui/application/controllers/index.php
UTF-8
14,162
2.515625
3
[]
no_license
<?php if (! defined ( 'BASEPATH' )) exit ( 'No direct script access allowed' ); /* * date:2016-11-14 desc:网站首页 author:Gavin.zhang */ class Index extends CI_Controller { public $ip = ''; public $uniquee = ''; public $is_login = false; public $login_user_id = 0; public $login_group_id = 0; public $login_name ...
true
816aba7aa0a1701ab25e4b189f173a35047e81e6
PHP
samehot66/Respondhub
/ranking.php
UTF-8
3,743
2.65625
3
[]
no_license
<!--Check session user--> <?php if (!isset($_SESSION['name'])) { $_SESSION['msg'] = "You must log in first"; echo "<script>location='login.php'</script>"; } if (isset($_GET['logout'])) { session_destroy(); unset($_SESSION['name']); unset($_SESSION['success']); unset($_SESSION['idST']); unset($_SES...
true