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
4806c67a567b0650236652c579fab4bde1cb5ac7
PHP
murarik57/cms
/reset.php
UTF-8
4,254
2.59375
3
[]
no_license
<?php include "includes/db.php"; ?> <?php include "includes/header.php"; ?> <?php if(!isset($_GET['email']) || !isset($_GET['token'])) header("Location: index"); $message=''; $verified=false; $email_url=$_GET['email']; $token_url=$_GET['token']; $stmt=mysqli_prepare($connecti...
true
c8679f1ef4e301e266d1437dfc37c618bc93b83e
PHP
VAISHALI-RATHORE/assignments
/assignment9/food.php
UTF-8
1,672
2.671875
3
[]
no_license
<?php $str=file_get_contents("food.json"); $array=json_decode($str,true); $items = $array['items']['item']; echo "<pre>"; print_r($array); return; echo "<br/>"; $mysqli = new mysqli('localhost','root','','food') or die(mysql_error($mysqli)); foreach ($items as $item) { $type =...
true
08387b32d1916ae3c48805d4dcb15208a0c56ef5
PHP
robjbadger/mesatech
/forms/library/generator_common_css.php
UTF-8
4,835
2.734375
3
[]
no_license
<?php /** * Description of GeneratorCommonCss Class * Generates CSS for the form * Last Modified: 21.05.2017 * @author www.thewebfosters.com */ class GeneratorCommonCss { //private $include_datepicker = false; protected $version = 1; function __construct( $form_id, $add_basic_css = true, $final...
true
c835613fae620dd3f114fa9ee47107e6b7560c26
PHP
samuraix888/Tugas_Workshop_SI_WEB
/Tugas_5/variabel/variabel.php
UTF-8
1,013
3.34375
3
[]
no_license
<!DOCTYPE html> <!--documen yang diproses adalah html--> <html><!--pemrograman kode html dimulai--> <body><!--body open/tubuh, isinya ya semua elemen elemen yg ditampilin di web kaya gambar, paragraf dll--> <?php/*<?php adalah awal mulai script php dimulai*/ /*penulisan ;variabel di buka dengan $ lalu diikuti nama va...
true
f1500a4c7ddf40ce121cf77c0b3585017402d2d2
PHP
foppong/digoro
/admin/view_users.php
UTF-8
5,623
3.203125
3
[]
no_license
<?php // view_users.php // This script retrieves all the records from the users table. require '../includes/config.php'; $page_title = 'digoro : View Current Users'; include '../includes/header.html'; // autoloading of classes function __autoload($class) { require_once('../classes/...
true
a3c6a50735db66ea6afb11b0c389d2979843e74a
PHP
Wildcorsair/ogoproject
/apps/models/UserModel.class.php
UTF-8
1,148
2.734375
3
[]
no_license
<?php class UserModel extends BDatabase { public $tableName = "ogo_users"; public $primaryKey = "fid"; public function getAuthorizedUserData() { $dataSet = null; if (isset($_COOKIE['UID'])) { $cookieKey = $_COOKIE['UID']; $query = "SELECT `fid`, `fname` FROM `ogo_users` WHERE md5(CONCAT(`fs...
true
79b47f95301f5067492dc999d003e37afc6ebd7e
PHP
CubeQuence/crypto
/src/Crypto/Models/SymmetricKey.php
UTF-8
1,573
2.703125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace CQ\Crypto\Models; use CQ\Crypto\Exceptions\KeyException; use CQ\Crypto\Providers\KeyProvider; use ParagonIE\Halite\KeyFactory; use ParagonIE\Halite\Symmetric\AuthenticationKey; use ParagonIE\Halite\Symmetric\EncryptionKey; use ParagonIE\HiddenString\HiddenString; final class...
true
cbb9fcd00f2a773ca0cc3a2495488c5ee745561a
PHP
VitexSoftware/AppTemplate
/src/Ease/AppTemplate/LogToSQL.php
UTF-8
2,264
3.046875
3
[ "MIT" ]
permissive
<?php /** * Database Engine class * * @author Vítězslav Dvořák <info@vitexsoftware.cz> * @copyright 2018-2020 Vitex@hippy.cz (G) */ namespace Ease\AppTemplate; /** * Description of LogToSQL * * @author vitex */ class LogToSQL extends \Ease\SQL\Engine implements \Ease\Logger\Loggingable { /** * Sa...
true
6e6f3079f62c7720384b99b14a1b32e9154d6975
PHP
dizatech/notifier
/src/Drivers/Ghasedak.php
UTF-8
2,194
2.59375
3
[ "MIT" ]
permissive
<?php namespace Dizatech\Notifier\Drivers; use Dizatech\Notifier\Traits\SMSTrait; use Ghasedak\GhasedakApi; use Dizatech\Notifier\Abstracts\Driver; class Ghasedak extends Driver { use SMSTrait; public function send($userId, $templateId, $params = [], $options = []) { $this->setVariables($userId...
true
81761bba7e4f3929f7135e4d0b27cb2d4032112d
PHP
Submitty/Submitty
/site/app/models/gradeable/GradedComponent.php
UTF-8
12,888
2.609375
3
[ "BSD-3-Clause", "MIT" ]
permissive
<?php namespace app\models\gradeable; use app\libraries\GradeableType; use app\models\AbstractModel; use app\libraries\Core; use app\libraries\DateUtils; use app\models\User; use app\libraries\NumberUtils; /** * Class GradedComponent * @package app\models\gradeable * * @method int getComponentId() * @method flo...
true
a7a5e5d4c5c0f09ca34751d9879f356fa7bc60b6
PHP
adong23664/pages_demo
/example/mod21/_00_fopen_fclose/fopen_fclose.php
UTF-8
1,116
3.078125
3
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset='utf-8'> <link rel='stylesheet' href='/example/css/styles.css' type='text/css' /> <title>Open and Close Files</title> </head> <body> <div align='center'> <h2>讀取檔案</h2> <!-- <hr> --> <!-- Quoted from "http://www.tutorialspoint.com/php/php_files.htm" <p/> --> <!-- The PH...
true
246aaff702c414be528e33d711d862f400280c30
PHP
ejonasson/snazzy-formbuilder
/app/FormBuilder/Reports/ReportField/calculateFrequency.php
UTF-8
739
2.640625
3
[ "MIT" ]
permissive
<?php namespace App\FormBuilder\Reports\ReportField; use App\FieldOption; trait CalculateFrequency { public function calculateFrequency($responses) { $frequencies = []; foreach ($responses as $response) { if (!isset($response->value)) { continue; } ...
true
4bd494933389a3e1e9cd0bed268b275af426cb4a
PHP
dagoba/amazon-prj
/app/Http/Controllers/Cabinet/AddTicketsController.php
UTF-8
1,875
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Cabinet; use Validator; use App\Ticket; use App\TicketMessage; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use App\Http\Controllers\Controller; class AddTicketsController extends Controller { /** * Create a new controller instance. * * @re...
true
14286d62709d5690c8d86a0118126eb805d787dd
PHP
crontab-e/homeworks
/arrays_loops_tasks/3.php
UTF-8
119
3.078125
3
[]
no_license
<?php $array = array (26, 17, 136, 12, 79, 15); foreach ($array as $v) $result += ($v * $v); echo $result."<br>";
true
34adcbd62ad2fa00a790f35b778cc5407fad3d9e
PHP
xiebruce/PicUploader
/vendor/microsoft/microsoft-graph/src/Model/BookingQuestionAssignment.php
UTF-8
2,124
2.5625
3
[ "MIT" ]
permissive
<?php /** * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. * * BookingQuestionAssignment File * PHP version 7 * * @category Library * @package Microsoft.Graph * @copyright (c) Microsoft Corporation. All rights res...
true
6ce4c0dceac86ba3f0046cf03641f5a2a7860362
PHP
LuisPuppi15/ot
/vendor/hrevert/ht-img-module/src/Imagine/Filter/Chain.php
UTF-8
1,022
2.828125
3
[ "MIT" ]
permissive
<?php namespace HtImgModule\Imagine\Filter; use Imagine\Filter\FilterInterface; use Imagine\Image\ImageInterface; use HtImgModule\Exception; class Chain implements FilterInterface { /** * @var \Imagine\Filter\FilterInterface[] */ protected $filters; /** * @param \Imagine\Filter\FilterInte...
true
89aec7927cd37af6d51039d09645163227862c37
PHP
djm204/portfolio-backend
/app/Http/Controllers/ContactFormSubmissionController.php
UTF-8
2,098
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Carbon\Carbon; use Illuminate\Foundation\Auth\Access\AuthorizesRequests; use Illuminate\Foundation\Bus\DispatchesJobs; use Illuminate\Foundation\Validation\ValidatesRequests; use Illuminate\Http\Request; use Illuminate\Routing\Controller as BaseController; use Mail; class Con...
true
4db173761cf822ac2dddb213612ec7c2a6ba30aa
PHP
HakimNemar/MVC_PiePHP
/Core/ORM.php
UTF-8
2,255
3.046875
3
[]
no_license
<?php namespace Core; use Core\Database; class ORM { private $conn; function __construct() { $this->conn = Database::OpenCon(); } public function create($table, $fields) { $executeArray = []; $query = "INSERT INTO " . $table . "("; foreach ($fields as $key => $v...
true
c86b9fb802b318c91d7d02af306c8f2e04bc07b0
PHP
mikecornille/itransportsystems
/app/Transformers/Transformer.php
UTF-8
216
2.609375
3
[ "MIT" ]
permissive
<?php namespace App\Transformers; abstract class Transformer { public function transformCollection($collection) { return $collection->transform(function($record) { return $this->transform($record); }); } }
true
f3a23ad1c1d873c9d6f486b94ca645bbd3c55a74
PHP
bZez/SF4-Simple-JWT-Auth-API
/src/Controller/Data/RefundController.php
UTF-8
3,607
2.515625
3
[]
no_license
<?php namespace App\Controller\Data; use Symfony\Component\HttpFoundation\JsonResponse; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\Routing\Exception\MethodNotAllowedException; /** * Lorem ipsum dolor sit amet, consectetur adi...
true
39c1dcf3d63cd995fcbc8d469282b22d7ce1908f
PHP
gwillings/phpnuts-basics
/src/PhpNuts/Database/Sql/SqlStatement/DeleteStatement.php
UTF-8
2,833
2.875
3
[ "MIT" ]
permissive
<?php namespace PhpNuts\Database\Sql\SqlStatement; use PhpNuts\Database\Sql\SqlBlock\DeleteBlock; use PhpNuts\Database\Sql\SqlBlock\FromBlock; use PhpNuts\Database\Sql\SqlBlock\JoinBlock; use PhpNuts\Database\Sql\SqlBlock\LimitBlock; use PhpNuts\Database\Sql\SqlBlock\OrderByBlock; use PhpNuts\Database\Sql\SqlBlock\Wh...
true
a1c5313cb50494f3bc1f0ce3c183264cff026e4c
PHP
Unicen-Tuari/jmendonca
/2EntregaPage/controller/Controller.php
UTF-8
1,214
2.609375
3
[]
no_license
<?php require_once "./view/HomeView.php"; require_once "./view/NosotrosView.php"; require_once "./view/NoticiaView.php"; require_once "./view/ContactoView.php"; require_once "./model/UsuarioModel.php"; require_once "./model/NoticiaModel.php"; require_once "./model/CategoriaModel.php"; class Controller { private $H...
true
f262ee03d3de2c17db3f610baf21f12457f1dd5e
PHP
rehambhere/freelancer
/vendor/System/Database.php
UTF-8
8,858
3.0625
3
[]
no_license
<?php namespace System; use PDO; use PDOException; class Database { private $table; private $data = []; private $bindings= []; private $lastId ; private $wheres = []; private $having = []; private $groupBy = []; private $limit ; private $joins=[]; private $orderBy=[]; pri...
true
93ed0c5ea167998aad76c5c00eb22e0ecbb8b74b
PHP
NicoCBusso/Proyecto
/modulos/localidad/procesar/insert.php
UTF-8
1,194
2.5625
3
[]
no_license
<?php require_once "../../../class/Localidad.php"; session_start(); $nombre = $_POST['txtNombre']; $provincia= $_POST['cboProvincia']; if($_SERVER['REQUEST_METHOD'] == 'POST'){ //De Localidad if (empty(trim($nombre))) { $_SESSION['mensaje_error'] = "El campo Localidad no debe estar vacio"; echo $_SESSION['mensa...
true
661d4fd82ca6bde79a4a805480c788a27f71af73
PHP
pgpurcell/cluiche
/protected/models/TeamKit.php
UTF-8
3,217
2.890625
3
[]
no_license
<?php /** * This is the model class for table "team_kits". * * The followings are the available columns in table 'team_kits': * @property integer $id * @property string $image * @property integer $team_id * @property string $date_from * @property string $date_to * TODO: Add a field something like probability ...
true
64d597e11f084bd1c54306b25bf74aa52c00db3e
PHP
Patroklo/yii2-search-engine
/models/AbstractSearch.php
UTF-8
1,197
2.796875
3
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
<?php namespace cyneek\yii2\searchEngine\models; use yii\base\Model; use yii\data\ActiveDataProvider; use yii\db\ActiveQueryInterface; abstract class AbstractSearch extends Model { /** * Basic search query text * @var String */ public $searchQuery; /** @var string */ public $primary...
true
9398237af28c02275bfdc75686609a3a6d2299ba
PHP
robperc/Payloads
/payload.php
UTF-8
10,433
2.765625
3
[]
no_license
<?php // Base class containing functions for converting arrays of key=>value pairs // for different payload types into strings of xml class Config { // Populated with values in child classes // Used by getXML function protected $keyVal = array(); function __construct() { $sharedKeyVal = array( "PayloadT...
true
7aa60e4a800cf379028758fbefff938393dc99f1
PHP
contactlab/contactlab-magento-syscheck
/src/classes/ContactlabChecks.php
UTF-8
14,603
2.65625
3
[ "Apache-2.0" ]
permissive
<?php /** * Class PreInstallChecks. */ class ContactlabChecks { /** * @var stdClass */ private $_configuration; /** * @var MagentoEnvironment */ private $_environment; /** * @var bool */ private $_magentoRequired; /** * @var bool */ private $...
true
1d8a319409bdb3216d996a66f557ed6f5efb86ce
PHP
shahidcodes/iconscout-search
/database/seeders/IconSeeder.php
UTF-8
3,541
2.78125
3
[]
no_license
<?php namespace Database\Seeders; use App\Models\Category; use App\Models\Color; use App\Models\Contributor; use App\Models\Format; use App\Models\Icon; use App\Models\Tag; use Illuminate\Database\Seeder; use Illuminate\Support\Facades\Http; class IconSeeder extends Seeder { public function __construct() { ...
true
0d546c0c8a35e4233113acf110a11b4388f60970
PHP
Gustavo-Victor/Login-With-PHP
/conexao.php
UTF-8
435
2.890625
3
[]
no_license
<?php //iniciar sessão session_start(); //definir constantes define("SERVIDOR", 'localhost'); define("USUARIO", 'root'); define("SENHA", ''); define("BANCO", 'db_login'); //definir instância de conexão $conexao = mysqli_connect(SERVIDOR, USUARIO, SENHA, BANCO); //veri...
true
2d1272b643fa5e153a8b7f3da0df1b83819369df
PHP
Niehztog/php-nonogram
/src/Nonogram/View/ViewInterface.php
UTF-8
400
2.65625
3
[]
no_license
<?php namespace Nonogram\View; /** * Interface ViewInterface * @package Nonogram\View */ interface ViewInterface { /** * @return string */ public function drawField(); /** * @param \Nonogram\Grid\Grid $grid */ public function setGrid(\Nonogram\Grid\Grid $grid); /** *...
true
2deda758d0bbd555c8eaa483e862974ae687dfb1
PHP
am1970/notes
/server/app/Models/User.php
UTF-8
1,410
2.75
3
[ "MIT" ]
permissive
<?php namespace App\Models; use App\Http\Requests\User\RegisterRequest; use Illuminate\Notifications\Notifiable; use Illuminate\Foundation\Auth\User as Authenticatable; /** * Class User * * Properties * @property integer $id * @property string $first_name * @property string $last_name * @property string $emai...
true
83613cbdcb4fd07d8ae7bea58121ab768282609b
PHP
xucheng12345/php-DemoChengzheng
/longphp/class/Mysql.class.php
UTF-8
1,667
2.921875
3
[ "MulanPSL-1.0" ]
permissive
<?php if(!defined('DIR')){ exit('Please correct access URL.'); } class Mysql { public $conn; public $prefix; function __construct($host, $port, $name, $pass, $database, $prefix, $charset){ $this->conn = mysqli_connect($host, $name, $pass, $database, $port) or die(mysqli_connect_error()); $this->prefix...
true
d43e0f60967593d0bc63d257d82b364186a86e18
PHP
eugeniothiago/humanizese
/seguranca.php
UTF-8
5,030
3.015625
3
[]
no_license
<HTML> <HEAD> <TITLE>SAADS</TITLE> </HEAD> <BODY> <?php require 'conexao.php'; // Configuracoes do Script // ============================== $_SG['conectaServidor'] = true; // Abre uma conex�o com o servidor MySQL $_SG['abreSessao'] = true; // Inicia a sess�o co...
true
383f113d156739767f3c2f1801225b2ba3e63794
PHP
kushwahahimanshu/php1
/logical.php
UTF-8
508
2.890625
3
[]
no_license
<?php $username="admin"; $password="12345"; // and operater if ($username=='admin' && $password =='1245') { echo "welcome"; } else { echo 'please check your username and password .<br/>'; } // OR operater if ($username=='admin' || $password =='1235') { echo "welcome"; } else { echo 'please check your username ...
true
732d9482701370d4f05ba37984345717e7ee0c40
PHP
VijaySilver/MySecondWebsite
/checkwslogin.php
UTF-8
1,979
2.59375
3
[]
no_license
<?php session_start(); $workerusername = mysql_real_escape_string($_POST['workerempid']); $workerpassword = mysql_real_escape_string($_POST['workerpassw']); mysql_connect("localhost", "root","") or die(mysql_error()); //Connect to server mysql_select_db("search_data") or die("Cannot connect to database"); //C...
true
ebf6e6b2f98dc8a6cedeac068a77c4774b2a8604
PHP
ketanmujumdar/phpunit-demo
/test/testHelloWorld.php
UTF-8
1,277
3.09375
3
[]
no_license
<?php include_once('../hello-world.php'); class helloWorldTest extends PHPUnit_Framework_TestCase { private $helloWorld =""; public function setup(){ $this->helloWorld = new helloWorld(); } public function testAdd(){ $this->assertEquals($this->hell...
true
712ee70efd30b4e0d581f413d7c4cb2c71b75f8b
PHP
EduarRomero2018/Proyecto-Seguimiento-Covid
/validacion_progMuestra.php
UTF-8
1,867
2.796875
3
[]
no_license
<?php include 'conexion.php'; // Funciona. //APERTURA DE VARIABLES Datos Personales foreach ($_REQUEST as $key) { if ($key == '') { die(json_encode(array('empty',null))); } } try { $numero_documento = $_REQUEST['identificacion']; $tabla = $_REQUEST['tabla']; //comprobamos que los campos no esten vacios...
true
32f5f2af05ad3241a4af299248871546bef5c059
PHP
cn007b/wall
/wall/src/ddd/Wall/Infrastructure/Persistence/CSV/Subscriber/MessageCreated.php
UTF-8
429
2.5625
3
[]
no_license
<?php namespace Wall\Infrastructure\Persistence\CSV\Subscriber; use Wall\EventInterface; use Wall\EventSubscriber; class MessageCreated implements EventSubscriber { /** * @param EventInterface $event */ public function handle(EventInterface $event) { // Here we can perform some related ...
true
5a8e1e6b8b97f150fc4c4055cbd2c486fbbd4a78
PHP
msebel/sddcms
/library/class/imageConverter/imageConverter.php
UTF-8
4,973
3.4375
3
[]
no_license
<?php /** * Konvertiert Bilder in ein anderes Format. * GIF, JPG und PNG Bilder können in letztere Formate konvertiert werden. * @author Michael Sebel <michael@sebel.ch> */ class imageConverter { /** * Typ des Images, png, jpg oder gif * @var string */ private $imtype; /** * Image Objekt (konv...
true
c2b71f945856cd3e93080ed530f31379fa2d5bab
PHP
chrisribal/onix-parser
/src/CodeList/CodeList260.php
UTF-8
1,710
2.546875
3
[ "MIT" ]
permissive
<?php namespace Ribal\Onix\CodeList; /** * ONIX Code List 260 * * Used with <EpubLicenseDateRole> <x585> * * @see https://ns.editeur.org/onix/en/260 */ class CodeList260 extends CodeList implements CodeListInterface { /** * Code List 260 for en * * @var array * @see https://ns.editeur.org/onix/en/260 ...
true
f1bd106f9d246609b47e89b76dbe6b0115017202
PHP
maxca/book-can-says
/app/Services/Uploads/BaseUploadFile.php
UTF-8
903
2.984375
3
[ "MIT" ]
permissive
<?php namespace App\Services\Uploads; use Illuminate\Http\Request; /** * Class BaseUploadFile * @package App\Services\Uploads * @author samark chaisanguan <samarkchsngn@gmail.com> */ class BaseUploadFile implements BaseUploadFileInterface { /** * @var \Illuminate\Http\Request */ protected $requ...
true
86592f9e4bd2c15cb2953a19d9dd14834e1e3b0a
PHP
PabloPD/Proyecto
/Server/Functions/global_functions.php
UTF-8
495
2.765625
3
[]
no_license
<?php require_once('Model/ModelPDO.php'); // ModelPDO class to access to DB function verifyUser($email, $password) { $dbo = (new ModelPDO())->getDBO(); // Database Object // Get user profile $sth = $dbo->prepare("SELECT user_name FROM kf_user WHERE user_name = ? AND user_passw = ?"); // Set email a...
true
667ddb865539ef457ce74884e89df39d5d08addc
PHP
Amankhalsa/Aman_code-html-php-python
/Apna code/PHP source ode/all/arrays/CopyArray.php
UTF-8
513
4.0625
4
[]
no_license
<?php //1) How to copy arrays from one array variable to another one. $arr =[1,2,3,4,5]; //print_r($arr).PHP_EOL; $arr1=$arr; print_r($arr1).PHP_EOL; print "using foreach loop"; //$arr2=[]; foreach ($arr as $value) { # code... $arr2[]=$value; } print_r($arr2).PHP_EOL; # code... $arr3=["1"=>"Mon", "2"=>"Tue"...
true
fcff28bff811868e96ffee534036651a2fd982f0
PHP
Shofiul-Alam/magento-app
/src/vendor/magento/magento2-base/dev/tests/functional/tests/app/Magento/Sales/Test/TestStep/FillShippingAddressStep.php
UTF-8
1,239
2.65625
3
[ "OSL-3.0", "LicenseRef-scancode-unknown-license-reference", "AFL-2.1", "AFL-3.0", "MIT" ]
permissive
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Sales\Test\TestStep; use Magento\Customer\Test\Fixture\Address; use Magento\Sales\Test\Page\Adminhtml\OrderCreateIndex; use Magento\Mtf\TestStep\TestStepInterface; /** * Fill Shipping Address. ...
true
cf60a0c6184fa12776762c66a8f3d12fbe929b51
PHP
LukasKrc/SingletonTest
/Test.php
UTF-8
1,323
3.25
3
[]
no_license
<?php include 'Singleton.php'; function assertResult($result) { if ($result) { return true; } else { return false; } } // Kad kiekvieno testo metu butu kuriamas naujas Singleton'as function resetSingleton() { $singleton = Singleton::getInstance(); $refSingleton = new ReflectionObject($singleton); $instanc...
true
90917fce419191d56c097aa6613c1b89add39ad7
PHP
NadezhdaDobrianskaia/starter-lab03
/application/controllers/last/Welcome.php
UTF-8
810
3
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php /* * Contains the controller to route the last link or the navbar * (through the index method). * * @author Nadia */ class Welcome extends Application{ /* * Welcome controller constructor. */ function __construct() { parent::__construct(); } /* * called when the U...
true
ccd38e3128512f2ae5cbd632e71d5500aff609da
PHP
zyandeep/CodeIgniter-Demo
/application/controllers/Change_language.php
UTF-8
595
2.765625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php defined('BASEPATH') or exit('No direct script access allowed'); class Change_language extends CI_Controller { public function __construct() { // MUST call parent's constructor parent::__construct(); } public function switch_lanuage() { $language = $this->input->post('...
true
bce9ed05618c7062aa7b3db9466832956be3b4c9
PHP
granbergjoel/Backend
/Backend/lektion-04/gruppövningar/App.php
UTF-8
556
2.796875
3
[]
no_license
<!DOCTYPE html> <html lang="sv"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="style.css"> <title>Document</title> </head> <body> <?php $endpoint = "https://dog.ceo/api/breeds/list/all"; $json = file_get_contents($end...
true
833c2f65146fd8380fa165e2c89965a5f4780452
PHP
salchichongallo/carnicos
/app/Database/Mappers/CustomerMapper.php
UTF-8
849
2.828125
3
[]
no_license
<?php namespace App\Database\Mappers; use stdClass; use Meat\User; use Meat\Store\Customer; use App\Database\Mapper; class CustomerMapper implements Mapper { public function toTable(Customer $customer): array { return [ 'id' => $customer->getId(), 'usuario_id' => $customer->ge...
true
75de7f8f21682abc89e994907cd93cd9298c5835
PHP
dd121011/farm
/travel_server/web/Comment.php
UTF-8
1,641
2.5625
3
[]
no_license
<?php header("Content-Type:text/html;charset=utf-8"); //ini_set("max_execution_time", 600); // s 1 分钟 require_once "../src/dao/impl/AbstractDaoImpl.class.php"; require_once "../src/dao/impl/CommentDaoImpl.class.php"; if(isset($_POST['content']) && ($_POST['destination_id']) ){ isset($_POST['destination_id']) ?...
true
78f2d1fc82b8e28677969c0445fe14ff09bd9b81
PHP
arbor-education/sis-sdk-php
/src/Arbor/Model/CandidateEntryAudit.php
UTF-8
2,432
2.578125
3
[]
no_license
<?php namespace Arbor\Model; use Arbor\Resource\ResourceType; use Arbor\Query\Query; use Arbor\Model\ModelBase; class CandidateEntryAudit extends ModelBase { public const CANDIDATE_ENTRY = 'candidateEntry'; public const TYPE = 'type'; public const ACTION_DATETIME = 'actionDatetime'; protected $_re...
true
c7ebc5edb2ff600f2df0a1bb0baa227b896639f1
PHP
ExaByt3s/localbitcoin
/models/Advertisement.php
UTF-8
8,510
2.859375
3
[]
no_license
<?php /** * Description of Advertisement * * @author NewEXE */ class Advertisement { //const SHOW_BY_DEFAULT = 10; public static function getAdvertisementsList($onlyActive = false, $search_condotions = '', $limit = false) { //$limit = self::SHOW_BY_DEFAULT; if ($limit !== false) ...
true
65c4269da8dcfc41ac726e508284dbf9e61d54bf
PHP
justdevsio/big-register-check
/src/Client/SpecialismExtApp1.php
UTF-8
2,040
2.84375
3
[]
no_license
<?php namespace JustDevs\BIGRegister\Client; class SpecialismExtApp1 { /** * @var float $SpecialismId */ protected $SpecialismId = null; /** * @var float $ArticleRegistrationNumber */ protected $ArticleRegistrationNumber = null; /** * @var float $TypeOfSpecialismId ...
true
5f95e82efbd4dbd1d55dd69e5536db5b2d90bee7
PHP
Arun-007/Wordpress
/carbooking.php
UTF-8
4,206
2.515625
3
[]
no_license
<?php /** * Plugin Name: CarBooking * Plugin URI: http://mypluginuri.com/ * Description: CarBooking. * Version: 1.0 or whatever version of the plugin (pretty self explanatory) * Author: :) * Author URI: :) */ /* Filter the single_template with our custom function*/ global $wpdb; define('carbookingInfoDir',ABSPATH ...
true
338350827335653a451776ed68d955decfd05be1
PHP
leovieira/IF
/Desenvolvimento para Web II/Validação de Formulários/Exibe_Dados_2.php
UTF-8
1,494
2.90625
3
[ "MIT" ]
permissive
<?php ini_set('display_errors', 0); $nome = $_POST['nome']; $email = $_POST['email']; if($nome==null){ echo "O campo <b>Nome</b> é obrigatório!"; echo '<br> <br> <button onclick="history.back()" style="cursor: pointer;">Voltar</button>'; } if($email==null){ echo "O campo <b>E-mail</b> é obrigatório! <br>...
true
6ada9d5fdecde22a2ac9ff6836a5f762cd39a505
PHP
MeghanDuffy/IEIWebSurvey
/IEIWebSurvey-test/phpfiles/PreferenceSurvey.php
UTF-8
6,413
2.625
3
[]
no_license
<?php session_start(); if($_SESSION['UID']==null){ header("Location: https://www.zmbube.com/login.php"); } ?> <!DOCTYPE html> <html> <head> <title> IEI Preference Survey </title> <meta charset="UTF-8" /> </head> <body> <button onclick="showFundamental()">Fundamental</button> <button onclick="showLevel1()">Level...
true
7137ac232aa04a18c28b2d9f41552228dab956f2
PHP
openva/richmondsunlight.com
/htdocs/your-legislators.php
UTF-8
4,786
2.671875
3
[ "MIT", "GFDL-1.1-or-later" ]
permissive
<?php # INCLUDES # Include any files or libraries that are necessary for this specific page to function. include_once 'includes/settings.inc.php'; include_once 'vendor/autoload.php'; # DECLARATIVE FUNCTIONS # Run those functions that are necessary prior to loading this specific page. $database = new Database; $databa...
true
e610f5cf2f61cf2a476c588be0a7a4e4b86733ce
PHP
giangIT22/Electronic-Store
/Controllers/Backend/VerIfyController.php
UTF-8
1,398
2.625
3
[]
no_license
<?php class VerifyController extends BaseController{ protected $userModel; public function __construct(){ $this->loadModel("UserModel"); $this->userModel = new UserModel; } public function index(){ $errors = []; $input = $_REQUEST; if(isset($_POST['btn-l...
true
ae318310e86d5288b0239ea4b0f1da3399dc4c7a
PHP
tianshanghong/btctrackr
/website/test_pc.php
UTF-8
1,647
2.5625
3
[]
no_license
<?php error_reporting(E_ALL); ini_set('display_errors', '1'); require_once('parallelcurl.php'); $base_url = "http://btc.blockr.io/api/v1/address/balance/"; $result_array = array(); $cluster = array(); $cluster[] = "1Shremdh9tVop1gxMzJ7baHxp6XX2WWRW"; $cluster[] = "12KKNwUSevCtLzoc2vku9V3KQVYis34SXn"; $cluster[] = "...
true
fb76804a4ab28d1d3b2d1b0bed3ceef51ea6c0a6
PHP
oxxido/cc
/app/Models/User.php
UTF-8
2,980
2.671875
3
[ "MIT" ]
permissive
<?php namespace App\Models; use App\Models\Model; use Illuminate\Auth\Authenticatable; use Illuminate\Auth\Passwords\CanResetPassword; use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract; use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract; use App\Models\Admin; class User ...
true
ce123cc2d21f40f5f874cad60db2ec4d0bb9eb7b
PHP
serhii-horobets/bsa-2018-php-1
/src/Task1/AbstractCoins.php
UTF-8
560
3.234375
3
[]
no_license
<?php declare(strict_types=1); namespace Cryptocurrency\Task1; abstract class AbstractCoins implements Currency { private $name; public function __construct(float $price) { static::$dailyPrice = $price; $this->name = (new \ReflectionClass($this))->getShortName(); } public fun...
true
3af485581a315a613bb9fb46590aeeca7181d0e8
PHP
tymiles003/reviewer
/app/Http/Requests/Api/BaseRequest.php
UTF-8
751
2.640625
3
[]
no_license
<?php namespace App\Http\Requests\Api; use Illuminate\Foundation\Http\FormRequest; use Illuminate\Contracts\Validation\Validator; /** * Class BaseRequest * @package App\Http\Requests\Api * @property Validator $validator */ abstract class BaseRequest extends FormRequest { protected function failedValidation(V...
true
0fab5d65bcea124c789743ed451dc379fe9be5fb
PHP
rchl2/laravel-demo
/app/Http/Requests/Admin/Account/UpdateAccountRequest.php
UTF-8
3,360
2.578125
3
[]
no_license
<?php namespace App\Http\Requests\Admin\Account; use Illuminate\Http\Request; use Illuminate\Validation\Rule; use Illuminate\Foundation\Http\FormRequest; class UpdateAccountRequest extends FormRequest { /** * Determine if the user is authorized to make this request. */ public function authorize() ...
true
e9b04ad0dd5784e6788566805602fa32f31f5341
PHP
wswapped/elbios
/core/web.php
UTF-8
276
2.625
3
[]
no_license
<?php class WEB{ public static function loadClass($name) { //loads standard class $filename = $_SERVER['DOCUMENT_ROOT']."/core/$name.php"; if(file_exists($filename) && !class_exists($name)){ require_once($filename); }else{ return false; } } } ?>
true
58935d5efe0a8659632d48bfe4b079c0ddbd6132
PHP
JasperLichte/Rainbow-Runner
/server/levels/Level.php
UTF-8
1,110
3.3125
3
[ "MIT" ]
permissive
<?php namespace levels; require_once __DIR__ . './Levels.php'; class Level { private $template = []; /** * Level constructor. * @param array $template * @throws \Exception */ public function __construct($template) { $this->template = self::validate($template); } ...
true
8473229b74014cab9bf1302155b44c139497425c
PHP
Hamiltonjuarez/Fexcom-
/app/Models/Provider.php
UTF-8
1,627
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use App\Models\Base_model; use Illuminate\Support\Facades\Config; use App; class Provider extends Model { protected $table = null; protected $guarded = []; public $timestamps = f...
true
1fa1193479965a85eb2807122dfe56fec1e92227
PHP
bagvi/corporate_website
/gb.php
UTF-8
5,238
2.546875
3
[]
no_license
<?php include'modules/header&footer/header.html'; $link = mysql_connect("localhost", "login", "password", "corp_site"); mysql_select_db("uc3",$link); if (!$link) { die('Не могу установить соединение с базой данных' . mysql_error()); } mysql_set_charset("utf8"); $ip = $_SERVER['REMOTE_ADDR']; $message = array(); ...
true
d50249f4044a20cf2ac6f7523eee124ddbe5dd97
PHP
ddai00bit/zira
/zira/request.php
UTF-8
3,596
2.640625
3
[]
no_license
<?php /** * Zira project * request.php * (c)2015 https://github.com/ziracms/zira */ namespace Zira; class Request { const POST = 'POST'; const GET = 'GET'; const FILES = 'FILES'; protected static $_mobile; public static function post($var=null, $default = null) { if (!$var) retur...
true
649b25f9c737d1b2669d2cbff468abe034620c09
PHP
takashi-moripower/wepedia
/src/Model/Entity/Demand.php
UTF-8
2,537
2.5625
3
[]
no_license
<?php namespace App\Model\Entity; use Cake\ORM\Entity; use Cake\Core\Configure; use Cake\ORM\TableRegistry; use App\Model\Entity\Traits\SoftDeleteTrait; use App\Model\Entity\Traits\ReadCheckTrait; use App\Model\Entity\Traits\NameToIdTrait; use App\Model\Entity\Traits\FlagsTrait; /** * Demand Entity. */ class Deman...
true
f53e57a73bd467ebafe96a727d7912554b64b437
PHP
hnutnrong/PHP
/phpandmysql/search_product_frm.php
UTF-8
1,590
2.703125
3
[]
no_license
<?php require 'connectdb.php'; $pro_search = $_POST['pro_search']; $p = '%'. $pro_search.'%'; ///ให้ค้นหาแล้วข้างหน้าและข้างหลังเป็นตัวอะไรก็ได้ $q = "SELECT * FROM product WHERE pro_name LIKE '$p'"; $result=mysqli_query($dbcon,$q); ?> <!DOCTYPE html> <html lang="en"> <head> <meta c...
true
70e01a2a62e27b28e4dda1cc578b9a2853c03476
PHP
ShivDixit/officecollaborator
/updatepersonalemp.php
UTF-8
4,138
2.578125
3
[]
no_license
<?php include("Connection.php"); error_reporting(0); $email=$_GET['email']; //echo $email; //$sql = "select * from users where email = '$email'"; $sql = 'SELECT * FROM users where email="'.$email.'"'; if($result = mysqli_query($con, $sql)){ $row = mysqli_fetch_array($result); } else echo "n...
true
3d5ca990a14e0e1c941f3961cd90865a91580d22
PHP
snatalius/docker-httpd-php-uploader
/public-html/uploader/gethash.php
UTF-8
893
2.921875
3
[]
no_license
<!DOCTYPE html> <html> <head> <title>Get Hash</title> <link rel="stylesheet" href="css/style.css" /> </head> <body> <?php function notify($msg,$msgcode){ switch($msgcode){ case 0: // success echo "<mark style='background-color:green;color:white'>".$msg."</mark>"; break; case 1: // error echo "<mark ...
true
746b1f340ab985eecc4d710f6a8cd28e67a12124
PHP
dongilbert/com_framework
/site/src/Framework/Dispatcher.php
UTF-8
1,537
2.671875
3
[]
no_license
<?php namespace Framework; use JApplicationCms; use Joomla\DI\Container; use Framework\Exceptions\ControllerResolutionException; class Dispatcher { /** * @var \JApplicationCms */ protected $app; /** * @var \Joomla\DI\Container */ protected $container; /** * @param JAppl...
true
5583b0fd285a1dfd3d32f7f8ac12fc3647440e8a
PHP
gracetfg2/interpretation
/designertask/save_design.php
UTF-8
5,949
2.6875
3
[]
no_license
<?php session_start(); //************* Check Login ****************// $DESIGNER= $_SESSION['designer_id']; if(!$DESIGNER) { header("Location: ../index.php"); die(); } //************* End Check Login ****************// $currentVersion=$_POST['version']; $design_id=$_POST['design_id']; $project_id=$_POST['project_id'...
true
d0fdd658d069853c79e5956e7d7e1853838f8fb4
PHP
alextechnicaltest/test-back-kata-refacto
/src/TextTransformer/Renderer.php
UTF-8
352
2.71875
3
[]
no_license
<?php namespace App\TextTransformer; class Renderer { /** * @param string $id * @return string */ public function renderHtml($id) { return '<p>' . $id . '</p>'; } /** * @param mixed $id * @return string */ public static function renderText($id) { ...
true
e6f79ea551926df53ab7a102f16522626f252382
PHP
anrhkk/core-framework
/core/weixin/Group.php
UTF-8
2,483
2.671875
3
[ "MIT" ]
permissive
<?php namespace core\weixin; use helper\Curl; //会员组管理 class Group extends Weixin { //查询所有分组 public function getAllGroups() { $url = $this->apiUrl . "/cgi-bin/groups/get?access_token={$this->access_token}"; $content = Curl::get($url); $result = json_decode($content, true); ...
true
1426782a3531b43b423b2fce0575c96862d91afb
PHP
mrcoub/gogo
/migrations/20190522141626_task.php
UTF-8
615
2.65625
3
[]
no_license
<?php use App\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class Task extends Migration { public function up() { $this->schema->create('task', function(Blueprint $table){ $table->increments('id'); $table->string('title', 50); $table->text('descri...
true
be00db31c996b4e7ea858e1ca6357fd77bce765d
PHP
ChadPeng/hiskio
/Question3/Subject.php
UTF-8
270
2.609375
3
[]
no_license
<?php namespace Subject; use Observer\Observer; include_once ('Observer.php'); abstract class Subject{ abstract function attach(Observer $observer); //添加 abstract function detach(Observer $observer); //移除 abstract function notify(); //送通知 }
true
41fa3dcab5e1cf768318eb5b4173ff1fd0a0744f
PHP
samylee998/Delivery-2-Door
/Delivery2Door/application/manager-queries/delete.php
UTF-8
1,929
2.875
3
[]
no_license
<h2>Delete Inventory Item</h2> <p> This will delete an inventory item with the specified ID</p> <form method="post" action=""> ID: <input type="text" name="iid" placeholder="<item ID>"><br> <br> <input type="submit" name="delete-table-submit" value="submit"> </form> <?php try{ $showFirstTable =...
true
c9cdbc093e60fa7a0ba757ded10df63e1d7887bc
PHP
andrevanzuydam/tina4stack
/web_root/project/testClass.php
UTF-8
1,460
3.015625
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. */ class testClass { function getDisplay($name="World", $age=10) { return " Hello {$name} you are {$age} years o...
true
9957e79507615a523c5532e5b690b21c2bce0a71
PHP
district-5/php-simple-session-store
/src/SimpleSessionStore/Session.php
UTF-8
4,764
2.90625
3
[ "MIT" ]
permissive
<?php /** * District5 Session Store Library * * @author District5 <hello@district5.co.uk> * @copyright District5 <hello@district5.co.uk> * @link https://www.district5.co.uk * * MIT LICENSE * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and ass...
true
4b49e6341ee7cb12e51333a7a7f3904323702989
PHP
phuocnguyenthanh/zir
/hermes/message/spread/upload.php
UTF-8
1,721
2.796875
3
[]
no_license
<?php require_once('spreadutils.php'); ?> <html> <body> <form method="post" action="upload.php" enctype="multipart/form-data"> <p> <input type="file" name="testfile" /> </p> <p> <input type="submit" name="upload" value="Submit" /> </p> </form> <?php $link = mysql_connect('localhost...
true
8b508a5d8b63bab4dcdf1cbff9242cd0cde230ce
PHP
marcqualie/mongominify
/src/MongoMinify/Provider/Silex/Db.php
UTF-8
812
2.578125
3
[ "MIT" ]
permissive
<?php namespace MongoMinify\Provider\Silex; use MongoMinify\Db as Base; class Db extends Base { private $app; /** * Override default constructor to pass in app reference */ public function __construct($db_name, $client, $app) { parent::__construct($db_name, $client); $this...
true
4dd17eceb3ea56fbb5694f881ee6a838191147e0
PHP
Shofiul-Alam/magento-app
/src/vendor/magento/framework/Setup/Declaration/Schema/SchemaConfigInterface.php
UTF-8
670
2.578125
3
[ "OSL-3.0", "LicenseRef-scancode-unknown-license-reference", "AFL-2.1", "AFL-3.0", "MIT" ]
permissive
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Framework\Setup\Declaration\Schema; use Magento\Framework\Setup\Declaration\Schema\Dto\Schema; /** * Schema configuration interface. * * Used to fetch schema object with data from either db or...
true
d7def1eee86d63d5069ffac362d0838826cffbee
PHP
jerrygacket/php-level2
/old_shop/engine/classes/PageGenerator.php
UTF-8
3,038
2.703125
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: user * Date: 02.03.19 * Time: 23:20 */ class PageGenerator extends BaseObj { private $twig; public function __construct($uri = '') { parent::__construct($uri); // init twig $this->twig = TplGenerator::getTpl(TPL_DIR, CACHE_DIR); } ...
true
8b653fc0e3ef3ae5dbd063ba809549571e95cd39
PHP
guodong/cloudwarelabs-api
/app/Http/Controllers/UserController.php
UTF-8
4,406
2.59375
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Models\User; use Illuminate\Http\Request; use Illuminate\Support\Facades\Hash; use Illuminate\Support\Facades\Response; use Tymon\JWTAuth\Facades\JWTAuth; class UserController extends Controller { /** * Display a listing of the resource. * * @return \I...
true
f239b0ac43f7e0f1a19c94c300bd45235b3967cc
PHP
MatthewBlurton/BookmarksWithLaravel
/database/seeds/RolesAndPermissionsSeeder.php
UTF-8
4,613
2.578125
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; use Spatie\Permission\Models\Role; use Spatie\Permission\Models\Permission; class RolesAndPermissionsSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { // Reset cached roles and permissions ...
true
44a3b76cda63e11c47839648ba4ab699903932d2
PHP
Innmind/XML
/src/Element/Element.php
UTF-8
6,010
2.828125
3
[ "MIT" ]
permissive
<?php declare(strict_types = 1); namespace Innmind\Xml\Element; use Innmind\Xml\{ Element as ElementInterface, Attribute, Node, AsContent, Exception\DomainException, }; use Innmind\Filesystem\File\Content; use Innmind\Immutable\{ Map, Sequence, Set, Str, Maybe, }; /** * @psal...
true
756af5e8d60dd21cbd25e46418a2c94b06a97143
PHP
kiyoshikondo/funkyjam.com
/lib/guesswork/Guesswork/Utils.php
UTF-8
507
2.953125
3
[]
no_license
<?php /** * Utility class. * * @author juno * @version $Id: Utils.php 11 2005-08-16 19:57:30Z juno $ */ class Utils { /** * Add DIRECTORY_SEPARATOR string to tail of path. * * @access static * @param string $src * @return string */ function normalizeDirectoryPathStr($src) ...
true
31c5b8b3f33afeb19a492a5f2a0e6a0c3557070f
PHP
ArkEcosystem/explorer
/tests/Unit/Services/SettingsTest.php
UTF-8
4,322
2.546875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); use App\Facades\Settings; use Illuminate\Support\Arr; use Illuminate\Support\Facades\Config; use Illuminate\Support\Facades\Route; // Since the settings rely on the cookies I need to create a fake route that will // contain the cookie passed as a param and will respond with the data th...
true
053727497b7a14d99dbaed5b3473881f0132f24f
PHP
thienth/pt14211-php2
/lesson6/BaseModel.php
UTF-8
2,687
3.03125
3
[]
no_license
<?php class BaseModel { function __construct() { $this->conn = new PDO('mysql:host=127.0.0.1;dbname=kaopiz;charset=utf8', 'root', '123456'); } public function insert($arr){ $this->queryBuilder = "insert into $this->tableName "; $cols = " ("; $vals = " ("; foreach ($arr as $key => $value) { $cols .=...
true
9f225dcb05756edfd0f24d613a1b171c5f8010fe
PHP
humanmade/Custom-Meta-Boxes
/fields/class-cmb-radio-field.php
UTF-8
1,161
3.015625
3
[]
no_license
<?php /** * Standard radio field. * * Args: * - bool "inline" - display the radio buttons inline * * @since 1.0.0 * * @extends CMB_Field * * @package WordPress * @subpackage Custom Meta Boxes */ class CMB_Radio_Field extends CMB_Field { /** * Get default arguments for field including custom parameters...
true
f471e1012bd244c82481023b0bb214e5d85e3b47
PHP
amujacic/Projects
/UserControlPanel-SkillArena/prijava.php
UTF-8
1,708
2.53125
3
[]
no_license
<?php function hes($str) { $lenght = strlen($str); $s1 = 1; $s2 = 0; for($n=0; $n<$lenght; $n++) { $s1 = ($s1 + ord($str[$n])) % 65521; $s2 = ($s2 + $s1) % 65521; } return ($s2 << 16) + $s1; } include('baza.php'); $_userName = $_POST["user"]; $_passWord = $_POST["pass"]; $szEscapedUser = m...
true
5c2632517efb32d94e87cac7bda9caaf5daf3580
PHP
danhmanh/php-crawler-demo
/curl_example_1.php
UTF-8
1,775
2.546875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: danhm * Date: 20-Dec-17 * Time: 11:21 AM */ //Disable warning text error_reporting(E_ERROR) ; set_time_limit(10) ; $url = "https://mp3.zing.vn/" ; $proxy = trim(file_get_contents("proxy.txt")) ; function getData($url , $proxy = null , $proxyType = null ){ $curl = cur...
true
084ef2007498e32ab2ef0b5289a0306f30b6b4af
PHP
olesmith/siolymp
/MySql2/Item/Tests.php
UTF-8
10,776
2.828125
3
[]
no_license
<?php include_once("Tests/Item.php"); class ItemTests extends ItemTestsItem { //* //* function ItemCompulsoriesUndefined, Parameter list: $item=array(),$datas=array() //* //* Tests item according to whether all compulsory fields are defined. //* Returns lista of undefined data, empty list of all de...
true
62284026eb4ac4cc8c8ffdd31960e294ece20a8c
PHP
gabrielgonzalez1802/blog
/class/pick.php
UTF-8
2,274
3.15625
3
[ "Apache-2.0" ]
permissive
<?php /** * @author Gabriel * */ class Pick extends Conexion{ private $servername; private $username; private $password; private $dbname; private $id_pick; private $name; private $pick_type; private $pick_size; private $location; public function __construct($id=null){ $this->servername = parent::getServ...
true
7613feda168c458642dab9f70f02406c9905036c
PHP
warkol66/egytca_apps
/GCABA/tablero/WEB-INF/classes/modules/planning/classes/PlanningProjectQuery.php
UTF-8
2,882
2.53125
3
[]
no_license
<?php /** * Skeleton subclass for performing query and update operations on the 'planning_project' table. * * Proyectos * * You should add additional methods to this class to meet the * application requirements. This class will only be generated as * long as it does not already exist in the output directory....
true
b0c889c892b134f023cd7f8a1931c22f47bfb516
PHP
sbarbaroluca/php-badwords
/index.php
UTF-8
961
2.765625
3
[]
no_license
<?php $testo = "Datemi i giovani, gli affamati e gli stupidi e in meno che non si dica li faccio diventare ricchi."; $parola = $_GET["parola"]; $testoFiltro = str_replace($parola, "***", $testo); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible...
true
9cec2774389f485dc2a674cbb79af1cf182e11a5
PHP
Mindrel/oc-project4-blog
/index.php
UTF-8
1,971
2.71875
3
[]
no_license
<?php // Routeur principal require("controller/blog.php"); try { // Si URL contient paramètre "action"... if (isset($_GET["action"])) { // Et si param action == valeur "chapter"... if ($_GET["action"] == "chapter") { // Et si ID présent et supérieur à 0 alors on déclenche la...
true