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
3f2038a68d82d4835c60be441434438efcfc0384
PHP
m1guelpf/netlify-mix
/src/Http/Controllers/NetlifyController.php
UTF-8
834
2.65625
3
[ "MIT" ]
permissive
<?php namespace M1guelpf\NetlifyMix\Http\Controllers; use Illuminate\Http\Request; class NetlifyController { public function __invoke(Request $request) { $this->updateManifest($request->input('url')); return 'OK'; } protected function updateManifest($baseUrl) : void { fi...
true
df70b789f225a018e5474d0765c445baca340238
PHP
parthrai/touch-ot
/database/seeds/ScoreboardTablesSeeder.php
UTF-8
1,198
2.625
3
[ "MIT" ]
permissive
<?php use Faker\Factory as Faker; use Illuminate\Database\Seeder; use Illuminate\Support\Facades\Cache; use App\ScoreboardTeam; use App\ScoreboardMember; class ScoreboardTablesSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run () { DB::beginTransaction(...
true
a1fbe035dc5ae4ea96483645d85860a97bb5999f
PHP
sadiqhussainrajani/wp-sql-builder
/includes/Components/Order.php
UTF-8
582
3.0625
3
[]
no_license
<?php namespace WpSqlBuilder\Components; class Order { public $object; public $flag; public function __construct($object, $flag) { $this->object = $object; $this->flag = $this->getFlag($flag); } public function __toString() { return $this...
true
c1599f8892a81f215791168ed2a576a197ddf2e2
PHP
Raphael-Sanchez/project_twitter
/index.php
UTF-8
1,850
2.5625
3
[]
no_license
<?php error_reporting(E_ALL); // démarre la session session_start(); require_once('model/Bdd.php'); // charge le fichier des fonctions PHP require_once('model/Twitter.php'); require_once('model/Message.php'); // require_once('function.php'); // Liste blanche, c'est notre routing qu...
true
12f451d704c07f94f166e51918f466e9d2c12e47
PHP
zakiaagha/SKRPS_KRK
/admin/include/login.inc.php
UTF-8
1,713
2.890625
3
[]
no_license
<?php class Login { private $conn; private $table_name = "krk_users"; private $table_level = "krk_role_detail"; public $user; public $userid; public $passid; public function __construct($db){ $this->conn = $db; } public function login() { $user = $this->checkCredentials(); ...
true
e59259c50ed88c287a30ad86d4a037fd61bacd02
PHP
adrmoenster/MaisDizer
/_app/Conn/Read.class.php
UTF-8
5,941
3.1875
3
[ "MIT" ]
permissive
<?php /** * <b>Read.class:</b> * Classe responsável por Leitura de Cadastros genéricos no banco de dados! * @copyright (c) 2017, Adriano S. M. */ class Read extends Conn {//Classe filha da Classe Conn, ou seja, é uma Herança private $Select;//Query de seleção //Necessário para fazer os bindValue, ele...
true
0e9de9e8628d9469c6a11b94de0561152c0fb508
PHP
GetResponse/sdk-php
/src/Operation/Shops/Carts/GetCarts/GetCarts.php
UTF-8
2,115
2.6875
3
[ "MIT" ]
permissive
<?php namespace Getresponse\Sdk\Operation\Shops\Carts\GetCarts; use Getresponse\Sdk\Client\Operation\Pagination; use Getresponse\Sdk\Client\Operation\QueryOperation; use Getresponse\Sdk\OperationVersionTrait; class GetCarts extends QueryOperation { use OperationVersionTrait; public const METHOD_URL = '/v3/sh...
true
15668ad2fa0a5305821d43a61f2336b32b4c3336
PHP
RogerPM/Grupo_Php
/AlimFaster/pages/RestauranteDatos.php
UTF-8
1,904
2.5625
3
[]
no_license
<?php include_once('Restaurante.php'); include_once('Collector.php'); class RestauranteDatos extends Collector { function consultaGeneral(){ $rows = self::$db->getRows("SELECT * FROM restaurante ORDER BY codigo_restaurante"); $arrayDemo = array(); foreach ($rows as $c){ $aux = new Restaurante($c{'codigo_re...
true
1df590b2aecbb4846347e05722ffb126125d21b3
PHP
all-ride/ride-app-queue-beanstalkd
/src/ride/application/queue/BeanstalkdQueueManager.php
UTF-8
985
2.828125
3
[]
no_license
<?php namespace ride\application\queue; use Beanstalk\Client; use ride\application\system\System; use ride\library\queue\BeanstalkdQueueManager as LibBeanstalkdQueueManager; /** * Beanstalkd implementation for the queue manager */ class BeanstalkdQueueManager extends LibBeanstalkdQueueManager { /** * ...
true
75a1a70f39e9eb613211be46615dddc09a1129a3
PHP
chrishildebrandt/zikula-legacy
/src/system/Theme/plugins/function.pagerendertime.php
UTF-8
1,953
2.5625
3
[]
no_license
<?php /** * Zikula Application Framework * * @copyright (c) 2004, Zikula Development Team * @link http://www.zikula.org * @version $Id: function.pagerendertime.php 27363 2009-11-02 16:40:08Z mateo $ * @license GNU/GPL - http://www.gnu.org/copyleft/gpl.html * @package Zikula_Template_Plugins * @subpackage Functi...
true
f09dece3f4ddad2691dce99d9a0b45d6ce3c0f3d
PHP
ortodesign/ebay-sdk-examples
/finding/aj_Get_BD_citiSource__2.php
UTF-8
1,021
2.578125
3
[ "MIT", "Apache-2.0" ]
permissive
<?php /** * Created by PhpStorm. * User: Uzver * Date: 26.01.2018 * Time: 14:44 */ error_reporting( 0 ); //$q = json_decode( file_get_contents( 'php://input' ), true )["id"]; $id = isset( $_GET['id'] ) ? intval( $_GET['id'] ) : null; require_once __DIR__ . '/../vendor/php-activerecord/php-activerecord/ActiveRecord...
true
edf2f0d7e80eb0b8a82b588639a22013f8138af4
PHP
b3nl/laravel-theme
/app/Theme.php
UTF-8
1,879
3.078125
3
[ "MIT" ]
permissive
<?php namespace b3nl\Theme; use Closure; /** * The theme model. * @author b3nl <code@b3nl.de> * @category Model * @package b3nl\Theme * @version $id$ */ class Theme { /** * The resource dir for this theme. * @var mixed */ protected $dir = ''; /** * The id of this theme. * ...
true
3bab72f72ce2f8e16b847ad179023ff986b3bac0
PHP
tsalim13/Map
/app/Http/Controllers/ExportPdfController.php
UTF-8
2,481
2.515625
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Repositories\MarkerRepository; use App\Face; use App\Type; use App\Support; use PDF; class ExportPdfController extends Controller { protected $markerRepository; public function __construct(MarkerRepository $markerRepository) { ...
true
4bf7033fd8da50af7d2321058e57188039a08d89
PHP
kotopheiop/bitrix-core
/modules/sender/lib/integration/sender/holiday.php
UTF-8
4,573
2.8125
3
[]
no_license
<?php /** * Bitrix Framework * @package bitrix * @subpackage sender * @copyright 2001-2012 Bitrix */ namespace Bitrix\Sender\Integration\Sender; use Bitrix\Main\Type\Date; use Bitrix\Main\Localization\Loc; use Bitrix\Sender\Internals\PrettyDate; Loc::loadMessages(__FILE__); class Holiday { /** @var string...
true
9eca4f54d22a54881c9441115257362cc6f9e201
PHP
CharbelE/sprint-9-en-10
/sprint9/controlestructuren (lussen)/foreach_lus.php
UTF-8
666
3.53125
4
[]
no_license
<!DOCTYPE html> <html lang="nl"> <head> <title>foreach-lus</title> </head> <body> <h3>Voorbeeld van de foreach-lus</h3> <?php $kleuren["oranje"] = "orange";//geeft kleur aan $kleuren["rood"] = "red";//geeft kleur aan $kleuren["paars"] = "purple";//geeft kleur aan $kleuren["groen"] = "green";//geeft kleur aan $kleu...
true
57490db20f1f45c81b479ff06e0468cc13f152e7
PHP
ThunderID/HR_SYSTEM
/app/Models/Template.php
UTF-8
4,044
2.671875
3
[]
no_license
<?php namespace App\Models; /* ---------------------------------------------------------------------- * Document Model: * ID : Auto Increment, Integer, PK * document_id : Foreign Key From Document, Integer, Required * field : Varchar, 255, Required * type : * created_at : Ti...
true
2774ff2161a4cacaf3268ca1ed15dd04ad97f8fd
PHP
marlonSamuel/tepsa
/modelos/Empleado.php
UTF-8
2,123
2.8125
3
[]
no_license
<?php //Incluímos inicialmente la conexión a la base de datos require "../config/Conexion.php"; Class Empleado { //Implementamos nuestro constructor public function __construct() { } //Implementamos un método para insertar registros public function insertar($nit,$dpi,$primer_nombre,$segundo_nombre,$primer_...
true
3379370a106d26a772f2b7dd3ccaa5889cad2ddc
PHP
jejemo/PHP-simple-validasi
/test.php
UTF-8
228
3.515625
4
[]
no_license
<?php $nama = "Jupri Istomo"; $nim = 15118732; $a = 4; $b = 5; $c = $a*$b; echo "Haloo nama saya " .$nama ."</br>"; echo "nim " .$nim ."</br>"; echo "Hasil perkalian " .$a ." x " .$b ." = " .$c; ?>
true
bd38a46fbbe95a369c048b729d2fa9bee5009b87
PHP
saulosousasoares/Laravel-API
/app/Models/Repositories/ContatoRepository.php
UTF-8
4,819
2.765625
3
[]
no_license
<?php namespace App\Models\Repositories; use App\Models\VO\Contato; use Illuminate\Support\Facades\DB; class ContatoRepository { public function getContatos() { $result = DB::select('SELECT id FROM contato'); if (!$result) { throw new Exception('Nenhum contato encontrado'); ...
true
6b80dd94eb7ddb1a82c5496a0a52d8985edc728a
PHP
abararsheikh/PHP-LABS
/FinalExam-Abarar Sheikh/Staff.php
UTF-8
403
2.78125
3
[]
no_license
<?php class Staff { public function getStaff() { require_once 'database.php'; $db = Database::getDB(); //$sql = "SELECT * FROM staffdirectory where fname,lname = '$category'"; $sql = "SELECT * FROM staffdirectory WHERE fname ='$category'"; var_dump($sql); $result = $db->...
true
ead9ac0d9801440a67d43d9ac8b238707957805c
PHP
NeosNails/service-oriented-front-end-architecture
/project/api/user_update.php
UTF-8
2,653
2.765625
3
[]
no_license
<?php //db connection file include 'config.php'; //initialize status $status = false; //get field to update and changes $fieldUpdate = $_REQUEST['field']; $valueUpdate = $_REQUEST['value']; //get session user id session_start(); if(isset($_SESSION['user_id'])) { $userId = $_SESSION['user_id']; } //update data f...
true
efcefd4cfa0c8be25f6a73d2febb7b6a184bd513
PHP
neonovic/code-showcase-taox
/app/Services/Wishlist/WishlistManager.php
UTF-8
4,656
2.875
3
[]
no_license
<?php namespace App\Services\Wishlist; use App\Models\UzivatelShopu; use App\Models\Wishlist; use App\Models\WishlistSharing; use App\Models\Zbozi; use App\Models\ZboziVarianta; /** * Objekt, ktery operuje nad zaznamy Wishlist itemu pro konkretniho uzivatele * Tabulka: wishlists */ class WishlistMan...
true
70e84445b56f2e3c489392179e145b88ab50a1c9
PHP
Shenaar/monitoREX
/app/Repositories/ReportRepository.php
UTF-8
526
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Repositories; use App\Models\Project; use App\Models\Report; /** * */ class ReportRepository extends EloquentRepository { /** * @param Project $project * @param array $pagination * * @return \Illuminate\Contracts\Pagination\LengthAwarePaginator|Report[] */ publi...
true
ce943143e0b0d4deac380f486ab7133f819bf488
PHP
Shinidoki/PHP-TTT-NeuralNet
/classes/geneticAlgorithm/GeneticAlgorithm.php
UTF-8
7,561
3.296875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: dennis.schnitzmeier * Date: 16.07.2015 * Time: 15:07 */ require_once "Genome.php"; class GeneticAlgorithm { /** @var Genome[] $population */ protected $population = array(); protected $populationSize; protected $mutationRate; protected $crossRate; ...
true
f964062485e4e62af0678577b88378745a5bcfaa
PHP
macofallico/phpvms
/app/Database/migrations/2018_04_01_193443_create_files_table.php
UTF-8
1,143
2.703125
3
[]
permissive
<?php use App\Contracts\Migration; use App\Contracts\Model; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateFilesTable extends Migration { /** * Create the files table. Acts as a morphable * * @return void */ public function up() { S...
true
b4d3f294db4a4b0ef6612359a0907edda011fe86
PHP
lielbritonunes/Projeto3Info
/professorCadastro.php
UTF-8
718
2.640625
3
[]
no_license
<?php class Professor{ public $idProfessor; public $formacao; public $ativo; public $dataAtualizacao; public function setIdProfessor($idProfessor){ $this->idProfessor=$idProfessor; } public function getIdProfessor (){ return $this->Professor; } public function setFormacao($formacao){ $this...
true
03bc107f9bcaf11d75512768d8798f459bdee5be
PHP
samsonbaidya/car_rental
/delete-booking.php
UTF-8
5,553
2.5625
3
[]
no_license
<?php require_once "oci.php"; require_once "conn.php"; session_start(); if(!isset($_SESSION['account']) || $_SESSION['role'] != 1){ $_SESSION['error'] = "Login First."; header('Location: login.php'); return; } // If the user requested logout go back to index.php if ( isset($_POST['logout']) ) { hea...
true
8ce77f0d179c009f2e65bb68db73250bd85ef472
PHP
H-zakaria/MyRep
/tableau_employes/suppression.php
UTF-8
1,668
2.71875
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/css/bootstrap.min.css" rel="stylesheet" integrit...
true
bfd1bbfb7f7e439b44f24a0fd13a848264d15724
PHP
spawn170/CT406GroupProject
/rentals/registration.php
UTF-8
3,103
2.734375
3
[]
no_license
<?php // Connect to the database $link = mysql_connect('localhost', 'ijharley', 'ct406'); $db = mysql_select_db('ct406s13'); // Get form input as well as data we will need for registration $email = $_POST['email']; $passwd = $_POST['passwd']; $age = $_POST['age']+0; $color = $_POST['color']; $hash = md5(rand(...
true
18710d3f008a91d824e5b2505e6229a5acffa0c3
PHP
KevalPatel8899/TheNewYorkLibrary
/NewYorkLibrary.php
UTF-8
3,483
2.78125
3
[]
no_license
<?php // initialize all variables $name=null; $address=null; $phone=null; $EmailAddress=null; $Password=null; $nation=null; $nationID=null; if(!empty($_GET['nationID'])) $nationID=$_GET['nationID']; // connect $db = new PDO('mysql:host=aws.computerstudi.es;dbname=gc900393482', 'gc900393482', 'OfSxHqw4iM'); /...
true
facb9c90b87da9352a4c0e96dbe36c6260450e46
PHP
hocmai/mathplay
/app/database/migrations/2017_08_05_024000_create_menu_table.php
UTF-8
1,911
2.71875
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateMenuTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('menu', function (B...
true
5cd850d6c38c685e9089c85068fbbb10ce848c91
PHP
ivanxavier7/SIO
/app_sec/profile.php
UTF-8
3,455
2.515625
3
[]
no_license
<?php include "header.php";?> <?php include "db.php";?> <p class="h4">Another Secure Profile Page</p> <form action="" class="form-inline"> <input type="text" id="book_search" class="form-control rounded" placeholder="Procurar por livros..."> <!--<input type="button" id="book_search_but...
true
a3e12915d7dc0c6f6cf0a9011583ca54ac86656c
PHP
SRMNsol/srmtest
/src/App/Entity/Category.php
UTF-8
1,976
2.78125
3
[]
no_license
<?php namespace App\Entity; use Doctrine\ORM\Mapping as ORM; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Criteria; /** * @ORM\Entity */ class Category { /** * @ORM\Id @ORM\Column(type="integer") @ORM\GeneratedValue */ protected $id; /** * @ORM\Column...
true
db3034e9d339701a48ad86a4bfcf8ece8815676c
PHP
ChelseaNgigi/FoodiliciousProject
/WEB PROJECT-FOODILICIOUS/orders.php
UTF-8
7,169
2.53125
3
[]
no_license
<?php session_start(); include("connection.php"); if(isset($_POST["addtocart"])) { if(isset($_SESSION["shopping_cart"])) { $fooditemid=array_column($_SESSION["shopping_cart"],"fooditem_id"); if(!in_array($_GET["id"],$fooditemid)) { $count=count($_SESSION["shopping_cart"]); ...
true
712ef431cd0f07a83fa23081c136277230e0649a
PHP
vgrish/php-simple-routing
/bench.php
UTF-8
8,779
2.609375
3
[ "MIT" ]
permissive
<?php $loader = require __DIR__ . "/vendor/autoload.php"; // Composer requirement: // "aura/router":"2.0.*@dev", // "symfony/routing": "3.0.*@dev", // "nikic/fast-route": "dev-master" // composer require "aura/router":"2.0.*@dev" // composer require "symfony/routing":"3.0.*@dev" // composer require "n...
true
6bd2d8a0845ab1d601b79f2677f62bedfd17e722
PHP
imjerrybao/zanphp
/src/Network/Server/Factory.php
UTF-8
3,253
2.546875
3
[ "MIT" ]
permissive
<?php namespace Zan\Framework\Network\Server; use RuntimeException; use Zan\Framework\Foundation\Container\Di; use Zan\Framework\Foundation\Core\Config; use swoole_http_server as SwooleHttpServer; use swoole_server as SwooleTcpServer; use swoole_websocket_server as SwooleWebSocketServer; use Zan\Framework\Network\Htt...
true
424d5343e37c931cbc486738146eb6f331d91475
PHP
wuding/couponiang
/app/controller/_abstract.php
UTF-8
509
2.640625
3
[]
no_license
<?php namespace app\controller; class _Abstract extends \Astro\Controller { public $stat = null; /** * 初始化 * */ public function _init() { // 网站统计 $stat = 0; if (isset($_GET['stat'])) { $stat = $_GET['stat']; setcookie('stat', $stat, time()+60*60*24*30, '/'); } elseif (isset($_COOKIE['stat']))...
true
9f07c5107a5af7df8a2baaf187def24840a1d229
PHP
atom-box/php-challenges
/love6.php
UTF-8
647
4.40625
4
[]
no_license
<?php // The number 6 is a truly great number. Given two int values, a and b, return true if either one is 6. Or if their sum or difference is 6. Note: the function Math.abs(num) computes the absolute value of a number. // love6(6, 4) → true // love6(4, 5) → false // love6(1, 5) → true function love6($a, $b){ if ...
true
15e713520aabf9e0c0464831cb051c3f15a8cdf5
PHP
jCrCaT/tesis
/src/App/MediBundle/Entity/Educacion.php
UTF-8
2,975
2.515625
3
[ "MIT", "BSD-3-Clause" ]
permissive
<?php namespace App\MediBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * Educacion * * @ORM\Table() * @ORM\Entity */ class Educacion { /** * @var integer * * @ORM\Column(name="id", type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") */ private $id; /*...
true
db95506126922320394b25a086243c55364f515b
PHP
IvanCardel/recWeb
/cardsIniciales.php
UTF-8
2,152
2.59375
3
[]
no_license
<?php require_once("conec.php"); // Consultamos los campos que necesitamos para el card inicial // Obtenemos campos de distintas tablas por lo que es necesario // hacer inner join para juntar tablas $resultado=mysqli_query($cn,"SELECT * FROM receta INNER JOIN categoria on receta.idCategoria=categoria.idCatego...
true
963893cc12e03638c90a615fd969a3cdd37d6773
PHP
mohamedelashhab/blogger
/blog/app/Http/Controllers/Dashboard/PageController.php
UTF-8
2,299
2.640625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Dashboard; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use Yajra\Datatables\Datatables; use App\models\Page; class PageController extends Controller { public function list() { $pages = Page::query(); return datatables()->of($pages) ...
true
ab61ad8a6728582177554fc333e107472989cc52
PHP
kusflo/taller-testing-i
/FizzBuzz/Solutions/kusflo/src/Rules/Number.php
UTF-8
361
3.015625
3
[]
no_license
<?php /** * @author Marcos Redondo <kusflo@gmail.com> */ namespace FizzBuzz\Rules; class Number extends AbstractRule implements RulesInterface { private $value; public function check($number) { $this->value = $number; return (is_numeric($number)); } public func...
true
43a9f773b1eea048b687aab119698a06828b1761
PHP
nietoperz809/hc_customrr
/misc.php
UTF-8
988
2.96875
3
[]
no_license
<?php /** * Evaluate an expression given as string * @param String $s * @return type result as number */ function math_eval($s) { $ma = eval('return ' . $s . ';'); return $ma; } function format_price ($n) { $m = number_format($n/100, 2, ',','.'); return str_pad ($m, 8, ' ',STR_PAD...
true
ce4362ebcb286919980ed9c7204aecf698a62407
PHP
thobinh/php39_devpro
/Day11_PHP_Constant_Operator_Condition_Loop/Bai_tap_ve_nha_Day11_PHP_Constant_Operator_Condition_Loop/Danh_sach_nop_bai_ngay_11/TranDinhKhai11/bt10b11.php
UTF-8
1,256
2.875
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"> <link rel="stylesheet" href="bt10b11.css"> <title>Document</title> </head> <body> <?php function displ...
true
f2880f6edf78d8a7addb275500e50dd4d7c11364
PHP
RenzcPHP/3dproduct
/admin/application/libraries/Mysite_type.php
UTF-8
7,987
2.609375
3
[]
no_license
<?php defined('SYSPATH') OR die('No direct access allowed.'); class Mysite_type_Core { private $data = array(); private $errors = array(); private static $instances; public static function & instance($id = 0) { if (!isset(self::$instances[$id])) { $class = __CLASS__; self::$instances[$id] =...
true
d9469a282c74721ab9e0e875adc552089365e5be
PHP
cyclecrazy88/naughtsAndCrosses
/previousGameDetails.php
UTF-8
3,191
3.34375
3
[]
no_license
<?php class ShowDetails{ private $arrayData = []; private $resultSummaryData = []; private $totalSummaryItem = null; function __construct(){ // Initialise the summary data $this->totalSummaryItem = array("red"=>0, "blue"=>0, "count"=>0); //echo "Load Details\n"; $directoryList = scandir('./gameData/'); ...
true
4ab35212191e680eedcfd5e18214237cba61f16e
PHP
SonOfWinter/BindingBundle
/Exception/BinderMaxValueException.php
UTF-8
1,416
2.9375
3
[ "MIT" ]
permissive
<?php /** * BinderMaxValueException * * @package SOW\BindingBundle\Exception * @author Thomas LEDUC <thomaslmoi15@hotmail.fr> * @link https://github.com/SonOfWinter/BindingBundle */ namespace SOW\BindingBundle\Exception; use Throwable; /** * Class BinderMaxValueException * * @package SOW\BindingBund...
true
c2442455cc1d3402519d798ebcbf551a48ef962b
PHP
d-a-m/todos
/app/Services/Admin/CRUDService.php
UTF-8
3,255
2.625
3
[]
no_license
<?php namespace App\Services\Admin; use App\Models\SEO; use App\Repositories\Contract\Repository; use Exception; use Illuminate\Database\Eloquent\Model; use Illuminate\View\View; class CRUDService { /** * @var Repository */ protected $repository; /** * @var Model */ protected $mo...
true
0ef7ee34b7003e52f3c3a612c4bb9784bb801e52
PHP
IBARTI2019/api-ibarti
/src/libs/mail.php
UTF-8
1,839
3.234375
3
[ "MIT" ]
permissive
<?php // Import PHPMailer classes into the global namespace // These must be at the top of your script, not inside a function use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\Exception; class Mailer { /** * This method sends a email * * @param string $fro Email address origin * @param string $t...
true
eb27df3f4353a969ba076d94249a701d007a3563
PHP
nartallax/Vortex
/protected/utils.php
UTF-8
8,190
2.84375
3
[]
no_license
<?php /* в этом файле хранятся разные функции, которые больше некуда приткнуть */ function reindex($arr, $col){ $result = array(); foreach($arr as $v) $result[$v[$col]] = $v; return $result; } function arrcol($arr, $col){ $result = array(); foreach($arr as $v) $result[] = $v[$col]; return $result;...
true
69316b7d22d6b3461812cfc9a1104e268f787fee
PHP
ankitgarg10001/GreenRAR
/Website/loginstatus.php
UTF-8
709
2.625
3
[]
no_license
<?php session_start(); if(isset($_SESSION['name']) ) { $response="WELCOME <a href='profile.html' title='View Profile'> ". $_SESSION['name']."</a><p id='sign'><a href='logout.php'><small><strong>Log out</strong></small></a><br /></p>"; } elseif( isset($_COOKIE['name']) ) { $response="WELCOME <a href='profi...
true
18d545da197d86abc2a21f041dccab8dc5f382da
PHP
craigkilgo/brewcity
/html/customers.php
UTF-8
6,798
2.78125
3
[]
no_license
<?php session_start(); if($_SESSION['role'] != 'su' AND $_SESSION['role'] != 'manager' AND $_SESSION['role'] != 'employee') { header("Location:index.php"); } // Include header.php include("../includes/header2.php"); if (isset($_POST['submitted'])) { require_once ('../includes/mysqli_connect.php'); /...
true
c175a83273a5caa29d0e2058441a9d4301982b8f
PHP
cakraamin/kuningan
/protected/controllers/admin/AboutController.php
UTF-8
1,206
2.78125
3
[]
no_license
<?php class AboutController extends Controller { /** * This is the action to handle external exceptions. */ public $layout='//layouts/template'; public function filters() { return array( 'accessControl', // perform access control for CRUD operations 'postOnly + delete', // we only allow deletion via P...
true
29ca55cdb41bee2231b3a0025297a476ceea6986
PHP
Ville92/Avaintec
/settings.php
UTF-8
3,252
2.8125
3
[]
no_license
<?php session_start(); //IF SESSION MESSAGE EXISTS ECHO IT. IF NOT, DONT DO ANYTHING if (isset($_SESSION["message"])) { echo "<p class='message' id='message' onclick='removeMessage()'>".$_SESSION['message']."</p>"; } else { } //Check if user is logger in if ($_SESSION["loggedin"] == "true") { } else { head...
true
3cc2235f70fcfaab0042b3497f7c78e1ab4cef30
PHP
sorrentinoraf/php-snippets
/RestController.php
UTF-8
2,283
2.765625
3
[]
no_license
/** * 1. Run: sudo composer require jms/serializer-bundle * 2. In AppKernel::registerBundles() add: new JMS\SerializerBundle\JMSSerializerBundle(), */ namespace RestUtils\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Response; class RestController extends ...
true
4f9f5fd684c6647777aec5f18b87e0309bec49c9
PHP
filosoff13/prices
/change.php
UTF-8
2,700
2.578125
3
[]
no_license
<?php // session_start(); include 'config.php'; // $title = (isset($_GET['param'])) ? $_GET['param'] : $title; // global $title; $title = $_GET['param']; // $_SESSION['param'] = $title; // print_r($_SESSION); // print_r($_SERVER); // $actual_link = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; // echo "$_SERVER[H...
true
f24f0dc9780881017d41f1aaf920057d8181bddd
PHP
Ca10San/API-for-Tweetclone
/routes/web.php
UTF-8
3,682
2.734375
3
[]
no_license
<?php use Illuminate\Http\Request; use Illuminate\Http\Response; /* |-------------------------------------------------------------------------- | Application Routes |-------------------------------------------------------------------------- | | Here is where you can register all of the routes for an application. | It...
true
1133489629a2c5ede57bfdf4eda2d8768d257466
PHP
resque/php-resque
/lib/Worker/ResqueWorker.php
UTF-8
17,960
2.703125
3
[ "MIT" ]
permissive
<?php declare(ticks=1); namespace Resque\Worker; use Resque\Logger; use Resque\Resque; use CredisException; use Psr\Log\LogLevel; use Resque\Job\PID; use Resque\Event; use Resque\Exceptions\DirtyExitException; use Resque\Job\Status; use Resque\JobHandler; use Resque\Stat; use Psr\Log\LoggerInterface; use Exception; ...
true
e2bee3b6593b2e1a295ef5c36a5d0e829e6450cc
PHP
jimduch/chaussure
/connexion_bdd.php
UTF-8
413
2.75
3
[]
no_license
<?php function connexionbdd($base) { include_once "params.inc.php"; $dsn = "mysql:host=" . HOST . ";dbname=" . $base; $user = USER; $password = PASSWORD; try { $connexion = new PDO($dsn, $user, $password); return $connexion; } catch (PDOException $exception) { echo "Conne...
true
5687eed87f40d59de7ffdb9e848197224fdd5274
PHP
ankitvaishnav/tworoads
/application/helpers/algo_helper.php
UTF-8
8,229
3.34375
3
[ "MIT" ]
permissive
<?php class algo { /** * [assign_rand_value description] * written by Ankit Vaishnav on 2016-10-12 * generates a random alphabet from random number * @param [int] $num [description] * @return [string] [description] */ public function assign_rand_value($num) { // accepts 1 - 36 swit...
true
28190383eb589b48da31cbd1d25480f928beca4b
PHP
ryanhellyer/justcuts
/functions.php
UTF-8
855
2.796875
3
[]
no_license
<?php /** * Autoload the classes. * Includes the classes, and automatically instantiates them via spl_autoload_register(). * * @param string $class The class being instantiated */ function autoload_justcuts( $class ) { // Bail out if not loading the correct class if ( 'JustCuts' != substr( $class, 0, 8 ) ) ...
true
cf6b1d7ff1077b10c1a95ae6d21d384328d271aa
PHP
ZoranWong/landcloud-shop
/extend/org/upload/driver/Aliyun.php
UTF-8
4,266
2.765625
3
[]
no_license
<?php /** * 阿里云oss上传 */ namespace org\upload\driver; if (is_file(__DIR__ . '/aliyun/autoload.php')) { require_once __DIR__ . '/aliyun/autoload.php'; } use OSS\Core\OssException; use OSS\OssClient; use think\facade\Log; class Aliyun { /** * 上传文件根目录 * @var string */ private $rootPath; ...
true
09c2bfbe47a2c9f75affc5cd565afeb0c257ee9a
PHP
Thot80/AFPA_TBDA
/PHP/exercices/test.php
UTF-8
955
3.453125
3
[ "MIT" ]
permissive
<?php $tampon1 = readline ('Entrer une première valeure'); $tampon2 = readline ('Entrer une seconde valeure'); $nbr1 = (int) $tampon1; $nbr2 = (int) $tampon2; $tampon3 = readline ('Selectionnez une opération parmi : +,-,*,/') ; switch ($tampon3) { case "+" : echo '...
true
10cddd0865e84a67813920e80ae5d8395b90a969
PHP
ShafqatAliRafaqat/clinicall-backend-in-laravel
/app/Policies/BankAccountPolicy.php
UTF-8
2,868
2.546875
3
[]
no_license
<?php namespace App\Policies; use App\BankAccount; use App\User; use Illuminate\Auth\Access\HandlesAuthorization; class BankAccountPolicy { use HandlesAuthorization; /** * Determine whether the user can view any bank accounts. * * @param \App\User $user * @return mixed */ publ...
true
b327a428c651fc7d4f5c148293c8abf5e43dc65b
PHP
mohanvinod4/chromeWeatherExtension
/PHPCode/weatherApi.php
UTF-8
2,727
3.046875
3
[]
no_license
<?php /* +-------------------------------------------------------------------- | | File : weatherApi.php | Purpose : get Weather details using Yahoo api based on location | Created : 17-June-2016 | Author : Vinod Mohan | Comments: | +--------------------------------------------------------------------...
true
4a52e59c6dde000e986b0895112a53e9061d35a4
PHP
friendsofhyperf/websocket-cluster-addon
/src/Emitter.php
UTF-8
1,595
2.6875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); /** * This file is part of websocket-cluster-addon. * * @link https://github.com/friendofhyperf/websocket-cluster-addon * @document https://github.com/friendofhyperf/websocket-cluster-addon/blob/main/README.md * @contact huangdijia@gmail.com * @license https://github.com/frie...
true
443096a2a025d249c4754f0ae7a9955f6e22b347
PHP
pfpayments/prestashop-1.7
/MailMessageEvent.php
UTF-8
2,908
3.375
3
[ "Apache-2.0" ]
permissive
<?php if (! defined('_PS_VERSION_')){ exit(); } /** * This class represents a mail message sending event. An object * of this class is propagated in case an e-mail is sent. * * @author Thomas Hunziker * */ class MailMessageEvent { /** * @var string */ private $name; /** * @var boolean */ private ...
true
ff59e83fd106731ff84678fa60eb4661ba32d6a7
PHP
ryanchausse/githeri
/resources/php/functions/uploadprofpicformprocess.php
UTF-8
2,867
2.875
3
[]
no_license
<?php /* * Githeri.com Copyright 2013. All Rights Reserved. */ include_once "./resources/php/functions/sqlconnectandselect.php"; session_start(); $username = dbSanitise($_SESSION["user_name"]); $getuserid = "SELECT user_id FROM users WHERE user_name = '".$username."'"; $result = selectFromDB($getuser...
true
266cfd2abc60f6028b3d59b0697ca623dbc09d45
PHP
ProyectosDUOC/Pasteleria2
/DAO/ClienteDAO.php
UTF-8
3,077
2.90625
3
[]
no_license
<?php if (!isset($rootDir)) $rootDir = $_SERVER['DOCUMENT_ROOT']; require_once($rootDir . "/BD/bd.php"); require_once($rootDir . "/Entities/Cliente.php"); class ClienteDAO { public static function sqlInsert($cliente) { $cc = BD::getInstancia(); $stSql = "INSERT INTO cliente VALUES "; ...
true
a77bed3477433e24ba459acf2698b20f584187c9
PHP
pen-tester/codeigniter3_twiliosms
/application/helpers/plivo_helper.php
UTF-8
2,905
2.546875
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php include_once(APPPATH."/libraries/plivo/vendor/autoload.php"); use Plivo\RestAPI; function get_plivoconfig(){ $plivo = array( "id" => "MAYTA5YJLLYMY3YTVJNG", "token" => "M2EzZjZjM2RlNTVhNzUwMjBkNTM1Zjg5ODQ0Mjg5" ); return $plivo; } function send_MultipleSms($images, $count, $number) { ...
true
f70b1b2c7f7e6dcc6285c69b12520d50cdbea3e8
PHP
pengfen/learn17
/be/php/php-mysql/code/result.php
UTF-8
972
2.625
3
[]
no_license
<?php header("Content-type:text/html; charset=utf8"); // 连接数据库 mysql_connect('127.0.0.1', 'root', ''); mysql_select_db('blog'); mysql_query("set names 'utf8'"); // 数据预处理 防止查询不到数据 $sql = "insert into blog_user(username, password) values('王二', '".md5('123456')."')"; echo '当前添加数据 ---> '.$sql; // 当前添加数据 ---> insert...
true
1e20022b6126916f5b255c82de37dae4363999c6
PHP
preguajoshua/bookshop
/project/app/Http/Controllers/AuthorsController.php
UTF-8
3,506
2.609375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use DB; use App\Models\Author; use App\Models\Book; use Illuminate\Http\Request; use Mockery\Generator\StringManipulation\Pass\Pass; class AuthorsController extends Controller { public function __construct() { $this->middleware('auth'); } /** * List ...
true
ef1502ac83c0431598b8226478230ee57d3a8709
PHP
EcomDev/cross-domain-session-manager
/src/CookieHeaderGenerator.php
UTF-8
2,959
2.890625
3
[ "MIT" ]
permissive
<?php /** * Copyright © EcomDev B.V. All rights reserved. * See LICENSE.txt for license details. */ namespace EcomDev\CrossDomainSessionManager; class CookieHeaderGenerator { /** * @var TimeManager */ private $timeManager; /** * @var array */ private $defaultOptions; publi...
true
14afbeaa663b67fea1d176c38601abdaeead9247
PHP
evilice/accent
/fw/modules/system/Form/Fields/FieldImage.php
UTF-8
9,426
2.53125
3
[]
no_license
<?php /** * Description of FieldImage * * @author SP */ class FieldImage extends FormField { private $multiple = false; // мульти загрузка private $min = 0; // минимальное кол-во файлов private $max = 0; // максимальное кол-во файлов protected $fid; public function __construct($titl...
true
76999628bf8ec006800c776cdbc4c144deaca7f2
PHP
AdamKyle/flare
/app/Game/Core/Traits/MercenaryBonus.php
UTF-8
2,052
2.796875
3
[ "MIT", "LicenseRef-scancode-free-unknown" ]
permissive
<?php namespace App\Game\Core\Traits; use App\Flare\Models\Character; use App\Game\Mercenaries\Values\MercenaryValue; trait MercenaryBonus { /** * Get Shard Bonus. * * @param Character $character * @return float */ protected function getShardBonus(Character $character): float { ...
true
0df87c8b3c1b4d23c29d4c2825bceb471cc33e91
PHP
agoraproject/MyBooks
/src/Domain/Author.php
UTF-8
849
2.953125
3
[ "MIT" ]
permissive
<?php namespace MicroCMS\Domain; class Author { /** * Author id. * * @var integer */ private $id; /** * Author first name. * * @var string */ private $firstName; /** * Author last name. * * @var string */ private $auth_last_name; ...
true
41b34c228f3942ab9957fee93693f09f8674a621
PHP
wanggangtao/guolu
/boiler/lib/table/table_heat_exchanger_attr.class.php
UTF-8
5,502
2.953125
3
[]
no_license
<?php /** * table_heat_exchanger_attr.class.php 数据库表:换热器 * * @version v0.01 * @createtime 2018/5/26 * @updatetime 2018/5/26 * @author dlk wzp * @copyright Copyright (c) 芝麻开发 (http://www.zhimawork.com) */ class Table_heat_exchanger_attr extends Table { private static $pre = "excha...
true
38f4c26c14391e1b1621ae9aa43ed41c47f037a2
PHP
MatthieuPauchet/Adjustem
/adjustem_prod_v2/application/models/Vitrage_model.php
UTF-8
724
2.8125
3
[]
no_license
<?php class vitrage_model extends CI_Model { public function __construct() { $this->load->database(); } // sélectionne un vitrage en fonction de 2 éléments where (acoustique et sécurité) public function get_vitrage($acoustique, $securite) { $this->db->select("*"); $thi...
true
29b3b4130b20edd2695be99adb2941638615433a
PHP
codewebagency/summit
/helpers/Url.php
UTF-8
670
2.75
3
[]
no_license
<?php namespace Helpers; use Core\Router; /* * 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 Url * * @author hossein */ class Url { /** * * @par...
true
7d017b2190add4c9b6b999bc0be8a35ada159f08
PHP
dms-org/core
/src/Form/InvalidInputException.php
UTF-8
1,270
2.96875
3
[ "MIT" ]
permissive
<?php declare(strict_types = 1); namespace Dms\Core\Form; use Dms\Core\Exception\BaseException; use Dms\Core\Exception\InvalidArgumentException; use Dms\Core\Language\Message; /** * Exception for invalid input. * * @author Elliot Levin <elliot@aanet.com.au> */ class InvalidInputException extends BaseException { ...
true
c8b9b51b992f9dd7e6c6974fcefafd94d10ac35f
PHP
shaunfreeman/php-mysql-xdevapi
/src/ValueObject/DateTime.php
UTF-8
470
2.640625
3
[]
no_license
<?php declare(strict_types=1); namespace ShaunFreeman\PhpMysqlXdevapi\ValueObject; use DateTimeImmutable; use JsonSerializable; final class DateTime extends DateTimeImmutable implements JsonSerializable { /** * @return string */ public function toString(): string { return $this->format...
true
3081009c2e78b454e5f118b4e472fdd8f1505a85
PHP
uatrend/pagekit
/packages/pagekit/theme-one/functions.php
UTF-8
2,405
2.671875
3
[ "MIT" ]
permissive
<?php use Pagekit\Application as App; function isHTML(string $string) : bool { preg_match("/<\/?\w+((\s+\w+(\s*=\s*(?:\".*?\"|'.*?'|[^'\">\s]+))?)+\s*|\s*)\/?>/", $string, $matches); return (bool) count($matches); } function getHTML(string $content) : string { return isHTML($content) ? $content : '<p>'....
true
aadac493e5c5027be62f0117a2add164be85ed11
PHP
RyRySuzu/TakaSearch_php
/get_countplayer.php
UTF-8
2,905
2.90625
3
[]
no_license
<?php //接続文字列 (PHP5.3.6から文字コードが指定できるようになりました) $dsn = 'xx'; //ユーザ名 $user = 'xx'; //パスワード $password = 'xx'; try { //nullで初期化 $users = null; //DBに接続 $dbh = new PDO($dsn, $user, $password); if (isset($_POST["id"])) { $query= ' where id =' . $_POST["id"]; } else { $query=""; ...
true
b95553406da25b3c3a0184821136736648bdd04c
PHP
liquanY/WEB
/8_server&http/php/10.php
UTF-8
356
3.75
4
[]
no_license
<?php //1.if...else if...else $num = 90; if($num < 60){ echo '不及格'; }else if($num < 90){ echo '及格'; }else{ echo '优秀'; } echo ' '; //2.switch...case $num2 = 90; switch($num2){ case 60: echo '不及格'; break; case 80: echo '及格'; break; case 90: echo '优秀'; break;...
true
a2cadefad7aebc7abab67a0b8146123546846bbd
PHP
Nixforest/apprentice-cms
/library/acl/acl.php
UTF-8
2,170
2.671875
3
[]
no_license
<?php /* require_once 'Zend/Acl.php'; $acl=new Zend_Acl(); //add role require_once 'Zend/Acl/Role.php'; $acl->addRole(new Zend_Acl_Role('22')); $acl->addRole(new Zend_Acl_Role('basic')); //add resource require_once 'Zend/Acl/Resource.php'; $acl->add(new Zend_Acl_Resource('role')); $acl->allow('22'); //...
true
48c34c77f461c71922c9a23d98abf70d20e9f464
PHP
viniciusbeckerbernardini/php7
/Secao_3_Conhecendo_a_linguagem_php/17/exemplo6.php
UTF-8
416
3.296875
3
[]
no_license
<?php // Tipos novos de operadores do PHP 7 /* Você pode ver na documentação do php pra tirar dúvidas, da uma olhada lá: https://secure.php.net/manual/pt_BR/migration70.new-features.php Operador null coalescência nula Usado para tratar valores nulos */ $a = null; $b = 8; $c = 10; // o ?? faz com que se o valor for nulo...
true
0f5edc75111c45d3f17a48b4be9db510c482214b
PHP
a815063199/xiaokeai
/basic/controllers/TestController.php
UTF-8
5,354
2.5625
3
[]
no_license
<?php namespace app\controllers; use yii\web\Controller; use app\models\Article; class TestController extends Controller { public function actionIndex() { return $this->render('index'); } public function actionValidate(){ $data = [ 'Test' => [ 'username' =...
true
05ac0a53462b2e3369b94ffe4f1a8a1b7840d590
PHP
joestump/jax
/includes/App/JxPresenter.php
UTF-8
516
2.546875
3
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
<?php class JxPresenter extends JxObject { function JxPresenter() { $this->JxObject(); } function factory($type) { $file = JX_CORE_PATH.'/includes/App/Presenter/'.$type.'.php'; if(include($file)) { $class = 'JxPresenter_'.$type; if(class_exists($class...
true
f4a832cc8c8e95803671ee53d37d30c44fa7a8f8
PHP
Fridasaralinnea/weather
/src/Weather/IpGeo.php
UTF-8
991
2.875
3
[ "MIT" ]
permissive
<?php namespace Fla\Weather; use Fla\Weather\Curl; /** * A class for getting user ip-address. */ class IpGeo { /** * @var string $apikey. * @var string $baseUrl. * @var object $curl. * @var string $baseUrlMap. */ private $apikey; private $baseUrl; private $curl; private...
true
0056d9627444f3a7e4ccac819973de30ce6db08b
PHP
Werkint/SocialBundle
/Service/Social.php
UTF-8
805
2.515625
3
[]
no_license
<?php namespace Werkint\Bundle\SocialBundle\Service; use Werkint\Bundle\WebappBundle\Webapp\Webapp; /** * Social. * * @author Bogdan Yurov <bogdan@yurov.me> */ class Social { protected $parameters; protected $webapp; public function __construct( Webapp $webapp, array $parameters ...
true
434c6d207135bc363752d4b01027be1d3fd58471
PHP
alexpw/falco
/src/Falco/Iterator/TakeWhile.php
UTF-8
324
2.828125
3
[ "MIT" ]
permissive
<?php namespace Falco\Iterator; class TakeWhile extends \IteratorIterator { private $fn; public function __construct($fn, $iter) { parent::__construct($iter); $this->fn = $fn; } public function valid() { return call_user_func($this->fn, $this->current()) === true; ...
true
ecdba4361f498cf7ac10745ed9e6cd99a61e1270
PHP
enesdayanc/vpos-est
/src/HttpClient.php
UTF-8
1,477
2.671875
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: enesdayanc * Date: 16/08/2017 * Time: 14:07 */ namespace PaymentGateway\VPosEst; use PaymentGateway\VPosEst\Exception\CurlException; use PaymentGateway\VPosEst\Helper\Helper; use PaymentGateway\VPosEst\Request\RequestInterface; use PaymentGateway\VPosEst\Setting\Setting; ...
true
6122f42290d828719e7fe930790ba0942d7b691e
PHP
jlbooker/homestead
/class/command/LotteryShowConfirmRoommateRequestCommand.php
UTF-8
1,098
2.59375
3
[]
no_license
<?php class LotteryShowConfirmRoommateRequestCommand extends Command { private $requestId; private $mealPlan; public function setRequestId($id){ $this->requestId = $id; } public function setMealPlan($plan){ $this->mealPlan = $plan; } public function getRe...
true
f18e81f91bb84cb0f478aa602fd26d0e39b7770e
PHP
inunosinsi/soycms
/cms/soyshop/webapp/src/logic/plugin/extensions/soyshop.mypage.login.php
UTF-8
1,368
2.65625
3
[]
no_license
<?php class SOYShopMypageLoginBase implements SOY2PluginAction{ /** * ログインの認証方法を変える */ function login(){ return true; } /** * */ function logout(){ } /** * ログインの有無の確認方法を変える * @return bool */ function isLoggedIn(){ } /** * 上のloginでマイページにログインしている場合のログインアカウントの顧客ID * @return int */ f...
true
79c8ab24e8deccac188829230c6bfd8799024221
PHP
markogrady1/design-patterns
/php/statePattern/single_file/stateSingleFile.php
UTF-8
6,761
2.90625
3
[ "MIT" ]
permissive
<?php interface State { public function checkAllSystems(); public function startPowerUnits(); public function retractArms(); public function shutDown(); public function rocketBooster(); } class SystemsGo implements State { /** * Mission control instance * * @var MissionControl $missionControl */ pu...
true
c12f8758ea13074784cc2837b25b6fbc81af2506
PHP
jadsson/CRUD_usuario_imagem
/App/Model/Crud.php
UTF-8
5,519
2.71875
3
[]
no_license
<?php namespace App\Model; class Crud{ public function Create(User $u) { $sql = 'SELECT id FROM tb WHERE e = ?'; $stmt = Conect::Conn()->prepare($sql); $stmt->bindValue(1, $u->getEmail()); $stmt->execute(); global $qtdImagem; $qtdImagem = $stmt->rowCou...
true
df02093d629d985e095c6594f95aee9c06c3b549
PHP
lswote/php-angularjs-laravel
/app/Library/EventLinesCalculator.php
UTF-8
9,606
2.90625
3
[]
no_license
<?php namespace App\Library; use App\Repositories\LineRepository; use App\Models\Event; use App\Models\Line; use App\Models\User; class EventLinesCalculator{ private $lines; private $event, $participants, $male_count, $female_count, $women_lines, $men_lines, $additional_women, $additional_men, $comb_lines, $tota...
true
42a4576234fd85cab1a8c6270a06797af7704c32
PHP
MihirSachdeva/PHPMessenger
/profilePHP.php
UTF-8
2,276
2.578125
3
[]
no_license
<?php session_set_cookie_params(0); session_start(); if(!isset($_SESSION[userId])) { header("Location: ./signin.php"); exit(); } $username = $_SESSION['username']; if(isset($_POST['profile-submit'])) { $host = "localhost"; $user = "first_year"; $database = "first_year"; $passwd = "fi...
true
c1933b77c5a9e449d726da6a9f50c55ce0dc5f29
PHP
Aurion72/helpers
/tests/HelpersStringsTest.php
UTF-8
2,166
2.859375
3
[ "MIT" ]
permissive
<?php namespace Aurion72\Helpers\Tests; class HelpersStringsTest extends HelpersTest { public function test_boolean_is_correctly_converted_to_string() { $this->assertEquals(boolToString(true), __('misc.yes')); $this->assertEquals(boolToString(true, 'Yes'), 'Yes'); $this->assertEquals(bo...
true
80d8378fccd6bca3983229eb2d31513cd277b294
PHP
plbrault/programmation-app-web-transactionnelle
/cours10/solution/lab08/afficher.php
UTF-8
1,562
2.734375
3
[ "MIT" ]
permissive
<?php include_once('connexionBD.php'); if (!isset($_GET['id'])) { echo 'Paramètre <strong>id</strong> manquant.'; exit; } $idSerie = intval($_GET['id']); $requete = $bdd->prepare( 'SELECT titre, diffuseurs.nom AS nomDiffuseur, nbSaisons, nbEpisodes, nbEpisodesVus FROM series JOIN diffuseu...
true