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
74435590f7a1aaf71069e68527c15048c70965c2
PHP
masilio/felix90-eng.github.io
/src/Entity/Position.php
UTF-8
3,980
2.71875
3
[]
no_license
<?php namespace App\Entity; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass="App\Repository\PositionRepository") * @ORM\Table(name="positions") */ class Position { /** * @ORM\Id() * @ORM\G...
true
ffe20c973ed2cec6cc05e1e0cc1d1c00c5d857a2
PHP
gapoorva/apoorvagupta.com
/edit.php
UTF-8
2,894
2.640625
3
[]
no_license
<?php include 'section.php'; $note = null; $is_admin_mode = admin($conn, $note); $page = $_REQUEST['page']; if(!$is_admin_mode || (is_null($page) && $_SERVER['REQUEST_METHOD'] != 'POST')) { header("Location: index.php"); die(); } if($_SERVER['REQUEST_METHOD'] == 'POST') { $handle = fopen($_REQUEST['filena...
true
28ce0d663bd8240997071288c128e12a0284d21c
PHP
Cowscript/CowScriptPHP
/Reference/ReferenceHandler.php
UTF-8
483
3
3
[]
no_license
<?php namespace Script\Reference; use Script\Exception\ScriptRuntimeException; use Script\TypeHandler; class ReferenceHandler{ public static function toReference($value){ if(!($value instanceof IReference)) throw new ScriptRuntimeException("Cant convert ".TypeHandler::type($value)." is not a reference"); ...
true
5be0e83a72fb4c9d3d3742526e48b722846acadb
PHP
benoitdavidfr/geovect
/coordsys/json.php
UTF-8
3,668
2.71875
3
[]
no_license
<?php /*PhpDoc: name: json.php title: json.php - API JSON d'export du registre des CRS et de calcul de chgt de coords includes: [ full.inc.php ] doc: | Sans paramètre: exporte le registre /schema - exporte le schéma JSON du registre /EPSG - exporte le sous-registre EPSG /EPSG:xxx - exporte la définition d'un co...
true
d0378cb49f836ff5a303b11a0725188e28960a6f
PHP
koksztul/culinary_website
/recipe.php
UTF-8
5,822
2.546875
3
[]
no_license
<!DOCTYPE html> <html lang="pl-PL"> <head> <meta charset="utf-8"> <link rel="stylesheet" type="text/css" href="./css/style1.css"> <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.9.0/css/all.css" integrity="sha384-i1LQnF23gykqWXg6jxC2ZbCbUMxyw5gLZY6UiUS98LYV5unm8GWmfkIS6jqJfb4E" crosso...
true
ab5f32ba17e863b4481b4e746ca4377b825622ae
PHP
yugeta/framework
/system/common/php/cookie.php
UTF-8
659
2.796875
3
[]
no_license
<? //---------- //Cookie処理 //---------- class COOKIE{ //Cookie(保持時間) public $id = 'fw'; /* public $d = 30; public $h = 0; public $m = 0; public $s = 0; */ //書き込み※[time:保持時間は秒で指定] function write($id='',$data ,$sec){ if(!$id){$id = $this->id;} $time = (time() + ($sec*1) )...
true
d1ae17bb973f52d453d7d6230e8a00e491f27f73
PHP
Cassini17/laralog
/app/Http/Controllers/SessionsController.php
UTF-8
823
2.640625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; class SessionsController extends Controller { // avoid login twice public function __construct() { // $this->middleware('guest',['except'=>'destroy']); } // Sign-in page public function create() { auth()->logout(); return view('sessi...
true
d9bdbd478f98e53ac7799fcf6711ae4dac4a2d49
PHP
DaveWishesHe/adventofcode-solutions
/DaveWishesHe/06/6-1.php
UTF-8
964
2.875
3
[]
no_license
<?php $contents = str_replace("turn ", "", file_get_contents("6.input")); $instructions = array_filter(explode("\n",$contents)); $row = ""; while (strlen($row) < 1000) { $row .= "0"; } $grid = array_pad(array(), 1000, $row); foreach ($instructions as $instruction) { list($state, $from, $through, $to) = explo...
true
4818e68d4d57c4d21aec1d41899a81a3d1123b58
PHP
fiboknacky/googleads-php-lib
/src/Google/AdsApi/AdWords/v201809/cm/PolicySummaryInfo.php
UTF-8
4,378
2.546875
3
[ "Apache-2.0" ]
permissive
<?php namespace Google\AdsApi\AdWords\v201809\cm; /** * This file was generated from WSDL. DO NOT EDIT. */ abstract class PolicySummaryInfo { /** * @var \Google\AdsApi\AdWords\v201809\cm\PolicyTopicEntry[] $policyTopicEntries */ protected $policyTopicEntries = null; /** * @var string $...
true
a435baa0761068e5cd48089e5cf527cf4bf7ee9c
PHP
RomanRabirokh/ImageRandSearch
/src/app/classes/ImageTextCsv.php
UTF-8
1,723
3.34375
3
[]
no_license
<?php namespace classes; use interfaces\ImageText; /** * Class ImageTextCsv * @package classes */ class ImageTextCsv implements ImageText { /** * @var array|false|string */ protected $fileNames; /** * @var array|false|string */ protected $fileNameSigns; /** * ImageTe...
true
dae753205d5a7861da2094888658271f80158b22
PHP
AlexeyMinsk/tasks
/db_array/34.php
UTF-8
2,093
3.140625
3
[]
no_license
<?php function getMaxLineIndex(array $arr){ $arrCounter = array(); for($i = 0; $i < count($arr); $i++){ $arrCounter[$i] = 0; for($s = 0; $s < count($arr[$i]); $s++) $arrCounter[$i] += $arr[$i][$s]; if(!isset($max) || $max < $arrCounter[$i]){ $max = $arrCounter...
true
c9be3b0cd7d20756b2d8af4eea9de455943648fa
PHP
besthird/rbac-api
/app/Service/Dao/UserDao.php
UTF-8
4,007
2.671875
3
[]
no_license
<?php declare(strict_types=1); /** * This file is part of Besthird. * * @document https://besthird.github.io/rbac-doc/ * @license https://github.com/hyperf-cloud/hyperf/blob/master/LICENSE */ namespace App\Service\Dao; use App\Constants\ErrorCode; use App\Exception\BusinessException; use App\Kernel\Helper\Mode...
true
60eeb80e2d4a0f8f13d56c2f89b703a6bf614365
PHP
johnalula/noradVMS
/apps/frontend/modules/employee/actions/actions.class.php
UTF-8
3,863
2.5625
3
[]
no_license
<?php /** * employee actions. * * @package noradVMS * @subpackage employee * @author Your name here * @version SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $ */ class employeeActions extends sfActions { public function executeIndex(sfWebRequest $request) { $offset = 0; $...
true
83514567b3546650829dd32066f79cfe24c92c4f
PHP
eirikref/Loom
/tests/unit/Breadcrumbs/SetAndGetTest.php
UTF-8
1,668
2.890625
3
[]
no_license
<?php /** * Loom: Unit tests * Copyright (c) 2017 Eirik Refsdal <eirikref@gmail.com> */ namespace Loom\Tests\Unit\Breadcrumbs; use PHPUnit\Framework\TestCase; /** * Loom: Unit tests for Breadcrumbs::set() and get() * * @package Loom * @subpackage Tests * @version 2017-04-13 * @author Eirik Refsdal ...
true
d6bcada2162f71cb1af3af091cb7b859a5b67a81
PHP
alexisljn/collab-media
/models/forms/ForgottenPasswordForm.php
UTF-8
334
2.640625
3
[ "WTFPL" ]
permissive
<?php namespace app\models\forms; use yii\base\Model; class ForgottenPasswordForm extends Model { public $email; public function rules() { return [ // email is required [['email'], 'required'], // email must be a valid email ['email', 'email'], ...
true
8d8e71a40419a56819be57ceb5aa55d2d7f982b2
PHP
ltg-uic/phenomena-website
/lib/php/PageController.php
UTF-8
4,997
2.8125
3
[ "MIT" ]
permissive
<?php namespace PhenLib; abstract class PageController { private static $session = NULL; private static $initDone = FALSE; private static $URIQueue = NULL; private static $URIRaw = NULL; private static $URIRawDepth = NULL; private static $baseURL = NULL; private static $baseRelativePath = NULL; private static ...
true
c60850dbb96fb9d077f0a99db5f446daa4bc9f1c
PHP
Athirajs/video_manager
/app/Http/Controllers/UploadController.php
UTF-8
946
2.640625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Models\Upload; use Illuminate\Http\Request; class UploadController extends Controller { public function index() { return Upload::all(); } public function store(Request $request) { $request->validate([ 'title' => ['requi...
true
ddcb443686a88c216124d7a6e64ed65417ffe651
PHP
MARMones/facebook
/inbox.php
UTF-8
863
2.6875
3
[]
no_license
<?php session_start(); $dbhost = 'localhost'; $dbuser = 'root'; $dbpass = ''; $conn = mysql_connect($dbhost, $dbuser, $dbpass) or die ('Error connecting to mysql'); $dbname = 'dbs'; mysql_select_db($dbname); $query = "SELECT * FROM tbl_msg"; $result = mysql_qu...
true
0d53680ec2b586fe5e515dbaaa7299b468ef3a49
PHP
msh123456/mongogram
/login.php
UTF-8
1,656
2.59375
3
[]
no_license
<?php include_once 'header.php'; ?> <?php if (isLogin()) { header("Location: ?a=home"); } $validator = new validator(); if (isset($_POST['username']) && isset($_POST['password'])) { global $db; $username = protect($_POST['username']); $password = protect($_POST['password']); $count = $db->users->cou...
true
7fefe376b308ab9bc8e25aae92c9f4c9b8c5e37a
PHP
OliverCaiJia/jtadmin
/app/Helpers/Logger/SLogger.php
UTF-8
2,254
2.546875
3
[]
no_license
<?php namespace App\Helpers\Logger; use MongoDB\Client; use Monolog\Handler\MongoDBHandler; use Monolog\Logger as MonologLogger; use Monolog\Handler\StreamHandler; use Monolog\Processor\WebProcessor; class SLogger { private static $logger; public static function i() { return self::getStream(); ...
true
19cf57236939a6ecef8896903525b4d7df23e5c6
PHP
JonathanDLR/simmyadmin
/backend/UpdateTable.php
UTF-8
380
2.734375
3
[]
no_license
<?php require_once('Manager.php'); class UpdateTable extends Manager { public function update($table, $newNom) { try { $req = $this->_connexion->getDb()->prepare("ALTER TABLE $table RENAME TO $newNom"); $req->execute(); echo "la table ".$table." a été renommée!"; } catch(Exception $e) {...
true
c4a780cd2549e3848aa39a9667c6d9f2d6bf3c4d
PHP
alifahfathonah/AbsensiOnlineQRCode
/mahasiswa/prosestdkhdr.php
UTF-8
4,984
2.546875
3
[ "MIT" ]
permissive
<?php session_start(); $nim = $_SESSION['username']; include "../koneksi.php"; if(isset($_POST['submit'])){ $id_matkul = $_POST['idmatkul']; $id_matkul_enc = base64_encode($id_matkul); $ket = htmlentities(strip_tags(trim($_POST['keterangan']))); $i = 1; $querymhs = mysqli_query($konek,"SELECT * FROM Mahasiswa WHE...
true
1dee589619a8f6c60879b84dacb93222c4c39b26
PHP
justyork/mod
/Libs/Lng.php
UTF-8
1,813
2.6875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: York * Date: 05.04.14 * Time: 20:28 */ class Lng { private $types; private $categories; private $langs; public function __construct(){ $this->types = JL::ListData(MSQL::Results('lang_type'), 'name'); $this->categories = JL::ListData(MSQL::Results('lang_category')...
true
f358b1773eca9b5e3f4b4045d84a33a3ec9beca7
PHP
juan2ramos/credito
/app/database/migrations/2015_03_10_175601_create_excelDaily_table.php
UTF-8
500
2.53125
3
[]
no_license
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateExcelDailyTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('excelDaily',function($table) { $table->increments('id'); $table->inte...
true
88004f2d5bb75b6dcf9257020ab029911974c4f6
PHP
Djoulzy/Toolbox
/Daemon/Signal.class.php
UTF-8
299
3.078125
3
[]
no_license
<?php final class Signal { public static $signo = 0; public static function set($signo) { self::$signo = $signo; } public static function get() { return(self::$signo); } public static function reset() { self::$signo = 0; } }
true
8dc4126e9bf21e4d5ed3323ce3aa6ce355fb8a89
PHP
PigWeb/miMuro
/paginas/register.php
UTF-8
2,364
2.515625
3
[]
no_license
<?php header('Content-Type:text/html; charset=UTF-8'); session_start(); error_reporting(0); $errores = array(); $nombre=$_POST['nombre']; $apellido=$_POST['apellido']; $mail=$_POST['mail']; $p1 = $_POST['pass1']; $p2 = $_POST['pass2']; if (!empty($_POST)) { if(isset($nombre) && isset($apellido))...
true
7497d38a2d12261efb45b143de2c0b791351db16
PHP
zzhxlyc/zhifu
/app/model/Apply.php
UTF-8
1,621
2.671875
3
[]
no_license
<?php class Apply extends AppModel{ public $table = 'applys'; public function check(&$data, array $ignore = array()){ $check_arrays = array( 'need' => array('title', 'name'), 'length' => array('description'=>3000), 'int' => array('num', 'identity', 'education', 'year', 'age'), 'email' => array('emai...
true
2d67742474aa2447fee62c3bb7ca036d70b7a036
PHP
jkapuscik2/design-patterns-php
/src/Behavioral/Strategy/OutputFormatter.php
UTF-8
122
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Behavioral\Strategy; interface OutputFormatter { public function format(array $data): string; }
true
b942ea67165e766188855156f24c84153dbe7b46
PHP
scieloorg/Web
/htdocs/applications/scielo-org/classes/NewsDAO.php
WINDOWS-1250
4,321
2.984375
3
[]
no_license
<?php /** *@package Scielo.org *@version 1.0 *@author Andr Otero(andre.otero@bireme.org) *@copyright BIREME */ /** *Noticias do Usario * *Encapsula as funces CRUD em uma classe, assim temos "independencia" do Banco de dados a ser utilizado. *@package Scielo.org *@version 1.0 *@author ...
true
5ebb4edb0e2232508eb5f7db359665339b56dc64
PHP
adamramadhan/red
/libraries/core.views.php
UTF-8
5,967
2.6875
3
[]
no_license
<?php if (! defined ( 'SECURE' )) exit ( 'Hello, security@networks.co.id' ); /** * DONOTEDIT, extend olny at /application/views * @version 100.20/3/2011 * @package ENGINE/CORE * @author rama@networks.co.id * @tutorial wiki/missing.txt */ class Views { final function __construct() { # cant change...
true
fdc02a61c9286782489543d9ed7b0a391d7cc884
PHP
shilpabharamanaik/shilpazend3Fisdap
/vendor/fisdap/members-api/app/Entity/MoodleCourseOverride.php
UTF-8
895
2.578125
3
[ "MIT" ]
permissive
<?php namespace Fisdap\Entity; use Doctrine\ORM\Mapping\Column; use Doctrine\ORM\Mapping\Entity; use Doctrine\ORM\Mapping\GeneratedValue; use Doctrine\ORM\Mapping\Id; use Doctrine\ORM\Mapping\JoinColumn; use Doctrine\ORM\Mapping\ManyToOne; use Doctrine\ORM\Mapping\Table; /** * Entity class for mapping Programs and ...
true
7ba0de7ac8c03d202af3d9714d9dd2435f827e18
PHP
Morebec/OrkestraSymfonyBundle
/Module/SymfonyOrkestraModuleContainerConfigurator.php
UTF-8
4,211
2.609375
3
[ "MIT" ]
permissive
<?php namespace Morebec\OrkestraSymfonyBundle\Module; use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; use Symfony\Component\DependencyInjection\Loader\Configurator\ServiceConfigurator; use Symfony\Component\DependencyInjection\Loader\Configurator\ServicesConfigurator; /** * Help...
true
ac729e2b7d0c4fa8ab0f236d276f30966aa93644
PHP
liexusong/open-source-reading-comments
/php-4.0.6/tests/basic/011.phpt
UTF-8
200
2.796875
3
[ "LicenseRef-scancode-unknown-license-reference", "PHP-3.0" ]
permissive
--TEST-- Testing $argc and $argv handling --POST-- --GET-- ab+cd+ef+123+test --FILE-- <?php for($i=0;$i<$argc;$i++) { echo "$i: ".$argv[$i]."\n"; } ?> --EXPECT-- 0: ab 1: cd 2: ef 3: 123 4: test
true
5e04bc878205dbdbaf44250c47120924f552c550
PHP
foxyframework/foxy
/classes/user.php
UTF-8
3,006
2.765625
3
[]
no_license
<?php /** * @version 1.0.0 Foxy Framework $ * @package Foxy Framework * @copyright Copyright © 2014 - All rights reserved. * @license GNU/GPL * @author Foy Team * @website https://foxyframework.github.io/foxysite/ * */ defined('_Foxy') or die ('restricted access'); class User { public...
true
a0d3083d9ee9dee238c1a3f2047f1e96965ddb0b
PHP
apalette/tchouk-tchouk
/core/components/data/InSql.php
UTF-8
2,940
2.9375
3
[]
no_license
<?php /** * Ingo Sql * * PHP 5 * * @package data * @author apalette * @version 1.0 * @since 24/09/2015 * */ class InSql { protected static $_config; protected $_connexion; protected $_exception; protected $_query; protected $_data; protected $_type; public function __constru...
true
5404cb87b7175118638ffdd928b7b0a3f2d5f93d
PHP
etki/allure-runner
/src/IO/Controller/DummyController.php
UTF-8
1,821
2.859375
3
[ "MIT" ]
permissive
<?php namespace Etki\Testing\AllureFramework\Runner\IO\Controller; use Etki\Testing\AllureFramework\Runner\Configuration\Verbosity; use Etki\Testing\AllureFramework\Runner\IO\IOControllerInterface; /** * Dummy I/O controller implementation. Acts like a black hole. * * @SuppressWarnings(PHPMD.UnusedFormalParameter...
true
636474eebe52f03e88054947edbb40829b8fe4fd
PHP
lucques/mycms
/library/models/mappers/UpdateSettingsMapper.php
UTF-8
254
2.671875
3
[ "Apache-2.0", "MIT" ]
permissive
<?php /** * This is the interface for updating the settings from a data source. */ interface UpdateSettingsMapper { /** * @param Map $settings */ public function setSettings(Map $settings); /** * */ public function map(); }
true
d1672ed2d8971a877548fa561a3ff2fb86d625a8
PHP
M1naret/lumen-graphql
/src/M1naret/GraphQL/Error/Error.php
UTF-8
410
2.6875
3
[ "MIT" ]
permissive
<?php namespace M1naret\GraphQL\Error; use GraphQL\Error\Error as GraphQLError; class Error extends GraphQLError { protected $headers = []; /** * @param array $headers */ public function setHeaders(array $headers) { $this->headers = $headers; } /** * @return array ...
true
9c290288592519dc5550f3158d7a4cb40cc7786e
PHP
curator-wik/curator
/tests/Shared/Traits/Persistence/PersistenceTestsTrait.php
UTF-8
2,203
2.59375
3
[ "MIT" ]
permissive
<?php namespace Curator\Tests\Shared\Traits\Persistence; use Curator\Persistence\PersistenceInterface; trait PersistenceTestsTrait { /** * @return PersistenceInterface */ protected abstract function sutFactory(); public function testBasicStoreAndRetrieve() { $sut = $this->sutFactory(); $sut->b...
true
24947d372eae09b93a2510bc512479721532b004
PHP
disono/archie
/src/Database/DSDB.php
UTF-8
1,031
2.875
3
[ "Apache-2.0" ]
permissive
<?php namespace Archie\Database; class DSDB { private $connection = null; private $table = null; private $selects = []; private $where = []; public function __construct() { $this->connection = new \MeekroDB($host, $user, $pass, $dbName, $port, $encoding); } public function ta...
true
d592768bad1676e40f9d7d4f0375745a4dd25cc5
PHP
makarova/skeleton
/application/models/Roles/Crud.php
UTF-8
1,839
2.859375
3
[ "MIT" ]
permissive
<?php /** * @copyright Bluz PHP Team * @link https://github.com/bluzphp/skeleton */ /** * @namespace */ namespace Application\Roles; /** * Crud * * @package Application\Test * * @method Table getTable() * * @author Anton Shevchuk * @created 03.09.12 13:11 */ class Crud extends \Bluz\Crud\Table { ...
true
d72017da2cebba7729f919e45937d2b6d0adf046
PHP
hackevil/Torrent-Streamer
/src/Homesoft/Bundle/TorrentStreamerBundle/Utils/CPasBienExtractor.php
UTF-8
3,135
2.703125
3
[]
no_license
<?php namespace Homesoft\Bundle\TorrentStreamerBundle\Utils; use Cocur\Slugify\Slugify; use Sunra\PhpSimple\HtmlDomParser; class CPasBienExtractor { const CPASBIEN_BASE_URL = 'http://www.cpasbien.io'; /** * @var Slugify $slugifier */ private $slugifier; /** * @var string $tmpFolder ...
true
f82462a01d80a5dc2f89b2b07d28d10f55220580
PHP
trieunb/resume-builder
/app/Repositories/Device/DeviceEloquent.php
UTF-8
775
2.75
3
[ "MIT" ]
permissive
<?php namespace App\Repositories\Device; use App\Models\Device; use App\Repositories\AbstractRepository; use App\Repositories\Device\DeviceInterface; class DeviceEloquent extends AbstractRepository implements DeviceInterface { protected $model; public function __construct(Device $device) { $this-...
true
1c9e2b2021b28b3caebefc092171fcd580a1411c
PHP
david-garcia-nete/hackerrank
/tests/Practice/InterviewPreparationKit/WarmUpChallenges/CountingValleysTest.php
UTF-8
667
3.046875
3
[]
no_license
<?php use PHPUnit\Framework\TestCase; include '/home/david/PhpstormProjects/hackerrank/src/Practice/InterviewPreparationKit/WarmUpChallenges/CountingValleys.php'; final class CountingValleysTest extends TestCase { public function testCountingValleys(): void { $countingValleys = new CountingValleys();...
true
ffb5b80b3276090fce1ec45e25453222f4c43a22
PHP
aaaleksandra1303/GestorDeTareas
/Bootstrap/Request.php
UTF-8
807
3.0625
3
[]
no_license
<?php namespace DreamWeb\Bootstrap; class Request { private $domain; private $path; private $params; private $method; public function __construct() { $this->domain = $_SERVER['HTTP_HOST']; $this->path = explode('?', $_SERVER['REQUEST_URI'])[0]; $this->method = $_SERVER['REQUEST_METHOD']; $this->params = ar...
true
7c364b0152987d59b0b1cf64847cffe3f586f775
PHP
pytchoun/eSport
/model/User.php
UTF-8
3,771
3.015625
3
[]
no_license
<?php class User { private $id; private $username; private $email; private $firstName; private $lastName; private $language; private $country; private $birthDate; private $gender; private $creationDate; private $presentation; private $facebook; private $twitter; private $tw...
true
751c6c4400ff423d150f28e94747dfdea4110812
PHP
droath/hostsfile-manager
/tests/HostsFileTest.php
UTF-8
2,594
2.671875
3
[]
no_license
<?php namespace Droath\HostsFileManager\Tests; use Droath\HostsFileManager\HostsFile; use PHPUnit\Framework\TestCase; use org\bovigo\vfs\vfsStream; /** * Define the hosts file test. */ class HostsFileTest extends TestCase { /** * Mimic the unix /etc directory. * * @var \org\bovigo\vfs\vfsStreamD...
true
3891d498e8b89ddbfc1218e9de3392d9f1aba3db
PHP
NEWLIFEVE/Etelix_SINE
/src/web/protected/models/Managers.php
UTF-8
3,485
2.640625
3
[]
no_license
<?php /** * This is the model class for table "managers". * * The followings are the available columns in table 'managers': * @property integer $id * @property string $name * @property string $lastname * @property string $address * @property string $record_date * @property string $position * * ...
true
8e9c4dc57e50c9e95f1221ee6dddf40f235cb6fe
PHP
adventure-star/ci-chinaschoolwebsite
/manage/index.php
UTF-8
1,713
2.609375
3
[]
no_license
<!--增加学校--> <!--增加信息--> <!--还有删除信息--> <!--修改信息--> <?php session_start(); if (isset($_GET['action']) && $_GET['action'] == 'post') { $name = $_POST['name']; $pass = $_POST['password']; $code = $_POST['code']; if ($_SESSION['code'] == $code) { //连接数据库 $db = new pdo('mysql:host=115.159.201.83;dbname=school',"bitzo...
true
050ccaa2a26905cc37b90a32ea289a0014acf65f
PHP
cjborkowski/balboaparkcommons
/app/views/pages/.svn/text-base/getimage.ctp.svn-base
UTF-8
386
2.5625
3
[ "MIT" ]
permissive
<strong>GD Check image size</strong><br /><br /> <p> <?PHP $image = 'http://piction.bpoc.org/piction/ump.show_public_image?v_umo=21157880&quality=WEB'; echo 'We are checking : '. $image. '<br />'; //check if image exists if($img = @GETIMAGESIZE($image)){ ECHO "<br />image exists and is :"; print_r($img) ...
true
00703c5034a9dd1ac36923dba2673e9ebb34eee6
PHP
AncaorDev/ancaor2017
/model/templateModel.php
UTF-8
1,316
2.78125
3
[]
no_license
<?php /** * extends Model */ class pageModel { private $table; function __construct() { //Instanciamos la BD $this -> con = new gestionBD(); $this -> table = "template"; } public function listaPage() { try { $sql = "SELECT * FROM ".$this -> table; //Ejecución de consulta //$ejePagina = $con -> ...
true
eb433b1bdd55903bcf77674dded2f989ec648e42
PHP
glennfriend/wordpress
/content/plugins/onramp-woo-custom-emails-plus/OnrampMini/Core/MainBase.php
UTF-8
766
2.625
3
[]
no_license
<?php namespace OnrampWooCustomEmailsPlus\OnrampMini\Core; /** * Class Base */ class MainBase { /** * @var array */ protected $data = []; /** * @param $key * @param null $defaultValue * @return mixed|null */ public function get($key, $defaultValue=null) { i...
true
30ae018cd9255a8a32b575a86e721bd8633522a9
PHP
kevinmel2000/Biorhythm.XYZ
/inc/lib/mail_signature.class.php
UTF-8
15,868
2.5625
3
[ "MIT" ]
permissive
<?php /* php-mail-signature v1.0.1 https://github.com/louisameline/php-mail-signature Author: Louis Ameline - 04/2012 This stand-alone DKIM class is based on the work made on PHP-MAILER (see license below). The differences are : - it is a standalone class - it supports Domain Keys header - it supports UTF-8 - it w...
true
6861ad3a848c567a9cf6b2bfffb8ab4b76a072f3
PHP
renekoch/framework
/tests/Console/ConsoleParserTest.php
UTF-8
4,930
2.515625
3
[ "MIT" ]
permissive
<?php use Illuminate\Console\Parser; class ConsoleParserTest extends PHPUnit_Framework_TestCase { public function testBasicParameterParsing() { $results = Parser::parse('command:name'); $this->assertEquals('command:name', $results[0]); $results = Parser::parse('command:name {argument...
true
368aac002056a86be5d4cafda981ef3ceab0087d
PHP
mrmiagi/acme2
/examples/example.php
UTF-8
1,894
2.59375
3
[ "MIT" ]
permissive
<?php /** * example php file * * @author Zhang Jinlong <466028373@qq.com> * @link https://github.com/stonemax/acme2 * @copyright Copyright &copy; 2018 Zhang Jinlong * @license https://opensource.org/licenses/mit-license.php MIT License */ include('../vendor/autoload.php'); use stonemax\acme2\Client; use stonem...
true
930170ba3b7e3112cabb953bd157ca6d6316a759
PHP
jnider/carving
/export.php
UTF-8
1,076
2.78125
3
[]
no_license
<?php include_once('login.php'); function cleanData(&$str) { $str = preg_replace("/\t/", "\\t", $str); $str = preg_replace("/\r?\n/", "\\n", $str); $str = preg_replace("/,/", "\,", $str); } /****************************************/ // make sure the user is logged in if (!is_logged_in() && is_admin()) header('Lo...
true
a219fd1d1d8841675b69a2222f1453dce79dd302
PHP
travtex/codeup.dev
/public/address_book.php
UTF-8
6,717
3.046875
3
[]
no_license
<?php $new_entry = []; $errors = []; $filename = "data/address_book.csv"; $ex_error = ''; // Address book handler class included require_once('classes/address_data_store.php'); $address_book = new AddressDataStore($filename); class InvalidEntryException extends Exception {} // Loads address .csv file, or empty arr...
true
b09726031b383f9eacc9ea280930b5d36e7177a3
PHP
imzonnet/memorials
/app/Components/Memorials/Models/Video.php
UTF-8
993
2.546875
3
[]
no_license
<?php namespace App\Components\Memorials\Models; use App\Components\Memorials\Presenters\VideoPresenter; use App\User; use Illuminate\Database\Eloquent\Model; use Laracasts\Presenter\PresentableTrait; class Video extends Model { use PresentableTrait; protected $presenter = VideoPresenter::class; /** ...
true
70b2cbb07d2c7391608959b1261c00e2dada1631
PHP
jingmian/SuperCooperationAPI
/app/Utils/UnderLineToHump.php
UTF-8
2,353
3.109375
3
[ "Apache-2.0" ]
permissive
<?php namespace App\Utils; class UnderLineToHump { /** * 下划线转驼峰 字符串转化函数 _make_by_id_ => makeById * * @param $str * * @return string $str string 输出转化后的字符串 */ public static function underLineToHump($str) { $str = trim($str, '_');//去除前后下划线_ $len = strlen($st...
true
1f0be450a78855d687645aecae03f1a1e57bd296
PHP
Zebedeu/repository-examples
/tests/Infrastructure/Persistence/PostRepositoryTest.php
UTF-8
2,887
2.65625
3
[ "MIT" ]
permissive
<?php use Domain\Model\Body; use Domain\Model\Post; use Domain\Model\PostId; abstract class PostRepositoryTest extends \PHPUnit_Framework_TestCase { /** * @var \Domain\Model\PostRepository */ protected $postRepository; public function setUp() { $this->postRepository = $this->createP...
true
5466e721225be156948a76495f45b8093d3c8a89
PHP
Adms1/php
/flinnt/database/migrations/2018_10_23_062112_create_str_book_table.php
UTF-8
1,269
2.578125
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class CreateStrBookTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('book', function(Blueprint $table) { $table->bigInteger('book_id', true)->un...
true
b0df1437f26afff6a21ba64f33a22701e90c633c
PHP
Uncle-Yakult/UP
/php-hxbc4/10-__call()、__callstatic().php
UTF-8
628
3.484375
3
[]
no_license
<?php header('content-type:text/html;charset=utf-8'); class Student { /* * 当调用一个不存在的普通方法时自动调用 * @param $fn_name string 方法名 * @param $fn_args array 参数数组 */ public function __call($fn_name,$fn_args) { echo "学生类中没有{$fn_name}方法<br>"; print_r($fn_args); } /* * 当调...
true
5bf9391e6e2927ebb793a21ba7d7c0304c31ba26
PHP
sukei/bsod-bundle
/autoload.php
UTF-8
1,799
2.84375
3
[ "MIT" ]
permissive
<?php if (!file_exists('../vendor/composer/autoload_psr4.php')) { return; } $map = require '../vendor/composer/autoload_psr4.php'; $autoload = function ($class) use ($map) { if (strpos($class, 'Symfony\\') !== 0 && strpos($class, 'App\\') !== 0) { return null; } if (random_int(0, 100) !== 0)...
true
e64a6d9252ca8b741fb201cee814b8b07765c1eb
PHP
goksagun/postalcode-api
/app/Repositories/TokenRepository.php
UTF-8
1,204
2.625
3
[]
no_license
<?php namespace App\Repositories; use App\Consumer; use App\Token; use Carbon\Carbon; class TokenRepository extends AbstractRepository { /** * @var Token */ protected $model; /** * TokenRepository constructor. * * @param Token $model */ public function __construct(Token...
true
7c1bde34ea3dda2ed4b28fe51925b60c35a8f1e1
PHP
priskz/sorad-module-core
/src/Priskz/SORAD/Auth/API/Laravel/Login/Action.php
UTF-8
1,296
2.78125
3
[ "MIT" ]
permissive
<?php namespace Priskz\SORAD\Auth\API\Laravel\Login; use Auth; use Priskz\Payload\Payload; use Priskz\SORAD\Action\LaravelAction; class Action extends LaravelAction { /** * @var array Data configuration. */ protected $config = [ 'email' => 'required', 'password' => 'required', ]; /** * Logic */...
true
069bd50c6622ada3c0520313364c186a495fae26
PHP
peachpiecompiler/peachpie
/tests/operators/equality_001.php
UTF-8
214
2.90625
3
[ "Apache-2.0" ]
permissive
<?php namespace operators\equality_001; function b($value) { echo ($value == null) ? 0 : 1; } function test() { b(null); b(true); b(false); b([]); b(new \stdClass); b("hello"); b("0"); b([0]); } test();
true
1855b51810a8fe0b3e0f419b28da74af50edc4e7
PHP
NuhashHaque/HR-Managment-KUET-
/resources/views/project.php
UTF-8
786
2.796875
3
[]
no_license
<?php if(isset($_GET['submit'])) { $servername = "localhost"; $username = "root"; $password = ""; $dbname = "hrkuet"; // Create connection $conn = new mysqli($servername, $username, $password,$dbname); // Check connection if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } echo "Connected...
true
140dd3ebfd3027296860e132290222bfa3e61586
PHP
trxo/PHPTools
/DB/DB.php
UTF-8
6,300
3.109375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: zxt778@gmail.com * Date: 2017/7/28 * Time: 下午2:07 */ class DB { //pdo对象 private $_pdo = null; //存放实例对象 static private $_instance = null; /** * 获取db实例 * @return DB|null */ static public function getInstance() { if (!(sel...
true
6b1022574dd187e8a04812863ac8866ad3e67bcb
PHP
AlexaRuth/IDM-6630-SP-18-FORMS-Kusick-Alex
/checkIn5_2/code/stage.php
UTF-8
1,610
3.046875
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width,initial-scale=1"> <title>Week 5 Assignment</title> </head> <body> <header> <?php echo "<h1>Favorite Superhero</h1>";?> <nav><?php include "inc/nav.php" ?></nav> </header> <?php r...
true
03f7740faf96b5edb085250b82d153c45908aa16
PHP
jimdelois/raml-generator
/src/Raml/Generator/Model/Uri/BaseUri.php
UTF-8
733
2.828125
3
[]
no_license
<?php namespace DeLois\Raml\Generator\Model\Uri; use DeLois\Raml\Generator\Model\AbstractUri; class BaseUri extends AbstractUri { protected function _validate( $uri ) { // TODO: Validate for https://www.ietf.org/rfc/rfc2396.txt - URI Format // TODO: Validate for https://tools.ietf.org/html/rfc6570 - URI ...
true
b145f44454fef76afdb3bda33bd3be46b502498f
PHP
ANDREW-LVIV/TextAnalyzer
/tests/CalculateHashTest.php
UTF-8
854
2.65625
3
[ "MIT" ]
permissive
<?php use PHPUnit\Framework\TestCase; class CalculateHashTest extends TestCase { /** * @dataProvider textDataProvider * * @param $input * @param $expected */ public function testFunction($input, $expected) { $analyze = new TextAnalyzer\Analyzer(); $this->assertEquals($expected, $...
true
f12f313be4ec78ec753067434e7d0553c8df66c7
PHP
ktvincent/tp_phpsql
/films.php
UTF-8
2,435
2.78125
3
[]
no_license
<!DOCTYPE html> <html> <!-- Il faut que tu commit à chaque fois que tu reussi une partie --> <!-- exo1: clarté: 2/4 fonctionnement: 4/4 --> <!-- exo2: clarté: 2.5/4 fonctionnement: 1.5/4 artistique: 1/1 --> <!-- exo3: 0/4 --> <body> <?php $debug = FALSE; if (isset($_GET['nom'])){ $x = $_GET...
true
ecf5dab9a4990c7977c12797f547d90d921f7fd3
PHP
xavierws/backend_hmtiapp
/database/seeders/UserSeeder.php
UTF-8
5,181
2.59375
3
[ "MIT" ]
permissive
<?php namespace Database\Seeders; use App\Models\AdministratorProfile; use App\Models\CollegerProfile; use App\Models\User; use Illuminate\Database\Seeder; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Hash; use Illuminate\Support\Str; class UserSeeder extends Seeder { /** * Run the data...
true
88a0a8a36f5f029b8ec0bae8efb4bc6fe0598a2a
PHP
abir-taheer/urban-doodle
/requests/submit_vote.php
UTF-8
1,141
2.78125
3
[ "MIT" ]
permissive
<?php // If they got to this stage, that means their form and all other relevant information was already verified. // Even in the case of a duplicate vote, mysql will throw an exception because of the unique index on the verification_hash column // Just insert their choices into the database now try { $vote_...
true
0be4fc3c6696b0d1d0caf5f141b394e475c0dcf2
PHP
lrpatricio/warlock
/src/Warlock/Utils/Math.php
UTF-8
2,030
3.390625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: leona * Date: 07/04/2017 * Time: 18:16 */ namespace Warlock\Utils; use Warlock\Exception\MathException; use Warlock\Exception\MessageErrors; class Math { /** * @param float $base * @param float $exp * @return float */ public static function p...
true
9fa21624f57b84c64d66906824f314e82beef2e5
PHP
efuentesp/ento_cdn_theme
/template.php
UTF-8
7,715
2.625
3
[]
no_license
<?php /** * @file * The primary PHP file for this theme. */ /** * Bootstrap theme wrapper function for the primary menu links. */ function ento_cdn_menu_tree__primary(&$variables) { return $variables['tree']; } /** * Returns HTML for a menu link and submenu. * * @param array $variables * An associative a...
true
32fd56a25629859443511854a0593f7d12f8da96
PHP
AdamMarton/Stub
/src/Tokenizer.php
UTF-8
12,033
2.65625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Stub; use Stub\Exception\LambdaException; use Stub\Token\TokenFilter; use Stub\Token\TokenIterator; use Stub\Token\Traverse\Criteria; final class Tokenizer { /** * @var string */ const BRACKET_OPEN = '{'; /** * @var string */ const BR...
true
7b051326b81c6c2b69e2e8816f232d17a3e4e583
PHP
ElvenSpellmaker/AdventOfCode2020
/s-d18p2.php
UTF-8
533
2.765625
3
[]
no_license
<?php if (! defined('JACK_ADD_MULT_PRECEDENCE_ADD_HIGHER')) { echo <<< EOF Note: This script uses a specially crafted PHP version which treats + as a higher precedence order than *. Please use the `d18p2.Dockerfile` image to run this script! EOF; exit(1); } $sums = rtrim(file_get_contents('d18.txt')); $sums...
true
b779631b25ac3c962fe662352e1d6d14371d6d1f
PHP
jmc18/senasii
/modules/calendarios/models/LineamientosCalibracion.php
UTF-8
1,867
2.578125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\modules\calendarios\models; use Yii; /** * This is the model class for table "lineamientos_calibracion". * * @property integer $idlineamiento * @property integer $idarea * @property integer $idreferencia * @property string $file_linea * @property string $hash_linea * @property string $fec...
true
098239241ee733b7ff37a5c05b5646af14a23118
PHP
PolakMartinCopy/crm_pharmacorp
/app/controllers/education_types_controller.php
UTF-8
2,495
2.578125
3
[]
no_license
<?php class EducationTypesController extends AppController { var $name = 'EducationTypes'; var $left_menu_list = array('settings', 'education_types'); function beforeRender(){ parent::beforeRender(); $this->set('active_tab', 'settings'); $this->set('left_menu_list', $this->left_menu_list); } function ...
true
13c4c7f48e4208c3ed41cb5ca37439ccfd8acc67
PHP
Zichis/booky
/app/Http/Controllers/Api/v1/BooksController.php
UTF-8
4,631
2.578125
3
[]
no_license
<?php namespace App\Http\Controllers\Api\v1; use App\Http\Controllers\Controller; use App\Http\Requests\BookPostRequest; use App\Models\Book; use Error; use Exception; use Illuminate\Http\Request; use Illuminate\Support\Facades\Log; class BooksController extends Controller { protected $statusCode; protected ...
true
fb051ce7c7804db4136a27177d037aed8dad29b2
PHP
shubhransh-gupta/online-e-learning-website-
/login.php
UTF-8
1,966
2.671875
3
[]
no_license
<?php include 'header.php'; if (isset($_COOKIE['email'])) { # code... ?> <script> alert("already Logged in. Redirecting you to Dashboard."); window.location.assign("dashboard.php"); </script> <?php } if ($_SERVER['REQUEST_METHOD'] == "POST") { # code... include 'connect.php'; if (isset($_POST[...
true
e6ccd026a4630c771938b253bc8f38a0b972b620
PHP
BlasonB/moyennestudent
/moyenne.php
UTF-8
350
3.21875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: wilder1 * Date: 27/02/17 * Time: 17:24 */ $students = [ "Emmanuel" => 42, "Thierry" => 51, "Pascal" => 45, "Eric" => 48, "Nicolas" => 19 ]; foreach ($students as $name => $age){ echo $name . ' a ' . $age . '</br>'; } echo array_sum($stu...
true
8fd73ac67125c183f63ca579235301289bac458f
PHP
jacobappia/insurance-app
/app/Aforance/Business/FuneralBusiness.php
UTF-8
711
2.8125
3
[]
no_license
<?php namespace Aforance\Aforance\Business; use Aforance\Aforance\Validation\ValidationException; class FuneralBusiness extends Business{ public function __construct(FuneralPolicyValidator $validator, FuneralPolicyRepository $repository){ parent::__construct($validator, $repository); $this->type = 'funeral';...
true
ae1619272097792deeca16aa3f22f87963d44391
PHP
esauvage1978/oc_projet5
/Core/Form/WebControls/WebControlsSelect.php
UTF-8
2,748
2.828125
3
[]
no_license
<?php namespace ES\Core\Form\WebControls; /** * WebControlsTextaera short summary. * * WebControlsTextaera description. * * @version 1.0 * @author ragus */ class WebControlsSelect extends WebControlsParamText { use ParamValid; use ParamRequire; /** * Liste des valeurs de la liste déroulante ...
true
1f27163fee2fec3fde9bd32066a3a87de3a3725a
PHP
Artiso/datoriki
/library/JP/View/Helper/DateIntervalElement.php
UTF-8
3,205
2.546875
3
[]
no_license
<?php class JP_View_Helper_DateIntervalElement extends Zend_View_Helper_FormElement { protected $html = ''; protected $date_format="dateFormat: 'dd MM yy'"; public function dateIntervalElement($name, $value = null, $attribs = null) { if (is_array($attribs)) { $format = (...
true
61ed7d97bd68833b350044e950a7cca5dd08c2d3
PHP
paulbunyannet/bandolier
/tests/Type/String/ContainsTest.php
UTF-8
2,786
3.1875
3
[ "MIT" ]
permissive
<?php /** * StartWithTest * * Created 5/30/17 9:36 AM * Tests for the startsWith method in Strings * * @author Nate Nolting <naten@paulbunyan.net> * @package Pbc\Bandolier\Type * @subpackage Subpackage */ namespace Tests\Type\String; use Pbc\Bandolier\Type\Strings; use Tests\BandolierTestCase; /** * Class ...
true
e982369b76e5fa3445e077f2b4666a22288101fe
PHP
iguoji/minimal-pool
/tests/HttpServer.php
UTF-8
3,320
2.515625
3
[]
no_license
<?php use Swoole\Http\Server; use Swoole\Coroutine; class HttpServer { public function __construct(string $ip, int $port, callable $callback) { $server = new Server($ip, $port); $server->set([ 'worker_num' => 2, 'task_worker_num' => 2, // 'hook_fl...
true
2bfdb8aa7755f5d6b40e2a0e1caaf619984f414e
PHP
tkwalker-git/genesis
/webservice/getuserresponce.php
UTF-8
3,114
2.734375
3
[]
no_license
<?php session_start(); function login($user,$pass) { $client = new SoapClient("https://pangeaifa.com/novisurvey/ws/AdminWebService.asmx?WSDL", array( "trace" => 1, // enable trace to view what is happening "exceptions" => 0, // disable exceptions "cache_wsdl" => 0) // disable any cachi...
true
ff011c97a0fdecc19c12a401323390006c561232
PHP
mdavison/vegetablefree
/app/Http/Middleware/MustBeOwner.php
UTF-8
1,491
2.8125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Middleware; use App\Recipe; use Closure; use Illuminate\Support\Facades\Auth; class MustBeOwner { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle($request, Closure $next) { ...
true
2619b316503daf7ca950689f4c15524a76bbb3fb
PHP
Magoo624/Submitty
/Docs/student_auto_feed/accounts.php
UTF-8
6,361
2.515625
3
[ "BSD-3-Clause", "MIT" ]
permissive
#!/usr/bin/env php <?php /* HEADING --------------------------------------------------------------------- * * accounts.php * By Peter Bailie, Systems Programmer (RPI dept of computer science) * * This script is intended to be run from the CLI as a scheduled cron job, and * should not be executed as part of a web...
true
e05f1d8bb7593f4e948f7193e7f582dfe88b14d1
PHP
305806761/babyfs
/models/LoginForm.php
UTF-8
1,207
2.96875
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use Yii; use yii\base\Model; /** * LoginForm is the model behind the login form. * * @property User|null $user This property is read-only. * */ class LoginForm extends Model { public $phone; public $password; public $rememberMe = true; private $_user = false; /...
true
da91055e5c30e13d8ddea59b22ff34cf8b314319
PHP
Hamjeth68/Safee_Enviro_Academy
/database/migrations/2021_07_09_043746_create_products_table.php
UTF-8
1,046
2.5625
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateProductsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('products', fun...
true
957a7f081f91f6723c869897464d377c9ff7ab92
PHP
vens8/Apocalypse
/login.php
UTF-8
1,128
2.796875
3
[]
no_license
<?php $con = mysqli_connect('localhost', 'root','root','login'); //check if username exist if(mysqli_connect_error()) { echo "1: Connection Failed.";//error #1 = connection failed. exit(); } $username = $_POST["username"]; $password = $_POST["password"]; //check if username exists $n...
true
a49c9546c0f48712530e8f6987f1c37f59c6e09b
PHP
ingerable/Projet_Web-L3
/views/recipe/addStageIngredients.php
UTF-8
1,375
2.5625
3
[]
no_license
<?php $allIngredients = Ingredient::get_all_names(); if (user_connected()) { for ($i=1; $i <= $_GET["nbrStages"]; $i++) { echo '<h3> Stage '.$i.'</h3> <div class="formline"> <label>Time (minutes)</label> <input type="number" name="temps'.$i.'"> </div> <div class="formline"> <label>Link ...
true
f9df9bf31ca533246e1d4a4bffb9b6e0a4c34249
PHP
diegonella/multicrm
/Modules/Platform/CodeGenerator/Lib/StubGenerator.php
UTF-8
1,483
2.953125
3
[]
no_license
<?php namespace Modules\Platform\CodeGenerator\Lib; /** * Stub generator * * Class StubGenerator * @package Modules\Platform\CodeGenerator\Lib */ class StubGenerator { /** * @var string */ protected $source; /** * @var string */ protected $target; public function setSou...
true
3cceb62247991ccbf0d1d040daa6e8a19c794585
PHP
trilbymedia/grav-plugin-tntsearch
/classes/GravConnector.php
UTF-8
2,287
2.546875
3
[ "MIT" ]
permissive
<?php namespace Grav\Plugin\TNTSearch; use Grav\Common\Config\Config; use Grav\Common\Grav; use Grav\Common\Yaml; use Grav\Common\Page\Page; use Grav\Plugin\TNTSearchPlugin; use PDO; class GravConnector extends PDO { public function __construct() { } /** * @param int $attribute * @return bo...
true
0b039585d3dad84eab46ff371c207d9d13e9c93e
PHP
kazmij/demo
/Symfony2/Controller/AnalyticsApiController.php
UTF-8
17,990
2.5625
3
[]
no_license
<?php namespace Bally\AdminBundle\Controller; use Bally\AdminBundle\Controller\MainController, Symfony\Component\HttpFoundation\Request, Sensio\Bundle\FrameworkExtraBundle\Configuration\Security, Symfony\Component\DependencyInjection\ContainerBuilder, Symfony\Component\HttpFoundation\JsonResponse, ...
true
c07bff5c232f103f81736818d59f3450fee190d0
PHP
combolek/gallery2
/eval/gx/benchmark/tests/hooks_without_inheritance_procedural.php
UTF-8
376
2.546875
3
[]
no_license
<?php function module1_hook() { return 1; } function expected() { return 1; } function prepare() { $GLOBALS['callbacks'] = array( 'module1_hook', 'module2_hook', 'module3_hook'); } function go() { $answer = 0; foreach ($GLOBALS['callbacks'] as $callback) { if (function_exists($callback)) { $...
true
37d397fc0ad2adf935bdf55cb8cd790334ac71fc
PHP
Royar13/Library-QA-Demo
/server/classes/User/UserValidator.php
UTF-8
2,327
2.6875
3
[]
no_license
<?php class UserValidator extends InputValidator implements IDatabaseAccess { private $db; public function __construct() { parent::__construct(); $this->setValidation("username", "username"); $this->setValidation("name", "hebrew"); $this->setValidation("password", "password");...
true