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
9e3f82c843fa916a51cc5dbe92c6104ec6f7b400
PHP
choy311/choy311.github.io
/hypes/index.php
UTF-8
3,461
2.765625
3
[]
no_license
<!DOCTYPE html> <html> <head> <title> CATCHING UP WITH THE HYPES </title> <link rel="stylesheet" href="instagram.css"> <link href='http://fonts.googleapis.com/css?family=Quicksand' rel='stylesheet' type='text/css'> </head> <body> <?php // define variables and s...
true
abce9efcf7b33e4199f624d4aeaf923c0517a26a
PHP
FranYuu/phprss
/php/controleur/VisiteurControleur.php
UTF-8
2,840
2.578125
3
[]
no_license
<?php class VisiteurControleur{ function __construct(){ $dVueEreur = array (); try{ if(isset($_REQUEST['action'])){ $action = $_REQUEST['action']; } else{ $action = NULL; } ...
true
69eef54ec514827247d2f9c7e9bbec59caf1dff8
PHP
goldenboy/etapasvi.com
/lib/model/AlertPeer.php
UTF-8
3,735
2.703125
3
[]
no_license
<?php class AlertPeer extends BaseAlertPeer { /*const ITEM_TYPE_IDEA = 1; const ITEM_TYPE_NEWS = 2; const ITEM_TYPE_PHOTO = 3; const ITEM_TYPE_VIDEO = 4; // связано с CommentsPeer static protected $ITEM_TYPE_NAME = array( self::ITEM_TYPE_IDEA => 'idea', self::ITEM_TYPE_NEWS => 'news', self::ITE...
true
819f9f1dedb3a0bf2d84520d3628e66bed4af128
PHP
issamL/site-stockage
/signUp.php
UTF-8
1,085
2.90625
3
[]
no_license
<?php include 'dbConfig.php'; include 'functions.php'; //sign up procedure //checking if user already exists $userN = $_POST['name']; $funct = new myfunctions\Basicfunctions; if($funct -> isEmptyInfo($userN,$_POST['password'],$_POST['email'])){ header("location: login.html?error=emptyinput"); exit(); } $doubl...
true
14c93b1be8afeb8f0e068d65281c3e97a98b96a0
PHP
stereocilia/excelprocessor
/scratch.php
UTF-8
1,701
2.9375
3
[ "MIT" ]
permissive
<html> <head> <title>Hello world</title> </head> <body> <script type="text/javascript"> var mystring = '{"name":"Sherie", "lastname": "mickeymaus"}'; var myobject = JSON.parse(mystring); document.write(myobject.name); </script> <?php //$...
true
4ad69e56b92f7aac4f42f0e871881a7f963b47bb
PHP
Irvyne/A2_ToDoList_Twig
/edit.php
UTF-8
1,034
2.59375
3
[]
no_license
<?php /** * Created by Thibaud BARDIN (Irvyne) * This code is under the MIT License (https://github.com/Irvyne/license/blob/master/MIT.md) */ require __DIR__.'/vendor/autoload.php'; require __DIR__.'/config/config.php'; require __DIR__.'/_twig.php'; $myPDO = new MyPDO($config); $todoManager = new TodoManager($myPD...
true
644eaacb6467b7042af1fe27917f978d2cff1cc7
PHP
spatie/db-dumper
/tests/MySqlTest.php
UTF-8
16,275
2.609375
3
[ "MIT" ]
permissive
<?php use Spatie\DbDumper\Compressors\Bzip2Compressor; use Spatie\DbDumper\Compressors\GzipCompressor; use Spatie\DbDumper\Databases\MySql; use Spatie\DbDumper\Exceptions\CannotSetParameter; use Spatie\DbDumper\Exceptions\CannotStartDump; it('provides a factory method') ->expect(MySql::create()) ->toBeInstanc...
true
effcaf2bec01982c56f1f182de2a8ad6ae11862c
PHP
mufazah/mufazah.github.io
/PHP Homework/ajax-examplejjj.php
UTF-8
1,633
3.140625
3
[]
no_license
<?php $dbhost = "localhost"; $dbuser = "root"; $dbpass = "root"; $dbname = "mufazah"; //Connect to MySQL Server mysql_connect($dbhost, $dbuser, $dbpass); //Select Database mysql_select_db($dbname) or die(mysql_error()); // Retrieve data from Query String $YearVisited = $_GET['YearVisited']; $Season = $_GET['Seaso...
true
759f3cc1ab6a3db58df861229bced86fdb1b49f3
PHP
tokenly/api-client
/src/TokenlyAPI.php
UTF-8
5,928
2.703125
3
[ "MIT" ]
permissive
<?php namespace Tokenly\APIClient; use Exception; use Requests; use Tokenly\APIClient\Exception\APIException; use Tokenly\HmacAuth\Generator; class TokenlyAPI { public $client_id = null; public $client_secret = null; public $api_base_url = ''; protected $request_timeout = 30; private $auth...
true
d6bd418b427087a7233b2de2e662bfae2b16df65
PHP
manish2/starter-views
/application/controllers/Shopping.php
UTF-8
1,069
2.5625
3
[ "MIT" ]
permissive
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * Description of Shopping * * @author Eric Lau */ class Shopping extends Application { function __construct() { ...
true
f6ceb3441c30bc20a6737bc6f66416051fac6a5a
PHP
Nikolay86bg/Aqualife
/src/Doctrine/ORM/Hydration/TimeEstimateHydrator.php
UTF-8
644
2.515625
3
[]
no_license
<?php /* * (c) 411 Marketing */ namespace App\Doctrine\ORM\Hydration; use App\Tools\WorkTime; use Doctrine\ORM\Internal\Hydration\ArrayHydrator; /** * Class TimeEstimateHydrator. */ class TimeEstimateHydrator extends ArrayHydrator { /** * @return WorkTime[] */ protected func...
true
2445ef5121f7eb3e6791cdd2903a34f6da0cbdbb
PHP
stevenroach7/groupstart
/views/features/create-students.php
UTF-8
2,739
3
3
[]
no_license
<?php function create_students($n, $start) { include '../../config/connection.php'; $success = 1; // boolean holding if insert is successful // Repeat n times for ($x = $start; $x < $start + $n; $x++) { // Make fake data $auth0_id = $x.date('Y-m-d H:i:s'); // This variable must be uni...
true
9b7790f21a81582b7adec697f532b96b95da4e5e
PHP
brngylni/phplearn
/array/arrays.php
UTF-8
2,309
3.703125
4
[]
no_license
<!doctype html> <html lang="tr-TR"> <head> <meta http-equiv="Content-Type" content="text/html" charset="utf-8"> <meta http-equiv="Content-Language" content="tr"> <meta charset="utf-8"> <title>Learning PHP</title> </head> <body> <?php /* Array : Data holders that take sequential datas that we enter or that some...
true
6178728f43046dec2c3242498cb988407603e512
PHP
bakalarka/bakalarka
/app/app/Bc/Lib/Controller/BcUsersController.php
UTF-8
2,064
2.515625
3
[]
no_license
<?php class BcUsersController extends AppController { var $name = 'Users'; var $uses = array( 'User' ); function beforeFilter() { parent::beforeFilter(); $this->Auth->allow('*'); $this->Auth->authorize = 'actions'; } function index() { // } //LOGIN function login() { if ...
true
903de962df823c0391462ca44b97be905ad4ac37
PHP
LoannMR/IUT_S3_CPOA
/CPOA_Hotel/views/libs/v_forms.php
UTF-8
4,451
2.765625
3
[]
no_license
<?php /** Création des formulaires * Soit pour un Gerant ou un VIP */ require_once(PATH_LIB.'foncBase.php'); //Désactivation des formulaire si demandé if(isset(($_POST["desactivate"]))) { $desactivate = true ; } //Variables à récupérer : $nom; //Hotel $nb_personne; $nb_chambre; $adresse; //checkboxs --> conf conf...
true
922bbc5e595c6164c50bc39a53074a9528c119b8
PHP
brd6/notion-sdk-php
/src/Resource/Property/PartialPageProperty.php
UTF-8
530
2.59375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php declare(strict_types=1); namespace Brd6\NotionSdkPhp\Resource\Property; class PartialPageProperty extends AbstractProperty { protected string $id = ''; public static function fromRawData(array $rawData): self { $property = new self(); $property->id = (string) $rawData['id']; ...
true
cc4dd9795ab76cd69047d8dabc77c71f5ee0dacd
PHP
guyt101z/money_transfer
/src/services/TransferService.php
UTF-8
1,564
2.8125
3
[]
no_license
<?php namespace services; use repositories\DocumentRepository; use entities\types\TransferDocumentType; use entities\Document; use entities\User; use dto\TransferDto; /** * Сервис для перевода средств между пользователями * * @author Ilya Kolesnikov <fatumm@gmail.com> */ class TransferService { /** * @v...
true
c9ac218bf5042f4f0b5704c32e661428d86a0411
PHP
CarmineVitale/php-oop-1
/index.php
UTF-8
1,825
3.03125
3
[]
no_license
<?php include 'movie_obj.php'; ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>PHP-OOP</title> <link rel="stylesheet" href="css/style.css"> </head> <body> <h1>Fantozzi's Movies</h1> <div class="contai...
true
238090182287ae5dd31c40bd0cffaccac81f9f0c
PHP
debopriyo-das/tti_test
/sample1.php
UTF-8
198
3.0625
3
[]
no_license
<?php interface car { public function walk($legs,$hands); } class human implements car { public function walk($hands) { echo"walkingasds"; } } $obj = new human(); $obj->walk(); ?>
true
dd3416b519a80c60ac06c25bf10679dbd8377e89
PHP
10yun/php-frame-think
/src/function/img.php
UTF-8
4,266
2.78125
3
[ "Apache-2.0" ]
permissive
<?php /** * 【ctocode】 常用函数 - img相关处理 * ============================================================================ * @author 作者 ctocode-zhw * @version 版本 v5.7.1.20210514 * @copyright 版权所有 2015-2027,并保留所有权利。 * @link 网站地址 https://www.10yun.com * @contact 联系方式 QQ:3431...
true
289d3c738ada72718de7317e2583578e839c3031
PHP
slumos/apg
/php/apgonline/index.php
UTF-8
24,488
2.609375
3
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
<? ################################################################ # APGOnline v2.1.0 ################################################################ # Config data ################################################################ $apg_title = "Automated Password Generator Online" ; $generator = "/usr/local/...
true
27180771feb917b20ceae7763349fede73716426
PHP
chubinh996/Code-and-note-code
/Magento 1/Extension M1/app/code/community/Shippit/Shippit/Model/Shippit.php
UTF-8
2,273
2.796875
3
[]
no_license
<?php /** * Shippit Pty Ltd * * NOTICE OF LICENSE * * This source file is subject to the terms * that is available through the world-wide-web at this URL: * http://www.shippit.com/terms * * @category Shippit * @copyright Copyright (c) Shippit Pty Ltd (http://www.shippit.com) * @author Matthew Muscat <...
true
672e3cc425123460823afa317680249a4ee405c7
PHP
Nathan-Nesbitt/fallr
/API/credentials.php
UTF-8
586
2.75
3
[ "MIT" ]
permissive
<?php function getDBLogin(){ /** * Description: A function that returns an array of the login information. * Takes: Nothing * Returns: Array of username, password, database, and server */ $username = "fallr"; $password = "072e47704030abe4a7043329e3da4001"; $databa...
true
92d35986b5b1f0b7cb514f3b56c6ca3874d29b0d
PHP
jobinlin/admin_system
/app/Repositories/Eloquent/CustomUserProvider.php
UTF-8
524
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Repositories\Eloquent; use Illuminate\Auth\EloquentUserProvider; use Illuminate\Contracts\Auth\Authenticatable; use Illuminate\Support\Str; /** * Created by PhpStorm. * User: linzhibin * Date: 2017/6/28 * Time: 21:42 */ class CustomUserProvider extends EloquentUserProvider { public functio...
true
3eac7023ca6f2b8394b203c10c12d08d42f39012
PHP
stefannovitovic/The-school-diary
/public/admin/find_user_by_username.php
UTF-8
773
2.6875
3
[]
no_license
<?php require ("../../private/initialize.php"); if(isset($_POST['inputVal'])){ $db = Database::getInstance()->getConnection(); $username = $_POST['inputVal']; $sql = "SELECT username FROM users"; $st = $db->prepare($sql); $result = $st->execute();...
true
53daf4d2b55f31f39970c69d8d59254348e4e849
PHP
laurensmertens/EMSCoreBundle
/src/Command/LockCommand.php
UTF-8
3,597
2.5625
3
[]
no_license
<?php namespace EMS\CoreBundle\Command; use EMS\CoreBundle\Entity\ContentType; use EMS\CoreBundle\Repository\ContentTypeRepository; use EMS\CoreBundle\Repository\RevisionRepository; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\In...
true
0d324d20f33fe09dca9941d0360deda5c4a36732
PHP
blumenthals/RapidWeb
/rw-includes/modyllic/Modyllic/Schema/Index/Foreign.php
UTF-8
1,017
2.546875
3
[ "BSD-2-Clause" ]
permissive
<?php /** * Copyright © 2012 Online Buddies, Inc. - All Rights Reserved * * @package Modyllic * @author bturner@online-buddies.com */ class Modyllic_Schema_Index_Foreign extends Modyllic_Schema_Index { public $cname = ""; const WEAK_DEFAULT = false; public $weak = self::WEAK_DEFAULT; public $r...
true
ed34a9ebefe66ed5023cf5cdef23161301cfb6a4
PHP
Szindbad91/invoiceSDK
/DataStructures/Invoice.php
UTF-8
8,627
2.921875
3
[]
no_license
<?php namespace invoiceSDK\DataStructures; class Invoice { /** * @var int $invoideId */ private $invoiceId; /** * @var string $customerName */ private $customerName; /** * @var string $customerCity */ private $customerCity; /** * @var string $customerAdd...
true
fcd470aab7e4d00677ff05f7929600f3ec31aa6e
PHP
AKMCC-hub/Kobe
/src/Kobe/Schemas/Traits/WithReference.php
UTF-8
550
2.6875
3
[ "Apache-2.0" ]
permissive
<?php namespace Kobe\Schemas\Traits; use Kobe\Schemas\Reference; trait WithReference { /** * @var Reference|null */ protected $reference; /** * @param \Kobe\Schemas\Reference $reference * @return $this */ public function setReference(Reference $reference) ...
true
57f41b3917d8f3b36d74bf895a38fd81acbf003e
PHP
fret2000/php-project-lvl1
/src/Games/Calc.php
UTF-8
985
3.671875
4
[]
no_license
<?php function calculate(int $value1, int $value2, string $action): int { if ($action == '+') { return $value1 + $value2; } elseif ($action == '-') { return $value1 - $value2; } elseif ($action == '*') { return $value1 * $value2; } return 0; } function generateCalcQuestion...
true
78760706037e0c4d2eac3a6b343f63832064a793
PHP
faiqbinzahid786/iBooks_Collection
/add.php
UTF-8
3,190
2.75
3
[]
no_license
<?php //This file is a target file for add_form.html which will add all the nodes in the xml file. include "add_form.html"; $xmldoc = new DomDocument( '1.0' ); $xmldoc->preserveWhiteSpace = false; $xmldoc->formatOutput = true; if( $xml = file_get_contents( 'books.xml') ) { $xmldoc->loadXML( $xml,...
true
7817d5f645f87710b60d199644449a67ca95412c
PHP
worldace/blog
/app/action/feed.php
UTF-8
881
2.53125
3
[]
no_license
<?php header('Content-Type: application/atom+xml; charset=UTF-8'); $data = $db->select(0, 30); $title = html::e($blog->title); $author = html::e($blog->admin); $updated = date('c', $data[0]->create_time); print '<?xml version="1.0" ?>'; print <<<END <feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ja"> <titl...
true
fc4c04d773e8e3b79f144e68dda5cc59b902e197
PHP
atomaka/Project-Euler
/PHP/20-a.php
UTF-8
170
3.671875
4
[]
no_license
<?php $factorial = 1; for($i = 100; $i > 0; $i--) $factorial = bcmul($factorial, $i); $sum = 0; foreach(str_split($factorial) as $number) $sum += $number; echo $sum;
true
b3ce584e9784c432c4b4ddb31eb749bea85f58d6
PHP
gobb/SprayFire
/libs/SprayFire/Http/Routing/FireRouting/Router.php
UTF-8
4,390
2.578125
3
[ "MIT" ]
permissive
<?php /** * Implementation of \SprayFire\Http\Routing\Router provided by the default SprayFire * install. * * @author Charles Sprayberry * @license Subject to the terms of the LICENSE file in the project root * @version 0.2 * @since 0.1 */ namespace SprayFire\Http\Routing\FireRouting; use \SprayFire\Http ...
true
bb135970f9f85bd1a863c5758944d5577d857bb9
PHP
yannick171/mes-testes
/contact.php
UTF-8
536
2.609375
3
[]
no_license
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Unbenannt</title> </head> <body> <?php try { $connexionAmaBase = new PDO('mysql:host=localhost;dbname=test;charset=utf8', 'root', ''); } catch(Exception $e) { die('Erreur : '.$e->getMessage()); } $contenu...
true
f52e4b7b3ee3b360b26bbfc66555c297937114ee
PHP
ZbyRih/ote-crm
/admin/app/classes/cloud/cloud.view.class.php
UTF-8
1,866
2.609375
3
[]
no_license
<?php class CloudViewClass extends ViewElementClass{ const actionKey = k_action; const recordKey = k_record; var $delActionCallBack = NULL; /** * * @var CallBackControlClass */ var $interCallBacks = NULL; /** * * @var String */ var $countRow = NULL; /** * * @var ListFieldC...
true
2c28b0ae10811798be42b757e998864b1f2960c5
PHP
mikerogne/algorithms
/Codility/Lesson 1/frog_jump.php
UTF-8
467
3.578125
4
[]
no_license
<?php echo solution(10, 85, 30); /** * @param int $X current position * @param int $Y target position * @param int $D distance per jump */ function solution($X, $Y, $D) { $currentPosition = $X; $targetPosition = $Y; $distancePerJump = $D; // Calculate the total distance needed to move in order to...
true
8bd0008ac8a44a8264b313fb590a4067ddba90a5
PHP
isabella232/etcetera
/src/bitExpert/Etcetera/Extractor/Config/AbstractConfigReader.php
UTF-8
3,002
2.53125
3
[ "Apache-2.0" ]
permissive
<?php declare(strict_types = 1); /* * This file is part of the Etcetera package. * * (c) bitExpert AG * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace bitExpert\Etcetera\Extractor\Config; use PhpOption\None; use PhpOptio...
true
b2a9698df6d34a26e5ffc91afd02c308488f3f6c
PHP
RomanZateev/website
/update.php
UTF-8
1,004
2.515625
3
[]
no_license
<?php header('Location: index.html'); require_once 'connection.php'; // подключаем скрипт // подключаемся к серверу if (isset($_POST['Save'])) { $link = mysqli_connect($host, $user, $password, $database) or die("Ошибка " . mysqli_error($link)); $name = $_POST['name']; $last_name = $_POST['last_name']; ...
true
5a58bae9e927299e22711fda6b17db1261d9780c
PHP
eFrane/tinkr
/src/Console/Commands/Interactive.php
UTF-8
2,181
2.734375
3
[ "MIT" ]
permissive
<?php namespace EFrane\Tinkr\Console\Commands; use EFrane\Tinkr\Environment\Environment; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\...
true
97be03f8b9c0497cfbeaa2629eb933563fc0c6d1
PHP
Jayin/ETips-wechat
/libs/entity/LinkMsg.php
UTF-8
493
2.765625
3
[ "MIT" ]
permissive
<?php require_once 'Receive.php'; class LinkMsg extends Receive{ /** * 消息标题 */ public $Title; /** * 消息描述 */ public $Description; /** * 消息链接 */ public $Url; public function __construct($xml_string){ parent::__construct ( $xml_string ); $obj = simplexml_load_string ( $xml_string ); $this->Titl...
true
b55e4814df2883084e2e093c48e529a5123212b5
PHP
buiphong/sanglocsosinh
/Application/Modules/DocumentsCP/DocHelper.php
UTF-8
1,449
2.71875
3
[]
no_license
<?php class DocHelper { /** * Get link doc */ public static function getLinkDoc($doc) { if(!is_array($doc)) { $model = new Models_Documents(); $doc = $model->db->select('id,title,category')->where('id', $doc)->getcFields(); } if($doc) ...
true
f4005ffe15e934601a45122c3e157f41188077f7
PHP
pramodinfo20/learning-symfony-4
/src/Controller/QuestionController.php
UTF-8
1,159
2.65625
3
[]
no_license
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Annotation\Route; use Twig\Environment; class QuestionController extends AbstractController { /** * @Route("/", name="app_homepage")...
true
7fc03037d7fadf9ce36734c6f0043410721a3c8a
PHP
toalett-io/multiprocessing
/bin/classes/Counter.php
UTF-8
127
3.40625
3
[]
no_license
<?php class Counter { public int $value = 0; public function increment(): void { $this->value++; } }
true
462215738744b21eaaa8098d559c522b31294bf1
PHP
HenrikTolboel/LinnDS-jukebox
/legacy/hex_dump.php
UTF-8
816
2.859375
3
[ "MIT" ]
permissive
<?php /*! * LinnDS-jukebox-daemon * * Copyright (c) 2011 Henrik Tolbøl, http://tolbøl.dk * * Licensed under the MIT license: * http://www.opensource.org/licenses/mit-license.php */ function hex_dump($data, $newline="\n") { static $from = ''; static $to = ''; static $width = 16; # number of bytes per line sta...
true
7080a9430598a0e44c360198e979af9af4341a69
PHP
shankarnishad/registration
/update.php
UTF-8
1,380
2.71875
3
[]
no_license
<?php $db = mysqli_connect("localhost", "root", "", "authentication"); if (isset($_POST['submit'])){ $username = mysqli_real_escape_string($db,$_POST['username']); $password = mysqli_real_escape_string($db,$_POST['password']); $email = mysqli_real_escape_string($db,$_POST['email']); // Attempt update que...
true
a4c2efded0e3b12e02d75809f59c7fff04e5c6cf
PHP
c9s/Roller
/src/Roller/DSL.php
UTF-8
625
2.703125
3
[ "BSD-4-Clause-UC" ]
permissive
<?php function router() { static $router; if( $router ) return $router; $router = new Roller\Router; return $router; } function on() { $router = router(); $args = func_get_args(); if( 2 === count($args) ) { list($path,$callback) = $args; $router->add($path ,$callbac...
true
ed63e065c11ecf186b3291870f9dffcb190f2833
PHP
KintrgerZ/Starport
/Controllers/SystemController.php
UTF-8
2,682
2.65625
3
[]
no_license
<?php /** * ログインに関するページの処理をするクラス * * @package starport * @subpackage Controllers * @author yKicchan */ class SystemController extends AppController { /** * ログインに関するページ * * @return void */ public function loginAction() { // Facebookの初期設定 $this->setFacebook(...
true
700435501730cf0c14d9314f9831c69f41b8b9a1
PHP
henderjon/chevron.requests
/tests/PHPUnit/CurrentRequestTest.php
UTF-8
2,271
2.71875
3
[ "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
<?php class CurrentRequestTest extends PHPUnit_Framework_TestCase { public function test_current_request_type(){ // CurrentRequest is dependent on the $_SERVER array set in the phpunit XML manifest $request = new \Chevron\Requests\CurrentRequest(false); $this->assertInstanceOf("Chevron\Requests\BaseRequest",...
true
b44930fba23dda3581591aaee002ce0ea250350b
PHP
348052148/sqrs-es
/Server/Render/ConsoleRender.php
UTF-8
306
2.71875
3
[]
no_license
<?php namespace Server\Render; use Server\Response; class ConsoleRender { private $response; public function __construct(Response $response) { $this->response = $response; } public function render($data){ $this->response->responseContent(json_encode($data)); } }
true
05a2dbab434423766b1c38cb6949c83e9b15b707
PHP
matveu/Notification-Service-SDK
/src/Models/Campaigns/Campaign.php
UTF-8
1,405
2.78125
3
[]
no_license
<?php namespace matviichuk\NsSdk\Models\Campaigns; use matviichuk\NsSdk\Models\Model; /** * Class Campaign * * @package matviichuk\NsSdk\Models\Campaigns */ class Campaign extends Model { /** * @var int */ protected $id; /** * @var string */ protected $name; /** * @...
true
430d9a2d049a0aa7b0bf90e28cf6622e598f2076
PHP
sanzhumu/xaircraft1.1
/src/Console/Process.php
UTF-8
1,253
2.875
3
[ "Unlicense" ]
permissive
<?php /** * Created by PhpStorm. * User: lbob * Date: 2015/12/24 * Time: 10:14 */ namespace Xaircraft\Console; use Xaircraft\App; use Xaircraft\Exception\ConsoleException; class Process { private $pid; public function __construct($pid) { $this->pid = $pid; } public function stop()...
true
4e8143fc5e53b899e2368baa38e36ee6725578bb
PHP
shengli881026/php
/session.php
GB18030
2,558
2.796875
3
[]
no_license
<?php session_start(); //SID Ԥ峣 windows ʹá /** * ͻ˽ cookie ʹ, linux Unixʹķ: 1php.iniеsession.use_trans_sid = 1߱ʱ򿪴--enable-trans-sidѡPHPԶҳsession id 2ֶͨURLֵرsession id 3ļݿʽsession_id,ڿҳֶá */ /** * session ùʱ php.ini * PHP,php.ini,ҵ session.gc_maxlifetime = 1440 #(PHP5Ĭ24) -------------------session Ĺʱ--------...
true
270f76e9f201e811ad1d6e58fb5eff8fec75d596
PHP
Kenneth2698/ReservaCabana
/business/ReservaBusiness.php
UTF-8
11,761
2.6875
3
[]
no_license
<?php session_start(); if (!isset($_SESSION['datos_prereserva'])) { $_SESSION['datos_prereserva'] = array(); } require 'data/ReservaData.php'; require 'data/CabanaData.php'; require 'data/ClienteData.php'; class ReservaBusiness { private $view; public function __construct() { $this->view = n...
true
cfaa4f23b596c7dcc08a6647e18242587abb956f
PHP
herodez/simple-sso
/src/Application/ApplicationRepositoryInterface.php
UTF-8
353
2.75
3
[]
no_license
<?php namespace Optime\SimpleSso\Application; /** * @author Manuel Aguirre <programador.manuel@gmail.com> */ interface ApplicationRepositoryInterface { /** * @param string $application * @return ApplicationInterface * * @throws \InvalidArgumentException si no encuentra la aplicaci�n por user...
true
613c00c46b9f1f3b061316eac7b3d1e76dc8d43a
PHP
beemoon/simpleAlbum
/assets/upload.php
UTF-8
1,761
2.6875
3
[]
no_license
<?php $storeFolder = 'posts'; $ds = DIRECTORY_SEPARATOR; $yearPost = date("Y"); $datePost = date("md"); $dirPost = $yearPost.$ds.$yearPost.$datePost; $targetPath = "../".$ds.$storeFolder.$ds.$dirPost; if (!is_dir($targetPath)) { if (!mkdir($targetPath, 0777, true)) { die('Echec lors de ...
true
648ea85fda90f0207ae22388ce76ce5077003b50
PHP
agnostic-domain/mapping
/use-case/src/Domain/Value/Email.php
UTF-8
385
2.796875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace ADM\UseCase\Domain\Value; use ADM\UseCase\Domain\Exception\Value\Email as Exception; final class Email { private string $email; public function __construct(string $email) { if (!filter_var($email, FILTER_VALIDATE_EMAIL)) { throw Exception::in...
true
fdb7199b08e23e0e03867b37ef22676c1a723e69
PHP
alexmandujano/Mysqli
/procedimiento/llamarprocedimiento.php
UTF-8
1,023
2.703125
3
[]
no_license
<meta charset="utf-8"/> <?php $mysqli=new mysqli("localhost","root","root","world"); if ($mysqli->connect_errno) { echo "se produjo un error :(". $mysqli->connect_errno.")".$mysqli->connect_error; } if (!$mysqli->query("drop table if exists test")|| !$mysqli->query("create table test (id int)")) { echo "Falló la...
true
fca05c102841d1a8751c7dde0a52bd3c2f52c419
PHP
streltcov/yandex-geocoder
/tests/functional/GeoCollectionKindsTest.php
UTF-8
2,035
2.609375
3
[ "Apache-2.0" ]
permissive
<?php namespace streltcov\geocoder\tests; use PHPUnit\Framework\TestCase; use streltcov\YandexUtils\GeoCoder; /** * Class GeoCollectionKindsTest * * @package streltcov\geocoder\tests */ class GeoCollectionKindsTest extends TestCase { private $kind1; private $kind2; protected function setUp() { ...
true
cd7d226356ed16f63b343d5463d4795a5ef87a07
PHP
barrygg11/messageboard_end_git
/edit.php
UTF-8
1,597
2.671875
3
[]
no_license
<title>編輯留言</title> <html> <?php date_default_timezone_set('Asia/Taipei'); $DateAndTime = date('Y-m-d h:i:s a', time()); echo "目前時間 $DateAndTime."; $name = $_GET['name']; $no = $_GET['no']; ?> <body> <p><a href='view.php?name=" . $name . "&no=" . $no . "'>查看留言</a> <a href="index.php">登出</a> <a href="regis...
true
7c1b9a8668ad211bf5bf8691a5a9a3ff8881f364
PHP
hk-ming/monda-php-framework
/src/Container.php
UTF-8
4,450
2.765625
3
[ "MIT" ]
permissive
<?php /** * This file is part of Monda-PHP. * */ namespace framework; use app\exception\HandleException; use Closure; use framework\config\Config; use framework\log\Logger; use framework\response\Response; use framework\route\PipeLine; use framework\route\Router; use framework\view\HerosphpView; use framework\view...
true
3094db92cff4c0af31af4446087983f58b1ed38e
PHP
KritarthS/Shoebox
/controllers/Profile.php
UTF-8
517
2.609375
3
[]
no_license
<?php Class Feed extends Controller { public function __construct() {} public function main() { $this->description = ""; $this->pageTitle = "Home | "; $this->mainBody .= $this->renderView("userForm"); include("views/template.php"); } public function likeitem() { } public function...
true
ba91854eb4a89ce397c2803a003a16b3afa74c4a
PHP
ApostolaT/mvc-framework-skeleton
/src/Regex/RegexBuilder.php
UTF-8
509
2.734375
3
[]
no_license
<?php namespace Framework\Regex; use Framework\Router\Router; class RegexBuilder { public function createRegex(array $config): string { $string = $config[Router::CONFIG_KEY_PATH]; foreach ($config["attributes"] as $key => $value) { $pattern = "{".$key."}"; $attrValueR...
true
1f06797f88ac89ef3513553a68053093e03a1cee
PHP
ZiyaVakhobov/yii2-redis-rate-limiter
/src/Limiter.php
UTF-8
1,519
2.8125
3
[ "Apache-2.0" ]
permissive
<?php namespace ziya\RedisRateLimiter; use yii\redis\Connection; use ziya\RedisRateLimiter\exceptions\LimitExceeded; class Limiter { /** * @var string */ private $key_prefix; /** * @var int */ private $count; /** * @var int */ private $interval; /** * ...
true
6011516b3a88b271e8e33112802472bae326e811
PHP
mikkkkk02/test
/database/migrations/2017_08_16_035917_create_form_template_approvers_table.php
UTF-8
1,054
2.59375
3
[]
no_license
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateFormTemplateApproversTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('f...
true
94a79c17bf8e36f335c4d5b9efe4ef69c93457cd
PHP
tfarias/carteira_digital
/app/Models/Carteira.php
UTF-8
908
2.546875
3
[]
no_license
<?php namespace App\Models; use App\Models\Pessoa; use App\Models\Traits\Currency; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; /** * @property int $id * @property int $pessoa_id * @property string|double|numeric $saldo...
true
d09bffcbd4c5f3b643b4af02cb70dc4ab8658c5d
PHP
xingfulu/PersonManager
/blog/application/admin/validate/Article.php
UTF-8
964
2.640625
3
[ "Apache-2.0" ]
permissive
<?php namespace app\admin\validate; use think\Validate; class Article extends Validate{ //首先建立一个规则,验证用户名,密码以及验证码都不允许为空,并且比对验证码是否正确 //注意admin_username,admin_password和code要和html中相应的name属性相对应 //d当一个字段有多个验证的时时候,我们可以使用|风格开来 protected $rule=[ 'arc_title'=>'require', 'arc_address'=>'require', ...
true
9c7b37fa074244a45232b937fa540706e3de05b2
PHP
kashwa/clouds-technical-interview
/Modules/AdminModule/Http/Controllers/Auth/AdminAuthController.php
UTF-8
1,330
2.734375
3
[]
no_license
<?php namespace Modules\AdminModule\Http\Controllers\Auth; use Illuminate\Http\Request; use Illuminate\Routing\Controller; class AdminAuthController extends Controller { /** * Check if admin authenticated, redirect to homepage. * else redirect to login page. */ function index() { ...
true
2e315a71943463bcde0f742da4b6ed30ba65f2b1
PHP
cbrski/DevicePresenceTracker
/app/StorageBroker/Helpers/VisibleDevicesSynchronizator.php
UTF-8
4,601
2.65625
3
[]
no_license
<?php declare(strict_types=1); namespace App\StorageBroker\Helpers; use App\Api\Router\Structure\Neighbours; use App\StorageBroker\Helpers\VisibleDeviceSynchronizator\Creator; use App\StorageBroker\Helpers\VisibleDeviceSynchronizator\KeepersInstantiatorFromDatabase; use App\StorageBroker\Helpers\VisibleDeviceSynch...
true
e25bd508d580a0a35748238f8f6bf64fe6355bd2
PHP
DkChriss/ClothesStore
/database/seeders/ProductSeeder.php
UTF-8
1,781
2.53125
3
[ "MIT" ]
permissive
<?php namespace Database\Seeders; use Illuminate\Database\Seeder; use App\Models\Product; class ProductSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { Product::create([ 'name' => 'Vestido Negro', 'price'...
true
1509ed48d36c055b50bc0001aba689b663f9bd6f
PHP
fsalehpour/rabbitmq-wrapper
/src/RabbitMQ.php
UTF-8
2,221
2.796875
3
[ "MIT" ]
permissive
<?php namespace RabbitMQWrapper; use PhpAmqpLib\Channel\AMQPChannel; use PhpAmqpLib\Connection\AMQPStreamConnection; use PhpAmqpLib\Message\AMQPMessage; /** * Class RabbitMQ * @package RabbitMQWrapper */ class RabbitMQ { /** * @var AMQPStreamConnection */ private $connection; /** * Rabb...
true
05a9327b336a615b929b3fba98b85060a6d2a32e
PHP
nathanielongyiitak/UniAssignments
/OnlineActivityRegistrationSystem/Profile/processPersonal.php
UTF-8
2,143
2.765625
3
[]
no_license
<?php //start a session and include database session_start(); include_once('../database.php'); //check if user is logged in or not ($_SESSION has value) if(isset($_SESSION['logged_in']) && $_SESSION['user_id'] && $_SESSION['user_email'] && $_SESSION['logged_in'] == true){ //check if the form is post method if...
true
794df4c65dfdde5701cff19fcd73996e093b8cca
PHP
benfitsV1/MVC-framework-using-PHP
/view/math/table.php
UTF-8
288
2.84375
3
[]
no_license
<table border="1"> <?php for($row=1; $row<=$rows; $row++): ?> <tr> <?php for($col=1; $col<=$cols; $col++): ?> <td> <?= $row * $col ?> </td> <?php endfor ?> </tr> <?php endfor ?> </table>
true
18e9d16533eba4c1521cf309a3cb269ec4f92f6c
PHP
r-ichard/website
/src/AppBundle/Exception/InvalidVariantException.php
UTF-8
910
3.078125
3
[ "MIT" ]
permissive
<?php namespace AppBundle\Exception; use AppBundle\Entity\Question; class InvalidVariantException extends \Exception { /** * @var string */ private $variant; /** * @var Question */ private $question; /** * InvalidVariantException constructor. * @param string $var...
true
5b2b1ad6147a1e40d43bd6892afa885973284cd0
PHP
RickSnijders/ToDo-back-end
/changestatus.php
UTF-8
657
2.59375
3
[]
no_license
<?php session_start(); if($_SESSION["isLoggedIn"] == true){ echo "logged in"; } else{ header( "Location: login.php" ); } var_dump($_SESSION["isLoggedIn"]); var_dump($_POST); require "db-connect.php"; // changes the status in the database function changeStatus(){ $id = $_POST["taskid...
true
b3545126f2c290b826daa22538f0287db415aa9c
PHP
eki-nrw/mdl
/src/Contexture/ContextEntities/Context/ContextInterface.php
UTF-8
1,746
2.59375
3
[ "MIT" ]
permissive
<?php /** * This file is part of the Eki-NRW package. * * (c) Ekipower * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace Eki\NRW\Mdl\Contexture\ContextEntities\Context; /** * @author Nguyen Tien Hy <ngtienhy@gmail.com>s */ interface Co...
true
b55904c58743af7821eae770b961e81e81c6aed6
PHP
Aalisha/rishigovafrroad
/app/controllers/qq_uploaded_file_form_controller.php
UTF-8
1,618
2.609375
3
[]
no_license
<?php App::import('Sanitize'); /** * Specially Manage IE * Handle file uploads via regular form post (uses the $_FILES array) */ class qqUploadedFileFormController extends AppController { /** * * */ var $name = 'qqUploadedFileForm'; /** * * */ var $uses = array(); /** * * */ ...
true
b72b59cd9b217a6b0445bf3410854ab4a7258817
PHP
webengineeringwork/bookshop
/needAdd/dbTest.php
UTF-8
1,191
2.59375
3
[ "MIT" ]
permissive
<html> <head> <title>db test</title> </head> <body> <?php /** * Created by PhpStorm. * User: zhfst * Date: 2018/7/7 * Time: 9:55 */ $db = new mysqli('localhost','fan','@asd5211314','bookshop'); if (mysqli_connect_errno()){ echo '<p>Error: Counld not connect to database.<br/> Please try again.</p>'; ...
true
23bd2f14c0ae6f90e88bb990660d57c8fc9f4073
PHP
alexwing/codeigniter-restaurant-api
/app/Controllers/Dinertable.php
UTF-8
4,965
2.734375
3
[ "MIT" ]
permissive
<?php namespace App\Controllers; use App\Models\DinertableModel; use CodeIgniter\HTTP\Response; use CodeIgniter\HTTP\ResponseInterface; use Exception; class Dinertable extends BaseController { /** * Get all Dinertables * @return Response */ public function index() { $model = new Diner...
true
cb9cfee40331e4f707582f6885320ac42895cea8
PHP
jimsafley/SimpleApi
/Format/Xmlfm.php
UTF-8
533
2.734375
3
[]
no_license
<?php require_once 'SimpleApi/Format/Abstract.php'; class SimpleApi_Format_Xmlfm extends SimpleApi_Format_Abstract { protected $_contentType = 'text/html; charset=utf-8'; public function getContentType() { return $this->_contentType; } public function getOutput() { req...
true
2e75e6f2d0d712ac232a3bd2b41aebe2d935ddae
PHP
tsaidi74/blog
/model/ArticleRepository.php
UTF-8
2,600
3.015625
3
[]
no_license
<?php require('Repository.php'); class ArticleRepository extends Connect { // function getArticles() allow to display 3 article on the front page with a limit of 200 characters. function getArticles() { $db = $this->getDb(); $req = $db->prepare('SELECT articles.id, titre, left(conte...
true
6775b7e0cfa8cef55855465b0429be48985c99dc
PHP
ngotanan147/WebApp
/mvc/models/ProductCommentModel.php
UTF-8
1,890
2.546875
3
[]
no_license
<?php class ProductCommentModel extends BaseModel { const TABLE = 'product_comment'; public function getProductComment() { $qr = "Select * from product_comment"; return $this->execute($qr); } public function getAll() { return $this->all(self::TABLE); } public fu...
true
f6e90297b60c8c47e00eb25729e82a921e0bc6cf
PHP
tobster67/graviton-core
/SecurityBundle/Tests/Authentication/Strategies/CookieFieldStrategyTest.php
UTF-8
4,248
2.515625
3
[]
no_license
<?php /** * Fetching authentication information from Cookie header. */ namespace Graviton\SecurityBundle\Authentication\Strategies; use Graviton\TestBundle\Test\WebTestCase; use Symfony\Component\BrowserKit\Cookie; /** * Class CookieFieldStrategyTest * * @author List of contributors <https://github.com/libgra...
true
bd913b2dc5024bab715fe8ecfa77ec12afdcb000
PHP
m75687/stu3
/src/class/colonytick.class.php
UTF-8
10,736
2.546875
3
[ "MIT" ]
permissive
<?php use Stu\Module\Research\ResearchState; use Stu\Orm\Repository\ColonyShipRepairRepositoryInterface; use Stu\Orm\Repository\ResearchedRepositoryInterface; class ColonyTickManager { private $colonies = NULL; private $tick = NULL; function __construct($tick) { DB()->beginTransaction(); $this->colonies = Co...
true
9623bc3aff195799aa67ac5416f8318296543d28
PHP
Athyent/firstproject
/Actividades_finales/Actividad_1/tienda.php
UTF-8
2,730
2.890625
3
[]
no_license
<?php class Tienda{ /** * Devuelve el pvp * @param string $codigo * return float */ public function getPVP($codigo){ require "db.php"; $consulta = "SELECT * FROM producto WHERE cod='".$codigo."'"; $resultado = mysqli_query($conexion, $consulta); ...
true
b20efbad75b5861741d10b7ce3cf3b8a0bd73c41
PHP
kamalakkannan1984/topper
/v1/index.php
UTF-8
19,686
2.578125
3
[]
no_license
<?php require_once '../include/DbHandler.php'; require_once '../include/PassHash.php'; require '.././libs/Slim/Slim.php'; \Slim\Slim::registerAutoloader(); $app = new \Slim\Slim(); // User id from db - Global Variable $user_id = NULL; /** * Adding Middle Layer to authenticate every request * Checking if the req...
true
66ba95ef9fce1960a507266eb3229abebc4f1875
PHP
mikesoule/BarSOAP
/Bar.php
UTF-8
1,502
3.15625
3
[]
no_license
<?php class Bar { /** * Authentication status * * @var boolean **/ protected $_isAuthenticated = false; /** * Authentication method for handling the Security SOAP header (per WS-Security) * * @param object $auth * @return void */ public function auth(...
true
4982d04537a654e7377b80da24dfcd1dd161ea03
PHP
dspicer08/spectrumky
/vendor/printful/examples.php
UTF-8
4,099
2.625
3
[]
no_license
<?php require_once 'PrintfulClient.php'; /* * Replace this with your API key */ define('API_KEY', 'YOUR_API_KEY'); $pf = new PrintfulClient(API_KEY); try{ /** * Uncomment any of the following examples to test it */ //Get information about the store /* $store = $pf->get('store'); var_export($store);...
true
f0dbfc359db8ef7ffeed822e18998df71c732b0d
PHP
deatil/larke-admin-logviewer
/src/Support/FileViewer.php
UTF-8
3,648
2.890625
3
[ "Apache-2.0" ]
permissive
<?php declare (strict_types = 1); namespace Larke\Admin\LogViewer\Support; /** * 日志 */ class FileViewer { /** * 目录 * * @var string */ protected $path; /** * 文件 * * @var string */ protected $file; /** * 文件大小 * * @var int */ pr...
true
93566a9a701e3892c7dc873149d842cb0179df25
PHP
tony-tran/en-marche.fr
/src/VotingPlatform/AdherentMandate/Factory/NationalCouncilAdherentMandateFactory.php
UTF-8
966
2.515625
3
[ "GPL-3.0-only", "Apache-2.0" ]
permissive
<?php namespace App\VotingPlatform\AdherentMandate\Factory; use App\Entity\AdherentMandate\AdherentMandateInterface; use App\Entity\AdherentMandate\NationalCouncilAdherentMandate; use App\Entity\VotingPlatform\Candidate; use App\Entity\VotingPlatform\Election; use App\VotingPlatform\Designation\DesignationTypeEnum; ...
true
9491a8cd1a67f05aca152741b63a47695e0b2eba
PHP
blrnw3/nw3weather
/Site_v4/nw3/app/core/lazyvar.php
UTF-8
699
2.84375
3
[]
no_license
<?php namespace nw3\app\core; use nw3\app\util\File; /** * Loads serialised data from the FS lazily, i.e. on first access * * @author Ben */ class Lazyvar { private $data; private $path; function __construct($path) { $this->path = $path; } function __get($name) { // Lazy load if(!isset($this->data))...
true
54dc4a54b2a979dc1ae85fd4c670ee03347b645b
PHP
thasa11/qshop
/api/load.php
UTF-8
3,612
2.546875
3
[]
no_license
<?php /** * function load * Query product catalog with given filters, page and search string. * Returns search result grouped by given pricegroups. */ $mysqli = connect_db::init(); $myArray = array(); $tempArray = array(); $tempArray...
true
9399ec66618ebb033a6254857c93c9211c980945
PHP
luga97/recuperativo
/application/controllers/Users.php
UTF-8
3,417
2.84375
3
[ "MIT" ]
permissive
<?php class Users extends CI_Controller { // Registrar usuario public function register() { $data['title'] = 'Registrese sus datos'; // en el readme se encuentra la informacion respectiva de la libreria form validation $this->form_validation->set_rules('name', 'Name', 'required'); $this->form_validation->set...
true
24ff5a16a5632f7f5322b93db6c732fb94bec25c
PHP
iworkshop84/phpstudy2
/controllers/Admin.php
UTF-8
821
2.71875
3
[]
no_license
<?php namespace App\Controllers; use App\Models\News; use App\Classes\View; class Admin { public function actionAdd(){ if (!empty($_POST)){ if(isset($_POST['delete']) && !empty($_POST['id'])){ $news = new News(); $news->fill($_POST); $news->d...
true
25ae929b7ee454b8fd653a5d2c5597bccdd99c39
PHP
njszg/njszki-web
/lnko-php/urlap.php
UTF-8
1,836
3.1875
3
[]
no_license
<?php if(isset($_POST['egyik']) && $_POST['masik']){ $szam1 = $_POST['egyik']; $szam2 = $_POST['masik']; $prim_tenyezok1 = primTenyezo($szam1); $prim_tenyezok2 = primTenyezo($szam2); $kozos_tenyezok = kozosTenyezo($prim_tenyezok1, $prim_tenyezok2); $lnko = szoroz($kozos_tenyezok...
true
9eb04d35e57368ad65bcfa8465315e8e30eabf36
PHP
carlatt/Global-Alignment
/Global Alignment/DBCreator.php
UTF-8
1,499
3.34375
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: carlo * Date: 26/03/17 * Time: 12.51 */ include_once "iostream.php"; include_once "RandomDBMaker.php"; class DBCreator { public static function Run(){ iostream::Output("Welcome to Random DataBase Creator\n\n"); do{ iostream::Output("Enter ...
true
44990f245efa90af258e7e1d9c88b2f1e485deac
PHP
bardecho/Panoraudio
/models/bdpreparada.php
UTF-8
3,309
3.09375
3
[]
no_license
<?php class BDPreparada { const INTEGER='i'; const DOUBLE='d'; const STRING='s'; const BLOB='b'; private $conexion; private $consulta; private $parametros; /** * Clase para utilizar consultas preparadas. * @param String $consulta Consulta preparada a generar. */ publi...
true
8f08e64ca52d68129482a12869c062aba63c0438
PHP
melanth-web/melanth
/src/framework/Contracts/Support/Jsonable.php
UTF-8
214
2.6875
3
[ "MIT" ]
permissive
<?php namespace Melanth\Contracts\Support; interface Jsonable { /** * Convert the object to JSON representation. * * @return string */ public function toJson($options = 0) : string; }
true
daa982b0a9fadf21e81bcf13d61aac41b8172232
PHP
Kentaro5/guildpress-theme-public
/assets/plugins/lock_page_content/class/class-guild-press-lock-page-content-model.php
UTF-8
1,518
2.515625
3
[]
no_license
<?php /** * */ class LockContentModel { public function __construct() { $this->wpfunc = new WpFunc; $this->basic = new Basic; $this->email = new Guild_Press_Email; $this->admin_url=''; } public function content_lock_check( $content ) { $post_id = get_the_ID(); $guild_press_lock_page = $this->wpfunc->...
true
725fcd533583a41866b46dc2a72edf81868eb42a
PHP
PuteriDiyana97/trio_tortoises
/qapi/customer_register.php
UTF-8
8,948
2.515625
3
[ "MIT" ]
permissive
<?php include 'conf.php'; /* ****************************************************************** Write Request Data to Server ****************************************************************** */ $req_dump = print_r($_REQUEST, TRUE); $fp = fopen('logs/customer_register_new_'.date("Y-m-d").'.txt', 'a'...
true