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
b56ba537686fec5957cefe76957e2bda0f58787e
PHP
alaashehadeh/getyourguide
/app/Http/Services/validatorService.php
UTF-8
1,332
2.78125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: alaa.shehadeh * Date: 5/13/2018 * Time: 9:13 PM */ namespace App\Http\Services; use DateTime; class validatorService { public function isValidTimeStamp($timestamp) { //check if T exist and remove it $number = substr_count($timestamp, 'T'); ...
true
5bffe8d35b5e84c0c0bbfdf7b9672fda10b6236e
PHP
wilsoncreator/OracleACSIProject
/Entity/vol.php
UTF-8
4,118
2.90625
3
[]
no_license
<?php class vol { var $id; var $prix; var $depart; var $arrivee; var $nbplaces; var $nbcorresp; var $compagnie; var $destination; var $aerodepart; var $aeroarrive; /** * vol constructor. * @param $prix * @param $depart * @param $arrivee * @param $n...
true
1a0e14e3623333dc9e7241ee4bd1b6da86a4ec82
PHP
jeevan-lal/Core-PHP-Framework
/src/Libraries/Session.php
UTF-8
2,179
3.140625
3
[]
no_license
<?php namespace Ctechhindi\CorePhpFramework\Libraries; class Session { public function __construct() { if (!isset($_SESSION)) { // Starting session session_start(); } } /** * Set Data in the Session */ public function set(array $session_data) { ...
true
13db08ec4ce6af89af81cb1c37034fcc2b950cb8
PHP
ArthurBocquiny/prf
/src/Entity/News.php
UTF-8
1,123
2.640625
3
[]
no_license
<?php namespace App\Entity; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Validator\Constraints as Assert; /** * @ORM\Entity(repositoryClass="App\Repository\NewsRepository") */ class News { /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /...
true
8f73ea065254fd5bcac0cc8e236f5a8e3204fe4b
PHP
JesusMorote/individual
/XAMPP/htdocs/scrapstock/inc/conexion7.php
UTF-8
1,277
2.65625
3
[]
no_license
<?php //MODIFICAR LOS PARÁMETROS DE SERVIDOR, USUARIO, CONTRASEÑA Y BASE DE DATOS CUANDO TRASLADE LA APLICACIÓN DESDE EL XAMP HASTA EL SERVIDOR REAL //OJO, EN EL SERVIDOR REAL ESTÁ INSTALADO PHP5 Y NO PHP7 // Por tanto la línea $bd=NewADOConnection("mysqli"); // debo sustituirla por $bd=NewADOConnection("mysql"); /...
true
ca6d7b3da07f4d3b02e5a905ff0812d5f4797fd1
PHP
thuyhang1602/ungdungtuvan
/vms/GetCommentPage.php
UTF-8
518
2.640625
3
[]
no_license
<?php namespace vms; use api\v1\UserAPI; class GetCommentPage { public $rows; public $user; public $data; public function __construct($params = null) { $this->rows = UserAPI::getComment(); } // Khai báo template và truyền bản thân vào template cha public function render() {...
true
f241d136a72e15ef20468b5232135c005cc9de60
PHP
akartis-dev/CodeSignalArcade
/Through the Fog/absoluteValuesSumMinimization.php
UTF-8
423
3.640625
4
[]
no_license
<?php /** * Through the Fog * absoluteValuesSumMinimization */ function absoluteValuesSumMinimization($a) { $all_sum = []; for($i = 0; $i < count($a); $i++){ $sum = 0; for($j = 0; $j < count($a); $j++){ $sum += abs($a[$j] - $a[$i]); } $all_sum[$a[$i]] = $sum; ...
true
22b267c766fae38c9da4dc63a075f096c89203ff
PHP
oyym123/wph_h5
/app/Models/Collection.php
UTF-8
2,132
2.53125
3
[]
no_license
<?php namespace App\Models; use Illuminate\Support\Facades\DB; class Collection extends Common { protected $table = 'collection'; const STATUS_COLLECTION_YES = 1; const STATUS_COLLECTION_NO = 0; /** * 可以被批量赋值的属性. * * @var array */ protected $fillable = [ 'user_id', ...
true
c3c073435de1af6d10aba95dd7335d9396bbe2b3
PHP
asmundstavdahl/kkt-ryof
/src/Controller/Route.php
UTF-8
274
2.546875
3
[]
no_license
<?php namespace Controller; use Attribute; use Twig; #[Attribute(Attribute::TARGET_METHOD)] class Route { public function __construct( public string $path, public string $name, ) { error_log("Route instanciated {$path},{$name}"); } }
true
fc5f2f637f5dfacddc72bb1a41a116c5b0347ec5
PHP
LastCallMedia/terminus-safe-deploy
/src/Slack.php
UTF-8
1,957
2.921875
3
[]
no_license
<?php namespace LastCall\TerminusSafeDeploy; use SlackPhp\BlockKit\Surfaces\Message; /** * Simple and lightweight interface to the Slack API. */ class Slack { const MAX_RETRIES = 5; const RETRY_INTERVAL = 3; /** * Send message to Slack channel. */ public static function send(Message $m...
true
dd583f385a86b0ced843e6ac3d6f7149e5f9238f
PHP
phpcrazy/wpa15
/oophone/wpa15/providers/DatabaseProvider.php
UTF-8
729
2.984375
3
[]
no_license
<?php class DB { private static $_instance = null; private $conn; private $query; public function __construct() { try { $this->conn = new PDO( 'mysql:host=localhost;dbname=wpa15contact', 'root', 'mmlinks'); echo "Connection OK!"; } catch (PDOException $e) { echo "Something wrong. Database...
true
e76ede155a0e4b9e3b196d3ecbee9ad075d783cc
PHP
shipko/fhq-mini
/api/protected/models/Users.php
UTF-8
2,206
2.625
3
[]
no_license
<?php class users extends CActiveRecord { public $date_create; public $date_last_signup; public static function model($classname=__CLASS__) { return parent::model($classname); } public function rules() { return array( array('rating', 'numerical', 'integerOnly'=>true), array('nick','le...
true
e82d3b834f9080385f058102ac1d7045707b57b9
PHP
urimeba/PHP_Course
/facebook/editar.php
UTF-8
1,475
2.84375
3
[]
no_license
<?php session_start(); $usuario = $_SESSION['user']; if (isset($_SESSION['id'])) { #Mandamos llamar el archivo de CONEXION require_once('conex.php'); $funciones = new Funciones(); $conexion = $funciones->conectar(); #Si el usuario edita if (isset($_POST['btnActualizar'])) { $publicacion=$_POST['nueva'...
true
aee78d75e0b1b135104250f228a4d8eafd7415d6
PHP
mustafauysal/graphjs-wp-plugin
/src/ShortcodeRenderer.php
UTF-8
916
2.796875
3
[ "MIT" ]
permissive
<?php namespace Graphjs; class ShortcodeRenderer { private $element; public function __construct($element) { $this->element = $element; } function render($atts = [], $content = null, $tag = '') { // normalize attribute keys, lowercase $atts = array_change_key_case((ar...
true
b4fafad2b00345f7718d6f2d8e4f4964470be05d
PHP
mmizanrhn/Calculator-With-PHP
/array.php
UTF-8
684
3.9375
4
[]
no_license
<!-- PHP 5 Multidimensional Arrays --> <?php $cars = array( array("BMW","22","17"), array("TOYOTA","12","27"), array("PREMIO","18","15"), array("LEXUS","12","17") ); echo $cars[0][0]." Stocks ".$cars[0][1]." Sold ".$cars[0][2]."<br>"; echo $cars[1][0]." Stocks ".$cars[1][1]." Sold ".$cars[1][2]."<br>";...
true
46a7e0a1145dee029c93b60bc4b23d5aec163c77
PHP
rnstt/teddy-online-judge
/trunk/serverside/c_sesion.php
UTF-8
1,464
2.578125
3
[]
no_license
<?php class c_sesion extends c_controller { public static function isLoggedIn($request = null) { return isset($_SESSION['userID']); } public static function usuarioActual() { $user = null; if (self::isLoggedIn()) { $result = c_usuario::getByNickOrEmail(array( "nick" => $_SESSION['userID'])); if (S...
true
46a4da0014b3eeb4dd18b2ec1f94c55c20636320
PHP
apssouza22/tmc
/admin/libs/salve_admin/ContainerDi.php
UTF-8
547
2.796875
3
[]
no_license
<?php class ContainerDi { public static function getDb() { $db_porta = CMS_DB_PORTA ? CMS_DB_PORTA : '3306'; $conn = new PDO("mysql:host=".CMS_DB_HOST."; dbname=".CMS_DB_NOME."; port={$db_porta}", CMS_DB_USUARIO, CMS_DB_SENHA); $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); return $conn; ...
true
2f1115423bb6b46a1fe2e032a02271776757282d
PHP
manuelcarbajalleon/therapyManager
/database/seeds/ChildrenTableSeeder.php
UTF-8
1,964
2.53125
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; class ChildrenTableSeeder extends Seeder { public function run() { // Uncomment the below to wipe the table clean before populating DB::table('children')->delete(); $children = array( ['id' => 1, 'lastname' => 'Morocho', 'firstname' =...
true
c18cef9408d33a32bfa60ae927aa86687a3617dc
PHP
fastsitephp/playground
/scripts/app-quick-site-create.php
UTF-8
2,357
2.921875
3
[ "MIT" ]
permissive
<?php // This file can be used as [Playground\app\app.php] for quick testing and // confirming that the server/computer supports needed features. It allows // sites to be created quickly over and over by refreshing the page, however // it doesn't provide a UI to edit the files. // -------------------------------------...
true
926268fe6d3df19001bf5c5187fe63494a7501ef
PHP
kirillavdeevwsr/experiment
/app/Listeners/CreateBannersEventListener.php
UTF-8
847
2.515625
3
[]
no_license
<?php namespace App\Listeners; use App\Events\CreateBannersEvent; use Illuminate\Queue\InteractsWithQueue; use Illuminate\Contracts\Queue\ShouldQueue; use App\Models\History; class CreateBannersEventListener implements ShouldQueue { /** * Create the event listener. * * @return void */ pub...
true
793015eb63f472d73872c4a1e3aae4abb8b4cae4
PHP
duyanh1992/PHP_ZendVN
/PHP_STRING/second/ucwords.php
UTF-8
69
2.640625
3
[]
no_license
<?php $str = 'pham duy anh'; echo ucwords($str); //Pham Duy Anh ?>
true
e701f6f3daef43754356483e9900cd5e4097dcfd
PHP
IsaiasOrtiz/UTECLab
/controllers/ingreso.php
UTF-8
5,471
2.609375
3
[]
no_license
<?php class IngresoController { #Inicio de Sesión public function ingresoController() { if(isset($_POST["usuarioIngreso"])){ if(preg_match('/^[a-zA-Z0-9]+$/', $_POST["usuarioIngreso"]) && preg_match('/^[a-zA-Z0-9]+$/', $_POST["passIngreso"])) { $datosController = array("usua...
true
52b15037b238de6e92665af627c0ec579a4009a6
PHP
AdrienFd/CAASis
/PHP_Server/app/Http/Controllers/Auth/ResetPasswordController.php
UTF-8
2,873
2.65625
3
[]
no_license
<?php namespace App\Http\Controllers\Auth; use App\User; use App\Http\Controllers\Controller; use Illuminate\Foundation\Auth\ResetsPasswords; use Illuminate\Http\request; use DB; class ResetPasswordController extends Controller { use ResetsPasswords; protected $redirectTo = '/home'; public function __...
true
1b56fffc4127389996e5390bf42b197ce3810e0e
PHP
rodger0531/foobook-mirror
/database/setup_database.php
UTF-8
9,700
2.9375
3
[]
no_license
<?php require_once '../functions/server/db_config.php'; // Parameters used in creating a new PDO database connection object. $dsn = DSN; $user = DB_USER; $password = DB_PASSWORD; // Create an instance of the PDO connection to the database. try { $con = new PDO($dsn, $user, $password); } catch (PDOException $e) { e...
true
f5d85ff27567750669fa6e228772f77adad59748
PHP
hiroiku/paiza-tester
/php/src/main.php
UTF-8
163
2.984375
3
[ "MIT" ]
permissive
<?php $line = trim(fgets(STDIN)); $numbers = explode(' ', $line); $numbers = array_map('intval', $numbers); $result = array_sum($numbers); echo $result.PHP_EOL;
true
996ac5555f329fd0163fd44df7e4eebada56a275
PHP
ekosinfa/MichalR
/suma_foreach.php
UTF-8
363
2.6875
3
[]
no_license
<?php $licznik = 0; $liczby = array( '2', '3', '45', '6', '8', '9', '2', '5', '8', '2', '6', '1' ); $i = 0; foreach($liczby as $liczba){ $licznik = $licznik+$liczby[$i]; $i++; } ...
true
bb4bed3062a1569c5b057e19b5463d078f2e07ac
PHP
Ali478/PHP_INVOICE_GENERATOR
/ajax/add.php
UTF-8
1,051
2.890625
3
[]
no_license
<?php $q = intval($_GET['q']); $servername = "localhost"; $username = "root1"; $password = "rootroot_1"; $dbname = "Invoice_app"; try { $conn = new PDO("mysql:host=$servername; dbname=$dbname", $username, $password); $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $sql = "SELECT * ...
true
e25d92164c385ac92c74e47e36ec42e2a46e0092
PHP
i2bc/mlva
/codeigniter/application/helpers/matrix_helper.php
UTF-8
4,291
3.25
3
[]
no_license
<?php /** * Calculate the Hamming distance bewteen two strains * @param $strainReference the reference strain (an associtive array of its markers we need to consider) * @param $firstStrain the first strain (array) * @param $secondStrain the second strain */ function hammingDistance($strainReference, $firstStrain,...
true
1b1f8f220fd32b8482bf6bbf1a7a6a0d4257f4cf
PHP
b4us/aliyun-openapi-php-sdk
/aliyun-php-sdk-ess/Ess/Request/V20140828/DescribeAlarmsRequest.php
UTF-8
3,365
2.5625
3
[ "Apache-2.0" ]
permissive
<?php namespace Ess\Request\V20140828; /** * @deprecated Please use https://github.com/aliyun/openapi-sdk-php * * Request of DescribeAlarms * * @method string getIsEnable() * @method string getMetricType() * @method string getResourceOwnerAccount() * @method string getScalingGroupId() * @method string getPag...
true
0eaf55cb6c4107f1e8b2cec585f8d2797910d1e7
PHP
klaput/zadanie
/zwierzeinterface.php
UTF-8
539
2.59375
3
[]
no_license
<?php interface ZwierzeInterface{ public function getGatunek(); public function setGatunek($gatunek); public function getPlec(); public function setPlec($plec); public function getWydawanyDzwiek(); public function setWydawanyDzwiek($wydawanyDzwiek); public function getUmaszczenie(); public function setUmaszcz...
true
287d392f0a04c473df986dd7ef9ea349e8252600
PHP
ahmadfauzirahman99/simrs-pendaftaran
/models/UnitPhysicExam.php
UTF-8
1,624
2.515625
3
[]
no_license
<?php namespace app\models; use Yii; /** * This is the model class for table "unit_physic_exam". * * @property int $unit_id * @property int $seq * @property int|null $exam_id * * @property Exam $exam * @property Unit $unit */ class UnitPhysicExam extends \yii\db\ActiveRecord { /** * {@inheritdoc} ...
true
af5fada6729be3cd7847dc5d4585764fab4c91e8
PHP
Roberta2020/sp3
/createEntity.php
UTF-8
331
2.90625
3
[]
no_license
<?php use Models\Page; require_once "./bootstrap.php"; $newPageName = $argv[1]; $newPageContent = "<h1>Welcome to the CMS!</h1>"; $page = new Page(); $page->setName($newPageName); $page->setContent($newPageContent); $entityManager->persist($page); $entityManager->flush(); echo "Created Page with ID " . $page->getI...
true
d8c0b5981c8b0e09400382e2f2f1c8e0901d51a5
PHP
marcopessota/contabilidade
/ws/ajax/get_business.php
UTF-8
734
2.671875
3
[]
no_license
<?php set_time_limit(0); $collection = "business"; $tabela = "business"; // $time_start = microtime(true); // $time_end = microtime(true); // $execution_time = ($time_end - $time_start)/60; // echo '<b>Total Execution Time:</b> '.$execution_time.' Mins'; echo json_encode(get_business()); function get_business(...
true
59dbb23da91671155161207f1fe51c7ebec73452
PHP
gumartinm/mobiads
/apps/companyfront/modules/category/actions/actions.class.php
UTF-8
5,580
2.59375
3
[]
no_license
<?php /** * category actions. * * @package mobiads * @subpackage category * @author Gustavo Martin Morcuende * @version */ class categoryActions extends sfActions { public function executeIndex(sfWebRequest $request) { $userId = $this->getUser()->getGuardUser()->getId(); //Get company owned ...
true
7ed92895bc8bf56dea1e7de48d6874cb8dbf610c
PHP
valdineireis/php-hmvc-example
/modules/loja/controllers/PedidosController.php
UTF-8
1,029
2.515625
3
[]
no_license
<?php class PedidosController extends Controller { private $vendaRepository; private $produtoRepository; public function __construct() { parent::__construct(); $this->vendaRepository = new VendaRepository(); $this->produtoRepository = new ProdutoRepository(); } public function index() { $dados = arr...
true
7a5a16e6ad00d6569993dbb92a2abe01081ff6fe
PHP
varctor/Projet-web
/site/pages/accueil.php
UTF-8
2,261
2.546875
3
[]
no_license
<h2>Bienvenue</h2> <?php ?> <section id="pseudo" class="up txtBlue"> <?php print $_SESSION['pseudo'];?> </section> <h2>Rechercher de nouveaux contacts</h2> <?php $mg = new utilisateurDB($db); $liste_deroulante = $mg->getnewcontact(); $erreur=""; $mg1 = new statutDB($db); $liste_deroulante2 = $mg1->cherche(); $m...
true
f65d30ba1ee54f4353181bcfc4d48692d48b3cde
PHP
jcdeck/Hello-world
/test_input2.php
UTF-8
1,245
2.65625
3
[]
no_license
<?php $servername = "localhost"; $username = "root"; $password = "root"; $dbname = "myDB"; // Create connection $conn = new mysqli($servername, $username, $password, $dbname); // Check connection if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } $valueYr =$_POST['selectYear']; $value...
true
4c9a697bf351060c1460bba682306171b3a3add8
PHP
PDoakORNL/CDash
/tests/test_viewdynamicanalysisfile.php
UTF-8
3,046
2.640625
3
[]
no_license
<?php // // After including cdash_test_case.php, subsequent require_once calls are // relative to the top of the CDash source tree // require_once dirname(__FILE__) . '/cdash_test_case.php'; class ViewDynamicAnalysisFileTestCase extends KWWebTestCase { public function __construct() { parent::__construc...
true
3a3ea756f92e7a6297b1cbd11a8e9f775ae2104b
PHP
joannafrdz/site_villes
/admin/ajout.php
UTF-8
3,936
2.96875
3
[]
no_license
<?php require('../inc_connexion.php'); ?> <?php require('inc_identification_user.php'); ?> <?php $pays_id = []; // Récupération variables if (isset($_POST['submit_form'])) { $ville_nom = $_POST['ville_nom']; $ville_texte = $_POST['ville_texte']; $pays_id = $_POST['pays_id']; // vérification contenu...
true
d2ef9b09581881d30247a6074c29f1cd68cd7c25
PHP
Buthers/Mozzaic
/Server/server.class.php
UTF-8
615
2.703125
3
[ "Apache-2.0" ]
permissive
<?php class Server { static function Start() { shell_exec("nohup ./samp03svr &"); OnServerStarted(); } static function Stop() { shell_exec("killall samp03svr"); OnServerStoped(); } static function GetInfo($info) { global $serverInfo; if(array_key_exists($info,...
true
76a4ff024bae148237ef81ed7d6cf829116303c2
PHP
theshaunwalker/job_code_example
/Subscriptions/Commands/Products/UpdateSubscriptionProductInfoHandler.php
UTF-8
897
2.640625
3
[]
no_license
<?php namespace Ntech\Subscriptions\Commands\Products; use Ntech\CommandBus\CommandHandler; use Ntech\Subscriptions\Products\SubscriptionProduct; use NtechUtility\EventSource\Repository\EventSourcingRepositoryFactoryInterface; class UpdateSubscriptionProductInfoHandler extends CommandHandler { private $subscripti...
true
8494540544a4a12bf934ce82085b85b346ffc750
PHP
MrTiung/gene
/RawDataHandler.php
UTF-8
10,953
2.828125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: zpldsg * Date: 2017/8/10 * Time: 13:52 */ require_once 'snp.php'; class RawDataHandler { private $data; private $filename; private $gender; function __construct($fp,$filename="default",$format='default') { if($format=='default'){ ...
true
d47a6124429ffd2c3307d5e981b41463333d709e
PHP
edison23/old-konachart
/app/Http/Controllers/SeasonController.php
UTF-8
1,738
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Season; use Requests; use Redirect; use App\Http\Controllers\Controller; use Str; /** * use Illuminate\Http\Request; * no idea why it's not working with this (throws Non-static method * Illuminate\Http\Request::all() should not be called statically) */ use Request;...
true
fa58cb9ce0822552ef7e829bf8fc8005c08a3428
PHP
lzx121201/miles_blog
/classes/User.php
UTF-8
3,975
2.78125
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. */ /** * Description of User * * @author lizhengxing */ require_once './constants.php'; require_once 'Post.php'; class User { ...
true
a1f5b0ad4344a68b0029a28175ea79e84fe823cd
PHP
wecontinue/php1009
/admin.shop.com/Application/Common/Common/function.php
UTF-8
1,720
3.0625
3
[]
no_license
<?php function show_model_error($model){ $errors = $model->getError(); $errorMsg = '<ul>'; if (is_array($errors)) { foreach ($errors as $error) {//错误结果有多条 $errorMsg .= "<li>$error</li>"; } } else {//错误结果仅一条 $errorMsg .= "<li>$errors<...
true
219b08b221c64a1310c41ec197a9f51c6434a085
PHP
joesweeny/back-to-win-api
/src/app/Boundary/UserPurse/Command/GetUserPurseCommand.php
UTF-8
399
2.734375
3
[]
no_license
<?php namespace BackToWin\Boundary\UserPurse\Command; use BackToWin\Framework\Uuid\Uuid; use Chief\Command; class GetUserPurseCommand implements Command { /** * @var Uuid */ private $userId; public function __construct(string $userId) { $this->userId = new Uuid($userId); } ...
true
824d0f5747082c00f2a2e4fe1d8b370ff55f635c
PHP
datagutten/wordfeud
/analyze.php
UTF-8
2,123
2.609375
3
[]
no_license
<?Php function analyze($imagefile) { if(!file_exists($imagefile)) die("Finner ikke $imagefile\n"); require 'information/information.php'; require 'prepare.php'; require 'information/debug.php'; $information=new information($imagefile); $prepare=new prepare($information->folder); //$prepare->debug=true; ...
true
0f0ad0c91d42d05a753bc8f4bfe15358731707c4
PHP
Medmed14/ACTUwwweb
/appli_ECF_blogActu/admin/editer.php
UTF-8
4,157
2.625
3
[]
no_license
<?php require_once('security.inc'); require_once('../connect.php'); $error = ""; $sql= "SELECT id, nom FROM categories"; $res = mysqli_query($conn, $sql); if(isset($_GET['id']) && $_GET['id'] <= 1000){ $id = htmlspecialchars(addslashes($_GET['id'])); $sql = "SELECT * FROM articles a I...
true
6e2c489d3749394f8bfea74fe7d4a37aad537992
PHP
event-engine/php-code-generator-cartridge-event-engine
/src/NodeVisitor/ClassConstant.php
UTF-8
2,042
2.6875
3
[ "MIT" ]
permissive
<?php /** * @see https://github.com/event-engine/php-code-generator-cartridge-event-engine for the canonical source repository * @copyright https://github.com/event-engine/php-code-generator-cartridge-event-engine/blob/master/COPYRIGHT.md * @license https://github.com/event-engine/php-code-generator-cartrid...
true
ba70607f1caa25d4da166f09918a0667cda35b99
PHP
alejandroartess/prog_NEW
/programacion/php/PRACTICANDO/practicando.php
UTF-8
730
3.984375
4
[]
no_license
<?php //Ejemplo con while $i="0"; $a="0"; $b="0"; while ($i <= 10) { echo "$i"; $i=$i+2; } //Esto es un salto de linea echo "<br>"; //Ejemplo con do-while do { echo "$a"; $a=$a+2; } while ($a <= 10); //Esto es un salto de linea echo "<br>"; //Ejemplo con for for ($b=0; $b <= 10; $b=$b+2) { ec...
true
9130915bca2a88c4c15160e0b5ee5cdf66e34c90
PHP
mrusan007/blue_test
/src/Entity/Category.php
UTF-8
1,658
2.578125
3
[]
no_license
<?php namespace App\Entity; use App\Repository\CategoryRepository; use Doctrine\ORM\Mapping as ORM; use Doctrine\Common\Collections\ArrayCollection; use Gedmo\Mapping\Annotation as Gedmo; use App\Entity\CategoryTranslation; /** * @ORM\Entity(repositoryClass=CategoryRepository::class) */ class Category { /** ...
true
025c22b7fdf4d5b1b41c3d5721643d44267a4f04
PHP
Puspa34/day04
/login.php
UTF-8
1,405
2.546875
3
[]
no_license
<?php session_start(); include 'functions.php'; $connection=db_connect(); if(isset($_POST['submit'])){ $user =$_POST['username']; // $pass = $_POST['password']; $pass = md5($_POST['password']); // print_r($pass);exit; $query="SELECT * FROM members WHERE username='$user' and password='$pass'"; $result = mysqli_qu...
true
704e043cf852d4201c47c73ba43273e1300e3fbd
PHP
oleksii-dmytrenko/web_classes
/Cache/FileCache.php
UTF-8
1,304
2.90625
3
[]
no_license
<?php namespace Cache; class FileCache implements CacheInterface { private $key, $value, $ttl; private $extension = '.txt'; private $defaultTtl = 2592000; // month private $cacheFilePath ; public function __construct(array $CONFIG) { $this->cacheFilePath = $CONFIG['environment']; } public ...
true
821a51960f9be4cee9c37e8e47987c55131a3628
PHP
DipendraDLS/PHP_WIth_PDO
/Practice_PDO_04/insert_data_using_PDO_method.php
UTF-8
1,060
3.453125
3
[]
no_license
<?php //create connection $dsn= "mysql:host=localhost; dbname=test_db;"; //dsn means data source name. $db_name="root"; $db_password= ""; //handling the exception try{ $conn = new PDO($dsn, $db_name, $db_password); $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); // $conn vaney object ma yeuta...
true
c323f3486159563db31b83b05bd3d1a8cf97b56a
PHP
fortifi/php-api
/src/Payloads/CalculateRefundPayload.php
UTF-8
3,184
2.875
3
[]
no_license
<?php namespace Fortifi\Api\V1\Payloads; use Packaged\Helpers\Strings; class CalculateRefundPayload implements \JsonSerializable { /** * Subscription Refund Type * @required */ protected $_subscriptionRefundType; /** * Timestamp of when to calculate the refund from. Rounded down to the start of the...
true
56370e637e70f45cafcac964433f93839e097ea9
PHP
magnocarvalho/CSM-Seknow
/Application/front-end/PHP/SeknowSE-front/model/Company.php
UTF-8
1,367
3.09375
3
[ "Apache-2.0" ]
permissive
<?php class Company implements JsonSerializable { private $idCompany; private $name; private $phone; private $foundationDate; private $description; private $owner; private $employees; function getIdCompany() { return $this->idCompany; } function getName() { re...
true
4237d6b61961316b9afcfe7982ae807cf2bcaacd
PHP
aspirinkg/php-function
/index.php
UTF-8
803
3.0625
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <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> <ol> <?php function say_hi($name, $day){ switch($day){...
true
b80f223093407ff9214676eafeedec6ad15b4cae
PHP
kwkm/MkLiveStatusClient
/src/Kwkm/MkLiveStatusClient/LqlObject.php
UTF-8
5,296
3.09375
3
[ "MIT" ]
permissive
<?php namespace Kwkm\MkLiveStatusClient; use \InvalidArgumentException; /** * Class Lql Object * * @package Kwkm\MkLiveStatusClient * @author Takehiro Kawakami <take@kwkm.org> * @license MIT */ class LqlObject { /** * Lql query * @var array */ protected $queries; /** * Acquisiti...
true
d14446662f0edcb03786d92479c7d350649e1c00
PHP
bonetaurelie/nalo
/src/AppBundle/DataFixtures/Model/SpeciesFixture.php
UTF-8
741
2.515625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: nicolas * Date: 30/08/16 * Time: 16:23 */ namespace AppBundle\DataFixtures\Model; use AppBundle\Entity\Species; class SpeciesFixture extends Species { /** * Set frenchName * * @param string $frenchName * * @return Species */ public function setFrenchName($...
true
0c4860a0ed3576c4c7432b9c96701d0fc8230e49
PHP
yousuf97/Turban-new
/application/models/Model_gallery.php
UTF-8
1,182
2.609375
3
[ "MIT" ]
permissive
<?php class Model_gallery extends CI_Model { public function create($data= array()) { if($data) { $insert = $this->db->insert('images', $data); return ($insert == true) ? true : false; } } public function getGalleryData($id = null) { if($id) { $sql = "SELECT * FROM images WHERE ...
true
254308adfe50499f3f5cfd1498a1ef72742e8190
PHP
matchboxdesigngroup/snifter
/wp-content/themes/snifter-child/classes/widgets/class-sn-stub-widget.php
UTF-8
3,679
2.890625
3
[ "MIT" ]
permissive
<?php /** * Example Stub widget */ class SN_Stub_Widget extends WP_Widget { /** * Widget form fields for administrator. * * @var array */ private $fields = array( 'title' => 'Title (optional)', ); /** * Class constructor */ function __construct() { $widget_ops = array( 'classname' => 'wi...
true
69efd1b7973df25381a94333c5918444cafc826c
PHP
grey1808/invent_10.26.1.100
/modules/admin/controllers/CharacteristicsDinamController1.php
UTF-8
3,513
2.671875
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\modules\admin\controllers; use Yii; use app\modules\admin\models\Characteristics; use app\modules\admin\models\CharacteristicsComposition; use yii\base\Model; use yii\filters\AccessControl; use yii\web\Controller; use yii\web\NotFoundHttpException; class CharacteristicsDinamController1 extends A...
true
3862e6a85d15e1f9db4412774db48d3035cb6c16
PHP
AnaSharps/vmock-task1
/PHP/register.php
UTF-8
3,098
2.875
3
[]
no_license
<?php include "config.php"; session_start(); if (isset($_SESSION['username'])) { header("Location: welcome.php"); } if (isset($_POST['submit'])) { $username = $_POST['username']; if ($_POST['password'] === $_POST['confirm-password']) { $password = password_hash($_POST['password...
true
ec6530656a337a141f58d8631fe7cf47a56014f8
PHP
adesukmaa/Arkademy_AdeSukma
/nomor2.php
UTF-8
1,612
2.90625
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <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>Soal 2</title> </head> <body> <h1>Login</h1> <table> <tr> <form method="post"> ...
true
6dd34f57aded248d2e497448fc9162931af74e73
PHP
Abhiroop/EveryCook
/protected/controllers/SynchController.php
UTF-8
3,624
2.53125
3
[]
no_license
<?php class SynchController extends Controller { function getCreate($dbcon, $table){ $datareader = $dbcon->createCommand("SHOW CREATE TABLE `$table`")->query(); $datareader->setFetchMode(PDO::FETCH_NUM); $row = $datareader->read(); if (count($row)>0) { return str_replace("\n", "", $row[1]) . ";\n"; } r...
true
b664ddd91f1127d71efd135599e31ab245a7c999
PHP
azf786/betisierphp-master
/include/pages/supprimerPersonne.inc.php
UTF-8
1,003
2.75
3
[]
no_license
<?php $pdo=new Mypdo(); $perManager = new PersonneManager($pdo); $personnes=$perManager->getAllPersonne(); $page=10; ?> <div class="sstitre"><h2>Supprimer des personnes enregistrées</h2></div> <table> <tr><th>Numéro</th><th>Nom</th><th>Prenom</th><th>Supprimer</th></tr> <?php //$produits est un tableau d'...
true
a91a18ee20fce2fc74c2d79e69fe76446152a8f7
PHP
proposal-page/sdk-php
/src/Exception/ValidationException.php
UTF-8
411
2.59375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace ProposalPage\Sdk\Exception; use Exception; final class ValidationException extends Exception { private $errors = []; public function __construct(array $errors) { parent::__construct('The given data failed to pass validation.'); $this->errors = $...
true
01435c8443b0db02ab2256595e1729adab9a4f34
PHP
joseala/PHP2
/antiguos/adivinaNumero/index.php
UTF-8
957
3.015625
3
[]
no_license
<?php define("MIN",1); define("MAX",10); class Juego{ public $aleatorio ; public $intentos = 0; public function generaNumero(){ $this->aleatorio = rand(MIN, MAX); } public function getAleatorio(){ return $this->aleatorio; } public function increment...
true
7091b303185dd1cf0dc1fbaddcc024d0bea2f850
PHP
bamboocreative/listsIO
/src/ListsIO/Bundle/UserBundle/Entity/User.php
UTF-8
8,374
2.515625
3
[ "MIT" ]
permissive
<?php namespace ListsIO\Bundle\UserBundle\Entity; use Doctrine\ORM\Mapping as ORM; use FOS\UserBundle\Model\User as BaseUser; use ListsIO\Bundle\ListBundle\Entity\LIOList as LIOList; use ListsIO\Bundle\ListBundle\Entity\LIOListLike; use ListsIO\Bundle\ListBundle\Entity\LIOListView as LIOListView; use ListsIO\Bundle\U...
true
962e75431023a49b610932ff45814310504dc49a
PHP
freestyledork/phergieCoinsV2
/vendor/freestyledork/phergie-irc-plugin-react-coins/src/Utils/Time.php
UTF-8
730
2.8125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: snow * Date: 3/17/18 * Time: 7:22 PM */ namespace Freestyledork\Phergie\Plugin\Coins\Utils; class Time { /** * returns the elapsed time since the given time * * @param $time * @return int */ public static function timeElapsedInSeconds($ti...
true
83b3c01f886d0bbfc9f8e857c36c631d9f3ca084
PHP
Luke-Shepp/Advent-Of-Code-2019
/Day 23/Part 1.php
UTF-8
932
3.03125
3
[]
no_license
<?php require_once __DIR__ . '/Computer.php'; $computers = []; $packetQueue = []; for ($i = 0; $i < 50; $i++) { $c = new Computer; $c->addInput($i); $computers[] = $c; } do { foreach ($computers as $i => $c) { $exitCode = 0; try { $exitCode = $c->step(); } cat...
true
47a5248d56cca575e2062ee18dc99f52c26979c8
PHP
fermin-alganaras/appAGBA
/app/servicios/Controlador/ControladorCompetencias.php
UTF-8
8,966
2.9375
3
[]
no_license
<?php class ControladorCompetencias { private $conCat; private $conPat; function __construct() { $this->conCat = ServidorControladores::getConCategoria(); $this->conPat = ServidorControladores::getConPatinador(); } private function nuevaCompetencia(array $competencias, $idCat, $e...
true
e812c84f9bb48f53fb7dc6b75ac08f442ec13de8
PHP
nuxn/myshop
/simplewind/Core/Library/Vendor/Wzpay/Wzcommon.php
UTF-8
9,355
2.90625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: admin * Date: 2017/1/6 * Time: 10:55 */ /** * trimString(),设置参数时需要用到的字符处理函数 * createNoncestr(),产生随机字符串,不长于32位 * formatBizQueryParaMap(),格式化参数,签名过程需要用到 * getSign(),生成签名 * arrayToXml(),array转xml * xmlToArray(),xml转 array * ...
true
765b8d363f446018f67763ff3de7ac18ee001a50
PHP
Ahmedd-Ibrahim/hormoz
/app/Repositories/UserRepository.php
UTF-8
2,318
2.671875
3
[ "MIT" ]
permissive
<?php namespace App\Repositories; use App\Models\User; use App\Repositories\BaseRepository; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Hash; use Tymon\JWTAuth\Facades\JWTAuth; /** * Class UserRepository * @package App\Repositories * @version November 12, 2020, 10:03 am UTC */ class UserR...
true
5583b8aaa0a43b974496c376b14384e33b17cf6c
PHP
Amindlog/PhpMvc
/Домашние задание №3/D4/Class/tariffClock.class.php
UTF-8
1,014
3.09375
3
[]
no_license
<?php class TariffClock { private $priceForKm = 0; private $priceForMinute = 1; private $timeInDistance = 1; //час protected $priceGeneral; // private InterfaceService $service = [ // 'gps' => [ // 'time' => 3, //часа // 'price' => 15 //руб/ч // ], // ...
true
2d72ffb59f7bd4466fc76ce4d37603464b8b37c9
PHP
davialexandre/reino_da_garotada
/includes/posts.inc
UTF-8
4,035
2.875
3
[ "MIT" ]
permissive
<?php define('POSTS_PER_PAGE', 20); /** * Retorna um vetor com o Post, referente ao ID informado. * * @param int $id * O ID do post. * * @return array * Um vetor contendo o post, referente ao ID informado. As chaves são os * nomes dos campos no banco de dados. */ function load_post($id) { ...
true
338284dfff3780bbff3d595b1f24ed148a546b32
PHP
mu4ddi3/compensa-webservice
/src/StructType/GetIsBlackRiskDeductibleVariantVehicleAgeRequest.php
UTF-8
3,821
2.796875
3
[]
no_license
<?php namespace Mu4ddi3\Compensa\Webservice\StructType; use \WsdlToPhp\PackageBase\AbstractStructBase; /** * This class stands for GetIsBlackRiskDeductibleVariantVehicleAgeRequest * StructType * Meta informations extracted from the WSDL * - nillable: true * - type: tns:GetIsBlackRiskDeductibleVariantVehicleAgeR...
true
8e3afc2a2aac857a1c57230279f5a869d5c7e493
PHP
pampul/ArgetFwk
/lib/Resources/Core/FilterManager.php
UTF-8
806
2.515625
3
[]
no_license
<?php use Doctrine\ORM\EntityManager; /** * Classe regroupant les fonctions de bases présentes dans tous les filtres * * @author f.mithieux */ class FilterManager extends FwkManager { /** * EntityManager permettant les interactions Entity-BDD * * @var EntityManager $em */ protecte...
true
75c4a58fbceb16fd71153291cd5c1196354b281b
PHP
carolinebvlt/OOP
/fichiers_php/mes_classes/Voiture.php
UTF-8
892
3.03125
3
[]
no_license
<?php class Voiture { protected $fiabilite; const TRES_FIABLE = 10; const MOYENNENEMENT_FIABLE = 5; const PEU_FIABLE = 1; public function getFiabilite() { return $this->fiabilite; } } class Mercedes extends Voiture { public function __construct() { $this->fiabilite = Voiture::TRES_FIABLE; ...
true
5abd18f623705b84285056eb85f0273210420c09
PHP
krombox/motion
/src/Krombox/MainBundle/Entity/BusinessHours.php
UTF-8
1,754
2.515625
3
[]
no_license
<?php namespace Krombox\MainBundle\Entity; use Doctrine\ORM\Mapping as ORM; use Krombox\MainBundle\Entity\Traits\DayFlaggableEntity; use Krombox\MainBundle\Entity\Traits\SchedulableEntity; use Krombox\MainBundle\Entity\Traits\Entity; use Krombox\MainBundle\Entity\Place; use Krombox\CommonBundle\Model\Helper\DayFlagga...
true
f7ab2a3f3cffe0a47618a6e3c3c1cc1d49f03697
PHP
eitss813/impt_module
/modules/Sitepage/Model/DbTable/Values.php
UTF-8
1,655
2.515625
3
[]
no_license
<?php class Sitepage_Model_DbTable_Values extends Engine_Db_Table { protected $_rowClass = 'Sitepage_Model_Value'; public function updateValues($params = null) { $db = $this->getAdapter(); $db->beginTransaction(); try { foreach ($params as $field_id => $arr) { foreach ($arr as $package_id => $value...
true
3676c6e06cae67710cfd18ef1a319f52c63f9177
PHP
Linkokihp/php_sae
/joins/aliases.php
UTF-8
3,219
3.203125
3
[]
no_license
<?php require("inc/credentials.php"); // Query für "beitraege" Tabelle $query1 = "SELECT * FROM beitraege2"; $result1 = $dbh->query($query1); // Query für "autoren" Tabelle $query2 = "SELECT * FROM autoren2"; $result2 = $dbh->query($query2); // Query mit LEFT JOIN $query3 = "SELECT beitraege2.*, autoren2.id AS auti...
true
19d58252446a024ed1eabd4013aba2262c1eac4c
PHP
wissamdagher/Temenos-T24-COB-Monitor
/vendor/monolog/monolog/tests/Monolog/Handler/UdpSocketTest.php
UTF-8
1,260
2.671875
3
[ "MIT" ]
permissive
<?php namespace Monolog\Handler; use Monolog\TestCase; class UdpSocketTest extends TestCase { public function testWeDoNotSplitShortMessages() { $socket = $this->getMock('\Monolog\Handler\SyslogUdp\UdpSocket', array('send'), array('lol', 'lol')); $socket->expects($this->at(0)) ->method('send') ->...
true
8ddfb675618adc45096d58a74cdd374c9192bcfc
PHP
literalnoodles/Air-Conditioner-Website
/core/session.php
UTF-8
707
2.90625
3
[]
no_license
<?php namespace App\Core; class Session { public $ses_type; function __construct($ses_type){ session_start(); $this->ses_type = $ses_type; } public function is_logged_in(){ return isset($_SESSION[$this->ses_type]) ? true : false; } public function login($new_id){ $_SESSION[$this->ses_type] = $new_id; ...
true
d47630841bf87b5c41e94b67b28c8923fa4966f9
PHP
studioatual/laravel-ci
/app/Http/Controllers/Api/GroupController.php
UTF-8
2,771
2.65625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Api; use App\Http\Controllers\Controller; use App\Models\Group; use Illuminate\Http\Request; use Illuminate\Support\Facades\Validator; use Illuminate\Validation\Rule; class GroupController extends Controller { public function index() { return Group::all(); } ...
true
77ce8557d2990bd402f0bdd6adf617f524d0c026
PHP
kek91/php-contact-form
/asciicaptcha.php
UTF-8
2,601
3.0625
3
[ "MIT" ]
permissive
<?php /////////////////////////////////////////////////////////////////// // / // ASCII PHP Captcha / // Original: http://phpsnips.com/71/ASCII-CAPTCHA / // Modified by Teknix / Kim Eirik Kvas...
true
7e566d99e2c415962aff2300af5233bc8ed29c76
PHP
corpus47/linkmob
/protected/System/SessionHandler.php
UTF-8
1,066
2.609375
3
[]
no_license
<?php namespace System; use System\Dbh; use Models\Sessions; class SessionHandler implements \SessionHandlerInterface { private static $instance = NULL; private static $sessions; private function __construct() { self::$sessions = new Sessions(); //var_dump(self::$sessions->findById(2)); //exit; ...
true
f47632f5140ac4ea16506d8722d7d65a3c5b0261
PHP
ludwikg/task-menu
/app/Services/ItemChildrenService.php
UTF-8
1,527
2.640625
3
[]
no_license
<?php declare(strict_types = 1); namespace App\Services; use App\Dto\ItemChildrenPostPayload; use App\Entities\ItemCollection; use App\Entities\ItemCollectionFactory; use App\Exceptions\InvalidArgumentException; use App\Repositories\ItemRepositoryInterface; use Illuminate\Foundation\PackageManifest; class ItemChildr...
true
b48341e3edfda4b41f1cf2a3ed45a7171b0c7ed8
PHP
AleDTS/rota-distribuicao
/backend/save.php
UTF-8
410
2.609375
3
[]
no_license
<?php require 'database.php'; $sql = "INSERT INTO cities (name, coordinate) VALUES ('{$_POST['name']}', POINT({$_POST['latitude']}, {$_POST['longitude']}))"; $cities = FALSE; if ($conn->query($sql)) { $atualizou = TRUE; $query_cities = $conn->query("SELECT id, name FROM cities Order by name"); $cities...
true
02c563eef41a7b899b24f55cb6a3c8fb69854586
PHP
xp-forge/partial
/src/test/php/lang/partial/unittest/EqualsTest.class.php
UTF-8
1,615
2.859375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace lang\partial\unittest; use unittest\{Test, Values}; class EqualsTest extends PartialTest { private $fixture; /** @return void */ public function setUp() { $this->fixture= $this->declareType([], '{ use <T>\with\lang\partial\Equals; private $id, $name, $skills; public funct...
true
d54bab6f1519e8cf31ddafecd765849a88b793fb
PHP
hellboy1975/aaol
/src/model/CodesModel.php
UTF-8
2,524
3.09375
3
[]
no_license
<?php /** * Code model */ // $sql = "SELECT DISTINCT type FROM code ORDER BY type"; class CodesModel extends BaseModel { public $lastSQL; public function getSingleCode($code) { $sql = "SELECT * FROM `code` WHERE code = ?"; return $this->db->fetchAssoc($sql, array((string) $code)); } public function...
true
ad7bf833d4d369f1c6e107c64cf7ab65bba903ac
PHP
kiritoShift/Projet_insta
/classes/avoir_realisateur_favoris.php
UTF-8
1,881
2.90625
3
[]
no_license
<?php /** * * creation de l'objet avoir_realisateur_favoris avec des fonctions pour la modification SQL * @author bobo * */ class avoir_realisateur_favoris { private $id_realisateur; private $id_films; public function __construct($id_realisateur = "", $id_films = ""){ $this->id_films = $id_...
true
4671b9cc908aa446b9bdfd2e282a5b2be918d016
PHP
yiannisk/blog
/app/controller/MathController.php
UTF-8
981
2.90625
3
[]
no_license
<?php include_once("Controller.php"); class MathController extends Controller { public function question($req) { $operators = array('+', '-', '*', '%'); $operand1 = rand(1, 20); $operand2 = rand(1, 20); $operator = $operators[rand(0, 3)]; $istrue = rand(0, 1); $result = eval("return " . $o...
true
4893dc296c3d5caa504097788948eabaaa33cc3f
PHP
928012437/weihu_yuyue
/php-task/run.php
UTF-8
609
2.84375
3
[ "Apache-2.0" ]
permissive
<?php /** * PHP定时任务 * @author wuquanyao <git@yeahphp.com> * @link http://www.yeahphp.com */ $args = $_SERVER["argv"]; $script = array_shift($args); if(empty($args)) { exit("\033[41;33m php {$script} start|stop \033[0m\r\n"); } require "libs/task.php"; $task = new Task(); if(isset($args[1]) && "--log=fals...
true
5ca2462eae6b4bd3ce092df8e3071f312ad0607a
PHP
lyoshenka/freeyourlinks
/vendor/silex/vendor/symfony/browser-kit/Symfony/Component/BrowserKit/Cookie.php
UTF-8
5,461
2.953125
3
[ "MIT" ]
permissive
<?php namespace Symfony\Component\BrowserKit; class Cookie { private static $dateFormats = array( 'D, d M Y H:i:s T', 'D, d-M-y H:i:s T', 'D, d-M-Y H:i:s T', 'D M j G:i:s Y', ); protected $name; protected $value; protected $expires; pr...
true
d3d9a71352e160aee1f9a9f35c455ce0321ab1b5
PHP
bayapucg/viswa-projects
/webcam/rfidattendance/excelreports.php
UTF-8
1,444
2.59375
3
[]
no_license
<?php session_start(); if (!isset($_SESSION['Admin-name'])) { header("location: login.php"); } ?> <?php require'connectDB.php'; $filename = 'athomreports_'.date('YmdHis').'.csv'; header("Content-Description: File Transfer"); header("Content-Disposition: attachment; filename=$filename"); header("Content-Type:...
true
6e8f53cbef0fded3a7cd80a8075624172a235d93
PHP
longbrow/nbf
/lib/core/Common.php
UTF-8
5,495
2.71875
3
[]
no_license
<?php /* * common类用静态方法定义了一些常用的函数 */ namespace core; use core\App; class Common { //获取当前module名 public function get_module(){ $module = App::$app_var['module']; return $module; } //获取当前控制器名 public function get_controller(){ $controller = App::$app_var['controller']; return $controller; } //获取当前方法名 pub...
true
c61ced40179e5a2b67fba8067f6033cad5067200
PHP
dragon20002/my-favorite
/itemlist.php
UTF-8
3,050
3.109375
3
[]
no_license
<?php include "../../inc/dbinfo.inc"; define('TABLE_NAME', 'webpage'); /* Connect to MySQL and select the database. */ $connection = mysqli_connect(DB_SERVER, DB_USERNAME, DB_PASSWORD); if (mysqli_connect_errno()) echo "Failed to connect to MySQL: " . mysqli_connect_error(); $database = mysqli_select_db($connection...
true
1b2c1dc686f933b16b09932aa23ae62cf77e5316
PHP
flodev/phpunit-class-method-test
/Tests/ClassGeneratorTest.php
UTF-8
2,586
2.59375
3
[ "MIT" ]
permissive
<?php use ClassMethodTest\ClassGenerator; class ClassGeneratorTest extends PHPUnit_Framework_TestCase { public function testGenerateNewClass() { $generator = new ClassGenerator( $this->getBuildMock(), $this->getClassParserMock() ); $proxy = $generator->generate...
true
f2fe2d41d2975c5a32c14ec68fef5b497bd1a591
PHP
Tata777/erp
/class/category.php
UTF-8
2,618
2.59375
3
[]
no_license
<?php if( !class_exists('mysqldb') ) { require_once(dirname(__FILE__)."/../config.inc.php"); include_once(CFG_LIB_DIR.'mysqldb.inc.php'); } class clsCategory extends mysqldb{ /****************************************************************/ /* 得到指定表的某个指定字段,在系统中用于得到分类的名称 */ /* ...
true