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
1abf30c5eeef9df2a4c3ae266a919f8252181f6a
PHP
mumingv/php
/func/strings/parse_str.php
UTF-8
743
3.140625
3
[]
no_license
<?php /*********************************************************** * FileName: parse_str.php * Desc: 将字符串解析成多个变量 * Author: Jie Yin * Email: mumingv@163.com * HomePage: https://github.com/mumingv * Version: 0.0.1 * LastChange: 2017-01-20 00:20:52 * History: *************...
true
ea1aa1d6ac9efe6302c309a970eea511405e6fb5
PHP
MSana0/php-database
/php-database-login-form.php
UTF-8
620
3.171875
3
[]
no_license
<!DOCTYPE html> <html> <head> <title>PHP-DATABASE</title> </head> <body> <h1>php-database</h1> <?php $host = "localhost"; $Username = "user"; $Password = "123"; $dbname = "task"; session_start(); $db = mysqli_connect($host, $Username, $Password, $dbname); $sql = "select * from user where Username =='$Usern...
true
7a2cd65093c8e9c2adb8563f4e353448e0845c27
PHP
WellingtonEspindula/estudosorientados
/dao/AdminDAO.php
UTF-8
2,641
2.859375
3
[]
no_license
<?php require_once __DIR__ .'/../bd/conexao.php'; require_once __DIR__ .'/../model/Admin.php'; class AdminDAO { public static $instance; public static function getInstance() { if (!isset(self::$instance)) self::$instance = new AdminDAO(); return self::...
true
172ecb84413196355252c9eeaf31e66166b5caf6
PHP
sdieunidou/csgo-serv
/apps/frontend/modules/statistics/actions/actions.class.php
UTF-8
598
2.515625
3
[]
no_license
<?php /** * statistics actions. * * @package jeuxsteam * @subpackage statistics * @author Your name here * @version SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $ */ class statisticsActions extends sfActions { /** * Executes index action * * @param sfRequest $request A ...
true
f3fe6ae86ffec1d590f05989fbff7a2d030f1b90
PHP
YuriyGorodzhiy/Intervolga
/countries/viewCountry.php
UTF-8
1,652
2.796875
3
[]
no_license
<?php // Подключаем файл для подключения к БД "countries" require_once('inc/connect_db.php'); // Создаём запрос в БД для получения данных из неё $stmt = $pdo->query('SELECT * FROM table_countries'); ?> <div class="table_countries"> <div class="titles_columns"> <div class="number_row">№ п/п</di...
true
7800749eaa0bd19c3d13799ae967917e9004d5e3
PHP
danilovl/async-bundle
/src/Service/AsyncService.php
UTF-8
1,738
2.734375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Danilovl\AsyncBundle\Service; use Danilovl\AsyncBundle\Model\CallableModel; class AsyncService { /** * @var CallableModel[] */ private array $container = []; public function add(callable $callable, int $priority = 0, string $name = null): void { ...
true
16883f6f398978c64d59fda1825bc4324f849536
PHP
PeerMeHQ/mx-sdk-php
/src/Signature.php
UTF-8
209
2.6875
3
[ "MIT" ]
permissive
<?php namespace Peerme\Mx; class Signature { public function __construct( private string $valueHex, ) { } public function hex(): string { return $this->valueHex; } }
true
8d76c2ec5e998a42815bb9174737eb0a024ba96d
PHP
emilyjuliet/Phpstormprojects
/phpbasics/inheritance.php
UTF-8
885
3.6875
4
[]
no_license
<?php class Student { protected $firstname; protected $lastname; public function setFirstname($firstname) { $this->firstname = $firstname; return $this; } public function setLastname($lastname) { $this->lastname = $lastname; return $this; } public ...
true
bc4b9d7588f868f454a28a378baadcd2b5bd9aee
PHP
PriymakVl/prokat.yii
/modules/drawing/models/DrawingStandard.php
UTF-8
384
2.546875
3
[]
no_license
<?php namespace app\modules\drawing\models; use app\models\BaseModel; class DrawingStandard extends BaseModel { public static function tableName() { return 'drawings_standard'; } public static function getAllForObject($obj) { return self::find()->where(['code' => $obj...
true
cfd9d22cb45f2b07978d1c2a7d409e1863ff93fe
PHP
GardenOfLife/OSC_Helix_Test2
/core/framework/Libraries/Asynchronous.php
UTF-8
14,616
2.828125
3
[]
no_license
<?php namespace RightNow\Libraries; /** * Make asynchronous connections using sockets. * May be used to make both http get and post requests to external APIs. */ class Asynchronous { const DEFAULT_PORT = 80; /** * Default request timeout - 5 minutes */ const DEFAULT_TIMEOUT = 5...
true
58204ebe91e50b09c7c1730d98e9573af77f475d
PHP
Yorinton/design-pattern-php
/packages/DesignPattern/FactoryMethod/Reader.php
UTF-8
187
3.03125
3
[]
no_license
<?php namespace DesignPattern\FactoryMethod; //読み込み機能・表示機能を表現するインターフェース interface Reader { function read(); function display(); }
true
b6eb640fb0e842f3a1837345a0664c2f702f66d0
PHP
marcellodesales/my-cs-research
/bs-cs-ufal-brazil/lab-open-source/classi-a/src/classes/weather.php
UTF-8
4,651
2.734375
3
[]
no_license
<? class Weather{ var $cloudLayer1Condition; var $cloudLayer1AltitudeMeter; var $cloudLayer1AltitudeFeet; var $cloudLayer2Condition; var $cloudLayer2AltitudeMeter; var $cloudLayer2AltitudeFeet; var $cloudLayer3Condition; var $cloudLayer3AltitudeMeter; var $cloudLayer3AltitudeFeet; ...
true
31b1202e3f326d27d9ac4faffb0b8056a0f73904
PHP
lov3catch/apibank-client-php
/tests/AuthManagerTest.php
UTF-8
2,100
2.546875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); use ApiBank\Auth\AuthManager; use ApiBank\Auth\TokenPairs; use ApiBank\Auth\Tokens\AccessToken; use ApiBank\Auth\Tokens\RefreshToken; use PHPUnit\Framework\TestCase; class AuthManagerTest extends TestCase { /** * @var AuthManager */ private $authManager; protecte...
true
573158e8d2c955237b4b3376eaa02ad3e7fa8926
PHP
vijaynkhotborgaon/NiceAdmin_final_1.2
/employee/employee-update-process.php
UTF-8
2,063
2.71875
3
[]
no_license
<?php require_once('../config.php'); require_once('auth.php'); //Array to store validation errors $errmsg_arr = array(); //Validation error flag $errflag = false; //Function to sanitize values received from the form. Prevents SQL injection function clean($str) { $str = @...
true
5a624d12a6cf14b1d45c132fefe065c071ccab83
PHP
das-habitat/website
/kirby/site/controllers/contact.php
UTF-8
2,020
2.578125
3
[]
no_license
<?php return function ($kirby, $pages, $page) { $alert = null; if ($kirby->request()->is('POST')) { // check the honeypot if (empty(get('website')) === false) { go($page->url()); exit(); } $data = [ 'name' => get('name'), 'email' => get('email'), 'body' => get('body'...
true
e11c02db00038ecc518fbaef0fc3a48dacd8e05f
PHP
JanetIT/test
/contact_form.php
UTF-8
4,394
2.78125
3
[]
no_license
<!DOCTYPE html> <html> <head> <title>Contacts</title> <link rel="stylesheet" href="new_style.css"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> </head> <body> <?php require 'connection.php';$conn = Connect(); $name = $tel = $email = $subject = $message = ""; $nameErr = $telErr = $em...
true
8fa10d53101ec7dbf7905c20384616a450671006
PHP
LynconR/Ecommerce
/ProjetoEcommerce/classes/conexao.php
UTF-8
308
2.75
3
[]
no_license
<?php $host = "localhost"; $usuario = "root"; $senha = ""; $banco = "ecommerce"; // Create connection $con = new mysqli($host, $usuario, $senha, $banco); // Check connection if ($con->connect_errno) { echo "falha na conexão (". $con->connect_errno . ")" . $con->connect_error; } ?>
true
21ec348c9f7062ea44778c65f499ec837fee9505
PHP
naimul77/spm
/database/migrations/2021_05_19_183612_create_segments_table.php
UTF-8
2,348
2.59375
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateSegmentsTable extends Migration { public function up() { Schema::create('student', function (Blueprint $table) { $table->mediumInteger('studentI...
true
7fbe0f05fb0ea33249b891e2d1318f5f34b58f1f
PHP
Ccantey/LCC-ACS
/php/getACSJSONexample.php
UTF-8
3,496
2.578125
3
[]
no_license
<?php # Connect to PostgreSQL database $conn = new PDO('pgsql:host=###;dbname=###','###','###'); $selected = $_GET["selects"]; if ($selected == 'dp05') { $title = "Demographic"; $hcXX_vcXX = array('hc03_vc79', 'hc03_vc80', 'hc03_vc81' ,'hc03_vc88', 'hc03_vc49'); //fields }; if ($selected == 'dp02') { $title = ...
true
098d531143c78d67c37406e163b1187ff2490800
PHP
ChengKaiChiang/exam_sys
/dist/php/SRC/config/connectDB.php
UTF-8
496
2.78125
3
[]
no_license
<?php date_default_timezone_set("asia/taipei"); class db { private $dbhost = '127.0.0.1'; private $dbuser = 'root'; private $dbpass = 'admin'; private $dbname = 'exam_system'; public function connect() { $mysql_conn = "mysql:host=$this->dbhost;dbname=$this->dbname"; $db = new P...
true
1ff7ab3917507d8827dff5796923cd577897d142
PHP
abdullahessam/robusta-backend-task
/app/Http/Controllers/Dashboard/UserController.php
UTF-8
2,205
2.546875
3
[]
no_license
<?php namespace App\Http\Controllers\Dashboard; use App\DataTables\UserDataTable; use App\Http\Controllers\Controller; use App\Http\Requests\Dashboard\User\StoreRequest; use App\Http\Requests\Dashboard\User\UpdateRequest; use App\Models\User; use Illuminate\Http\Request; class UserController extends Controller { ...
true
fe35885bfc88480c3d60db25aa7a1d543e521d03
PHP
yefersonsistemas/sinus-and-face-api
/app/Http/Controllers/API/SecurityController.php
UTF-8
9,388
2.546875
3
[]
no_license
<?php namespace App\Http\Controllers\API; use App\Employe; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use App\Reservation; Use App\Visitor; Use App\Person; Use App\Image; Use App\Patient; use Carbon\Carbon; use App\Http\Requests\CreateVisitorRequest; use App\Events\Security; class SecurityCont...
true
1732fb60522e74386482ee0d789de2206546100d
PHP
kabmihucp/chinami
/login_db.php
UTF-8
1,229
2.734375
3
[]
no_license
<?php $url = "localhost"; $user = "ken"; $pass = "dbuser"; $db = "dbserver"; //SQLインジェクション対策 $input_id = htmlspecialchars($_GET['login_id'], ENT_QUOTES); $input_pass = htmlspecialchars($_GET['login_pass'], ENT_QUOTES); // 接続(DB選択含む) $link = mysqli_connect($url,$user,$pass,$db); /* 接続状況をチェック */ if (!$link) { die('接...
true
69e2207e8547387722e85717001da5a75ec32a01
PHP
noahshrader/pullr
/frontend/models/streamboard/StreamboardRegion.php
UTF-8
4,865
2.59375
3
[]
no_license
<?php namespace frontend\models\streamboard; use common\models\Plan; use yii\db\ActiveRecord; use common\models\User; /** * @package frontend\models\streamboard * @property integer $userId * @property integer $regionNumber - either 1 / 2 * @property string $backgroundColor * @property string $widgetType * @pro...
true
286582eda109494a4d5d80763f8d038a85e969ef
PHP
sashalemesh/Lemesh
/htdocs2/mod1/cookie.php
UTF-8
1,082
2.875
3
[]
no_license
<?php $visitCounterr = 0; if(isset($_COOKIE["visitCounterr"])) $visitCounterr = $_COOKIE["visitCounterr"]; $visitCounterr ++; if(isset($_COOKIE["lastVisitt"])) $lastVisitt = $_COOKIE["lastVisitt"]; setcookie("visitCounterr", $visitCounterr);//0x7FFFFFFF время безконечность setcookie("lastVisitt", date("d-m-Y H:i:s")...
true
ee85d3f5305ec8e23a66cc198669d92be363e58f
PHP
logue/LukiWiki
/app/LukiWiki/Element/ListElement.php
UTF-8
643
2.765625
3
[ "MIT" ]
permissive
<?php /** * リスト要素クラス. * * @author Logue <logue@hotmail.co.jp> * @copyright 2013-2014,2018 Logue * @license MIT */ namespace App\LukiWiki\Element; use App\LukiWiki\AbstractElement; class ListElement extends AbstractElement { public function __construct($level, $head) { parent::__construct(...
true
9325d563c4191e5141d2841187f6a1d4b604ed63
PHP
albertarni/TicketingPortalClient
/src/UrlGenerator.php
UTF-8
819
2.671875
3
[]
no_license
<?php namespace Albertarni\TicketingPortalClient; class UrlGenerator { private $signer; private $api_token; private $project_id; public function __construct(SignerInterface $signer, $api_token, $project_id) { $this->signer = $signer; $this->api_token = $api_token; $th...
true
b14437265da3cc6ec422714377e5c7c79b0a8745
PHP
EVelacio/TiendaLaravel
/app/Customer.php
UTF-8
1,864
3
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Auth\Authenticatable; use Illuminate\Database\Eloquent\Model; use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract; use Session; use Validator; class Customer extends Model implements AuthenticatableContract{ use Authenticatable; protected $table = 'custom...
true
74410df3a055381b070562158587367b11cbd0a3
PHP
jhnklly/MapCollaborator
/application/models/corenote.php
UTF-8
1,963
2.8125
3
[]
no_license
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class CoreNote extends DataMapper { var $table = 'core_notes'; var $has_one = array(); var $has_many = array(); var $default_order_by = array('submitted_when'); // accept WKT as a parameter, convert and store in the DB, and fetch...
true
31edba96fc940bc77dc44148017414a96158b346
PHP
DeZaight/mvc-task-manager
/app/models/Main.php
UTF-8
4,626
2.59375
3
[]
no_license
<?php namespace app\models; use core\Model; class Main extends Model { public function checkAuth() { if (!empty($_COOKIE['session_key'])) { $result = $this->db->fetch('SELECT * FROM sessions WHERE session_key = :session_key', array( ':session_key' => htmlspecialchars($_COO...
true
a83b3183fb7b810ae42e5d97a16b9552b5771d3f
PHP
apuc/da
/console/migrations/m161025_083516_create_category_posts_digest_table.php
UTF-8
812
2.53125
3
[ "BSD-3-Clause" ]
permissive
<?php use yii\db\Migration; /** * Handles the creation for table `category_posts_digest`. */ class m161025_083516_create_category_posts_digest_table extends Migration { /** * @inheritdoc */ public function up() { $this->createTable('category_posts_digest', [ 'id' => $this->...
true
f60996d5cd2cb528c464710ea97a0b4e58c5594b
PHP
ginoraf3000/LAB6
/verifie.php
UTF-8
1,544
2.875
3
[]
no_license
<html> <head> <meta charset="utf-8" /> <title>Résultat</title> <link type="text/css" href="style.css" rel="stylesheet"> </head> <body> <?php $erreur=""; if (isset($_REQUEST['Envoyer'])) { //Vérification du nom $nom = $_REQUEST["nom"]; function VerifiNom($var) { $Syntaxe = '/^[[:upp...
true
c66af41b72f15f1d5d6bec70b0a20ca8daa1ba7f
PHP
TheGer/gen
/protected/models/Patientcenter.php
UTF-8
3,441
2.625
3
[]
no_license
<?php /** * This is the model class for table "patientcenter". * * The followings are the available columns in table 'patientcenter': * @property integer $patientcenterid * @property integer $centeridA * @property integer $centeridB * @property integer $centeridC * @property string $doctoridA * @property stri...
true
659ed27c0ba00f4c719efc77e28bc2cbf8bf3aa7
PHP
starmomo123/laravel
/app/AdminRole.php
UTF-8
831
2.53125
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; class AdminRole extends Model { protected $guarded = []; //当前角色拥有哪些权限 public function permissions() { return $this->belongsToMany(\App\AdminPermission::class,'admin_permission_roles','role_id','permission_id')->withPivot(['permissi...
true
c3d1a9830054ed920e1ce190370a90d31553ef7c
PHP
hmojicag/modulo3
/Modulo3-Host/includes/db/Usuario.php
UTF-8
1,108
3.046875
3
[]
no_license
<?php if(PHP_OS == "WINNT") { /*Windows Includes*/ require_once dirname(__FILE__).'\DB_mysql.php'; } else { /*Unix / Linux includes*/ require_once dirname(__FILE__).'/DB_mysql.php'; } class Usuario { //put your code here private $userName; private $pass; public function getPa...
true
7c4d003e1319a4282bbe5ee2ad71b760258d45cb
PHP
fine3q/BiliOB-Watcher
/userRank/lib/Csv.php
UTF-8
1,371
3.0625
3
[ "MIT" ]
permissive
<?php // /** * BiliOB-Watcher * * @author FlyingSky-CN * @link https://github.com/FlyingSky-CN/BiliOB-Watcher * @package csv */ namespace BiliOB; class Csv { /** * gen * 生成 */ public static function gen(array $data, string $endline = "\n") { if (count($data) === 0) return fal...
true
95ca7ddba56d915ee73dd554ef21c82d10c31369
PHP
huynx59cntt/BaiTapForm_Arra_php
/Form/bai8/config.php
UTF-8
940
2.609375
3
[]
no_license
<?php if(isset($_POST['submit_button'])) if($_POST['submit_button'] == "Cancel"){ header("Location: index.html"); } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Bài 8 KQ</title...
true
f130681a5e9c2f9722155752caacf57539b4cbac
PHP
ikyandhi/simple-order-service
/api/Http/Services/ItemService.php
UTF-8
2,163
2.71875
3
[ "MIT" ]
permissive
<?php namespace Api\Http\Services; use App\Contracts\Repository\ItemRepositoryInterface; use App\Events\ItemWasRemoved; use App\Events\ItemWasUpdated; use App\Models\Item; use Illuminate\Http\Request; /** * Author : Rifki Yandhi * Date Created : Apr 6, 2017 11:15:40 AM * File : ItemService.php * Co...
true
4fcf18201e4a6e618f3532c925e1c7ebdfa5387c
PHP
senghorkhen/project-pizza
/app/Controllers/Pizzas.php
UTF-8
1,689
2.875
3
[ "MIT" ]
permissive
<?php namespace App\Controllers; use App\Models\PizzaModel; class Pizzas extends BaseController { public function index() { $pizza = new PizzaModel(); $data['pizzas'] = $pizza->findAll(); return view('index',$data); } // add pizza to table in database public function createPizza(){ $data = []; if($t...
true
218833616059bf3afe404b5dfdca38a820f4ae27
PHP
vitoriaborges/motocontrol
/editaEnt.php
UTF-8
2,138
2.578125
3
[]
no_license
<!DOCTYPE html> <html> <head> <title>Edita</title> </head> <body> <?php $identregador; $nome; $rg; $cnh; $cpf; $dt_nascimento; $op = "edita"; if(isset($_SESSION['rows'])){ $ent = $_SESSION['rows'][0]; $identregador = $ent['identregador']; $nome = $ent['nome']; $rg = $ent['rg']; $cnh = $en...
true
c57a0eb3575e2cbbc0554f5611dba4d0683c66f6
PHP
SCLInternet/SclZfPriceManager
/src/SclZfPriceManager/Options/PriceManagerOptions.php
UTF-8
620
2.546875
3
[ "MIT" ]
permissive
<?php namespace SclZfPriceManager\Options; use Zend\Stdlib\AbstractOptions; /** * PriceManagerOptions * * @author Tom Oram <tom@scl.co.uk> */ class PriceManagerOptions extends AbstractOptions implements PriceManagerOptionsInterface { protected $defaultProfile; /** * {@inheritDoc} * * ...
true
70d33c7e7eccb53bd69c31c9d2c93205127c712d
PHP
samueiwu25/web-basic
/user_check.php
UTF-8
1,185
2.65625
3
[]
no_license
<?php $email = (isset($_POST['email']))? htmlspecialchars($_POST['email'], ENT_QUOTES, 'utf-8') : ''; $password = (isset($_POST['password']))? htmlspecialchars($_POST['password'], ENT_QUOTES, 'utf-8'): ''; if($email==''|$password==''){ header('location:./login.php'); } //DB接続 try{ ...
true
4a15e9acb369a09929814ca75d4fde6a36ed6ba2
PHP
anmolnehru/CS564-final
/website/customers.php
UTF-8
2,126
2.890625
3
[ "MIT" ]
permissive
<?php $name = $_GET["customer_name"]; ?> <html> <title> Customers </title> <h3> Welcome Customer : <?php echo $name;?></h3> <body> <form action="book.php"> <fieldset> Type Search Query: <input type="text" name="search"> <select name="stype"> <option value="author">Author</option> <option value="book">Book...
true
b2017c575731c25b8eac51f2b41cec6d49cdc788
PHP
tsw79/youvids
/vendor/phpchassis/ddd/src/data/dto/AuthorizeCredential.php
UTF-8
766
2.75
3
[]
no_license
<?php /** * Created by PhpStorm. * User: tharwat * Date: 4/27/2019 * Time: 01:55 */ namespace phpchassis\data\dto; use phpchassis\data\dto\PersistentDataInterface; /** * Class AuthorizeCredential * @package youvids\application\dto */ class AuthorizeCredential implements PersistentDataInterface { public $...
true
1ce554d112bb201e585ccbbdaaaf526ed37f1732
PHP
jormin/php-redis-mq
/lib.php
UTF-8
1,121
3
3
[]
no_license
<?php /** * 获取数据库连接 * * @param $host * @param $username * @param $password * @param $database * @return mysqli */ function getDBConnection($host, $username, $password, $database){ $connection = new mysqli($host, $username, $password, $database); if($connection->connect_errno){ die("数据库连接出错"); ...
true
b4ab42aa0a1b251ea7bb0b56666d0d2ed2a52a0d
PHP
aaliyaahmed/ATMSimulator
/atmSimulator2.php
UTF-8
2,929
3.25
3
[]
no_license
<?php /* * This can be run through atmSimulatorTest */ class AtmSimulator { public function atmSimulatorFn($requestedAmt=0,$iniCount=0) { $dispensedNumber = 0; $amountLeft = 0; $output = ""; $denominationArr = array('20'=>$iniCount,'50'=>$iniCount); $initialMsg = " INI...
true
5e479702f5265c6ef96920a580bba44c1bc36945
PHP
jason156/ProductExport
/modules/VDXMLExport/models/Module.php
UTF-8
1,813
2.609375
3
[]
no_license
<?php class VDXMLExport_Module_Model extends Vtiger_Module_Model { public $user = NULL; public $db = NULL; public function __construct() { $this->user = Users_Record_Model::getCurrentUserModel(); $this->db = PearDatabase::getInstance(); } public function getAllSettings() { ...
true
c78ff55b6934e37bd7cc14941ea6a3b573f42df7
PHP
Jraty83/Camagru
/webcam/webcam.php
UTF-8
8,383
2.5625
3
[]
no_license
<?php session_start(); require_once '../config/setup.php'; require_once '../includes/constants.php'; require_once '../admin/db_variables.php'; $user = $_SESSION['user']; $user_id = $db_userid; $num = rand(0,10000); function imagecopymerge_alpha($dst_im, $src_im, $dst_x, $dst_y, $src_x, $src_y, $src_w, $src_h,...
true
fa9dd666dae0f5815013abe2264dc1cd4a816941
PHP
MosaKasem/PhpMosesPhp.github.io
/controller/RouteController.php
UTF-8
2,486
2.8125
3
[]
no_license
<?php namespace controller; class RouteController { private $isLoggedIn ; // Variable private $register ; // Model private $sessionModel ; // Model private $loginView ; // View private $layoutView ; // View pri...
true
5b858a2fe3582f77f6c1ad606229ad542ce3569c
PHP
ojullien/Foundation
/src/Foundation/Gd/CColor.php
UTF-8
5,071
2.96875
3
[ "MIT" ]
permissive
<?php namespace Foundation\Gd; /** * Foundation Framework * * @package GD * @copyright (©) 2010-2013, Olivier Jullien <https://github.com/ojullien> * @license MIT <https://github.com/ojullien/Foundation/blob/master/LICENSE> */ if (! defined('APPLICATION_VERSION')) { die('-1'); } /** * This class enforc...
true
4fddfd4e00394686cdb3e7567dcbb543e8a72e3d
PHP
renanlemos/cms_laravel
/app/helpers/DirHelper.php
UTF-8
586
2.8125
3
[ "MIT" ]
permissive
<?php class DirHelper{ public static function generateLinksToPath($path,$tipo_link){ $files = array_diff(scandir(public_path($path)), array('..', '.')); foreach($files as $key => $value){ if(is_file(public_path($path."/".$value))){ switch ($tipo_link) { case 'css': echo "<link...
true
3eb6f44249bf03d607c674bc8562ea93270df8f1
PHP
antoniospap/rideout
/API/highScore.php
UTF-8
979
2.6875
3
[]
no_license
<?php // Create connection $conn = new mysqli("localhost","root","mysql","rideout"); $orderBy; if (isset($_GET["orderby"])){ $orderBy = $_GET["orderby"]; } else { $orderBy = "highScore"; } // Check connection if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); }else { ...
true
e0527742de47fd0c26fb63707d05ab854cdae48d
PHP
Tiorzfk/Becharming
/protected/controllers/ContactController.php
UTF-8
1,204
2.625
3
[ "BSD-3-Clause" ]
permissive
<?php class ContactController extends Controller{ public $layout='homepage'; /*untuk find data by pk*/ public function loadModel($id){ $model=Contact::model()->findByPk($id); if($model===null) throw new CHttpException(404,'The requested page does not exist.'); return $model; } public function actionA...
true
070ba7321483b8733325ddd3fd2e67cb4b9536cd
PHP
thatside/litecqrs-php
/example/ReservationSaga.php
UTF-8
5,408
2.84375
3
[ "MIT" ]
permissive
<?php namespace MyApp; use LiteCQRS\Bus\DirectCommandBus; use LiteCQRS\Bus\InMemoryEventMessageBus; use LiteCQRS\DefaultDomainEvent; use LiteCQRS\Saga\AbstractSaga; use LiteCQRS\Saga\Metadata\StaticallyConfiguredSagaInterface; use LiteCQRS\Saga\State\Criteria; use LiteCQRS\Saga\State\State; use Ramsey\Uuid\Uuid; cla...
true
2040dc8f9b762a6d3518885e13e4799ce5694774
PHP
dylandeceulaer/ZwijndrechtURM
/app/Http/Controllers/ToepassingController.php
UTF-8
2,936
2.515625
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Toepassing; use App\Toepassingsoort; use App\Groep; class ToepassingController extends Controller { public function index(){ $toepassingen = Toepassing::with('toepassingsoort')->with('toepassingsverantwoordelijken')->get(); ...
true
054d364a403ffb635df9b4e511743e156d7eb6fc
PHP
OlehKoptsev/internet-tech
/itech1/itech213.php
UTF-8
1,191
2.796875
3
[]
no_license
<?php require 'db_connect.php'; $start_date = $_GET['start_date']; $end_date = $_GET['end_date']; $date = $dbh->query("SELECT * FROM literature left join resourcse on literature.fid_resourse=resourcse.id_resourse left join book_authors on book_authors.fid_book = literature.id_book left...
true
01186fce567ea8f53d97d865ab0671bfe32be745
PHP
jacobhuff/team4
/login.php
UTF-8
1,694
2.984375
3
[]
no_license
<?php function send_status($status,$message) { $arr = array('success' => $status, 'message' => $message); echo json_encode($arr,true); } // Importing DBConfig.php file. include 'DBConfig.php'; // Creating connection. $conn = mysqli_connect($HostName,$HostUser,$HostPass,$DatabaseNam...
true
45a0064676aee6cd62f0d763f56962090c940898
PHP
mihan007/yii2
/proxy_api/common/models/Client.php
UTF-8
2,373
2.546875
3
[]
no_license
<?php namespace common\models; use Yii; use yii\behaviors\TimestampBehavior; use admin\behaviors\CommonAttributeBehavior; use yii\data\ActiveDataProvider; use yii\db\ActiveRecord; /** * This is the model class for table "client". * * @property int $id * @property string $name * @property int $created_at * @pro...
true
b38d78baf09a9c427cc8de3673e1bef571b0a867
PHP
Littlebird8/LB_tpshop
/shop/application/home/controller/Cart.php
UTF-8
5,881
2.546875
3
[ "Apache-2.0" ]
permissive
<?php namespace app\home\controller; class Cart extends Base { //我的购物车 public function index(){ //获取到根据登录信息获取到购物车信息 $info=\app\home\model\Cart::getcatinfo(); //将商品信息和商品属性的信息全部写到数组中去 //获取商品的id,并将商品信息匹配到info中去 $goods_ids=[]; $attr_ids=[]; foreach($info as $...
true
0f45e021dbe7834770036180b7f2a045d531a1a2
PHP
vaibhav-kaushal/plugin_bootstrap
/includes/Control.php
UTF-8
1,091
2.625
3
[ "MIT" ]
permissive
<?php namespace QCubed\Plugin\Bootstrap; require_once ('Control.trait.php'); /** * Base bootstrap control. Set your QControl to inherit from this control if you want bootstrap functionality * across all your controls. * * The implementation passes off most of its functionality to a trait. 2 reasons: You can make...
true
6aace82602211a5579bc85fbbf9d39191718c11b
PHP
k452/BBS
/login.php
UTF-8
2,981
3.015625
3
[]
no_license
<!DOCTYPE html> <html lang = “ja”> <head> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /> <title>ユーザーログインページ</title> </head> <body> <?php //データベースの変数定義 $servername = ''; $username = ''; $password = ''; $dbname = ''; //変数定義 $id = ( isset( $_POST["id"] ) === true ...
true
68aa231099c3d3e7c1fc887a63d7fc21cf9317f9
PHP
doobrie/sitemap
/src/Page.php
UTF-8
1,244
3.171875
3
[ "MIT" ]
permissive
<?php namespace Doobrie\Sitemap; /** * Representation of a page in a sitemap * * @author David Salter <david.salter@outlook.com> */ class Page { private $location; private $lastModifiedDate; private $changeFrequency; private $priority; public function __construct($location, $lastModifiedDate...
true
533a418eb1416a314a8e833405dcef7ac4c60c95
PHP
udistrital/migracion
/academicopro/bloque/bloque_portal/ver_noticia/sql.class.php
UTF-8
2,002
2.53125
3
[]
no_license
<?php /*-------------------------------------------------------------------------------------------------------------------------- @ Derechos de Autor: Vea el archivo LICENCIA.txt que viene con la distribucion ------------------------------------------------------------------------------------------------------------...
true
b049e25faa1baf2ee79cdfff67c1e4230fb38b1d
PHP
ben-sav/microframework
/Models/MyModel.php
UTF-8
111
2.546875
3
[]
no_license
<?php namespace Models; class MyModel { public function test() { return "Hello from model !"; } } ?>
true
6e30f03eae1205d3ddf1b51a64aa51e8e6100cf3
PHP
sasasa/quick-laravel
/app/Listeners/SkillEventListener.php
UTF-8
830
2.515625
3
[]
no_license
<?php namespace App\Listeners; use App\Events\SkillEvent; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Queue\InteractsWithQueue; use Illuminate\Support\Facades\Mail; use App\Mail\SkillNotification; class SkillEventListener implements ShouldQueue { /** * Create the event listener. * *...
true
b35b2876a2243283f7b9c34098a8a1a6e98f784a
PHP
rolian85/skeleton-api
/lib/Validation/Validator/Either.php
UTF-8
1,051
2.625
3
[]
no_license
<?php namespace Validation\Validator; use Phalcon\Validation\Validator, Phalcon\Validation\ValidatorInterface, Phalcon\Validation\Message; class Either extends Validator implements ValidatorInterface { public function validate($validator, $attribute) { $attributes = $this->getOption('attributes...
true
76c13717860f934832c0b20a10d391d7e2777d61
PHP
phancy/phancy
/src/Exceptions/HttpNotFound.php
UTF-8
179
2.515625
3
[]
no_license
<?php namespace Phancy\Exceptions; class HttpNotFound extends \Exception { public function __construct($message = '', $code = 404, \Exception $previous = null) { } }
true
fe9809e6314eaa555a56f92a1be72773ce3d513e
PHP
SDPM-lab/Codeigniter4-Roadrunner
/dev/app/Controllers/SessionTest.php
UTF-8
1,070
2.703125
3
[ "MIT" ]
permissive
<?php namespace App\Controllers; use CodeIgniter\API\ResponseTrait; /** * @internal */ final class SessionTest extends BaseController { use ResponseTrait; /** * Session Test (File Handler) * * @var \CodeIgniter\Session\Session */ private $_session; protected $format = 'json'; ...
true
ce6bc646d29df968bf72919eb7f0fac333b3bea3
PHP
backend-sh/Laravel-Multi_School_Management_System
/app/Http/Controllers/API/AdmissionsAPIController.php
UTF-8
3,363
2.6875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\API; use App\Http\Requests\API\CreateAdmissionsAPIRequest; use App\Http\Requests\API\UpdateAdmissionsAPIRequest; use App\Models\Admissions; use App\Repositories\AdmissionsRepository; use Illuminate\Http\Request; use App\Http\Controllers\AppBaseController; use Response; /** * Cla...
true
5813f1ec6ebf96239bcc459abd5c2a850ed2c44a
PHP
legend9308/php-test
/test/test03.php
UTF-8
675
3.015625
3
[]
no_license
<?php echo "<table width=800 border=1>"; for($i=1;$i<=9;$i++){ echo "<tr>"; for($j=1;$j<=$i;$j++){ echo "<td>$i * $j = ".($i*$j)."</td>"; } echo "</tr>"; } echo "</table>"; echo "<br />"; echo "<table width=800 border=1>"; for($i=9;$i>=1;$i--){ echo "<tr>"; for($j=1;$j<=$i;$j++){ echo...
true
be066102ab0c80a7dc104479fdb97776263dab68
PHP
douglasrafael/MSA
/model/DocumentoDAO.php
UTF-8
8,319
3.234375
3
[]
no_license
<?php include_once __DIR__ . '/DAO.php'; /** * Contém operações do banco de dados relacionado ao objeto do tipo Documento. * Implementa a interface DAO. * * @package model * @author Douglas Rafael <douglasrafaelcg@gmail.com> * @version v.0.2 (23/03/2017) * @copyright Copyright (c) 2017 */ class...
true
cc702e804d7dc8d79aa220d1d6345d48158107bb
PHP
gambare-web/page-bundle
/src/Model/PageMeta.php
UTF-8
2,833
2.625
3
[ "MIT" ]
permissive
<?php namespace Gambare\PageBundle\Model; use Doctrine\ORM\Mapping as ORM; trait PageMeta { /** * @var string|null * @ORM\Column(type="text", nullable=true) */ protected $metaTitle = null; /** * @var string|null * If this string is set, it will be inserted as a meta tag for the...
true
0bdf742914b64e58f0dc8a485b539dfbed3aadc2
PHP
rozanuril/tugas5
/Arrays/arrays2.php
UTF-8
203
3.46875
3
[]
no_license
<!DOCTYPE html> <html> <body> <?php // menggunakan count()Fungsi digunakan untuk mengembalikan panjang (jumlah elemen) $cars = array("Suzuki", "Yamaha", "Honda"); echo count($cars); ?> </body> </html>
true
b3aadbb7ac0b5543d7c1ee68327db551cb5b1a15
PHP
cserock/codex
/chordccm/song_data/regist.php
UTF-8
4,065
2.5625
3
[]
no_license
<?php include("../common/define.php"); include("../common/util.php"); include("../common/dbopen.php"); /* $size = (int) $_SERVER['CONTENT_LENGTH']; var_dump($_SERVER); echo $size; var_dump($_REQUEST); var_dump($_POST); var_dump($_GET); exit; */ if(!isset($_REQUEST['song_info_i...
true
713dd60c86c45328af600101856c5ab97d555786
PHP
phuongktax/sosad
/models/shoppingCart.model.php
UTF-8
4,474
3.015625
3
[]
no_license
<?php class ShoppingCart{ public $username= null; public $proID= null; public $quantity= null; public $price= null; public $date=null; public function build($row){ $object = new self; $object->shoppingcartID = $row['shoppingcartID']; $object->userName = $row['username']; $object->pro...
true
1da885bc706b7a64a7a4428b74abe7e3e2c173ea
PHP
h4r5h4/oauth2-server-laravel
/src/Storage/FluentAccessToken.php
UTF-8
4,448
2.765625
3
[ "MIT" ]
permissive
<?php /* * This file is part of OAuth 2.0 Laravel. * * (c) Luca Degasperi <packages@lucadegasperi.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Harsha\OAuth2Server\Storage; use Carbon\Carbon; use League\OAuth2\S...
true
75362eca584cb4dc442d63f207251d935b442d1b
PHP
petarjs/qmentors
/src/Domain/Courses/Actions/PublishCourseAction.php
UTF-8
618
2.71875
3
[ "MIT" ]
permissive
<?php namespace Domain\Courses\Actions; use Domain\Courses\Models\Course; use Domain\Courses\States\Published; class PublishCourseAction { /** * Create a new action instance. * * @return void */ public function __construct() { // Prepare the action for execution, leveraging co...
true
8acd0ef14d490a65d71966ed2d6c416c122857b5
PHP
katebalan/patterns
/php/AbstractFactory/Test/MazeTest.php
UTF-8
1,054
2.828125
3
[]
no_license
<?php declare(strict_types = 1); namespace AbstractFactory\Test; use AbstractFactory\BombMazeFactory; use AbstractFactory\BombRoom; use AbstractFactory\Maze; use AbstractFactory\MazeFactory; use AbstractFactory\MazeGame; use AbstractFactory\Room; use PHPUnit\Framework\TestCase; /** * Class MazeTest * @package Abst...
true
ed463b9b6eedf9360cb2b3c4fc47d955c997d9f0
PHP
markuspylkkanen/projk
/palaute/index.php
UTF-8
2,998
2.84375
3
[]
no_license
<?php $msg = ''; $msgClass = ''; $name = ""; $email = ""; $message = ""; $puh =""; if (filter_has_var(INPUT_POST, 'submit')){ $name = $_POST['name']; $email = $_POST['email']; $message = $_POST['message']; $puh = $_POST['puh']; if(!empty($email) && !empty($name) && !empty($message)){ ...
true
44ff47052fe1e05c28a4c5908b2d074e1c3f2c38
PHP
zeroisstart/uhkklp
/src/backend/modules/member/models/MemberLogs.php
UTF-8
3,403
2.8125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace backend\modules\member\models; use backend\components\PlainModel; use backend\utils\MongodbUtil; /** * Model class for memberLogs. * * The followings are the available columns in collection 'memberLogs': * @property MongoId $_id * @property MongoId $memberId * @property string $operati...
true
c1865b43f389bc10cdfe8aab14edb3e0bc29f3ca
PHP
unl/UNL_ENews
/tests/Tags/getTags.phpt
UTF-8
376
2.625
3
[]
no_license
--TEST-- Get list of all tags --FILE-- <?php require dirname(__FILE__) . '/../setup.inc.php'; $controller = new UNL_ENews_Controller(); $mysql = $controller::getDB(); $mysql->query('DELETE FROM tags'); $mysql->query('INSERT INTO tags VALUES (1,"fish")'); $tags = new UNL_ENews_Tags(); foreach ($tags as $tag) { echo $...
true
f02c090ec4f055382b3b3637cc7c05a62b49ca78
PHP
DavidCao626/server
/app/EofficeApp/Attachment/Services/FileConvert/WPSFileConvertObject/ConvertRequestBodyObject.php
UTF-8
2,011
2.65625
3
[]
no_license
<?php namespace App\EofficeApp\Attachment\Services\FileConvert\WPSFileConvertObject; class ConvertRequestBodyObject extends BaseObject { /** * @var string $srcUri 文件下载地址 */ private $srcUri; /** * @var string $fileName 文件名 */ private $fileName; /** * @var string $export...
true
3e57db1bb6ae813d45aa2a458dda095752e8e26a
PHP
taknado72/d
/lib/myFunction.php
UTF-8
3,290
2.984375
3
[]
no_license
<?php //функция отладки. $die =1 - остановка работы сайта по умолчанию function d($value = null, $die = 1) { echo '<br />'; echo 'Debug: <br /><pre>'; print_r($value); echo '</pre>'; if($die) die; } //функция function RandomString($p1) { $char = '0123456789abcdefghijklmnopqrstuvwxyz'; for ($i = 0; $i < $...
true
664fd8bf07342a79f2e2d39589bc3475815a78f3
PHP
bereznii/booking-api
/app/Http/Controllers/CardController.php
UTF-8
1,285
2.71875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Http\Validation\CardValidation; use App\Services\CardService; use App\Services\LogService; use Illuminate\Http\JsonResponse; use Illuminate\Http\Request; /** * Class CardController * @package App\Http\Controllers */ class CardController extends Controller { use Ca...
true
c2bc9d53701cb5bffbeeb7c9f1d98fc36e3c06aa
PHP
MikolajKaminski/special-calculations
/tests/DivisorsTest.php
UTF-8
642
2.875
3
[]
no_license
<?php require_once __DIR__ . '/../vendor/autoload.php'; // Autoload files using Composer autoload use PHPUnit\Framework\TestCase; use Calculations\Divisors; final class DivisorsTest extends TestCase { public function testCorrectDivisorsOutput(): void { $this->assertEquals( array(3, 5), Divisors::calcDivi...
true
af65884286deeb9a6f50ee2dce43bf539f78acd1
PHP
KumailP/cs305-phplogin
/login.php
UTF-8
2,418
2.8125
3
[]
no_license
<?php include("config.php"); session_start(); if($_SERVER["REQUEST_METHOD"] == "POST") { // username and password sent from form $myusername = mysqli_real_escape_string($db,$_POST['username']); $mypassword = mysqli_real_escape_string($db,$_POST['password']); $sql = "...
true
6daafcedd05e4f17a2d36757340cc5dccd2e4ab4
PHP
marosrojis/sp_web
/src/Autodoprava/AppBundle/Controller/AutoController.php
UTF-8
5,994
2.640625
3
[ "MIT" ]
permissive
<?php namespace Autodoprava\AppBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\File\UploadedFile; use Symfony\Component\HttpFoundation\Request; use Autodoprava\AppBundle\Model\CarsRepository; use Autodoprava\AppBundle\Model\FotoRepository; use Autodopr...
true
25edf242e28c030f7414691224c8d5b83142acd3
PHP
eliisevisk/pa
/17.10.2019/pi_calc.php
UTF-8
368
3.453125
3
[]
no_license
<?php //define max num of elements $maxCount=1000000000; //define count for loop $count=1; //define sum of elements $sum=0; while($count<=$maxCount){ $element=1/(2*$count-1); if($count%2!=0){ $sum= $sum+$element; } else{ $sum = $sum -$element; } $count++; } echo 'Arvutatud Pii =...
true
c55fd10721beb3b2ab70d33eede77dc764f134a9
PHP
xiayunzhu/laravel
/tisu_shop/app/Handlers/GoodsGroupItemHandler.php
UTF-8
3,034
2.546875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: JJG * Date: 2019/3/21 * Time: 19:10 */ namespace App\Handlers; use App\Exceptions\GoodsGroupItemException; use App\Models\GoodsGroupItem; use Illuminate\Http\Request; class GoodsGroupItemHandler { /** * @param Request $request * @return \Illuminate\Contrac...
true
b3005a891988f3e70bab5931faaf3acf23daa71d
PHP
Marine-g/todo
/hash_password.php
UTF-8
225
2.921875
3
[]
no_license
<?php /* * Contrôleur qui permet d'obtenir un mot de passe hashé (crypté) * * Paramètres : GET password: mot de passe à hasher * */ $password=$_GET["password"]; echo password_hash($password, PASSWORD_DEFAULT);
true
3a3eaf6aa46321be09b9951c164fa0b1015c5c00
PHP
chaddbailey/organice-master
/app/Http/Controllers/AdminAuth/AuthController.php
UTF-8
3,636
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\AdminAuth; use App\Admin; use App\ServiceType; use Illuminate\Http\Request; use Validator; use App\Http\Controllers\Controller; use Illuminate\Foundation\Auth\ThrottlesLogins; use Illuminate\Foundation\Auth\AuthenticatesAndRegistersUsers; class AuthController extends Controller {...
true
8fc4f4ad0683533838d8214f4d52380ea68923cf
PHP
LoraMS/TechModule
/ArraysAdvancedExercise/softuni-course-planing.php
UTF-8
2,625
2.921875
3
[ "MIT" ]
permissive
<?php $schedule = explode(', ', readline()); while (true) { $input = readline(); if ($input === 'course start') { break; } $line = explode(':', $input); $command = $line[0]; $title = $line[1]; if ($command === 'Add') { if (!in_array($title, $schedule)) { $sched...
true
4883f9bbf53828515416468ccd987476a43fe167
PHP
DmitryZharkov/Offices-PHP
/addoffice.php
UTF-8
1,580
2.875
3
[]
no_license
<?php $oname = $_POST["name"]; $oaddr = $_POST["addr"]; $orfio = $_POST["rfio"]; $randstring=RandomString(); //The URL you want to send a cURL proxy request to. $url = "https://avatars.dicebear.com/v2/jdenticon/{$randstring}.svg"; //The IP address of the proxy you want to send //your request through. $proxyIP = '...
true
6ed27b12b8613ff8db07e49655409b6638742687
PHP
bhaviniih/test-pro
/app/Commands/Admin/InquiryFormStoreCommand.php
UTF-8
945
2.765625
3
[]
no_license
<?php namespace App\Commands\Admin; use Illuminate\Console\Command; use App\Http\DB\InquiryForm; class InquiryFormStoreCommand extends Command { public $data; public $request; public $operation = 'new'; /** * @param $data * @param string $operation */ public function __construct(...
true
800bc8f0953f7d221afdfedb40018a83987aa60c
PHP
Taghreed-Hassan/php3
/tas3k.php
UTF-8
760
2.765625
3
[]
no_license
<!DOCTYPE html> <!-- 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. --> <html> <head> <meta charset="UTF-8"> <title></title> </head> <body> <?php $country=...
true
1c6688c53668c1c276a0c600eb9ff9d18ef0f71f
PHP
DivyaBirla19/CS6360
/Contact List Application/src/project1/db.php
UTF-8
430
2.953125
3
[]
no_license
<?php function createconnection() { $dbhost = "localhost"; //localhost for local database $dbuser = "root"; //User name $dbpass = ""; //password $dbname = "contactbook"; // Database name // Create connection $con = new mysqli($dbhost, $dbuser, $dbpass, $dbname) ; ...
true
77d5e9008391a42941b3a75c3e7b43871b948028
PHP
xboston/phalcon-code
/codes/1.1.0/reference/db/db-356.php
UTF-8
741
2.75
3
[]
no_license
<?php use \Phalcon\Db\Profiler as Profiler; use \Phalcon\Db\Profiler\Item as Item; class DbProfiler extends Profiler { /** * Executed before the SQL statement will sent to the db server */ public function beforeStartProfile(Item $profile) { echo $profile->getSQLStatement(); } /...
true
b9b6358bcb1598ea3a9a52f022d1d2dbb090cffa
PHP
wlegate/support
/tests/Helpers/ArrTest.php
UTF-8
3,371
2.765625
3
[ "MIT" ]
permissive
<?php namespace Tests\Helpers; use Helldar\Support\Facades\Arr; use Tests\TestCase; class ArrTest extends TestCase { public function testAddUnique() { $array = ['foo']; $values1 = ['foo', 'bar', 'baz']; $values2 = 'foobar'; $expected = ['foo', 'bar', 'baz', 'foobar']; ...
true
5d895cf8b13a9cd0b4b36336c282f749ebbffab1
PHP
joaorca/wow_raidleader
/models/dao/Dao.class.php
UTF-8
495
2.59375
3
[]
no_license
<?php class Dao { protected $db; public function __construct () { //$this->db = &$GLOBALS["pdo"]; $this->db = DatabaseConnection::get()->handle(); } //public function getList( $orderBy=NULL ){} public function save ( $object ) { $exists = $this->findById( $object->getId() );...
true
df4775ac29e6504a51e7ebaed8fa86d75284bd97
PHP
TomQDRS/AdvancedWebDevelopment_Semesterprojekt
/php/control/posttag.php
UTF-8
2,257
3.046875
3
[]
no_license
<?php if(isset($_POST) & !empty($_POST)) { $servername = "localhost"; $username = "php_projekt"; $password = "php_projekt"; $dbname = "awd_projekt"; //CONTROL VARIABLES - may be modified $success = TRUE; global $errorMessage; //Begin connection to database $conn = new mysqli($ser...
true