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
670f8e959fabdc0fd100451b5131a4c14406fc8f
PHP
interaktive/interaktive
/upload_file.php
UTF-8
2,874
2.6875
3
[]
no_license
<?php /* if ($_FILES["file"]["error"] > 0) { echo "Error: " . $_FILES["file"]["error"] . "<br>"; } else { echo "Upload: " . $_FILES["file"]["name"] . "<br>"; echo "Type: " . $_FILES["file"]["type"] . "<br>"; echo "Size: " . ($_FILES["file"]["size"] / 1024) . " kB<br>"; echo "Stored in: " . $_FILES["file"]["tm...
true
f519d2ad30ca295d1fbcc8329bd1ec03232a1d11
PHP
leonardoklen/beautyhair-admin
/App/Models/Entidades/Estado.php
UTF-8
354
2.765625
3
[]
no_license
<?php namespace App\Models\Entidades; class Estado{ private $idEstado; private $sigla; public function getIdEstado(){ return $this->idEstado; } public function setIdEstado($idEstado){ $this->idEstado = $idEstado; } public function getSigla(){ return $this->sigla; } public function setSigla($sigla){ ...
true
a1c311a0190924083c5a04bea27426cb304af53d
PHP
200MPH/Client
/MailLibrary/ContactList.php
UTF-8
1,278
3
3
[ "MIT" ]
permissive
<?php /** * @author Tomáš Blatný */ namespace greeny\MailLibrary; use Iterator; use Countable; class ContactList implements Iterator, Countable { /** @var Contact[] */ protected $contacts; protected $builtContacts; public function addContact($mailbox = NULL, $host = NULL, $personal = NULL, $adl = NULL) { ...
true
f5787532c7ed3b763214f047435bf06ea075d345
PHP
szwork2013/modify
/includes/classes/class.mailchimp.webhook.php
UTF-8
3,274
2.75
3
[]
no_license
<?php class ISC_MAILCHIMP_WEBHOOK { public function HandleCallback() { if(isset($_POST['data'])) { $data = $_POST['data']; if(!isset($data['email'])) return; $email = $data['email']; $cats = $this->GetCategories(); $code = $this->CommitCode($cats); if($code) { $this->SendEmail($code, $e...
true
0f1b0f88db6ce030148fb9baa953beea4de5b999
PHP
pkeane/humptydumpty
/lib/Utlookup.php
UTF-8
1,254
2.765625
3
[]
no_license
<?php class Utlookup { public static function lookup($query,$type) { $person_array = array(); $x500 = ldap_connect('ldap.utexas.edu'); $bind = ldap_bind($x500); $dn = "ou=people,dc=directory,dc=utexas,dc=edu"; $filter = "$type=$query"; $ldap_result = @ldap_search($x500,$dn,$filter); $attributes = array...
true
13d24e3f3bf5dc6859933b14c296ad0a2ccf4202
PHP
netinvman/learnphp
/array_splice.php
UTF-8
545
3.015625
3
[]
no_license
<?php $input = array("red", "green", "blue", "yellow"); $back = array_splice($input, 2); $input = array("red", "green", "blue", "yellow"); $back = array_splice($input, 1, -1); $input = array("red", "green", "blue", "yellow"); $back = array_splice($input, 1, count(input), "orange"); $input = array("red", "green", "bl...
true
bb9f2a6194bfc386c29e64ea3c7396225443d349
PHP
diferete/GitHub
/steeltrater/app/model/ModelDELX_PRO_UnidadeMedida.php
UTF-8
1,820
2.53125
3
[]
no_license
<?php /* * Classe que implementa os models da DELX_PRO_UnidadeMedida * * @author Cleverton Hoffmann * @since 26/06/2018 */ class ModelDELX_PRO_UnidadeMedida { private $pro_unidademedida; private $pro_unidademedidadescricao; private $pro_unidademedidarf; private $pro_unidademedidamercosul; p...
true
b0ec7d95127d05aacb05848839542e3fe17958b0
PHP
uusa35/points
/app/Http/Middleware/ClientAccessOnly.php
UTF-8
463
2.59375
3
[]
no_license
<?php namespace App\Http\Middleware; use Closure; class ClientAccessOnly { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle($request, Closure $next) { // will check is_s...
true
0b321c22fa906745549c4498253e92f14736cbc8
PHP
scutLaoYi/shengwu
/Test/Case/Model/FriendlyLinkTest.php
UTF-8
1,518
2.609375
3
[]
no_license
<?php class FriendlyLinkTest extends CakeTestCase { public $fixtures = array('app.friendlyLink'); public function setUp() { parent::setUp(); $this->FriendlyLink = ClassRegistry::init('FriendlyLink'); } public function testFriendlyLink() { //connection. $this->FriendlyLink->recursive = -1; $result = $...
true
d27a66163b53bbe4078b8d7c8d87ac5b246a0743
PHP
camifaraone/Proyecto-UnAventon
/UnAventon/model/eliminarvehiculo.php
UTF-8
1,835
2.6875
3
[]
no_license
<?php function delVehiculo($idvehiculo){ require ("db.php"); try{ $gsent = $conn->prepare("UPDATE vehiculo SET bajalogica=? WHERE idvehiculo=?"); $gsent->execute(array(1, $idvehiculo)); //$result=$gsent->fetch(); } catch(PDOException $e){ echo "ERROR: " . $e->getMessage(); return false; /...
true
4669b4bbef8aa3782ab2688b91fd83543c1dfea5
PHP
veronar/camagru
/camagru/app/models/Likes.php
UTF-8
677
2.859375
3
[]
no_license
<?php class Likes extends Model { public function __construct() { $table = 'likes'; parent::__construct($table); } public function like($post_id, $user_id) { $result = $this->findFirst(['conditions' => 'post_id = ? AND `user_id` = ?', 'bind' => [$post_id, $user_id]]); $fields = ['post_id' => $post_id, 'u...
true
465e5e9d68e27b138b7d218fa6e7f26f78cd15e7
PHP
enmm123/laravel
/app/Http/Controllers/Admin/UserController.php
UTF-8
6,920
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Admin; use App\Model\Role; use App\Model\User; use Illuminate\Http\Request; use App\Http\Controllers\Controller; class UserController extends Controller { //获取授权页面 public function auth($id){ //获取当前用户 $user = User::find($id); //获取所有角色列表 $r...
true
1d1d1ff2ecb59ee8802f2065a05185399d646c89
PHP
cmnty/php-push
/src/Crypto/KeyGenerator.php
UTF-8
512
2.546875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php declare(strict_types = 1); namespace Cmnty\Push\Crypto; use Mdanter\Ecc\EccFactory; class KeyGenerator { /** * Generate a KeyPair. * * @return KeyPair */ public function generateKeyPair() : KeyPair { $generator = EccFactory::getNistCurves()->generator256(); $ecc...
true
9eb7980747b4c8ce834625e9c2e86406c1b32bc6
PHP
ntthuhien1324/lvtn
/app/Admin/Extensions/Grid/Tools/RefreshButton.php
UTF-8
933
2.53125
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: ASUS * Date: 08/10/2018 * Time: 9:17 CH */ namespace App\Admin\Extensions\Grid\Tools; use Encore\Admin\Admin; use Encore\Admin\Grid\Tools\AbstractTool; class RefreshButton extends AbstractTool { /** * Script for this tool. * * @return string */ ...
true
95c24dd6057882ee69261e71e475f1067c28ff94
PHP
g-micah/3AM
/signupScript.php
UTF-8
1,906
2.84375
3
[]
no_license
<?php session_start(); // Starting Session $error = ''; // Variable To Store Error Message if (isset($_POST['submit'])) { if (empty($_POST['Firstname']) || empty($_POST['Lastname']) || empty($_POST['Username']) || empty($_POST['Password']) || empty($_POST['Email'])) { $error = "Please fill out all fields"; } el...
true
19003d1944169c8b33f1a8d31d6cf3db525d968e
PHP
prggmr/unus
/Form/Decorator/Element/Interface.php
UTF-8
1,838
2.578125
3
[]
no_license
<?php /** * Unus * * LICENSE * * This source file is subject to the New BSD License that is bundled * with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://nwhiting.com/license * If you did not receive a copy of the license and are unable to * obta...
true
3af56c3f2a37b406698e2b203afff9e85c0a58d4
PHP
jorgegomzar/practicasPHP
/re-Captcha/captcha.php
UTF-8
4,831
2.515625
3
[]
no_license
<!DOCTYPE html> <html lang="es" dir="ltr"> <head> <meta charset="utf-8"> <title>Implementación re-Captcha</title> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" cross...
true
55e0906a6939aa808ea7a9bfbc642575e0ec3ecb
PHP
ithsc/wordpress
/php/06_conditionals.php
UTF-8
468
3.375
3
[]
no_license
<?php $age = 0; $salary = 300000; if($age == 20) echo "1".'<br>'; echo $age < 22 ? 'yes' : 'no'; $myAge = $age ?: '18'; echo '<br>'; echo $myAge; echo '<br>'; // null coalescing operator $myName = isset($name) ? $name : 'John'; $myName = $name ?? 'John'; // Switch $userRole = 'userss'; switch ($userRole) { ...
true
e11b6af723c5c4d67d304cff509e69ec092850f5
PHP
donyradjah/kasir-cms
/application/models/UserModel.php
UTF-8
2,801
2.546875
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: LENOVO * Date: 5/21/2020 * Time: 9:21 AM */ class UserModel extends CI_Model { private $table = "user"; public function getDataPaging(string $search = "", string $order = "nama ASC", int $limit = 10, int $start = 0) { $query = $this->db->select("*") ->from("user"...
true
8bd7d4a85f588c0e19fd6f72565d08fc4ce3c92c
PHP
King0625/simple_message_board
/classes/file.class.php
UTF-8
1,349
2.703125
3
[]
no_license
<?php require "db.class.php" ; class File{ public function updateImg($id, $img, $fb){ $dbconn = new Dbconnection(); $db = $dbconn->dbconn(); try{ if($fb){ $stmt = $db->prepare("UPDATE fb_users SET img='$img' WHERE fb_id='$id'"); }else{ ...
true
78eeda442bf8cdad982edad30b441990ce9f5c2b
PHP
JorikdeBoer/Scripto5
/Nieuwe webversie Scripto 5/Admin/checklogin.php
UTF-8
1,119
2.6875
3
[]
no_license
<?php // Check login input from admin, start session $host="localhost"; // Host name $username="tomklru270_Scripto5user"; // Mysql username $password="wachtwoord"; // Mysql password $db_name="tomklru270_Scripto5"; // Database name $tbl_name="login"; // Table name // Connect to server and select databse. $link = mysqli...
true
3824174aaa3b8da9e2ef74abf8144e507218f7e7
PHP
MrLeoni/grupo-supricel
/template-parts/content-carrossel.php
UTF-8
1,951
2.671875
3
[]
no_license
<?php /**---------------------------------------- * Tempalte para exibir Carrosséis * * Vamos utilizar uma Custom Query padrão * para pegar posts do tipo "Carrossel" e * disponibiliza-los na página desejada * * A variável, para trocar o conteúdo do * carrossel, é o campo "terms" dentro do * parámetro "tax_query". O...
true
112bcfa05a4a6c62445518d35fa23291252861a9
PHP
stephens2424/php
/testdata/fuzzdir/corpus/Zend_tests_grammar_semi_reserved_003.php
UTF-8
3,624
2.84375
3
[ "BSD-3-Clause" ]
permissive
<?php class Obj { var $empty = 'empty'; var $callable = 'callable'; var $class = 'class'; var $trait = 'trait'; var $extends = 'extends'; var $implements = 'implements'; var $static = 'static'; var $abstract = 'abstract'; var $final = 'final'; var $public = 'public'; var $pr...
true
fba6bcea8403c0d144cabdbe63a31aacdf09fdd6
PHP
luisphp/MasterPHP
/17-cookies/index.php
UTF-8
390
2.65625
3
[]
no_license
<?php /* Es un fichero que se almacena en el ordenador del usuario */ //Para crear cookies //setcookie("name", "Valor que solo puede ser texto", caducidad, ruta, dominio); //Cookie basica setcookie("micookie", "valor de mi galleta"); //Cookie con expiracion setcookie("micoolie2", "valor de mi galleta", ti...
true
a659e16084e1e1ac777fa67fb8d5ad0060a9db86
PHP
xhoiyenx/referral
/app/Providers/AppServiceProvider.php
UTF-8
921
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\Providers; use Illuminate\Support\ServiceProvider; use App\Repositories\ConfigurationRepository; use App\Repositories\LeadRepository; class AppServiceProvider extends ServiceProvider { public function register() { /** * Bind configuration module as global */ $this->app->singleton('setti...
true
b7d75f9b662699d8f4cd7d73a8d9a6d46671990e
PHP
tattersoftware/codeigniter4-workflows
/src/Controllers/Jobs.php
UTF-8
3,556
2.8125
3
[ "MIT" ]
permissive
<?php namespace Tatter\Workflows\Controllers; use CodeIgniter\Exceptions\PageNotFoundException; use CodeIgniter\HTTP\ResponseInterface; use Tatter\Workflows\Models\JoblogModel; use Tatter\Workflows\Models\WorkflowModel; /** * Handles basic CRUD for Jobs. */ class Jobs extends BaseController { /** * Displa...
true
65f5263b2321da3ee8fa4f9d8d44521b9d108960
PHP
hunhw/Panther-Pantry
/PantherPantry/assets/includes/LoadableContent.php
UTF-8
472
2.796875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Ashley Neal and Hansan Hung * Date: 12/6/2019 */ class LoadableContent { public $js = ''; public $html = ''; public $css = ''; public function __construct($js, $html, $css) { $this->js = $js; $this->html = $html; ...
true
3df902d371a9228f2f700877123ac6b4f39e2f1b
PHP
jeyofdev/php-blog
/src/Helpers/Categories.php
UTF-8
857
3.15625
3
[]
no_license
<?php namespace jeyofdev\php\blog\Helpers; use jeyofdev\php\blog\Entity\Post; use jeyofdev\php\blog\Router\Router; /** * @author jeyofdev <jgregoire.pro@gmail.com> */ class Categories { /** * Generate the categories of each posts in the views * *...
true
efbc3973c2fdbee6d05ba2ed5c194cc33c52a4be
PHP
gausejakub/prosvujusmev
/app/Rules/SourceCode.php
UTF-8
991
2.734375
3
[ "MIT" ]
permissive
<?php namespace App\Rules; use App\prosvujusmev\Reservations\Reservation; use Illuminate\Contracts\Validation\Rule; class SourceCode implements Rule { protected $message = ''; /** * Create a new rule instance. * * @return void */ public function __construct() { // } ...
true
d9ac1c34aa1fea9abcb9c3d8602a2bd80f5bd025
PHP
gregorjerse/login-module
/login-available.php
UTF-8
1,759
3.0625
3
[ "MIT" ]
permissive
<?php header('Content-Type: application/json'); if (!isset($_REQUEST['nickname2check']) || $_REQUEST['nickname2check'] == '') { die(json_encode(['error' => 'no login passed in nickname2check'])); } // nickname2check can either be a string of characters (in which case // json_decode gives NULL), either an array o...
true
bec7136ebc89a180303ebad9d4010a352218cddd
PHP
fahadbillah/generator-codeigniter
/app/templates/codeigniter/application/models/territory.php
UTF-8
831
2.59375
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php class Territory extends CI_Model { public $t; function __construct() { parent::__construct(); if (!$this->input->cookie('territory')) { if (in_array($this->geolocation->continent_code, array('NA', 'SA'))) { $this->set('newyork'); ...
true
2d8e3692cb11c9f03344b6cda558833b850ba32e
PHP
mmoussaten/AO-php
/phph02/index.php
UTF-8
609
2.859375
3
[]
no_license
<?php $a= "Ik heb niet gefaald"; $b=". Ik heb alleen "; $aantal=" 10000 manieren gevonden die niet werken. "; $naam ="-Thomas Edison "; echo $a.$b.$aantal.$naam; echo "<br>"; echo "<br>"; // $a= "die geen fout"; $b= "en"; $c= " niet."; echo "Mensen ".$a.$b." maken, werken".$c."-Albert Plesman (KLM)"; echo "<br>"; e...
true
c7d97df4f7e51dcab1eb4618476b7562cdb96a7b
PHP
GSIL-Monitor/website-1
/backend/models/Menu.php
UTF-8
4,007
2.703125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace backend\models; use common\models\Common; use Yii; use yii\helpers\Url; /** * This is the model class for table "tbl_menu". * * @property integer $id * @property string $name * @property string $module * @property string $controller * @property string $function * @property string $parameter ...
true
2c70aab561455b652dcfd268d23e32b1f6614e8e
PHP
salahuddinrony/dropzone-laravel5.4-Multiple-Image-Upload
/app/Http/Controllers/productsController.php
UTF-8
937
2.71875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Support\Facades\Storage; use App\products; use Illuminate\Http\Request; class productsController extends Controller { public function storeProducts(Request $request) { $fileModel = new products; //add laravel server-side validation here: if ($request->...
true
2e437a9670d3ce88195f2c05393ea154e7720afa
PHP
patrickharris/sonos
/src/Controller.php
UTF-8
11,955
2.828125
3
[ "Apache-2.0" ]
permissive
<?php namespace duncan3dc\Sonos; use duncan3dc\DomParser\XmlParser; use duncan3dc\Sonos\Exceptions\SoapException; /** * Allows interaction with the groups of speakers. * * Although sometimes a Controller is synonymous with a Speaker, when speakers are grouped together only the coordinator can receive events (play...
true
a06b131d6e0346625f11cf7327e9034245b18a33
PHP
adrysson/avnida-api
/config/Migrations/20181006085013_InsertDataDefaultAnuncios.php
UTF-8
1,140
2.71875
3
[]
no_license
<?php use Migrations\AbstractMigration; class InsertDataDefaultAnuncios extends AbstractMigration { /** * Migrate Up. */ public function up() { $rows = [ [ 'id' => 1, 'nome' => "Aluguel" ], [ 'id' =...
true
1703a94ee16640b0f2d6690e016a68a24acb9cd5
PHP
mreyesvera/ShoppingList
/server/addTab.php
UTF-8
2,557
3.296875
3
[]
no_license
<?php /* Author: Silvia Mariana Reyesvera Quijano - 000813686 Date: November 23rd, 2020 This code receives a name and id in order to add a new category into the categories table with these respective values. If everythings goes well, it will return the created category. I didn'...
true
9a5b5d51145ccc489b2716632a842eec2fc24ed8
PHP
yokkun/study-at-hal-programming-school
/housekeeping_app/himoku/himoku_update_process.php
UTF-8
2,534
2.859375
3
[]
no_license
<?php require_once '../Encode.php'; require_once '../DbManager.php'; session_start(); $_SESSION['himoku_name'] = e($_POST['himoku_name']); $_SESSION['kubun'] = e($_POST['kubun']); $_SESSION['memo'] = e($_POST ['memo']); $_SESSION['id'] = e($_POST ['id']);//idを追加 /* 入力チェック*/ $errors = array(); foreach($_SESSION as $...
true
df0406dccfcd078e0267a040a6616bd08b83b6a2
PHP
ngocminh153/php_26_new
/unit06/helpers/connect_helper.php
UTF-8
307
2.671875
3
[]
no_license
<?php function connect(){ $servername = "localhost"; $username = "root"; $password = ""; $dbname = "php_blog"; $conn = new mysqli($servername, $username, $password, $dbname); if($conn->connect_errno){ echo "failed to connect to mySQL: " > $conn->connect_errno; exit(); } return $conn; } ?>
true
6bf2fb5db08f8db29c3a6b5cc27f39c20df6d0a6
PHP
majacQ/RDSRadioNowPlaying
/nowplaying.php
UTF-8
860
2.5625
3
[ "Unlicense" ]
permissive
<?php function nowPlaying($returnvariable = null) { //from https://github.com/Gabboxl/RDSRadio $url = 'https://icstream.rds.radio/status-json.xsl'; //vekkio http://stream1.rds.it:8000/status-json.xsl $jsonroba = file_get_contents($url); $jsonclear = json_decode($jsonroba, true); $metadata = explod...
true
ccbf47efec0ffdae5f6cd63542697ff2b880336d
PHP
mmasomi73/mmasomiBackend
/app/Post.php
UTF-8
533
2.53125
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; use Illuminate\Notifications\Notifiable; /** * Class Post * @package App */ class Post extends Model { use Notifiable,SoftDeletes; public $table = 'posts'; public $primaryKey = 'id'; protected $dates = ...
true
6b2d7acdfd983825c5e584a7249888153592dfe3
PHP
Lukasz-Lesniewski/hybrid-analysis
/src/Challenge.php
UTF-8
6,534
3.390625
3
[]
no_license
<?php declare(strict_types=1); namespace HybridAnalysis; class Challenge { /** * Write a function, which is taking one parameter(string, without any restriction to chars). From that string, * you should take all big letters and build from it the new one. When there is not enough of big letters or they ...
true
e73333c89a2208431ce4f83f2f181dbf842cc9f9
PHP
easyconn/jenkins-web-api
/src/mogman1/Jenkins/Jenkins.php
UTF-8
1,610
2.859375
3
[ "MIT" ]
permissive
<?php namespace mogman1\Jenkins; use mogman1\Jenkins\Exception\JenkinsConnectionException; use mogman1\Jenkins\ApiObject\Job; use mogman1\Jenkins\ApiObject\Node; use mogman1\Jenkins\Server\HttpResponse; class Jenkins { /** * Connection to Jenkins * @var Server */ private $conn; public function __cons...
true
a513c1e5d709d56138dfd911affadafe0da87677
PHP
bashmach/bluzman
/src/Command/Init/ControllerCommand.php
UTF-8
4,735
2.625
3
[ "MIT" ]
permissive
<?php /** * @copyright Bluz PHP Team * @link https://github.com/bluzphp/bluzman */ namespace Bluzman\Command\Init; use Bluzman\Command; use Bluzman\Generator; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use ...
true
7e90cc5659fe395aaed0c94386720e93a3ede8d2
PHP
ajodar/curs2_php
/07_BBDD/BBDD_practiques/201211_crida_PO_BBDD.php
UTF-8
1,242
3.421875
3
[]
no_license
<?php //Variables de connexió $server = "localhost"; $username = "root"; $password = ""; $databasename = "introduccio_bbdd"; //Connexió $conn = new mysqli($server, $username, $password, $databasename); if($conn->connect_error){ echo "Connexió erronia".$conn->connect_error; ...
true
f9acabe1c5726658109ba530bd20bd40e80134c9
PHP
rectorphp/rector-src
/rules-tests/TypeDeclaration/Rector/ClassMethod/ReturnTypeFromStrictNewArrayRector/Fixture/array_shape_simple_array.php.inc
UTF-8
645
2.59375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Rector\Tests\TypeDeclaration\Rector\ClassMethod\ReturnTypeFromStrictNewArrayRector\Fixture; final class ArrayShapeSimpleArray { public function run() { $items = []; $items['one'] = 1; $items['two'] = 1; return $items; } } ?> ----...
true
a0363ce429d0c3376cc66c3da8fa3f8cbacb39ab
PHP
MagnixDesign/sda3pl
/src/Lavalite/User/User.php
UTF-8
780
3.09375
3
[ "MIT" ]
permissive
<?php namespace Lavalite\User; class User { /** * $user object. */ protected $user; /** * $role object. */ protected $role; /** * $permission object. */ protected $permission; /** * Constructor. */ public function __construct(\Lavalite\User\Inte...
true
5007e76903556f863ef4a196e650a8da6859138e
PHP
Sonnywhite/lagomy
/gui/new-user.php
UTF-8
1,014
2.734375
3
[ "Apache-2.0" ]
permissive
<?php require_once './core.php'; require_once './auth.php'; ?> <?php if(isset($_POST["action"]) && $_POST["action"] == "register") { $gotAllParams = isset($_POST["username"])?$_POST["username"]!="":false; if($gotAllParams) $gotAllParams = isset($_POST["password"])?$_POST["password"]!="":false; if(!$gotAllPar...
true
c057bc4ac9184d6c8eed007afd33ff475fcae7a6
PHP
Ahmetburhan/nurhanhome
/wp-content/themes/dt-the7/inc/shortcodes/includes/fancy-titles-vc/fancy-titles-vc.php
UTF-8
4,270
2.78125
3
[ "GPL-2.0-or-later", "GPL-1.0-or-later", "GPL-2.0-only", "MIT", "LicenseRef-scancode-generic-exception", "LGPL-2.1-or-later", "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-proprietary-license" ]
permissive
<?php // File Security Check if ( ! defined( 'ABSPATH' ) ) { exit; } class DT_Shortcode_Fancy_Title extends DT_Shortcode { static protected $instance; static protected $num = 0; public static function get_instance() { if ( !self::$instance ) { self::$instance = new DT_Shortcode_Fancy_Title(); } return s...
true
80da42477da7be8f6ee296b416dae40871dfd8bf
PHP
jtl-software/connector-core
/src/Model/PartsList.php
UTF-8
2,163
2.71875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Jtl\Connector\Core\Model; use JMS\Serializer\Annotation as Serializer; use Jtl\Connector\Core\Exception\MustNotBeNullException; use Jtl\Connector\Core\Utilities\Validator\Validate; use TypeError; /** * Define set articles / parts lists. * * @access public * @package ...
true
4e11c6cde012e1ffb91ce1c831e4085efa2553d0
PHP
TeleSign/php_telesign
/src/messaging/MessagingClient.php
UTF-8
1,167
2.765625
3
[ "MIT" ]
permissive
<?php namespace telesign\sdk\messaging; use telesign\sdk\rest\RestClient; /** * TeleSign's Messaging API allows you to easily send SMS messages. You can send alerts, reminders, and notifications, * or you can send verification messages containing one-time passcodes (OTP). */ class MessagingClient extends RestClie...
true
bda891071145075c0c28aff169433a3cd6f9a0bb
PHP
atiempojf/websisgpe
/objgeneralCargarCsv.php
UTF-8
2,369
2.765625
3
[]
no_license
<?php if(isset($_POST['import_user'])) { require_once 'connect.php'; //Aquí es donde seleccionamos nuestro csv $fname = $_FILES['sel_file']['name']; $chk_ext = explode(".",$fname); if(strtolower(end($chk_ext)) == "csv") { //si es correcto, entonces damos ...
true
5c879604316b556125a4dc305ee23e5e1de41761
PHP
brookhong/scriptbundle
/php/simplepad.php
UTF-8
471
2.71875
3
[]
no_license
<?php $filename = "mynotepad.txt"; if($_POST){ $contents = $_POST['notepad']; file_put_contents($filename, $contents); } if($contents = file_get_contents($filename)){ $notepad = $contents; } else{ $notepad = ""; } echo "<form action='".$PHP_SELF."' method='post'>\n"; echo "<textarea name=...
true
33fb50dbd23c6f8cc5a37145ca31195ecb39f692
PHP
JHernan/RefactoringFowlerChapter1
/src/Kata/Movie.php
UTF-8
1,064
3.40625
3
[]
no_license
<?php namespace Kata; /** * Class Movie * @package Kata */ class Movie { const CHILDREN = 2; const REGULAR = 0; const NEW_RELEASE = 1; private $title; private $price; public function __construct($title, $priceCode) { $this->title = $title; $this->setPriceCode($priceCode...
true
8aef4de911baa908bdbd6a6329336fa4f5e042c7
PHP
lwc123/laobandianping
/JXBC-Server/BossComments/apiserver/workplace/models/InvitedRelationship.php
UTF-8
998
2.546875
3
[]
no_license
<?php namespace app\workplace\models; use think\Db; use app\common\models\BaseModel; /** * @SWG\Definition(required={"PassportId","InviterCode"}) */ class InvitedRelationship extends BaseModel { public static function findByPassportId($passportId) { $relationship = self::where(['PassportId' ...
true
2704151958fec5bf61b76f8eb8db36fd1109b202
PHP
AdrianAdam/WebApplicationEncryptFile
/php/encript2.php
UTF-8
3,668
2.984375
3
[]
no_license
<!DOCTYPE html> <html> <body> <?php $file=fopen("Demonstration.txt","r"); while(false !==($char = fgetc($file))) { switch($char) { case 'a': echo 'm'; break; case 'b': echo 'l'; break; case 'c': echo 'p'; break; case 'd': echo 'n'; break; case 'e': echo '...
true
d4cb7a44f957832c142a8a03072ddad52f27b488
PHP
vanfranrocha/setRobot
/core/helpers/pagination.php
UTF-8
1,867
2.546875
3
[ "MIT" ]
permissive
<?php // function setrobot_pagination( $mid = 2, $end = 1, $show = false ) { function setrobot_pagination(array $params) { $param = wp_parse_args( $params, array( 'mid' => '2', 'end' => '1', 'show' => false, 'prev' => '&laquo; Anterior', ...
true
42bcf3359fd00684ef6643cdff85c422f7022b81
PHP
kardi31/news
/src/Kardi/AdBundle/Twig/UrlExtension.php
UTF-8
772
2.515625
3
[]
no_license
<?php namespace Kardi\AdBundle\Twig; use Kardi\AdBundle\Entity\Ad; use Kardi\AdBundle\Router\AdRouter; class UrlExtension extends \Twig_Extension { /** * @var AdRouter */ private $_adRouter; /** * UrlExtension constructor. * @param AdRouter $adRouter */ public function __co...
true
f9e278177d3bc6e28cce189ec5a1aacfd0c0c110
PHP
d1rty-pixel/quantum-framework
/class/base/QSocket.class.php
UTF-8
3,175
2.6875
3
[]
no_license
<?php namespace core\base; uses ("core.base.Quobject"); class QSocket extends \core\base\Quobject { private $name="QSocket"; private $version="0.1"; private $userAgent="Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"; public $headers; public $page=""; public $result=""; public $red...
true
3eee1fd957ed771a26323c311428d849a625770e
PHP
Fahrenheit451Tecnologia/tm-rbac-bundle
/Controller/Traits/AssertMethodIsAllowedTrait.php
UTF-8
859
2.625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace TM\RbacBundle\Controller\Traits; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException; use TMRbacBundle\Exception\UnexpectedTypeException; trait AssertMethodIsAllowedTrait { /** * @param Request $reque...
true
0e1fe7f09ad35e51252682b9e706707dce77ad84
PHP
Stolz/php-stubs
/res/php/libevent/functions/event-buffer-set-callback.php
UTF-8
309
2.609375
3
[ "Apache-2.0", "CC-BY-3.0" ]
permissive
<?php /** * Set or reset callbacks for a buffered event * * @phpstub * * @param resource $event * @param mixed $readcb * @param mixed $writecb * @param mixed $errorcb * @param mixed $arg * * @return bool */ function event_buffer_set_callback($event, $readcb, $writecb, $errorcb, $arg = NULL) { }
true
7ce8f5c452a540ca86989ccb7b6be17de644edc9
PHP
sebaks/Modules
/src/Modules/Module/Mapper.php
UTF-8
1,724
2.953125
3
[]
no_license
<?php namespace Modules\Module; class Mapper { /** * @var array keys - db fields, values entity attributes */ protected $columnsAsAttributesMap; public function __construct() { $this->columnsAsAttributesMap = [ 'id' => 'id', 'name' => 'name', 'namesp...
true
134d8f554c27b8f23bb422882fa95c588b14e124
PHP
zachbeisler/OlympicsGDPVisualization
/connect.php
UTF-8
563
2.8125
3
[]
no_license
<?php function connect(){ $dbserver = "updb1.up.ist.psu.edu"; $dbuser = "zqb5073"; $dbpass = "6mVCrK3M"; $dbname = "zqb5073"; $mysqlconn = new mysqli( $dbserver, $dbuser, $dbpass, $dbname); if ( $mysqlconn->connect_error ) { die("Connection failed: " . $mysqlconn->connect_error); } return...
true
e7b2b35a3d353049d5f61d6f32ba78949704a991
PHP
alberteddu/octopus
/src/Command/BuildCommand.php
UTF-8
1,289
2.984375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Alberteddu\Octopus\Command; use Alberteddu\Octopus\Octopus; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; class BuildCommand extends Command { protected function co...
true
fa75a2ac57da93ae96addeaafdc3c3fd7fe6e4d0
PHP
vanilla/garden-cli
/src/Schema/CommandSchema.php
UTF-8
3,064
3.015625
3
[ "MIT" ]
permissive
<?php /** * @author Todd Burry <todd@vanillaforums.com> * @copyright 2009-2020 Vanilla Forums Inc. * @license MIT */ namespace Garden\Cli\Schema; use Garden\Cli\Cli; /** * A data class for the information describing a command line command or subcommand. */ class CommandSchema { use MetaTrait; /** ...
true
7536824bd8d1771048caf68d8e79d646c6ad15ab
PHP
dzungnv02/intern-ems
/app/StudentActivity.php
UTF-8
1,389
2.6875
3
[ "Apache-2.0", "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Facades\DB; class StudentActivity extends Model { protected $table = 'student_tracking'; public static function getActivityOfStudent($student_id) { $list = DB::table('student_tracking') ->select('...
true
d268942cc99c43c061d84a5a055fd8356a86c917
PHP
dpaduch/Workflow
/src/DevelArts/Workflow/WorkflowAction.php
UTF-8
3,390
3.15625
3
[]
no_license
<?php namespace DevelArts\Workflow; /** * Workflow action class to handle the action execution * * @author Dariusz Paduch <dariusz.paduch@gmail.com> */ class WorkflowAction { /** * @var string */ protected $name; /** * @var string */ protected $label; /** * @var Work...
true
8173fee20b58dd83a697668cbf89092213c89dc3
PHP
Sersergei/test_avtorization
/application/models/model_user.php
UTF-8
2,839
2.984375
3
[]
no_license
<?php class Model_user { private $login; private $email; private $password; public $error; private $t; function __construct() { $this->t = t::gett(); } public function get_login() { return $this->login; } public function get_email() { return $...
true
316864364b4371ae8f3052e838dfc7e16aa643f0
PHP
CritianChipana/TiendaMassimo
/Vista/formGestionarMenu.php
UTF-8
2,077
2.515625
3
[]
no_license
<?php class formGestionarMenu{ public function formGestionarMenuShow($listamenu,$listaprivilegios){?> <?php include_once("../shared/nav.php"); $nav=new nav(); $nav->navShow($listaprivilegios); ?> <!DOCTYPE html> <html> <head> <META HTTP-EQUIV="REFRESH" CONTENT="formGestionarMenu.php"> <title>Ge...
true
72e7e69912071b6b57deca3d839207b40c08b9f2
PHP
castmetal/wms
/library/Wms/Domain/Entity/Produto/ClasseRepository.php
UTF-8
565
2.578125
3
[]
no_license
<?php namespace Wms\Domain\Entity\Produto; use Doctrine\ORM\EntityRepository, Wms\Domain\Entity\Fabricante as FabricanteEntity, Doctrine\Common\Persistence\ObjectRepository; class ClasseRepository extends EntityRepository { /** * Retorna um array id => valor do * @return array */ pub...
true
b802a33d2b5c09bb79092dc31c369a48ece5f566
PHP
garysoxssk/Gary-Book-Store
/delete_cart.php
UTF-8
765
2.671875
3
[]
no_license
<?php session_start(); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> </head> <body> <?php # database connection $db_conn = mysqli_connect("sophia.cs.hku.hk", "skso", "063405", "skso") or die("Connection Error! ".mysqli_connect_error()); $bookId = $_POST['bookId']; # if user has logged in, d...
true
19c6c529e98b3644553a79c1ebc03c65fdfda42a
PHP
lew13010/OC-PP-P5-Blog
/Controllers/Blog.php
UTF-8
2,936
2.90625
3
[]
no_license
<?php namespace Controllers; use \PDO; use Models\BlogRepository; use Services\Form; class Blog extends Controller { private $id; private $token; private $bdd; public function __construct(array $donnees) { parent::__construct(); $this->hydrate($donnees); } public functio...
true
976fd8c2e89d134f9f584e910402ff6ca02fca17
PHP
cjk910214/frameDemo
/core/AppCoreClass.php
UTF-8
795
2.609375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: cjk * Date: 2017/7/27 0027 * Time: 上午 10:40 */ namespace core; use router\RouterClass; class AppCoreClass{ static public function run(){ //自动类加载方法注册 spl_autoload_register('core\AppCoreClass::autoLoad'); //实例化路由 $router = new RouterCl...
true
b059235aae871ed4f753a6fb673363a1c1c7012e
PHP
MarcosViniciusDoerner/trabalhofinal
/conexao.php
UTF-8
447
2.734375
3
[]
no_license
<?php define('HOST', 'localhost'); define('USER', 'root'); define('PASS', ''); define('DBNAME', 'desweb'); function Conexao() { try { $conn = new pdo('mysql:host=' . HOST . ';dbname=' . DBNAME, USER, PASS); $conn->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_ASSOC); echo "Conexão feita com sucess...
true
f5a951e487bd708dfbff411d19ce3d49b21199db
PHP
abutkeev/vktools
/include/tgTools.php
UTF-8
35,251
2.59375
3
[]
no_license
<?php require_once('Logger.php'); require_once('Config.php'); require_once('vkTools.php'); include_once('tg_api.php'); use TelegramBot\Api\Types\User; use TelegramBot\Api\Types\Update; use TelegramBot\Api\Types\ForceReply; use TelegramBot\Api\Types\ReplyKeyboardMarkup; use TelegramBot\Api\Types\ReplyKeyboardHide; cla...
true
32be54a451efce3543a33d449c8c881e8fd4de36
PHP
JonathanCaracol/papJonathan
/AJAX/AJAXFillUtilizadorBackOffice.php
UTF-8
1,408
2.578125
3
[]
no_license
<?php include_once("../includes/body.inc.php"); $txt=addslashes($_POST['txt']); $sql ="Select * from utilizadores where ((utilizadorEstado = 'ativo') and (utilizadorNome LIKE '%$txt%')) or ((utilizadorEstado = 'inativo') and (utilizadorNome LIKE '%$txt%'))"; $result=mysqli_query($con,$sql); ?> <section> <div id...
true
febdcf801865d608c1e62a25b3d048b22a28475a
PHP
xp13465/eduservices
/eduserviceshuabei/protected/modules/admin/controllers/InformationController.php
UTF-8
7,102
2.53125
3
[]
no_license
<?php class InformationController extends Controller { /** * @var string the default layout for the views. Defaults to '//layouts/column2', meaning * using two-column layout. See 'protected/views/layouts/column2.php'. */ public $layout='admin'; /** * @return array action filters */ public functi...
true
d791b3b602935a0c8bb6ed080c2eef406bd37b4b
PHP
Apomuden/api
/database/seeds/TitleTableSeeder.php
UTF-8
589
2.640625
3
[]
no_license
<?php use Illuminate\Database\Seeder; use App\Models\Title; class TitleTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { Title::insert([ ['name'=>'Mr','gender'=>'MALE'], ['name'=>'Mrs','gender'=>'FEMAL...
true
a1c8c71232ab20ae1828078aaa26c3d7ad6b5d31
PHP
sasa97972/PHP_Academy_Homework
/Backend/29.04.2017/6.php
UTF-8
279
3.03125
3
[]
no_license
<?php $arr = array('green'=>'зеленый', 'red'=>'красный','blue'=>'голубой'); foreach ($arr as $en_color => $ru_color) { $en[] = $en_color; $ru[] = $ru_color; } echo '<pre>'; print_r($en); echo '</pre><hr>'; echo '<pre>'; print_r($ru); echo '</pre>';
true
ee659ed2e5901c784972f40006f69d79e25add45
PHP
Mepoooe/watermark
/app/resources/php/load.php
UTF-8
3,209
2.515625
3
[]
no_license
<?php // Config variables $path = $_SERVER["DOCUMENT_ROOT"]; // base path $uploads = '/php/files/'; // udloads dir (if lockal add this /watermark/dist) $max_size = 2500000; // max size of upload file in bits if (!file_exists('files')) { mkdir('files',0777); } if (file_exists('./files')) { foreach (...
true
7acb6ee1648d3f1e440fb486cf094e6d3933e41e
PHP
dd121011/farm
/travel_server/web/HotTop.php
UTF-8
1,058
2.609375
3
[]
no_license
<?php header("Content-Type:text/html;charset=utf-8"); require_once "../src/util/Tools.class.php"; require_once "../src/service/ServiceHotTop.class.php"; require_once "../src/vo/Summary.class.php"; require_once "../src/vo/Destination.class.php"; require_once "../src/dao/impl/DestinationDaoImpl.class.php"; requi...
true
a217176b5e6493705773e6e55d29998fc005b59b
PHP
LucasEduardo122/Sistema_de_imagens
/app/Http/Controllers/Auth/AuthController.php
UTF-8
1,855
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Auth; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; class AuthController extends Controller { public function loginForm() { if(Auth::check()) { return redirect()->route('user.index'); } ...
true
5e6f2e696e6d6f26912aa428dba33ac40c2a83de
PHP
saimemre/forSignum
/app/controllers/LectureController.php
UTF-8
3,479
2.625
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Eloquent; class LectureController extends BaseController { /* |-------------------------------------------------------------------------- | Default Home Controller |-------------------------------------------------------------------------- | | You may wish to use...
true
60417f616d2e867653951b9162d7acb01c261a4a
PHP
kareema1/Website
/editq.php
UTF-8
3,127
2.578125
3
[]
no_license
<?php //Connect to the database session_start(); if(!isset($_SESSION["mail"])){ echo'<h1>Error1</h1>'; die(); } if($_SESSION["job"] != "b"){ echo'<h1>Error 2</h1>'; die(); } $host = "localhost"; $user = "team_...
true
ebcf2e1da6c638459e3963c1b8678db464ab561e
PHP
ehask71/LeagueLaunch
/app/Model/Raffleticket.php
UTF-8
2,203
2.734375
3
[]
no_license
<?php /* * To change this template, choose Tools | Templates * and open the template in the editor. */ /** * CakePHP Raffleticket * @author EricMain */ App::uses('Model', 'Model'); class Raffleticket extends AppModel { public $name = 'Raffleticket'; public $primaryKey = 'id'; public function valid...
true
f9017440e5843cceee8ab37790dfe0aeef974362
PHP
Anoque/family-tree
/app/config/db.php
UTF-8
1,395
3
3
[]
no_license
<?php class Connection { public static function connect() { $dbuser = 'root'; $dbpass = ''; $server = 'localhost'; $dbname = 'family_tree'; $link = mysql_connect($server, $dbuser, $dbpass, $dbname); mysql_query("SET NAMES 'UTF-8'"); mysql_query("use $dbname"); return $link; } public static functi...
true
9a34ed77d644eda722a493cde9c446d59327a978
PHP
Pedroteixeirabisognin/TCC---MARKETPLACE-DE-PATENTES
/php/validar_acesso.php
UTF-8
1,056
2.671875
3
[]
no_license
<?php //INICIA UMA SESSION session_start(); //CHAMA A CLASSE BD.CLASS require_once('db.class.php'); $usuario = $_POST['usuario']; $senha = md5($_POST['senha']); $objDb = new db(); $link = $objDb->conecta_mysql(); $sql = "SELECT * FROM conta WHERE usuario = '$usuario' and senha = '$senha' "; //EM UMA QUERY DE ...
true
321616d72d2ee378f92cb6c8d4684afb6fbd0592
PHP
avshatalov48/bitrix24-core-corp
/modules/xdimport/lib/internals/utils.php
UTF-8
563
2.796875
3
[]
no_license
<?php namespace Bitrix\XDImport\Internals; final class Utils { /** * Returns underialized sonet log params * * @return array */ public static function getParamsFromString($str) { $params = unserialize($str, [ 'allowed_classes' => false ]); if ( !is_array($params) && !empty($str) ) { $tm...
true
afc7f311a2aa907bf7d397f41120efe682536462
PHP
whatslocaltoday/tapdash
/application/controllers/admin/analytics/web_title.php
UTF-8
4,423
2.5625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php require_once __DIR__ . '/vendor_analytics/autoload.php'; class GA_orgnic_webtile{ //$analytics = initializeAnalytics($KEY_FILE_LOCATION); //$analytics_reprt = initializeAnalytics_reporting($KEY_FILE_LOCATION); // $response = getReport($analytics,$analytics_reprt,$KEY_FILE_LOCATION); // printResults($response...
true
6d5e008dc385632ddb4a6a5af205a5747f7d7673
PHP
baghayi/Rastgo-Framework
/core/Request.php
UTF-8
4,158
3.296875
3
[ "MIT" ]
permissive
<?php namespace root\core\Request; final class Request { private $controller, $method, $args; private static $defaultController = Default_Controller, $defaultMethod = Default_Method; public static $enableRewrite = false; public function __construct() { self::$enableRewrite = Enable_Rewrit...
true
d29bbaeb6d0b83bbb9179c105c2eb46a49b53af5
PHP
guidohu/booksys
/backend/api/configuration.php
UTF-8
22,850
2.515625
3
[ "MIT", "LicenseRef-scancode-proprietary-license" ]
permissive
<?php // automatically load all classes spl_autoload_register('configuration_autoloader'); function configuration_autoloader($class){ if(file_exists(__DIR__.'/../classes/'.$class.'.php')){ include __DIR__.'/../classes/'.$class.'.php'; } } // test whether the config-file ...
true
d3dee27d81a70a19c550c2b14427e9b9777b13d5
PHP
ist70/SeonikTest
/App/Core/Mvc/TMagic.php
UTF-8
601
2.921875
3
[]
no_license
<?php namespace App\Core\Mvc; trait TMagic { protected $data = []; /** * Магический метод set * @param $k * @param $v */ public function __set($k, $v) { $this->data[$k] = $v; } /** * Магический метод get * @param $k * @return mixed */ publ...
true
ea8a3b73adc3294078db958b153a35220e212920
PHP
dusty/faktory_worker_php
/src/FaktoryWorker.php
UTF-8
4,161
2.625
3
[]
no_license
<?php declare (strict_types = 1); namespace BaseKit\Faktory; use Psr\Log\LoggerInterface; class FaktoryWorker { /** * @var FaktoryClient */ private $client; /** * @var bool */ private $isQuiet = false; /** * @var bool */ private $isTerminated = false; /** * @var bool */ pri...
true
4b738af738e58d1565c114ef3ffebc46fd132187
PHP
MansSandberg/Slutprojekt-Webbserverprogrammering
/loggain.php
UTF-8
3,019
2.546875
3
[]
no_license
<?php session_start(); header('charset=utf-8'); if(isset($_POST["formular"])) { //skapa koppling till databasen, ange server, databas, teckenuppsättning, användarnamn och lösenord $conn=new PDO("mysql:host=127.0.0.1;dbname=minitwitter;charset=UTF8","root",""); //tala om att fel skall visas som fel (bra vid utveckl...
true
5632d5160fb992af97fa43312fd60c155b68f57a
PHP
szp043725449/laravelextends-requestapi
/src/Api/Configure/Disposed.php
UTF-8
3,804
2.65625
3
[]
no_license
<?php namespace Integration\Api\Configure; class Disposed { const RETURN_TYPE_TO_JSON = 'json'; const RETURN_TYPE_TO_HTML = 'html'; protected $method; protected $responseType; protected $parent; protected $paramters; /** * Disposed constructor. * @param $method * @para...
true
f5b41de4c79ff387392894df2f9105cd7cfa4f8e
PHP
isadovnik/bsa-2020-php
/Task3/CarTrackHtmlPresenter.php
UTF-8
1,182
2.96875
3
[]
no_license
<?php declare(strict_types = 1); namespace App\Task3; use App\Task1\Car; use App\Task1\Track; class CarTrackHtmlPresenter { /** * @param Track $track * * @return string */ public function present(Track $track): string { $track->add(new Car(1, 'https://pbs.twimg.co...
true
1e44bfe4e70f4288bf815e72cbed62fd200f0c1a
PHP
hi-meral/sample-code
/meral/sagesurfer/exec/index.php
UTF-8
674
2.5625
3
[]
no_license
<?php $ffmpeg = ".\FFmpegTool\bin\\ffmpeg"; $destinationFile = "1.mov"; $convertedFile = "converted_vids/2.mp4"; if(file_exists($destinationFile)){ //$cmd = $ffmpeg." -i ".$destinationFile." -vcodec mpeg4 -r 30 -b 345k -acodec libmp3lame -ab 126000 -ar 44100 -ac 2 -s 320x240 ".$convertedFile; $cmd = $ffm...
true
3df50965fcbc238a3fe1696fcd32c8784363ce75
PHP
simonbourrasseau/php-test-petit_projet
/dog.php
UTF-8
353
3.609375
4
[]
no_license
<?php class person { private $firstname; private $lastname; public function __construct($pFirstname, $pLastname) { $this->firstname = $pFirstname; $this->lastname = $pLastname; } public function speak() { } } class dog { private $name; } $person = new person("Jhon", "Doe"); var_dump($person); $dog = ne...
true
9bc13b43a1612ea5dd3a9f26d189c63f690d73cd
PHP
frogfork/OctopyFramework
/system/Console/Command/DBSeedingCommand.php
UTF-8
1,760
2.71875
3
[ "MIT" ]
permissive
<?php /** * ___ _ * / _ \ ___| |_ ___ _ __ _ _ * | | | |/ __| __/ _ \| '_ \| | | | * | |_| | (__| || (_) | |_) | |_| | * \___/ \___|\__\___/| .__/ \__, | * |_| |___/ * @author : Supian M <supianidz@gmail.com> * @link : www.octopy.xyz * @license : MIT */ namespace Oc...
true
a8f064bcf8de7c8997320de1e4f0a62097a326cb
PHP
php2015/zhibuy
/app/Model/Admin/Menu.php
UTF-8
2,452
2.625
3
[]
no_license
<?php namespace App\Model\Admin; use Illuminate\Database\Eloquent\Model; class Menu extends Model { // protected $table = 'fd_menu'; protected $primarykey = 'id'; public $timestamps = false; protected $fillable = ['title','pid','path','listorder','url']; //菜单生成path路径 static public function getPa...
true