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
44b862fd1826968d2edcca8b0e0c2b0e4f2f63c5
PHP
BetaCMS/BetaCMS
/app/core/controller.php
UTF-8
1,766
2.53125
3
[]
no_license
<?php /** * Base Controller Class * */ abstract class Controller extends \Prefab { /** * instance * * @var app */ protected $app; /** * logger instance * * @var logger */ protected $logger; /** * initialize controller * */ public fun...
true
86f6ef27def686fd8419797e57686d338dd9af53
PHP
chibimiku/xweibo_for_discuz_x2_php7
/xwb/lib/session/session_operator_simulator.class.php
UTF-8
5,465
2.765625
3
[]
no_license
<?php /** * session模拟管理操作器(session委托操作器)。 * 不允许自行使用$_SESSION数组完成对session的操作,必须透过此类提供的方法完成对模拟session存取操作 * 纯php session id生成和校验参考ecmall思路,在此感谢 * 部分方法只适应DZX1.5,故移植到地方需要进行修改 * * @author yaoying<yaoying@staff.sina.com.cn> * @since 2010-12-02 * @version $Id: session_operator_simulator.class.php 724 2011-05-10 05:2...
true
f3ac36f3e0da11d9cfd2aa5563a7658eacf80bbd
PHP
dfirlag/shopping_cart_app_ddd_example
/src/Product/Application/ProductQueryService.php
UTF-8
1,592
2.78125
3
[]
no_license
<?php declare(strict_types=1); namespace App\Product\Application; use App\Product\Domain\Product\Factory\ProductFactory; use App\Product\Domain\Product\Product; use App\Product\Infrastructure\Persistence\Mysql\Repository\ProductRepository; use App\Shared\Domain\ValueObject\ProductId; use Doctrine\ORM\EntityRepositor...
true
d13f22931fe5d47e1c7f66d83c310f452cc191e7
PHP
rusyblue/E-Learning
/php/compte.php
UTF-8
2,903
2.578125
3
[ "MIT" ]
permissive
<?php ?> <?php include_once './functions/database.php'; $bbd = bbd(); if (isset($_POST['account'])) { $user = htmlspecialchars($_POST['user']); $email = htmlspecialchars($_POST['email']); $pwd = ($_POST['pwd']); $pwd2 = ($_POST['pwd2']); if (!empty($_POST['user']) AN...
true
4c26ef7f30faf4958acb36bd6728449681d19285
PHP
377123/quark-cms
/modules/Wechat/Http/Controllers/Auth/RegisterController.php
UTF-8
4,268
2.546875
3
[]
no_license
<?php namespace Modules\Wechat\Http\Controllers\Auth; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use App\User; use Modules\Wechat\Models\WechatUser; use Str; use DB; class RegisterController extends Controller { /** * 用户注册 * * @return \Il...
true
a14cbd9cb4d4358303b2ec69ba174925f4630590
PHP
mariomhu/xp
/application/models/JudgeManager.php
UTF-8
340
2.515625
3
[]
no_license
<?php class Application_Model_JudgeManager extends Application_Model_Manager{ public static $table = "judge"; public static function add($values){ return parent::add(array( "key" => $values['key'], )); } public static function set($values, $id){ return parent::set(array( "key" => $values['key'],...
true
aa9d7024c4843a78a6fbeed9b88c586f04b1a02a
PHP
streaky/sag
/tests/classes/clientTest.php
UTF-8
4,303
2.78125
3
[ "Apache-2.0" ]
permissive
<?php use \streaky\sag; class clientTest extends \PHPUnit_Framework_TestCase { /** * @var \streaky\sag\client */ private static $sag = null; public static $test_admin_user = "admin_test"; public static $test_admin_pass = "admin_zIM99soUCx"; public static $test_db = "sag-test-db"; /** * @var null Tempo...
true
c76a5665ed77e2a89d14d47091d259804da30b54
PHP
rubelkolpolok/kolpolok-statcdr
/database/migrations/2018_05_14_110519_create_disputes_table.php
UTF-8
3,305
2.515625
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateDisputesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('disputes', fun...
true
7d556b821c6367bd5e4f0e02f319fd4da618ac99
PHP
sansanhayyu/yii2-adminlte-rental
/common/models/Fasilitas.php
UTF-8
1,070
2.515625
3
[]
no_license
<?php namespace common\models; use Yii; /** * This is the model class for table "fasilitas". * * @property int $kode_fasilitas * @property string $nama_fasilitas * * @property DetailFasilitas[] $detailFasilitas */ class Fasilitas extends \yii\db\ActiveRecord { /** * {@inheritdoc} */ public s...
true
aefa75f7cd7e8a43a42a998d017b36fe274b8816
PHP
aniimah/todolist
/to-dolist/public/server/Server.php
UTF-8
711
3.078125
3
[]
no_license
<?php session_start(); class Server { public $db; public static $errors = array(); function __construct() { $host = '127.0.0.1'; #change $user = 'root'; #change $pass = 'root'; #change $schema = 'Todolist'; $this->db = new mysqli($host, $user, $pass, $schema); ...
true
6685c9b0e626e28725e32f51540c77291c2b3b64
PHP
fabiosimaodeholanda/quality
/comentarios.php
UTF-8
2,098
2.609375
3
[]
no_license
<!DOCTYPE html> <html lang="pt-br"> <head> <meta charset="UTF-8"> <title>lanchonete</title> </head> <body> <div class="menu"> <a href="index.html">Página Inicial</a> <a href="produtos.html">Produtos</a> <a href="endereco.html">Endereço</a> <a href=...
true
320cfd2f17de09dd9c5effce0a3e215b21bff966
PHP
BoneMoon/PHPProject
/app/models/Brawlers.php
UTF-8
1,621
3.046875
3
[]
no_license
<?php namespace app\models; use app\core\Db; class Brawlers { /** * Método para obtenção do dataset de todos os brawlers * * @return array */ public static function findAll() { $conn = new Db(); $response = $conn->execQuery('SELECT * FROM brawlers'); return $response; } /** * Méto...
true
b3e5a76a19908b3e7ae22e459570be887f80e2b2
PHP
ron9817/E-commerce
/app/Helpers/Product/ProductHelper.php
UTF-8
2,029
2.65625
3
[]
no_license
<?php namespace App\Helpers\Product; use App\Models\Product; use Carbon\Carbon; class ProductHelper { public function get($seller_id=NULL){ if(isset($seller_id)) $products=Product::with(["category:id,display_name"])->where('seller_id',$seller_id)->get(); else $products=Pr...
true
bf85a8ee3fdf381a433e5137874177b083b86ffd
PHP
achoquel/Piscine-PHP
/d01/ex07/rostring.php
UTF-8
447
3.234375
3
[]
no_license
#!/usr/bin/php <?php function ft_split_no_sort($str) { $tmp = explode(" ", $str); $tab = array(); foreach ($tmp as $key) { if (!empty($key)) { $tab[] = $key; ++$tab; } } return $tab; } function rostring($str) { $array = ft_split_no_sort($str); $size = count($array); $i = 1; ...
true
a2c9e7f3a615db8d36745a2920d41d1c80cc8883
PHP
huangweihao/youjiannaicha
/app/common/rabbitmq/MqConn.php
UTF-8
3,233
2.796875
3
[]
no_license
<?php /** * MQ操作类,可以访问rabbitMQ * 需先安装php_amqp扩展 * Date: 2019/7/18 * Time: 11:39 */ namespace app\common\rabbitmq; use think\facade\Log; class MqConn{ private $durable = true; private $autodelete = false; private $_conn = Null; private $_queue = Null; private function openMQ(){ if (!$t...
true
ce31a8389119a49a5c20b2241bd428d6dbebfffa
PHP
chamsBLT/ProjetWeb2A
/core/CartsCore.php
UTF-8
617
2.640625
3
[]
no_license
<?php include "../../config.php"; $cart_id0=""; $cart_id=0; class CartsCore { function AddCart($carts){ $sql="insert into cart (cart_id,details) values (:cart_id,:details)"; $db = config::getConnexion(); try{ $req=$db->prepare($sql); $cart_id0=file_get_contents("cartid.txt"); $cart_id=intv...
true
7318b3676391df9d649d458bdca37d3013ec8c53
PHP
danieltijerina/Connect-WebApp
/Controller/DashboardController.php
UTF-8
1,842
2.59375
3
[]
no_license
<?php include "../Model/ConnectDB.php"; isset($_POST['Function']) ? $function = $_POST['Function'] : $function = '404'; session_start(); $_SESSION["isLogged"] = "false"; switch($function){ case 'GetProjects': ConnectController::GetProjects(); break; case 'ValidarLogin': ConnectController::ValidarLogin(); break; ...
true
6ddb57bee0442a4ee59df69d5c646d44dcb7c3ec
PHP
monooso/news.singlestory.app
/app/Observers/TokenObserver.php
UTF-8
909
2.609375
3
[ "MIT" ]
permissive
<?php namespace App\Observers; use App\Models\Token; use Illuminate\Support\Carbon; use Ramsey\Uuid\Uuid; class TokenObserver { /** * Automatically set the expiration date and password for new instances. * * @param Token $instance */ public function creating(Token $instance) { ...
true
598687674f89803618fb97b9ac0bde8ee3491199
PHP
Pyrrah/GravatarBundle
/src/Templating/Helper/GravatarHelper.php
UTF-8
2,849
2.859375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace Pyrrah\GravatarBundle\Templating\Helper; use Pyrrah\GravatarBundle\GravatarApi; use Symfony\Component\Routing\RouterInterface; use Symfony\Component\Templating\Helper\Helper; /** * Symfony 2 Helper for Gravatar. Uses Bundle\GravatarBundle\GravatarApi. * * @author Thibault Duplessis * @author Henr...
true
ef3d8b03d5425848ee4dd6463c3c0711eb6c7d12
PHP
Yoda-BZH/nrchrono-admin
/src/AppBundle/Timer/Team.php
UTF-8
3,279
2.6875
3
[ "BSD-3-Clause", "MIT" ]
permissive
<?php namespace AppBundle\Timer; class Team { //'numero' => $matches[3][$k], private $position = 0; private $numero = 0; private $annee = 0; private $nom = ''; private $temps = 0; private $tour = 0; private $ecart = 0; private $distance = 0; pr...
true
7178bfbd456a301a75cb5f15a8ab9bffb5503e26
PHP
thanhdat210101/StartminPHP
/db/databse.class.php
UTF-8
3,079
3.03125
3
[ "MIT" ]
permissive
<?php class database{ protected $connection = null; protected $user=''; protected $pass=''; protected $name=''; protected $host=''; public function __construct($config) { $this->host = $config['host']; $this->user = $config['user']; $this->pass = $config['pass']; ...
true
dc59513d8f23078b8cc0bfde10ce403acbf30918
PHP
gurugeek/JaRomero95-brisca-online
/brisca/src/AppBundle/DataFixtures/ORM/LoadUserData.php
UTF-8
1,837
2.5625
3
[]
no_license
<?php namespace AppBundle\DataFixtures\ORM; use Doctrine\Common\DataFixtures\FixtureInterface; use Doctrine\Common\Persistence\ObjectManager; use Symfony\Component\DependencyInjection\ContainerAwareInterface; use Symfony\Component\DependencyInjection\ContainerInterface; use AppBundle\Entity\User; class LoadUserData i...
true
18f76ac28ac6de8da5dab5284b2a3b49a1e730db
PHP
creatydev/datacenter-automation-suite-l58
/app/Http/Middleware/Local.php
UTF-8
576
2.53125
3
[ "Apache-2.0" ]
permissive
<?php namespace App\Http\Middleware; use Closure; use Opis\Closure\SecurityException; class Local { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * * @return mixed */ public function handle($request, ...
true
edbf0bb41812304f913d291220133243aa3f9539
PHP
jbarentsen/drbadmin
/module/JBIT/src/JBIT/Entity/Traits/TimestampableTrait.php
UTF-8
1,245
2.59375
3
[]
no_license
<?php namespace JBIT\Entitiy\Traits; use DateTime; use Doctrine\ORM\Mapping as ORM; use Gedmo\Mapping\Annotation as Gedmo; /** * Timestampable Trait, usable with PHP >= 5.4 * * @author Gediminas Morkevicius <gediminas.morkevicius@gmail.com> * @license MIT License (http://www.opensource.org/licenses/mit-license....
true
4ac3b5b6ca3341b5d5d69d2d8042f3366a8032d2
PHP
kcchanuk/phptests
/src/Football.php
UTF-8
1,502
3.1875
3
[]
no_license
<?php namespace App; class Football { public function run(string $team_key) { $url = "https://s3.eu-west-1.amazonaws.com/hackajob-assets1.p.hackajob/challenges/football_session/football.json"; // create curl resource $ch = curl_init(); // set url curl_setopt($ch, CURL...
true
f5ada007241a885bc8aa9813cd50734f3f705916
PHP
loskutovis/innoscripta_scraper
/src/Controller/FrontController.php
UTF-8
1,000
2.703125
3
[ "MIT" ]
permissive
<?php namespace App\Controller; use App\Service\ParserInterface; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Annotation\Route; /** * Class FrontController */ class FrontController extends AbstractController { pub...
true
52ddd649f1a6d39e308b346dcedf478a0797ccbe
PHP
LeoAdamek/Supportic.us
/app/models/user.php
UTF-8
3,964
2.6875
3
[]
no_license
<?php class User extends AppModel { var $name = 'User'; var $displayField = 'name'; var $validate = array( 'name' => array( 'notempty' => array( 'rule' => array('notempty'), 'message' => 'Your Name is Required', //'allowEmpty' => false, //'required' => false, //'last' => false, // Stop vali...
true
a060e63ad319c67c776cc075aa02a3a5f45b61e5
PHP
yunqico/think-rom
/src/common.php
UTF-8
3,231
2.953125
3
[ "MIT" ]
permissive
<?php declare (strict_types=1); if(!function_exists("phone_format")){ /** * 手机号码、固机号码隐藏中间 * @param $number string 手机号码或固机号码 * @return string * */ function phone_format($number){ $isTel = preg_match('/(0[0-9]{2,3}[\-]?[2-9][0-9]{6,7}[\-]?[0-9]?)/i',$number); //固定电话 if($i...
true
b3d3ec144b76e29efc839514745413544981e89c
PHP
smb158/PIRAS
/php/2/func3.php
UTF-8
574
3.21875
3
[]
no_license
<!-- skel.php: Skeleton PHP script --> <html> <head> <title> FUNCTIONS-3 </title> </head> <body> <?php function doubling () { static $num = 1; $num = $num * 2; return $num; } for ($i=1; $i<=10; $i++) { print "doubling($i) returns ".doubling(). "\n<br/>"; } ?> <!-- PRINT TIMESTAMP --> <hr> <p> This page wa...
true
181c8e5ccb42dc3e032bc41900bcb3a88da8ba3f
PHP
mix-php/mix
/src/runtime/src/Context/Context.php
UTF-8
1,340
2.84375
3
[ "Apache-2.0" ]
permissive
<?php namespace Mix\Context; use Mix\Coroutine\Channel; /** * Class Context * @package Mix\Context */ class Context { /** * @var ValueContext */ protected $value; /** * Context constructor. */ public function __construct() { $this->value = new ValueContext(); ...
true
e7f70ff2d8c00cc582ee7cbf112d5f8241dcf997
PHP
derhofbauer/trve-shop
/src/app/SysCartEntry.php
UTF-8
1,003
2.546875
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; /** * Class SysCartEntry * * @package App */ class SysCartEntry extends Model { /** * The table associated with the model. * * @var string */ protected $table = 'sys_cart_entry'; /** * The attributes that are mass ...
true
dbb5d7da8fa66496bbe75c0f0e3e1c8a7148d0dc
PHP
Aissatagaye/Formulaire-php
/Formulaire/Form.php
UTF-8
3,475
2.546875
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Formulaire</title> <link rel="stylesheet" href="./style.css"> </head> <body> <h1>Entr...
true
bd2fa9cfb2f34bf766d21cfdb48129bca55847ac
PHP
hason/puli
/src/Filesystem/Resource/LocalResourceInterface.php
UTF-8
1,263
2.859375
3
[ "MIT" ]
permissive
<?php /* * This file is part of the Puli package. * * (c) Bernhard Schussek <bschussek@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Puli\Filesystem\Resource; use Puli\Resource\ResourceInterface; /** * A...
true
e7fd8bba6f5b9a56cea02e55ac1d598970c6d0fc
PHP
alecawesome/new
/blog/app/Http/Controllers/AdminSubjectManagementController.php
UTF-8
2,366
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Subject; use App\User; use Session; class AdminSubjectManagementController extends Controller { /** * Create a new controller instance. * * @return void */ public function __construct() { $this->middlewa...
true
fd4cb2893c6076f5f8f033c254ebb12ec91b4696
PHP
PainKiller3/Journal-Lab
/11.php
UTF-8
330
3.03125
3
[]
no_license
<?php echo "<table border=1 cellpadding=10>"; $n=6; for($i=1;$i<=10;$i++) { echo "<tr>"; echo "<td>"; echo $n; echo "</td>"; echo "<td>"; echo "x"; echo "</td>"; echo "<td>"; echo $i; echo "</td>"; echo "<td>"; echo "="; echo "</td>"; echo "<td>"; echo $n*$i; echo "</td>"; echo "</tr>"; }echo "</tabl...
true
000a5a6c01f8b49d3ef426aecb88dbfa26322888
PHP
fred-d/TylerWebDev
/src/TylerWebDev.php
UTF-8
3,904
2.5625
3
[]
no_license
<?php namespace TylerWebDev; use Illuminate\Validation\Validator; use Predis\Client; use Slim\Container; use Slim\Views\PhpRenderer; use Symfony\Component\Translation\Translator; use Illuminate\Database\Capsule\Manager; class TylerWebDev { /** * @var \Pimple\Container $container */ public static $c...
true
93054f6d7dc5ec4e55c97c11e8958d9b82073b9f
PHP
LucaTseng/lucaMottoHayaku
/myphp/brad04錢字號宣告.php
UTF-8
169
2.703125
3
[]
no_license
<?php $var1 = 123; $var2 = 'Brad'; $var3 = 12.3; $var4 = true; $true = 'Brad'; $for = 123; $if = 321; //php變數宣告可以用任意的詞
true
44bf8bdc034b86aafdf9b1d65dd12776f5c2db47
PHP
phanhung0906/feedback-solution
/src/app/controllers/CollaboratorController.php
UTF-8
1,687
2.578125
3
[]
no_license
<?php class CollaboratorController extends Controller { protected $collaboratorModel; protected $projectModel; public function __construct() { $this->collaboratorModel = new CollaboratorModel(); $this->projectModel = new ProjectModel(); } public function indexAction() ...
true
0a86c227592e7a26c60672402b8c77ea0e1e9b64
PHP
bamba-sudo/site_recette
/projet/modele/tests/testRecette.php
UTF-8
1,996
3.015625
3
[]
no_license
<!DOCTYPE html> <!------------------------------------------------------------------> <!---- Projet ---> <!---- Fichier de test unitaire pour la classe Recette ---> <!---- Auteurs : Gharbi Walid, Ayachi Imed ---> <!-----------------------------...
true
7b05455bdce8286e3b9d2d48d9f445605f1e6e65
PHP
kristiankeep/decibel-framework
/database/mapper/DColumnSchemaMapper.php
UTF-8
1,540
2.75
3
[ "MIT" ]
permissive
<?php // // Copyright (c) 2008-2016 Decibel Technology Limited. // namespace app\decibel\database\mapper; use app\decibel\adapter\DAdapter; use app\decibel\adapter\DRuntimeAdapter; use app\decibel\database\schema\DColumnDefinition; /** * Provides mapping of column schema statements to a database's query language. *...
true
b982d82e2bc11b94b0b62e1764b246255f39724e
PHP
jg439/tableArrayCSV
/csv_converter.php
UTF-8
497
3.078125
3
[]
no_license
<!DOCTYPE html> <html> <head> <title>Table</title> <meta charset = "utf-8"> <link rel = "stylesheet" type ="text/css" href = "styles.css"> </head> <body> <?php // include array functions include 'tableArray.php'; function csv_converter($csv_file) { $array = array_map('str_getcsv', file($csv_file)); ...
true
033b74ead52b44edb135e510dc04c99bc811fd9a
PHP
AvocaPlatform/Avoca-Profile
/application/helpers/avoca_helper.php
UTF-8
3,138
2.765625
3
[]
no_license
<?php /** * Created by AVOCA.IO * Website: http://avoca.io * User: Jacky * Email: hungtran@up5.vn | jacky@youaddon.com * Person: tdhungit@gmail.com * Skype: tdhungit * Git: https://github.com/tdhungit */ function avoca_debug($var, $is_die = false) { echo '<pre>'; print_r($var); echo '</pre>'; ...
true
73fe62a5a8d7f98ecb4deef992338ae2bd5ccaf7
PHP
duy-ly/clean-architecture-demo
/code/Adapter/Request.php
UTF-8
783
2.828125
3
[]
no_license
<?php namespace Ntq\Adapter; use Illuminate\Http\Request as IlluminateRequest; use Ntq\Contract\RequestInterface; /** * Http Request Adapter. * * @package Ntq\Adapter */ class Request implements RequestInterface { /** * @var IlluminateRequest */ private $request; /** * @param Illumina...
true
703b7fa597be5e5defea3bb73d5a64f90087a4fa
PHP
icomefromthenet/LaterJob
/src/LaterJob/Config/WorkerConfig.php
UTF-8
6,525
2.671875
3
[]
no_license
<?php namespace LaterJob\Config; use Symfony\Component\Config\Definition\ConfigurationInterface; use Symfony\Component\Config\Definition\Builder\TreeBuilder; use Symfony\Component\Config\Definition\Processor; use ReflectionClass; use LaterJob\Exception as LaterJobException; /** * Configration Definition for a work...
true
b55ab264f3b201b974404d2df0d3c042756e4917
PHP
billvanleeuwen424/Project
/includes/navbar.php
UTF-8
1,219
2.578125
3
[]
no_license
<?php //check if user is logged in, present with proper text $login = 'Login'; $loginlink = 'login.php'; $homelink = 'login.php'; $profilelink = 'login.php'; //check if session started, stolen from https://stackoverflow.com/a/18542272 if (session_status() === PHP_SESSION_NONE) { session_start(); } //if the user ...
true
8165d7a753cd586545c85ee4a3bfa5f99a992c36
PHP
urban-laura/calc_atiras
/includes/calc.php
UTF-8
2,526
2.578125
3
[]
no_license
<?php $year = $_POST['year']; $teljesitmeny = $_POST['teljesitmeny']; $or = $_POST['or']; $barrel = $_POST['barrel']; $n_year = (int)date('Y'); $c_year = $n_year - $year; if($or == 'kW') { $kw = $teljesitmeny; } if($or == 'LE') { $kw = $teljesitmeny * 0.745; } $hatosagi_dijak[] = array('barrel'=>'<=1400', 'v...
true
ea0583a2c48adc4d003284aa9d1a5e2522b80ac6
PHP
Space48/auto-value-php
/src/BuilderClass/BuilderClassType.php
UTF-8
2,259
2.734375
3
[]
no_license
<?php namespace AutoValue\BuilderClass; use AutoValue\AutoClassType; use AutoValue\MethodGeneratorList; use AutoValue\PropertyInferrer; use AutoValue\ReflectionMethodCollection; use Roave\BetterReflection\Reflector\ClassReflector; /** * @author Josh Di Fabio <joshdifabio@gmail.com> */ class BuilderClassType impleme...
true
750ffc5ac190e5a9ad86584fb528b3e10e11d2c8
PHP
cdave1/peachy
/app/content/account.inc.php
UTF-8
7,496
2.59375
3
[]
no_license
<?php $command = false; $URI_QUERYSTRING = URI_QUERYSTRING(); if(isset($URI_QUERYSTRING[1])) { $command = $URI_QUERYSTRING[1]; } if (false != $command) { if ("email" == $command) { DisplayTitle("Change Email Login"); DisplayEmailLogin(''); } else if ("messages" == $command) { DisplayTitle("Your Messages")...
true
79f5993c096b25f6bbecb1d4de1f283782f0bed0
PHP
Herzult/lichess
/src/Bundle/LichessBundle/Resources/views/Game/board.php
UTF-8
960
2.828125
3
[ "MIT" ]
permissive
<?php $board = $player->getGame()->getBoard(); $squares = $board->getSquares(); $isGameStarted = $player->getGame()->getIsStarted(); $turnPlayer = $player->getGame()->getTurnPlayer(); if ($player->isBlack()) { $squares = array_reverse($squares, true); } $x = $y = 1; print '<div class="lichess_board">'; foreach...
true
e4826ebd884392771f6a8a2f76afb69087c1e79b
PHP
appbels/DOM
/src/DOM/Tag/Bdo.class.php
UTF-8
812
2.75
3
[ "Apache-2.0" ]
permissive
<?php namespace DOM\Tag; /** * Bdo Class. * * * The HTML <bdo> element (bidirectional override) is used to override the current directionality of text. It causes the directionality of the characters to be ignored in favor of the specified directionality. * https://developer.mozilla.org/en-US/docs/Web/HTML/Eleme...
true
9570445e36724ade5f197ce5167c459da35dba28
PHP
mintysam/r-Prism-Tetris
/services/classfiles/CImage.php
UTF-8
3,404
2.90625
3
[]
no_license
<?php class CImage { var $m_RootFolder = ""; // "/images/photo" var $m_ImagePath = ""; var $m_Width = 0; var $m_height = 0; var $m_type = 0; var $m_attr = 0; var $m_rootpathprefix = '../../'; var $default_image = ''; var $folderLimit = 1000; ///****...
true
aeabba9e3b58e6689016dacc21e54cbfd1a9148d
PHP
loganetherton/QM
/QualityMedia/branches/new-review-tabs/base/protected/migrations/.svn/text-base/m131126_155353_alter_messages_add_account_manager_id_field.php.svn-base
UTF-8
806
2.609375
3
[]
no_license
<?php /** * Add accountManagerId field into "messages" table. * * @author Dawid Majewski <dawid@qualitymedia.com> */ class m131126_155353_alter_messages_add_account_manager_id_field extends CDbMigration { public $tableName = 'messages'; public $columnName = 'accountManagerId'; public function up() ...
true
a64122b70f2aede99719e2ef3bbb32e9814f0577
PHP
jacerider/exo
/exo_alchemist/src/Ajax/ExoComponentModifierAttributesCommand.php
UTF-8
1,209
2.765625
3
[]
no_license
<?php namespace Drupal\exo_alchemist\Ajax; use Drupal\Core\Ajax\CommandInterface; /** * An AJAX command for updating component modifier properties. * * @ingroup ajax */ class ExoComponentModifierAttributesCommand implements CommandInterface { /** * An array of property/value pairs to set in the CSS for the...
true
162f2ac07affe19205083b55167686d4eb115b99
PHP
RockEinstein/library
/src/RockEinstein/Lib/Client/DataProvider.php
UTF-8
720
2.640625
3
[ "Unlicense" ]
permissive
<?php namespace RockEinstein\Lib\Client; interface DataProvider { /** * */ public function findAll(); /** * * @param type $filter */ public function findBy($filter); /** * * @param type $filter */ public function findOneBy($filter); /** *...
true
3ff2a9e1c2e786764ad43d94fc6ca442857861b7
PHP
erandreex/ingweb
/editaractividad.php
UTF-8
4,584
2.5625
3
[]
no_license
<?php // metodo para obetener el id de la actividad require 'conexion.php'; if(isset($_GET['id_actividad'])){ $id=(int) $_GET['id_actividad']; $buscar_id=$conn->prepare('SELECT * FROM actividades WHERE id=:id LIMIT 1'); $buscar_id->execute(array( ':id'=>$id )); $resultado=$buscar_id->fetch(); ...
true
b74c91415972deded759f801004200132c2ce332
PHP
NickLiffen/sound-healing
/admin/SQL/updateResponceSQL.php
UTF-8
590
2.578125
3
[ "Apache-2.0" ]
permissive
<?php include("../../db/connect_database.php"); // ----------- Once the admin has sent a reply this file is called and it updates the status of if the user has replied ------------- //Brings in the new quantities that the user wants to update. $updateIDNew = $_POST['updateIDNew']; $updateRespondedToEmail = $_PO...
true
3efba499101ece876cf02241fdf469aa45212393
PHP
JacekDziurdzikowski/mydrinks
/tests/MyDrinks/Tests/Functional/Page/BasePage.php
UTF-8
2,255
2.921875
3
[]
no_license
<?php namespace MyDrinks\Tests\Functional\Page; use Symfony\Bundle\FrameworkBundle\Client; use Symfony\Component\DomCrawler\Crawler; abstract class BasePage implements Page { /** * @var Client */ protected $client; /** * @var Crawler|null */ protected $crawler; /** * @va...
true
d304091418d2c99517e5d16dc5ae00282134b778
PHP
Karthikadyapady/Database-Management-
/Latest_Working/delete.php
UTF-8
510
2.671875
3
[]
no_license
<?php //Connecting to the database include 'include.php'; //Getting the info_id based on the row selected $info_id = $_GET['info_id']; //Query to delete the row with that info_id from the database $sql = "DELETE FROM userinfo WHERE Info_ID=$info_id"; $result = $conn->query($sql); if ($conn->query($sql) === TRUE) {...
true
81940b79484ebb6b5f6c8338994ff9f9e664176f
PHP
YousefKhrais/book-library
/database/seeders/dbSeeder.php
UTF-8
1,255
2.578125
3
[]
no_license
<?php namespace Database\Seeders; use Illuminate\Database\Seeder; use Illuminate\Support\Facades\Date; use Illuminate\Support\Facades\DB; use Illuminate\Support\Str; class dbSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { // DB:...
true
58dbda695ac300efaf6b1f157b9451d52b9415fb
PHP
PedroPadilhaPortella/Curso_PHP7_Hcode
/04 -Manipulação de Arquivos/Manipulando Diretorios/criarDeletarDiretorios.php
UTF-8
253
3.09375
3
[ "MIT" ]
permissive
<?php //se esse diretorio não existir, crie-o, se existir, apague-o $name = 'pasta'; if(!is_dir($name)){ mkdir($name); echo "Diretorio $name criado com sucesso"; }else{ rmdir($name); echo "Diretorio $name já existe e foi removido!"; }
true
c728199b2c4866e8ace8052ba9cde4994bc3ef89
PHP
iciric/twitter-project
/web/TwitterApp/includes/functions/rssgenerator.php
UTF-8
1,329
2.5625
3
[]
no_license
<?php function generateCommentsRss($title, $link, $description, $content) { header('Content-Type: text/xml; charset=UTF-8'); $xml = new \SimpleXMLElement('<rss/>'); $xml->addAttribute("version", VERSION); $channel = $xml->addChild("channel"); $channel->addChild("title", $title); $channel->a...
true
59e5148b7d42716553261c61295c1568a6ae3353
PHP
AncaorDev/aniworld
/models/classAnime.php
UTF-8
29,652
3
3
[]
no_license
<?php //require(gestionBD.php); class Anime { //Creamos las variables private $conexion; private $id_anime; private $nom_anime; private $epi_anime; private $id_estudio; private $gen_anime; // recibe el array private $genero; // aqui se convierte el array en string private $sinopis; private $id_temp; ...
true
8618803d6a8c134932b31f364ad9ad2f0d6b82b7
PHP
dionsnoeijen/sexy-field
/test/unit/SectionField/ValueObject/VersionedTest.php
UTF-8
833
2.625
3
[ "MIT" ]
permissive
<?php declare (strict_types=1); namespace Tardigrades\SectionField\ValueObject; use PHPUnit\Framework\TestCase; /** * @coversDefaultClass Tardigrades\SectionField\ValueObject\Versioned * @covers ::<private> * @covers ::__construct */ class VersionedTest extends TestCase { /** * @test * @covers ::fr...
true
c669bbada5e8f042042d770e5b9cab4ccd323fa5
PHP
cueBlog-Club/config
/src/ConfigInterface.php
UTF-8
586
3
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace CuePhp\Config; interface ConfigInterface { /** * @param string $key * @return bool */ public function has(string $key): bool; /** * Get all Configuration Items * @return array */ public function all(): array; /** * @pa...
true
ee39b93922a41564cd438b9bb49071796eb3248e
PHP
Mrsfan/MQServer
/src/Connection/BufferedConnection.php
UTF-8
2,833
3.1875
3
[]
no_license
<?php namespace Wangjian\MQServer\Connection; use Wangjian\MQServer\Protocol\BufferInterface; class BufferedConnection implements BufferInterface { /** * connection instance * @var Connection */ protected $connection; /** * the read buffer * @var string */ protected $buf...
true
9e37d127b797fec415c5f1a6179f352d9d5f2576
PHP
ueccssrnd/battery_exams
/php/sales_one_daryll/index.php
UTF-8
1,809
2.703125
3
[]
no_license
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Sales One - Daryll</title> </head> <body> <h1>Sales One - Daryll</h1> <hr/> <?php include 'utilities.php'; if (isset($_GET['action'])) { ...
true
e32e9141e0df717574fb953dac158449c7abcabf
PHP
murayama333/pg19
/02_php/src/ex/11/func_ex2.php
UTF-8
82
2.5625
3
[]
no_license
<?php function exclaim($message) { echo $message . "!!!"; } exclaim("Hello");
true
9f2aa184e3d0c75d01acf2ea8ed5aefd96b0429e
PHP
hi-noikiy/mini-programe-framework
/addons/longbing_card/core/application/array.php
UTF-8
4,361
2.578125
3
[ "Apache-2.0" ]
permissive
<?php if( !function_exists("array_column") ) { function array_column($input, $columnKey, $indexKey = NULL) { $columnKeyIsNumber = (is_numeric($columnKey) ? true : false); $indexKeyIsNull = (is_null($indexKey) ? true : false); $indexKeyIsNumber = (is_numeric($indexKey) ? true : false); $result = array( ); ...
true
91ee15a247020bf97493e26d9a41ed7f5c5efed8
PHP
HenryGardiner/packedlunch
/updateorders.php
UTF-8
937
2.703125
3
[]
no_license
<?php //print_r($_POST); header("Location: orders.php"); include_once("connection.php"); unset($_POST['ordertable_length']); //no idea how this got into the array - something to do with the javascript formatting for the table? //print_r($_POST); $keys=array_keys($_POST);//extracts keys as a separate array $food=array(...
true
cb1a89fdfbcaa6d583fe05fd26e2678bcb1b994b
PHP
sebastianchmiel/clientapi
/src/Api/Exception/ApiException.php
UTF-8
145
2.53125
3
[]
no_license
<?php namespace App\Api\Exception; /** * ApiException */ class ApiException extends \Exception { protected $message = 'Api exception'; }
true
13e5f0d316641479ea429f972f9137110e571f6d
PHP
gustavors97/laravel-test
/app/Http/Controllers/Api/LevelController.php
UTF-8
3,178
2.59375
3
[]
no_license
<?php namespace App\Http\Controllers\Api; use Cache; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use App\Models\Level; use App\Http\Resources\LevelResource; use App\Http\Requests\LevelRequest; use Illuminate\Support\Facades\Gate; use App\Http\Controllers\Api\UserController; class LevelControlle...
true
7bde8097af2e1a804203fee5c3d5fda914221aad
PHP
mariuszgil/workshop_030620
/tests/SampleTest.php
UTF-8
473
2.578125
3
[]
no_license
<?php use DocFlow\Domain\User; class SampleTest extends \PHPUnit\Framework\TestCase { /** * @test */ public function foo() { $user = new User('foo'); $this->assertEquals('foo', $user->getUsername()); return $user; } /** * @test * @depends foo * /...
true
6210f74f36d52bc42da5b66309bb958b0c00f7c2
PHP
tigitz/medio
/examples/Collection/ContractCollectionTest.php
UTF-8
1,337
2.59375
3
[ "MIT" ]
permissive
<?php /* * This file is part of the Medio project. * * (c) Loïc Chardonnet <loic.chardonnet@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Gnugat\Medio\Examples\Collection; use Gnugat\Medio\Examples\PrettyP...
true
b88af5fcbb8e60210c919fc95ccf4dd836723cca
PHP
gchameroy/blogptitatelier
/src/AppBundle/Entity/Setting.php
UTF-8
3,614
2.515625
3
[]
no_license
<?php namespace AppBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * Setting * * @ORM\Table(name="setting") * @ORM\Entity(repositoryClass="AppBundle\Repository\SettingRepository") */ class Setting { /** * @var int * * @ORM\Column(name="id", type="integer") * @ORM\Id * @ORM\Gener...
true
04f829c6ad3a24c8d62e09370f4833772b98f6c6
PHP
VivlaSka/WEBPROJECT
/WDA_v1_DExelle_Matheo/Code/validate.php
UTF-8
1,152
2.953125
3
[]
no_license
<?php function checkUserInfo(){ $firstName = $_POST["first"]; $lastName = $_POST["last"]; $pass = $_POST["pass"]; $confPass = $_POST["confPass"]; $email = $_POST["email"]; //checken of posts niet leeg zijn, anders return false if(empty($firstName) || empty($lastName) || empty($email) ||...
true
ff85afac84afe4c84dcdc416496c417770152d3a
PHP
kusabi/uri
/tests/Unit/UriFactoryTest.php
UTF-8
890
2.671875
3
[ "MIT" ]
permissive
<?php namespace Tests\Unit; use Kusabi\Uri\Exceptions\InvalidUriException; use Kusabi\Uri\Uri; use Kusabi\Uri\UriFactory; use PHPUnit\Framework\TestCase; use Psr\Http\Message\UriFactoryInterface; use Psr\Http\Message\UriInterface; class UriFactoryTest extends TestCase { public function testCanBeInstantiated() ...
true
0a76d401a70747a980bfd5f0347c83b3cd120f76
PHP
rajiv3010/shreegroup
/app/HavePermission.php
UTF-8
456
2.515625
3
[ "MIT" ]
permissive
<?php namespace App; use DB; class HavePermission { public static function check($userid,$permission_for){ $role = DB::table('roles')->select('id')->where('code',$permission_for)->first(); if (isset($role->id)){ $roleID = $role->id; }else{ return false; } $check = DB::table('user_roles')->wh...
true
2c1935ac3b99fe300236ee095a940432a69a07bd
PHP
ithalyn/Zf2TrainingExamples
/module/Application/src/Application/Models/Card.php
UTF-8
331
2.984375
3
[]
no_license
<?php namespace Application\Models; class Card{ private $value; private $suit; public function getValue(){ return $this->value; } public function setValue($in){ $this->value = $in; } public function getSuit(){ return $this->suit; } public function setSuit($in){ $this->suit = ...
true
0d98ff9632b6c851db2c0b3a5cdf388c500b9278
PHP
rmmjava/POS
/reports/full_supplier_report.php
UTF-8
2,056
2.609375
3
[ "MIT" ]
permissive
<?php $q = "SELECT * FROM supplier WHERE (dateCreated BETWEEN '$datefrom' AND '$dateto') order by dateCreated desc"; $result = mysql_query($q) or die('unable to query'); ?> <h3 class="text-center"> INVENTORY REPORT<br />SUPPLIERS<br /> <small class="text-center text-muted">Date Range: <?php e...
true
0acff173d0788de88f27e30bab221ff289fc86c7
PHP
SimonRuaGitHub/Museo
/BaseDeDatos/ObrasFotosControlador.php
UTF-8
959
2.546875
3
[]
no_license
<?php require('Obra.php'); require('ObrasGestion.php'); require('conexion_bd.php'); $Obra = new Obra(); $GestorObras = new ObrasGestion(); /*echo $_FILES['fotoObra']['name']; echo $_FILES['fotoObra']['tmp_name']; echo $_REQUEST['nombreObra'];*/ $file = addslashes($_FILES['fotoObra']['tmp_name']); $file_...
true
c794ab75d8e825c51c7eedf6d9c8de5b9594cbf4
PHP
bkuchenb/work
/coupa_00_functions.php
UTF-8
1,131
3.078125
3
[]
no_license
<?php function sanitize_string($var){ if(get_magic_quotes_gpc()){ $var = stripslashes($var); } $var = htmlentities($var); $var = strip_tags($var); return $var; } function sanitize_mysql($var){ $var = mysql_real_escape_string($var); $var = sanitze_string($var); return $var; } fu...
true
2ebee0ccf4bb108f7ca2a6c14fd46153ca0ac579
PHP
simransolanki/HTML
/order.php
UTF-8
859
2.53125
3
[]
no_license
<?php if($_SERVER['REQUEST_METHOD']=='GET'){ $name = $_GET['name']; $category = $_GET['category']; $icecream_flavour = $_GET['icecream_flavour']; $quantity = $_GET['quantity']; $mobile = $_GET['mobile']; $address = $_GET['address']; if($name == '' || $category == '' || $icecream_flavour == '' || $...
true
1321d2f3e2891febe05aaa2f6bb463939b64985f
PHP
michnaadam33/ibexa-task
/src/Algorithm/Sequential.php
UTF-8
599
2.96875
3
[]
no_license
<?php declare(strict_types=1); namespace App\Algorithm; use App\AlgorithmInterface; use App\HostInterface; use Webmozart\Assert\Assert; class Sequential implements AlgorithmInterface { /** * @var HostInterface[] */ private array $hosts = []; private int $counter = 0; public function getH...
true
113141a3976b528a18f0888acc763f613e246fd6
PHP
coopdev/AD-users
/inc/helpers/funcs.php
UTF-8
2,117
2.703125
3
[]
no_license
<?php function createLdifFile($uploadFile) { $uploadFile = fopen($uploadFile['tmp_name'], 'r'); $headers = fgetcsv($uploadFile, 0, ','); $headers = array_map('trim', $headers); $headers = array_map('strtolower', $headers); if (in_array("uhuuid", $headers)) { $column = array_keys($headers, "uhuuid"...
true
b62053b09f7bd1a2e49d544351b62da6fd99bb65
PHP
pauloantonelli/curso_php_cursoemvideo
/aula 16/dados-1.php
UTF-8
975
3.84375
4
[]
no_license
<?php $p = "Leite"; $pr = 4.5; //echo "O $p custa R$".number_format($pr,2); //printf ("o %s custa R$ %.2f", $p, $pr); "<hr/>"; $x[0] = 1; $x[1] = 2; $x[2] = 3; //print_r($x); "<hr/>"; $txt = "Este é um exemplo de uma string digitada que pode ser que seja talvez...
true
d40b2ef23e86a37552c169d1b9035002d1def3e4
PHP
Ragde831/clase_programaci-n1
/javierMontesinos/Miempresa/Modelo/demoform.php
UTF-8
263
2.5625
3
[]
no_license
<?php if ( !empty($_POST["empleado"]) && is_array($_POST["empleado"]) ) { echo "<ul>"; foreach ( $_POST["empleado"] as $empleado ) { echo "<li>"; echo $empleado; echo "</li>"; } echo "</ul>"; }
true
56bda7ffcdf8817e580bc795426c5078e1233bb3
PHP
run100/phptest
/class/namespace/myclass.php
UTF-8
292
2.765625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: run * Date: 15/10/24 * Time: 上午10:11 */ namespace my\name; class MyClass { public function __construct() { echo __CLASS__, PHP_EOL; } }; function myfunction(){}; const MYCONST = 1; $a = new MyClass(); $c = new \my\name\MyClass();
true
c3b6f0ca9d5d26bd11c76d9339e72b48804cba86
PHP
KZTN/NotebookWithInheritance
/PessoaJuridica.php
UTF-8
871
3.125
3
[]
no_license
<?php require_once("Contato.php"); class PessoaJuridica extends Contato { protected $CNPJ; protected $inscricaoEstadual; protected $razaoSocial; public function __construct(string $CNPJ, string $inscricaoEstadual, string $razaoSocial, string $nome, string $endereco, string $email, string $contato) { ...
true
26711008bdecc5ef499775deb57cfff3fcf34909
PHP
octalmage/wib
/php-7.3.0/ext/standard/tests/strings/stripos_variation5.phpt
UTF-8
1,045
3.625
4
[ "MIT", "BSD-4-Clause-UC", "BSD-3-Clause", "LicenseRef-scancode-other-permissive", "TCL", "ISC", "Zlib", "LicenseRef-scancode-public-domain", "BSD-2-Clause", "blessing" ]
permissive
--TEST-- Test stripos() function : usage variations - heredoc string containing escape chars for 'haystack' argument --FILE-- <?php /* Prototype : int stripos ( string $haystack, string $needle [, int $offset] ); * Description: Find position of first occurrence of a case-insensitive string * Source code: ext/standar...
true
46955f8e68d4ff06cac625be4ef7ab1f096c6e95
PHP
blakefan/kaili
/system/tests/system/kaili/DirectoryTest.php
UTF-8
8,011
2.734375
3
[]
no_license
<?php namespace Kaili; /** * Test class for Directory. * Generated by PHPUnit on 2011-10-22 at 10:55:52. */ class DirectoryTest extends \PHPUnit_Framework_TestCase { /** * @var Directory */ protected $object; /** * Sets up the fixture, for example, opens a network connection. * Th...
true
edc3b8df6ff62c782ddc119eaaf217850f62ad9b
PHP
Armandoecr96/projectAPI
/app/Http/Requests/CrearProductRequest.php
UTF-8
1,099
2.703125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class CrearProductRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** * G...
true
9440020bc77751e1c53b9613caf358feec720977
PHP
railken/lara-eye
/src/Query/Visitors/KeyVisitor.php
UTF-8
2,088
2.90625
3
[ "MIT", "LicenseRef-scancode-free-unknown" ]
permissive
<?php namespace Railken\LaraEye\Query\Visitors; use Railken\SQ\Contracts\NodeContract; use Railken\SQ\Exceptions\QuerySyntaxException; use Railken\SQ\Languages\BoomTree\Nodes as Nodes; class KeyVisitor extends BaseVisitor { /** * @var string */ protected $base_table; /** * @var array ...
true
01d93bdb3dea3ffb51bb214f095489547a3a939d
PHP
FreeElephants/Configuration
/src/FreeElephants/Configuration/Reader/ReaderInterface.php
UTF-8
341
2.71875
3
[]
no_license
<?php namespace FreeElephants\Configuration\Reader; /** * @author samizdam */ interface ReaderInterface { /** * @param string $filename * * @return array */ public function readFile($filename); /** * @param string $input * * @return array */ public function r...
true
d77a494dc8002d322a4aa3338584428b487f02d1
PHP
jay-pipaliya/Addweb_Grid
/Addweb/Grid/Model/NewsManagement.php
UTF-8
2,264
2.609375
3
[]
no_license
<?php namespace Addweb\Grid\Model; use Addweb\Grid\Api\NewsManagementInterface; use Magento\Framework\Model\AbstractModel; class NewsManagement implements NewsManagementInterface { protected $newsFactory; public function __construct( \Addweb\Grid\Model\ResourceModel\Grid\CollectionFact...
true
e59467480cc498ec4665dcd828e27e6a496f0c76
PHP
yoshee08/Sence
/adm_comments_management.php
UTF-8
1,772
2.53125
3
[]
no_license
<?php include 'core/init.php'; protect_page(); admin_page(); include 'includes/overall/header.php'; if(isset($_GET['delete']) && !empty($_GET['delete'])){ $comment_id = (INT)$_GET['delete']; mysql_query("DELETE FROM `comments` WHERE `id` = '$comment_id'"); header('Location: adm_comments_management.php?success...
true
7369aec8568a5a0170ae00a7a6a41eafb2f0cf1c
PHP
jakariashu/premeim-theme
/text.php
UTF-8
864
3.3125
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>PHP</title> </head> <body> <?php $bd = "Bangladesh"; $city = ['Dhaka', 'Barishal', 'Sylhet']; if($bd == 'Bangladesh'){ echo 'Bangladesh is a beautiful country<br>'; } ...
true
cc9731a41fbaced6d827daecef814ba61feaf762
PHP
vorontsov180885/vdud
/public_html/index.php
UTF-8
4,414
2.65625
3
[]
no_license
<!-- <meta http-equiv="refresh" content="1" /> --> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script> <button type="button" onclick="foo()">Click</button> <script> function foo () { $.ajax({ url:"refreshDatabase.php", //the page containing php script ...
true
cd47c8150958902fd5286770445b88b8923a0e20
PHP
liujuan525/enterprise_station
/application/admin/model/Conf.php
UTF-8
1,690
2.734375
3
[ "Apache-2.0" ]
permissive
<?php /** * 文章 模型 */ namespace app\admin\model; use app\admin\model\BaseModel; use think\Db; class Conf extends BaseModel { /** * 模型初始化 */ public function initialize() { parent::initialize(); } /** * 根据配置中文名或者英文名查询配置信息 */ public function getConf($field, $value) { return $this -> getInfoByField($fi...
true
19ed6772fcb34139569d78132294e25b29465929
PHP
stripe/stripe-php
/lib/Service/ApplicationFeeService.php
UTF-8
4,778
2.5625
3
[ "MIT" ]
permissive
<?php // File generated from our OpenAPI spec namespace Stripe\Service; class ApplicationFeeService extends \Stripe\Service\AbstractService { /** * Returns a list of application fees you’ve previously collected. The application * fees are returned in sorted order, with the most recent fees appearing fi...
true
3713e992f787b4a8d1bcc01b43e2ca305874c70e
PHP
abhinav9876/online-clinical-trial
/app/Http/Helpers.php
UTF-8
2,435
2.5625
3
[]
no_license
<?php namespace App\Helper; use App\{ CROUser, SMOUser }; use Faker\Factory; use Illuminate\Support\Facades\Auth; class Address { public static function display($address_json) { if (empty($address_json)) return ''; $result = ''; $result .= json_decode($address_json)->address_1; ...
true