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
bfab818411c5d36e325469e7429517e1acaaa079
PHP
buzzlock/buzzDev
/module/mfox/include/service/album.class.php
UTF-8
47,512
2.640625
3
[]
no_license
<?php /** * @package mfox * @version 3.01 */ defined('PHPFOX') or exit('NO DICE!'); /** * @author ductc@younetco.com * @package mfox * @subpackage mfox.service * @version 3.01 * @since May 24, 2013 * @link Mfox Api v2.0 */ class Mfox_Service_Album extends Phpfox_Service { /** * Use to set the size...
true
99572c95ecd787b478a79ef89224c5a6b689f7c0
PHP
NetCommons3/CleanUp
/Config/Migration/1616031325_modify_clean_up_records.php
UTF-8
2,358
2.609375
3
[]
no_license
<?php /** * clean up records migration * * @author AllCreator <info@allcreator.net> * @link http://www.netcommons.org NetCommons Project * @license http://www.netcommons.org/license.txt NetCommons License * @copyright Copyright 2014, NetCommons Project */ App::uses('NetCommonsMigration', 'NetCommons.Config/Migr...
true
964445d0326b1325154ebfec8c33992453e78edd
PHP
JaimeAraujo18/forms-php
/exibicao.php
UTF-8
2,736
2.625
3
[]
no_license
<html> <head> <title>Cadastro Completo</title> <meta charset="UTF-8" /> <meta name="author" content="Jaime" /> <meta name="description" content="Cadastro de funcionário" /> <meta name="keywords" content="cadastro" /> <link rel="stylesheet" href="./css/styles.css" > </head> <body> <? php /* Criar 1 ...
true
83e105d0c67bca024d9228e648643dfce3426e7f
PHP
qqq2623/laravel58
/routes/console.php
UTF-8
769
2.6875
3
[ "MIT" ]
permissive
<?php use Illuminate\Foundation\Inspiring; /* |-------------------------------------------------------------------------- | Console Routes |-------------------------------------------------------------------------- | | This file is where you may define all of your Closure based console | commands. Each Closure is bou...
true
f6e2fdb13fcb5aca001cf1bfda1e108fbcf4fe25
PHP
rizafr/monografi_simkel
/etc/libs/share/Portalconf.php
UTF-8
8,031
2.53125
3
[]
no_license
<?php date_default_timezone_set('Asia/Jakarta'); $path_image_berita="./data/images_berita/"; $foto_default="blank_image.gif"; $path_data_produkhukum="./data/cms/produkhukum/"; function returnBulan($value) { list($tahun,$bulan,$tgl)=split("-",$value); switch($bulan) { case "1": $bulannya="J...
true
feecd66ea14a555d24ecda912428d370be4ee7ae
PHP
devinoue/ocrusion-next
/server/app/Domain/Entities/UserLevel.php
UTF-8
4,657
2.859375
3
[ "MIT" ]
permissive
<?php namespace App\Domain\Entities; use App\Domain\ValueObject\UserId; use App\Domain\ValueObject\UserLevel\Bonus; use App\Domain\ValueObject\UserLevel\Level; use App\Domain\ValueObject\UserLevel\Times; final class UserLevel { private $userId; private $times; private $level; private $remainingTime; ...
true
7dad05d7244c466523019fda6093b061a5a546f7
PHP
h0wn0w/Neuro
/core/classes/helper.php
UTF-8
814
3.234375
3
[]
no_license
<?php class Helper { /* * This method can be passed an HTTP GET/POST variable and it will * escape it so it's safe to be used and saved. */ static function FilterHTTPParameter($value) { return @eregi_replace('[^0-9A-Za-z]', '', $value); } /* * Returns only digits from a string */ static ...
true
a3421ad8161c5a2a5b378e843728f89fec05e708
PHP
sassanb/WebProgramming
/saveNote.php
UTF-8
933
2.59375
3
[]
no_license
<!DOCTYPE html> <html> <head> <style> table { width: 100%; border-collapse: collapse; } table, td, th { border: 1px solid black; padding: 5px; } th {text-align: left;} </style> </head> <body> <?php session_start(); $dbhost = "localhost"; $dbname = "174Final"; $dbuser = "sb"; $dbpass = "qwert...
true
a03273063338987c167828c7545ae4f136ba96bc
PHP
angelxmoreno/CakePHP-Seo-Bakery
/src/Shared/InstanceUses.php
UTF-8
470
2.84375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace SeoBakery\Shared; class InstanceUses { /** * Checks if an object uses a trait * * @param object $instance the instance to check * @param string $trait the trait to check against $instance * @return bool returns true if $instance uses $trait *...
true
f04067171e36e1d92fe0f4cf15b9df9b03824c71
PHP
printedcom/rabbitmq-queue-bundle
/src/Printed/Bundle/Queue/Exception/CouldNotFindAllRequestedQueueTasksException.php
UTF-8
596
2.65625
3
[ "MIT" ]
permissive
<?php namespace Printed\Bundle\Queue\Exception; /** * Thrown, when queue task repository couldn't find all requested tasks in * the database. */ class CouldNotFindAllRequestedQueueTasksException extends \RuntimeException { /** @var string[] */ private $missingTaskIds; public function __construct(strin...
true
b58a96f7620e2a5ad6c99c887f2cb0d71c3f9e34
PHP
rodrigoio/testbucket
/tests/UnitTests/Core/Specification/LoaderTest.php
UTF-8
2,750
2.59375
3
[ "MIT" ]
permissive
<?php namespace TestBucket\Tests\UnitTests\Core\Specification; use TestBucket\Core\DataQualifier\Factory as DataQualifierFactory; use TestBucket\Core\Specification\Contracts\Group; use TestBucket\Core\Specification\Domain\Factory as SpecificationFactory; use TestBucket\Core\IO\FileReader; use TestBucket\Core\Specific...
true
9925e552c6b4ce89a4b5cd67846565081a9aac31
PHP
1226151667/pay
/src/Pay.php
UTF-8
952
2.9375
3
[]
no_license
<?php namespace Pay; class Pay { private const CLASS_MAP = [ 'weixin' => 'Pay\Wechat', 'alipay' => 'Pay\Alipay', ]; private static $client = null; private static $type; private static $config; public static function getInstance($type, $config) { self::$type = $type;...
true
4c79e431af81d7b1ba6c3be8a1ceacfad1e69ae1
PHP
homebrewing-storage/homebrewing-storage
/app/Services/Auth/LoginService.php
UTF-8
650
2.8125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace App\Services\Auth; use App\Events\Auth\LoginAuthEvent; use App\Exceptions\Auth\UnauthorizedException; use App\Models\User; class LoginService extends BaseAuthService { /** * @throws UnauthorizedException */ public function login(array $formCredentials): str...
true
0d06580cb452f9df58af0c5c3f27c6b3e09047bb
PHP
m-mitchell/store
/Store/dataobjects/StoreItemGroup.php
UTF-8
3,005
2.75
3
[]
no_license
<?php require_once 'SwatDB/SwatDBDataObject.php'; /** * Dataobject to group {@link StoreItem} objects within a {@link StoreProduct} * * @package Store * @copyright 2006-2016 silverorange * @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1 */ class StoreItemGroup extends SwatDBDataObject { /...
true
8c8fd7c9c03c60ee9b157f18a6da8d8a4c5fb46c
PHP
SylarK/PHP_
/Full Stack - Danki Code/3. PHP Orientado_a_Objetos/aula_02/index.php
UTF-8
617
3.375
3
[]
no_license
<?php include('exemplo.php'); $exemplo = new Exemplo; $exemplo2 = new Exemplo; // $exemplo->var1 = 'Hello'; $exemplo->var2 = 'Hello, World!'; $exemplo2->var2 = 2020; // echo $exemplo->metodo2(); /* echo $exemplo->var2; echo '<br>'; echo $exemplo2->var2; echo '<br...
true
c1e35078d5ae21e1314610da7c4de1490311a229
PHP
lanlandepangzi/fabricweb
/app/controllers/ManufactureDeliveryPackagesController.php
UTF-8
2,442
2.703125
3
[ "MIT" ]
permissive
<?php class ManufactureDeliveryPackagesController extends \BaseController { /** * Display a listing of manufacturedeliverypackages * * @return Response */ public function index() { $manufacturedeliverypackages = Manufacturedeliverypackage::all(); return View::make('manufacturedeliverypackages.index', ...
true
aa68c4193597825ee2a0766d0c9cbe67b97de4f8
PHP
iqbalmalik89/carpool
/database/migrations/2015_11_11_113812_create_system_users_table.php
UTF-8
914
2.640625
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateSystemUsersTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('system_users', function (Blueprint $table) { ...
true
77e17c24f01c50e6b43932ded2fec95701ca8a22
PHP
xzela/lang-antiques-src
/mango/system/application/controllers/material.php
UTF-8
5,962
2.546875
3
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
<?php class Material extends Controller { var $ci; function __constuct() { parent::Controller(); $this->ci =& get_instance(); } function material_add() { $this->load->library('authorize'); $this->load->library('form_validation'); $this->load->model('inventory/material_model'); $...
true
2f7df48ab5847cedd4b5650ed2ccd5538707a5c6
PHP
younessadmi/mongoProject
/script/functions.php
UTF-8
800
2.75
3
[]
no_license
<?php function getNumberOfTweets(){ $filter = []; $mongo = new MongoDB\Driver\Manager(DB_CONNECTION); $query = new MongoDB\Driver\Query($filter); $rows = $mongo->executeQuery(DB_NAME.'.tweets', $query); $nbTweets = 0; foreach($rows as $row){ $nbTweets++; } return $nbTweets.' ...
true
f2d5ab782a73212388934126fd838091fc00338f
PHP
MystixCode/post_only_api
/services/character.php
UTF-8
3,748
2.96875
3
[]
no_license
<?php ################################################################################ # Character service # ################################################################################ class Character { private $pdo; function __construct() { ...
true
27225da2627919618f4c4a143db818adbbce9646
PHP
Guanyu2131/EECS448
/lab5/e5/ViewUsers.php
UTF-8
1,265
3.015625
3
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>User</title> </head> <body> <h1> Exercise 5</h1> <h2> Display username </h2> <?php $servername = "mysql.eecs.ku.edu"; $username = "g358l675"; $password = "daey7jei"; $mysqli = new mysqli($servername, $usernam...
true
b6895a02230a8bb7a94ca1e60db297612307761f
PHP
iirivero/APP-Facturacion
/TFG_Rest/model/Factura.php
UTF-8
1,717
2.859375
3
[]
no_license
<?php require_once(__DIR__."/../core/ValidationException.php"); // Modelo de la entidad factura de la BD class Factura_Model implements JsonSerializable{ private $id; private $id_cliente; private $fecha_factura; private $pagado; private $fecha_pagado; private $generado; // Constructor de factura public functi...
true
42c4263525f775f71299d74fb05f8bb964bbb9bf
PHP
rezasaleki/design-pattren-solid
/app/Template/Ebook.php
UTF-8
174
2.609375
3
[]
no_license
<?php namespace App\Template; class Ebook extends Book { public function generateName($name) { echo "A PDF Was Generated for The eBook \"$name\"."; } }
true
4af3d8706d769d368113ef02dfb02da014f1455c
PHP
wei90473/237
/app/Repositories/UsersRepository.php
UTF-8
1,360
2.75
3
[]
no_license
<?php namespace App\Repositories; use App\Models\Users; use App\Models\M22tb; use DB; class UsersRepository { /** * 取得列表 * * @param array $queryData 關鍵字 * @return mixed */ public function getUsersList($queryData = []) { $query = M22tb::select('userid', 'lname', 'fname', '...
true
13351cef486c429b0c385ab753ec5d02d452e6cb
PHP
helsingborg-stad/familjenhelsingborg
/library/Theme/Color.php
UTF-8
1,332
2.734375
3
[]
no_license
<?php namespace FamiljenHbg\Theme; class Color { public function __construct() { add_filter('body_class', array($this, 'addBodyClass'), 10, 1); } /** * Add child theme class * @return string */ public function addBodyClass($classes) { //Get color scheme ...
true
66631ffb0a10e389409b82ba1e456d87aa12f9a9
PHP
bellchen/wifi
/common/StringHelper.php
UTF-8
1,100
3.375
3
[]
no_license
<?php class StringHelper { public static function generateString($length = 64) { $chars = array (); for($i = 0; $i <= 9; $i ++) { $chars [$i] = chr ( $i + 48 ); } for($i = 10; $i <= 36; $i ++) { $chars [$i] = chr ( $i + 55 ); } for($i = 36; $i <= 61; $i ++) { $chars [$i] = chr ( $i + 61 ); } $...
true
0770beb4267fa508fab1ab32e6a9985f8c9cd792
PHP
GotFly/yii2ad-clear-di
/common/components/ResponseBeforeSendEvent.php
UTF-8
976
2.65625
3
[]
permissive
<?php namespace common\components; use Yii; use yii\base\Event; use yii\web\NotFoundHttpException; /** * Class ResponseBeforeSendEvent * * @package api\components */ class ResponseBeforeSendEvent { /** * Response before send * * @param Event $event */ static public function run(Event ...
true
43189e602054842759c0f3d14db71a3e26f85aea
PHP
Yven/CloudStore
/App/Model/Cart.php
UTF-8
2,969
2.640625
3
[]
no_license
<?php namespace App\Model; class Cart extends \Core\Model { /** * get cart product info * * @param int $uid * @return array */ public function info($uid) { $query = $this->from()->where(['uid' => $uid, 'is_delete' => 0]); $num = $query->count(); $carts = $q...
true
fb2200b2c4d0a0e7dc30b2ad982b43f011244949
PHP
hieutq/climber
/admin/eng_news.php
UTF-8
6,624
2.640625
3
[]
no_license
<?PHP // ******************************************************************* // ENGLISH管理画面お知らせ編集 PHP Encording UTF-8 // ******************************************************************* $show = $_GET[ "status" ]; if($show == NULL){ $show = 0; } $dsp = $_GET[ "dsp" ]; // フラグチェック if( $_SESSION[ "JILM_ADMIN_ED...
true
e7807b03333da3f55ea0cbb530f915103b2ad4af
PHP
Chris-Bitler/OpenEventManager
/src/Controller/UserController.php
UTF-8
948
2.640625
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: Chris * Date: 2/20/2018 * Time: 10:32 AM */ namespace App\Controller; use App\Service\SessionService; use App\Controller\GlobalController; /** * Parent controller for any controller that needs logged in user information * @author Christopher Bitler */ class UserContr...
true
345f6d30d96110ca008476d370fddad45497845a
PHP
olibenni/pandalovers
/lokaverkefni/pandakapall/svenni/playGame2.php
UTF-8
620
2.734375
3
[]
no_license
<?php require("CardDeck.php"); require("Game.php"); require("newGame.php"); session_start(); // $_SESSION["playGame"] = null; // session_unset($_SESSION["playGame"]); // session_unset(); if (isset($_SESSION["playGame"])) { echo "SESSION SETT"; // $game = serialize($_SESSION["playGame"]); $game = unserialize($_SESS...
true
a9ee9c63ad0d819a7e03c5b9a08754c9fb8b8349
PHP
markusju/intranet-inet-tech-2016
/classes/view/PersoenlicheStatusseiteView.php
UTF-8
985
2.59375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: markus * Date: 26.12.15 * Time: 22:09 */ namespace view; use models\User; use view\architecture\View; class PersoenlicheStatusseiteView extends View { /** * @var User */ private $user; /** * @var RecentlyChangedFilesView */ private $...
true
99170335c76ba5c7cb7d6729aaf956230406e646
PHP
feedbackanjwebtech/testpms
/application/hooks/General.php
UTF-8
363
2.5625
3
[]
no_license
<?php if(!defined('BASEPATH')) exit('No direct script access allowed'); class General extends CI_Controller { function checkLogin($loginStatus) { $this->CI =& get_instance(); $this->CI->load->library("session"); if($loginStatus) { echo "Logged-in"; } else { ...
true
0a7b3f093ef5d8a0346fe0c7a9f71917ce2833ab
PHP
jovana-toskovic/oop_vezbanje
/LateStaticBinding/ClassA.php
UTF-8
195
2.859375
3
[]
no_license
<?php namespace LateStaticBinding; class ClassA { public static function foo() { echo static::who(); } public static function who() { return 'A'; } }
true
3a1fbdf4b7f2a02677e2174bf9044f829ae0a167
PHP
grupotesseract/seus-direitos-webapi
/app/Models/Instituicao.php
UTF-8
1,342
2.78125
3
[]
no_license
<?php namespace App\Models; use Eloquent as Model; use Illuminate\Database\Eloquent\SoftDeletes; /** * Class Instituicao. * @version September 9, 2018, 7:00 pm BRT * * @property string nome * @property string nomecompleto */ class Instituicao extends Model { use SoftDeletes; public $table = 'instituic...
true
a3e4eaad6350e62e09bb762c5f41122d7a132f0f
PHP
jaroslavsiroic/lsf
/connection.php
UTF-8
800
2.65625
3
[]
no_license
<?php class Db { private static $instance = NULL; private function __construct() {} private function __clone() {} public static function getInstance() { if (!isset(self::$instance)) { $pdo_options[PDO::ATTR_ERRMODE] = PDO::ERRMODE_EXCEPTION; self::$instance = new PDO('mysql:ho...
true
29b820755832964d2f9c3cb8a59fecc6f4cbaada
PHP
gilsonmello/aprendanaweb
/app/Repositories/Backend/Video/VideoContract.php
UTF-8
1,082
2.59375
3
[]
no_license
<?php namespace App\Repositories\Backend\Video; /** * Interface UserContract * @package App\Repositories\Video */ interface VideoContract { /** * @param $id * @return mixed */ public function findOrThrowException($id); /** * @param $per_page * @param string $order_by * @p...
true
fdf521c99db46653f13610a0915da0cdf9a607e8
PHP
snikolaidis/pokerface
/app/Card.php
UTF-8
1,068
3.171875
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Card extends Model { protected $rank; protected $color; public static $rankValues = [ "2" => 1, "3" => 2, "4" => 3, "5" => 4, "6" => 5, "7" => 6, "8" => 7, "9" => 8, ...
true
70305da84c80748c223b015ab447e7fba6438443
PHP
karlhungus/askeet_php_is_fine
/apps/frontend/lib/myUser.class.php
UTF-8
889
2.53125
3
[]
no_license
<?php class myUser extends sfBasicSecurityUser { public function signIn($user) { $this->setAttribute('subscriber_id', $user->getId(), 'subscriber'); $this->setAuthenticated(true); $this->addCredential('subscriber'); $this->setAttribute('nickname', $user->getNickname(), 'subscriber'); } public f...
true
923a48b86d3fd08edc3862bf717faa264a143204
PHP
argomaintainer/phpbbs
/ajax/ajax-ann.php
UTF-8
11,113
2.5625
3
[]
no_license
<?php require_once("common/functions.php"); /* * 精华区: * 精华区基本按照了0Announce的目录来组织 * 每个目录下有.DIR,存放annhead,包含当前目录下各个子目录的属性 * 如果type是ann,那么这个是一个目录, * 如果type是anc,那么是一个文件 * - boards/$boardname/(.*) 是某个版面下的精华区 * - @GROUP:$seccode * 是某个讨论区下所有版面的精华区 * (其实就是组织boards/$boardname 那些属于这个$seccode的版面来,其实很少用到) * ...
true
ef6629c7df90cd94c307e3a43d3c6d5c8a215705
PHP
kraken-php/console
/src/Server/Server.php
UTF-8
663
2.6875
3
[ "MIT" ]
permissive
<?php namespace Kraken\Console\Server; use Kraken\Core\CoreInterface; use Kraken\Runtime\RuntimeContainer; class Server extends RuntimeContainer implements ServerInterface { /** * @override * @inheritDoc */ protected function config(CoreInterface $core) { return []; } /** ...
true
9550da94d2917809b631cd1c1aa6a24dad5a9c52
PHP
lukaszproszowski/php-recruitment-test
/src/Helper/WebsitesAndPages.php
UTF-8
1,162
3
3
[]
no_license
<?php namespace Snowdog\DevTest\Helper; /** * Class WebsitesAndPages * @package Snowdog\DevTest\Helper */ class WebsitesAndPages { /** * @param $websites * @param $user * @param $websiteManager * @param $pageManager * @return array */ public static function add($websites, $use...
true
b0625a2cf8814aa619c6f91924678596011c3997
PHP
the-auk/agenda-php
/src/controllers/PutAgendaController.php
UTF-8
825
2.671875
3
[]
no_license
<?php namespace ClassHaters\hw3\src\controllers; require_once(__DIR__ . "/Controller.php"); use ClassHaters\hw3\src\views as views; use ClassHaters\hw3\src\models as models; class PutAgenda extends Controller{ function run(){ $categoryid = $_GET['arg1']; $title = $_GET['arg3']; $date = $_...
true
ff2261676ad521aac47493081fcc2763a451e80d
PHP
123Lookatme/test
/DataBase.php
UTF-8
2,301
2.90625
3
[]
no_license
<?php class DataBase { private $DB_connect; private static $instance; private function __construct() { $this->DB_connect= mysql_connect(DB_HOST,DB_USER,DB_PASSWORD); mysql_select_db(DB_NAME, $this->DB_connect); } private function __clone(){} //Singleton public static ...
true
c6e4def1a0cb973b6dedade8521224cd30aded7a
PHP
faithcomesbyhearing/dbp
/app/Transformers/AlphabetTransformer.php
UTF-8
3,963
2.75
3
[ "MIT" ]
permissive
<?php namespace App\Transformers; use App\Models\Language\Alphabet; class AlphabetTransformer extends BaseTransformer { /** * A Fractal transformer. * * @param Alphabet $alphabet * @return array */ public function transform(Alphabet $alphabet) { switch ($this->version) {...
true
3bdf46dd1d5ac35291984eaa443a8f3cdb812ae5
PHP
MehTheHedgehog/tm.php.przesylpaczek
/include/user.php
UTF-8
2,435
2.65625
3
[ "MIT" ]
permissive
<?php if (isset($_SESSION["zalogowany"])) { if(!isset($_GET['user'])) $_GET['user'] = 'panel'; switch ($_GET['user']) { case 'panel': echo( '<li><a href="index.php?opcje=paczka">Paczki</a></li> <li><a href="index.php?opcje=user&user=mail">Powiadom Administrato...
true
bb8f7ef5e708975d27a19caf2509f5fb237a6ba8
PHP
ChristianGaertner/DaContainer
/src/DaGardner/DaContainer/InjectorDetection/DetectorInterface.php
UTF-8
589
2.671875
3
[ "MIT" ]
permissive
<?php namespace DaGardner\DaContainer\InjectorDetection; /* * (c) Christian Gärtner <christiangaertner.film@googlemail.com> * This file is part of the DaContainer package * License: View distributed LICENSE file */ use ReflectionMethod; /** * An interfaces for classes which can detect dependency injector methods...
true
2b199274651388e3edea3e0823f81d7149ddcc61
PHP
43TH3R/ioc-server
/api/controllers/AbstractController.php
UTF-8
1,452
3.03125
3
[]
no_license
<?php /* Privately accessible API base */ if (!defined('ROOT')) define('ROOT', '..'); include_once ROOT.'/models/DBConnect.php'; abstract class AbstractController { protected $params; protected $db; public function __construct($params) { $this->params = $params; $this->db = new DBConnect(...
true
94c906a444e7b8fa239a37e323bc206e3fd5a759
PHP
liuyunchuan/test
/application/admin/controller/User.php
UTF-8
48,873
2.53125
3
[ "Apache-2.0" ]
permissive
<?php namespace app\index\controller; class User extends Base { public function index() { return $this->fetch(); } /*访客管理·显示所有访客信息*/ public function visitor() { // 获取数据 // 排除员工信息,type值为0时,所选择的数据类型为访客 $map['type'] = 0; // status值为-1时,表示该条数据为已经删除,现在已经没有了...
true
30f323229d53a87d36308b58309a4c7e096613f1
PHP
JAndreuSoler/Projecte
/app/Model/Paypal.php
UTF-8
664
2.75
3
[]
no_license
<?php class Paypal extends Model { private $idPerfil; private $email; public function __construct($idPerfil, $email) { $this->idPerfil = $idPerfil; $this->email = $email; } public function getEmail() { return $this->email; } public function getIdPerfil() { ...
true
648ccbdc47eac1f56ae9c815d34733c4bfb4bb8b
PHP
154053R/EPDP
/app/User.php
UTF-8
1,505
2.578125
3
[ "MIT" ]
permissive
<?php namespace App; use App\Notifications\resetPassword; use Illuminate\Notifications\Notifiable; use Illuminate\Foundation\Auth\User as Authenticatable; use TCG\Voyager\Facades\Voyager; use TCG\Voyager\Models\Role; class User extends \TCG\Voyager\Models\User { use Notifiable; /** * The attributes tha...
true
2bf021efa347004e5f554b61b21a90a76bc129ca
PHP
jasongrimes/rpg-bb
/server/src/Playground/PlaygroundMapper.php
UTF-8
6,871
3.015625
3
[]
no_license
<?php namespace Playground; use Doctrine\DBAL\Connection; /** * Data mapper for Playground instances. */ class PlaygroundMapper { /** @var Connection */ protected $conn; /** * Constructor. * * @param \Doctrine\DBAL\Connection $conn */ public function __construct(Connection $con...
true
bd09e9b831b1ed01e979ea453897c530f9b6645f
PHP
php-bootcamp/odev5-ademkoyan
/index.php
UTF-8
2,209
2.59375
3
[]
no_license
<?php require "database.php"; if (isset($pdo)) { $sorgular= $pdo->query("SELECT urunler.*, kategori.kategori_name FROM urunler, kategori WHERE urunler.urun_id = kategori.urun_id", PDO::FETCH_OBJ); $count = $sorgular->rowCount(); } ?> <!doctype html> <html lang="en"> <head> <meta ch...
true
2d8e1b31b4e35a70c270b5e3c29839779ee874d2
PHP
efilippov91/Mighty_Exchanger
/src/Exchanger/Handlers/CommandHandler.php
UTF-8
2,914
2.75
3
[]
no_license
<?php namespace Exchanger\Handlers; use Exchanger\Keyboards\MainKeyboard; use Exchanger\Keyboards\PopCurrKeyboard; use Component\Dict\RU\Dictionary; use Exchanger\Rates\Loader\PageDownloader; use Exchanger\Rates\Loader\PageCacheProxy; use Exchanger\Rates\Parser\RateParser; use TelegramBot\Api\Client; use Exchanger\Rat...
true
38cccf46a3e709f34696861090e8d6a5cbee9734
PHP
fracz/refactor-extractor
/results/monolog/3fa6e4b91f8ce5dfdbad3560e716fb11f8c62fe1/before/SimpleFormatterTest.php
UTF-8
1,085
2.59375
3
[]
no_license
<?php /* * This file is part of the Monolog package. * * (c) Jordi Boggiano <j.boggiano@seld.be> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Monolog\Formatter; use Monolog\Logger; class SimpleFormatterTest extends...
true
4d0e8464b6641b8cc9f11a1f2f61d296549a837e
PHP
technosophos/Lumberjack
/src/includes/DumpMongoCollection.php
UTF-8
830
2.734375
3
[]
no_license
<?php /** @file * * DumpMongoCollection is a BaseFortissimoCommand class. * * Created by Matt Butcher on 2011-06-01. */ /** * A Fortissimo command. * * @author Matt Butcher */ class DumpMongoCollection extends BaseFortissimoCommand { public function expects() { return $this ->description('Dump th...
true
fb89ae23f3587ab20fc9cb2d75e86a35cc06848e
PHP
krajewskis/finance
/ws/Controller/TestController.php
UTF-8
1,378
2.609375
3
[]
no_license
<?php /** * Created by JetBrains PhpStorm. * User: krajewski * Date: 29.8.13 * Time: 10:21 * To change this template use File | Settings | File Templates. */ namespace Controller; use DTO\TestDTO; use Framework\JSON; /** * @Controller * @RequestMapping("/test") */ class TestController { /** * @RequestMapp...
true
15348b542975f856e893c1bee9baad09bbc7034e
PHP
SimonPhoenix1985/DimaPhalcon
/DimaPhalcon/app/models/ConsolidateOrders.php
UTF-8
1,750
2.75
3
[]
no_license
<?php class ConsolidateOrders extends \Phalcon\Mvc\Model { /** * * @var integer */ protected $id; /** * * @var integer */ protected $order_id; /** * * @var integer */ protected $cons_order_id; /** * Method to set the value of field id ...
true
2f793952bf1710af389a421f52e6a4909766a3d7
PHP
KryptaGier/OpenPBF
/system/libraries/patTemplate/examples/example_realworld_table_from_list.php
UTF-8
846
2.984375
3
[]
no_license
<?PHP /** * patTemplate example that creates a table from a * two dimensional array * * $Id: example_realworld_table_from_list.php 226 2004-06-01 21:10:36Z schst $ * * @author Stephan Schmidt <schst@php-tools.net> * @package patTemplate * @subpackage Examples * @link http://www.php-tools.net */ error_re...
true
1cf2f9c0098db33af3c79c874a272be9655ed530
PHP
menghaosha/opencart_test
/admin/model/catalog/commission.php
UTF-8
1,362
2.671875
3
[]
no_license
<?php /** * @author HU */ class ModelCatalogCommission extends Model { /** * 取得当前有效的产品佣金信息 */ public function getVaildCommission($product_id) { $commission_info = $this->db->query("SELECT * FROM " . DB_PREFIX . "product_commission WHERE product_id = '" . (int)$product_id . "' AND salesman_id = '0' AND end_...
true
93850089eb96ea2ac3af691333502a4b3c2db2ac
PHP
SaratogaLibrary/sspl-omeka-bootstrap
/libraries/Twitter/Partial/NavigationMenu.php
UTF-8
8,926
2.65625
3
[ "MIT" ]
permissive
<?php /** * Helper to render a menu for bootsrap. * * @note Bootstrap 3 doesn't support more that one level of sub-menus. * * Adapted from Zend_View_Helper_Navigation_Menu::_renderMenu() * * Differences: * - add a span with icon for dropdown. * - add a class for ul ul, * - set custom html attribs to page * ...
true
47a72be6b7c64040d9dd56eac64a628119cfaf10
PHP
pricecurrent/php-developer-test
/app/Person/InteractsWithRelatives.php
UTF-8
1,308
2.625
3
[]
no_license
<?php namespace App\Person; use App\Family; use App\Person; trait InteractsWithRelatives { public function family() { return $this->belongsTo(Family::class); } public function father() { return $this->belongsTo(Person::class, 'father_id'); } public function mother() ...
true
17920bcc85ab6c73191fc0b05ef1fc80a0c7f593
PHP
atushi-koga/design-pattern
/tests/Bridge/DisplayTest.php
UTF-8
1,182
2.65625
3
[]
no_license
<?php declare(strict_types=1); namespace Test\Bridge; use App\Bridge\Display\CountDisplay; use App\Bridge\Display\Display; use App\Bridge\Display\FileDisplayImpl; use App\Bridge\Display\StringDisplayImpl; use PHPUnit\Framework\TestCase; class DisplayTest extends TestCase { public function testStringDisplay() ...
true
71674c2c3cb233fd38e6ff368b2ea13463955f0e
PHP
renzsanchez69/Crapi_admin
/application/modules/api_v1/controllers/Customers.php
UTF-8
4,695
2.578125
3
[ "MIT" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Customers extends API_Controller { public function __construct() { parent::__construct(); $this->load->model('Customer_model', 'customer'); } public function index() { // API Doc page only accessible during development env if (E...
true
385143519a442f35b5b36eebf64b29c3f6e49b02
PHP
thesoftwarefanatics/php-html-parser
/src/PHPHtmlParser/Dom/ArrayNode.php
UTF-8
776
3.3125
3
[ "MIT" ]
permissive
<?php namespace PHPHtmlParser\Dom; use Countable; use ArrayIterator; use IteratorAggregate; /** * Dom node object which will allow users to use it as * an array. */ abstract class ArrayNode extends AbstractNode implements IteratorAggregate, Countable { /** * Gets the iterator * * @return ArrayI...
true
137a4cfee0b311075efc0c702eafa914ccfbb678
PHP
zhangrenjie/php_design_mode
/9.适配器模式/DB.php
UTF-8
234
2.78125
3
[]
no_license
<?php namespace shipeiqi; //定义接口 interface DB { //连接操作 public function connect($host, $userName, $password, $dbName); //请求 public function query($sql); //关闭 public function close(); }
true
f08c54613210920c8771f41c9a3d33dc09053be5
PHP
Letargie/pggi
/tools/doc/GWindow.doc.php
UTF-8
2,989
2.640625
3
[]
permissive
<?php include_once("../Gasped/DocArray.class.php"); $GWindowDoc = new ClassDocArray(); $GWindowDoc->setHeader(array()) ->addMethod("__construct" , array("create a new GWindow link to an application", '@param $app GApplication the application to link the window', '@param $title string the ...
true
4084cb61cc250f769e932204ee4b279bcdc946dc
PHP
abhayjatindoshi/spendings-server
/src/internals/response/JsonResponse.php
UTF-8
449
2.578125
3
[]
no_license
<?php namespace encryptorcode\response; use encryptorcode\server\response\Response as Response; class JsonResponse extends Response{ public function __construct($data, int $status = 200){ if(isset($data)){ $data = json_encode($data); } parent::__construct($data,$status); ...
true
2281e38ab119698044fa4831f6fd8e0552a8f3ab
PHP
JuanDavidCastellomRodriguez/cmd
/app/Http/Controllers/ExportExcelController.php
UTF-8
4,921
2.578125
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Maatwebsite\Excel\Facades\Excel; class ExportExcelController extends Controller { public function ExportExcel() { $excel = new \PHPExcel(); $excel->createSheet(); $excel->setActiveSheetIndex(1); $ex...
true
1a1cb1f1a1548d3651b8ea61a4dfc69ee5d2bbb2
PHP
jakulov/bun
/src/Form/Field/AbstractFormField.php
UTF-8
4,365
2.875
3
[ "MIT" ]
permissive
<?php namespace Bun\Form\Field; use Bun\Form\FormInterface; use Bun\Form\Validator\FieldValidatorInterface; /** * Class AbstractFormField * * @package Bun\Form\Field */ abstract class AbstractFormField implements FormFieldInterface { protected $requiredMsg = 'Field is required'; /** @var FormInterface */ ...
true
4327d8efd61cde3f74522b23640c7368690876f8
PHP
github4n/bet-order-query
/app/Managers/Bot.php
UTF-8
5,731
2.640625
3
[ "MIT" ]
permissive
<?php namespace App\Managers; class Bot extends ManagerBase { protected $settings; // 取得會員注單資料 public function fetchMemberBetOrders($username) { // 取得設定檔 $bot_setting = \App\Models\MBotSetting::findOrFail(1); if (empty($bot_setting->api_url)) { throw new \Exception('尚未设置机器人 API URL.', 300); } // ...
true
9929223bee3d91aabfb2af387c246432830b641a
PHP
JessyBros/P7_Symfony_BileMo
/src/Repository/PhoneRepository.php
UTF-8
1,945
2.59375
3
[]
no_license
<?php namespace App\Repository; use App\Entity\Phone; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Doctrine\Persistence\ManagerRegistry; use Exception; use Symfony\Component\HttpFoundation\Response; /** * @method Phone|null find($id, $lockMode = null, $lockVersion = null) * @method Ph...
true
1c8c970b933529a873e967683700b6535ecd0a90
PHP
kishandchips/businesscarmanager
/inc/widgets/image-button.php
UTF-8
1,859
2.796875
3
[]
no_license
<?php class Widget_Image_Button extends WP_Widget { function __construct() { $widget_opts = array('classname' => 'widget_image_button', 'description' => __('Use this widget is to show an image button.') ); parent::WP_Widget('image_button', 'Image Button', $widget_opts); } function form($ins...
true
53ffa9307d69fd627a1d5f59c5dab0ea6631c163
PHP
NumeroPerdido/digitulus
/ajax_product.php
UTF-8
785
2.765625
3
[]
no_license
<?php // PDO connect ********* include_once "db.class.php"; $keyword = $_POST['keyword']; $tabela = $_POST['tabela']; $campo = $_POST['campo']; $form = $_POST['form']; $list = $_POST['list']; $keyword = addslashes($keyword); $db = new DB(); $sql = "SELECT DISTINCT $campo FROM $tabela WHERE $campo LIKE '%$keyword%' ORDE...
true
6f291e52fb1bfe95ce847ec94aebe28f110f9746
PHP
GigaGray01/birdboard
/tests/Setup/ProjectFactory.php
UTF-8
485
2.53125
3
[]
no_license
<?php namespace Tests\Setup; use App\Models\Project; use App\Models\User; use App\Models\Task; class ProjectFactory { protected $taskCount = 0; public function withTask($count = null) { $taskCount = $count; } public function create() { $project = Project::factory([ 'owner_id' => User::f...
true
9251757bee9238295d4f88ee776ee7b0387a5da9
PHP
cdcchen/aliyun-client
/src/core/profile/DefaultProfile.php
UTF-8
2,571
2.96875
3
[]
no_license
<?php namespace cdcchen\aliyun\core\profile; use cdcchen\aliyun\core\auth\Credential; use cdcchen\aliyun\core\auth\ShaHmac1Signer; use cdcchen\aliyun\core\auth\ShaHmac256Signer; use cdcchen\aliyun\core\auth\SignerInterface; /** * Class DefaultProfile * @package cdcchen\aliyun\core\profile */ class DefaultProfile ...
true
a76681f2e3b214564eded48f5a9d4a8fba572685
PHP
lguerrero/miraiz
/login/validar_usuario.php
UTF-8
2,462
2.625
3
[]
no_license
<div id="main"> <div id="logueo"> <div style="position:relative; font-size:15px; top:180px; font-family: 'Stencil Std'; font-weight:bold; color:#CC0000"> <?php session_start(); function quitar($mensaje) { $nopermitidos = array("'",'\\',...
true
41dbaa1104c7e74ea8167ac312683a4ee3da2dca
PHP
ti0rafa/sparky7
/src/Error/Exception/ExError.php
UTF-8
257
2.515625
3
[ "MIT" ]
permissive
<?php namespace Sparky7\Error\Exception; use Sparky7\Error\Exception; class ExError extends Exception { public function __construct($message = 'Internal Error', array $errors = null) { parent::__construct($message, 500, $errors); } }
true
963e28955bb5378bc32ec02e39ec4645b70c5593
PHP
rafal-kanski-stp/tulo-php-api-client
/tests/spec/Tulo/Api/Client/Configuration/Request/UrlSpec.php
UTF-8
556
2.546875
3
[]
no_license
<?php declare(strict_types=1); namespace tests\spec\Tulo\Api\Client\Configuration\Request; use PhpSpec\ObjectBehavior; use Tulo\Api\Client\Configuration\Request\Url; /** * @mixin Url */ class UrlSpec extends ObjectBehavior { private const URL = 'https://www.example.com'; function let(): void { ...
true
382bd12073a28edfc1a8dcb480372c830e8a3186
PHP
itsoftcoder/laravel-blog-cms
/app/Http/Controllers/SubscriberController.php
UTF-8
567
2.65625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Subscriber; use Illuminate\Http\Request; class SubscriberController extends Controller { public function store(Request $request) { $request->validate([ 'email' => 'required | email | unique:subscribers', ]); $subscriber = new S...
true
8aca5e115be0a8faa699475ef682ec94088ff655
PHP
AngelFQC/sis-scrq
/sisscrq/ajax/paciente.php
UTF-8
745
2.609375
3
[]
no_license
<?php if ($_SERVER["REQUEST_METHOD"] != "GET") { exit(); } if (!isset($_GET["id"])) { exit(); } $idPaciente = trim($_GET["id"]); if (!preg_match("/^[0-9]{1,}$/", $idPaciente)) { exit(); } include("../scrq-config.php"); include("../tool/strings.php"); function __autoload($nombreClase) { require_onc...
true
c04eb93ca77962a6d296a30b5d8642a9a3825b79
PHP
sonambhatnagar/codility-php
/permCheck.php
UTF-8
329
3.0625
3
[]
no_license
<?php class permCheck { public function solution($A) { $min = 1; $noPrem = 1; sort($A); foreach ($A as $key => $value) { if ($min === $value) { $min++; } else { $noPrem = 0; } } return $noPrem...
true
b93f6555d5cb6dba4384f37f737a1043960af1c1
PHP
PrincetonAfeez/kommerce-core
/tests/EntityDTO/Builder/AbstractCartPriceRuleItemDTOBuilderTest.php
UTF-8
956
2.5625
3
[ "Apache-2.0" ]
permissive
<?php namespace inklabs\kommerce\tests\EntityDTO\Builder; use DateTime; use inklabs\kommerce\Entity\AbstractCartPriceRuleItem; use inklabs\kommerce\EntityDTO\AbstractCartPriceRuleItemDTO; use inklabs\kommerce\tests\Helper\TestCase\EntityDTOBuilderTestCase; abstract class AbstractCartPriceRuleItemDTOBuilderTest extend...
true
8fcaf4177146d5cb418d1a6c0d86c863b9b7799a
PHP
braddoro/random
/php/google_search.php
UTF-8
1,327
2.703125
3
[]
no_license
<?php // https://www.google.com/advanced_search // https://moz.com/ugc/the-ultimate-guide-to-the-google-search-parameters $options = getopt("p:n:"); $parms = isset($options['p']) ? $options['p'] : ''; $num = isset($options['n']) ? $options['n'] : 10; require_once('simple_html_dom.php'); //$url = 'http://www.goo...
true
06e63cdc950662ca5476358681c217ccbd63bf4e
PHP
ntemple/intellispire-builder
/lib/toolkit-2010/aws/sqs.class.php
UTF-8
8,027
2.5625
3
[]
no_license
<?PHP /** * Amazon PHP Classes and Functions * * Copyright (c)2008 Intellispire * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the right...
true
6be5db14bf6f054e9ef055d3286b1fa98a636429
PHP
rizzamatteo96/BoolBnB
/app/Http/Controllers/Api/StatisticController.php
UTF-8
1,049
2.640625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Api; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use Illuminate\Support\Facades\Validator; use App\Statistic; class StatisticController extends Controller { public function store(Request $request){ $data = $request->all(); $validator = V...
true
018cf91aab1640aac9820ba8e837fe06416eaa49
PHP
makeitworkpress/plugin-updater-test
/plugin-updater-test.php
UTF-8
1,482
2.515625
3
[]
no_license
<?php /** * Plugin Name: Plugin Updater Test * Plugin URI: https://www.makeitwork.press/ * Description: WordPress Plugin used to test the updater script. * Version: 1.0 * Author: Make it WorkPress * Author URI: https://www.makeitwork.press/ * License: GPL3 * License URI: https://www.gnu.o...
true
87c717b11e062b80f86deb1e5d083382ec5a1bc0
PHP
Jellfedora/fedora-cake3
/src/Model/Entity/User.php
UTF-8
407
2.734375
3
[]
no_license
<?php namespace App\Model\Entity; use Cake\Auth\DefaultPasswordHasher; // Ajouter cette ligne use Cake\ORM\Entity; class User extends Entity { // Tout le code de bake sera ici. // Ajoutez cette méthode protected function _setPassword($value) { if (strlen($value)) { $hasher = new ...
true
e9ced6b5f9b5917a63b2f17bcf6d53a882e09608
PHP
TopazStudio/TimeSpace-Web
/app/Models/Examination.php
UTF-8
3,185
2.78125
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Examination extends Model { /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'owner_id', 'subject_id', 'time_table_id', 'name', 'type'...
true
e2f818d5ce5edd5226111ac7d0b1e7f5c87816ed
PHP
sgsantos/Laravel-GraphQL-TDD
/tests/Feature/UsersQueryTest.php
UTF-8
2,670
2.671875
3
[ "MIT" ]
permissive
<?php namespace Tests\Feature; use Illuminate\Contracts\Console\Kernel; use Faker\Factory as Faker; use Illuminate\Support\Str; use KunicMarko\GraphQLTest\Bridge\Laravel\TestCase; use KunicMarko\GraphQLTest\Operation\Query; use App\GraphQL\Query\UsersQuery; class UsersQueryTest extends TestCase { /** * Cre...
true
65059cfd12c816ec51608f5faa8913cf790e49dd
PHP
DIS-Jakarta/WarehouseGrosirKonveksi
/application/controllers/Home.php
UTF-8
12,839
2.609375
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Home extends CI_Controller { /** * Index Page for this controller. * * Maps to the following URL * http://example.com/index.php/welcome * - or - * http://example.com/index.php/welcome/index * - or - * Since this controlle...
true
f13253ade827695dff8e4993411031163dca7177
PHP
Sndip/Htoel-Management-system
/admin/class/recommend.class.php
UTF-8
857
2.59375
3
[]
no_license
<?php class recommend extends common { public $id,$rate,$room,$avs; public function insertvalue() { $sql ="insert into recommend(room,average)values('$this->id','$this->avs')"; return $this->insert($sql); } public function selectrecommend() { $sql = "select * from recommend"; return $this->select($sq...
true
cd608d5dd13e371e565d531431a165dc75847c4e
PHP
rcjaustralia/rcj-comp-entry
/src/sys-admin/comp-name/edit.php
UTF-8
7,930
2.59375
3
[]
no_license
<?php require $_SERVER["DOCUMENT_ROOT"] . '/shared/require.php'; function UniqueCheck($con, $uid, $uid_year, $uid_state, $comp_name) { $sql = $con->prepare( 'select count(*) as count from comp_name ' . 'where ' . ' uid <> :uid and ' . ' uid_year = :uid_year and ' . ' uid_state...
true
a8dc22067bf629c7d155b56e124b6d6a3b4ba4e8
PHP
HalalSoft/laravel-dynamic-column
/tests/PageModelTest.php
UTF-8
2,511
2.75
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace Halalsoft\LaravelDynamicColumn\Tests; use Halalsoft\LaravelDynamicColumn\Tests\Models\Page; class PageModelTest extends TestCase { public function setUp(): void { parent::setUp(); } /** @test */ public function it_tests_right_row_count() { $pages = Page::ge...
true
71a2955b76e69ef016ab2951b50c3adbe9591abe
PHP
revinate/analytics-bundle
/Query/BulkQueryBuilder.php
UTF-8
2,929
2.65625
3
[]
no_license
<?php namespace Revinate\AnalyticsBundle\Query; use Revinate\AnalyticsBundle\Comparator\ComparatorFactory; use Revinate\AnalyticsBundle\Comparator\ComparatorSet; use Revinate\AnalyticsBundle\DimensionAggregate\DimensionAggregateSet; use Revinate\AnalyticsBundle\Goal\GoalSet; use Revinate\AnalyticsBundle\Result\Result...
true
6bdbe48b844dadf2fd2739b207043c5529361d73
PHP
saahithhegde/teacherportal
/sem3datamarks.php
UTF-8
4,412
2.6875
3
[]
no_license
<?php $host = "localhost"; $username = "root"; $password = ""; $dbname = "sem3"; // Create connection $conn = new mysqli($host, $username, $password, $dbname); // Check connection if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } $usn1=$_POST['uname']; $suba=$_POST['su1']; $subb=$_PO...
true
d4f7a796d9f52fc2c089e702c2ba4f0bb2ef4382
PHP
AlaaSerhal/Covid19TraceApp
/server-side/objects/distanceTable.php
UTF-8
3,249
3.09375
3
[]
no_license
<?php class distanceTable{ private $conn; private $table_name = "distancetable"; public $userID1; public $userID2; public $distance; public function __construct($db){ $this->conn = $db; } function read(){ // select all query $query = "SELECT ...
true
917fde86d2f647e6379a9265393637ba1da6894f
PHP
jamxio/notes
/php/泛型.php
UTF-8
1,797
3.296875
3
[]
no_license
<?php /** * 假泛型 * Class Generics */ class Generics extends ArrayObject { protected $baseTypes = [ 'boolean', 'integer', 'float', 'string', 'array', 'NULL', 'resource', ]; /** @var string $type */ protected $type; public function __construct($T, $input = array(), $flags = 0, $iterator_class = "ArrayIterator"...
true
b1e5d17155e82ba136a2131b052895b948f5c5ad
PHP
zhusong666/weifeng
/app/Http/Controllers/Admin/RoleController.php
UTF-8
4,453
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Admin; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use App\Model\Admin\Role; use App\Model\Admin\Permission; use DB; class RoleController extends Controller { /** * 角色添加权限页面 * * @return \Illuminate\Http\Response */ public ...
true
82bd663b38a90350600d0247dd9243131b3ae8e5
PHP
chaomrwang/third-payment
/pubpayment/helpers/auth_helper.php
UTF-8
1,100
2.75
3
[]
no_license
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /** * 支付权限校验 */ function payAuth($params, $appSecret){ @$sign = $params['sign']; unset($params['sign']); unset($params['appSecret']); $new_sign = generateHash($params, $appSecret); if (empty($sign) || $sign != $new_sign) {...
true