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
9f1f2469d2caba3c4114621b2151baa587216458
PHP
Cabelo01/Repo02
/Ejemplos/chapter5_examples/ex5.17.php
UTF-8
456
3.34375
3
[]
no_license
<html><head><title>Conditional Statement</title></head> <body bgcolor="lightgreen"><font size="+1"> <?php extract($_REQUEST); echo "hola"; if ($age>0 && $age <=18){ print "$name, age $age pays \$$price Tienes entre 1 y 18 <br />"; } elseif ($age>=19 && $age <=55){ print "$name, age $age pays \$$price Tienes...
true
d12ede6ea6411bf375a6ee5b3668a84d2cad1083
PHP
MillaMay/work-Laravel_6
/database/seeds/MembersTableSeeder.php
UTF-8
2,702
2.53125
3
[]
no_license
<?php use Illuminate\Database\Seeder; class MembersTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { factory(App\Models\Member::class, 5)->create()->each(function ($member) { $courses = $member->se...
true
9a5dcb3686e0f91a0882cba31c2267578106086d
PHP
secit-pl/schema-org
/SchemaOrg/Mapping/Type/OrganizationRole.php
UTF-8
2,027
2.609375
3
[ "MIT" ]
permissive
<?php namespace SecIT\SchemaOrg\Mapping\Type; use SecIT\SchemaOrg\Mapping\Property; /** * Class OrganizationRole. * * @deprecated This class is deprecated and will be removed in release 3.4. Use SecIT\SchemaOrg\Mapping\Type\OrganizationRoleType instead. * * @method OrganizationRole setAdditionalType(Property\...
true
e77a846c116d8bd1dd741949e2440e7db1803329
PHP
warrior888/toci_commercial
/bees/April2016Iteration/training 3/patryk_drapik/pd_strlen.php
UTF-8
243
3.359375
3
[]
no_license
<?php function pd_strlen($string) { for($i=0; isset($string[$i]); $i++) { } return $i; } /* $string = "wyraz"; echo "\n"; echo "Moje: ". pd_strlen($string); echo "\n"; echo "System: ". strlen($string); echo "\n"; */
true
2ee30156eb3196cf2b883c83b2ebb73d90d2aceb
PHP
fitraaditama7/arkademy
/2.1.php
UTF-8
485
3.078125
3
[]
no_license
<?php // How to use? etc. php 2.1.php lkjhg_99 function validateUname($data) { $pisahUnderscore = explode('_',$data); $str5=$pisahUnderscore[0]; $int2=$pisahUnderscore[1]; if ((str_word_count($str5) == 1) and (strlen((string) trim($str5)) == 5) and ((strlen((int) trim($int2)) == 2))) { echo "Terverifikas...
true
99979516c5f54ecaf29913cb8452cff306263253
PHP
rpaulasouza/AluHouse
/platforms/android/assets/www/require/class/Shopping.class.php
UTF-8
7,063
2.65625
3
[]
no_license
<?php class Shopping { private $cr, $Total, $qtdProdutos; function carrinho(){ $this->cr = new CRUD; $this->Total = 0; $this->qtdProdutos = 0; $subTotal = 0; //session_destroy(); if($_SESSION){ //echo "sucesso"; // Separar nome de quantidade //print_r($_SESSION); foreach($_SESSION as $nome...
true
eabf88469de0627b9a9ff625463d581e7b9d0c65
PHP
qmcree/flight_checkin
/app/commands/CheckinCommand.php
UTF-8
1,126
2.609375
3
[ "MIT" ]
permissive
<?php use Illuminate\Console\Command; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\InputArgument; use FlightCheckin\CheckinAction; class CheckinCommand extends Command { /** * The console command name. * * @var string */ protected $name = 'command:checkin'; /** *...
true
c0417164ab2f100594a3cbd5031eac67a25b3e45
PHP
geodesicsolutions-community/geocore-community
/src/classes/PEAR/PayPal/Type/BAUpdateRequestType.php
UTF-8
2,787
2.703125
3
[ "LicenseRef-scancode-warranty-disclaimer", "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /** * @package PayPal */ /** * Make sure our parent class is defined. */ require_once 'PayPal/Type/AbstractRequestType.php'; /** * BAUpdateRequestType * * @package PayPal */ class BAUpdateRequestType extends AbstractRequestType { var $ReferenceID; var $BillingAgreementDescription; var $Bil...
true
17953a8470949acbe16dd8e74c38520b7d52905a
PHP
bwtgroup/laravel-api
/src/Processors/OriginalDataProcessor.php
UTF-8
813
2.859375
3
[ "MIT" ]
permissive
<?php namespace BwtTeam\LaravelAPI\Processors; class OriginalDataProcessor extends BaseProcessor { /** * Get signature of api processor. * * @return string */ public static function getSignature() { return ':originalData'; } /** * Handle an incoming HTTP request. ...
true
266112bedbb8ffa93afde482ef8bddb5a1e5473f
PHP
Mayela20/examensegundoparcial
/models/examendata.model.php
UTF-8
2,761
2.71875
3
[]
no_license
<?php require_once "libs/dao.php"; // Elaborar el algoritmo de los solicitado aquí. /* SELECT `juguetes`.`idjuguetes`, `juguetes`.`nomjuguete`, `juguetes`.`preciojuguete`, `juguetes`.`estadojuguete` FROM `examen`.`juguetes`; */ /** * Obtiene los registro de la tabla de modas * * @return Array */ functi...
true
1dfece51f75188d85c1c1774741828e095dd5e5c
PHP
MaCroTux/CriptoControl
/src/Domain/Exceptions/InvestmentNotFound.php
UTF-8
305
2.796875
3
[]
no_license
<?php namespace CriptoControl\Domain\Exceptions; use Exception; class InvestmentNotFound extends Exception { private const MESSAGE = 'Cripto currency %s not found.'; public function __construct(string $currency) { parent::__construct(sprintf(self::MESSAGE, $currency), 0); } }
true
f28273a5ba0ef26d8c2efc6b90025752fc5880f6
PHP
xiaoxiaochengxyuan/nanhnvh
/utils/HttpUtil.php
UTF-8
1,288
3.03125
3
[]
no_license
<?php namespace app\utils; /** * 和Http相关的工具类 * @author xiawei */ class HttpUtil { /** * 发送一个Get请求 * @param string $url 要请求的url * @return string */ public static function doGet($url) { $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CU...
true
dca68606d1e65d7049e1d153f8574503b39dcb87
PHP
SnowRunescape/PicPay-SDK-PHP
/PicPay/PicPayRestClient.php
UTF-8
3,934
2.75
3
[ "MIT" ]
permissive
<?php /** * PicPay Integration Library * Access PicPay for payments integration * * @author SnowRunescape * */ class PicPayRestClient { const API_BASE_URL = 'https://appws.picpay.com/ecommerce/public'; private static function build_request($request){ $headers = array('accept: application/json'); $json_...
true
b0406efe011d1a2f1894b02d31ea9b14686e165c
PHP
anuabraham9646/KtuGuru
/logout.php
UTF-8
261
2.53125
3
[]
no_license
<?php session_start(); //to ensure you are using same session session_unset(); session_destroy(); //destroy the session echo "Successfully Logged Out"; header("location:home&afterlogin/home.html"); //to redirect back to "index.php" after logging out exit(); ?>
true
41c87686dd93eed07bcf7da7578318e1660daca3
PHP
kiniou/roam-gps-feeder
/webservice/service.php
UTF-8
1,793
2.546875
3
[]
no_license
<?php include "./config.inc.php"; if (array_key_exists("data",$_POST)) { $data = stripslashes($_POST["data"])."\n"; if (!is_null($data) ) { if ( $con = mysql_pconnect('localhost',$db_user,$db_password,MYSQL_CLIENT_COMPRESS) ) { $data_list = json_decode($data,true); $values = array(); $keys = array()...
true
7fceb21defca81e3a8fe4feeedb8d781a5a46d8a
PHP
sevealex/laravel-fcm
/src/Support/Payload/Data/Data.php
UTF-8
335
2.5625
3
[ "MIT" ]
permissive
<?php namespace Prgayman\Fcm\Support\Payload\Data; use Illuminate\Contracts\Support\Arrayable; class Data implements Arrayable { protected $dataBuilder; public function __construct(DataBuilder $builder) { $this->dataBuilder = $builder; } public function toArray() { return $this->dataBuilder->ge...
true
160a6bf918fd13a7ff8b94cff17cffd6d57ab0d8
PHP
terminalredux/Blog
/module/Application/src/Form/CategoryForm.php
UTF-8
738
2.515625
3
[]
no_license
<?php namespace Application\Form; use Zend\Form\Form; class CategoryForm extends Form { public function __construct($name = 'category') { parent::__construct($name); $this->add([ 'name' => 'id', 'type' => 'hidden', ]); $this->add([ 'name' ...
true
13974cefb429b779e27a4dff372500e88f734dd5
PHP
hexing-w/FW
/helper/MConfig.php
UTF-8
2,066
2.578125
3
[]
no_license
<?php namespace Fw\Helper; use Fw\Model\Redis\ConfigRedis; class MConfig { /** * 返回配置Config * * @param * @return */ public static function get($name = '') { $config = self::loadConfig(); return $name ? (isset($config[$name]) ? $config[$name] : '') : $config; ...
true
6dc3f076776b6e6b217846c60db7e0f6f9ed150c
PHP
Parterdev/Webchat
/Webchat-server/controladores/CRUD/ControladorLounge.php
UTF-8
2,957
2.765625
3
[]
no_license
<?php include_once('../controladores/ControladorBase.php'); include_once('../entidades/CRUD/Lounge.php'); class ControladorLounge extends ControladorBase { function crear(Lounge $lounge) { $sql = "INSERT INTO Lounge (loungeId,nameLounge,passwordLounge,typeLoungeId) VALUES (?,?,?,?);"; $parametros = ar...
true
2254e7bfc83152565f16d3351170d2e144b4cbd5
PHP
majallouz/artFactory
/pastaCosi-BackEnd/src/Controller/ActivityCtrlController.php
UTF-8
4,389
2.5625
3
[]
no_license
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\Serializer\Encoder\JsonEncoder; use Symfony\Component\Serializer\Serializer; use Symfony\Component\Serializer\Normalizer\ObjectNormalizer; use Symfony\Component\HttpFoundation\Response; use Symfony\...
true
a31308a61e1f68e9287677d737b1be0846b4f0fc
PHP
ArcherCraftStore/ArcherVMPeridot
/apps/mediawiki/htdocs/includes/db/Database.php
UTF-8
122,847
2.8125
3
[ "Apache-2.0", "MIT", "LicenseRef-scancode-free-unknown", "GPL-2.0-or-later", "LGPL-2.0-or-later", "CC-BY-NC-4.0", "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-generic-exception", "CC-BY-SA-3.0", "GPL-1.0-or-later", "LicenseRef-scancode-proprietary-license", "GPL-2.0-only", "Lic...
permissive
<?php /** * @defgroup Database Database * * This file deals with database interface functions * and query specifics/optimisations. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; eith...
true
72fc38b8add2a3504b148e3679034c38e2dc1acb
PHP
Sudhanshu277/php
/form/taskedit.php
UTF-8
3,365
2.84375
3
[]
no_license
<?php include 'dbcon1.php'; if (isset($_GET['id'])) { $id = $_GET['id']; $data = "SELECT * FROM task WHERE id = $id"; $result = mysqli_query($con,$data); $a = mysqli_fetch_array($result); } ?> <?php include 'dbcon1.php'; if (isset($_POST['update'])) { echo $a = $_POST['first_name']; echo $b = $_POST['last_name']; ...
true
97c4c0d38be392ff54386dedc017de9887cc7686
PHP
AntoDRFC/Intranet
/app/Http/Controllers/TypeController.php
UTF-8
3,024
2.765625
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Type; class TypeController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { // get all the types $types = Type::or...
true
e5d9ed050e08c4a4aad731117f6225c79b31d46e
PHP
araujodev/design-patterns-php
/app/Observable/index.php
UTF-8
344
2.765625
3
[]
no_license
<?php require_once '../../vendor/autoload.php'; use DesignPatterns\Observable\Clima; use DesignPatterns\Observable\PrintarNaTela; /** * * observable Usage. * */ $campoGandeClima = new Clima(27.5); $cliente = new PrintarNaTela($campoGandeClima); $campoGandeClima->atualizarTemperatura(30.0); $campoGandeClima->atu...
true
517898033b57394de47ed7f02182da4124d66278
PHP
Tumbur7/Electromagnetic-Door-Lock-Control-System
/yii2/vendor/ratacibernetica/yii2-node-socket/lib/php/frames/Multiple.php
UTF-8
3,345
2.921875
3
[ "BSD-3-Clause" ]
permissive
<?php namespace YiiNodeSocket\Frames; /** * Class Multiple * * Needed for send many frames at a time * * Usage * * $eventFrame = new Event(); * $eventFrame->setEventName('user.join'); * $eventFrame['userId'] = 12; * * $subscriptionFrame = new Subscription(); * $subscriptionFrame->subscribe('users.channel')...
true
7048da99fccbcdfaa9b25673cd470c568fab9707
PHP
ylizma/Store_App
/upload_img.php
UTF-8
2,317
2.5625
3
[]
no_license
<?php include("par.php"); $img1=$_FILES["img1"]["name"]; $img2=$_FILES["img2"]["name"]; $img3=$_FILES["img3"]["name"]; $dd=1; if (!empty($img1)) { $target="image/".basename($_FILES["img1"]["name"]); $sql="UPDATE images SET image1 = :img WHERE id_image = :id"; $dd=1; $statement = $bdd->prepare($sql);...
true
c1b45597d1ac025eb1b868690b2aad6d07608f68
PHP
chrispittersl/VIP
/php/tempoReal.php
UTF-8
3,029
2.734375
3
[]
no_license
<?php if(isset($_POST['sala'])){ include_once "conexao.php"; $sala = $_POST['sala']; /* Indetificando e formatando o valor da sala */ if($sala == "sala1") $sala = "Sala 1 - Bloco A"; else if($sala == "sala2") $sala = "Sala 2 - Bloco A"; else...
true
d1411724d3534982a4cf7396a9fc9439ea0f846e
PHP
gabrieleromanato/PHP-Ecommerce-Html.it
/core/classes/PHPEcommerce/PayPal.php
UTF-8
1,467
2.75
3
[]
no_license
<?php namespace PHPEcommerce; class PayPal { protected $settings; protected $items; public function __construct($options = []) { if(count($options) > 0) { $this->settings = $options; } else { $this->settings = [ 'business' => PP_BUSINESS, ...
true
266ebd0b9b3a973f0a3b2ab8a97afc1dae892613
PHP
kasperhartwich/quickdns
/tests/Template/CreateTemplateTest.php
UTF-8
1,164
2.625
3
[ "MIT" ]
permissive
<?php namespace Tests\Template; use QuickDns\Template; use Tests\TestCase; use QuickDns\QuickDns; class CreateTemplateTest extends TestCase { public function testCreateSuccess() { $quickDns = new QuickDns($this->apiEmail, $this->apiPassword); $template = new Template($quickDns, 'quickdns-api-t...
true
9399861a6135ce049f7c9c6b6bf7bbc742e321d8
PHP
ExSituMarketing/EXS-silex-rabbitmq-provider
/Services/PostmanService.php
UTF-8
1,838
3.046875
3
[ "MIT" ]
permissive
<?php namespace EXS\RabbitmqProvider\Services; use EXS\RabbitmqProvider\Services\AmqpService; /** * Description of PostmanService * * Publish messages to rabbitmq message queues. * Created 07/31/2015 * @author Lee * @copyright Copyright 2015 ExSitu Marketing. * @access public */ class PostmanSer...
true
b4bfa20f499d4a8d0beaeaa55043ff10922e26b4
PHP
nemoNoboru/ET3
/boroto/output/Usuario.php
UTF-8
3,412
3.390625
3
[ "MIT" ]
permissive
<?php /* the ORM and activeRecord needs a driver. it should be named driver.php */ /* class generated automaticaly with Boroto */ /* Felipe Vieira, 2015 */ class Usuario{ public $driver; private $user_id; private $user_name; private $user_pass; private $user_desc; private $user_email; public function Usuario(...
true
81f7373898913968111b51990fdd7ac82abc88dc
PHP
RyanLeon-Yuan/GreySpots
/greyspots/getCrowd.php
UTF-8
719
2.5625
3
[ "CC-BY-4.0" ]
permissive
<?php $servername = "localhost"; $username = "gsdb"; $password = "A@1q2w3e"; $dbname = "greyspots"; $conn = new mysqli($servername, $username, $password, $dbname); if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } // $sql = 'SELECT * from gr...
true
2e440b8aef97b6cef25ee26190dc6e21a03abaf4
PHP
tomasz-janiczek/ioculus
/www/modules/install/php/install.php
UTF-8
1,672
2.578125
3
[]
no_license
<?php class iModule_Install extends iModule { function & onStep1(&$core, &$args) { $core->Message("<b>Welcome to iOculus sample application setup!</b><br/><br/> This module will install an 'out-of-the-box' iOculus sample application on your system, by setting up the database and cr...
true
b59dc0bb9c81c838ea09592ffbe92ad6c3efffc6
PHP
bongrun/brsocket-php
/src/Queue.php
UTF-8
2,124
2.703125
3
[ "Apache-2.0" ]
permissive
<?php namespace BongRun; use PhpAmqpLib\Connection\AMQPStreamConnection; use VladimirYuldashev\LaravelQueueRabbitMQ\Queue\RabbitMQQueue; /** * Class Queue * @package BongRun */ class Queue { public $host = '127.0.0.1'; public $port = 5672; public $vhost = '/'; public $login = 'guest'; public...
true
5f75adcfd61f9e6e0f018fb0de4b79ae79346139
PHP
OlegLugyna/Skills
/wordPress/myBlog/includes/db.php
UTF-8
421
2.6875
3
[]
no_license
<?php //Создаем специальный файл для подключения к БД $connect = mysqli_connect( $config['db']['server'], $config['db']['username'], $config['db']['password'], $config['db']['name'] ); if ($connect==false) { echo "Не удалось подключиться к базе данных"; echo mysqli_connect_error(); exit(); } else { ec...
true
710d4791eec981567190ff043ca8a30fba32f26d
PHP
devprom-dev/sdk
/app/pm/classes/wiki/WikiDocumentIterator.php
UTF-8
301
2.546875
3
[]
no_license
<?php class WikiDocumentIterator extends StatableIterator { function getDisplayName() { $caption = parent::getDisplayName(); if ( $this->get('DocumentVersion') != '' ) { $caption .= ' ['.$this->get('DocumentVersion').']'; } return $caption; } }
true
79f520e2478f7dce35c8e28ecba68e4235dda12c
PHP
phillydunne/mywebsite
/includes/user.php
UTF-8
2,266
3.328125
3
[]
no_license
<?php class User { // Represents a user account private $firstname; private $lastname; private $email; private $password; private $authenticated; private $club_id; public function __construct() { // DEBUG echo "In a constructor! "; $this->firstname=NULL; $this->...
true
e0a13ee9cba3b62b208b5716df334e5d0493e3b7
PHP
stephaniaFiscalS/ProyectoFinalPrgra
/registrar.php
UTF-8
8,534
2.9375
3
[]
no_license
<?php require 'funcs/conexion.php'; require 'funcs/funcs.php'; //validamos del lado del servidor por seguridad //Declare una variable que se llama ERROR para ir colocando todos los errores, //Solamente que va a ser de tipo array $errors=array(); //real_escape_string limpia la cadena para evitar sqlinjectio...
true
1db789df505377992d5c9b6ac83712ec570e7662
PHP
BabyWYQ/web-js
/js课程/ajax老师案例/20170306 php/12_news.php
GB18030
854
3.1875
3
[]
no_license
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> </head> <body> <?php $id = $_GET['id']; //ݿ⣬PHPMySQLǻƽֻҪһݿ //ݿûroot, ǿ //$con һʾһ $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } //ѡĸݿ mysql_select_db("mydb", $co...
true
ff322918c950fa67b45578100f1618b173fb5d57
PHP
ehyi/my_sample_codes
/php_rest/inc/slim.inc.php
UTF-8
4,524
2.546875
3
[]
no_license
<?php require "inc/slim/Slim/Slim.php"; //wrapper to help decouple calls somewhat for front end function wrap_output($output, $encode=TRUE){ $app = Slim::getInstance(); if(isset($_SESSION['enable_cache']) && $_SESSION['enable_cache']==TRUE){ header("Cache-Control: public, max-age=60"); } if(isset($_SESSION['wrap...
true
b01b8cc4d4c94577f729ea1362a041584b11e730
PHP
Spameri/Elastic
/src/Entity/Value/StringValue.php
UTF-8
338
2.84375
3
[]
no_license
<?php declare(strict_types = 1); namespace Spameri\Elastic\Entity\Value; class StringValue implements \Spameri\Elastic\Entity\ValueInterface { /** * @var string */ private $value; public function __construct( string $value ) { $this->value = $value; } public function value(): string { return $t...
true
4adce87a476edca7f551a499b573f590b2720526
PHP
elchris/hashtuner
/src/Tuners/ArgonTuner.php
UTF-8
3,507
2.59375
3
[ "MIT" ]
permissive
<?php namespace ChrisHolland\HashTuner\Tuners; use ChrisHolland\HashTuner\DTO\ExecutionBounds; use ChrisHolland\HashTuner\DTO\TuningResult; use ChrisHolland\HashTuner\Exception\UnsupportedPasswordHashingAlgo; use ChrisHolland\HashTuner\RunTime\ArgonRunTime; use ChrisHolland\HashTuner\RunTime\HashRunTime; use ChrisHol...
true
e7394d9d7bbd75d6c47b32452e9d767099ed7c92
PHP
CJManganelli/CS4970WCapstone
/phpservices/browseEventsService.php
UTF-8
6,506
2.984375
3
[]
no_license
<?php //$sort = 'activity'; $sort = $_GET['sortBy']; if($sort == "") { echo "<p>INPUT ERROR</p>"; exit; } else { //connect to DB require("./connectDB.php"); $link = mysqli_connect($SQLHOST, $SQLUSER, $SQLPASS, $SQLDB); if(!$lin...
true
27275e7a138e973f169becdbb037130f72b044f9
PHP
zach-adams/sprig-foundation
/inc/Twig/class-twigpress.php
UTF-8
6,096
2.515625
3
[]
no_license
<?php /** * NOTICE: * This file contains modifications made by Zach Adams on 11-30-2014. * Modifications will be noted next to original comments. */ /** * TwigPress. * * @package TwigPress * @author Mike Shaw * @license GPL-2.0+ * @copyright 2013 Mike Shaw */ /** * TwigPress class. * * @package Tw...
true
4fd630e0c97003f0c01fea978a1c727c2dfa2b85
PHP
rgillebert/maison
/models/Actionagent.php
UTF-8
1,065
2.5625
3
[]
no_license
<?php namespace app\models; use Yii; /** * This is the model class for table "actionagent". * * @property integer $actionAgent_id * @property integer $actionAgent_idAgent * @property integer $actionAgent_idActionPO * @property integer $actionAgent_ordre */ class Actionagent extends \yii\db\ActiveRecord { ...
true
daacc3d18ea174f4d984b430d07f829bfaf86867
PHP
sakawat64/LicenseKey-Generator
/app/Http/Controllers/AuthController.php
UTF-8
2,149
2.625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Support\Facades\Auth; use App\Models\User; use Illuminate\Http\Request; class AuthController extends Controller { public function __construct() { $this->middleware('auth:web',['except' => ['login','checkLogin','create','store','logout']]); } ...
true
b686eb35b4e302cf015040de442f95e69aa7b8c1
PHP
lbjhuang/mysql_test
/pdo/pdo_connect2.php
UTF-8
289
2.8125
3
[]
no_license
<?php //通过uri形式连接数据库 try{ $dsn = 'uri:file://D:\xampp\htdocs\mytest\pdo\dsn.txt'; //连接uri指定的pdo配置文件 $user = 'root'; $passwd = ''; $pdo = new PDO($dsn, $user, $passwd); var_dump($pdo); }catch (PDOException $e){ echo $e->getMessage(); }
true
b76ebee9e35791e5000923a64a82b05a370ec39d
PHP
jessicavicentini/php-mod3
/mod1/exercicio17.php
UTF-8
632
3.453125
3
[]
no_license
<?php $vetor = [12, 14, 23, 34, 54, 76, 25, 56, 87, 65, 44, 93, 82, 22, 13, 83, 96, 47, 64, 33]; $maior = $menor = $vetor[0]; $total = $perc = 0; foreach ($vetor as $key => $num) { $total += $num; if ($num%2 == 0) { $perc += 5; } if ($maior < $num) { ...
true
41bef175448d5aa4e7b20991a2113a038a6938e5
PHP
arewolf/schoolwork
/localhost/Practices/milestone4/Singleton/morepractice.php
UTF-8
1,556
3.203125
3
[]
no_license
<?php class Database { private $database; private static $singlebd; private function __construct(){ $this->database=new mysqli("ip", "root", "pass", "database"); } public static function mkbd(){ if(! self::$singledb){ $singledb= new Database; } else{ return $singledb; } } } $newDB =DB::mkd...
true
95039a1beb9513f5e005b4bbb900b32d074716f0
PHP
ilya-torlin/calculator
/api/tests/api/SubCest.php
UTF-8
2,906
2.59375
3
[ "BSD-3-Clause" ]
permissive
<?php use Codeception\Util\HttpCode; class SubCest { public function urlBasicSub(ApiTester $I) { $params = http_build_query(['first' => '3', 'second' => '1']); $I->sendGET('/sub?' . $params); $I->seeResponseCodeIs(HttpCode::OK); $I->seeResponseContainsJson(['result' => '2']); ...
true
21283f11ec24ac52dd9ce787f8f30a535700a9a9
PHP
Niktux/kafkaf
/src/Domain/Collaborateur.php
UTF-8
1,001
2.84375
3
[]
no_license
<?php declare(strict_types = 1); namespace Niktux\Kafkaf\Domain; use Puzzle\Pieces\ConvertibleToString; use Niktux\Kafkaf\Persistence\DataTransferObjects as DTO; use Niktux\Kafkaf\Persistence\CollaborateurRepository; class Collaborateur implements ConvertibleToString { private $dto; public function...
true
5a88b95e16abe396155f7202878237d39b73682b
PHP
foufu/data
/phpAll/php/api/outer_ip.php
UTF-8
359
2.65625
3
[]
no_license
<?php // 获取外网ip // url:http://2018.ip138.com/ic.asp // 获取数据:file_get_contents($url) $url = 'http://2018.ip138.com/ic.asp'; $content = file_get_contents($url); $content = iconv('gb2312','utf-8',$content); // 匹配要求,在那里匹配,输出什么 preg_match('/\[(.+)\]/',$content,$res); echo $res[1]; ?>
true
6419dad98e37674e61a51d112709868c6fd67b2c
PHP
thanhfam/cms-ci
/application/models/Page_model.php
UTF-8
4,598
2.609375
3
[]
no_license
<?php class Page_model extends MY_Model { public function __construct() { parent::__construct(); } public function generate_uri($title) { return url_title(convert_accented_characters($title), 'dash', TRUE); } public function save(&$item) { if ($this->existed_uri($item['uri'], $item['content_id'])) { $t...
true
ef2a912c0707f7fe474b1f038f80c41c749b549f
PHP
svnlogikos/AppNutri
/app/Http/Controllers/PacienteController.php
UTF-8
7,552
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Http\Requests; use App\Paciente; use App\Http\Controllers\Controller; class PacienteController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public functio...
true
fd472b9efd3dae3eea48d5be5057a1276562073e
PHP
shnbetul/TeknasyonProje
/app/app/middleware/Auth.php
UTF-8
968
2.59375
3
[]
no_license
<?php namespace Teknasyon\app\middleware; use Teknasyon\Config\Input; use Teknasyon\app\model\User; class Auth{ public static $user = null; public function not_login(){ $headers=Input::headers(); if(empty($headers['Token'])){ return true; } return false; } ...
true
d4e8ec0cc1123a7e39cbb91748b50b45b0a33614
PHP
HatemArfaouii/Annonce
/src/Entity/Message.php
UTF-8
1,646
2.53125
3
[]
no_license
<?php namespace App\Entity; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass="App\Repository\MessageRepository") */ class Message { /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="string", length=2...
true
bb2b064d0cc7a8ac3c418ede5c7c22415c56fd18
PHP
mikemad33/Califica_test
/valida.php
UTF-8
14,534
2.625
3
[]
no_license
<html> <body> <?php //if (!isset($_POST['submit'])) //{ /* //Se conecta a la BD $db = mysql_connect("localhost", "root", "gre081"); mysql_select_db("medicos2",$db) or die ('No se pudo conectar a la BD'); $hd_name = $_POST['hd_name']; echo "Valor de campo: ".$hd_name ."<br>"; */ //Valida tipo de ingreso a la BD requi...
true
eb2bc74e5560f1e8bb1ef59cbee0219f456e2bf5
PHP
RazaChohan/web-crawler
/app/Services/LinksExtractorService.php
UTF-8
2,160
3.15625
3
[ "MIT" ]
permissive
<?php namespace App\Services; use App\Objects\LinkInfo; use DOMDocument; use Psr\Http\Message\StreamInterface; class LinksExtractorService { /** * @param StreamInterface $responseBody * * @return array */ public function extractAssetsAndLinkedPages(StreamInterface $responseBody): array ...
true
dbe3bed2c297e479e000d706695965fee8acd359
PHP
wonchoe/OKPlus
/api.rixnews.com/app/controllers/AnalyticController.php
UTF-8
1,260
2.703125
3
[]
no_license
<?php class AnalyticController { public $userAgent, $uniqueID, $userIP, $userCountry, $userRegion, $userCity, $chromeType, $isAmigo, $isYandex, $isChrome; public $userAnalytic; public function __construct() { $this->userAnalytic = new Analytic(); } public function saveUserAnalytic() { ...
true
5f5bfd9b07bc08147ff9de94b40cbce633b1f7f5
PHP
stan5621/jp_edu_online
/protected/components/AbleController.php
UTF-8
926
2.890625
3
[]
no_license
<?php /** *给post,comment,vote等controller使用,用于定义默认的跳转action。 */ class AbleController extends Controller { public function getType(){ $class=get_class($this); return lcfirst(substr($class, 0,strpos($class,"Controller"))); } /** * 跳转到owner下显示model * @param integer $id the ID of the model to be displayed */ ...
true
9a840ef89e0d525f25fe8efdecd5ec35ca280a8c
PHP
paulostationbr/getnada-mail-bot
/bot.php
UTF-8
4,612
2.59375
3
[ "Apache-2.0" ]
permissive
<?php /* * Temp-Mail * @MailGramRobot * Feito Por Paulo Ricardo * yukynet.com * @yukynet */ // Only for NGINX + FastCGI // fastcgi_finish_request(); define('BOT_TOKEN', '685503534:AAF3Hf-F1XEmcv4HeAn9__FqJ_S3OA1rffI'); function teleRequest($method, $parameters) { foreach ($parameters as $key => &$val) { ...
true
238c39913d32754adf2f763aa0b52013f034da8f
PHP
ruppikoid/CRUD-s
/CRUD_Template_News_GET_query/edit.php
UTF-8
1,976
2.578125
3
[]
no_license
<?php // подключение основного файла приложения require("core/app.php"); // пример переменной для рендера $page['title'] = 'Панель добавления/редактирования записей'; // получение выбранной новости, если передан $_GET['id'] if (isset($_GET['id'])) { $id = trim($_GET['id']); $...
true
19cfd719874766e86892f730870ac0ff7b27bd04
PHP
archives-of-michigan/ContentDM-REST
/lib/url_parser.php
UTF-8
1,131
3.015625
3
[]
no_license
<?php class URLParser { public static function parse_uri($query_string) { $query_parts = URLParser::split_query_string($query_string); return $query_parts['uri']; } public static function parse_query_string($query_string) { $query_parts = URLParser::split_query_string($query_string); return $q...
true
b58904f7c99f7fa3d99e069cc86ae3536b3878c6
PHP
kennyma603/SimCal-Calendar
/email.php
UTF-8
1,270
2.640625
3
[]
no_license
<?php include("phpmailer/class.phpmailer.php"); //include("class.smtp.php"); // optional, gets called from within class.phpmailer.php if not already loaded $mail = new PHPMailer(); $mail->IsSMTP(); $mail->SMTPAuth = true; // enable SMTP authentication $mail->SMTPSecure = "ssl"; ...
true
a99dbed0e18e1ca1d35c655ef0e05dbd09863b50
PHP
secf00tprint/payloadtester_sqli
/sqli_victim_webapp_php/src/inf_disclosure/generic/show_timesheet.php
UTF-8
2,890
2.796875
3
[ "Apache-2.0" ]
permissive
<!DOCTYPE html> <html> <body> <form method="get" action="show_employee_table.php" onsubmit="setDBParams(event)"> <h2>Select Time Sheet</h2> <select id="selectEmployee"> <?php // connect to database $mysqli = new mysqli("172.19.0.2","user","password","employeedb"); if ($mysqli->connect_errno) {...
true
f929bdf34619e579af23f9bd29a981db1f816126
PHP
KevinLiu1995/LaravelApiSystem
/app/Models/Traits/Serialize.php
UTF-8
442
2.71875
3
[]
no_license
<?php namespace App\Models\Traits; use DateTimeInterface; trait Serialize { /** * 解决Laravel 7.0+ 【在 Eloquent 模型上使用 toArray 或 toJson 方法时,Laravel 7 将使用新的日期序列化格式】的问题 * @param DateTimeInterface $date * @return string */ public function serializeDate(DateTimeInterface $date) { retu...
true
db45d29e20f197edffa328907a267a73cffbf8d6
PHP
baksiii/student
/work_BD/select_author.php
UTF-8
771
2.875
3
[]
no_license
<?php require_once('config.php'); if(trim($_GET['author']) == ''){ $author = $_GET['author']; $conn = connection(); $data = select($conn); for( $i = 0; $i < count($data); $i++){ echo ($i + 1).".) {$data[$i]['author']}<br>"; } close($conn); } if(trim($_GET['author']) != ...
true
ef139460c2b067fddeb657d75708e236c53060ae
PHP
LukinMar/sistemairrigacao
/salvar.php
UTF-8
479
2.703125
3
[]
no_license
<?php include ('conexao.php'); $temp = $_GET['temp']; $ur = $_GET['ur']; $us = $_GET['us']; $sql = "INSERT INTO dados (temp, ur, us) VALUES (:temp, :ur, :us)"; $stmt = $pdo->prepare($sql); $stmt->bindParam(':temp',$temp); $stmt->bindParam(':ur',$ur); $s...
true
b3d7cf49e837f3ddead6bdbb6007f87b03afb0ac
PHP
chamiljayaratna/olemisscricketclub
/Olemiss Cricket Club-master/members.php
UTF-8
1,019
2.765625
3
[]
no_license
<?php require_once("session.php"); require_once("included_functions.php"); $mysqli = db_connection(); if (($output = message()) !== null) { echo $output; } //**************** Add Query $query = "SELECT userID, fname, lname, phone from Users order by lname"; $result = $mysqli->query($query); ...
true
f4b1f153109571e8efba6a690999e6313c139141
PHP
Prianick/filescanner
/core/SourceTypes/SourceInterface.php
UTF-8
295
2.640625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: asp * Date: 09.12.2018 * Time: 20:37 */ namespace FileScanner\SourceTypes; interface SourceInterface { public function setPath($path); public function getContent(); public function getStrData(); public function closeSource(); }
true
078ff4c83524ea20e242d11c84acb4ecc5530386
PHP
CBautistaDev/login-system
/Public/register.php
UTF-8
5,224
2.828125
3
[]
no_license
<?php require_once("../Private/initialize.php"); ?> <?php /* Registration process, inserts user info into the database and sends account confirmation email message */ $db = DBAccess::getMysqliConnection(); // Set session variables to be used on profile.php page // Validate Input $dirtyEmail = $_POST['email']...
true
2ed243449d21661dae5f5acaac826dfaf2f74163
PHP
Freelancer-Invoice-Tool/flit.dev
/app/validator/ClientValidator.php
UTF-8
371
2.75
3
[]
no_license
<?php class ClientValidator { public $rules = [ 'client_name' => 'required', ]; public function validate(Illuminate\Http\Request $request) { $validator = Validator::make($request->all(), $this->rules); if ($validator->fails()) { throw new ValidationException($validator...
true
f3261b97beda8f7e714efa89e5bc049a847f4178
PHP
Judison1/sonhamundos
/app/Http/Controllers/CategoryController.php
UTF-8
4,170
2.546875
3
[]
no_license
<?php /** * */ namespace App\Http\Controllers; use App\Article; use App\Category; use DB; use App\Http\Controllers\Controller; use Illuminate\Http\Request; class CategoryController extends Controller { public function getCadastro() { return view('category.register'); } public function postCadastro(Request $req...
true
6c193b4489f9498b17bddd843d92ed80abf5ff01
PHP
harrysun2006/pt_sunhy2
/library/Better/DAO/Badge/Calculator/Base.php
UTF-8
2,282
2.59375
3
[]
no_license
<?php /** * 计算器基类 * * @package Better.DAO.Badge.Calculator * @author leip <leip@peptalk.cn> * */ class Better_DAO_Badge_Calculator_Base extends Better_DAO_Base { protected static $poiIds = array(); protected static function &getCheckinedPoiIds($uid) { if (!isset(self::$poiIds[$uid])) { ...
true
c5dbba739bc2dc4cd5c072d11988a1807af89b7e
PHP
Gael-Lejeune/Projet_WEB_ESIEA_2020_2021
/processing/modify_item.php
UTF-8
2,087
2.640625
3
[]
no_license
<?php include '../model/dtb.inc.php'; session_start(); $obj = new stdClass(); $obj -> success = false; $obj -> message = "Aucune modification n'a été faite."; $db = dtb_connect_PDO (); //Récupération des champs $iditem = $_POST['iditem']; $name = $_POST['name']; $artist = $_POST['artist']; $date = $_POST['date']; ...
true
e393e2003f6232b0d3bad85b8e5ef85ed23ff9e8
PHP
Zepeda10/SistemaMantenimiento
/app/Models/User.php
UTF-8
1,768
2.609375
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Illuminate\Contracts\Auth\MustVerifyEmail; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Notifications\Notifiable; class User extends Authenticatable { use HasFactory, Notifiable; /** * The a...
true
1d73b038c0e7586312c1a925d1c81460f3137f40
PHP
Jako/PHx-Modifier
/strptime.phx.php
UTF-8
377
2.953125
3
[]
no_license
<?php /* * description: parses a string into unixtime with a format string * usage: [+string:strptime=`%d/%m/%Y %H:%M:%S`+] */ $options = isset($options) ? $options : "%d.%m.%Y %H:%M:%S"; $parsed = strptime($output, $options); $output = mktime($parsed['tm_hour'], $parsed['tm_min'], $parsed['tm_sec'], $parsed['tm_mo...
true
c9c1731429cbd602d59b8520321ed33f6c5f13fb
PHP
Agmarstudio/covid
/src/Input/RollingAverageData.php
UTF-8
1,387
3.28125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Covid\Input; use Covid\Consts; class RollingAverageData { /** * @var array */ private $lastWeek = []; /** * @var array */ private $lastFortnight = []; /** * @var float */ private $maxValue = 0; /** * @param int $value */ public function addValue(int...
true
4f89d4bf2a54eca5b2f57e6dcf1f3e9c1bfb5ae4
PHP
liliancal/formation-piscine
/dev/loop2.php
UTF-8
443
3.296875
3
[]
no_license
<?php $tab=array("victor","yoan","lisa","jerome","marie"); /*foreach($tab as $element){ echo $element."\n"; } */ function styleEcho($style,$msg){ return "<".$style.">".$msg."</".$style.">"; } foreach($tab as $id => $element){ $msg = $id. " : ".$element; if ($id ==1 ) echo styleEcho("b",$msg...
true
74234771f698f411b60913bf9c1952e0921a282b
PHP
Tairesh/test-maer
/models/Post.php
UTF-8
2,044
2.78125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use Yii; /** * This is the model class for table "Posts". * * @property integer $id * @property integer $languageId * @property integer $authorId * @property integer $dateCreated * @property string $title * @property string $text * @property integer $likesCount * * @property Au...
true
0919356530eac7918b4bdf2ea0a82525ac3e98a2
PHP
neiljohnson/football.com
/includes/filters.class.php
UTF-8
10,690
2.984375
3
[]
no_license
<?php require_once ("db.php"); $option = ""; if (isset($_GET['options']) && $_GET['options'] != null && $_GET['options'] != "") { $option = $_GET['options']; echo $option; } $con = new DB(); $mysqliCon = $con -> getLink(); switch ($option) { case "Leagues" : ///////////////////// $res = $mysqliCon -> query("...
true
c02e2b117bec7be79ba8dc1fb490f60a4e39fb24
PHP
iservng/bluemark-school-app
/presentation/staff_login.php
UTF-8
5,241
2.53125
3
[]
no_license
<?php class StaffLogin { //Public member available to smarty public $mSiteUrl; // public $mLinkToAdmin; public $mLoginMessage; // public $mUsername; public $mLinkToIndex; public $mLinkToCheckEmploymentStatus; public $mLinkToLoginLink; //Login credentialsmLoginMessage publ...
true
8441f3bcbb373d53deb7e31fc18a5a92bd93a34c
PHP
rahulyhg/slim-algoliasearch
/src/app/Middleware/GuestMiddleware.php
UTF-8
612
2.609375
3
[]
no_license
<?php namespace App\Middleware; use \Slim\Http\Response; use \Slim\Http\Request; class GuestMiddleware extends AbstractMiddleware { /** * GuestMiddleware invoke method * * @param Request $request * @param Response $response * @param callable $next * * @return mixed */ ...
true
37f874766306553e214cf52016c00c543b408f4b
PHP
srikanthkolli/angularjs
/registration/login.php.bak
UTF-8
2,631
2.71875
3
[]
no_license
<?php /*-----------connection Database------*/ $con=mysql_connect("localhost","root",""); mysql_select_db("manoj",$con); /*-----------connection Database complete------*/ /*-----------get the value in database---------*/ $sql="select * from login "; $getval=mysql_query($sql); wh...
true
d7adda08f23b278cf70e35303443673d9a607b15
PHP
MicolPA/hotel_management
/frontend/models/Services.php
UTF-8
1,338
2.625
3
[]
permissive
<?php namespace frontend\models; use Yii; /** * This is the model class for table "services". * * @property int $id * @property string $name * @property int $price * @property int|null $status * @property string|null $description * @property string|null $created_at * @property string|null $updated_at * * ...
true
da6786b3b86ef3f16ffde9824c47c6ec1002e092
PHP
axwax/java-php-course
/ud2/ex73.php
UTF-8
540
3.46875
3
[]
no_license
<?php class objetoarray implements ArrayAccess { function offsetExists($offset) { echo "Llamada a offsetExists!\n"; return true; } function offsetGet($offset) { echo "Llamada a offsetGet!\n"; } function offsetSet($offset, $value) { echo "Llamada a offsetSet!\n"; ...
true
e3dfeb447945ad3423f8d9fe1f2b584d317c10bb
PHP
CodeExpertsLearning/orientacao-a-objetos-com-php-regravacao
/projetos/projeto-2/src/DB/Entity.php
UTF-8
557
3.328125
3
[]
no_license
<?php namespace Code\DB; use \PDO; abstract class Entity { /** * @var PDO */ private $conn; public function __construct(\PDO $conn) { $this->conn = $conn; } public function findAll() { $sql = 'SELECT * FROM products'; $get = $this->conn->query($sql); return $get->fetchAll(PDO::FETCH_ASSOC); } ...
true
64fe2a6cf8392a2e08e4032fa6e49e770de04ff7
PHP
TanczaceKotki/zesp
/Formularze/user.class.php
UTF-8
1,361
2.828125
3
[]
no_license
<?php class user { public function getData () { if(isset($_SESSION['login']) && isset($_SESSION['pass'])){ $login=$_SESSION['login']; $pass=$_SESSION['pass']; $DB=dbconnect(); if($st=$DB->prepare('SELECT * FROM Uzytkownicy WHERE login=?')) { if($st->execute(array($login))){ return $st->...
true
7a7bc77655e79f8e04d8aed9d5d9c19402ade08e
PHP
DemoySegment/SOFT130002_lab
/lab8/functions.inc.php
UTF-8
541
2.578125
3
[]
no_license
<?php function outputOrderRow($file, $title, $quantity, $price) { $amount=$quantity*$price; echo "<tr>"; //TODO echo"<td>"; echo"<img src='images/books/tinysquare/$file'>"; echo"</td>"; echo"<td>"; echo"$title"; echo"</td>"; echo"<td>"...
true
26ab35ce40f78f8e0519fd1cbae08d4bfcde1dc8
PHP
A2Workspace/laravel-social-entry
/src/Proxy/SocialUser.php
UTF-8
2,129
2.640625
3
[ "MIT" ]
permissive
<?php namespace A2Workspace\SocialEntry\Proxy; use Laravel\Socialite\Contracts\User as UserContract; use A2Workspace\SocialEntry\Contracts\SocialUser as SocialUserContract; class SocialUser implements SocialUserContract { /** * The real Socialite User instance. * * @var \Laravel\Socialite\Contract...
true
ae321a8344a90438545405d94456458f935bdf1d
PHP
deweppro/db
/src/Dewep/Pgsql.php
UTF-8
567
2.96875
3
[ "MIT" ]
permissive
<?php namespace Dewep; /** * Class Pgsql * * @package Dewep */ class Pgsql extends PDO\PDO { /** * Pgsql constructor. * * @param string $host * @param int $port * @param string $dbname * @param string $user * @param string $pwd */ public function __construct(stri...
true
3067032237bcdaf26a14d2a578abf141972ec600
PHP
weiyegr/fsobetter
/system/application/models/classo.php
UTF-8
547
2.5625
3
[]
no_license
<?php class Classo extends Model{ function option($id,$img='',$level=0){ $result=$this->db->query("select * from type where type_id=1 and parentid='".$id."'"); $row = $result->result_array(); foreach($row as $item){ if($item['displayid']==0){$displayid=" class=readOnly";} if($level==0){$imgl=0;}else{$imgl...
true
dead77f499ca59af369f4d737775a3d898b2a26e
PHP
CristianJaramillo/conecta-turismo-hack-the-job
/app/Repositories/AirAvailRepository.php
UTF-8
1,217
2.671875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: MB88643 * Date: 29/05/2019 * Time: 05:14 PM */ namespace App\Repositories; use SimpleXMLElement; /** * Class AirAvailRepository * @package App\Repositories */ abstract class AirAvailRepository implements Repository { protected $tagName; protected $key; p...
true
c55287c76029cd74156e5a23d858eaeb471dab0e
PHP
Solarman1/smsSendTest
/app/Services/SmsServiceInterface.php
UTF-8
108
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Services; interface SmsServiceInterface { public function sendSms($phoneNumber); }
true
94c3db150dd043f48aad6979a695f8b87b871902
PHP
henryroberts/ass_inf205
/lib/product.php
UTF-8
1,499
2.734375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Anh Đức * Date: 9/10/2015 * Time: 10:39 AM */ include_once 'database.php'; class product extends database { public $id_san_pham = NULL; public $id_loai_sp = NULL; protected $ten_sp = NULL; protected $gia_sp = NULL; protected $mo_ta = NULL; protected $trang_thai = NULL...
true
c076147f6fcbb47f0400ec609ba6c6b868a0c27f
PHP
barcelona-delpy/learn_php
/init.php
UTF-8
4,280
2.875
3
[]
no_license
<?php use Bookstore\Domain\Book; use Bookstore\Domain\Customer; use Bookstore\Domain\Payer; use Bookstore\Domain\Customer\Basic; use Bookstore\Domain\Customer\Premium; use Bookstore\Exceptions\InvalidIdException; use Bookstore\Exceptions\ExceededMaxAllowedException; use Bookstore\Domain\Customer\CustomerFactory; use B...
true
efd6fcbdae6c3d945b0f6f4ea85b1e3dedff666c
PHP
mymyoux/laravel-core-starter
/Services/Translate.php
UTF-8
1,596
2.703125
3
[]
no_license
<?php namespace Core\Services; use Core\Model\Translation; class Translate { protected $default_locale; public function setDefaultLocale($locale) { $this->default_locale = $locale; } protected function getDefaultLocale() { if(!isset($this->default_locale)) { ...
true
a9ee6e31e7fad5dfcf42bbc98e1d75d2b39d0690
PHP
ShowmanAh/SolidPrinciples
/Classes/DefensePlayer.php
UTF-8
349
2.796875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: SHOWMAN * Date: 2/7/2020 * Time: 4:10 AM */ namespace Classes; use Interfaces\Defense; use Interfaces\PlayerInterface; class DefensePlayer implements Defense, PlayerInterface { public function play(){ $this->defense(); } public function defense() { e...
true
5b474d9892c87ffed22a5cb6f3445aadfc96bb50
PHP
Nagr0m/projet-moyo
/app/Repositories/ScoreRepository.php
UTF-8
2,873
2.84375
3
[]
no_license
<?php namespace App\Repositories; use Auth; use App\Score; use App\Choice; class ScoreRepository { protected $score; protected $choice; public function __construct (Score $score, Choice $choice) { $this->score = $score; $this->choice = $choice; } /** * Retrieves all use...
true
ee81adf86d232a9b303ebd4a2e6cb0688f0b3c88
PHP
octalmage/wib
/php-7.3.0/ext/intl/tests/locale_accept.phpt
UTF-8
983
2.6875
3
[ "BSD-4-Clause-UC", "BSD-3-Clause", "LicenseRef-scancode-other-permissive", "TCL", "ISC", "Zlib", "LicenseRef-scancode-public-domain", "BSD-2-Clause", "blessing", "MIT" ]
permissive
--TEST-- locale_accept_from_http --SKIPIF-- <?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?> --FILE-- <?php /* * Try parsing different Locales * with Procedural and Object methods. */ function ut_main() { $res_str = ""; $http_acc = array( 'en-us,en;q=0.5', 'da, en-gb;q=0.8, en;q=0.7', 'zh, en-us;q=...
true