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
0f521d0ca93d71cc9e6e8595fd2ae650765c52b9
PHP
lukesnowden/laraview
/app/Console/Commands/LaraviewCompiler.php
UTF-8
1,473
2.609375
3
[ "MIT" ]
permissive
<?php namespace Laraview\Console\Commands; use Illuminate\Console\Command; use Laraview\Libs\Blueprints\RegisterBlueprint; class LaraviewCompiler extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'laraview:compile {--o|--only=...
true
1ece4e63dd50a4bc60bf54c7bdac87a3a0464d2d
PHP
Moverr/myshop
/application/models/call_off_m.php
UTF-8
1,560
2.53125
3
[]
no_license
<?php // ******************************* INFORMATION ***************************// // ***********************************************************************// // // ** contracts model - Handles all database requests concerning contracts // ** // ** @author name <mcengkuru@newwavetech.co.ug> // ** @date 4/jan/20...
true
42a8a72b50a8bf24ea906153fa3d879a391354f9
PHP
tyketd/tyketd
/app/RestServer.php
UTF-8
3,490
2.875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Stratege Takam * Date: 02/08/2018 * Time: 22:45 */ namespace App; class RestServer { public $baseUrl = ""; public $baseHost = ""; public function __construct($api, $path) { $this->baseUrl = $api; // chemin vers l'api exemple (http://api.supfile....
true
d9d4c325cb63b84b137cae8b3123ef29adf708e6
PHP
a1comms/vicidial-agent-reporting
/test/hourlyAgentTimesYesterday.php
UTF-8
3,298
2.796875
3
[]
no_license
<?php require "../config.php"; $camp = (@$_GET['camp'] != "" ? $_GET['camp'] : 'CS'); $data = new Campaign($camp); function yday($time){ return $time - (24*3600); } $yday_start = yday(mktime(0,0,0)); $yday_end = yday(mktime(23,59,59)); $data->setTimePeriod($yday_start, $yday_end); echo "<h1>Data For Campaign...
true
d08784a9068ddaaf409a8e8a7aad6277a93e5816
PHP
mdomansky/laravel-markets-api
/app/Services/Markets/MOEX/ImportStocks.php
UTF-8
1,591
2.53125
3
[]
no_license
<?php namespace App\Services\Markets\MOEX; use App\Repositories\CurrencyRepository; use App\Repositories\StockRepository; class ImportStocks { private StockRepository $stockRepository; private CurrencyRepository $currencyRepository; private string $moexStocksUrl = 'https://iss.moex.com/iss/engines/stoc...
true
f9c37104fb37ab9431e35fd04dd094abe6244302
PHP
DonValino/4th-Year-Project
/Entities/SignInEntities.php
UTF-8
1,314
2.890625
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 SignInEntities * * @author Jake Valino */ class SignInEntities { public $id; public $userId; ...
true
52765a71702b43a07c5c4868447fcc01edf29505
PHP
Botnary/fusion-rewrite-lib
/src/Fusion/Rewrite/RewriteManager.php
UTF-8
1,850
2.703125
3
[]
no_license
<?php /** * Created by IntelliJ IDEA. * User: botnari * Date: 15-03-30 * Time: 7:02 PM */ namespace Fusion\Rewrite; use Symfony\Component\Yaml\Parser; class RewriteManager { private $_begin = '#begin_rewrite'; private $_end = '#end_rewrite'; function enable() { if (!$this->isEnabled())...
true
0863cd9ad9ae2c5de9934f5a0c38de3456e5b5f8
PHP
terablaze/core
/src/Container/ContainerAwareTrait.php
UTF-8
1,529
2.765625
3
[ "MIT" ]
permissive
<?php namespace Terablaze\Container; use ReflectionException; use Terablaze\Container\Exception\ContainerException; use Terablaze\Container\Exception\ParameterNotFoundException; trait ContainerAwareTrait { /** * @var ContainerInterface|Container $container */ protected $container; /** * @...
true
1ef1cc13375d372805e57c08744422290e275759
PHP
nikoedyr/WEB-AHP-TOPSIS
/ahp topsis/functions.php
UTF-8
9,272
2.578125
3
[]
no_license
<?php error_reporting(~E_NOTICE); session_start(); include'config.php'; include'includes/db.php'; $db = new DB($config['server'], $config['username'], $config['password'], $config['database_name']); include'includes/general.php'; include'includes/paging.php'; $mod = $_GET['m']; $act = $_GET['act']; $nRI = ...
true
8e181e3eeb15194b273b8c608714900cec76e8f3
PHP
code-action/sipra
/app/Http/Requests/ConstanciaRequest.php
UTF-8
914
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class ConstanciaRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** * Get...
true
8f5dac262ae1de4cdd58dab87eaa966bb845fd0b
PHP
stratease/emvc
/data/SchemaList.class.php
UTF-8
7,324
3.203125
3
[ "Apache-2.0" ]
permissive
<?php class SchemaList extends ArrayIterator { /** * Is loaded boolean. * @var bool */ public $isLoaded = false; /** * Eelement array. * @var array */ private $elements = array(); /** * Key association array. * @var array */ private $keyAssocation = array(); /** * Index int...
true
e2b0d7a9148e70f56aab70c1738359081959781f
PHP
DimaFormaniuk/SeconTal.1
/del.php
UTF-8
1,688
2.578125
3
[]
no_license
<?php session_start(); require_once "functions.php"; header('Content-Type: text/html; charset=utf-8'); $id = $_SESSION["id"]; echo "Привіт, ".$_SESSION["login"]; echo ' <a href="exit.php">Вихiд</a> <br>'; $m=getTovar($_SESSION["id"]); $j=$_GET["id"]; for($i=0;$i<count($m);$i++) { if ($m[$i]["id"] == $j) { $...
true
f9857b3857e48aedc67b5b2cdc0b47581b8ee975
PHP
shaikalimulla/Apps
/Web Applications/Travel Info Web Application/Source Code/signup.php
UTF-8
3,212
2.65625
3
[]
no_license
<?php //Name : Alimulla Shaik //Purpose: A php page to handle signup functionalities //Author : shal5122@colorado.edu //Version: 1.0 //Date : 2016/04/22 session_start(); session_regenerate_id(); include_once('/var/www/html/project/project-lib.php'); isset($_REQUEST['s'])?$s=strip_tags($_REQUEST['s']):$s=""; isse...
true
94b3ac3ae7168319db74106d5903f269855b409c
PHP
connorhu/szamlazzhu
/src/Item/InvoiceItem.php
UTF-8
3,065
2.734375
3
[]
no_license
<?php namespace SzamlaAgent\Item; use SzamlaAgent\Ledger\InvoiceItemLedger; use SzamlaAgent\SzamlaAgentException; use SzamlaAgent\Util; /** * Számlatétel * * @package SzamlaAgent\Item */ class InvoiceItem extends Item { /** * Tételhez tartozó főkönyvi adatok * * @var InvoiceItemLedger */...
true
b90de97f2f8dc231ed7a50b374a1dc1a04838efa
PHP
alaa-almaliki/graphql-custom-scalar-types
/src/GraphQL/Custom/Scalar/Types/AbstractType.php
UTF-8
2,422
2.921875
3
[ "MIT" ]
permissive
<?php namespace GraphQL\Custom\Scalar\Types; use GraphQL\Error\Error; use GraphQL\Language\AST\StringValueNode; use GraphQL\Type\Definition\CustomScalarType; use GraphQL\Utils; /** * Class AbstractType * @package GraphQL\Custom\Scalar\Types * @author Alaa Al-Maliki <alaa.almaliki@gmail.com> */ abstract class Abst...
true
5add5b2024d761c507621f1b3ceb88cf40aafa7a
PHP
paultmutai/etsprojectzeta.github.io
/dhandlesignup.php
UTF-8
1,401
2.625
3
[]
no_license
<?php include "config.php"; if(isset( $_POST['firstname'], $_POST['lastname'], $_POST['ward'], $_POST['schools'], $_POST['pnumber'], $_POST['email'], $_POST['password'], $_POST['confpassword'] )) { $firstname= trim ($_POST['firstname']); $lastname=trim ($_POST['lastname']); $ward=t...
true
19299e4086e354469de2a7c18c86ba5b7a401dad
PHP
prajputpmp/pack-repository
/src/Config/Config.php
UTF-8
1,219
2.796875
3
[]
no_license
<?php /** * An implementor class for IConfig interface * * @package repository * @version 1.0.0 * @author Prakash Rajput * @license Proprietary * @copyright */ namespace PCH\Library\Config; use PCH\Library\Config\iConfig; /** * A configuration class to set/get configurations * @author prajput * */ c...
true
54599584e01c77662df6002576aca7b819a50208
PHP
yannlo/image-ressource
/src/Image.php
UTF-8
2,461
3.28125
3
[]
no_license
<?php namespace Yannlo\ImageRessource; use Yannlo\ImageRessource\Exceptions\ImageException; class Image { private string $name; private string $type; private string $extension; public const BIG_SIZE = 'big'; public const MEDIUM_SIZE = 'medium'; public const LITTLE_SIZE = 'little'; public...
true
ee0b79aace10fc89ce1b67622b60bd365ceee8f3
PHP
bin612/PHP7
/dutchpay.php
UTF-8
208
2.890625
3
[]
no_license
<?php ##amount를 4명으로 나눈 금액 구하기 $amount = 54750; $rest = $amount % 4; $person = ($amount - $rest)/4; echo "1 인 {$person}원, 부족{$rest}원"; ##결과 1인 13687원, 부족 2원 ?>
true
5ec8a7929179193c0e5fa5888466059ae3c689da
PHP
elickzhao/laravel-study
/app/Providers/AppServiceProvider.php
UTF-8
2,548
2.6875
3
[ "MIT" ]
permissive
<?php namespace App\Providers; use App\Models\Post; use Illuminate\Support\ServiceProvider; use DB; class AppServiceProvider extends ServiceProvider { /** * Bootstrap any application services. * * @return void */ public function boot() { //视图间共享数据 view()->share('siten...
true
638d78654b9e690f68d0c80164b5f2ed3c095488
PHP
zedektador/cental_pet
/register.php
UTF-8
3,048
2.765625
3
[]
no_license
<?php include("connect.php"); $firstname = $_POST["firstname"]; $lastname = $_POST["lastname"]; $email = $_POST["email"]; $password = $_POST["password"]; $repassword = $_POST["repassword"]; $mobile = $_POST["mobile"]; $address = $_POST["address"]; $emailvalidation = "/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9]+(\.[a-z]{2,4...
true
4c188147022090298b532602d63648ff212f2337
PHP
F4N70M/fw
/Fw/Components/Classes/DbItem.php
UTF-8
558
3.109375
3
[]
no_license
<?php namespace Fw\Components\Classes; use Fw\Components\Services\Database\QueryBuilder; class DbItem { protected $db; protected $table; protected $id; public function __construct(QueryBuilder $db, string $table, int $id) { $this->db = $db; $this->table = $table; $this-...
true
9e1d6d42767667ffd71e2ea2839657eb2d7249ee
PHP
JnMik/api-generics
/src/Generic/Paging/PaginatorService.php
UTF-8
734
2.5625
3
[]
no_license
<?php namespace Support3w\Api\Generic\Paging; class PaginatorService { /** * @var PagingAbstract */ private $paging; public function __construct(PagingAbstract $paging) { $this->paging = $paging; } public function getBaseOnePaging() { return $this->paging; ...
true
58d7b4ea0266db1b4cebd6b74b765ddf51b235a4
PHP
samira2016/bourse
/Models/Entitys/Societe.php
UTF-8
3,222
3.3125
3
[]
no_license
<?php namespace Bourse\Models\Entitys; use \Exception; class Societe { private $nom; private $cp; //constant capital propre private $cb; //capital boursier private $nbta; //constant nombre total d'ation private $nbad; //nombre d'action disponible private $va; //valeur de l'action private $a...
true
5b078fce8687f6532147549a46145f25343b12ae
PHP
michelsacher/giennale
/typo3conf/ext/razor/Classes/ViewHelpers/Condition/Client/IsBrowserViewHelper.php
UTF-8
2,114
2.671875
3
[ "CC-BY-3.0" ]
permissive
<?php namespace RZ\Razor\ViewHelpers\Condition\Client; /* * This file is part of the TYPO3 CMS project. * * It is free software; you can redistribute it and/or modify it under * the terms of the GNU General Public License, either version 2 * of the License, or any later version. * * For the full copyright and l...
true
22a55fdb08fc1b0885aa5d7d55ae00f06ea74fb9
PHP
ofix/panda-log
/core/BinaryStream.php
UTF-8
9,286
2.875
3
[ "MIT" ]
permissive
<?php /* * This file is part of panda-log. * * Licensed under The MIT License * For full copyright and license information, please see the MIT-LICENSE.txt * Redistributions of files must retain the above copyright notice. * * @author code lighter * @copyright https://github.com/ofix * @we-chat 981326632 ...
true
d98e379efdd8b0c4a996d25c188fe545ce6606bb
PHP
Samah87/sushi_Webseite
/admin/eanlass.php
UTF-8
4,207
2.96875
3
[]
no_license
<?PHP session_start(); include("../inc/const.php"); if(!isset($_SESSION['login'])){ header("location: login".PHPEND); } $db = new mysqli(HOST,USER,PASS,DBANK); if ($db->connect_errno) { die('Sorry - gerade gibt es ein Problem: '.$db->connect_error); } $fehler[] = ""; $erfolg[] = ""; if(isset($_POST['submit'...
true
ece9ec2060f64be3b0af33c35fe95808d04cd862
PHP
Team0003/Swim-Meet-Signup
/Ver 2.0/src/GetKidEvents.php
UTF-8
4,416
2.75
3
[]
no_license
<?php include 'connectDB.php'; function calculateAge($a,$b){ $conn = $GLOBALS['conn']; $sql = "select TIMESTAMPDIFF(YEAR,'".$a."',"."'".$b."')"; $row = fetchFromDB($conn, $sql); return $row[0]; } $dob = $_GET["dob"]; $sex = $_GET["sex"]; $meetId=$_GET["meetId"]; $conn = connectToDB(); $GLOBALS['co...
true
f61d04199573d89ffb279114972e7f5030ec4156
PHP
tyoro/tyozo
/delete.php
UTF-8
855
2.71875
3
[ "WTFPL" ]
permissive
<?php include_once "./conf.inc"; if( empty($_POST['url']) ){ print 'param not found.'; exit; } $file_path = $DIR_PATH.$_POST['url'].'.png'; if( !is_public_file( $public_dir ,$file_path, false ) ){ print 'file not found.'; exit; } if( !unlink( $file_path )){ print 'file delete error.'; exit; } print "success....
true
fd5ead875ba93087d3ec3acbf2fb526ab0c76a80
PHP
July-c/hundred
/application/common/model/store/RoleAccess.php
UTF-8
2,985
2.515625
3
[ "Apache-2.0" ]
permissive
<?php // +---------------------------------------------------------------------- // | Common // +---------------------------------------------------------------------- // | 版权所有 2015-2020 武汉市微易科技有限公司,并保留所有权利。 // +---------------------------------------------------------------------- // | 网站地址: https://www.kdfu.cn // +...
true
b3df8a9cd7b8ac87d9fada698bc5f8eede43fd5c
PHP
FortuneSeafood/meowtemple
/app/Repositories/Meow/Lottery.php
UTF-8
557
3.046875
3
[]
no_license
<?php namespace App\Repositories\Meow; use App\Models\Meow\Lottery as LotteryModel; class Lottery { private $oLotteryModel; /** * 建構子 * * @param LotteryModel $_oModel */ public function __construct(LotteryModel $_oModel) { $this->oLotteryModel = $_oModel; } /** ...
true
9defc391ce1dfe26c69d5029175a8ba002726950
PHP
rentpost/forte-payments-php
/src/HttpClient/RequestOverrideHack.php
UTF-8
591
2.546875
3
[ "MIT" ]
permissive
<?php declare(strict_types = 1); namespace Rentpost\ForteApi\HttpClient; /** * @author Sam Anthony <sam@rentpost.com> * * This is a bit of a hack that allows Automated tests to bypass the HTTP request * to forte and instead pass specific JSON. */ class RequestOverrideHack { static protected $overrideData = ...
true
dd64e5ba51b8b50261a5dcc2f45038693e78e12d
PHP
Nico-17/Exercices-PHP
/modules/module-7/12-nometsexe.php
UTF-8
365
2.546875
3
[]
no_license
<HTML> <head> <meta charset="utf-8" /> </head> <BODY> <?php if ($_GET['sexe']=="M") { echo "Bonjour Monsieur ". $_GET['nom']."."; } else { echo "Bonjour Madame ". $_GET['nom']."."; } ...
true
af1b3ea1df0b2a42fa1dcde78e94343798826856
PHP
jemzubiri/PetShop
/login.php
UTF-8
1,531
2.765625
3
[]
no_license
<?php session_start();// Starting Session // Define $username and $password $username=$_POST['email']; $password=$_POST['password']; // Establishing Connection with Server by passing server_name, user_id and password as a parameter $connection = @mysqli_connect('localhost', 'root', '', 'petshopdb'); ...
true
5784206a8403cd4959ee64672a07fbd43b2f151c
PHP
maxim-barbotkin1/test-lara-vue
/api/app/Models/Team.php
UTF-8
745
2.65625
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Team extends Model { use HasFactory; protected $fillable = ['name']; /** * The attributes that are not mass assignable. * * @var array */ protected $gu...
true
b90ff94bceb9626189272733144d5a944fdea5ec
PHP
tulparbot/tulpar
/app/Tulpar/Commands/General/AboutUserCommand.php
UTF-8
2,478
2.53125
3
[]
no_license
<?php namespace App\Tulpar\Commands\General; use App\Enums\CommandCategory; use App\Models\UserRank; use App\Tulpar\Commands\BaseCommand; use App\Tulpar\CommandTraits\HasMemberArgument; use App\Tulpar\Contracts\CommandInterface; use App\Tulpar\Helpers; use Discord\Parts\Embed\Embed; use Discord\Parts\Guild\Role; us...
true
77e667a14a21e19433e7662b288276c4983f8fea
PHP
smlparry/Check-In
/app/models/ConnectedUser.php
UTF-8
254
2.578125
3
[ "MIT" ]
permissive
<?php class ConnectedUser extends Eloquent { protected $fillable = ['user_id', 'connected_users']; protected $table = 'connected_users'; public function connectedUsers( $id ) { return $this->whereUserId( $id )->pluck( 'connected_users' ); } }
true
a01777cc0ef12702f797658e8968ed08d4a5e2fb
PHP
phillipsharring/profphp
/src/User/Domain/UserRepository.php
UTF-8
246
2.78125
3
[]
no_license
<?php declare(strict_types=1); namespace SocialNews\User\Domain; interface UserRepository { public function add(User $user): void; public function save(User $user): void; public function findByUsername(string $username): ?User; }
true
4b220e0944bca0fe63e56a4d4c85efc18ba5e797
PHP
shreenivasan/Tutorials
/php/oops/inheritance.php
UTF-8
298
3.359375
3
[]
no_license
<?php class B { public $bname='B'; public function getName() { echo $this->bname; } } class A extends B { private $aname='A'; public function getName() { echo parent::getName(); echo $this->aname; } } $aobj=new A(); echo $aobj->getName();
true
79012916c97bf9996180d148646dd0ef6d2904bf
PHP
EdwinWalela/php-auth
/db.php
UTF-8
2,079
3.15625
3
[]
no_license
<?php session_start(); // This function establishes db connection function connect(){ $servername = "localhost"; $username = "root"; $pass = ""; $db = "login"; return new mysqli($servername,$username,$pass,$db); } // This function recieves a username and passwo...
true
6e86b300b25dd3269c2428230f5c22c6485aa7ad
PHP
BennyC/zeus-barcode
/test/Upc/Ean13Test.php
UTF-8
4,210
2.53125
3
[]
no_license
<?php namespace ZeusTest\Barcode\Upc; use Zeus\Barcode\Upc\Ean13; /** * * @author Rafael M. Salvioni */ class Ean13Test extends \PHPUnit_Framework_TestCase { /** * @test */ public function validationTest() { $dataArr = [ '5901234123457' => [true, true], '9780...
true
697945bd9ffc814d167aa2804d83378fa468f9c7
PHP
therealEthanGoldman/SmartPillBottle
/pillbottle/www/page3.php
UTF-8
1,045
2.59375
3
[]
no_license
<?PHP session_start(); if (!(isset($_SESSION['login']) && $_SESSION['login'] != '')) { header ("Location: login3.php"); } ?> <html> <head> <title>IOT Device User Interface</title> </head> <body> <p><big><b>User Logged in</b></big></p> <p><b>Dosing Schedule</b></p> <table border cols=2> <tr><td>Tim...
true
c1fca52a06eda747f59f276723a39499c2c9c9b4
PHP
DominikStyp/PHPDesignPatterns
/SPL/SplObserver/SplSubjectTrait.php
UTF-8
558
3.078125
3
[]
no_license
<?php /* * This trait can be used in every class that has to implement SplSubject interface */ trait SplSubjectTrait { private $observersArray = array(); public function attach(SplObserver $observer){ $id = spl_object_hash($observer); $this->observersArray[$id] = $observer; } public funct...
true
82a79d69a727b1f8f09936662411626265609418
PHP
elliexu119/personal-website-code-old
/contact me.php
UTF-8
934
2.640625
3
[]
no_license
<?php $errors = ''; $myemail = 'elliexu119@gmail.com';//<—–Put Your email address here. if(empty($_POST['name']) || empty($_POST['email']) || empty($_POST['message'])){ $errors = '\n Error: all fields are required'; } $name = $_POST['name']; $email_address = $_POST['email']; $message = $_POST['message']; if(...
true
0820211c905ee888e88c6d2d31776176cdcdb2f6
PHP
raghast/Projet_blog
/Blog_Aurelien/Utils/flashbag.php
UTF-8
283
2.734375
3
[]
no_license
<?php // Fonction d'attribution du message 'succés' à la variable SESSION['flashbag'] function addFlash($message) { $_SESSION['flashbag'] = $message; } // Fonction qui renvois le message 'succés' function getFlash() { return ($_SESSION['flashbag']); }
true
e87a7d9c27ff96a34f830e0bbd462ee2a5a0c019
PHP
Ndu-Systems/plant-tech-php-api
/models/Plant.php
UTF-8
2,786
3.09375
3
[]
no_license
<?php class Plant { //DB Stuff private $conn; //Constructor to DB public function __construct($db) { $this->conn = $db; } public function getAll() { $query = "SELECT * FROM plant"; $stmt = $this->conn->prepare($query); $stmt->execute(array()); ...
true
0415c760f3275fb4d8ad647c6d26526038c67ab6
PHP
surfingdirt/rest-api
/library/Lib/Form/Element/Level.php
UTF-8
652
2.546875
3
[]
no_license
<?php class Lib_Form_Element_Level extends Zend_Form_Element_Select { const BEGINNER = 'level_beginner'; const INTERMEDIATE = 'level_intermediate'; const PRO = 'level_pro'; public static $levels = array( 1 => self::BEGINNER, 2 => self::INTERMEDIATE, 3 => self::PRO, ); public function __constr...
true
e35f7e081dd7de1e42b0c58d05bf1dff176f8b9c
PHP
hpunforgettable/servidor
/otros/post.php
UTF-8
589
3.21875
3
[]
no_license
<?php $mensaje = ""; if (isset($_POST["nombre"])&& $_POST["nombre"]!= "") //genera un true or un false para sabaer si existe o no nombre { $mensaje = "El nombre es: ". $_POST["nombre"]; } else { $mensaje = "Debe escribir su nombre antes de continuar"; } ?> <!DOCTYPE html> <html> <head> <title></title...
true
3adc8e4561766116669abc4d585a613da57b5b37
PHP
asmahar545/schoolFree
/Modele/Adult.php
UTF-8
2,214
2.859375
3
[]
no_license
<?php require_once 'Framework/Modele.php'; class Adult extends Modele { //return un tout les adults public function getAdults() { $sql = "select * from adult"; $personnel= $this->executerRequete($sql); return $personnel; } //return une seul adult public function getad...
true
707f85e3cbab4cebc740ef08cd7fff09802dd4d4
PHP
Titil364/jreadsfirstproject
/model/ModelAssocFormPI.php
UTF-8
1,605
2.78125
3
[]
no_license
<?php require_once File::build_path(array('model', 'ModelAssoc.php')); class ModelAssocFormPI extends ModelAssoc{ private $formId; private $personnalInformationName; protected static $object = "AssocFormPI"; protected static $primary1 = "formId"; protected static $primary2 = "personnalInforma...
true
d7565bf704972b8b026c412f37259c6d9564af3f
PHP
jacomyma/GEXF-Atlas
/atlas/engine/ezc/ConsoleTools/tests/question_dialog_regex_validator_test.php
UTF-8
5,581
2.640625
3
[ "BSD-3-Clause" ]
permissive
<?php /** * ezcConsoleQuestionDialogRegexValidatorTest class. * * @package ConsoleTools * @subpackage Tests * @version 1.5.1 * @copyright Copyright (C) 2005-2009 eZ Systems AS. All rights reserved. * @license http://ez.no/licenses/new_bsd New BSD License */ /** * Test suite for ezcConsoleQuestionDialogRegexV...
true
3a73f2904306ff3e9cfdc65701db25f51e4a8467
PHP
JonNixonCodes/TravelBees
/index.php
UTF-8
2,845
2.546875
3
[]
no_license
<!DOCTYPE html> <?php include("session.php"); include('connect.php'); if ($_SERVER["REQUEST_METHOD"] == "POST") { $username = $_POST['inputUsername']; $password = $_POST['inputPassword']; $registered = false; //execute query $sqlQuery = "SELECT * FROM user WHERE Username = '" . $username . "';"; $resul...
true
5d40ac720cb25a2bc144bb8cb149114385184b85
PHP
kinglozzer/silverstripe-cacheinclude
/src/Configs/YamlConfig.php
UTF-8
1,003
2.515625
3
[ "MIT" ]
permissive
<?php namespace Heyday\CacheInclude\Configs; use Doctrine\Common\Cache\CacheProvider; use Symfony\Component\Yaml\Yaml; /** * Class YamlConfig * @package Heyday\CacheInclude\Configs */ class YamlConfig extends ArrayConfig { /** * @param $yaml * @param CacheProvider $cache */ pu...
true
bd7f68295f0eb8094dc08dcd493f6464fed44826
PHP
EdgarEmmanuel/Banque_Peuple_SamaneMVC
/src/model/AgencesRepository.php
UTF-8
750
2.6875
3
[]
no_license
<?php namespace src\model; use libs\system\Model; class AgencesRepository extends Model{ public function __construct(){ parent::__construct(); } public function getAgenceById($id){ if($this->db != null){ $data = $this->db->getRepository("Agences")->find($id); } ...
true
6b7082d1bd91c9e49aa9509b83bfd229307af2dd
PHP
Jovalga/Web-Judicatura
/EvaluarEscrito.php
UTF-8
8,756
3.0625
3
[ "MIT" ]
permissive
<?php // Iniciamos las variables de sesión if(session_status()==PHP_SESSION_NONE){ session_start(); } // Activamos que se muestren los errores error_reporting(E_ALL); ini_set('display_errors', '1'); // Declaramos que necesitamos el archivo db.php para acceso a base de datos // Necesitamos también el archivo Corregi...
true
de22106058465a69d8e58445848c1dc30c2eed65
PHP
Korbeil/dhl-express-php-api
/generated/Model/SupermodelIoLogisticsExpressRatesProductsItemItemsItemBreakdownItemPriceBreakdownItem.php
UTF-8
3,600
2.8125
3
[ "MIT" ]
permissive
<?php namespace Korbeil\DHLExpress\Api\Model; class SupermodelIoLogisticsExpressRatesProductsItemItemsItemBreakdownItemPriceBreakdownItem { /** * @var array */ protected $initialized = []; public function isInitialized($property): bool { return \array_key_exists($property, $this->in...
true
8b64366205fcede47c3d1b7a496e0218a21a2bb6
PHP
ellenli32/ica
/app/lib/jointsources.php
UTF-8
19,369
2.625
3
[ "MIT" ]
permissive
<?php namespace ICA\JointSources; require_once(__DIR__ . "/shared.php"); require_once(__DIR__ . "/contents.php"); require_once(__DIR__ . "/sources.php"); /** * Abstract for joint source. */ class JointSource { public $meta = []; } /** * Returns a list of JointSource instances created ...
true
ade9eb012e9edbecf52ed426be41cfde26d1e8f3
PHP
Codentia/Cloudeware-PHP-Wrapper
/app/cloudeware.config.php
UTF-8
1,334
2.578125
3
[ "MIT" ]
permissive
<?php /* cloudeware.config.php * * Configuration related functionality. * * Copyright Mattched IT 2012 onwards. * * 18/05/2012 - MC: Created file. */ class CloudewareConfig { const cloudeware_core_version = 1.0; public $cloudeware_parts_url; public $cloudeware_api_wsdl; public ...
true
ed120472077fcb95af459541f712f4de426f482d
PHP
syedomair/ct-api-bk
/src/SyedOmair/Bundle/AppBundle/Services/ProductService.php
UTF-8
2,714
2.578125
3
[]
no_license
<?php namespace SyedOmair\Bundle\AppBundle\Services; use SyedOmair\Bundle\AppBundle\Entity\Product; use SyedOmair\Bundle\AppBundle\Exception\ProductServiceException; class ProductService extends BaseService { public function __construct($entityManager, $errorService) { parent::__construct($entityMana...
true
7e8eac27ea61834135a55cf83e846d1a29c4f38a
PHP
shakti2520/Employee-management
/index.php
UTF-8
3,301
2.703125
3
[]
no_license
<?php $servername = "localhost"; $username = "USER_NAME"; $password = "PASSWORD"; $dbname = "convergesol"; // Create connection $conn = new mysqli($servername, $username, $password, $dbname); // Check connection if ($conn->connect_error) { die("Connection failed: " . $conn...
true
6727c2bae1a3fede46440581a2dc80cd5378315f
PHP
Danack/intahwebz-routing
/src/Intahwebz/Routing/Route.php
UTF-8
11,968
2.796875
3
[ "MIT" ]
permissive
<?php namespace Intahwebz\Routing; use Intahwebz\Request; use Intahwebz\Exception\UnsupportedOperationException; class Route implements \Intahwebz\Route { use \Intahwebz\SafeAccess; private $name; // "pictures" private $pattern; // "/pictures/{page}/{debugVar}", private $regex; // "#^/...
true
e3deabc6a3f38b31c40c13b1bdf87f0870d8c43e
PHP
odracci/EventbriteBundle
/Eventbrite/AbstractMapper.php
UTF-8
863
2.6875
3
[]
no_license
<?php namespace SFBCN\EventbriteBundle\Eventbrite; /** * The abstract entity mapper * * @author Christian Soronellas <theunic@gmail.com> */ abstract class AbstractMapper implements MapperInterface { /** * @var \SFBCN\EventbriteBundle\Eventbrite\Mapper */ private $mapper; /** * @param \...
true
54b0cbc2352a8eac02958f14124c50e803833d36
PHP
heckme/photo-blog
/backend/src/app/Services/Photo/ThumbnailsGeneratorService.php
UTF-8
1,528
2.6875
3
[ "MIT" ]
permissive
<?php namespace App\Services\Photo; use App\Services\Photo\Contracts\ThumbnailsGeneratorService as ThumbnailsGeneratorServiceContract; use Illuminate\Contracts\Filesystem\Factory as Storage; use Lib\ThumbnailsGenerator\Contracts\ThumbnailsGenerator; /** * Class ThumbnailsGeneratorService. * * @package App\Service...
true
dcb4e57f82057a1ecc7e5e80b0879fe5ef94f9c7
PHP
fundacion-ciudad-del-saber/ivvy-sdk-php
/tests/Model/InvoiceTest.php
UTF-8
4,015
2.6875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Fcds\IvvyTest\Model; use Fcds\IvvyTest\BaseTestCase; use Fcds\Ivvy\Model\Address; use Fcds\Ivvy\Model\Invoice; use Fcds\Ivvy\Model\InvoiceItem; /** * Class: InvoiceTest * * @see BaseTestCase * @final * @covers Fcds\Ivvy\Model\Invoice */ class InvoiceTest extends BaseTes...
true
d022f67c64795987001643a9218a19763c5df950
PHP
aakritikishore/factory
/PropertyFetcherDOA.php
UTF-8
398
2.875
3
[]
no_license
<?php require_once("PropertyFetcherInterface.php"); require_once("ThirdPartyCustomers/HomeAway.php"); require_once("ThirdPartyCustomers/CondoWorld.php"); class PropertyFetcherDOA { public function getPropertyFetcher($name) { switch ($name) { case 'HA': return new HomeAway(); break; ...
true
97e371195790519c1a85511daca7df4e3835e367
PHP
AloneCoder/NoCaptcha-PHP
/src/NoCaptcha/RequestMethod/SocketGet.php
UTF-8
1,915
2.84375
3
[ "MIT" ]
permissive
<?php namespace NoCaptcha\RequestMethod; use NoCaptcha\RequestMethod; use NoCaptcha\RequestParameters; class SocketGet implements RequestMethod { const NOCAPTCHA_HOST = 'api-nocaptcha.mail.ru'; const SITE_VERIFY_PATH = '/check'; const BAD_REQUEST = '{"status": "bad request", "code": 0 }'; const B...
true
02c37a97b490137d554bce92e533bfebc46769d4
PHP
Skandy1/WAD-Lab
/Program-2/index.php
UTF-8
463
2.921875
3
[]
no_license
<!DOCTYPE html> <html> <head> <title>Cookie</title> </head> <body> <?php $cookie_name="skanda"; $cookie_value="NULL"; $t=60*60*24*60+time(); setcookie($cookie_name,date("G:i-m/d/y"),$t); if (!isset($_COOKIE[$cookie_name])) { ?> <h1>Cookie Name: <?php echo $cookie_name; ?> is not set! </h1> <?php }else{ ?> ...
true
635aa5da1f11790c0a89466ce51b306ed7395431
PHP
polrg/webbteknik
/future-stuff/inriktningsval/printcodes.php
UTF-8
1,198
2.828125
3
[]
no_license
<?php /* * Skriv ut koder * * @author Lars Gunther <gunther@keryx.se> */ error_reporting(E_ALL); ini_set("display_errors", "on"); // Inloggad? /** * Databasanslutning */ require_once("dbcx.php"); $dbh = dbcx(); // Borde det finnas en "vad är min kod" funktion? JA - via mejl! $stmt = $dbh->prepare("SELECT for...
true
1eaffe99836b3511f249f8a7711b9db8a8b14ac0
PHP
imisiuk/manao_test
/2/4.php
UTF-8
284
3.921875
4
[]
no_license
<?php /* * 4. В массиве А(N) найти количество пар одинаковых соседних элементов. */ $n = 5; $a = [2, 1, 2, 4, 4]; $count = 0; for ($i = 1; $i < $n; $i++) { if ($a[$i] == $a[$i - 1]) { $count++; } } echo $count;
true
a3c014a7bf4cee7967cac512238dd03f4fd6587c
PHP
WraRapap/Boutique
/system/widgets/admin/data/models/meta.php
UTF-8
490
2.515625
3
[]
no_license
<?php class Meta_Model extends WidgetModel{ public function getClassMeta(){ return $this -> widgetMeta -> class_fields; } public function getSpecialClassMeta(){ } public function getItemMeta(){ return $this -> widgetMeta -> item_fields; } public function getSearchMeta(){ if(isset($this -> widgetMeta ...
true
4c18ad0f3493ac3f1f43f2c7cade7b4fc1e82b65
PHP
hardzal/electionApps
/application/db/migrations/20191021074112_roles.php
UTF-8
1,086
2.640625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php class Migration_roles extends CI_Migration { public function up() { $this->dbforge->add_field(array( 'id' => array( 'type' => 'INT', 'constraint' => 11, 'unsigned' => TRUE, 'auto_increment' => TRUE ), 'role' => array( 'type' => 'VARCHAR', 'constraint' => 255, 'default' => ...
true
fcd62ab571c5f09f18edd2216e3aeadb0160f0ee
PHP
KudzaisheRanganai/SP
/pages/admin/PHPcode/audit_log.php
UTF-8
1,365
2.59375
3
[]
no_license
<?php include_once("../../sessionCheckPages.php"); //check if all values are set if (!isset($_POST["Sub_Functionality_ID"]) && !isset($_POST["changes"]) ) { echo "You are missing a Functionality_ID or changes in your post method"; exit; } $Functionality_ID= $_POST["Sub_Fun...
true
32b0b4e0753e82938e8a28c313272dde0c898e86
PHP
petemikhaeil/PDOsAndSQLPractice
/linkingPHPtoSQL.php
UTF-8
1,320
2.71875
3
[]
no_license
<?php $db = new PDO('mysql:host=127.0.0.1;dbname=families', 'root'); $db->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_ASSOC); $query = $db->prepare( "SELECT `children`. `name` FROM `children` INNER JOIN `colors` ON `children`.`f_color` = `colors`.`id` WHERE `colors`.`color` = 'red'; "); $query->execu...
true
86e73541f2227f3b9eee73111f9042eac7e7ab41
PHP
AStateOfCode/Dadatata
/src/Filter/Jpegoptim/OptimizeOptions.php
UTF-8
1,722
2.515625
3
[ "MIT" ]
permissive
<?php namespace Asoc\Dadatata\Filter\Jpegoptim; use Asoc\Dadatata\Filter\Options; use Symfony\Component\OptionsResolver\OptionsResolver; /** * Class OptimizeOptions * * @package Asoc\Dadatata\Filter\Jpegoptim */ class OptimizeOptions extends Options { const OPTION_QUALITY = 'quality'; const OPTION_THRESH...
true
26438b68d33ed3dc442fb22453bd90b0b9f5e985
PHP
ibneturabhassan/ZKITS
/req.php
UTF-8
1,660
2.671875
3
[]
no_license
<?php include 'conn.php'; $DD = $_POST['Date']; $MM = $_POST['Month']; $YY = $_POST['Year']; $birth = "$YY-$MM-$DD"; $p1 = $_POST['pass']; $p2 = $_POST['pass2']; $a = $_POST['firstname']; $b = $_POST['lastname']; $c = $_POST['username']; $d = $_POST['gender']; $e = $_POST['classsection']; $f = $_POST['zno']; $g = $...
true
8a6656e86d12023645dcac464b078c73cde3a370
PHP
gadixsystem/systeminformation
/src/tests/LegacyTest.php
UTF-8
1,333
2.609375
3
[ "MIT" ]
permissive
<?php namespace gadixsystem\systeminformation\tests; use gadixsystem\systeminformation\CPU; use gadixsystem\systeminformation\Disk; use gadixsystem\systeminformation\Memory; use PHPUnit\Framework\TestCase; class LegacyTest extends TestCase { protected const LEGACY_REPORT_KEYS = [ 'free', 'used', ...
true
0d760fd32c0e4e52b0ce5fb5529593a9f94f7504
PHP
M-Belanda/web_php_BD_AUT-2017
/modeles/Biere.class.php
UTF-8
5,088
3.03125
3
[]
no_license
<?php /** * Class Biere * * * @version 1.0 * @update 2017-08-16 * @license MIT * @license http://opensource.org/licenses/MIT * */ class Biere { const NOMBRE_PAR_PAGE =10; private $_db; function __construct () { $this->_db = new mysqli("localhost", "root", "", "bieres");//aller ch...
true
3b5df96b2b12ba52f70f045ad1e0a760fc81c94f
PHP
huizhang-php/GraduationProject
/application/common/tool/ProcessTool.php
UTF-8
1,299
2.828125
3
[ "Apache-2.0" ]
permissive
<?php /** * User: yuzhao * CreateTime: 2019/3/20 下午12:13 * Description: */ namespace app\common\tool; class ProcessTool { /** * User: yuzhao * CreateTime: 2019/3/19 下午4:18 * Description: 守护进程模式启动 */ public static function daemonStart() { // 守护进程需要pcntl扩展支持 if (!function...
true
7f03334510e80fdf6d215bf9c4b6ac7cb58a7919
PHP
callseven/ecommerce
/crud/app/Entity/Vaga.php
UTF-8
1,083
3.03125
3
[]
no_license
<?php namespace App\Entity; use \App\Db\Database; use \PDO; class Vaga { /** * Identificador unico da vaga * @var integer */ public $id; /** *Titulo da vaga *@var string */ public $titulo; /** *Descricao da vaga (pode conter html) *@var string */ public $descricao; /** *Defini-se a vaga que esta ati...
true
ce041126c2fb71dce00aeb750f4e94119ea6be07
PHP
SBaof/msgBoard
/cookie/login.php
UTF-8
1,096
2.515625
3
[]
no_license
<?php if (isset($_POST['submit']) && !empty($_POST['submit'])) { setcookie('user', $_POST['user'], time() + 24 * 3600); header("location: index.php"); if (isset($_COOKIE['user'])) { var_dump($_COOKIE); } } ?> <html > <head> <meta charset="UTF-8"> <title>登录</title> </head> <body> ...
true
716820a56c488746b92a5e7e34abca9be54b4536
PHP
jeka-pc13/rentacar
/application/libraries/Carro.php
UTF-8
2,921
3.046875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php if ( ! defined('BASEPATH')) exit('No se permite el acceso directo al script'); /** * Class for carro. */ class Carro { public $id; public $modelo; public $fabricante; public $cor; public $disponibilidade; /** * Gets the value of id. * * @return int */ public function getId...
true
96850ac2335c2fd9f338a38de23ba2002ee9849c
PHP
Rinanopiyana/php-prak-8
/lat_15.php
UTF-8
252
3.328125
3
[]
no_license
<!DOCTYPE html> <html> <head> <title>lat_15</title> </head> <body> <?php $jk; print("Masukkan kode Jenis Kelamin : "); if($jk = 1) {print(" laki-laki ");} elseif ($jk =2) {print("perempuan");} else {print("Semua perempuan");} ?> </body> </html>
true
f614c52668377d07f01808669c8eca3643e94477
PHP
loevgaard/linkmobility-php-sdk
/src/ValueObject/Sender.php
UTF-8
407
2.78125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Loevgaard\Linkmobility\ValueObject; use Assert\Assert; class Sender extends StringValueObject { public function __construct(string $value) { // if the sender is alphanumeric, test the length if (!preg_match('/^\+[0-9]+$/i', $value)) { Assert...
true
cc5e0f2a4e95778812bf127d82f7d72f8613761d
PHP
ibrahim-kardi/crm_proj
/Blab/Mvc/Models/Blab_Model.php
UTF-8
1,476
2.8125
3
[ "MIT" ]
permissive
<?php namespace Blab\Mvc\Models; use Blab\Libs\Database; use Blab\Libs\Configuration; class Blab_Model { protected $_db=null; private static $_instance=null; public function __construct(){ $configuration = new Configuration(array( "type" => "ini" )); $path = ROOT.DS.'App'.DS.'Config'.DS.'database'; ...
true
8f7e85635821151e46e0d5799608cb3760d8476e
PHP
nemanjavx/news-portal
/app/Models/User.php
UTF-8
2,044
2.671875
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; use App\Models\UserRole; use Carbon\Carbon; use Illuminate\Support\Facades\DB; class User ...
true
38d5bdb6df2653d4e8ce0056b0015745d8456bbc
PHP
HansPeterOrding/codefights_solutions_arcade_php
/03_Corner_Of_0s_And_1s/02_ArrayPacking.php
UTF-8
187
2.921875
3
[]
no_license
<?php function arrayPacking($a) { $output = ""; foreach($a as $val) { $output = str_pad(decbin($val), 8, "0", STR_PAD_LEFT) . $output; } return bindec($output); }
true
b5260defa8e9749651505891b619c7a8aa42655f
PHP
HochschuleLuzern/EventoImport
/classes/administration/scripts/ResetHiddenAdminPermissions.php
UTF-8
3,635
2.625
3
[]
no_license
<?php declare(strict_types=1); namespace EventoImport\administration\scripts; use ILIAS\DI\RBACServices; use ILIAS\UI\Factory; use ILIAS\UI\Component\Modal\Modal; use EventoImport\import\data_management\repository\HiddenAdminRepository; use EventoImport\db\HiddenAdminsTableDef; class ResetHiddenAdminPermissions impl...
true
9e4e73f0e649f80bd98a76d290eef3023169f95c
PHP
JLPoulpe/mp
/override/classes/ProductDto.php
UTF-8
6,877
2.5625
3
[]
no_license
<?php class ProductDto { private $id_market; private $id_product; private $price; private $unity; private $unit_price_ratio; private $productName; private $description_short; private $description; private $id_supplier; private $supplierName; private $poids; private $comma...
true
3208b6f4ed1ef2ab279feb7b6e621cccd2bd5487
PHP
LxIllan/what_clothes_i_wore
/UserDAO.php
UTF-8
4,596
2.859375
3
[ "MIT" ]
permissive
<?php require_once 'Connection.php'; require_once 'Util.php'; require_once 'User.php'; class UserDAO { private $_connection; function __construct() { $this->_connection = new Connection(); } public function addUser(User $user) : bool { return $this->_connection->insert("INSERT INTO u...
true
42e9b401e3aec8d7c1acc58be32418d1c08ec698
PHP
kotaro-kawashiki/sekigae
/sekigae_result.php
UTF-8
2,853
2.640625
3
[]
no_license
<?php $names = [$_POST['ironman'],$_POST['captain'],$_POST['hulk'],$_POST['blackpanther'],$_POST['drstrange']]; $seats = ["三人席のプロジェクター側","三人席の真ん中","三人席のテーブル側","二人席のメンターさん側","二人席のテーブル側"]; $cnt = count($names); $uranai = "のあなたは運勢最強!今日一日世界の主役はあなたです。王様のように好き勝手に生き、思いつく限りのわがまま言いましょう"; ...
true
d21dc7eddd7de70b1ce1d97e285952edf57640bb
PHP
ertprs/es
/application/detregra.php
UTF-8
9,459
2.625
3
[]
no_license
<?php include '../core.php'; if(!isset($_GET['hash'])){ header("Location: ../my/inicio"); } try { $idCasa = tratarString($_GET['hash'])/3237; $sql = "SELECT * FROM `casa` WHERE `idCasa` = '$idCasa'"; $casa = $db->query($sql); $casa = $casa->fetchAll(); if(count($casa) != 1){ header("Location: ../...
true
d776ff7f63f7cbab4477b83339d339f4623f821a
PHP
robicse11127/ct-user-login-register
/admin/settings.php
UTF-8
1,831
2.53125
3
[]
no_license
<?php class Ct_User_Rl_Settings { public function __construct() { add_action( 'admin_menu', array( $this, 'ct_user_rl_admin_page' ) ); add_action( 'admin_init', array( $this, 'ct_user_rl_setting_options' ) ); } public function ct_user_rl_admin_page() { add_submenu_page( "options-general.php", "User...
true
462b67799ecb10534bd19ef5079763ac2ef29140
PHP
whatyouhide/university-gamespot
/app/controllers/backend_posts_controller.php
UTF-8
3,028
2.9375
3
[]
no_license
<?php /** * This file contains the definition of the BackendPostsController class. */ namespace Controllers; use Models\Post; use Models\Tag; /** * A controller for managing blog posts in the backend. */ class BackendPostsController extends BackendController { /** * {@inheritdoc} */ protected static $b...
true
1365b5ed742b31d22b188ac97c2ff1cd96b432df
PHP
pranjal07pandey/rt-dashboard-backend
/app/Repositories/V2/UserRepository.php
UTF-8
2,340
2.703125
3
[ "MIT" ]
permissive
<?php namespace App\Repositories\V2; use App\AppInterface\IRepository; use App\User; class UserRepository implements IRepository { public function getModel() { return new User(); } public function getDataById($request = null) { return $this->getModel()->find($request->id); }...
true
f720b2cc53aca9efcd5c69a95f35966bd0d71134
PHP
pedrocavt/phpcourse
/arrays/ordenacao.php
UTF-8
1,593
3.21875
3
[]
no_license
<?php echo "<h1>Ordenação</h1>"; echo "<h2>Sort</h2>"; $array = [ 'banana', 'goiaba', 'morango', 'abacaxi' ]; echo '<pre>'; print_r($array); echo '</pre>'; sort($array); echo '<pre>'; print_r($array); echo '</pre>'; echo "<h2>Asort</h2>"; $array = [ 'banana', 'goiaba', 'morango', ...
true
89018adc92dede57bd290b02fd6a03382d9e7bca
PHP
chinakungfu/panda
/publish/compile/tpl_tour_page_content.php
UTF-8
1,550
2.546875
3
[]
no_license
<ul> <?php if (!empty($this->_tpl_vars["listContentPage"]["url"]["prePage"])){?> <li><a href="/<?php echo $this->_tpl_vars["listContentPage"]["pageInfo"]["prePage"];?>" class="next">&lt; 上一页</a></li> <?php }else{ ?> ...
true
710cf8336cc4d16d2d05cb9c2e2c346a4b4ec074
PHP
guillaume-goubel/dev-bases
/php/projects/pizzastore/errors.php
UTF-8
526
2.53125
3
[]
no_license
<div class="container" id="errors"> <div id="activate-<?php echo (!empty($errors_array)) ? " on" : '' ; ?>" class="alert alert-danger" role="alert"> <?php foreach ($errors_array as $key => $value) { echo $value ."<br>"; } ?> </div> </div> <div class="container" id="success"> <div id="activate-<?php echo (!...
true
a8d2a5aa5c54a30ad2f264e37f2e4328df723721
PHP
evgen7171/clock
/views/layouts/menu.php
UTF-8
667
2.578125
3
[]
no_license
<?php /** * @var $menuUnits (array) то, что будет отображено в меню */ ?> <ul> <?php if($menuUnits):?> <?php foreach ($menuUnits as $tableNames => $arr) { ?> <li class="menu-list"><a href="?action=showAll&table=<?= $tableNames ?>"><?= $tableNames ?></a> <ul class="drop-menu"> ...
true
eae2b1265d53f086f22db8aa58bbe90b8fd9e263
PHP
rumur/pimpled
/app/Assets/AssetsFront.php
UTF-8
1,964
2.6875
3
[ "MIT" ]
permissive
<?php namespace Pmld\App\Assets; use Pimple\Container; use Pmld\Support\Facades\Asset; use Pmld\Support\ServiceProvider; class AssetsFront extends ServiceProvider { /** @inheritdoc */ public function register(Container $app) { \add_action('wp_enqueue_scripts', [$this, 'scripts']); \add_a...
true
c1d4ef974fb6feda6be707f12537921c131d60a6
PHP
SaevichAlexandr/kis_lab_4
/src/Controller/FlightController.php
UTF-8
7,555
2.703125
3
[]
no_license
<?php namespace App\Controller; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\Request; use App\Error\Error; class FlightController { private $departurePoint = 'MOW'; private $arrivalPoint = 'LED'; private $departureDatetime = '2017-07-21T18:30:00Z'; private $arr...
true