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
65cbb44b1bc784f404cbc34a9e6c5eb7ae67a429
PHP
MilaHG/SF_Boutique3_2018
/src/BoutiqueBundle/Entity/Produit.php
UTF-8
5,118
2.53125
3
[ "MIT", "BSD-3-Clause" ]
permissive
<?php namespace BoutiqueBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * Produit * * @ORM\Table(name="produit") * @ORM\Entity(repositoryClass="BoutiqueBundle\Repository\ProduitRepository") * */ class Produit { /** * @var integer * * @ORM\Column(name="id_produit", type="integer", nullabl...
true
76ac229b20bb604cae4c16b90219d851e4d35690
PHP
zhyunfe/phpnote
/app/Http/Controllers/PhpDesignPatterns/Behavioral/Mediator/Colleague.php
UTF-8
439
2.765625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: zhyunfe * Date: 2018/4/8 * Time: 下午3:56 */ /** * Class Colleague * Colleague是一个抽象类,该类对象虽彼此协同却不知彼此,只知中介者Mediator类 */ class Colleague { /** * @var * 确保子类不变化 */ protected $mediator; public function setMediator(MediatorInterface $mediator) {...
true
1912e7a214ead1db29738e316f560a0b8e104a21
PHP
stoyantodorovbg/PHP-Web-Development-Basics
/OOP Basics Exercises/problem6/Tyre.php
UTF-8
200
3.28125
3
[ "MIT" ]
permissive
<?php class Tyre { public $pressure; public $age; function __construct($pressure, $age) { $this -> pressure = doubleval($pressure); $this -> age = intval($age); } }
true
87720518182630d08c307d7a8069ddb7e088d7ec
PHP
sa-n-ya2013/TestToWork
/app/Category.php
UTF-8
2,096
2.703125
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; class Category extends Model { use SoftDeletes; /** * @var string */ protected $table = 'categories'; /** * The attributes that are mass assignable. * * @var array ...
true
bd1036a1cfd480a7b55e25030252b84d8c6baf79
PHP
Tobithy/cs313-php
/web/prove_03_shopping_cart/shopping_cart_common_php.php
UTF-8
1,853
3.125
3
[]
no_license
<?php // create the items_in_cart aray if it doesn't exist yet. if (!isset($_SESSION['items_in_cart'])) { $_SESSION['items_in_cart'] = array(); } // Define array of items to buy. This could be changed to an array of item objects // if we create an item class at some point. Right now it's just a 2d array that has ...
true
80418a0d59bea7079708ae86a2305b07257ee46f
PHP
jhinukk/PHP
/Demo1/oop/abstraction.php
UTF-8
316
3.546875
4
[]
no_license
<?php abstract class car{ public abstract function carname(); public abstract function price(); } class taxi extends car { public function carname() { return "Maruti"." <br>"; } public function price() { return "650000"."<br>"; } } $sprots=new taxi(); echo $sprots->carname(); echo $sprots->price(); ?>
true
da00b62eccb952d46ed731ec8b9bfdb97bbef91f
PHP
priyankamsp/php-learnings
/task1.php
UTF-8
379
3.4375
3
[]
no_license
<?php $vowels = array("a","e","i","o","u"); $words = "Best Website for Tamil Typing, Tamil Translation and English to Tamil Dictionar"; $length = strlen($words); $count = 0; for($i=0;$i< $length; $i++) { $count = (in_array(strtolower($words{$i}),$vowels)) ? ($count + 1 ) : ($count + 0); ...
true
db3ccb747b5417325430f7dc098567f50c644212
PHP
burningmantech/ranger-clubhouse-api
/app/Models/PersonRole.php
UTF-8
5,568
2.546875
3
[ "Apache-2.0" ]
permissive
<?php namespace App\Models; use App\Lib\ClubhouseCache; use Illuminate\Database\Eloquent\Collection; use Illuminate\Database\Eloquent\Relations\BelongsTo; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\DB; /** * @property int person_id * @property int role_id */ class PersonRole extends ApiMo...
true
0d0861fd3182f9a697d7e2a313efb480e8f78e2a
PHP
hardcoded74/elliott-forum
/src/addons/ThemeHouse/UIX/XF/Repository/Style.php
UTF-8
2,278
2.578125
3
[]
no_license
<?php namespace ThemeHouse\UIX\XF\Repository; /** * Class Style * @package ThemeHouse\UIX\XF\Repository */ class Style extends XFCP_Style { /** * @param array $products * @return array */ public function prepareTHStyles(array $products) { $productIdMap = []; foreach ($pro...
true
722474159af9b0c1123838c8f68bb5a72ea4986a
PHP
GB-CodeDreams/Statist
/web-interface/ai/view/register.php
UTF-8
3,102
2.75
3
[]
no_license
<?/* Шаблон страницы регистрации администратора ======================= $user - пользователь, регистрирующийся от имени администартора */?> <?php $instUsers = Users::Instance(); global $link; // Обработка отправки формы. if (!empty($_POST)){ $login = mysqli_real_escape_string($link, $_POST['login']); ...
true
d4865f6148cdbbc74c9e4df15f00315c6607a74c
PHP
Innmind/BlackBox
/tests/Set/Composite/CombinationTest.php
UTF-8
3,629
2.703125
3
[ "MIT" ]
permissive
<?php declare(strict_types = 1); namespace Tests\Innmind\BlackBox\Set\Composite; use Innmind\BlackBox\Set\{ Composite\Combination, Value, Dichotomy, }; use PHPUnit\Framework\TestCase; class CombinationTest extends TestCase { public function testToArray() { $combination = new Combination(V...
true
4d4275711aa2a3d08b532748cac9e032dbb6a5e5
PHP
robertogallea/php-fatturapa
/src/Model/Ordinaria/FatturaElettronicaBody/DatiGenerali/DatiSAL.php
UTF-8
1,494
2.640625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Roberto Gallea * Date: 14/03/2019 * Time: 21:38 */ namespace Robertogallea\FatturaPA\Model\Ordinaria\FatturaElettronicaBody\DatiGenerali; use Robertogallea\FatturaPA\Exceptions\InvalidValueException; use Robertogallea\FatturaPA\Traits\Traversable; use Sabre\Xml\Reader; u...
true
1421a225ccffcf988ac76a0bca4678452d94ffa8
PHP
sergeytkachenko/robot-labyrinth
/app/modules/public/controllers/RobotController.php
UTF-8
1,046
2.71875
3
[]
no_license
<?php class RobotController extends \MVC\Controller{ public function moveAction() { $mapCoordinates = json_decode($this->getParam('map')); $history = json_decode($this->getParam('history')); $absoluteHistory = json_decode($this->getParam('absoluteHistory')); $currentCell = json_de...
true
43d0b7a87336da6cde8666059930e0de93e8d0ed
PHP
mgerson/filemanager3
/filemanager3.php
UTF-8
835
3.3125
3
[]
no_license
<?php $path = dirname(__FILE__); $file = $path.'/files/exemplo.txt'; $content = ''; if (file_exists($file) && is_readable($file)) { $lista = file($file); for ($i = 0; $i < count($lista); $i++) { // separa cada elemento e guarda em um array temporario $tmp = explode(', ', $li...
true
9cd247151573f0f55a4a6a407ffc31b232ff040e
PHP
pilot114/vk-apigen
/src/Method/Messages/GetConversationsById.php
UTF-8
1,809
2.75
3
[]
no_license
<?php namespace VkApigen\Method\Messages; /** * Returns conversations by their IDs */ class GetConversationsById extends \VkApigen\BaseMethod { protected $params = []; protected $accessTokenType; public function __construct($client, $defaultQuery, string $accessTokenType = null) { $this->acc...
true
5b0ce83ec6afd459a319fdc043609cec29169399
PHP
awesomite/stack-trace
/examples/read-arguments.php
UTF-8
1,899
2.640625
3
[ "MIT" ]
permissive
<?php /* * This file is part of the awesomite/stack-trace package. * * (c) Bartłomiej Krukowski <bartlomiej@krukowski.me> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ require \implode(\DIRECTORY_SEPARATOR, array(__DIR__, '..',...
true
6318472ce22cf7ecb7ab0177a9040da01d8be975
PHP
whafeez/cricktest
/database/migrations/2020_02_01_121728_create_team_final_score_table.php
UTF-8
970
2.578125
3
[]
no_license
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateTeamFinalScoreTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('team_fin...
true
1e039d38b60653d398bf58e7ea7139708ec1e7f8
PHP
aditnanda/native-crud-with-bug
/index.php
UTF-8
1,052
2.609375
3
[]
no_license
<?php include_once('koneksi.php'); $q = mysqli_query($koneksi, "SELECT * FROM users"); ?> <!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"> <title>Document</title> <...
true
d942ab9c6b12159bb0e11796dd3c23cbb1a43401
PHP
ActiveWafl/Extensions
/Users/UserAuthentication/SignonHandlers/Database.php
UTF-8
7,961
2.71875
3
[]
no_license
<?php namespace Wafl\Extensions\Users\UserAuthentication\SignonHandlers; use DblEj\Application\IApplication, Exception; class Database implements ISignonHandler { private $_settings = ["UserTable"=>"Users", "UserTableKeyField"=>"UserId", "UserTableKeyIsAuto"=>true, "SessionTable"=>"Sessions", "UsernameColumn"=...
true
d8d5b4b48a54cd2fe74d64ab2072dad75298895e
PHP
ljphalen/jinli
/gamehall/gamedev/Source/Modules/Admin/Model/ContractModel.class.php
UTF-8
1,026
2.78125
3
[]
no_license
<?php /** * 合同模型 * @author noprom */ class ContractModel extends Model { protected $trueTableName = 'contract'; // 合同状态 public static $status = array( '0' => '未申请', '1' => '申请中', '-1' => '申请不通过', '2' => '扫描件未回传', '3' => '审核中', '-2' => '审核不通过', '4' =>...
true
6ec13f7d0a36b7dd6eec18ffea714ba4ce215dcf
PHP
ronv/the-black
/kirby/vendor/getkirby/toolkit/lib/sql.php
UTF-8
22,449
2.953125
3
[ "MIT", "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-proprietary-license", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /** * SQL * * SQL Query builder * * @package Kirby Toolkit * @author Bastian Allgeier <bastian@getkirby.com>, Lukas Bestle <lukas@getkirby.com> * @link http://getkirby.com * @copyright Bastian Allgeier * @license http://www.opensource.org/licenses/mit-license.php MIT License */ class Sql { ...
true
1580b921c2d7c45fd491de862c8e964be24036b9
PHP
tonga54/jumping_inflables
/app/core/View.php
UTF-8
248
2.71875
3
[]
no_license
<?php class Views{ function __construct($view,$data = null,$data1 = null,$data2 = null){ if(file_exists("./view/" . $view . ".php")){ require("./view/" . $view . ".php"); }else{ die("Vista no encontrada"); } } } ?>
true
57041b9bd488f2f2012b947410bef25a449ea253
PHP
ADmad/cakephp-i18n
/src/View/Widget/TimezoneWidget.php
UTF-8
2,312
2.8125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace ADmad\I18n\View\Widget; use Cake\View\Form\ContextInterface; use Cake\View\Widget\SelectBoxWidget; use DateTimeZone; /** * Input widget class for generating a selectbox of timezone. */ class TimezoneWidget extends SelectBoxWidget { /** * {@inheritDoc} * *...
true
ea189ec569501fb4a84b454eada7c6c92b9369eb
PHP
lazarocosta/FEUP_LBAW
/lbaw1655/proto/api/tickets/editaccount.php
UTF-8
1,503
2.703125
3
[]
no_license
<?php include_once('../../database/users.php'); /** * EDIT ACCOUNT */ if ($_GET["acao"] == "edit") { $name = trim(strip_tags($_POST["name"])); $address = trim(strip_tags($_POST["address"])); $pass = trim(strip_tags($_POST["password"])); $confirmPass = trim(strip_tags($_POST["confirmPassword"])); ...
true
0dcaa7b189420abfac4d3feecccf948b1e02a276
PHP
medvedevanatalya/app-restaurant
/app/Http/Controllers/UserController.php
UTF-8
2,437
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Models\Order; use App\Models\User; use Illuminate\Http\Request; class UserController extends Controller { public function index() { $curUser = auth()->user(); //все сотрудники $users = User::all(); return view('users.index', comp...
true
64453a33157769e481e9aa82b7e15a55667631c9
PHP
preethamb97/simple-php-Rest-API
/queries/internal/user.php
UTF-8
1,786
2.96875
3
[]
no_license
<?php class user { public function getUsersDetail() { $sql = "SELECT * FROM user"; $result = database::getAll($sql, array()); return $result; } public function getOneUserDetail($userId, $options=array()) { $sql = "SELECT * FROM user WHERE user_id=:userId...
true
08ffae90446ac978bbffbfaa2ae178b6a2377bb6
PHP
koenhoeymans/AnyMark
/src/Api/PatternConfigLoaded.php
UTF-8
1,106
2.84375
3
[ "BSD-2-Clause" ]
permissive
<?php namespace AnyMark\Api; /** * This event is thrown after the configuration of the patterns is loaded. It * allows for the modification of the configuration of the pattern order and * the patterns that are used. */ interface PatternConfigLoaded { /** * Set the implementation that should be used for a...
true
23d6e705c111f608e8340d094b902f71dce9e5b2
PHP
Lex95/php-oop-2
/creditCard.php
UTF-8
720
3.46875
3
[]
no_license
<?php require_once "validator.php"; class creditCard { private $nomeCarta; private $saldo; use Validator; public function __construct($nome, $saldo) { $this->isValidName($nome); $this->nomeCarta = $nome; $this->isValidNumber($saldo); $this->saldo = $saldo; } pu...
true
2dc5ec14fa9dbf7ac6264173dd4f5f14a6ab9f9d
PHP
xup6m6fu04/Fat-Free-Practice
/app/Controllers/ClassController.php
UTF-8
8,129
2.671875
3
[]
no_license
<?php namespace App\Controllers; use App\Services\ClassService; use App\Services\ClassStudentService; use App\Services\ClassTeacherService; use App\Services\SchoolService; use App\Services\StudentService; use App\Traits\LoggerTrait; use Carbon\Carbon; use Exception; use Monolog\Logger; class ClassController extend...
true
5ff1dc38af0a41b265e4db5ae307f8fd449e8f59
PHP
silasrm/MyZendAssets
/FileUpload/Form.php
UTF-8
650
2.9375
3
[]
no_license
<?php /** * Handle file uploads via regular form post (uses the $_FILES array) * @url https://raw.github.com/valums/file-uploader/master/server/php.php */ class FileUpload_Form { /** * Save the file to the specified path * @return boolean TRUE on success */ function save( $path ) ...
true
f0ebb7bb0ea0dc2ae29644198cc08366ac60344b
PHP
nexts-corp/58-KMUTNB-EBUDGET
/apps/budget/interfaces/IBudgetTrackingService.php
TIS-620
998
2.828125
3
[ "MIT" ]
permissive
<?php namespace apps\budget\interfaces; /** * @name BudgetTrackingService * @uri /budgetTracking * @description BudgetTrackingService */ interface IBudgetTrackingService { /** * @name getInfoTracking * @uri /getInfoTracking * @param String budgetType Description ҳ * @param String quater ...
true
b624ec6f1b13c92da9f0ab3d389a866e5ecc1b79
PHP
nadj851/Circuit_Voyage
/Circuit/CircuitAPI.php
UTF-8
976
2.578125
3
[]
no_license
<?php require_once("../includes/init.php"); require_once("../includes/modele.inc.php"); $tabRes = array(); global $tabRes; $requete = "SELECT * FROM circuit "; $tabRes['action'] = "afficherCircuits"; $param = ""; if (isset($_GET['idCircuit'])) { $_SESSION["idCircuit"]=$_GET['idCircuit']; $param = ...
true
6f6c38173b345c696d701210716c2531bf44be22
PHP
pawlowskim/brzoza
/ui/account.php
UTF-8
1,633
2.578125
3
[]
no_license
<?php if(!isset($_SESSION["name"])){ echo "NOPE!"; exit; } ?> <table border="1" width="750px"> <tr> <th>Data ost. nieudanego logowania</th> <th>Data ost. udanego logowania</th> <th>Liczba nieudanych logowań od ost. udanego logowania</th> <th>Ilość możliwych prób logowa...
true
92d6e67e9f952bdf3cdabcb9c3a1bb8b86e9b0ba
PHP
borfirbora/merdo
/mert.techredio.com/index.php
UTF-8
1,648
2.671875
3
[]
no_license
<?php include('header.php'); ?> <?php $ad = $_POST['ad']; $mesaj = $_POST['mesaj']; if(isset($_POST['gonder'])){ if(empty($_POST['ad'])){ echo'<div role="alert"><p>Heeey, Adın ne? Yazmayı unuttun!</p></div>'; } elseif(empty($_POST['mesaj'])){ echo'<div role="alert"><p>Heeeey? Mesajın nedir? Onu yazmadın.</p></div>'; ...
true
bc99673b90e22e20ea9c42af951d9b9e8b44b0d6
PHP
YuweiXiao/SE228-Web
/iter1/application/controllers/admin/Admin.php
UTF-8
573
2.609375
3
[]
no_license
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Admin extends CI_Controller { var $data = array(); /** * Constructor * Autoload: auth */ public function __construct() { parent::__construct(); $this->load->model('user_model'); $this->load->model('book_model'); } /** * ...
true
9ca5e5dc97230bbef09939a5df4b1aab64f303df
PHP
ReqApi/phptea
/Old/phpobj.php
UTF-8
5,120
3.46875
3
[]
no_license
<?php class cli { private $handle = null; private $line = null; public function __construct() { $this->handle = fopen("php://stdin", "r"); $this->line = ""; } public function inp(){ $line = trim(fgets($this->handle)); return $line; } public function out($string = "Lol, what?", $type = "n", $br = 1){...
true
1356811ea7758691d58ae9997d6540885911fe09
PHP
Shobit1502/php-notes
/DataTypes.php
UTF-8
435
3.34375
3
[]
no_license
<?php echo "data types in php<br>"; echo "Integer<br>"; echo "Float<br>"; echo "boolean <br> ";/* i.e. true and false */ echo" Object,Array,Null<br>"; /* var dump function tells details about the variable */ $opinion=true; echo"var_dump($opinion)<br>"; echo var_dump($opinion); echo "<br>"; $friends=array("ro...
true
fcc251f95d4ad211cc3750e1f66629da7cc200b5
PHP
PhpFastWeb/phpfastweb
/src/columns/validation_rules/validation_unique.class.php
WINDOWS-1250
975
2.71875
3
[]
no_license
<?php class validation_unique extends avalidation_rule implements ivalidation_rule { protected $invalid_message_text = ''; public function __construct($invalid_message_text='') { $this->invalid_message_text = $invalid_message_text; } function check_column(icolumn $column) { if ($this->skip_vali...
true
4cad7a7eab291a3a148c586566a745063126f7a4
PHP
danielgaleano1/invoice_management
/database/migrations/2019_11_21_042921_create_collaborators_table.php
UTF-8
1,146
2.609375
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateCollaboratorsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('collabora...
true
68d6b680908f434df2c11ec4bd65eede8071a058
PHP
mikerosevelt/CI3-Inventory-App
/application/controllers/Auth.php
UTF-8
8,965
2.5625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php defined('BASEPATH') or exit('No direct script access allowed'); class Auth extends CI_Controller { public function __construct() { parent::__construct(); $this->load->model('User'); } public function index() { // check if user already login cannot visit Login page. if ($this->session->...
true
7ff2aceeb8ad1fa9c1eab301b6786c9b77c57aab
PHP
Shurikoz/yii2-SPB
/backend/controllers/SiteController.php
UTF-8
5,401
2.53125
3
[]
no_license
<?php namespace backend\controllers; use backend\models\Book; use backend\models\BookCategoryList; use backend\models\Category; use backend\models\Feedback; use common\models\LoginForm; use igogo5yo\uploadfromurl\UploadFromUrl; use Yii; use yii\data\Pagination; use yii\filters\AccessControl; use yii\filters\VerbFilte...
true
f33a85c028d0f7754495a217b766e01fe85801d1
PHP
richardjonesnz/moodle-report_teachers_classes
/classes/local/class_list.php
UTF-8
3,701
2.640625
3
[]
no_license
<?php // This file is part of Moodle - http://moodle.org/ // // Moodle 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, either version 3 of the License, or // (at your option) any later version. // // Moodle ...
true
fcac12d38b84f5a2c522442b4b36dbf3557bb22c
PHP
kaunas-coding-school/csba_laravel
/tests/ApiRequests.php
UTF-8
1,340
2.734375
3
[ "MIT" ]
permissive
<?php namespace Tests; use Illuminate\Http\Response; trait ApiRequests { protected function jsonGet(string $path, int $expectedStatus = 200, ?array $headers = []): array { return $this->jsonRequest('GET', $path, [], $expectedStatus, $headers); } protected function jsonRequest( string...
true
5186dca0ea3bfecaff38b242e2292d4eee1eca4d
PHP
AngeloR/killinging
/class/Fight.php
UTF-8
3,803
3.21875
3
[]
no_license
<?php class Fight { private $first; private $second; private $winner; private $loser; private $player; private $monster; private $flee; private $rounds; public function __construct($attacker1,$attacker2) { if($attacker1->agi > $attacker2->agi) { $this->first = $attacker1; $this->second = $attacker...
true
7707edd8283fb2a60bb41c9dbde23758daf203f7
PHP
Mikhail11/New_Version
/includes/core/CommonFunctions.php
UTF-8
10,474
3.234375
3
[]
no_license
<?php /// Статический класс с общими полезными методами, использующимися на всем портале /** * @author Anthony Boutinov */ class CommonFunctions { /// Эквивалент SQL функции NVL (NullValue) /** * Возвращает переданное значение если оно есть либо второй параметр, * если значение === NULL. По умолча...
true
8493ba40f6528beb6c60338eac5a8e3c761e77d6
PHP
lefevbre-organization/eShopOnContainers
/src/Web/POC/test-nextcloud/nextcloud/custom_apps/mail/vendor/rubix/ml/src/NeuralNet/Network.php
UTF-8
248
2.625
3
[ "MIT", "LicenseRef-scancode-free-unknown", "CC-BY-NC-4.0", "AGPL-3.0-only" ]
permissive
<?php namespace Rubix\ML\NeuralNet; use Traversable; interface Network { /** * Return the layers of the network. * * @return \Traversable<\Rubix\ML\NeuralNet\Layers\Layer> */ public function layers() : Traversable; }
true
419b68d20f5eb0d67773927ac8adcc4f9e0059df
PHP
GavinSmyth/InTheKitchen1
/inthekitchen/hello/registration.php
UTF-8
593
2.578125
3
[]
no_license
<?php session_start(); $con = mysqli_connect('localhost','root','','registration'); if(!$con){ die("db error"); echo "database not connected"; }else{ echo "database successful"; } // mysqli_select_db($con,'registration'); $name = $_POST['user']; $pass = $_POST['password']; $s = "select * from usertable where...
true
fda91ee7001bc7ba2ad17f6a8a4078bf2db36657
PHP
HGthecode/thinkphp-apidoc
/src/generator/ParseTemplate.php
UTF-8
13,163
2.578125
3
[ "MIT" ]
permissive
<?php declare(strict_types = 1); namespace hg\apidoc\generator; use hg\apidoc\Utils; use think\facade\App; class ParseTemplate { public function compile($path,$params) { $filePath = $path; $tplContent = Utils::getFileContent($filePath); $tplContent = $this->replaceFo...
true
d18aec795d33ef5a550ef537fc460104eb9ad89a
PHP
barrosgabriel/Colegio-exercicio
/cadTurma.php
UTF-8
1,503
2.8125
3
[]
no_license
<?php $error= ""; include("db.php"); if (isset($_POST['registrar'])) { $desc= $_POST['desc']; $vagas= $_POST['vagas']; $prof= $_POST['prof']; if (strlen($desc) < 10) { $error= "<h2 style= 'color:red'>Descrição de turma muito curta</h2>"; }else if (strlen($prof) < 3) { $error= "<h2 style= 'color:r...
true
a89081d30ed8d23a9a9e75d2f5c87bd21ef0436f
PHP
NagendraPasupula/Online-Book-Store-with-cloud
/ebook_detail.php
UTF-8
7,260
2.609375
3
[]
no_license
<?php include 'header.php';?> <?php include_once 'config.php';?> <?php $ID = $_GET["ID"]; $quer = "select * from votes where BookID=$ID;"; $dat = $conn->query($quer); $mydata[] = "['option', 'value']"; if(mysqli_num_rows($dat)>0){ while($r = $dat->fetch_assoc()){ $mydata = array("3 to 6 hrs"=>$r['3_6'], "1...
true
7ae15f472ba527a4093d43e30f050029a529093e
PHP
q312700254/fastdfs4php
/src/Traits/DeleteTrait.php
UTF-8
790
2.640625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: WUC * Date: 2018/5/16 * Time: 16:43 */ namespace FastDFS\Traits; trait DeleteTrait { /** * 根据组名,文件名删除文件 * @param string $group_name * @param string $remote_filename * @return bool */ public function storage_delete_file(string $group_name, s...
true
a85962bfe979cc13c0a8d8ed02db9a2df9ea2508
PHP
turkprogrammer/php-objects-patterns-practice-5-rus
/src/ch04/batch05/Runner.php
UTF-8
427
2.671875
3
[]
no_license
<?php declare(strict_types=1); namespace vitaliyviznyuk\popp5rus\ch04\batch05; class Runner { /** * @return void */ public static function run(): void { $product = new ShopProduct(); } public static function run2() { $consultancy = new Consultancy(); } publi...
true
02e12c4b620b933bce55c8dd560d96f0907c9ea1
PHP
tlayh/TwitterApi
/lib/Twitter/Api/OAuthConsumer.php
UTF-8
390
3.109375
3
[ "MIT" ]
permissive
<?php namespace Twitter\Api; class OAuthConsumer { public $key; public $secret; function __construct($key, $secret, $callbackUrl=NULL) { $this->key = $key; $this->secret = $secret; $this->callbackUrl = $callbackUrl; } function __toString() { ...
true
cbf57cc57cba5e1636b4e2b9ffc55d2748b216fd
PHP
efri-yang/MyProject
/src/MyPhpProject/GongNengModule/MianXiangDuiXiang/destruct-1.php
UTF-8
267
3.484375
3
[]
no_license
<?php class MyDestructableClass{ function __construct(){ print "In MyDestructableClass-constructor"."<br/>"; $this->name="MyDestructableClass"; } function __destruct(){ print "Destroying ".$this->name."\n"; } } $obj=new MyDestructableClass(); ?>
true
a921fb33cb6ee4ef859beda197da172592173a5f
PHP
Fatima1160801/BZU_transportation-
/database/migrations/2021_03_24_195704_create_cabs_table.php
UTF-8
944
2.59375
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateCabsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('cabs', function (B...
true
0130a7130db329ecc1ddcc978093311e94db37b5
PHP
bingo-soft/jabe
/src/Impl/El/FixedValue.php
UTF-8
908
2.859375
3
[ "MIT" ]
permissive
<?php namespace Jabe\Impl\El; use Jabe\ProcessEngineException; use Jabe\Delegate\{ BaseDelegateExecutionInterface, ExpressionInterface, VariableScopeInterface }; class FixedValue implements ExpressionInterface { private $value; public function __construct($value) { $this->value = $va...
true
515f6d8ebab6278d16167734d30fbb116dbdbe51
PHP
kratijhindal/infosec2
/php_basics/for.php
UTF-8
89
2.75
3
[]
no_license
<?php $i = 0; $num =10; for($i=0;$i<10;$i++){ echo "the value of $i <br>"; } ?>
true
f654389319d7621bd9bb915428040459b7576af4
PHP
predatorpc/callex
/models/CallbackAutoCalls.php
UTF-8
2,751
2.703125
3
[ "BSD-3-Clause" ]
permissive
<?php /** * Created by PhpStorm. * User: rr * Date: 15.12.17 * Time: 9:35 */ namespace app\models; use yii\base\Model; class CallbackAutoCalls extends Model { const PATH_DONE = ''; public function startCallback(){ //открываем папку и читаем из нее файлы // если файл прочитан и все сохр...
true
f9726e2fb7c97bcef4931308e3dcccf60d0af7cb
PHP
MansonOrYmc/youyao99
/QA/system/classes/apf/Component.php
UTF-8
5,748
2.578125
3
[ "MIT" ]
permissive
<?php /** * APF 组件类,所有页面显示的基础类 * added by htlv */ abstract class APF_Component { /** * 组件构造函数,每个组件都有父组件,最早的祖先组件是一个页面类 * @param APF_Component $parent 父组件对象 * @param int $html_id 组件id */ public function __construct($parent=NULL, $html_id=NULL) { $this->parent = $parent; $thi...
true
bed0016adfa429bfa272a982c55e74181273efa9
PHP
katherto/WEB128
/Practice/Radio Buttons from Array/dynamicRadio.php
UTF-8
725
2.890625
3
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Choose your State</title> </head> <body> <h2>Dynamic Radio Buttons</h2> <form action="dynamicRadio.php" method="POST"> Pick your State:<br> <?php $states = array("Kan...
true
3972832b279525292510ac28b37eb4d144058092
PHP
devvyhac/farmapropos
/accounts/signup.php
UTF-8
5,892
2.765625
3
[]
no_license
<?php // session_start(); // if (isset($_SESSION['id']) && isset($_SESSION['email']) && isset($_SESSION['username'])) { // header("Location: ../account"); // } // if ($_SERVER['REQUEST_METHOD'] == "POST") { // require_once "process.php"; // $process = new Process(); // $result = $process->signup($_POST...
true
88a76765c240993bee78beca8ca783f2753ba66e
PHP
IgzyyJere/php_XML
/njuskalo/vivio/vivo2/vivoAplikacije/prikazKlijenta.php
UTF-8
1,852
2.546875
3
[]
no_license
<?php // brisanje podatka / if ( $_GET['obrisi'] ) { if ( $p['razina'] == 1 ) { $upit = "DELETE FROM `".$tabela."` WHERE id = '".$_GET['obrisi']."'"; mysql_query ( $upit ); } else { $upit = "UPDATE `".$tabela."` SET obrisano = 1 WHERE id = '".$_GET['obrisi']."'"; mysql...
true
cf2736edbe318baa21a9014b4ac6bea8cfb85f8f
PHP
avishka964/grill-island-wdp
/controllers/profile.php
UTF-8
1,408
2.578125
3
[]
no_license
<?php session_start(); // Report all PHP errors error_reporting(E_ALL); if(isset($_POST['update-profile'])){ include_once("../config/DatabaseConn1.php"); $userNewName = $_POST['username']; $userNewEmail = $_POST['useremail']; $userNewPassword = $_POST['userpassword']; $userNewConfirmPas...
true
df2a80f688aea0bac1ef7427313c40b715b9b999
PHP
SeanMcA/GetGolfCourses
/index1.php
UTF-8
4,194
2.546875
3
[]
no_license
<html> <head> <title>Getting General course info!</title> </head> <body> <?php set_time_limit(0); //database connection parameters $databaseAddress = "localhost"; $username = "root"; $password = ""; $database = "zelusitc_GolfCourses"; $table = "course"; $file = "10500-11999.csv"; //place this before any script you wa...
true
d3d3583bc18797fc0f0c6d1683554fb27c37f567
PHP
gabrielpcruz/filldatabase
/src/Http/Api/Tables.php
UTF-8
1,017
2.609375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Api; use App\Http\ControllerApi; use Illuminate\Database\Capsule\Manager; use Psr\Http\Message\ResponseInterface as Response; use Psr\Http\Message\ServerRequestInterface as Request; class Tables extends ControllerApi { /** * @param Request $request * @param Response $response ...
true
b2d8132454887119186f48a5ca7dd55ebea721b3
PHP
DuckThom/code-wookies
/php/php7test.php
UTF-8
427
3.65625
4
[]
no_license
<?php declare(strict_types=1); class Hoi { public static function foo(): string { return "bar"; } public static function bar(): int { return 1; } public static function foobar(): float { return true; } } echo "Hoi::foo() - "; var_dump(Hoi::foo()); echo "Hoi::bar() - "; var_dump(Hoi::bar()); echo "Hoi:...
true
84eb84a16a36319fabbb6b2014b97fcced6e893b
PHP
Ahmedtgd/trunk2
/app/AuthenticateUser.php
UTF-8
3,083
2.578125
3
[]
no_license
<?php namespace App; use App\Models\User; use Illuminate\Contracts\Auth\Guard; use Illuminate\Support\Facades\Redirect; use Illuminate\Support\Facades\URL; use Laravel\Socialite\Contracts\Factory as Socialite; use App\Http\Controllers\TokenController; use Request; use Session; class AuthenticateUser { /** *...
true
63ef07324f67098d59419f4870ddb125aeee6a40
PHP
Getteli/apipagseguro
/Legacy - PAGSEGURO - Checkout transparente/_assets/pagseguro/consult_pagseguro.php
UTF-8
1,615
2.609375
3
[ "MIT" ]
permissive
<?php // charset header('Content-Type: text/html; charset=utf-8'); // header('Content-Type: text/xml;'); // chama a configuracao include("config.php"); $Referencia = '83783783737'; // GET $Url="https://ws.sandbox.pagseguro.uol.com.br/v2/transactions?email=".EMAIL_PAGSEGURO."&token=".TOKEN_SANDBOX."&reference...
true
751c6900bbf000bdde4e7c32f3e2d7b4d1fcc55a
PHP
chabby-hao/laravel_admin
/app/Models/BiDeliveryOrder.php
UTF-8
3,674
2.609375
3
[]
no_license
<?php namespace App\Models; /** * App\Models\BiDeliveryOrder * * @property int $id * @property int $user_id * @property int $state 状态,0=代工厂处理,1=已完成,2=已作废 * @property int $ship_no 出货单号 * @property int $order_id * @property string|null $part_number 料号 * @property int $fact_id 工厂id(其实就是user_id) * @property \Ca...
true
e36614ea92b82b0f58a2e0f2e43f62a2fa3268f1
PHP
jamesonyemi/code_challenge
/gradingStudent.php
UTF-8
1,126
3.84375
4
[]
no_license
<?php /* * Complete the 'gradingStudents' function below. * * The function is expected to return an INTEGER_ARRAY. * The function accepts INTEGER_ARRAY grades as parameter. */ function gradingStudents($grades) { // Write your code here $isRoundedGrade = []; for ($i = 0; $i < count($grades); $i++) { ...
true
bbebb8b2925951cb24dfcc380872c2dd6a35db8d
PHP
hanneskod/readme-tester
/src/Attribute/DeclareDirective.php
UTF-8
489
2.515625
3
[ "Unlicense" ]
permissive
<?php declare(strict_types=1); namespace hanneskod\readmetester\Attribute; #[\Attribute(\Attribute::IS_REPEATABLE | \Attribute::TARGET_ALL)] class DeclareDirective extends PrependCode { private string $directive; public function __construct(string $directive) { parent::__construct("declare($dire...
true
41fec0f0b188bf1e7e1a2c68cbcec8aab3111686
PHP
cybspace/gbphp
/L6/private/db_tasks.php
UTF-8
6,723
2.75
3
[]
no_license
<?php include_once __DIR__ . '/../config/main.php'; include_once 'dependencies.php'; /******************************************* file_props_arr = [ 'id' => null 'file_name' => $file_name, 'url' => $file_url, 'thumbnail_url' => $file_thumbnail_url, 'alt_url' => $file_alt_url ]; ****************...
true
b28d2b5d36ac648029f83fb90e76fc46733b49fc
PHP
mattbit/eloquent-sortable
/src/Spatie/EloquentSortable/Sortable.php
UTF-8
2,174
3.109375
3
[ "MIT" ]
permissive
<?php namespace Spatie\EloquentSortable; use Illuminate\Database\Eloquent\Builder; trait Sortable { /** * Set the order attribute on the model. * * @param int $value */ public function setOrder($value) { $key = $this->determineOrderColumnName(); $this->attributes[$key] ...
true
eb2b6722af132f9a416e68c8b952415f2ddeb060
PHP
StevenGabule/PHP-Code-Practice
/array/arrays.php
UTF-8
809
3.515625
4
[]
no_license
<?php // single array of variable // $months = array('January', 'Febrary', 'March', 'April', 'May'); // echo $months[1]; // $tuts_sites = array('Net', 'Design', 'Wordpress', 'Coding'); // print_r($stuts_sites); // Associative Array $tuts_sites = array( 'net' => 'http://facebook.com', 'design' => 'http://...
true
679c630bbff921f63b808113091db680426f4cc1
PHP
Ziptastic/ziptastic-php
/tests/IntegrationTest.php
UTF-8
1,569
2.671875
3
[ "MIT" ]
permissive
<?php use PHPUnit\Framework\TestCase; use Ziptastic\Client; /** * @group integration */ class IntegrationTest extends TestCase { private $apiKey; public function setUp() { $this->apiKey = getenv('ZIPTASTIC_API_KEY'); if (!$this->apiKey) { $this->markTestSkipped('No API Key....
true
ee3d0117f933431d213e8bef3d0c5c7b9f4a6d3b
PHP
molchanov-andrew/Localotto
/backend/widgets/image/Select2Banner.php
UTF-8
1,082
2.546875
3
[]
no_license
<?php namespace backend\widgets\image; use common\models\records\Banner; use Yii; class Select2Banner extends Select2Image { const SELECT2BANNER_CLASS_NAME = 'select2-banner-widget'; public function init() { $this->options['class'] = (isset($this->options['class']) && is_string($this->options['...
true
0f5d6bd0625e47c39c4ff02f3825d2a03db12f77
PHP
webn716/car
/common/models/Baoyang.php
UTF-8
2,744
2.703125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace common\models; use Yii; /** * This is the model class for table "baoyang". * * @property integer $id * @property integer $uid * @property integer $car_id * @property integer $type * @property integer $last_licheng * @property integer $zhouqi * @property string $last_date * @property string ...
true
c75e4c8e8ac091821548a62b098abd37f4ea22fb
PHP
PTSDLQA/Vulnerabilities
/PHP/4 ERROR PROCESSING/2 Detection of Error Condition Without Action/php/MOPAS_1_no_action_on_error.php
UTF-8
277
3.328125
3
[]
no_license
<?php /** * MOPAS Detection of Error Condition Without Action Example 1 */ function inverse($x) { if (!$x) { throw new Exception('Division by zero'); } return 1/$x; } try { echo inverse(5) . "\n"; echo inverse(0) . "\n"; } catch (Exception $e) { // do nothing } ?>
true
b0429ae0b1473abbe33483f5ac8c73151e8d5909
PHP
vladimir-doroshenko/PadCMS-backend
/application/include/AM/Component/Record/Auth/Login.php
UTF-8
2,634
2.53125
3
[]
no_license
<?php /** * @file * AM_Component_Record_Auth_Login class definition. * * LICENSE * * $DOXY_LICENSE * * @author $DOXY_AUTHOR * @version $DOXY_VERSION */ /** * Login record component * @ingroup AM_Component * @todo refactoring */ class AM_Component_Record_Auth_Login extends Volcano_Component_Record { /...
true
d5bce514778d047928abc2a30728109cb0e89b70
PHP
christian-heiko/hey
/src/Hey/ServerConfig.php
UTF-8
1,152
2.71875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: christian-heiko * Date: 26.06.17 * Time: 19:02 */ namespace Hey; class ServerConfig { public $serversPath; public $configsPath; public $errorLogPath; public $devDomainName; public $excludedServers = []; public $publicFolders = ['web', 'public...
true
e47393aaffb787bcf2b75eca13a487a39a7fc26d
PHP
matsubo/server-setup-script
/archive/mailadmin/classes/ListScheduleAction.php
UTF-8
2,496
2.65625
3
[]
no_license
<?php /* ** Mail address register * * 2004/8/8 matsu@ht.sfc.keio.ac.jp */ require_once("DB.php"); require_once("config.inc"); class ListScheduleAction{ function ListScheduleAction(){ } function execute(){ global $cfg; $data = array(); ## Connect to DB $dbh = DB::connect($...
true
0161f020d874e2f110c850b81d8d9468ed9a1f64
PHP
monocerus1990/test2_php
/CA5/model/orders_db.php
UTF-8
3,790
2.671875
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. */ function select_all_orders($pageNum) { global $db; $query = "SELECT * FROM orders ORDER BY order_date LIMIT ".($pageNu...
true
f01f323f107d7112d0f22b422d8b60c6746a62db
PHP
endikamanoso/iaw-2017-18
/practicas/practica10/json/loteria.php
UTF-8
1,375
2.578125
3
[]
no_license
<?php header("Content-type: application/json"); echo "{"; echo "\"premios\":["; echo "{"; echo "\"tipo\":\"primero\","; echo "\"cantidad\":400000,"; echo "\"numeros\":["; echo mt_rand(0,99999); echo "]"; echo "},"; echo "{"; ...
true
d7000a998f2352609ba37748a2970b86b4524f1d
PHP
VladmirCac/Projeto_3-Estagio-PDW
/admin/beckuoService/CategoriaService.php
UTF-8
3,907
2.65625
3
[]
no_license
<?php /* Aqui será o código referente aos serviços do Objeto autor*/ // Organizador dos passos acessados pelas telas através do GET. $passo = (isset($_GET['passo'])) ? $_GET['passo'] : 'listar'; switch ($passo) { case 'cadastrar': {cadastrarCategoria(); break;} case 'alterar': {alterarCategoria(); brea...
true
d928287d96d7a1454ae3d673c19b808014ce530e
PHP
madaputraa/php-crud
/proses_edit.php
UTF-8
850
2.5625
3
[]
no_license
<?php // memanggil file koneksi.php untuk melakukan koneksi database include 'koneksi.php'; // membuat variabel untuk menampung data dari form $id = $_POST['id']; $nama_produk = $_POST['nama_produk']; $harga_beli = $_POST['harga_beli']; $harga_jual = $_POST['harga_jual']; $query = "UPDATE produk SET n...
true
91e1fe0182ac45c18fe83424c047e214bb28d9c2
PHP
MarioBlazek/extending-symfony
/src/MB/Bundle/GithubAuthBundle/Security/Github/AuthenticationProvider.php
UTF-8
1,413
2.78125
3
[]
no_license
<?php namespace MB\Bundle\GithubAuthBundle\Security\Github; use Symfony\Component\Security\Core\Authentication\Provider\AuthenticationProviderInterface; use Symfony\Component\Security\Core\Authentication\Token\TokenInterface; use Symfony\Component\Security\Core\Exception\AuthenticationException; class Authentication...
true
cd4d1512e6588dc4e457c289f3552e0d419f9968
PHP
markwell/cpvdvfu-1
/users/volunteers/loginVolunteer.php
UTF-8
2,271
2.625
3
[]
no_license
<?php include_once $_SERVER['DOCUMENT_ROOT']."/cpvdvfu/system/bd.php"; function checkAndAuthUser($login, $password) { function generateCode($length = 6) { $chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIFJKLMNOPRQSTUVWXYZ0123456789"; $code = ""; $clen = strlen($chars) - 1; while (strlen($c...
true
5471a3f1ed6849050f6e785f74b34546c503212a
PHP
Leexy/projetPHP
/lib/Entity/Hit.php
UTF-8
1,124
3.03125
3
[]
no_license
<?php namespace Entity; //represente un tir d'un des deux joueurs dans une partie class Hit extends Base { public function getX() { return $this->data['x']; } public function getY() { return $this->data['y']; } public function getUserId() { return $this->data['...
true
c674d6d0793d0f93b1263cd36a807abd0e04e49d
PHP
snyff/TVsite
/show.php
UTF-8
2,216
2.515625
3
[]
no_license
<?php session_start(); require_once("config.php"); $showID = $_SERVER['QUERY_STRING']; $result = mysql_fetch_array(mysql_query("select * from item where itemID = '$showID'")); $result2 = mysql_query("select * from episode where itemID = '$showID'"); ?> <html> <head> <title>Mbete TV</title> <link href=...
true
0254ba53408f7ddb92f8aadca6f8923a83240698
PHP
ZikulaGroupware/Main
/src/lib/viewplugins/modifier.yesno.php
UTF-8
1,691
2.734375
3
[]
no_license
<?php /** * Copyright Zikula Foundation 2009 - Zikula Application Framework * * This work is contributed to the Zikula Foundation under one or more * Contributor Agreements and licensed to You under the following license: * * @license GNU/LGPLv3 (or at your option, any later version). * @package Zikula_View * @...
true
4d91c56fefbefd4276db0b990d142a01fc7be7f8
PHP
LithiumHosting/larageo-plugin
/src/LithiumDev/LaraGeo/LaraGeo.php
UTF-8
5,769
3.015625
3
[ "MIT" ]
permissive
<?php namespace LithiumDev\LaraGeo; use Cache; use GuzzleHttp\Client; use GuzzleHttp\Exception\ConnectException; class LaraGeo { /** * Is the current IP stored in the cache? * * @var bool */ public $isCached = false; /** * The URL of the geoPlugin API (json). * * @var s...
true
baee8df9a3dd329e8c52db710befb796e3ec4c98
PHP
YohannMaiVan/Panier
/controlers/login.php
UTF-8
776
2.796875
3
[]
no_license
<?php session_start(); require '../model/model.php'; if (isset($_POST["login"])) { //appeler la fonction qui verifie si mail et mdp sont bien remplis $userConnected = login($_POST["mail"], $_POST["password"]); // la fonction renvoie un chiffre considéré comme true si ils sont bien remplis et on passe dans le if ...
true
9ef0c57ab7933f899fce3534f81cb94a34423542
PHP
habb0/mobbo
/application/classes/filesyste/ZipFile.class.php
UTF-8
4,132
3.3125
3
[ "Apache-2.0" ]
permissive
<?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 ZipFile * * @author RADIO */ class ZipFile { /* creates a compressed zip file */ public s...
true
49a33373e6734f18b0112ea4dd4cdcdead8fd0a0
PHP
taniko/saori
/src/Console/InitCommand.php
UTF-8
1,897
2.609375
3
[ "MIT" ]
permissive
<?php namespace Taniko\Saori\Console; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; use Taniko\Saori\Util; class InitCommand extends Command { protected function configure() { $this ->setName('init') ->setDescription('...
true
0321467af80d915d34c3571c520062e426b0fe5e
PHP
mbutelle/skeleton-4
/src/FileSystem/Domain/Model/FileRepositoryInterface.php
UTF-8
232
2.6875
3
[]
no_license
<?php namespace App\FileSystem\Domain\Model; interface FileRepositoryInterface { public function save(File $file): void; public function get(string $reference): ?File; public function delete(string $reference): void; }
true
7f1af76f62d8a8a85c1d6bddcf398e6cc6293abf
PHP
ViktorKITP/schedule
/server/parserXLS_.php
UTF-8
3,424
2.890625
3
[]
no_license
<?php /** * Created by IntelliJ IDEA. * User: Viktor * Date: 13.02.2016 * Time: 1:17 */ //если не загрузился- ну дапустим ошибка загрузки файла- надо сделать чтобы парсил старое или выдавал старое include_once 'Classes/PHPExcel.php'; require_once('listGroups.php'); require_once('workDB.php'); require_once('filter...
true
30074c7528dca4d90b536666b77a144c56c3e23e
PHP
Yonam/SiteInforAfrique
/connexion.php
UTF-8
1,551
2.59375
3
[]
no_license
<!DOCTYPE html> <!--[if lt IE 9]> <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <?php $bdd = new PDO('mysql:host=127.0.0.1;dbname=espace_membre', 'root', ''); if(isset($_POST['formconexion'])) { $mailconnect = htmlspecialchars($_POST['mailconnect']); ...
true
cc3806e20d17816eea2c2a75e14f99f42aa43b63
PHP
web-complete/core
/src/factory/AbstractFactory.php
UTF-8
780
3.09375
3
[ "MIT" ]
permissive
<?php namespace WebComplete\core\factory; use WebComplete\core\utils\container\ContainerInterface; /** * Class AbstractFactory */ abstract class AbstractFactory { /** * @var ContainerInterface */ private $container; /** * @param ContainerInterface $container */ public function...
true
555fefd5e06db2fb61fc88d9ac9959733a864fd9
PHP
kristinaNik/documents-calculation-challenge
/skeleton/src/Command/CsvImportCommand.php
UTF-8
3,032
2.921875
3
[]
no_license
<?php namespace App\Command; use App\Entity\Currency; use App\Handlers\CurrencyHandler; use App\Handlers\FileHandler; use App\Services\CalculateService; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Com...
true
061fef5be5440484ac3964fa5c2ca9720c7f7591
PHP
cristibaluta/sdk.ralcr
/api.ralcr/filesystem/deleteDirectory.php
UTF-8
905
2.59375
3
[ "MIT" ]
permissive
<?php session_start(); if ($_SESSION['hash'] != $_POST['hash']) die("error::Session expired!"); // Emulate register_globals on if (!ini_get('register_globals')) { $superglobals = array($_SERVER, $_ENV, $_FILES, $_COOKIE, $_POST, $_GET); if (isset($_SESSION)) { array_unshift($superglobals, $_SESSION); ...
true