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
abc7a7be7fd3ed5b0acec86f0be63f90d0b5f415
PHP
totini27/E-commerce-Site
/Project/Seller/Registration.php
UTF-8
5,734
2.875
3
[]
no_license
<?php $message = ''; $error = ''; $check = 1; $nameErr = $emailErr = $dobErr = $genderErr = $unameErr = $passErr = $cpassErr = ""; $name = $email = $uname = $dd = $mm = $yyyy = $gender = $password = $cpassword = ""; if ($_SERVER["REQUEST_METHOD"] == "POST") { if (empty($_POST["name"])) { $nameErr =...
true
4831866822f598249216be628baecb5049b1232f
PHP
hassankhan/config
/src/Parser/Yaml.php
UTF-8
1,939
3.015625
3
[ "MIT" ]
permissive
<?php namespace Noodlehaus\Parser; use Exception; use Symfony\Component\Yaml\Yaml as YamlParser; use Noodlehaus\Exception\ParseException; /** * YAML parser * * @package Config * @author Jesus A. Domingo <jesus.domingo@gmail.com> * @author Hassan Khan <contact@hassankhan.me> * @author Filip Š <pr...
true
23bbb36de1ec658efb2183072a76535684f9957b
PHP
andydeforest/flightjournal
/database/seeds/AirportTableSeeder.php
UTF-8
3,169
2.796875
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; use App\Airport; class AirportTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { // loads and parses the FAA airport data if(($handle = fopen(base_path().DIRECTORY_SEPARATOR."database".DIRE...
true
4ba9e9babe2b87fcee23f600909217624c950699
PHP
mdguit/examples
/test.php
UTF-8
4,283
2.671875
3
[]
no_license
<?php session_start(); include ("internship_db.php"); $output = ''; $output2 = ''; if(isset($_POST['search'])) { $searchq = $_POST['search']; $_GET['searchq'] = $searchq; } if(isset($_GET['searchq'])) {$searchq=$_GET['searchq']; $searchq = preg_replace("#[^0-9_a-z A-Z]#i","", $_G...
true
8cf5195135822dce29899c17b1331f7c6e9c8ef0
PHP
ricardoabdalla/BraspagPhpSdk-DemoApp
/examples/CartaoProtegidoDemo.php
UTF-8
2,739
2.640625
3
[ "MIT" ]
permissive
<?php require ("../vendor/autoload.php"); use BraspagSdk\CartaoProtegido\CartaoProtegidoClient; use BraspagSdk\CartaoProtegido\CartaoProtegidoClientOptions; use BraspagSdk\Common\Environment; use BraspagSdk\Common\Utilities; use BraspagSdk\Contracts\CartaoProtegido\GetCreditCardRequest; use BraspagSdk\Contracts\Carta...
true
036258a26f8e2a967fd572f0446073f9f63032e0
PHP
rjial/dts2019dummy
/perkenalan_8/11.php
UTF-8
1,422
3.375
3
[]
no_license
<?php echo "abs<br>"; echo abs(99) . "<br>"; echo abs(-99) . "<br>"; echo abs(-13.35234) . "<br>"; echo "ceil<br>"; echo ceil(3.4) . "<br>"; echo ceil(3.91) . "<br>"; echo ceil(-24.1212) . "<br>"; echo "floor<br/>"; echo floor(3.4) . "<br>"; echo floor(3.91) . "<br>"; echo floor(-24.1212) . "<br>"; echo "round<br/>"; e...
true
86e8b98cf1c0c76310e7578a724e7256f79c87af
PHP
Squalalah/exception-handler-bundle
/src/Exception/BadUuidException.php
UTF-8
706
2.546875
3
[]
no_license
<?php declare(strict_types=1); namespace Amontreuil\ExceptionHandlerBundle\Exception; use Symfony\Component\HttpFoundation\Request; use Throwable; /** * Génération d'une exception lorsque le format d'uuid envoyé par le client est incorrect. */ class BadUuidException extends ApiException { public function __co...
true
bbc54da7fd2c06910e4851e1bf7d6b48f0907333
PHP
stratus-meridian/apigee-kickstart-drupal8-drops
/vendor/consolidation/annotated-command/src/ExitCodeInterface.php
UTF-8
288
2.953125
3
[ "MIT" ]
permissive
<?php namespace Consolidation\AnnotatedCommand; /** * If an annotated command method encounters an error, then it * should either throw an exception, or return a result object * that implements ExitCodeInterface. */ interface ExitCodeInterface { public function getExitCode(); }
true
0b6518cf35d915fb50d9b00acd61405b51086b48
PHP
Makimoko/h3-algo-semaine-3
/correction-hiragana/exo-japonese.php
UTF-8
321
3.1875
3
[]
no_license
<?php $leTexte = file_get_contents('hiragana-kanji.txt'); //echo $leTexte; $index = 0; $longueurDeLaChaine = strlen($leTexte); // tant que je n'ai pas traité tous les caractères, je boucle while ($index < $longueurDeLaChaine) { echo decbin(ord($leTexte[$index])).PHP_EOL; $index = $index + 1; // $index++; }
true
d7dbbd8337cbc46a43db3cf82802fe2531732881
PHP
sidelsky/artbasel
/public_html/wp-content/plugins/admin-menu-editor/includes/access-test-runner.php
UTF-8
7,887
2.5625
3
[ "LicenseRef-scancode-other-copyleft", "Apache-2.0", "MIT" ]
permissive
<?php class ameAccessTestRunner implements ArrayAccess { const TEST_DATA_META_KEY = 'ws_ame_access_test_data'; /** * @var WPMenuEditor */ private $menuEditor; private $get = array(); private $test_menu = null; private $test_target_item = null; private $test_target_parent = null; private $test_relevant_r...
true
aa79b5361598f2218e6f4b9ccbd8305e854d316f
PHP
mohsalman-smk/mohsalman-smk.github.io
/application/controllers/public/Post_comments.php
UTF-8
4,133
2.515625
3
[]
no_license
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /** * SMK Nurul Jadid * @version v4.6.2 * @author Moh salman| https://instagram.com/mohsalman | mohsalman@gmail.com * @copyright (c) 2021-2022 * @link http://smknj.sch.id * @since Version v4.6.2 */ class Post_comments ext...
true
4759e099a102ca2dae3786ae06320d742df5590e
PHP
Toma4205/souris
/modele/ClasseBase.php
UTF-8
582
3.4375
3
[]
no_license
<?php class ClasseBase { /** * @access public * @param array $donnees * @return void */ public final function hydrate($donnees) { foreach ($donnees as $key => $value) { // On récupère le nom du setter correspondant à l'attribut. $method = 'set'.ucfirst($key); // Si le setter correspondant ex...
true
3de02872da7fc74f679fb5b1d634ff624f688182
PHP
shahmanish877/Khanepani-system
/modules/ownership_transfer/search.php
UTF-8
2,200
2.53125
3
[]
no_license
<?php include( '../../include/connect.php'); global $con; global $pageno; global $total_pages; if (isset($_GET['pageno'])) { $pageno = $_GET['pageno']; } else { $pageno = 1; } $no_of_records_per_page = 100; $offset = ($pageno-1) * $no_of_records_per_page; $total_pages_sql = "SELECT COUNT(*) FROM owner...
true
989e46a24721e6cfc660258f3d2edf131180c82a
PHP
RusonMaja/iLife
/application/controllers/base_controller.php
UTF-8
831
2.75
3
[]
no_license
<?php class Base_Controller extends CI_Controller{ public function __construct(){ parent::__construct(); $this->load->helper("url"); } // escape str for array or string public function escape_args( $args ) { if( $args != null ) { if(is_array($args))//args is an array { while( list($key, $value...
true
5c44d4c416aa33200d0ebb39d2d29e0c0b6083d6
PHP
wonlon/Design-patterns
/src/Behaviour/Mediator/SellerCar.php
UTF-8
1,166
2.796875
3
[]
no_license
<?php /** * 请完善PHP文件备注 * PHP VERSION 7 * * @category VNNOX-PHP * @package NovaStar\Vnnox * @author Administrator <wanglong@novastar.tech> * @license http://www.apache.org/licenses/LICENSE-2.0.html Apache Public License * @link http://www.vnnox.com/ * @time 2018-7-27 18:33 */ namespace DesignPatte...
true
9d68af305453435b065f3cc21d230df8944f98a4
PHP
eij/Proto
/core/Routing/Response/Standard.php
UTF-8
968
3.078125
3
[ "Unlicense" ]
permissive
<?php namespace Core\Routing; class ResponseStandard implements ResponseInterface { public $code = 200; public $codeText = 'OK'; public $content = 'text/html'; public $charset = 'UTF-8'; public $protocol = 'HTTP/1.1'; public $headers = []; public $body = []; public function __construct(array...
true
c7512b35427d3561ca5efe7fa9b5c4edc6887a6a
PHP
jariesdev/framework
/src/Database/Repository/OrderRepository.php
UTF-8
1,405
2.875
3
[]
no_license
<?php namespace AvoRed\Framework\Database\Repository; use AvoRed\Framework\Database\Models\Order; use AvoRed\Framework\Database\Contracts\OrderModelInterface; use Illuminate\Database\Eloquent\Collection; class OrderRepository implements OrderModelInterface { /** * Create Order Resource into a database ...
true
6a2764b3d3fdee15e5c9bdcbf23b7df35b3179d9
PHP
prjzhiraj/account-management-with-auth-laravel8
/database/seeds/create_user_accounts_data.php
UTF-8
2,005
2.515625
3
[]
no_license
<?php use Illuminate\Database\Seeder; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Hash; use Illuminate\Support\Str; class create_user_accounts_data extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $datas = [ ...
true
259ab8d67ee33090b13e14b6c2e55ac7073fe963
PHP
gerlovsky/sf4-reactjs-todo-app
/src/Todolist/Domain/Factory/TodoFactory.php
UTF-8
1,136
2.90625
3
[]
no_license
<?php namespace Todolist\Domain\Factory; use Todolist\Domain\Exception\TodoNameIsEmptyException; use Todolist\Domain\Repository\TodoRepositoryInterface; use Todolist\Domain\Service\TodoValidationService; use Todolist\Domain\Todo; use Todolist\Domain\TodoId; class TodoFactory { /** * @var \Todolist\Domain\R...
true
a27ba344725b15cdce30ee00bcc817e445f9f3cf
PHP
afmiguez/Software-Engineer
/WS2/class.Authorization.php
UTF-8
2,657
2.671875
3
[]
no_license
<?php /** * SE-Project - WS2\class.Authorization.php * * $Id$ * * This file is part of SE-Project. * * Automatically generated on 09.01.2015, 14:55:15 with ArgoUML PHP module * (last revised $Date: 2010-01-12 20:14:42 +0100 (Tue, 12 Jan 2010) $) * * @author firstname and lastname of author, <author@example....
true
6972b14af5bcf0dd5f3c578f0d6b573d5fe258e6
PHP
vasireddyb/Academic-Projects
/NSZ/nsz/login_tempi.php
UTF-8
1,078
2.625
3
[]
no_license
<?php ob_start(); session_start(); error_reporting(E_ALL ^ E_NOTICE); require('includes/functions.php'); require_once "json/JSON.php"; if (isset($_POST['username'])) { $username = $_POST['username']; } if (isset($_POST['password'])) { $password = eliteEncrypt($_POST['password']); } if(isset($_POST['username']) |...
true
72d24e11ab78919def2ccd4532993c886331f3bf
PHP
plamenpetrov/crm-client
/app/Services/Api/UsersAPI.php
UTF-8
2,191
2.875
3
[ "MIT" ]
permissive
<?php namespace App\Services\Api; use GuzzleHttp\Client; class UsersAPI extends BaseAPI { /** * Importing the Guzzle client with predefined domain name. * @param Client $client */ public function __construct() { parent::__construct(); } /** * Sending a GET request to get...
true
1131ca42071f694ad43a079f0850cac1c7dcf22b
PHP
aw-t-daigo/werewolves
/app/Services/PunishmentService.php
UTF-8
1,196
2.828125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: t_daigo * Date: 2018/08/07 * Time: 14:08 */ namespace App\Services; use App\Models\Player; /** * Class PunishmentService * @package App\Services */ class PunishmentService { protected $player; public function __construct(Player $player) { $this->p...
true
49df9dccb7e9d87c366664189542bbc2cbb356df
PHP
fadykstas/laravel-basket
/app/Repositories/Contracts/ItemRepositoryInterface.php
UTF-8
247
2.734375
3
[ "MIT" ]
permissive
<?php namespace App\Repositories\Contracts; use App\Entities\Item; interface ItemRepositoryInterface { public function save(Item $item): Item; public function getById(int $id): ?Item; public function deleteById(int $id): void; }
true
cac77fff7a94ba59fdcd53038217520eaced3f5b
PHP
DevGod6969/BedWars-1
/BedWarsArena/src/BW/arena/Arena.php
UTF-8
17,204
2.578125
3
[]
no_license
<?php namespace BW\arena; use BW\arena\player\WarsPlayer; use BW\async\Status; use BW\packet\ServerCommunicate; use BW\utils\Colors; use BW\Loader; use pocketmine\block\BlockFactory; use pocketmine\block\VanillaBlocks; use pocketmine\entity\effect\EffectInstance; use pocketmine\entity\effect\VanillaEffects;...
true
bf93fd0af29deec98089c05275389297f0a950b2
PHP
LordDeveloper/jeely
/src/Jeely/TL/Types/PollAnswer.php
UTF-8
1,197
2.65625
3
[ "Unlicense" ]
permissive
<?php namespace Jeely\TL\Types; use Jeely\LazyUpdates; /** * @class PollAnswer * @description This object represents an answer of a user in a non-anonymous poll. * * @method string getPollId() Unique poll identifier * @method User getUser() The user, who changed the answer to the poll * @method int[] getOptio...
true
28fbedf12bad5cc2e3a600284e2acece94142851
PHP
Hi-Folks/statistics
/src/Math.php
UTF-8
434
3.390625
3
[ "MIT" ]
permissive
<?php namespace HiFolks\Statistics; class Math { /** * Rounds value with the given precision, if the round is not null. */ public static function round(float $value, ?int $round): float { return is_null($round) ? $value : round($value, $round); } /** * Check if number is od...
true
8556fdcef71ec885950ed1b5d87987af5b23480d
PHP
bakaphp/baka
/src/Contracts/Http/Api/CrudBehaviorTrait.php
UTF-8
8,995
2.640625
3
[]
no_license
<?php declare(strict_types=1); namespace Baka\Contracts\Http\Api; use ArgumentCountError; use Baka\Database\Exception\ModelNotFoundException; use Baka\Http\Converter\RequestUriToSql; use Baka\Http\Exception\InternalServerErrorException; use Exception; use PDO; use PDOException; use Phalcon\Http\RequestInterface; use ...
true
339e3ebf88ab41db93bc7c432b368552044950b0
PHP
ulofsix/Bookstore
/results/search/search.php
UTF-8
2,509
2.625
3
[]
no_license
<?php $root_cust = "/bookstore"; $root_local = $_SERVER['DOCUMENT_ROOT'] . $root_cust; require_once($root_local . "/Connections/connSQL.php"); require_once($root_local . "/script/script.php"); ?> <?php // 搜尋 require_once($root_local . "/script/UL6_database_search.php"); /* 主類別表 */ require_once($root_local . "/script/...
true
4a7760e5b6683597f4da27b30a1bc19edfaced23
PHP
IgnVecro/KingsCraftHCF
/src/hcf/level/inventory/BeaconInventory.php
UTF-8
867
2.796875
3
[]
no_license
<?php namespace hcf\level\inventory; use hcf\level\tile\Beacon; use pocketmine\inventory\ContainerInventory; use pocketmine\math\Vector3; use pocketmine\network\mcpe\protocol\types\WindowTypes; class BeaconInventory extends ContainerInventory { /** * BeaconInventory constructor. * * @param Beacon...
true
47dde2350b944cda5621c6b6df9e0a0bdb5f4b6c
PHP
felixfbecker/php-language-server-protocol
/src/ReferenceClientCapabilities.php
UTF-8
353
2.546875
3
[ "ISC" ]
permissive
<?php namespace LanguageServerProtocol; class ReferenceClientCapabilities { /** * Whether references supports dynamic registration. * * @var bool|null */ public $dynamicRegistration; public function __construct(bool $dynamicRegistration = null) { $this->dynamicRegistration...
true
7398bf5c73b0ba5b5eeed5261a80e3cf5f9926ed
PHP
gogetssl/blesta-module
/components/modules/mg_go_get_ssl/Exception/GoGetSSLApiException.php
UTF-8
414
2.796875
3
[]
no_license
<?php namespace MgGoGetSsl\Exception; class GoGetSSLApiException extends \Exception { /** * GoGetSSLApiException constructor. * * @param string $message * @param int|null $code * @param \Exception|null $previous */ public function __construct($message, $code = nu...
true
6720c6f3b8173edd2a99d9c681f14e7b1fc62fee
PHP
drperalta/woofr
/app/Http/Controllers/ResetPasswordController.php
UTF-8
4,330
2.546875
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Mail\ResetPasswordRequest; use App\Mail\ResetPasswordSuccess; use App\User; use App\ResetPassword; use Carbon\Carbon; use Illuminate\Support\Facades\Hash; class ResetPasswordController extends Controller { /** * Create token password...
true
325dae6bf444258ead0aa2bc8a8232200e066754
PHP
wanglang0410/hyperf
/app/Utils/Log.php
UTF-8
425
2.65625
3
[]
no_license
<?php declare(strict_types=1); namespace App\Utils; use Hyperf\Logger\LoggerFactory; use Hyperf\Utils\ApplicationContext; class Log { public static function getInstance(string $name = 'app') { return ApplicationContext::getContainer()->get(LoggerFactory::class)->get($name); } public static ...
true
e3c02a72944c2dfde30bf0fee12159ae2f647d91
PHP
joefallon/phptime
/src/JoeFallon/PhpTime/Chronograph.php
UTF-8
1,628
3.609375
4
[ "MIT" ]
permissive
<?php namespace JoeFallon\PhpTime; class Chronograph { const MILLISEC_PER_SECOND = 1000.0; /** @var float */ private $_timeStartInMicroSeconds; /** @var float */ private $_timeStopInMicroSeconds; /** * This function starts the chronograph. */ public function start() { ...
true
e58be61698f9611446b5bc178846d593c7175b07
PHP
chrtkv/php-exercises
/factorailIter.php
UTF-8
195
3.703125
4
[]
no_license
<?php function factorial($x) { $counter = 1; $factorial = 1; do { $factorial *= $counter; $counter++; } while ($counter <= $x); return $factorial; } echo factorial($argv[1]); echo "\n";
true
8e8a1a0413684c5ed833f1fc85b0eb0d66cd72c5
PHP
hassaninter/php-imagick
/src/Imagick/Argument.php
UTF-8
609
3.203125
3
[ "MIT" ]
permissive
<?php /** * @package calcinai/php-imagick * @author Michael Calcinai <michael@calcin.ai> */ namespace Imagick; class Argument { public $name; public $value; public function __construct($name, $value = null) { $this->name = $name; $this->value = $value; } /** * @re...
true
b8136716875cf9d4fff10fff1b1ad8d778083c08
PHP
kurasimatohru/practice-04
/04-5.php
UTF-8
958
3.8125
4
[]
no_license
<?php // strip_tags //文字列から HTML および PHP タグを取り除く $string = '<a href="https://tech-boost.jp">tech boost</a>'; $result = strip_tags($string); echo $result; echo "\n"; //array_push //末尾にデータを追加する $data = array("1","2"); array_push($data,"3","4","5"); print_r ($data); echo "\n"; // array_merge //配列をマージ(結合)する $data = arr...
true
f936632db3a7a9694abdc0c88776b8dcdf7a6f12
PHP
mattsandersuk/.front-end-cli
/cli.php
UTF-8
5,883
3.0625
3
[]
no_license
<?php #!/usr/local/bin/php /** * * My WP CLI Toolset * * * php cli.php <partial_type> <partial_name> <options = --js/--scss/--php> * * NOTE : A folder must be created beforehand for the partial_type * * Creates files: * - SCSS * - partial PHP file * - JS file * */ /** * * Check whether CLI u...
true
6e4a3fdb4c3c600c1183340247c7ab240662e1f3
PHP
TheSpeedding/Shopping-Planner
/php/rc_structure.php
UTF-8
754
2.65625
3
[]
no_license
<?php abstract class return_code { public function print_json() { echo json_encode($this); } public abstract function getMessage(); } class success_code extends return_code { public $success; public $payload; function __construct($message, $cont...
true
d1c45c0e5885553535b45565a0cfdd4d916a994b
PHP
webjust/php
/oop/1 类和对象.php
UTF-8
351
3.484375
3
[]
no_license
<?php include './lib/funcs.php'; // PHP类和对象 // $c1 = new Car(); // 在定义类前面new也可以 // 定义1个汽车类 class Car { public $name = '汽车'; public function getName() { return $this->name; } } $c1 = new Car(); var_dump($c1); echo $c1->getName(); $c1->name = '火车'; var_dump($c1); echo $c1->getName();
true
254686bebe2f4788a830269e57f66c72a9ac2bbc
PHP
EpicnessTwo/Senpai
/Phergie/Driver/Streams.php
UTF-8
20,340
3.0625
3
[]
permissive
<?php /** * Phergie * * PHP version 5 * * LICENSE * * This source file is subject to the new BSD license that is bundled * with this package in the file LICENSE. * It is also available through the world-wide-web at this URL: * http://phergie.org/license * * @category Phergie * @package Phergie * @autho...
true
2ab8468750866b5b7fa0c9fb7efe8ec9a2856696
PHP
tikaraj21/brt_pms
/common/models/Option.php
UTF-8
5,026
2.765625
3
[ "BSD-3-Clause" ]
permissive
<?php /** * @link http://www.writesdown.com/ * @copyright Copyright (c) 2015 WritesDown * @license http://www.writesdown.com/license/ */ namespace common\models; use common\components\Json; use Yii; use yii\db\ActiveRecord; /** * This is the model class for table "{{%option}}". * * @property integer $i...
true
7f33e1bfbedeccce0f9288fd46e91c872ba7d557
PHP
RachelSeale/ourFitness
/sanitize.php
UTF-8
934
3.203125
3
[]
no_license
<?php //Taken from Chris Coyier - Sanitize Database Inputs - https://css-tricks.com/snippets/php/sanitize-database-inputs/ function cleanInput ($input) { $search = array( '@<script[^>]*?>.*?</script>@si', // Strip out javascript '@<[\/\!]*?[^<>]*?>@si', // Strip out HTML tags '@<style[^>]*?...
true
65539896c3e3a5e415cc701e979084fa0fbd8365
PHP
camlegleiter/Project-Pencl
/search.php
UTF-8
4,675
2.53125
3
[]
no_license
<?php //Must be on top of everything to function correctly include 'includes/headerbarFunctions.php'; ?> <?php //Include this inside the <head> tag to require user to be logged in to view the page. include 'includes/membersOnly.php'; if(!empty($_GET['p'])){ $pagenumber = $_GET['p']; } else{ $pagenumber...
true
ee8c9fc85e772d09de2baa5d396794d482c679e0
PHP
Dockdep/t_stroe
/artweb/artbox-ecommerce/models/ProductStock.php
UTF-8
3,727
2.953125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace artweb\artbox\ecommerce\models; use yii\db\ActiveRecord; /** * This is the model class for table "product_stock". * * @property integer $stock_id * @property integer $quantity * @property integer $product_variant_id * @propert...
true
e94fc9cbcfb05d8fb762b5c10bdf3277d3f804be
PHP
eileenery1992/recruiter
/contents/db.php
UTF-8
955
3.046875
3
[]
no_license
<?php $username = "mzhan"; $password = "wxz6813"; $hostname = "sql.mit.edu"; $database = "mzhan+recruiter"; //connection to the database $dbhandle = mysql_connect($hostname, $username, $password, $database) or die("Unable to connect to MySQL"); echo "Connected to MySQL<br>"; mysql_select_db($database) or die('Cou...
true
e907b451f3257c74fe03534a8036a3ea96e254b4
PHP
Allanbikundo/Busticketsystem
/register.php
UTF-8
3,064
2.546875
3
[]
no_license
<?php include "header.php"; if(isset($_POST['reg'])){ $fn = $_POST['fullname']; $em = $_POST['email']; $un = $_POST['username']; $pw = password_hash($_POST['password'], PASSWORD_DEFAULT); $hash = md5(rand(0,1000)); try { $stmt = $dbh->prepare("INSERT INTO user_login VALUES('',?,?,?,?,'Cl...
true
998b3764d7bd3790afcd8ce8385e820f1fd33625
PHP
jimenaluperdi/fabrimetal
/Desktop/Fabrimetal/negocio/Contacto.php
UTF-8
3,279
3.015625
3
[]
no_license
<?php require_once '../datos/DataContacto.php'; class Contacto { private $IDContacto; private $nombre; private $email; private $telefono; private $texto; private $respondido; private $respuesta; public function __construct($IDContacto = null, $nombre = null, $email = null, $telefono = null, $texto = nul...
true
9c558c87552fbc797937205fa0ef9913193b054b
PHP
carneirovorb/cetec-api
/app/Repositories/CourseCoordenatorRepository.php
UTF-8
812
2.828125
3
[]
no_license
<?php namespace App\Repositories; use App\CourseCoordenator; class CourseCoordenatorRepository implements Repository { public function create(array $data) { $courseCoordenator = new CourseCoordenator; $courseCoordenator->fill($data); CourseCoordenator::create($courseCoordenator); ...
true
cae0880cea12556bc08a27b8349c506459efcd2a
PHP
aaronadal/validator
/src/Subject/SubjectInterface.php
UTF-8
1,764
2.984375
3
[ "MIT" ]
permissive
<?php namespace Aaronadal\Validator\Subject; use Aaronadal\Validator\Validator\DataProvider\DataProviderInterface; use Aaronadal\Validator\Validator\DataSetter\DataSetterInterface; use Aaronadal\Validator\Validator\ErrorCollector\ErrorCollectorInterface; use Aaronadal\Validator\Validator\ValidableInterface; /** * ...
true
4f101653c9b39467685893ca3a0fdcfd80405bfc
PHP
volodymyr-nakvasiuk/shariki.ua
/application/models/Init/Market.php
UTF-8
747
2.71875
3
[]
no_license
<?php class Init_Market { protected $_catData = false; protected $_tovData = array(); public function __construct(){ } public function getCatData(){ if (!$this->_catdata) $this->_setCatData(); return $this->_catdata; } public function getTovData($catId){ if (!isset($this->_tovdata[$catId])) $this->_...
true
74e488e2d946e2f969a47833021a4924570db3c4
PHP
Aagya-Sharma/CollegeProject-PHP
/editprocess.php
UTF-8
902
2.609375
3
[]
no_license
<?php session_start(); include 'connection.php'; if (isset($_POST['title'],$_POST['abstract'],$_POST['description'],$_POST['name'],$_POST['added_date'])) { $title=mysqli_escape_string($conn,$_POST['title']); $abstract=mysqli_escape_string($conn,$_POST['abstract']); $description=mysqli_escape_string($conn,$_POST['d...
true
884cbb266d9abd69f75c4d9f03eecbc66471d6fc
PHP
wwb382899012/oil_new
/protected/services/AMQPService.php
UTF-8
13,250
2.859375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: youyi000 * Date: 2016/3/9 * Time: 15:23 * Describe: */ class AMQPService { private static $exchanges=array(); /** * 发布队列消息 * @param $exchange * @param $routeKey * @param $message * @return bool */ public static function publish(...
true
c277d9b9c6badaf49e940cf30cd8dfe2cd8355ec
PHP
pborreli/f43.me
/src/j0k3r/FeedBundle/Repository/FeedRepository.php
UTF-8
1,836
2.578125
3
[ "MIT" ]
permissive
<?php namespace j0k3r\FeedBundle\Repository; use Doctrine\ODM\MongoDB\DocumentRepository; /** * FeedRepository * * This class was generated by the Doctrine ORM. Add your own custom * repository methods below. */ class FeedRepository extends DocumentRepository { /** * Find feeds ordered by updated date ...
true
72129830ea0803235b602ed0fe4d91eccfa7f5cb
PHP
noumanbhai/php-basic-in-Enigma
/2data_type.php
UTF-8
1,056
3.15625
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <body> <h1>PHP Datatype</h1> <h4>1 String</h4> <?php $var="books"; $var2='pen'; // print($var); var_dump($var); echo "<br>"; ...
true
9f08db561324d0d6b8248fdb5cb446ed85048e66
PHP
awesome-academy/php_oe47_library
/database/seeders/AuthorsSeeder.php
UTF-8
578
2.71875
3
[]
no_license
<?php namespace Database\Seeders; use App\Models\Author; use Faker\Factory; use Illuminate\Database\Seeder; class AuthorsSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $faker = Factory::create(); for ($i = 0; $i < 10;...
true
78a8bee68d14fb0d0b95078ae05f8cec03484b67
PHP
lordmx/sample-data-provider
/src/dto/ResponseDto.php
UTF-8
1,118
3.078125
3
[]
no_license
<?php namespace app\infrastructure; /** * Class ResponseDto * * @author Ilya Kolesnikov <igkolesn@mts.ru> * @package app\infrastructure */ class ResponseDto implements ResponseInterface { /** * @var array */ private $result = []; /** * @var ErrorInterface|null */ private $err...
true
0979d20741ac4ef7047a73e526025623e81f0520
PHP
Craze-lee/APCOM2014
/models/login.php
UTF-8
1,834
2.640625
3
[]
no_license
<?php session_start(); if(isset($_POST['submit'])){ //check if the form has been submit require_once ('../models/connection.php'); require_once ('../includes/register.func.php'); //Validate the email address if(!empty($_POST['email'])){ $e=_check_email($_POST['email']); }else{ echo '<p><font color="red" ...
true
2a52e98e9e970bc8aabb3fd42b86a97ec738e022
PHP
amitalgo/GCR_5.1
/app/Services/Impl/LandingThemeServiceImpl.php
UTF-8
921
2.546875
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: Android * Date: 12/05/2018 * Time: 12:17 PM */ namespace App\Services\Impl; use App\Entities\LandingPage; use App\Entities\LandingTheme; use App\Services\LandingThemeService; use App\Repositories\LandingThemeRepo; class LandingThemeServiceImpl implements LandingThemeServ...
true
055d7b3476c3ff96ca44cd4aeda8c05edda5fe2b
PHP
ohtormen/pdw-dom
/dom-exemplo-002/index_caminho_classificacao.php
UTF-8
1,071
3.03125
3
[]
no_license
<?php // Criando variavel (objeto) do tipo DOMDocument $dom = new DOMDocument(); // Carregando xml externo $dom->load("fotos.xml"); // Buscando todos os elementos com nome de tag foto (<foto>) $listaTagFoto = $dom->getElementsByTagName("foto"); ?> <div> <h1>Fotos Cadastradas</h1> <table border='1'> ...
true
19ce7069d888e2f107f7b92a3052b0b8f4f7c827
PHP
Samorai/center-lex
/plugins/samorai/team/components/Person.php
UTF-8
755
2.515625
3
[ "MIT" ]
permissive
<?php namespace Samorai\Team\Components; use Cms\Classes\ComponentBase; class Person extends ComponentBase { public function componentDetails() { return [ 'name' => 'Член команды', 'description' => 'No description provided yet...' ]; } public function d...
true
24ba092ddf36b2e890c469b0765f3e34eca66011
PHP
bishopdz/CodeExamples
/PHP_Example/Assignment3/App/DI.php
UTF-8
827
3.1875
3
[]
no_license
<?php /** * -------------------------------------------------------------------------- * File name: DI.php * Project name: Assignment3 * -------------------------------------------------------------------------- * Author’s name and email: Daniel Bishop, bishopdz@etsu.edu * Cours...
true
9d6b3b509116abaede79a1868c312a88fd6d752a
PHP
lavalava/gamepub
/lib/Shorturl_api.php
UTF-8
2,004
2.75
3
[]
no_license
<?php /* * LShai - a distributed microblogging tool */ if (!defined('SHAISHAI')) { exit(1); } class ShortUrlApi { protected $service_url; protected $long_limit = 27; function __construct($service_url) { $this->service_url = $service_url; } function shorten($url) { if ($...
true
2cbe6df55c096d6c94b52ada6e708139700a57f0
PHP
Credico/symfony1
/lib/task/log/sfLogRotateTask.class.php
UTF-8
4,902
2.765625
3
[ "MIT", "BSD-3-Clause", "LGPL-2.0-or-later", "ICU", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /* * This file is part of the symfony package. * (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ /** * Rotates an application log files. * * @package ...
true
c58b8a13eac4fc93d5b387c98fc7e064964412d4
PHP
kunlun2015/gongying
/console/models/Posts.php
UTF-8
1,061
2.546875
3
[ "BSD-3-Clause" ]
permissive
<?php /** * * @authors Amos (szhcool1129@sina.com) * @date 2017-12-23 10:30:52 * @version $Id$ */ namespace console\models; use yii; use yii\base\Model; class Posts extends CommonModel { public function list() { $list = $this->db->createCommand('select id, fid, lid, author, title, abstract, ...
true
72f82163e244461f5c647d0c60bafdfb7b3b1b33
PHP
StijnJansen00/webshop
/class/PaymentLink.class.php
UTF-8
996
2.859375
3
[]
no_license
<?php class PaymentLinks { public function createPaymentLink($amount, $desc) { try { require "../php/initialize.php"; $paymentLink = $mollie->paymentLinks->create( [ "amount" => [ "currency" => "EUR", ...
true
68bff8269044f972ba5044878637dd7626088bf6
PHP
ddeutsch/recipeManager
/pages/createUser.php
UTF-8
1,297
3.15625
3
[]
no_license
<!-- This class creates a user by first checking to see if that username exists, then it creates the user in the database if allowed. If successful, it will log the user in and redirect to the home page. --> <?php session_start(); // Initiate session data log $mysqli = new mysqli($_SESSION['db_host'], $_S...
true
10d743c718f8e02f63bec24460a3e497a3152072
PHP
rohan1410/SuperChef-Recipe-Finder
/load.php
UTF-8
1,547
2.578125
3
[]
no_license
<?php echo "hi"; mysql_connect("localhost","root","pass@123"); mysql_select_db("superchef"); if(isset($_POST['submit'])){ //to run PHP script on submit if(!empty($_POST['ingredients_list'])){ // Loop to store and display values of individual checked checkbox. $query="SELECT a.name,a.image FROM ("; $numItems = count...
true
5af980a1cb9e570fc0b9283daabd3fde6e063a76
PHP
zhangmx/phpDocumentor2
/src/phpDocumentor/Parser/Exporter/Xml/FunctionExporter.php
UTF-8
2,271
2.78125
3
[ "MIT" ]
permissive
<?php /** * phpDocumentor * * PHP Version 5 * * @category phpDocumentor * @package Parser\Exporter\Xml * @author Mike van Riel <mike.vanriel@naenius.com> * @copyright 2010-2011 Mike van Riel / Naenius (http://www.naenius.com) * @license http://www.opensource.org/licenses/mit-license.php MIT * @link ...
true
c08bf639e9dffbf503c8cf2926f8b7d17bad86f9
PHP
ThomasBeauchataud/MultiDynamicMessenger
/src/TransportData.php
UTF-8
1,038
3.09375
3
[]
no_license
<?php namespace TBCD\Messenger\MultiDynamicTransport; /** * Provide information about transport handled by the multi-dynamic transport */ final class TransportData { /** * @var string The name of the transport */ private string $name; /** * @var string The dsn of the transport */ ...
true
c8d04ccaac474fb30387263dce97150955666252
PHP
eastwards/SpringOld
/MVC/Core/Action.php
UTF-8
7,943
2.609375
3
[]
no_license
<? /** +------------------------------------------------------------------------------ * Spring框架 控制器(MVC核心) +------------------------------------------------------------------------------ * @mobile 13183857698 * @qq 78252859 * @author void <lkf5_303@163.com> * @version 3.1.4 +-----------------------...
true
ac18fd2eb74234eff9abb5a7057d0c9d5fbc06c6
PHP
andersonOSilva/TCCPortalAutoCenter
/AreaPrestadora/models_views/servico_filial_class.php
UTF-8
1,297
2.65625
3
[]
no_license
<?php class servico_filial{ public $idFilialServico; public $idFilial; public $nomeFilial; public $idServico; public $nomeServico; public $descricao; public $id; function __construct(){ require_once('../cms/models/bd_class.php'); } // selecionar servicor e filiais pu...
true
1d0e7cce0a7ebea67dcbd9d20c2c7f2a6b931684
PHP
emon233/template
/app/Http/Controllers/Web/System/AccessRoleController.php
UTF-8
3,308
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Web\System; use DB; use Session; use App\Models\Access; use App\Models\AccessRole; use App\Models\Role; use App\Http\Controllers\WebController as BaseController; use Illuminate\Http\Request; class AccessRoleController extends BaseController { /** * Create the controller ...
true
765ac559349b8dee44e3456a39d0e76d843e0221
PHP
thiphan94/Web
/redacteur_compte.php
UTF-8
3,180
2.515625
3
[]
no_license
<html> <head> <h2>Mes informations et categories</h2> </head> </html> <?php session_start(); $mysqli = new mysqli('localhost','zphannu00','gezi3uf9','zfl2-zphannu00'); if ($mysqli->connect_errno) { // Affichage d'un message d'erreur echo "Error: Problème de connexion à la BDD \n"; // Arrêt du chargement ...
true
95e581ac4384e684d9a8d2798adfd086190c297e
PHP
deizepi/phalcon-oauth2
/app/models/OauthDominio.php
UTF-8
1,223
2.65625
3
[]
no_license
<?php class OauthDominio extends \Phalcon\Mvc\Model { /** * * @var string */ public $identificador; /** * * @var string */ public $dominio; /** * Initialize method for model. */ public function initialize() { $this->setSource("oauth_dominio...
true
4db902f798d750b0638feba1c72f94d5287e51dd
PHP
pomle/pomle
/framework/class/Manager/Dataset/_Common.class.php
UTF-8
708
2.8125
3
[]
no_license
<? namespace Manager\Dataset; abstract class _Common { public static function getCount() { $query = "SELECT COUNT(*) FROM " . static::TABLE; $count = (int)\DB::queryAndFetchOne($query); return $count; } public static function getProperties($ID) { throw New \Exception(__METHOD__ . ' is dangerous and has b...
true
b26845794ba2dba3169c9dc8beb632f2a6b2ea55
PHP
thenotsoft/database
/src/Driver/Postgres/PostgresHandler.php
UTF-8
5,093
2.78125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /** * Spiral Framework. * * @license MIT * @author Anton Titov (Wolfy-J) */ declare(strict_types=1); namespace Spiral\Database\Driver\Postgres; use Spiral\Database\Driver\Handler; use Spiral\Database\Driver\Postgres\Schema\PostgresColumn; use Spiral\Database\Driver\Postgres\Schema\PostgresTable; use...
true
397f4998158919557e257760d61a0c13e04478be
PHP
FrankSchuurman68/Office365
/incl/class.functions.php
UTF-8
50,558
2.8125
3
[]
no_license
<?php // De phpmailer class voor e-mail invoegen. Aangepast voor de sender/from e-mail adrs require_once(__DIR__ .'/class.phpmailer.php'); // Incidenteel gebruikt bij wachtwoord. Uitfaseren. require_once(__DIR__ .'/FormValidator.php'); //de naam van de Class class MimkSite { // variabelen voor gebruik binnen de...
true
ef1a705d314d070470f752f178c4ea78f84ab267
PHP
bradwilder/style-guide
/app/assets/php/Tests/DataClasses/UploadTest.php
UTF-8
6,278
2.640625
3
[ "Apache-2.0", "MIT" ]
permissive
<?php use PHPUnit\Framework\TestCase; if (!defined('__SITE_PATH')) { $site_path = realpath(__DIR__ . '/../../../..'); define ('__SITE_PATH', $site_path); define ('__ASSETS_PATH', __SITE_PATH . '/assets'); } require_once __ASSETS_PATH . '/php/DB/Db.php'; require_once __ASSETS_PATH . '/php/DB/DataClassBase.php'; re...
true
7de94f093007fc7cb2180d45eea89e1786cbfe03
PHP
AleHHHG/phalcon_ecommerce
/apps/admin/forms/UsuarioForm.php
UTF-8
511
2.515625
3
[]
no_license
<?php namespace Ecommerce\Admin\Forms; use Phalcon\Forms\Form; use Phalcon\Forms\Element\Text; class UsuarioForm extends Form { /** * Initialize the products form */ public function initialize($entity = null, $options = array()) { $titulo = new Text("nome"); $titulo->setAt...
true
9976cb83a60f6505e2265528ca47b1259e887960
PHP
avshatalov48/bitrix24-core-corp
/modules/crm/lib/Dto/Caster/BoolCaster.php
UTF-8
281
2.625
3
[]
no_license
<?php namespace Bitrix\Crm\Dto\Caster; use Bitrix\Crm\Dto\Caster; final class BoolCaster extends Caster { protected function castSingleValue($value) { if (is_string($value)) { return in_array(mb_strtoupper($value), ['TRUE', 'Y'], true); } return (bool)$value; } }
true
23d18155628889c41b90bc925d6aecefb78f334d
PHP
PR4M/ct-scheduler
/tests/unit/EventTest.php
UTF-8
845
2.546875
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: Pramana * Date: 3/12/2018 * Time: 6:36 PM */ use Carbon\Carbon; use CT\Scheduler\Event; class EventTest extends \PHPUnit\Framework\TestCase { /** @test */ public function event_has_default_cron_expression() { $event = $this->getMockForAbstractClass(Eve...
true
59293d13e768b85c7610a4e0b137d8be0e95cfb6
PHP
forwardblock-io/protocol-php
/src/KeyPair/WIF.php
UTF-8
2,268
2.796875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace ForwardBlock\Protocol\KeyPair; use Comely\DataTypes\Buffer\Base16; use Comely\DataTypes\DataTypes; use FurqanSiddiqui\Base58\Base58Check; use FurqanSiddiqui\Base58\Result\Base58Encoded; /** * Class WIF * @package ForwardBlock\Protocol\KeyPair */ class WIF { /** * ...
true
fa9617a46c3d574cdadfedae7e3a8d049fd05ea8
PHP
seyuf/magento-actions-sample
/magento/dev/tests/integration/framework/Magento/TestFramework/Helper/Memory.php
UTF-8
5,987
3.125
3
[ "MIT", "OSL-3.0", "LicenseRef-scancode-unknown-license-reference", "AFL-2.1", "AFL-3.0" ]
permissive
<?php /** * Helper for determining system memory usage * * Uses OS tools to provide accurate information about factual memory consumption. * The PHP standard functions may return incorrect information because the process itself may have leaks. * * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt ...
true
d47552c0e2d2c4319d546e03a418d0bcf1222074
PHP
kaisar-mistrisolutions/rosemary
/app/Http/Controllers/Backend/UserController.php
UTF-8
5,378
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Backend; use App\Http\Controllers\Controller; use Illuminate\Support\Facades\Gate; use Illuminate\Http\Request; use Illuminate\Support\Facades\Validator; use Illuminate\Support\Str; use Illuminate\Support\Facades\Hash; use Illuminate\Support\Facades\Storage; use App\Models\User; ...
true
b90f7e79847c398c80a060bcca41e650a50173d8
PHP
mgl2809/Proyecto
/final/dao/programa2.php
UTF-8
1,712
2.96875
3
[]
no_license
<?php class programa2 { private $id_programa; private $nombre_programa; private $descripcion; private $caracteristicas; private $categoria; private $monto; private $estatus; private $convocatoria; public function __construct(){ } public function setdescripcion($descripc...
true
4fa7d197f84518bb1edb1b32086f8d6000e1f595
PHP
daniloamsilva/Curso-de-Desenvolvimento-Web-BackEnd
/Aulas PHP7/Aula 327 - Funções para manipular números.php
UTF-8
725
3.71875
4
[]
no_license
<!DOCTYPE html> <html lang="pt-br"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> </head> <body> <?php $numero = 7.5; # Arredonda o núme...
true
e334e35e375f2725d5584e26ff51384779089f48
PHP
danielyv/IUT_PHP_Project
/controller/ControllerUtilisateur.php
UTF-8
7,651
2.625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: yves * Date: 24/11/17 * Time: 10:35 */ require_once ( File ::build_path ( [ "model" , "ModelUtilisateur.php" ] ) ); require_once ( File ::build_path ( [ "model" , "ModelCommande.php" ] ) ); class ControllerUtilisateur { protected static $listMax=10; protect...
true
dc1b322ac849ac177464aeb278b13f4d50149608
PHP
liip/LiipHyphenatorBundle
/Tests/Functional/HyphenatorTest.php
UTF-8
2,688
2.875
3
[]
no_license
<?php /* * This file is part of the LiipHyphenatorBundle * * (c) Liip AG * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace Liip\HyphenatorBundle\Tests\Functional; class HyphenatorTest extends WebTestCase { public function testFilte...
true
ed7cc824a29e80ac001008b591973f6eb6197254
PHP
janis-ozo/home-assignments-projectPlaner
/app/Core/Calculate.php
UTF-8
1,694
3.1875
3
[]
no_license
<?php namespace App\Core; class Calculate { public static function endDate(string $startDate, array $points ,int $humanPower,array $bankHolidays): string { $durationInDays = (round(array_sum($points)/$humanPower))/8; $durationWithHolidays = Calculate::durationWithHolidays($startDate,$duration...
true
3ed2197967d312b86329e2d02e1cd6334f25e777
PHP
Gravitations/cdek
/web/connect.php
UTF-8
553
2.6875
3
[]
no_license
<!doctype html> <html lang="ru"> <head> <title>SQL</title> </head> <body> <?php $DB_SERVER="localhost"; $DB_USER_READER="root"; $DB_PASS_READER="Element11+"; $DB_NAME="tutorial"; $DB_PORT="8080"; /// Порт базы $con = mysqli_connect($DB_SERVER, $DB_USER_READER, $DB_PASS_READER, $DB_NAME, $DB_PORT); mysqli_set_charse...
true
97e5638bfab48852d9cfc20db9a821ac052c4523
PHP
YuraMyasnikov/laravel_first
/app/Services/ConvertCurrency.php
UTF-8
837
2.6875
3
[ "MIT" ]
permissive
<?php namespace App\Services; use App\Models\Currency; class ConvertCurrency { public static function convert ($sum, $originalCurrencyCode = "RUB", $targetCurrencyCode = null ) { $originalCurrencyCode = Currency::currencyCode($originalCurrencyCode)->first(); ...
true
d0d4e68778b3c0d029e34255a14e803a31c40ae6
PHP
Majkl578/doctrine-annotations
/lib/Doctrine/Annotations/Parser/Ast/Annotation.php
UTF-8
726
2.765625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Doctrine\Annotations\Parser\Ast; use Doctrine\Annotations\Parser\Visitor\Visitor; final class Annotation implements ValuableNode { /** @var Reference */ private $name; /** @var Parameters */ private $parameters; public function __construct(Reference $na...
true
055bc262684defda554363c79ab1925433b7cad8
PHP
resthinkphp/Echarts-PHP
/src/Doc/IDE/Timeline/Label.php
UTF-8
1,235
2.625
3
[ "MIT" ]
permissive
<?php /** * Created by Hisune EchartsPHP AutoGenerate. * @author: Hisune <hi@hisune.com> */ namespace Hisune\EchartsPHP\Doc\IDE\Timeline; class Label { /** * @var string|int Configurations: * * auto: * Automatic layout. * * left: * Put it along th...
true
b5bce55539b79a748acd536a4efca215a8ee84e9
PHP
knelse/Sphere_K2
/www/util/misc.php
UTF-8
289
2.8125
3
[]
no_license
<?php function getGet($param , $default = 0) { return array_key_exists($param, $_GET ) ? $_GET[$param] : $default; } function enquote($item) { $result = "\"".str_replace('"', '\\"', $item)."\""; return str_replace(array(chr(13).chr(10),chr(13),chr(10)), '\n', $result ); } ?>
true
abad60b12707215b8c07238d97a8c15f0d94dd16
PHP
adifong/Cocos2d-js
/baccarat/src/database/historygame.php
UTF-8
22,340
2.546875
3
[]
no_license
<?php $con = mysqli_connect('localhost','root','','baccarat'); if (!$con) { die('Could not connect: ' . mysqli_error($con)); } session_start(); $id = session_id(); $flag = $_REQUEST["flag"]; //flag = 1 insert and get the header id //flag = 2 insert chips // flag = 4 save all game ...
true
42ef6229e9afafe7f16cbcfebf1b54893a37ad0f
PHP
107coder/107LAB
/task/tianyunzhao/fourth/php/del.php
UTF-8
1,046
2.984375
3
[]
no_license
<?php header('Content-Type: text/html;charset=UTF-8'); ?> <html> <head> <meta charset="UTF-8"> <title>我的留言板</title> </head> <body> <center> <h2>我的留言版</h2> <a href="index.php">添加留言</a> <a href="show.php">查看留言</a> <hr width="90%"/> <h3> 删除留言</h3> <?php //执行留言信息...
true
4b24dd0fae5de0e3acea728889dd553dad421b2d
PHP
sg-first/gist.md
/gist/huffman.php/huffman.php
UTF-8
3,369
3.515625
4
[]
no_license
<?php /** * huffmanTreeNode类 */ class huffmanTreeNode{ private $weight; private $flag; private $parent,$lchild,$rchild; function __construct($weight=NULL){ $this->weight=$weight; $this->flag=0; $this->parent=$this->lchild=$this->rchild=NULL; } function getFlag...
true
6d7d94c8e34ac92dcb7bd5d7e03fff424b76b16c
PHP
itsanr-oris/laravel-extension
/src/Console/Command/MakeRepository.php
UTF-8
4,107
2.59375
3
[ "MIT" ]
permissive
<?php namespace Foris\LaExtension\Console\Command; use Foris\LaExtension\Repositories\CrudRepository; use Foris\LaExtension\Repositories\Repository; use Illuminate\Console\GeneratorCommand; use Symfony\Component\Console\Input\InputOption; /** * Class for make repository commands. */ class MakeRepository extends Ge...
true