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
fd7a841de30cd6eb028838077c710984b67c85db
PHP
nangongxixi/core
/src/base/BaseProvider.php
UTF-8
2,335
2.546875
3
[]
no_license
<?php namespace j\base; use InvalidArgumentException; use j\debug\Tracer; use j\di\Container; use j\di\ServiceProviderInterface; use j\log\File; use j\log\Log; /** * Class ServiceProvider * @package j\debug */ class BaseProvider implements ServiceProviderInterface{ /** * Registers services on the given ...
true
77e82142c50eaad274afa516639781830fd9600d
PHP
panzerama/NSC-AD410-TIP-GROUP1
/prod/database/seeds/TipsTableSeeder.php
UTF-8
4,688
2.53125
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; class TipsTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { //Database DB::table('tips')->insert(array( array( 'division_id' => 1, 'cou...
true
c48432995b558e230ba48adace4e4682db371852
PHP
nooraiman/Sales-Record-System
/products/products.php
UTF-8
2,670
2.859375
3
[ "MIT" ]
permissive
<?php //SESSION CHECK session_start(); if(!isset($_SESSION['id'])) { die(http_response_code(403)); } require '../includes/database.php'; function insertProduct($name,$price,$supplier) { global $conn; $result = ""; try { $stmt = $conn->prepare("INSERT INTO product (prod_name,prod_price,su_...
true
b09261b323f2eb90f9c7a50af2567af4bfb07420
PHP
adventistchurch/alps-wordpress
/updater.php
UTF-8
2,158
2.6875
3
[ "MIT" ]
permissive
<?php namespace ALPS\Theme; class ThemeUpdater { private $name; private $version; private $metaUrl; private $cacheKey; private $cacheTtl = 3600; public function __construct($name, $version, $metaUrl) { $this->name = $name; $this->version = $version; $this->cach...
true
e51ae492abecd33943d49c825139d327d2da4475
PHP
justinaburm/bta-final-gradebook
/app/Http/Controllers/StudentsController.php
UTF-8
3,758
2.796875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Student; use App\Grade; use Session; use Auth; class StudentsController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $...
true
8862ccfcfdb4393e30e9095d31ca73d13b0909c4
PHP
szuzzah/GobblerExchange
/app/controller/PollController.php
UTF-8
5,057
2.8125
3
[]
no_license
<?php include_once '../global.php'; // get the identifier for the page we want to load $action = $_GET['action']; // instantiate a PollController and route it $sc = new PollController(); $sc->route($action); class PollController { // route us to the appropriate class method for this action public function route(...
true
715c2d4fdea21b168cf712775d372682e5dcb68d
PHP
UCLU/webform_workflow
/includes/views/handlers/webform_workflow_views_handler_filter_state.inc
UTF-8
4,780
2.53125
3
[]
no_license
<?php /** * @file * Views filter handler for webform submission workflow states. */ class webform_workflow_views_handler_filter_state extends views_handler_filter_in_operator { protected $webform; /** * Overrides parent::get_value_options(). */ public function get_value_options() { if (isset($thi...
true
e853e551d863e87529241d4c89ba5c3e5425faf1
PHP
indiwine/packagist
/src/Packagist/WebBundle/EventListener/PackageEncryptionSubscriber.php
UTF-8
2,049
2.625
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: indiwine * Date: 4/9/2018 * Time: 1:53 PM */ namespace Packagist\WebBundle\EventListener; use Doctrine\Common\EventSubscriber; use Doctrine\Common\Persistence\Event\LifecycleEventArgs; use Packagist\WebBundle\Entity\Package; use Packagist\WebBundle\Service\Encryption; c...
true
fe4a8de27a81857ad47d7f171625aae72e2dce71
PHP
Djyadav19/php-lab-work
/exp4.3.echoname.php
UTF-8
963
2.84375
3
[]
no_license
<!DOCTYPE html> <html> <head> <link rel="stylesheet" type ="text/css" href="lab.css"> </head> <body> <form method = "post"> <input type = "text" name = "fullname" placeholder = "Full name*" required/> <select name = "gender"> <option value = "">Gender...
true
c464fa15b5adb4e134233c10b02c2781f2602cbb
PHP
jhm123/InOneCloud
/application/models/model_users.php
UTF-8
2,431
2.84375
3
[]
no_license
<?php class Model_Users extends Model //модель для работы с таблицей accounts { public function __construct() { parent::__construct(); //echo md5('test'); print_r($_POST); } function add_user() { $username = $_POST['username']; $password = Hash::create('sha256', $_POST['password'], 'cats do not fliing...
true
eeb97f57f1fc8766eb0aff0bd58e10926d5e96c2
PHP
twinklebob/lyverva-server
/www/class/class.libraryuser.php
UTF-8
277
2.515625
3
[ "MIT" ]
permissive
<?php namespace Lyverva; class LibraryUser extends LyvDAL { public $iLibraryUserId = 0; public $iLibraryId = 0; public $iUserId = 0; public $iUserType = 0; public function __construct($iId = 0) { $this->sTableName = "libraryuser"; parent::__construct($iId); } }
true
049c092690665034cfcda575884a0418ee6da522
PHP
seifox/APJ
/Ejemplos/ejemplo01/contactos/Models/Paises.model.php
UTF-8
864
2.796875
3
[]
no_license
<?php /* Table structure of [paises] +--------+---------+------+----------+------+-----+---------+ | Field | Type | Size | Decimals | Null | Key | Default | +--------+---------+------+----------+------+-----+---------+ | codigo | char | 2 | | NO | PRI | | | pais | varchar | 50 | ...
true
066b2c5cdee21f7ff2ceccf9969dd9aeafce4ef8
PHP
DearSjh/tp3.2_CMS
/Admin/Lib/Action/LoginAction.class.php
UTF-8
1,872
2.609375
3
[]
no_license
<?php /** * 后台登陆 Controller * */ class LoginAction extends Action{ /** +--------------------------------- * 加载登陆界面默认 View +---------------------------------*/ public function login(){ if(IS_POST){ $username = $this->_post('login_username'); //接受用户名 $post_pwd = $this->_post('login_password','html...
true
b2a964ecbc6ba21eaaf3beb1d3e6bb9394c1e6a5
PHP
Madjidgo/BANK
/Modeles/entities/VehiculeManager.php
UTF-8
3,528
3.046875
3
[ "MIT" ]
permissive
<?php /** * [CatsManager description] */ class VehiculeManager { /** * [private description] * @var [type] */ private $_db; /** * VehiculeManager constructor. * @param $db */ public function __construct($db) { $this->setDb($db); } public function setDb($db) { /** * [$t...
true
fd4a0a47b9b3fee11c96ea8cec8224e96be5542f
PHP
googol24/design_demo
/src/Proxy/Client.php
UTF-8
322
2.671875
3
[ "MIT" ]
permissive
<?php // 自动加载 spl_autoload_register(function ($class) { if (is_file($class . '.php')) { require_once __DIR__ . '/' . "$class.php"; } }); $girl = new SchoolGirl('小红'); $boy = new Pursuit($girl); $proxy = new Proxy($boy); $proxy->giveDolls(); $proxy->giveChocolates(); $proxy->giveFlowers();
true
ea5c33952be505454bb225d0ee1ebd3a4cb8c4d4
PHP
JRhodes95/SE2
/PMApi.php
UTF-8
2,363
3.0625
3
[]
no_license
<?php //add to the JSON file by name function addByName(){ //turn user profile into assoc array $medsJSON = file_get_contents("userData.json"); $medsPHP = json_decode($medsJSON); $medComp = $_POST['medComp']; $medComp = $medComp ?:'Not entered'; $medName = $_POST['medName']; $medStren...
true
a0727e2859f01f55cd394c69af6f9daf4dbf3523
PHP
Richard095/API
/index.php
UTF-8
3,158
2.609375
3
[]
no_license
<?php include "config.php"; include "utils.php"; $dbConn = connect($db); if ($_SERVER['REQUEST_METHOD'] == 'GET') { if (isset($_GET['userId'])) { echo("nada aun"); } else { //SHOW ALL THE USERS $users = array(); $users["users"] = array(); $sql = $dbConn->prepa...
true
a466a72b3a1c587215aa06412a38fee802aeeb3a
PHP
mark-gerarts/wireworld-php
/src/Cell/EmptyCell.php
UTF-8
160
2.609375
3
[]
no_license
<?php namespace WireWorld\Cell; final class EmptyCell implements Cell { public function step(array $neighbours): Cell { return $this; } }
true
a3170a86eef2b9837cb4a40e7bdd33e10c87461b
PHP
MohammedxMajid/NairobiSizzle
/application/modules/campuswisdom/models/Exps.php
UTF-8
2,184
2.953125
3
[]
no_license
<?php class Campuswisdom_Model_Exps { protected $_Category = Null; protected $_Name = Null; protected $_ExpId = Null; protected $_Views = null; protected $_Id = null; protected $_Comment = null; public function __construct(array $options = null) { if (is_array($options)) { ...
true
959a77f3ea3e3ad33e8877bcaa50166bacc4e5ff
PHP
mirekmarek/php-jet
/_profiler/Controller.php
UTF-8
3,824
2.59375
3
[ "BSD-2-Clause" ]
permissive
<?php /** * * @copyright Copyright (c) Miroslav Marek <mirek.marek@web-jet.cz> * @license http://www.php-jet.net/license/license.txt * @author Miroslav Marek <mirek.marek@web-jet.cz> */ use Jet\Debug; use Jet\Debug_Profiler; use Jet\Debug_Profiler_Run; use Jet\IO_Dir; use Jet\IO_Dir_Exception; use Jet\IO_File; us...
true
440f0b8d35cdb9057a19e96b5f6380123fd86727
PHP
DizzyBHigh/FP-DataBundle
/Builder/TimeFrameBuilder.php
UTF-8
2,211
2.859375
3
[ "Apache-2.0", "BSD-2-Clause" ]
permissive
<?php namespace FantasyPro\DataBundle\Builder; use FantasyPro\DataBundle\Entity\TimeFrame; use FantasyPro\DataBundle\Helpers\DateHelper; use FantasyPro\DataBundle\Helpers\SeasonHelper; class TimeFrameBuilder { /** * @var DateHelper $dateHelper */ private $dateHelper; private $seasonHelper; ...
true
e874a38fc62c5699acce8c748062983935ee7309
PHP
gpsingh159/school
/Autoload.php
UTF-8
355
2.671875
3
[]
no_license
<?php class Autoload { public static function load() { spl_autoload_register(function ($class) { $newClass = str_replace('\\', DIRECTORY_SEPARATOR, $class); $basePath = realpath(__DIR__) . DIRECTORY_SEPARATOR; $file = $basePath . $newClass . ".php"; inclu...
true
85c827c4abf333ce4b1060fa3835a4241dc24175
PHP
cz764/Web-Mobile-Development
/userinfo.php
UTF-8
1,206
2.5625
3
[]
no_license
<?php function userinfo_name($uid, $fname) { echo $fname; } function userinfo_contact_num($uid, $fname) { $username = "websysS147"; $password = "websysS147!!"; $hostname = "websys3.stern.nyu.edu"; $dbhandle = mysql_connect($hostname, $username, $password) or die("Unable to connect to MySQL"); $selected = mysql_sele...
true
e2cbc9a77f008139a26158ce7d54e0e797f3e5cb
PHP
ProcessMaker/docker-executor-java
/src/ScriptRunners/JavaRunner.php
UTF-8
540
2.5625
3
[]
no_license
<?php namespace ProcessMaker\ScriptRunners; class JavaRunner extends Base { /** * Configure docker with java executor * * @param string $code * @param array $dockerConfig * * @return array */ public function config($code, array $dockerConfig) { $dockerConfig['ima...
true
c91cf13281e2d644fac58e3238472cfba909fbcc
PHP
Alanmugz/RallyTimingSystem
/Website/entrylist.php
UTF-8
4,413
2.671875
3
[]
no_license
<?php session_start(); if (isset($_GET["eventid"])) { $_SESSION["eventid"] = $_GET["eventid"]; } else { $_SESSION["eventid"] = 1; } require_once('connection.php'); require_once('event.php'); require_once('event_individual.php'); require_once('entrant.php'); require_once('custom_comparision.php'); $eventDA...
true
13471b97c9a466ff8604015b057807adf7f2b5de
PHP
Turtle1991/T
/library/clsRouter.php
UTF-8
3,872
2.546875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Turtle * Date: 2016/5/24 * Time: 10:00 */ class clsRouter { /** * 项目 * @var string */ public $entry = ''; /** * 模块 * @var string */ public $module = ''; /** * 方法 * @var string */ public $method = ''; ...
true
266a79349259d523845ca1b33a81235718bbd571
PHP
HeinThuraWynnn/elearning
/backend/models/Enroll.php
UTF-8
1,750
2.78125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace backend\models; use Yii; /** * This is the model class for table "enroll". * * @property integer $enroll_id * @property integer $enroll_student_reg_no * @property integer $enroll_course_code * @property string $enroll_date * * @property User $enrollStudentRegNo * @property Course $enrollCour...
true
5f7267d6d174284a0cbfebdd271181b9fe540179
PHP
ouillon/ProjMediV1
/controller/frontendController.php
UTF-8
2,456
2.828125
3
[]
no_license
<?php /** * affichera le menu général de l'application frontend */ function menu() { // rien à faire d'autre que d'appeler la vue de menu // qui s'appelle frontendmenu.php dans le dossier views // il faut créer cette vue global $twig; $template = $twig->loadTemplate('menu.html.twig'); $entry=array("lien"...
true
a7ba6c72608f534159b5722c97ee20032cfe5da2
PHP
ModernPUG/modernpug.org
/tests/Unit/Services/StripArticlesTest.php
UTF-8
1,356
2.609375
3
[ "MIT" ]
permissive
<?php namespace Tests\Unit\Services; use App\Services\Blog\StripPosts; use Tests\TestCase; class StripArticlesTest extends TestCase { public function testPanel() { $originText = "<html><head><style>.html{}</style></head><body><h1>제목</h1><br>본문 <script>console.log('test')</script></body></html>"; ...
true
01d7249a742d6ce63ac602087d1a7a0c8ae8c49f
PHP
marcellodesales/my-cs-research
/bs-cs-ufal-brazil/lab-open-source/classi-a/src/classes/address.php
UTF-8
5,218
2.953125
3
[]
no_license
<? require("/classia/classes/security.php"); class Address{ var $database = "classA"; var $connection; var $id_person = ""; //to get these information we use a particular get method var $kindOfAddress = ""; var $neighborhood = ""; var $country = ""; ...
true
f8335b28619ba371ed11b40675e03e413a3f10ac
PHP
ubyte-source/config
/src/Space.php
UTF-8
8,265
2.8125
3
[ "MIT" ]
permissive
<?php namespace TheIconic\Config; use TheIconic\Config\Exception\ParserException; use TheIconic\Config\Exception\PreconditionException; use TheIconic\Config\Parser\AbstractParser; use TheIconic\Config\Parser\Autodetect as Parser; /** * handler for shared application config * * @package Shared\Helper */ class Spa...
true
f6cec17fa6cd9ebe3b8315151c706edbbff0038f
PHP
geovannyjrz/curso-laravel
/blog/app/Http/Controllers/UsersController.php
UTF-8
1,305
2.625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\User; class UsersController extends Controller { public function profile(){ return view ('users.profile'); } public function update(User $user){ $this->validate(request(), array( 'txt-name' => 'required', 'txt-mail' => 'require...
true
e2ffd52fd39ceee62ea9c8809c125a605498855d
PHP
mhandhadid2020/hello-world
/f3.php
UTF-8
805
2.984375
3
[]
no_license
<?php // user sent a GET header with key = secret_access, val = true, so echo $_GET["secret_access"]; // output: true /** * @return string */ function extracted1() { $secret_access = "u"; echo $secret_access; return $secret_access; } $secret_access = extracted1(); // output: session_s...
true
98b596193fee507a1f3518609c4683f0e4a5e918
PHP
Brammm/vat
/src/Validator/ValidatorSK.php
UTF-8
1,100
3.234375
3
[ "MIT" ]
permissive
<?php namespace Brammm\Vat\Validator; /** * VAT format: [C1 C2 C3 C4 C5 C6 C7 C8 C9 C10] * * Range: * C1 ... C10 Numeric * C1 In the range 1...9 * C2, C4 ... C10 In the range 0...9 * C3 One of 2, 3, 4, 7, 8, 9 * * Rules: * [C1 C2 C3 C4 C5 C6 C7 C8 C9 C10] * [C1 C2 C3 C4 C5 C6 C7 C8...
true
4f7d24e3863aa7fbe6b786b8bf533ac65492a746
PHP
ridho21/SMP-KU
/function/functions.php
UTF-8
21,762
2.6875
3
[]
no_license
<?php // koneksi ke database pendataan_siswa $conn = mysqli_connect('localhost', 'id15778161_root', '!Masuk123456', 'id15778161_pendataan_siswa'); function query($param) { global $conn; $result = mysqli_query($conn, $param); $rows = []; if (mysqli_num_rows($result) > 0) { while ($row = mysqli_fetch_ass...
true
5a19ce46a81f135b18d8910c339a118a0e9ea954
PHP
Denisof/City
/City.php
WINDOWS-1251
7,351
3
3
[]
no_license
<?php mb_internal_encoding('UTF-8'); class Flat { public $number;// public $porch;// public $rooms;//- public $square;// public $level;// public $tenants;//- public $balkons;//- // public function count_electricity($price=0.75,$consuption=30){ return $this->tenants*$price*$consuption; } // ...
true
ad9b0c989351680dc04af83d210b8eda6b60b276
PHP
vluzrmos/laravel-func-helpers
/src/FuncHelpers/helpers/string.php
UTF-8
1,838
3.171875
3
[]
no_license
<?php /** * Alias to Lang::get * @return String [description] */ function t() { return call_user_func_array("Lang::get", func_get_args()); } /** * Alias to Str::words * @param $str * @param int $limit * @param string $end * @see \Illuminate\Support\Str * @return mixed */ function str_words($str, $limit = ...
true
ed39347632dc9ee01dbdc2d8fe33db516ed46163
PHP
jakeobson/Kraken
/app/Document.php
UTF-8
882
2.6875
3
[]
no_license
<?php namespace App; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; class Document extends Model { use SoftDeletes; protected $dates = ['deleted_at']; protected $fillable = ['filename', 'path', 'extension']; public static function upload($request){ if...
true
8e854de69339d3085d9c5ff30b4d2ab7f9a94d18
PHP
gregjava/tutusfx_vue
/src/assets/db/contactus.php
UTF-8
1,308
2.625
3
[]
no_license
<?php if(isset($_POST['submit'])){ extract($_POST); $error =""; if(empty($subject) || strlen($subject)<3){ $error .= "Please provide a valid subject for us.<br />"; } else if(empty($dept)){ $error .= "Please select a valid department.<br />"; } else if(empty($email) || strlen($email)<7){ $error .= "Please ...
true
21c2507529b6767a94cd628e2e517e2c3c38bcf0
PHP
sylvainmetayer/docker-betisier-tp
/src/classes/CitationManager.class.php
UTF-8
13,253
2.84375
3
[]
no_license
<?php class CitationManager { private $db; public function __construct($db) { $this->db = $db; } /* Prend en paramètre un objet citation, et l'ajoute dans la base de données. Retourne qqch != 0 si l'insertion s'est mal passée. */ public function add($citation) { $sql = "INSERT INTO citation (per_num...
true
dd17bf1b8c51f339a51d1e86f791e6acc62d51de
PHP
conorwong/duxcms-2.1
/app/base/hook/TempalteHook.php
UTF-8
9,105
2.859375
3
[ "MIT" ]
permissive
<?php namespace app\base\hook; /** * Dux模板标签类 */ class TempalteHook { private $__ldel = '{'; private $__rdel = '}'; private $__ltag = '<!--'; private $__rtag = '-->'; private $_template_preg = array(); private $_template_replace = array(); public function templateParse($template) { ...
true
d08cdf5b1eb8d8684e6d49e7df9f838f2e129287
PHP
Vaziria/taniweb
/database/factories/UlasanFactory.php
UTF-8
628
2.515625
3
[]
no_license
<?php namespace Database\Factories; use App\Models\Ulasan; use Illuminate\Database\Eloquent\Factories\Factory; class UlasanFactory extends Factory { /** * The name of the factory's corresponding model. * * @var string */ protected $model = Ulasan::class; /** * Define the model's...
true
a182c9e8136a8f463eea5bcfd13773f5d50ced01
PHP
vitalii-komenda/TripSorter
/App/Card/CardBuilder.php
UTF-8
508
2.9375
3
[ "MIT" ]
permissive
<?php namespace App\Card; class CardBuilder{ protected $types = [ 'train' => 'Train', 'airport bus' => 'AirportBus', 'flight' => 'Flight' ]; public function fromArray($card) { if (isset($this->types[$card['transport_type']])) { $type = "App\\Card\\" . ...
true
e414eca78940eb8d09f764dede85fc7f7bea6e51
PHP
rferic/learning-laravel
/practice2/app/Http/Requests/IngredientRequest.php
UTF-8
1,904
2.71875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class IngredientRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { //TODO Authorice Request (without Controll...
true
caca2c3ed83bf7b10df98edc2bb2f2a5766f9481
PHP
nadavkav/RTL-BIDI-Hebrew-Moodle-Plugins
/blocks/quickmail/tabs.php
UTF-8
896
2.609375
3
[]
no_license
<?php // $Id: tabs.php,v 1.2 2007/03/02 03:06:53 mark-nielsen Exp $ /** * Tabs for Quickmail * * @author Mark Nielsen * @version $Id: tabs.php,v 1.2 2007/03/02 03:06:53 mark-nielsen Exp $ * @package quickmail **/ if (empty($course)) { error('Programmer error: cannot call this script without $course s...
true
a2535425fc84894e4a65e3268b828ab7770eed1b
PHP
chanouuan/qianxing-server
/application/common/TradeSource.php
UTF-8
907
2.796875
3
[]
no_license
<?php /** * 交易单来源 */ namespace app\common; class TradeSource { const REPORT = 1; static $message = [ 1 => '报案' ]; /** * 获取支付用途 * @return string */ public static function getUseName ($code) { if ($code == self::REPORT) { return '高速公路路产损坏赔偿金'; ...
true
1bf53e218ec0194434fdaac8f77580756a9efc19
PHP
hamstelfo/ITRS
/core/controller.php
UTF-8
1,846
2.671875
3
[]
no_license
<?php class Controller{ private $id; private $source; private $viewSource; private $status; private $lng; public $data; public $extraJS; public $extraCSS; function Controller($id) { $this->status= "off"; $this->id= mb_strtolower($id); $this->source=...
true
032c62f5c133fca31a4552de9e579f336fe399e9
PHP
ricardoudibenedetto/programacion3
/Apis/index.php
UTF-8
888
2.921875
3
[]
no_license
<?php //carga todas las dependencias require 'vendor/autoload.php'; include "./alumnos.php"; $alumnos; $app = new \Slim\App(); $a1 = new alumno("juan", "lopez", "juanl@gmail.com",1); $a2 = new alumno("juan", "lopez", "juanl@gmail.com",2); $a3 = new alumno("juan", "lopez", "juanl@gmail.com",3); $a4 = new alumno("juan...
true
9e8c2112ff8eaf023ab364882b98300d967c5338
PHP
phpable/bender
/src/Abstractions/TNested.php
UTF-8
843
2.625
3
[ "MIT" ]
permissive
<?php namespace Able\Bender\Abstractions; use \Able\Bender\Abstractions\AExecutable; use \Able\Helpers\Src; use \Generator; use \Exception; trait TNested { /** * @var array */ protected array $Stack = []; /** * @param string $line * @return bool * * @throws Exception */ public final function pars...
true
d283523aaafbcd73e5e694f869ad77d0079ac8ab
PHP
KorczMichal/zsk
/PROJ/quiz.php
UTF-8
2,593
2.640625
3
[]
no_license
<?php $url=$_SERVER['REQUEST_URI']; $sql="SELECT * from word_eng join class_word on class_word.id_word=word_eng.id_eng join class on class_word.id_class=class.id_class where class.id_class=$_GET[class_id]"; $result=mysqli_query($connect,$sql); $i=0; while ($row = mysqli_fetch_assoc($result)) { $words[$...
true
095919b8c9d0685df01f13f484c921a11d07ffd0
PHP
dkd/typo3-ext-cmis-fal
/Classes/UserFunction/RepositorySelectorFiller.php
UTF-8
1,051
2.6875
3
[]
no_license
<?php namespace Dkd\CmisFal\UserFunction; use Dkd\CmisService\Factory\CmisObjectFactory; use Dkd\CmisService\Initialization; /** * Class RepositorySelectorFiller */ class RepositorySelectorFiller { /** * Adds possible options to the selector field that selects * which CMIS "server" to use as top level for the...
true
7ba0b1d1a7b3b21e115cbed048f1353b3be07bb2
PHP
mishagodovanuk/simple-blog
/Simple/Blog/Helper/Data.php
UTF-8
1,601
2.640625
3
[]
no_license
<?php declare(strict_types=1); namespace Simple\Blog\Helper; use Magento\Framework\App\Helper\AbstractHelper; use Magento\Framework\App\Helper\Context; use Magento\Framework\App\Request\DataPersistorInterface; use Simple\Blog\Model\Post; /** * Class Data * * @package Simple\Blog\Helper */ class Data extends Abs...
true
6dfad3a9289c44c5f38a8bfc42ac70e7459dbe5c
PHP
prithvimallepula/Alert-System
/activate.php
UTF-8
1,105
2.5625
3
[]
no_license
<html> <body> <?php $con = mysql_connect("localhost", "root",""); mysql_select_db("test1", $con); $selected_val = $_POST['status']; $check = "select count(*) from nametable WHERE number1=$_POST[num1] AND number2=$_POST[num2] AND number3=$_POST[num3]"; $check2=mysql_query($check); $check_dupes= mysql_fetch_array...
true
ec2176a230918085bede0a02ae4443e404b157b6
PHP
hcdisat/payment
/src/Payment/Core/Requests/CaptureRequest.php
UTF-8
716
2.578125
3
[]
no_license
<?php namespace HcDisat\Payment\Core\Requests; class CaptureRequest extends AbstractRequest { /** * Get the raw data array for this message. The format of this varies from gateway to * gateway, but will usually be either an associative array, or a SimpleXMLElement. * * @return mixed */ ...
true
9c481489b9bd9f36463dfaa8ff8f1f2399051666
PHP
jonbrennecke/connect
/inc/google-api.php
UTF-8
1,539
2.671875
3
[]
no_license
<?php /** * Google Plus API Class * * @package WordPress * @subpackage Social * @since Social 1.0 * * * @see https://developers.google.com/accounts/docs/ * @see https://console.developers.google.com/ */ // require the base class require_once 'oauth.php'; class GPlus_API extends OAuth { /** * @see 'oau...
true
971a88a5c7ef8909ee6f13f4a3b341a05aa3e565
PHP
matteo23code/php-snacks-b1
/snack1.php
UTF-8
759
3
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Snack1</title> </head> <body> <!-- PHP Snack 1: Creiamo un array 'matches' contenente altri array i quali rappresentano delle partite di basket di un’ipotetica tappa del calendario. Ogni array della partita avrà una squadra di cas...
true
f270a2c83924dc0ef45dd05ae2031655430f6c8c
PHP
AdrianSchneider/Qissues-Legacy
/src/Qissues/Interfaces/Console/Output/View/IssuesList/BasicView.php
UTF-8
1,076
2.78125
3
[ "MIT" ]
permissive
<?php namespace Qissues\Interfaces\Console\Output\View\IssuesList; use Qissues\Domain\Model\Response\Issues; use Qissues\Interfaces\Console\Output\Renderer\TableRenderer; use Qissues\Application\Tracker\Support\FeatureSet; class BasicView { protected $tableRenderer; public function __construct(TableRenderer...
true
f6c4fb0a48f774ed2022b8c5caa982600af9d1d0
PHP
wh1110000/Core
/src/Http/Repositories/WebRepository.php
UTF-8
3,248
2.515625
3
[]
no_license
<?php namespace wh1110000\CmsL8\Http\Repositories; use Illuminate\Support\Arr; use Illuminate\Support\Str; /** * Class WebRepository * @package Workhouse\Core\Repositories */ class WebRepository { /** * @var */ private $page; /** * @var */ public $paginate = 10; private $post; /** * @var Gen...
true
c4710abb56ec46451730f6dc04408bea879cf361
PHP
Innmind/AMQP
/src/Command/DeclareQueue.php
UTF-8
2,866
2.546875
3
[ "MIT" ]
permissive
<?php declare(strict_types = 1); namespace Innmind\AMQP\Command; use Innmind\AMQP\{ Command, Client\State, Model\Queue\Declaration, Model\Queue\DeclareOk, Model\Count, Transport\Connection, Transport\Connection\MessageReader, Transport\Frame\Channel, Transport\Frame\Method, Tra...
true
c41cdf57c448ba94451737f97826b04e499064e4
PHP
volkovmqx/interplanets-date-system-converter
/app/Console/Commands/Planets/IncreaseTimelineCommand.php
UTF-8
2,209
2.9375
3
[ "MIT" ]
permissive
<?php namespace App\Console\Commands\Planets; use Illuminate\Console\Command; use App\Models\Planet; use Illuminate\Support\Facades\Validator; class IncreaseTimelineCommand extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'p...
true
25dfaba216669edf5e5d4b8aacf6a4a2c3adf67a
PHP
illuminatech/array-factory
/tests/Support/CarRent.php
UTF-8
591
2.953125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace Illuminatech\ArrayFactory\Test\Support; class CarRent { /** * @var Person */ public $person; /** * @var Car */ public $car; /** * @var float|int */ public $price = 0; public function __construct(Person $person, Car $car) { $this-...
true
b9250b0d26cc196d9c8bfdaa42d16ebdec8903fa
PHP
briend17/user-app
/app/Listeners/SendEmailNotificationUser.php
UTF-8
626
2.59375
3
[]
no_license
<?php namespace App\Listeners; use App\Events\UserRegistered; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Queue\InteractsWithQueue; use Illuminate\Support\Facades\Mail; class SendEmailNotificationUser { /** * Handle the event. * * @param UserRegistered $event * @return void ...
true
5039bd41426db60b73d80873846a60bbe5523ff1
PHP
karthik3212/lordsmobile-bank
/tests/Unit/HelpersFunctionsTest.php
UTF-8
565
2.546875
3
[]
no_license
<?php namespace Tests\Unit; use Tests\TestCase; /** * Class HelpersFunctionsTest. */ class HelpersFunctionsTest extends TestCase { /** @test */ public function rssFormat() { $this->assertEquals('1,200,000', rss_format(1200000)); $this->assertEquals('99,999', rss_format(99999)); } ...
true
20b93b09f5ad1fa392f25ddd21b30759d2bf604d
PHP
Theodosis/starcraft2wiki
/settings.example.php
UTF-8
836
2.65625
3
[]
no_license
<?php /* * This settings file is for the sandbox page (and later for the production page). * For local copies, you should create a localsettings.php file. */ $settings = array( 'base_url' => '', // used on <base href=""> 'testing' => true, // set to false on production '...
true
a8052f0b727c5b15097ec0b2096877cb6caa5fd9
PHP
FruitsDuChene/Nuit-de-l-Info-2011
/web/Tools/CVignette.php
UTF-8
2,662
3.109375
3
[]
no_license
<?php class CVignette { public static function cheminVignette($chemin,$ext,$x,$y) { $chemin_vignette = $chemin.'_'.$x.'_'.$y.'.'; if(!file_exists($chemin_vignette.$ext)) { if (!file_exists($chemin_vignette.'png')) { return self::resizeImage($chemin,$ext,$x,$y); } return $chemin_vignette.'png';...
true
19597d17d6866b13749145de38f33ff922834374
PHP
mrself/php-version
/tests/Version/FromStringTest.php
UTF-8
1,091
2.765625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Mrself\Version\Tests\Version; use Mrself\Version\EInvalidVersion; use Mrself\Version\Version; use PHPUnit\Framework\TestCase; class FromStringTest extends TestCase { public function testExceptionIsThrownIfSomeNameIsMissing() { $this->expectException(EInvalidVe...
true
137020cc99e739a3976442892a88ce2e1bb5025c
PHP
tolan/performance-monitor
/Performance/Main/Web/Controller/Abstracts/Json.php
UTF-8
815
2.59375
3
[ "MIT" ]
permissive
<?php namespace PM\Main\Web\Controller\Abstracts; /** * Abstract class for JSON controller. * * @author Martin Kovar * @category Performance * @package Main */ class Json extends Controller { /** * Returns response with JSON template. * * @return \PM\Main\Web\Compone...
true
9cb1dab365a210ce38409c81b96c241d85e6715a
PHP
andrii-maglovanyi/rest-service
/tests/app/Components/Model/AbstractMapperTest.php
UTF-8
2,039
2.671875
3
[]
no_license
<?php namespace RestService\tests\app\Components\Model; use RestService\tests\BaseDbTestCase; use RestService\src\Entities\Post; use RestService\src\Mappers\PostMapper; class AbstractMapperTest extends BaseDbTestCase { protected $data = array(); protected $post; public function setUp() { $th...
true
ed3ea928d919cf8a052b9802b23185e33076c705
PHP
debanks/backend
/database/seeds/MemeMachineSeeder.php
UTF-8
14,299
2.828125
3
[]
no_license
<?php use Illuminate\Database\Seeder; use App\User; use App\Models\MemeMachine\Competition; use App\Models\MemeMachine\Event; use App\Models\MemeMachine\Stage; use App\Models\MemeMachine\Result; use App\Models\MemeMachine\Poll; use App\Models\MemeMachine\Choice; use App\Models\MemeMachine\Answer; class MemeMachineSee...
true
3cf4a7ea0dbaa01081c885e2d3f91c6cfd63b4ff
PHP
Drane8/Proyecto3_PDO
/modelo/Articulo.php
UTF-8
918
3.53125
4
[]
no_license
<?php class Articulo { private $codigo; private $articulo; public function __construct($codigo,$articulo) { $this->codigo = $codigo; $this->articulo = $articulo; } /** * Devuelve el valor de codigo * * @return mixed Valor de codigo */ public function get...
true
41ec4a6ef002ceb4c59b049807d8ead9e14d73e6
PHP
amrndr/University-Hunt
/AndroidProjectUH/webservice/final_json.php
UTF-8
1,942
2.640625
3
[]
no_license
<?php /* * Following code will list all the university */ // array for JSON response $response = array(); // include db connect class mysql_connect("localhost","root","") or die(mysql_error()); mysql_select_db("universitydb"); $t_fees_min = $_GET['t_fees_min']; $t_fees_max = $_GET['t_fees_ma...
true
7a3867b3da32ea29c817253e2a0b800cb1d98550
PHP
raniela/sistema-gerenciador-certificados
/application/Helper/Action/Upload.php
UTF-8
11,266
2.703125
3
[]
no_license
<?php class Zend_Controller_Action_Helper_Upload extends Zend_Controller_Action_Helper_Abstract { /** * * @var Zend_File_Transfer_Adapter_Http */ private $_fileTransfer; /** * path do destino do arquivo * @var string */ private $_destination; public fun...
true
a25fa2e3455980a186e858b18c4c3422cb95c252
PHP
maickon/DB_PHP_API
/class/db_create_database.class.php
ISO-8859-2
616
3.234375
3
[]
no_license
<?php /* * @class Db_crate_database * * Classe responsvel por criar um banco de dados. */ class Db_crate_database{ private $db_database_name; private $conn; function __construct($class){ $this->conn = new Db_connection(HOST, USER, PASS); $this->db_database_name = get_class($class); } function db_c...
true
656e9ed3d0ab421335ab45adb2bb9ca0bae6f132
PHP
yangqing870410/design_pattern
/比萨店(工厂模式)/简单工厂/PizzaStore.php
UTF-8
439
2.796875
3
[]
no_license
<?php include_once 'SimplePizzaFactory.php'; /** * 披萨店 * Created by PhpStorm. * User: Administrator * Date: 2020/5/4 * Time: 10:36 */ class PizzaStore { /** * 下单处理 * @param string $type */ public function orderPizza($type) { $pizza = (new SimplePizzaFactory())->createPizza($type); ...
true
cd9bad106899296211186cb05abbddfa77970bc4
PHP
amadrid196/raleighmechanical
/app/Http/Controllers/Mail/sendMail.php
UTF-8
1,511
2.671875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Mail; use App\Http\Controllers\Controller; use App\Mail\contactMail; use Illuminate\Http\Request; use Illuminate\Support\Facades\Mail; class sendMail extends Controller { public function PostContacto(Request $request) // Obtenemos los datos que nos envian por la ruta PostCont...
true
585465be453afc19febdfb42bee3af94af1d4de8
PHP
jcx975/TutoringCalendar
/current_students/tutoring/admin/functions/sortEvents.php
UTF-8
811
3.34375
3
[]
no_license
<?php // // Sorts an events array based upon the start time and end time // if(!function_exists("sortEvents")) { function sortEvents($x,$y) { // Includes all necessary function include "convertTime.php"; // Converts all times to 24 hour time $xStart = convertTime($x[1],$x[2],$x[3]); $yStar...
true
02be56d0ca9ca44f0bc7bbe1e7935b36dd1f8748
PHP
precipitevolissimevolmente/LLAMA
/restServiceF.php
UTF-8
2,085
2.609375
3
[]
no_license
<?php header("Content-Type:application/json"); require('Enum.php'); require('EmailService.php'); include('php/config.php'); require('php/util.php'); const WRONG = "WRONG"; const CORRECT = "CORRECT"; const END_TEST_SESSION = "END_TEST_SESSION"; const GUESS = "GUESS"; if ($_SERVER['REQUEST_METHOD'] == 'GET') { $data...
true
78fb107e02fe119c6e215c17523ab5f93db626f4
PHP
maximw/PieceofScript
/src/PieceofScript/Services/Values/VariableName.php
UTF-8
896
3
3
[]
no_license
<?php namespace PieceofScript\Services\Values; use PieceofScript\Services\Values\Hierarchy\Operand; class VariableName extends Operand { const MODE_VALUE = '$'; const MODE_TYPE = '@'; /** @var string */ public $name; /** @var array */ public $path = []; /** * Return $Value or @T...
true
59bbbfadabcde3db1b580a7119f5f22747b793a1
PHP
smichaelsen/t3bits
/Classes/Podlove/Modules/Contributors/Shortcodes.php
UTF-8
1,592
2.828125
3
[]
no_license
<?php namespace T3Bits\Podlove\Modules\Contributors; use Podlove\Model; use Podlove\Modules\Contributors\Model\Contributor; use Podlove\Modules\Contributors\Model\EpisodeContribution; class Shortcodes extends \Podlove\Modules\Contributors\Shortcodes { public function __construct() { remove_shortcode('podlove-cont...
true
74551d89f8831c7fcdbabd1ca04e663b3a9d331b
PHP
larmdcm/concise-framework
/src/concise/Routing/Document.php
UTF-8
1,457
2.734375
3
[]
no_license
<?php namespace Concise\Routing; class Document { protected $rules; public function attach (Rule $rule,$options = []) { $this->rules[] = [ 'sort' => isset($options['sort']) ? $options['sort'] : count($this->rules), 'rule' => $rule, 'enabled' => isset($options['enabled']) ? $options['enabled'] : ...
true
2ac240d5504d4dfc9c29df91aa184630ce4b33d4
PHP
leoomarques/ProgWeb
/PHP/PHPex3/EquipamentoSonoro.php
UTF-8
386
2.71875
3
[]
no_license
<?php namespace Equipamento\Sonoro; /** * */ class EquipamentoSonoro extends \Equipamento\Equipamento{ public $volume; public $stereo; function __mono($stereo){ $this->stereo = false; } function __stereo($stereo){ $this->stereo = true; } function __liga(){ parent::liga(); $this->volume = 5; } ...
true
28ed96b9e226a011dc095dd348990c1c10739177
PHP
Jebbs/dsfml.org
/tutorials/2_4/audio/streams.php
UTF-8
7,159
2.578125
3
[ "MIT" ]
permissive
<?php include $_SERVER['DOCUMENT_ROOT'].'/site_builder.php'; head("Custom audio streams"); section("Audio stream? What's that?"); paragraph( "An audio stream is similar to music (remember the $MUSIC class?). It has almost the same functions and behaves the same. The only difference is that an audio stream doesn't play ...
true
2ac310eb736ccf981a9c9a007eb3563143e760a1
PHP
whoaitsaimz/laurieg
/wp-content/themes/striking/framework/widgets/sliderposts.php
UTF-8
6,624
2.609375
3
[]
no_license
<?php /** * Slider_Posts Widget Class */ class Theme_Widget_Slider_Posts extends WP_Widget { function __construct() { $widget_ops = array('classname' => 'widget_slider_posts', 'description' => __( "Displays the popular posts on your site", 'striking_admin') ); parent::__construct('slider_posts', THEME_SLUG.' - ...
true
ff4484485169138a8e54b39a49fb5ee14e06cd97
PHP
grawlixes/assignment5
/create.php
UTF-8
844
2.890625
3
[]
no_license
<?php $username = $_POST["username"]; $password = $_POST["password"]; # connecting $dbname = "kfranke1_assignment5"; $dbpassword = "Imuabae6eita"; $dbuser = "kfranke1"; $host = "mysql.cs.binghamton.edu"; $cid = mysqli_connect($host, $dbuser, $dbpassword, $dbname); # First make sure the user doesn't exist in the tab...
true
46b2f478f0ae0c4e77ffe21ffca246f7a3e44ef8
PHP
tak357/kuchikomi
/app/Models/Item.php
UTF-8
1,977
2.703125
3
[]
no_license
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Item extends Model { protected $guarded = ['id']; /** * クチコミスコア上位3製品を出力する * 優先順位:1.クチコミ平均点, 2.クチコミ件数 * @return string */ public static function kuchkomiRankingOutput() { $ranking_items = Item::orde...
true
ec50d0900a22000dfba779f71044a5ab23d50aff
PHP
Saki105/employee_list_php
/users/login.php
UTF-8
1,760
2.6875
3
[]
no_license
<?php session_start(); require_once("../config/config.php"); require_once("../model/User.php"); try { $user = new User($host, $dbname, $user, $pass); $user->connectDb(); if($_POST) { $result = $user->login($_POST); if(!empty($result)) { $_SESSION['User'] = $result; header('Location: /employee...
true
6ad5ce33e7f56dac5feab744027ca5190dc6b5dd
PHP
pvhung7792/curl-crawler
/Application/PageParser/VietnamnetParser.php
UTF-8
732
2.5625
3
[]
no_license
<?php namespace PageParser; //require_once '../Application/Libs/Parser/Parser.php'; use Libs\Parser\Parser; /** * Class VietnamnetParser * Redefine the properties of Parser class with * regex to parser the html data get from website Vietnamnet.vn */ class VietnamnetParser extends Parser { protected $regexTitl...
true
199e26143f139651ba20f2878aa39aa7ac5a2469
PHP
enmand/Cerenkov
/test/classes/file/DatabaseFile.php
UTF-8
10,247
3.078125
3
[]
no_license
<?php /** * DatabaseFile.php * * @author Cerenkov Group * @copyright Cerenkov 2007 * @package classes/file */ class DatabaseFile extends File implements FileInterface { /* * File data stored in a 'files' table within the database * The path provides a unique lookup value * Data is stored in text fields a...
true
de520067b1597ce47b0fbda75ebc1e692fa4f262
PHP
t7160304/Smartkernel
/Framework/Php/framework/framework/web/smartcookie.php
UTF-8
2,339
3.15625
3
[]
no_license
<?php /* * 项目:Smartkernel.Framework * 作者:曹艳白 * 邮箱:caoyanbai@139.com */ namespace Smartkernel\Framework\Web { /* * Cookie操作类 */ class SmartCookie { /* * 增加存储的数据 * * @param string $category,分类 * @param array $keyValues,存储的键值对 * @param int $ti...
true
f63e46007af0a8398bb0738b7c39e67a81e0d13e
PHP
blangkonsultan/ProjectSCM
/app/Keranjang.php
UTF-8
891
2.59375
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; /** * @property int $id * @property int $id_user * @property int $id_penjualan * @property int $jumlah * @property User $user * @property Penjualan $penjualan */ class Keranjang extends Model { public $timestamps = false; /** * The tabl...
true
958c46831c83c1c834bb8614b1891ad624808d3a
PHP
Kellandor/CST336
/FinalProject/php/generatereport.php
UTF-8
1,752
2.71875
3
[]
no_license
<?php include 'database.php'; $conn = getDatabaseConnection(); $data = array(); $sql = "SELECT COUNT(id) total FROM user"; $stmt = $conn ->prepare($sql); $stmt->execute(); $records = $stmt->fetchAll(PDO::FETCH_ASSOC); $data["total"] = $records[0]["total"]; ...
true
2492772ac06e1cd6294f280742e7c1ff9b539adf
PHP
samuelbarrett1234/atp
/ATPSite/examine_thm.php
UTF-8
5,632
2.75
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <!--#include file="data.php" --> <!-- Template obtained from https://www.w3schools.com/w3css/w3css_templates.asp --> <body> <!--#include file="navbar.php" --> <!--#include file="header.php" --> <!-- First Grid --> <div class="w3-row-padding w3-padding-64 w3-container"> <div class="w...
true
fb4c555347fd31f2fe5831b51b147c6a2f758f56
PHP
shadowster/lightdatasys
/trunk/eltalog/Manager.php
UTF-8
7,005
2.859375
3
[]
no_license
<?php require_once PATH_LIB . 'com/lightdatasys/eltalog/EltalogConstants.php'; require_once PATH_LIB . 'com/lightdatasys/eltalog/Manager.php'; require_once PATH_LIB . 'com/mephex/db/Database.php'; require_once PATH_LIB . 'com/mephex/core/Utility.php'; class Manager { protected static $managerInstancesByManagerI...
true
16a384a5a11a7da83ba1c30f5bbe86df333a6d01
PHP
djidjiawdia/Djiadji_DIAW_QuizzSA_DB
/controllers/userCtrl.php
UTF-8
4,592
2.640625
3
[]
no_license
<?php session_start(); require_once '../data/users.php'; require_once '../utils/validators.php'; if(isset($_POST['login']) && isset($_POST['password'])){ $login = trim($_POST['login']); $password = $_POST['password']; if(!empty($login) && !empty($password)){ $user = searchLogin($login); if(...
true
ac91f3c3910dabaa75baaeba2257aa216fe8d1df
PHP
kiarash7/kiarash_php_calculator
/index.php
UTF-8
1,915
3.328125
3
[]
no_license
<?php // variables $num_one = @$_POST["number_one"]; $num_two = @$_POST["number_two"]; $amaliyat = @$_POST["amaliyat"]; $result = ''; // function switch ($amaliyat){ case '+': $result = ($num_one + $num_two); break; case '-': $result = ($num_one - $num_two); break; case '*': ...
true
f095e3a60d8d094767b208f6b4d94494607ca4c0
PHP
shadynxt/My-Financing-projects
/app/Http/helpers.php
UTF-8
1,195
2.625
3
[ "MIT" ]
permissive
<?php function reset_email($user){ \Mail::send('Site.emails.password',['user' => $user] , function ($msg) use($user){ $msg->from('khalijalbarmaja@gmail.com', 'Finance'); $msg->to($user->email)->subject('Reset password'); }); } function time_string($datetime, $full = false) { $now = new DateTime; ...
true
60d373c090e6e94c4c6e5c6e545c7df6fa02fc99
PHP
cboopen/algorithm004-04
/Week 02/id_184/LeetCode_49_184.php
UTF-8
660
3.625
4
[]
no_license
<?php /* * @lc app=leetcode.cn id=49 lang=php * * [49] 字母异位词分组 */ // @lc code=start class Solution { /** * @param String[] $strs * @return String[][] */ function groupAnagrams($strs) { if (!$strs) { return array(); } $data = array(); foreach ($s...
true
08eb7a2b5c1ae1b25df8577751e997dae8d87b87
PHP
alfredo-svh/Web_Development
/Udemy/project_gdlWebcamp/calendar.php
UTF-8
1,815
3.015625
3
[ "MIT" ]
permissive
<?php include_once 'includes/templates/header.php'; ?> <section class="section container"> <h2>Calendar of Events</h2> <?php try{ require_once('includes/functions/db_connection.php'); $sql = "SELECT event_id, event_name, event_date, event_time, event_cat, icon, speaker_first, speaker_last FROM events INNER J...
true
5c14c5e94132609065847776035b9bcd90bfeae4
PHP
jonatas1002/projeto-web-beginer
/class/ProdutoDAO.php
UTF-8
975
3
3
[]
no_license
<?php class ProdutoDAO { private $conexao; function __construct($conexao){ $this->conexao = $conexao; } function listaProdutos(){ $produtos = array(); $resultado = mysqli_query($this->conexao, "select * from produto"); while($produto_array = mysqli_fetch_assoc($resultado)) { $produtoNome = $p...
true
8ed34ca01c0a3516e38b93fd4cd4bc3bc510f2fd
PHP
yu-Chenfei/html-css-js
/day81-day90/day89(Ajax结束)/ajax2/get.php
UTF-8
150
2.65625
3
[]
no_license
<?php $name = $_GET['name']; $age = $_GET['age']; // 后台通过echo的方式给前端传递数据 echo '这是后台给前端的数据'.$name; ?>
true