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
47bcf4aacba8cc5817fad5f729c5b0e4e10aa415
PHP
MMMFG-DRichardson/M-M-Manufacturing-Redesign
/wp-content/plugins/soliloquy-lightbox/includes/global/common.php
UTF-8
4,132
2.625
3
[]
no_license
<?php class Soliloquy_Lightbox_Common{ /** * Holds the class object. * * @since 2.3.0 * * @var object */ public static $instance; /** * Path to the file. * * @since 2.3.0 * * @var string */ public $file = __FILE__; /** * Holds the ...
true
f434e794dd524a23a620ef9b5fca8a818996bf7d
PHP
Godzil/deval
/test/test.php
UTF-8
8,287
2.875
3
[ "MIT" ]
permissive
<?php /* ** Generate all possible combinations of $n elements where $k elements are ** equal to "true" and $n - $k are equal to "false". ** $k: number of expected "true" elements ** $n: total number of elements ** return: array of combinations */ function combinations($k, $n, $candidates = array()) { if ($n === ...
true
e05faf58e29acf1748561eaab90daab7ffa8eb27
PHP
renaldirio/api
/app/User.php
UTF-8
1,014
2.578125
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Contracts\Auth\MustVerifyEmail; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Notifications\Notifiable; use Laravel\Passport\HasApiTokens; use Carbon\Carbon; class User extends Authenticatable { use HasApiTokens, Notifiable; /** * The attrib...
true
939a2d7b7a55e09e243ce7d6927df6646fec6043
PHP
thienth/k31b2
/l64/models/Product.php
UTF-8
1,219
3.296875
3
[]
no_license
<?php class Product{ var $table = 'products'; // Hàm khởi tạo (được thực thi ngay khi có câu lệnh new Product() ) function __construct(){ $this->conn = new PDO('mysql:host=127.0.0.1;dbname=k31b2;charset=utf8;', 'root', '123456'); } function getAll(){ $sql = "select * from $this->table"; // $th...
true
ba0ebe43a6891fc6988737178c5ba2ee64199bb4
PHP
syedarsalan9/laravel-crud
/database/migrations/2021_05_17_165617_update_id_from_fcstmr_type_table.php
UTF-8
1,195
2.578125
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class UpdateIdFromFcstmrTypeTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { /* First, upda...
true
73a0fa5134c8a6674b6793a1fe5930bd794a54d2
PHP
sonata-project/SonataIntlBundle
/src/Helper/NumberFormatterInterface.php
UTF-8
7,035
2.875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); /* * This file is part of the Sonata Project package. * * (c) Thomas Rabaix <thomas.rabaix@sonata-project.org> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Sonata\IntlBundle\Helper; /...
true
5d19c87edf3044a7eacc132c40e8c2388a877443
PHP
webignition/basil-loader
/tests/Unit/Resolver/ImportedUrlResolverTest.php
UTF-8
1,823
2.609375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace webignition\BasilLoader\Tests\Unit\Resolver; use webignition\BasilLoader\Resolver\ImportedUrlResolver; use webignition\BasilModels\Model\Page\Page; use webignition\BasilModels\Provider\Page\EmptyPageProvider; use webignition\BasilModels\Provider\Page\PageProvider; use webigni...
true
dded2b7322cf915fbcfd43a74006484191bfe896
PHP
n1c01a5/N1c0QuoteBundle
/Event/BookEvent.php
UTF-8
625
2.765625
3
[]
no_license
<?php namespace N1c0\QuoteBundle\Event; use N1c0\QuoteBundle\Model\BookInterface; use Symfony\Component\EventDispatcher\Event; /** * An event that occurs related to a book. */ class BookEvent extends Event { private $book; /** * Constructs an event. * * @param \n1c0\QuoteBundle\Model\BookIn...
true
3deff8de209024de855f48d6b81e993cf27e1dae
PHP
ericgu178/tool
/src/Other/FootballApi.php
UTF-8
858
2.953125
3
[]
no_license
<?php /** * football-data的接口 * * @author EricGU178 */ class FootballApi { /** * 列出当前所有的欧洲联赛 * * @return void * @author EricGU178 */ public function competitions($id="") { $url = "http://api.football-data.org/v2/competitions/$id"; $json = file_get_contents($url)...
true
e481db7678bc4ace99812ce25dd6983a76717493
PHP
seeren-training/PHP-Object
/magic-deck/src/Controller/CardController.php
UTF-8
476
2.53125
3
[]
no_license
<?php namespace MagicDeck\Controller; use MagicDeck\Service\Builder\MagicCardBuilderService; use MagicDeck\Service\CardService; class CardController extends Controller { public function showAll(string $color = null): void { $this->render("card/show-all.html.php", [ "optionList" => $optio...
true
b73544ed1e41223f8d837c5468b2a18b09ea7513
PHP
RicardoCBranco/meusenador
/src/Modules/Gastos/Model/GastosTable.php
UTF-8
4,320
2.515625
3
[]
no_license
<?php namespace Ufrpe\Senadores\Modules\Gastos\Model; use \Ufrpe\Senadores\Data\Connection; use \Ufrpe\Senadores\Modules\Categoria\Model\CategoriaTable; class GastosTable{ private function __construct(){} public static function top($limit){ $conn = Connection::getInstance(); $stmt = $conn->pr...
true
798bea6d8b071d466048eb0de8743daebdf4c271
PHP
muhajirrr/lumen-boilerplate
/app/Repositories/BaseRepository.php
UTF-8
2,036
2.734375
3
[ "MIT" ]
permissive
<?php namespace App\Repositories; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Str; class BaseRepository { protected $model; protected $perPage = 15; protected $useUuid = true; protected $useSlug = true; protected $slugKey = 'nama'; public function __construct(Model $model)...
true
9222e11a4a6954ddc788bb08f1648ba3a0736d73
PHP
startupengine/laraquick
/src/Models/Traits/Helper.php
UTF-8
1,386
2.546875
3
[ "MIT" ]
permissive
<?php namespace Laraquick\Models\Traits; use Illuminate\Database\Eloquent\Builder; trait Helper { /** * A shortcut to withoutGlobalScope() * * @param string|array $attributes * @return Builder */ public function without($attributes) { return $this->withoutGlobalScope($at...
true
000ddb791a3da4dd6a7c80987ab512c30d9bff74
PHP
bwaidelich/Wwwision.ImportService
/Classes/DataSource/DbalSource.php
UTF-8
5,103
2.515625
3
[ "MIT" ]
permissive
<?php namespace Wwwision\ImportService\DataSource; use Doctrine\DBAL\Connection; use Doctrine\DBAL\DriverManager; use Doctrine\DBAL\Exception as DBALException; use Neos\Error\Messages\Error; use Neos\Error\Messages\Notice; use Neos\Error\Messages\Result; use Neos\Flow\Annotations as Flow; use Neos\Utility\Arrays; use ...
true
9d603ed39dc0c4184379d13a44357a240e5f38a6
PHP
faustomontiel/ProgramacionIII
/Parte2/clases/Middelware.php
UTF-8
9,325
2.71875
3
[]
no_license
<?php use Slim\Http\Message; require_once ('Usuario.php'); require_once ('Media.php'); class MW{ /*Si lo campos existen pasa al siguiente callable*/ public function VerificarSeteo($request,$response,$next){ $retorno=new stdClass(); $retorno->mensaje=""; if(isset($_POST['ema...
true
7c19509c3dd683d1e69f8f553e7a7c9ea807e5d6
PHP
rudashi/collection
/tests/MapJavaScriptArrayTest.php
UTF-8
27,955
3.125
3
[]
no_license
<?php namespace Tests; use PHPUnit\Framework\TestCase; use Rudashi\Map; class MapJavaScriptArrayTest extends TestCase { public function test_at(): void { $map = new Map(['apple', 'banana', 'pear']); self::assertInstanceOf(Map::class, $map); self::assertNull($map->at(-4)); se...
true
c37223ce8ec33237d961bad81b4d11e81b7fbfe6
PHP
westonc/PDOE
/tests/common.php
UTF-8
7,503
2.75
3
[]
no_license
<?php function readln() { $fp=fopen("/dev/stdin", "r"); $input=fgets($fp, 255); fclose($fp); return rtrim($input); } function dberr($dbh) { return implode(',',$dbh->errorInfo()); } function cmpTestRec($fetched,$reference) { //if(!is_array($a1)) throw new ErrorException('first argument to cmpTestRec is not an ...
true
80326c235fb43639cb3430c38e54932a1929384e
PHP
ajinkyag10/VehicleApp
/Core_PHP/server.php
UTF-8
765
2.5625
3
[]
no_license
<?php // Initialize Variables $id=0; $Brand = ""; $Type = ""; $Colour = ""; $Price = 0; // Connect To Database $con = mysqli_connect('localhost','root','Ajinkyag@ansh','Core_PHP'); // If save button is clicked if(isset($_POST['save'])) { $Brand = $_POST['brand']; $Type = $_POST['ty...
true
9f3adc81c99c0d54b567285cf279d691ed07ab7f
PHP
laravel-vesuvius/rest-api-microservices
/user/src/Domain/Common/Exception/DomainException.php
UTF-8
276
2.546875
3
[]
no_license
<?php declare(strict_types=1); namespace App\Domain\Common\Exception; use RuntimeException; class DomainException extends RuntimeException { public function __construct(string $message = '', int $code = 400) { parent::__construct($message, $code); } }
true
c046e8bbe34147b2b01d7d5f5326b35f680565dd
PHP
Xiaobai525574/Mm
/database/migrations/2018_03_20_061928_create_people_table.php
UTF-8
683
2.625
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreatePeopleTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('people', function (Blueprint $table) { $tab...
true
0d2c43ffc94dee4d127de02f4e64d4942f06575e
PHP
joaorodrigues2012/web
/criptografia.php
UTF-8
970
2.90625
3
[]
no_license
<?php include "cabecalho.php"; ?> <?php $senha = "123456"; //BASE64 Criptografia de mão dupla(Codificar e descondificar) $novasenha = base64_encode($senha); // Para criptografar echo "Base64: ".$novasenha."<br>"; echo "Sua senha é".base64_decode($novasenha); //Descriptografar ...
true
bbcbdbe68a9c170357d7d95e72b6bb0bee2e893e
PHP
awisu2/feedMaker
/FeedCreator.php
UTF-8
2,036
3.1875
3
[]
no_license
<?php class FeedCreator { var $id; var $title; var $author; var $link_alternate; var $link_self; var $entries = array(); function __construct() { } private function escapeNgword($txt) { return str_replace("&", " ", $txt); } private function getRfc822() { $sysdate = new datetime(); return $sysdate...
true
5096d10c521b12bcf58107c3e5849a2dccbd503f
PHP
kalninsemils/league-manager
/app/Http/Controllers/ScoreController.php
UTF-8
2,712
2.609375
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Repositories\Score as ScoreRepository; use App\Http\Controllers\Controller; class ScoreController extends Controller { public function __construct(ScoreRepository $score) { $this->score = $score; } public function divi...
true
a74edafe5e062ed3f7813ef69e2a1ea9c65f9c3b
PHP
siyao666/projects
/PHP_Code/PHP_rumen/demo_bianliang.php
UTF-8
830
3.140625
3
[]
no_license
<?php //变量的例子 //申明一个变量 //变量名称最好含义明确 /*$username = 'yaoyao'; $age = 18; $tel = 13975425489; $var; //可以不赋值*/ //$32_sx = 'yaoyao';//这是错误的 $_age = 18; //这是可以的 echo $_age; echo '<br />'; //即使中文可以,但也不要这样命名 /*$你 = '好'; echo $你;*/ //小驼峰命名 $firstName = 'yaoyao'; //大驼峰命名 $FirstName = 'yaoyao'; //下划线命名 ...
true
3fc7481bc8d803a094ca4b7a0c5f7465896002aa
PHP
code-preacher/mymodel_php_mysql
/library/lib.php
UTF-8
10,623
2.8125
3
[]
no_license
<?php session_start(); class Lib { function __construct() { # code... } public function encrypt($value) { return base64_encode($value); } public function decrypt($value) { return base64_decode($value); } public function aes_encrypt($password,$plaintext) { $method = 'aes-256-cbc'; // You must ...
true
63e8f6d2518fa103c07549b3d632df6ed696ced9
PHP
ifrpl/muyo
/net.php
UTF-8
21,812
2.578125
3
[ "BSL-1.0" ]
permissive
<?php // Copyright IF Research Sp. z o.o. 2013. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) if( !function_exists('ifr_protocol') ) { /** * @return string */ function ifr_protocol(...
true
df23ee79ec798f8d4ad96e2ab1551c6f85d79213
PHP
pthreat/StangeMercadoPago
/Components/Service/Checkout/Basic.php
UTF-8
12,280
2.84375
3
[ "MIT" ]
permissive
<?php /** * This service uses the \MP client class by composition in order to obtain a valid checkout URL. * * @author Federico Stange <jpfstange@gmail.com> * @license MIT (For more details, see the LICENSE file) * * @TODO replace array structures with "shopware structs" to be able to type hint each meth...
true
91017e8bc8490cedde79a9028ce3258aaf796832
PHP
alexandrewavelet/musikeole
/toor/vues/sondages/detail.php
UTF-8
1,902
2.546875
3
[]
no_license
<?php include("includes/header.php"); ?> <div class="container"> <div class="row"></div> <div class="row"> <div class="col-md-6"> <div class="jumbotron"> <h1><?php echo $sondage->getTitre(); ?></h1> </div> </div> <div class="col-md-6"> <div class="jumbotron"> <h1><?php echo $sondage->getVotants...
true
72b4b3753e067c38260fe9939c58b5fb0dcc0f36
PHP
ffk27/loginsysteem
/views/Form.php
UTF-8
4,868
2.5625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Gebruiker * Date: 3/19/2017 * Time: 6:06 PM */ class Form { /** * @var string */ private $id; /** * @var array */ private $fields; /** * @var string */ private $submitname; /** * @var string */ private...
true
f876b1c7479d2334a22de6c0ee8263b78ccb550b
PHP
troikaitsulutions/templeadvisor
/common/models/Guestcapacity.php
UTF-8
2,652
2.546875
3
[ "BSD-3-Clause" ]
permissive
<?php /** * This is the model class for table "{{page}}". * * The followings are the available columns in table '{{page}}': * @property string $page_id * @property string $name * @property string $title * @property string $description * @property string $parent * @property string $layout * @property string $...
true
e3f7ac9b95b9072c367bd8b5dc9c1b8cafdb3e32
PHP
MeowSterNya/csdepartment-website
/includes/update.php
UTF-8
557
2.671875
3
[]
no_license
<?php if(isset($_POST["club-edit"])) { $ID = $_POST["club-edit"]; if(isset($_POST["club-update"])) { $name = $_POST["club-name"]; $description = $_POST["club-description"]; $result = query("UPDATE clubs SET name = $name, description = $description, WHERE i...
true
acd84d4d750f90403bb3b82a026dd7980ebbbcfd
PHP
udaychhina/cpsc2030_final_project
/templates/book-results.php
UTF-8
1,593
2.875
3
[]
no_license
<?php function book_cards() { global $userBooks; echo "<div class=\"cards shown\">"; for($i = 0; $i < count($userBooks); $i++) { echo "<div class=\"book-card\">"; echo "<div class=\"title\">"; echo "<h3>".$userBooks[$i][1]."</h3></div>"; echo "<span class=\"author\">"; echo $userBooks[$i][2]."</span><hr>";...
true
3d6d4f0fdf1b526dfaf58cc51b1f73ca18ea39e1
PHP
makenosound/media_resolvr
/lib/resolvr.php
UTF-8
412
2.546875
3
[]
no_license
<?php # GET params strip extra / in http://, ensure URI is formed correctly $url = "http://" . ltrim($_GET['url'], "http:/"); $pieces = parse_url($url); $host = ltrim($pieces['host'], "www."); # Pass off to the right processor switch ($host) { case "flickr.com": require_once("flickr.photos.php...
true
66c2730ddc2f2126da72e724edbd9524d1f8b36e
PHP
lahiruroot/Newlanka
/doctor_channeling_costs_list.php
UTF-8
1,393
2.53125
3
[ "MIT" ]
permissive
<?php require_once('header.php'); ?> <table class="table table-borderless"> <thead> <tr> <th class="w-25">Name</th> <th class="w-25">Email</th> <th class="w-25">Channeling_Costs</th> <th class="w-25">Add Payment</th> <th class="w-25"></th> ...
true
b379391f7fe732cb97bab0a18f29d0b93d91e40d
PHP
marleysidapple/petstore
/app/Interfaces/DeleteInterface.php
UTF-8
205
2.859375
3
[ "MIT" ]
permissive
<?php namespace App\Interfaces; interface DeleteInterface { /** * Delete an item * * @param string|integer $id * @param array $data */ public function delete($id, array $data = []); }
true
02d7f69f7d6ff5dbf60515d6b439c7671b0ac83a
PHP
hmazter/advent-of-code-solutions
/2015/day22/day22.php
UTF-8
4,230
2.859375
3
[]
no_license
<?php spl_autoload_register(function ($class) { require_once $class . '.php'; }); $spells = [ 'MagicMissile', 'Drain', 'Poison', 'Shield', 'Recharge', ]; $leastSpent = null; $count = 0; $combinations = []; while (true) { $count++; if ($count % 100000 == 0) { echo 'Iteration '...
true
414cab2847f4a74a6cb9161d7274870931a931bf
PHP
MarianaHinojosa17/Tecnologias_Aplicaciones_Web
/practica8/views/modules/agregar_al_tuto.php
UTF-8
763
2.625
3
[]
no_license
<?php /* SE INICIA LA SESION PARA QUE EL USUARIO TENGA PERMITIDO INGRESAR A ESTA VISTA LA VISTA ES PARA "AGREGAR UN ALUMNO A UNA TUTORIA" SE CREA UN FORM CON METODO POST SE CREA UN OBJETO DE LA CLASE CONTROLLER Y SE MANDA LLAMAR LAS FUNCIONES DE: MOSTRAR ALTUTO AGREGAR ALTUTO REGISTRO MAESTROS (PARA RE...
true
c74e674f047c3d7322e111e98ab739f9ebbdeee9
PHP
SylwesterKowal/plugin.cakephp-slug
/config/Migrations/20160724162750_Initial.php
UTF-8
1,688
2.765625
3
[]
no_license
<?php use Migrations\AbstractMigration; class Initial extends AbstractMigration { public function up() { $this->table('slugs') ->addColumn('plugin', 'string', [ 'default' => null, 'limit' => 255, 'null' => true, ]) ->a...
true
abda72a435cc3c04dbbbc3c3a7d0a3e29f856af5
PHP
jacob-van-dam-ict/fork-cms-catalog
/src/Backend/Modules/Catalog/Domain/Account/Command/UpdateAccountHandler.php
UTF-8
668
2.59375
3
[]
no_license
<?php namespace Backend\Modules\Catalog\Domain\Account\Command; use Backend\Modules\Catalog\Domain\Account\Account; use Backend\Modules\Catalog\Domain\Account\AccountRepository; final class UpdateAccountHandler { /** @var AccountRepository */ private $accountRepository; public function __construct(Accou...
true
c148c16800dfcab568b6a426e02be5adc5549a84
PHP
Partyschaum/Design-Patterns-Studies
/php/src/pattern/strategy/duck/Squeak.php
UTF-8
142
2.734375
3
[]
no_license
<?php namespace pattern\strategy\duck; class Squeak implements QuackBehaviour { public function quack() { echo "Squeak\n"; } }
true
38e55880fd39e3356aac42a84299553d3fa281f7
PHP
v-kinoshita1022/Challenge
/UserManagementSystem-ver1.0/app/insert_result.php
UTF-8
1,445
2.59375
3
[]
no_license
<?php require_once '../common/scriptUtil.php'; require_once '../common/dbaccesUtil.php'; session_start(); //課題5直リンク禁止 hiddenがnullならエラー $hidden = isset($_POST["hidden"])?$_POST["hidden"]:""; //var_dump($hidden); if(empty($hidden)){ echo '<h1>入力からやり直してください<br></h1>'; echo return_insert(); exit; } ?> <...
true
878f30292aa7a165fe7750dd75d7ef87378ac745
PHP
bmwarner/taskapp
/application/models/Task_model.php
UTF-8
1,403
2.609375
3
[]
no_license
<?php class Task_model extends CI_Model { public function __construct() { $this->load->database(); } public function get_task($slug = FALSE) { if ($slug === FALSE) { $query = $this->db->get('task'); return $query->result_array(); } ...
true
104a2a27a07244cf856454f58fd3d51197523787
PHP
xrmxsolutions/tabs2-php-client
/examples/collection.php
UTF-8
3,664
2.75
3
[]
no_license
<?php if (!function_exists('getParentLink')) { function getParentLink($object, &$links = array()) { if ($object->getParent()) { getParentLink($object->getParent(), $links); } $links[] = $object->getClass(); $links[] = $object->getId(); return $links...
true
f69850f609e5d870fdee53543b4b473136fef06e
PHP
kloy/fuel-jammit
/classes/jammit.php
UTF-8
2,116
2.78125
3
[]
no_license
<?php /** * Jammit class * * @version 1.0 * @author Keith Loy * @license MIT License * @copyright 2011-2012 Keith Loy */ namespace Jammit; class Jammit extends \Asset { /** * Is jammit already initialized. * * @var bool * * @access protected * @static */ public static $is_initialize...
true
8d7ac79e9e0640df05d82bd39d0a9d0f34aceef5
PHP
SanderU001/PHP-ADVANCED
/2-Loops/taak04/index.php
UTF-8
362
3.3125
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <body> <?php $klassen = array("8A", "8B", "8C", "8D", "8E", "9A", "9B", "9C", "9D", "9E"); foreach($klassen as $x => $val) { echo...
true
97d5084b273e3aa02284c5ce3e546864d1007c22
PHP
alvarlaigna/b8framework
/b8/Model.php
UTF-8
4,005
2.765625
3
[]
no_license
<?php namespace b8; use b8\Exception\HttpException; use b8\Cache; class Model { public static $sleepable = array(); protected $getters = array(); protected $setters = array(); protected $data = array(); protected $modified = array(); protected $tableName; protected $cache;...
true
d4036f0f009ff37e901e88c26529b072b9cfbb7e
PHP
marktan93/phpframework
/app/controllers/company.php
UTF-8
4,733
2.578125
3
[]
no_license
<?php /** * Description of company * * @author Mtcy */ class company extends controller { public function banner() { $role = new role(); $role->isRole(cookie::get("id"), Constant::Admin); $this->content("banner"); } public function banner_json() { $b_obj...
true
56c2916b74d1b80d523e56fc7411a23555f60fe8
PHP
ibrahimrahimi/Login-System
/register.php
UTF-8
7,904
2.609375
3
[]
no_license
<?php use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\Exception; /* Include the Composer generated autoload.php file. */ require 'vendor/autoload.php'; $mail = new PHPMailer(TRUE); error_reporting(E_ALL); session_start(); include('config.php'); include('function...
true
751674a295ee3fe7d091401455e79ece74721ad3
PHP
FantomX1-github/fracture
/src/lib/fracture/autoload/node.php
UTF-8
1,711
2.625
3
[ "BSD-2-Clause" ]
permissive
<?php namespace Fracture\Autoload; class Node { private $children = []; private $paths = []; private $hasNewPaths = false; private $namespace = ''; public function addPath( $path ) { $this->paths[] = $path; $this->hasNewPaths ...
true
a4533e57c21eeeb80c39c36408aa99f64f36e161
PHP
mintobit/aerys
/lib/VhostContainer.php
UTF-8
9,361
2.859375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace Aerys; class VhostContainer implements \Countable, Monitor { private $vhosts = []; private $cachedVhostCount = 0; private $httpDrivers = []; private $defaultHttpDriver; private $setupHttpDrivers = []; private $setupArgs; public function __construct(HttpDriver $driver) { ...
true
1e3cda8ce266e26fd1791cae8c5e264e97a0d751
PHP
maks-sl/symfony-fonts
/app/src/Model/Font/Service/File/FileManager.php
UTF-8
6,828
2.6875
3
[]
no_license
<?php declare(strict_types=1); namespace App\Model\Font\Service\File; use App\Model\Font\Entity\Font; use League\Flysystem\FilesystemException; use League\Flysystem\FilesystemOperator; use Symfony\Component\HttpFoundation\File\UploadedFile; use ZipArchive; use ZipStream\Exception\OverflowException; use ZipStream\Op...
true
6d2c9346ac6d938189a4f076ec6af3039ba33d60
PHP
prazvan/wheel
/App/Repositories/Db/WheelRepository.php
UTF-8
515
2.890625
3
[]
no_license
<?php namespace App\Repositories\DB; use Models\Wheel; class WheelRepository extends Repository { /** * Get Wheel from cache or DB * * @param $id * * @return mixed */ public function getById($id) { return $this->cacheQuery('wheel.'.$id, function () use ($id) { ...
true
36f94a76be219a6d568bbb145399eee70652321a
PHP
natsss/WebProgII
/public/vorlesung/einmaleinsVL.php
UTF-8
264
3.328125
3
[ "MIT" ]
permissive
<table> <?php $zeilen = 10; $spalten = 10; for ($zeile = 1; $zeile <= $zeilen; $zeile++) { echo "<tr>"; for ($spalte = 1; $spalte <= $spalten; $spalte++) { echo "<td>"; echo $zeile*$spalte; echo "</td>"; } echo "</tr>"; } ?> </table>
true
e776037a64ab78de147698fb9f2b6380a6c34758
PHP
contactodohgerald/centadesk_project
/app/Model/Ticket.php
UTF-8
1,190
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Model; use Illuminate\Database\Eloquent\Model; use Illuminate\Notifications\Notifiable; use Illuminate\Database\Eloquent\SoftDeletes; class Ticket extends Model { // use Notifiable; use SoftDeletes; protected $table = 'tickets_tb'; protected $primaryKey = 'unique_id'; pro...
true
4e4f4991b2377f6980c6fcd450a0d233ca023d2c
PHP
pi0/php-ubjson
/UBJSON.php
UTF-8
10,027
3.09375
3
[ "BSD-2-Clause", "BSD-3-Clause" ]
permissive
<?php /** * Informs if the system's CPU uses the little endian byte order * * @var bool */ define('SYS_LITTLE_ENDIAN', pack('S', 0xFF) === pack('v', 0xFF)); class UBJSON { const TYPE_ARRAY = 0; const TYPE_OBJECT = 1; //internal constants const EOF = 0; const DATA = 1; const NOOP = 'N'; const NULL ...
true
9308f49d2a2b95511c0461a1f1330a6d4e77f157
PHP
ptruong8/truongPortfolio
/contact.php
UTF-8
378
2.53125
3
[]
no_license
<?php if(isset($_POST['submit'])){ $name = $_POST['name']; $mailFrom = $_POST['email']; $subject = $_POST['subject'] $msg = $_POST['msg']; $to = "phuc_truong123@yahoo.com"; $message="Name: ".$name."\n"."Email: ".$mailFrom."\n"."Subject: ".$subject."\n"."Message: "."\n\n".$message; if(mail($to, $subject, $me...
true
e8db84dc5bff6c18906bd7c671d3b11f85082299
PHP
li-chun-yin/blogroll
/_test/src/storage/FileStorageTest.php
UTF-8
715
2.75
3
[]
no_license
<?php use PHPUnit\Framework\TestCase; use lichunyin\blogroll\storage\FileStorage; /** * * @author 李春寅 <licy2013@aliyun.com> * @since 2019年5月23日 */ class FileStorageTest extends TestCase { public function testMain() { $path = __DIR__ . DIRECTORY_SEPARATOR . 'link.storage.json'; $test...
true
96dd9c5ac75f61560290c7836d6212e2cd842db5
PHP
elinoretenorio/php-headless-crud-for-wordpress-db
/src/WpTermTaxonomy/IWpTermTaxonomyService.php
UTF-8
459
2.53125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace WordPress\WpTermTaxonomy; interface IWpTermTaxonomyService { public function insert(WpTermTaxonomyModel $model): int; public function update(WpTermTaxonomyModel $model): int; public function get(int $termTaxonomyId): ?WpTermTaxonomyModel; public function ge...
true
aa01d103bb1436984929f334c335aaecb70b2553
PHP
Learnosity/learnosity-qti
/src/Entities/QuestionTypes/hotspot_area_attributes_global.php
UTF-8
1,300
2.578125
3
[ "MIT" ]
permissive
<?php namespace LearnosityQti\Entities\QuestionTypes; use LearnosityQti\Entities\BaseQuestionTypeAttribute; /** * This class is auto-generated based on Schemas API and you should not modify its content * Metadata: {"responses":"v2.108.0","feedback":"v2.71.0","features":"v2.107.0"} */ class hotspot_area_attributes_gl...
true
b136cf9b6a4aee2484b8f4ed9e78e13926ac9fd7
PHP
michz/shinage-server
/src/Repository/UserRepository.php
UTF-8
1,034
2.609375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); /* * Licensed under MIT. See file /LICENSE. */ namespace App\Repository; use App\Entity\User; use Doctrine\ORM\EntityManagerInterface; class UserRepository implements UserRepositoryInterface { /** @var EntityManagerInterface */ private $entityManager; public function _...
true
c75d2b345cf9d56fdf37171dbd915f1c7c2532b6
PHP
FelipeFFS93/FsEletroServidor
/PROJETO/Contatos.php
UTF-8
3,303
2.515625
3
[]
no_license
<?php $servername = "localhost"; $username = "root"; $password = ""; $database = "full_stack_eletro"; // Criando a conexão $conn = mysqli_connect($servername, $username, $password, $database); // Verificando a conexão if (!$conn) { die("A conexão ao BD falhou: " . mysqli_connec...
true
51dbe3adbcc64677049f2c03bc2380951a13b600
PHP
toyyo/content-generator
/application/classes/Arr.php
UTF-8
1,248
3.875
4
[]
no_license
<?php /** * Helpers to work with arrays */ class Arr{ /** * Fill an array with a range of numbers. * * // Fill an array with values 5, 10, 15, 20 * $values = Arr::range(5, 20); * * @param integer $step stepping * @param integer $max ending number * @retur...
true
72a6ad4584b619f6a00439dca3380303b0e119cf
PHP
juaguzman/SIRGLAB
/includes/register.inc.php
UTF-8
6,158
2.734375
3
[]
no_license
<?php include_once 'db_connect.php'; include_once 'psl-config.php'; $error_msg = ""; $error_msg_cedu = ""; $error_msg_usu = ""; $error_msg_ema = ""; $error_msg_psw = ""; if (isset($_POST['cedu'],$_POST['username'], $_POST['email'], $_POST['p'], $_POST['name'], $_POST['apell'])) { // ...
true
7e4b834084c8813a01221986814b5b7105492508
PHP
bigSwitch314/bswitch
/application/common/service/blog/OpenSourceProject.php
UTF-8
7,418
2.546875
3
[ "Apache-2.0" ]
permissive
<?php /** * Created by PhpStorm. * User: qiangluo * Date: 2018/7/13 * Time: 下午12:00 */ namespace app\common\service\blog; use app\common\model\blog\OpenSourceProject as OpenSourceProjectModel; use app\common\model\blog\OspUpdateLog as OspUpdateLogModel; use think\Db; class OpenSourceProject { /** * @v...
true
1106a04248fb8eeb122d7f276415ecdf0a06e357
PHP
harrybarnard/legacycms
/application/modules/default/views/helpers/YtDuration.php
UTF-8
1,428
2.9375
3
[ "MIT" ]
permissive
<?php /** * LEGACY CMS * @author Harry Barnard * @version 2.1 * @copyright Copyright (c) 2010 Harry Barnard (http://harrybarnard.com) */ require_once 'Zend/View/Interface.php'; /** * ArtCategoryList helper * * @uses viewHelper Zend_View_Helper */ class Zend_View_Helper_YtDuration { /** * @var Zend_Vie...
true
1153d1a7a171bee49029c864658a0174eeef4d07
PHP
urbinacity/actores
/database/seeds/ActorMovieTableSeeder.php
UTF-8
932
2.578125
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; class ActorMovieTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $actor_factory = factory(App\Actor::class); $actors = array( $actor_factory->create(['name' => 'Al Pa...
true
b13dfcf6e0d77e7137c4474414d779b5be3137ae
PHP
cixware/esewa-php-sdk
/src/Client.php
UTF-8
2,973
2.953125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Cixware\Esewa; use GuzzleHttp\Exception\GuzzleException; final class Client { private ?Config $config; public function __construct(Config $config) { $this->config = $config; } /** * This method creates the form in runtime and post the data t...
true
7db1972efe3f182600611786167f8a795567e882
PHP
nielx/rambler2.0_jump
/site/map/update.php
UTF-8
1,054
2.671875
3
[]
no_license
<?php require_once('config.php'); function db_connect() { $db = mysql_connect('localhost', DB_USER, DB_PW); if (!$db) { die ('Could not connect to database: ' . mysql_error()); } if (!mysql_select_db(DB_DBASE, $db)) { die ('Could not select database: ' . mysql_error()); } mysql_set_charset('utf8', $db); ...
true
b73f72c000851d4885932acccf85345797757fff
PHP
subhrapaladhi/File-Handling-in-PHP
/fopen/index.php
UTF-8
410
3.546875
4
[]
no_license
<?php $sampleFile = fopen("sample.txt","r") or die("unable to open file!"); $fileSize = filesize("sample.txt"); echo fread($sampleFile, $fileSize); fclose($sampleFile); ?> <!-- 1. fopen(): open a file --> <!-- 2. fread(): The fread() function reads from an open file. --> <!-- 3. filesize(): get the len...
true
041b0ecc29d6e00b99e50d53b5988e56baf5eaf6
PHP
tigergithub01/ecommerce-web
/models/vip/VipAddress.php
UTF-8
2,225
2.59375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models\vip; use Yii; /** * This is the model class for table "t_vip_address". * * @property integer $id * @property integer $vip_id * @property string $name * @property string $phone_number * @property integer $province_id * @property integer $city_id * @property integer $district_id * ...
true
dfed34f9f6aa3a08cc7ac143dea701bf03cc4953
PHP
cristianoferr/projetos
/web/ConstruBook_antigo/include/modulos/default/view/painel/painel_base_sql.php
UTF-8
661
2.640625
3
[]
no_license
<? class GeraSQLStatic{ function getSQLColunas($pkID,$colunas){ $sql="#"; for ($c=0; $c<sizeOf($colunas);$c++){ $coluna=$colunas[$c]; $sql.=", ".$coluna->getSelectSQL($pkID); } $sql=str_replace("#,","",$sql); if ($sql=="#"){die("Collumns undefined(#).");} return $sql; } function getF...
true
5871efa5e5de65db317481cc4d61f0c7d89f4d8e
PHP
ShashankSanjay/DCAF-Social
/app/models/BillingAccount.php
UTF-8
1,540
2.796875
3
[ "MIT" ]
permissive
<?php /** * @package {package} * @subpackage {subpackage} * @copyright Copyright (c) 2013-2014 DCAF * @license {license} * @author Alexander Rosenberg * @version 1.0 */ /** * import namespaces and class names * * Note: * Eloquent is defined as an alias of Illuminate\Database\Eloquent\Model *...
true
c7f42ce5efb526db325ebd43716ebe3fcf91fe5b
PHP
baigoStudio/baigoCMS
/app/tpl/console/default/include/opt_form.tpl.php
UTF-8
4,335
2.546875
3
[ "Apache-2.0" ]
permissive
<?php $_arr_rule = array(); $_arr_attr = array(); $_arr_selector = array(); foreach ($consoleOpt as $_key=>$_value) { if (isset($_value['require'])) { $_arr_rule[$_key]['require'] = $_value['require']; } if (isset($_value['format'])) { $_arr_rule[$_key]['format'] = $_value...
true
be053b2e7c378b1ff4fbe23c656296f73b1064b8
PHP
jamesduffy/analytics-app
/application/controllers/help.php
UTF-8
780
2.5625
3
[]
no_license
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Help extends CI_Controller { /** * Do some work for this group of pages. */ function __construct() { parent::__construct(); // Set the access token if the user has an active session if ( $this->session->userdata...
true
5eb422b1cdfaa15f052a7892c081f19370b4e499
PHP
zillow-oc/php-helpers
/test/aprintp.php
UTF-8
248
2.65625
3
[]
no_license
<?php include("../src/helpers.php"); $result = aprintp("[{0}]", "Banana", "Apple", "Peach", "Cherry"); var_dump($result); $result = aprintp("[{0} = {1}]", ["Bananas", "Yummy"], ["Apples", "Good"], ["Peach", "Natural"] ); var_dump($result);
true
c3829b7bafb7a5d55c45a9da6fd058094912467d
PHP
Kingtones/WebSystem
/CAW/application/views/templates/fenye.php
UTF-8
622
2.578125
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<style> div.page{ position: relative; top: 150px; font-size: 30px; } </style> <center> <?php echo"<div class=page>"; echo"<br/><br/>"; echo "当前{$page}/{$pages}页,共{$total}条"; echo anchor("$url",'首页'); echo "||"; if($page<2){ echo anchor("$url",'上一页'); } else { $url2=$url."/".($page-1); echo anchor("$url2",...
true
90eae24b5302e8de9ea41d59c6d00bb027538ef7
PHP
krmroland/drug-store
/database/migrations/2018_11_03_105311_create_drug_batches_table.php
UTF-8
896
2.59375
3
[]
no_license
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateDrugBatchesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('drug_batche...
true
7bb5444ce8ce0053ed942f84fa620f6a7cb37841
PHP
aftaa/a
/vo/Icon.php
UTF-8
585
3.109375
3
[]
no_license
<?php namespace vo; use strategy\LinkPrivateStrategy; /** * Class Icon * * @package vo */ class Icon implements IFavicon { /** @var string */ private $href = ''; /** * Icon constructor. * * @param string $href */ public function __construct(string $href) { $this-...
true
b77331bded53987271b287e4cf4ef267ada85d80
PHP
damiensaunders/dbc-backup-2
/dist/dbc-backup-2/tags/2.4.5/inc/admin_functions.php
UTF-8
9,503
2.5625
3
[]
no_license
<?php // @todo fix up the translations // dbcbackup_locale(); /* ------------------------------------------------------------------------ * * This is really important shit that was in the plugin admin page * since version 2.3 moved to this * @todo move all the _POST URL stuff to a separate file * --------------...
true
d2f23ee6391f3a781f3c5a7e8fbf23bfae406424
PHP
kenzym04/Pizza-Palace-Billing-System
/src/db.php
UTF-8
2,992
2.953125
3
[]
no_license
<?php Class Db{ private $con; function __construct($db = "pizza_order"){ $this->con = mysqli_connect("localhost", "root", "", $db); if(mysqli_connect_errno()) echo "Failed to connect to MySQL: " . mysqli_connect_error(); $this->query("select * from pizza"); } private function query($query){ $res = mysqli...
true
0a9bf6d887635898338a9089031597a58a1da7fd
PHP
agustincaceres96/tpPHP
/Model/Role.php
UTF-8
430
2.875
3
[]
no_license
<?php namespace Model; class Role{ private $id; private $descripcion; public function getId(){ return $this->id; } public function getDescripcion(){ return $this->descripcion; } public function setId($id){ $this->id=$id; } public function...
true
532a740e9187232fa323ae3432a6534bb78687ad
PHP
danhumphrey/tmLib
/tests/test_SelectQueryLiveWithPdo.php
UTF-8
7,399
2.890625
3
[]
no_license
<?php //tests includes require_once('test-includes.php'); class Person { private $name; private $age; } class TestOfSelectQueryLiveWithPdo extends UnitTestCase { /** * db instance * @var TmDb */ private $db; function __construct() { parent::UnitTestCase(); $this->db = new TmPdoDb(...
true
c04ea7421265cb4d576143b0715a99ac92451d7a
PHP
samycorps/sunuassurances
/app/Http/Controllers/VehicleClaimController.php
UTF-8
5,441
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\VehicleClaim; use App\Http\Requests; use App\Helpers\Helper; use Illuminate\Support\Facades\Log; use Illuminate\Support\Facades\DB; class VehicleClaimController extends Controller { protected $helper; public function __construct(Help...
true
d2dc71be63d77e7c4f4ec9aae5497eaee9cc82d8
PHP
winston444/sea
/core/PEAR/MP3/IDv2/Frame/USER.php
UTF-8
4,932
2.640625
3
[ "Apache-2.0", "BSD-2-Clause" ]
permissive
<?php /** * This file contains the implementation for USER frame * * PHP versions 5 * * Copyright (C) 2006-2007 Alexander Merz * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; e...
true
38bcc07e98c6a42f77cb79909ace042431debda1
PHP
FelipeOSilva/PHP_Consumir_API_Github
/app/usuario_info.php
UTF-8
1,953
2.9375
3
[]
no_license
<?php include 'View/header.php'; require "Controller/UsuarioController.php"; require "Controller/RepositorioController.php"; /*Verificando request do usuario clicado*/ if(isset($_REQUEST['usuario']) && $_GET["usuario"]): /*Atribuindo à variavel $usuario o valor enviado por get*/ $usuario = $_GET['usuario']; $us...
true
c89e28816db00f8730a7cda014a1745ca326cf0a
PHP
mri-dev/seal-ring
/admin/application/libs/PortalManager/PriceGroups.php
UTF-8
4,312
2.671875
3
[]
no_license
<? namespace PortalManager; use Interfaces\InstallModules; /** * class PriceGroups * @package PortalManager * @version v1.0 */ class PriceGroups implements InstallModules { const DBTABLE = 'shop_price_groups'; const MODULTITLE = 'Ár csoportok'; private $db = null; public $tree = false; private $current_item...
true
a5e19beacca18e057ee37758bf6c785d35588833
PHP
SOF3/simple-plugins
/PersistTips/src/SOFe/PersistTips/PersistTips.php
UTF-8
1,251
2.78125
3
[ "Unlicense" ]
permissive
<?php declare(strict_types=1); namespace SOFe\PersistTips; use pocketmine\event\Listener; use pocketmine\event\player\PlayerChatEvent; use pocketmine\event\player\PlayerQuitEvent; use pocketmine\plugin\PluginBase; use SplObjectStorage; class PersistTips extends PluginBase implements Listener{ /** @var SplObjectSto...
true
8dba2548b5e50d1d93296645b1f61ab08ed8f90b
PHP
ErikaEdvinsson/halland
/app/Theme/ThemeOptions.php
UTF-8
1,080
2.59375
3
[]
no_license
<?php namespace App\Theme; class ThemeOptions { public function __construct() { add_action( 'admin_menu', array($this, 'addOptionsPage') ); add_action( 'init', array($this, 'unregisterTags') ); } public function addOptionsPage() { if (!function_exists('acf_add_options_page')) { return false; } ...
true
5129af31390b0edd1d3acf047b7b8887120d8d77
PHP
dianafire/proektkurs
/6_php_basics_array/ex_1.php
UTF-8
291
2.828125
3
[]
no_license
<?php $cars= array('Toyota','BMW','Kia','Honda','Mercedes','Suzuki'); $lenght=count($cars); foreach ($cars as $value) { echo "<p>I want to buy $value.</p>"; } echo "<br /> <br /> <br />"; unset ($cars[5]); foreach ($cars as $value) { echo "<p>I will buy $value.</p>"; }
true
d612919b049811fa9276be6883cdd96fa9571fdb
PHP
anhphamkstn/freelancer_nasaco
/nasaco/app/Http/Controllers/BillController.php
UTF-8
7,589
2.609375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Services\BillService as BillService; use App\Helpers\Response; use Illuminate\Support\Facades\Input; class BillController extends Controller { protected $billService; /** * BillController constructor. * @param BillService ...
true
94351ac04a5b1c54dd499d09aef292d19e7679f6
PHP
isabella232/apm-agent-php
/src/ElasticApm/Impl/Config/OptionWithDefaultValueMetadata.php
UTF-8
1,094
2.546875
3
[ "Apache-2.0" ]
permissive
<?php declare(strict_types=1); namespace Elastic\Apm\Impl\Config; /** * Code in this file is part of implementation internals and thus it is not covered by the backward compatibility. * * @internal * * @template T * * @extends OptionMetadata<T> */ abstract class OptionWithDefaultValueMetadata extends Op...
true
c20a58d0e273120094047e7be8b65b27c106508d
PHP
kavyatc/Accounting
/app/Http/Controllers/Back/PartyController.php
UTF-8
4,161
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Back; use Illuminate\Http\Request; use App\ { Http\Controllers\Controller, Http\Requests\PartyRequest, Models\Party, Models\Currency, Models\PartyType, Models\City }; class PartyController extends Controller { /** * Display a listing of the party...
true
79d31f7a887354bdd7846cb86c9d0e4c8e8e7aca
PHP
martinostrat/php
/oop/test.php
UTF-8
702
2.875
3
[]
no_license
<?php require_once 'text.php'; require_once 'ctext.php'; $sentence1 = new text(); echo '<pre>'; print_r($sentence1); echo '</pre>'; $sentence1->setText('Tere VS16!'); echo '<pre>'; print_r($sentence1); echo '</pre>'; $sentence1->show(); echo '<hr/>'; $sentence2 = new text('Tere koos konstruktoriga'); echo '<pr...
true
ce1e4dccfa161fcea4c65eb5417c8a0903a5300a
PHP
tungvn/timesheet
/app/Http/Responses/V1/DeleteResponse.php
UTF-8
908
2.609375
3
[]
no_license
<?php namespace App\Http\Responses\V1; use Illuminate\Contracts\Support\Responsable; class DeleteResponse implements Responsable { /** @var string */ protected $message; /** * DeleteResponse constructor. * * @param string $message */ public function __construct($message) { ...
true
5bb3071e873abbc830bfdbe3d5e17cb937ea233f
PHP
manash0621/ALA
/app/Models/Admin.php
UTF-8
1,399
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Facades\DB; class Admin extends Model { use HasFactory; protected $admin = "admin"; /* ----------------------------------- CHECK -----------------...
true
0e234a51e643a317b2c02bc1c76beefe77511496
PHP
AgustinaAC/maldito-proyecto-sap
/meditorial/mpedido/pedidostotales.php
ISO-8859-1
2,763
2.5625
3
[]
no_license
<?php session_start(); if(!isset($_SESSION['userid'])) { if(isset($_POST['login'])) { if(verificar_login($_POST['user'],$_POST['password'],$result) == 1) { $_SESSION['userid'] = $result->idusuario; header("location:index.php"); } } else { ...
true
f5e336ef644e97855bd7c2c4f16c8361d27d5d5b
PHP
jirawat050/TUSF321
/softwareproject/connectlogic/connectiondatabase.php
UTF-8
477
2.703125
3
[]
no_license
<?php $dbhost = "localhost"; // this will ususally be 'localhost', but can sometimes differ $dbname = "test"; // the name of the database that you are going to use for this project $dbuser = "ppn"; // the username that you created, or were given, to access your database $dbpass = "1q1q"; // the password that yo...
true
30803930ed5bc3de1e695aae3ae3ebb287651a4e
PHP
lewisdgearing/OP-SE2016-SILI
/content/api/UserAPI.php
UTF-8
13,516
2.96875
3
[]
no_license
<?php /** * SILI User API * * User API contains functions to mainly the User Table * and/or functions related to User. * * Direct access to this file is not allowed, can only be included * in files and the file that is including it must contain * $internal=true; * * @copyright 2016 GLADE * @f...
true
f0baf1f68b5508a564e920a5120b8157e240b87e
PHP
newclarity/amp
/includes/Shared/Util.php
UTF-8
8,924
2.546875
3
[]
no_license
<?php namespace NewClarity\AMP\Shared; use DOMDocument; use DOMElement; use DOMNode; use NewClarity\AMP\HtmlElements\HtmlElement; use NewClarity\AMP\AmpElements\AmpElement; class Util { /** * @param string $html * @param DOMElement|null $node * * @see https://www.ampproject.org/docs/reference/spec * * ...
true
b9c36fd68ed76777366f917b54f990950fcc1033
PHP
cgy1992/web_hqoj
/library/debug/logger/Logger.class.php
UTF-8
2,835
2.5625
3
[]
no_license
<?php class Logger { public static function fatal($tag, $msg) { self::insert($tag, LogVars::LEVEL_FATAL, $msg); } public static function error($tag, $msg) { self::insert($tag, LogVars::LEVEL_ERROR, $msg); } public static function warn($tag, $msg) { self::insert($tag, LogV...
true