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
82687a45f04ab80353159704323aea2a5ccf3d92
PHP
PR6-MEM/PR6_MEM
/valoracion publico/php/login.proc.php
UTF-8
2,253
2.546875
3
[ "MIT" ]
permissive
<?php //Obtenemos los datos del formulario extract($_REQUEST); // Desactivar toda notificación de error error_reporting(0); //Los comparamos con la BD //Conexion require_once("conexion.proc.php"); //Si nos llega una variable de alumno, buscaremos en Alumno if(isset($matricula)) { //SQL $sql...
true
82bdc6bd4eab81390969190992a8b8b217b6ef6e
PHP
JorgeHigueraFombuena/persistenciaPHP
/src/scripts/web/model/user_functions.php
UTF-8
2,218
2.6875
3
[]
no_license
<?php require_once __DIR__ . '/../../../../bootstrap.php'; function create_user($username, $email, $password) { try { $entityManager = getEntityManager(); /** @var \MiW16\Results\Entity\User $user */ $user = new \MiW16\Results\Entity\User(); $user->setUsername($username); $...
true
b0ebb81ae9f38da71c17cf4dbb55187cd7fa8752
PHP
lreb/DeviceMaster
/views/modules/_myprofile.php
UTF-8
3,865
2.546875
3
[]
no_license
<?php include_once '../../application/Config.class.php'; include_once '../../application/Db.class.php'; session_start(); $IdUser = $_SESSION['IdUsuario']; $db = new Database(DB_HOST, DB_USER, DB_PASS, DB_NAME); $r = $db->query("SELECT * FROM users WHERE Id = $IdUser"); while ($x = $db->fetch_array_assoc($r))...
true
73733530e987a4a5b71608200c0de847044a1231
PHP
Guiviturino/comets_teste
/Pokeapi/Model/Pokemon.class.php
UTF-8
3,131
3.28125
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 Pokemon * * @author Guilherme */ class Pokemon { private $id; private $nome; private $fot...
true
9550b0a8558567e6d98fd18b6136358fea7b24f8
PHP
abhitheawesomecoder/park
/sources/functions.php
UTF-8
42,341
2.640625
3
[]
no_license
<?php $root = 'http://' . $_SERVER['SERVER_NAME'] . dirname($_SERVER['SCRIPT_NAME']); if(substr($root, -1)=="/") $root = 'http://' . $_SERVER['SERVER_NAME']; $document = '' . $_SERVER['DOCUMENT_ROOT'] . dirname($_SERVER['SCRIPT_NAME']); if(substr($document, -1)=="/") $document = '' . $_SERVER['DOCUMENT_ROOT']; include...
true
af51694939dc126b556eb3ab4a6b079129c018c0
PHP
RamilYumaev/aa_dev
/common/user/readRepositories/UserTeacherReadRepository.php
UTF-8
770
2.609375
3
[]
permissive
<?php namespace common\user\readRepositories; use teacher\models\UserTeacherJob; use yii\data\ActiveDataProvider; class UserTeacherReadRepository { public function getUserSchoolsAll($user_id) { $query = UserTeacherJob::find(); $query->where(['user_id' => $user_id]); $query->orderBy(['...
true
0229079eed6b77514fe7770f973ea32e3f5d82e0
PHP
amoking/ebooks_store
/added.php
UTF-8
982
2.625
3
[]
no_license
<?php session_start(); if(!isset($_SESSION['customer_id']))#checks if customer is logged in { require('login_tools.php'); require('login.php'); load('login.php'); load(); } $page_title='Cart Addition';#Sets the page title. include('includes/header.html'); if(isset($_GET['id']))$id=$_GET['id'];#Gets id...
true
92596836eadd7528e0edf18641b12f6033a498a6
PHP
Kartik1397/CodeChef-Practice-Page
/api/src/Domain/Tag/Service/UnmapTagProblem.php
UTF-8
473
2.640625
3
[]
no_license
<?php namespace App\Domain\Tag\Service; use App\Domain\Tag\Repository\UnmapTagProblemRepository; final class UnmapTagProblem { private $repository; public function __construct(UnmapTagProblemRepository $repository) { $this->repository = $repository; } public function unmapTagProblem(array $...
true
95b2ca8bb2eb5e1f86d73b97c2584732ac6ac8ca
PHP
chamidilk/twitter-fb
/test/fb_credentials_fetch.php
UTF-8
1,025
2.53125
3
[]
no_license
<?php $app_id="***"; $redirect_url=urlencode("***"); $client_secret="***"; $url1="https://www.facebook.com/dialog/oauth?client_id=".$app_id."&redirect_uri=".$redirect_url."&scope=read_stream,publish_stream"; $url2="https://graph.facebook.com/oauth/access_token?client_id=".$app_id."&redirect_uri=".$redirect_url."&cl...
true
a924318a663a32154ad2888e3b9e0c749df7788e
PHP
lupimbsb/Expense-Sheets
/app/Divida.php
UTF-8
2,214
2.703125
3
[]
no_license
<?php namespace Gastos; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Facades\DB; class Divida extends Model { protected $table = 'dividas'; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'criador_id', 'tipo_id', 't...
true
4e9dff19342faccb0fe101861c7caed443eddfea
PHP
userxer/bot
/method/forwardMessage.php
UTF-8
1,273
3.015625
3
[ "MIT" ]
permissive
<?php namespace bot\method; use bot\object\Error; use bot\object\Message; /** * Use this method to forward messages of any kind. * On success, the sent Message is returned. * * @method Message|Error send() * @method bool hasChatId() * @method bool hasFromChatId() * @method bool hasDisableNotificat...
true
5139d3eea5300e48246a433bbfa964083ae5e5ec
PHP
AIsacson/Php_Javascript_Project
/classes/MVC/Model/UserModel.php
UTF-8
1,324
2.8125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace MVC\Model; ob_start(); class UserModel { function setUser ($username, $password, $conn) { if($username !== null){ $encryptPwd = password_hash($password, PASSWORD_DEFAULT); $stmt = $conn->prepare("INSERT INTO users(username, pass) VALUES(?, ?)"); $stm...
true
6ddf6ff20982b52f88e0b36c8b3b3793a741abb0
PHP
KoyaTongPoo/match
/database/migrations/2020_02_28_065929_create_texts_table.php
UTF-8
1,149
2.53125
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateTextsTable extends Migration { /** * Run the migrations. ...
true
5bc7f791dd20795b6b896fb53e51c66e9202f7bc
PHP
toanht15/moni
/apps/classes/validator/SegmentValidator.php
UTF-8
1,550
2.734375
3
[]
no_license
<?php AAFW::import('jp.aainc.classes.validator.BaseValidator'); class SegmentValidator extends BaseValidator { private $brand_id; private $segment_id; private $service_factory; private $segment; public function __construct($segment_id, $brand_id = null, $segment = null) { parent::__const...
true
14bedb1c0a846184cfbce7f40ec573e4db7b491c
PHP
svazquezcan/myScheduleAndGrades
/app/Http/Controllers/UserController.php
UTF-8
2,441
2.796875
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Http\Controllers\Controller; use App\Models\Admin; use App\Models\Teacher; use App\Models\Student; /** * Controlador para los usuarios (administradores, profesores y estudiantes). */ class UserController extends Controller { /** * Configurar sesión de usuario....
true
b1f6f93b84c52a80de1e5891ff28338227068d55
PHP
tunmyse/email_microservice
/app/Contracts/EmailEvent.php
UTF-8
578
2.734375
3
[]
no_license
<?php namespace App\Contracts; interface EmailEvent { /** * Get the email. * * @return string */ public function getEmail(); /** * Get the status of the email sent to the recipient. * * @return string */ public function getStatus(); /*...
true
dee06933673361a0e530f47151acbd26cad137f3
PHP
abdu-hawi/machineProject_CMS_and_API
/includeJSON/product.php
UTF-8
684
2.53125
3
[]
no_license
<?php $response = array(); if($_SERVER['REQUEST_METHOD'] == 'POST'){ if(!isset($_POST['system']) || !isset($_POST['section'])){ $response['error'] = true; $response['msg'] = 'Some Mistake'; die(json_encode($response)); } require_once ('productAPI.php'); $myData = getProduct...
true
d1579cd1fbfd88b52aefef687bcd96c8ab1edb14
PHP
josedu90/ecome-toolkit
/includes/frontend/includes/widgets/widget-content-page.php
UTF-8
2,195
2.5625
3
[]
no_license
<?php if ( !defined( 'ABSPATH' ) ) { exit; } /** * Ecome Content Page * * Displays Content Page widget. * * @author Khanh * @category Widgets * @package Ecome/Widgets * @version 1.0.0 * @extends ECOME_Widget */ if ( !class_exists( 'Ecome_Content_Page_Widget' ) ) { class Ecome_Content_Pa...
true
e9273b2103d5779f95d135fabc1815b33cd16261
PHP
RoySegall/facebook-messenger-send-api
/src/FacebookMessengerSendApi/Templates/Receipt.php
UTF-8
5,846
2.6875
3
[]
no_license
<?php namespace FacebookMessengerSendApi\Templates; use FacebookMessengerSendApi\Buttons\ButtonInterface; use FacebookMessengerSendApi\Buttons\Url; use FacebookMessengerSendApi\SendAPITransform; /** * Class Receipt * * @see https://developers.facebook.com/docs/messenger-platform/send-api-reference/receipt-templat...
true
543f9bca03143838b2c8dbfd9896646f1fe64464
PHP
itsromack/laravel-bible
/src/Helpers/helpers.php
UTF-8
153
2.5625
3
[ "MIT" ]
permissive
<?php if (! function_exists('bible')) { function bible($passage): string { return (new \Djunehor\Logos\Bible())->get($passage); } }
true
a2f8eda929d028e4e727b015bb922054a24794e2
PHP
AlexandraHoinoiu/test-hero
/src/Characters/Hero.php
UTF-8
1,685
3.515625
4
[]
no_license
<?php namespace App\Characters; class Hero extends Character { private float $rapidStrike; private float $magicShield; function __construct($config, $name) { parent::__construct($config, $name); $this->setRapidStrike($config['rapidStrike']); $this->setMagicShield($config['m...
true
cba25103dd1b1a2295f633f00acd1c5194300570
PHP
Charles-75/APP-MVC
/app/src/views/home/test.php
UTF-8
1,614
2.609375
3
[ "MIT" ]
permissive
<?php include(__DIR__."/../templates/main/navbar.php") ?> <style> .choice{ margin-bottom: 6%; } </style> <div class="box container"> <div class="card "> <h1>Simuler de nouvelles données pour des capteurs</h1> <form method="POST" action="/simulationcapteurspost"> <div class="choice"><label>...
true
b06898104397e7b764aa759856192c6228f9fbdf
PHP
wangfeiing/Fwork
/Core/Config/Config.php
UTF-8
766
2.765625
3
[]
no_license
<?php namespace Core\Config; class Config { static public $config = []; public static function get($name) { if (array_key_exists($name,self::$config)) return self::$config[$name]; return null; } public static function set($key = null, $value = null) { ...
true
c38973a02ab6baf83a8a3a0b3257bbf5312dd430
PHP
Limych/gedcomx-php
/src/Extensions/FamilySearch/Platform/Tree/MergeAnalysis.php
UTF-8
12,584
2.53125
3
[ "Apache-2.0" ]
permissive
<?php /** * * * * Generated by <a href="http://enunciate.codehaus.org">Enunciate</a>. * */ namespace Gedcomx\Extensions\FamilySearch\Platform\Tree; use Gedcomx\Common\ResourceReference; use Gedcomx\Extensions\FamilySearch\Rt\FamilySearchPlatformModelVisitor; /** * Class MergeAnalysis * *...
true
b7071dbb1c8acf5e10becdd0ed425e4b25de5db1
PHP
nordin93/Test-customers-orders
/app/Models/Customer.php
UTF-8
874
2.546875
3
[]
no_license
<?php namespace App\Models; use App\Contract; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; class Customer extends Model { use SoftDeletes; protected $fillable = ['first_name', 'last_name', 'email', 'phone', 'company']; public function orders() { ...
true
698a39a0617c5b3b6b347c04e4f5ad717ed8f391
PHP
SJ4MPIE/projecten_plugin
/admin/ProjectenPlugin_AdminController.php
UTF-8
3,620
2.6875
3
[]
no_license
<?php /** * This Admin controller file provide functionality for the Admin section of the * My event organiser. * * @author Sam Tieman * @version 0.1 * * Version history * 0.1 Sam Tieman Initial version */ class ProjectenPlugin_AdminController { /** * This function will prepare all Admin functionali...
true
b626ffc92847b65243dd9c6ac0e116f836943fb9
PHP
PureLuck3/VolleyballTeamProj
/PFI_Web/HTML/mediaTemplate.php
UTF-8
801
2.84375
3
[]
no_license
<div class="Container"> <?php $ext = pathinfo($url ,PATHINFO_EXTENSION); echo "<div class='card' style='width:400px'> <div class='card-header'> <a href=''>$title </a>" . $description . " " . $date . "</div> <div class='card-b...
true
2bee2ce4d8dff075c4e11f1216aa149c72ea6f2c
PHP
Makae/ch.bfh.bti7054.w2014.q.groot
/trunk/doc/Tasks/4.3/schwf5/4.2.php
ISO-8859-1
692
2.859375
3
[ "Apache-2.0" ]
permissive
<!-- 13.10.2014 schwf5: LinkListe gemss Aufgabe 4.2 aufbauen Spter mit Values der eingebundenen MySQL DB abfllen --> <?php $linksArray = array( "linkTarget" => array("kategorien.html", "profil.html", "wunschzettel.html", "warenkorb.html"), "linkName" => array("Kategorien", "Pro...
true
9e6904601f5cec0b11d2a0b8e02d1554fc055625
PHP
Lazaro-Gallo/psmn
/premium-libs/Vtx/Auth/Adapter.php
UTF-8
1,730
2.734375
3
[]
no_license
<?php /** * * Vtx_Auth_Adapter Auth_Adapter * @uses Zend_Auth_Adapter_Interface * @author tsouza * */ class Vtx_Auth_Adapter implements Zend_Auth_Adapter_Interface { /** * Username * * @var string */ protected $username = null; /** * Password * * @var string ...
true
7291c608bcbd2ce5375574993d09fac7bb69775f
PHP
vuchkov/siler
/src/Dotenv/Dotenv.php
UTF-8
1,840
3.09375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); /* * Helpers functions to work with vlucas/phpdotenv. */ namespace Siler\Dotenv; use Dotenv\Dotenv; use UnexpectedValueException; use function Siler\array_get; /** * Load the .env file contents into the environment. * * @param string $path Directory name of the .env file locati...
true
9f608b663da116f1c5788f8e2249ae28d1febb25
PHP
jeanjar/video_embed
/src/Providers/Vimeo.php
UTF-8
1,225
2.703125
3
[]
no_license
<?php namespace VideoEmbed\Providers; use VideoEmbed\VideoEmbed; class Vimeo { public static function getSimpleThumbnail($id) { $protocol = getProtocol(); $data = json_decode(file_get_contents(sprintf('%s://vimeo.com/api/v2/video/%s.json', $protocol, $id)), true); return f($data, 'th...
true
20e57d64888e61d642c7cd7421f02870ba265a9e
PHP
Chencao0928/Web-
/chapter4/代码/4-24.php
GB18030
1,468
2.640625
3
[]
no_license
<? // $upload_dirϴļĿ¼getcwd()ɻȡǰűĿ¼ $upload_dir = getcwd() . "\\images\\"; // ǰĿ¼\images if(!is_dir($upload_dir)) // Ŀ¼ڣ򴴽 mkdir($upload_dir); function makefilename() { // ˺ڸݵǰʱϴļ $curtime = getdate(); // ȡǰϵͳʱ䣬ļ $filename =$curtime['year'] . $curtime['mon'] . $curtime['mday'] . $curtime['hours'] . $curtime['...
true
82c1b7261f45d5c2fd2ff34ab0a776c0b6f88d8c
PHP
thonixon321/designhouse-api
/app/Http/Controllers/User/UserController.php
UTF-8
1,149
2.734375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\User; use App\Models\User; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use App\Http\Resources\UserResource; use App\Repositories\Contracts\IUser; use App\Repositories\Eloquent\Criteria\EagerLoad; class UserController extends Controller { protected $users...
true
4b5cdd1f45d19c9b41434c5c9803fa8f679255e9
PHP
Siddhant/ia-upload
/src/IaUpload/CommonsClient.php
UTF-8
4,004
2.65625
3
[]
no_license
<?php namespace IaUpload; use Guzzle\Common\Collection; use Guzzle\Http\Client; use Guzzle\Http\Exception\ClientErrorResponseException; use Guzzle\Plugin\Cookie\CookieJar\ArrayCookieJar; use Guzzle\Plugin\Cookie\CookiePlugin; use Guzzle\Plugin\Oauth\OauthPlugin; /** * Client for Commons API * * @file * @ingroup ...
true
a4fc9884ef30fe12c8f8ef3adb1801d2118ec148
PHP
ArcherCraftStore/ArcherVMPeridot
/apps/drupal/htdocs/modules/openatrium-7.x-2.19/profiles/openatrium/modules/contrib/migrate/plugins/destinations/menu.inc
UTF-8
5,502
2.96875
3
[ "LicenseRef-scancode-other-permissive", "LicenseRef-scancode-other-copyleft", "GPL-2.0-or-later", "LicenseRef-scancode-unknown-license-reference", "GPL-2.0-only", "Apache-2.0", "MIT" ]
permissive
<?php /** * @file * Support for menu destinations. */ /** * Destination class implementing migration into {menu_custom}. */ class MigrateDestinationMenu extends MigrateDestination { static public function getKeySchema() { return array( 'menu_name' => array( 'type' => 'varchar', 'lengt...
true
6b8295559ed63e84fe32527f9f5fa21d3f52594c
PHP
jitesoft/php-exceptions
/src/Security/OAuth2/InvalidGrantException.php
UTF-8
1,752
2.9375
3
[ "MIT" ]
permissive
<?php /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * InvalidGrantException.php - Part of the php-exceptions project. © - Jitesoft 2018 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ namespace Jitesoft\Exceptions\Security\OAuth2; use Throwable; /** * Class I...
true
258dee4c757e9f2a56f86ed8a6723320a9811db7
PHP
fishes207569/yii2-task-scheduler
/src/common/helpers/RedisLock.php
UTF-8
1,596
2.6875
3
[ "MIT" ]
permissive
<?php namespace ccheng\task\common\helpers; use ccheng\task\common\consts\TaskConst; use common\enums\RedisEnum; use Yii; class RedisLock { /** * @var string 前缀 */ private $prefix = 'cms_redis_lock:'; /** * redis组件 * @var yii\redis\Connection */ private $redis; /** ...
true
cccb4e38cf536ca6158a8c4c51de1709b19b71fb
PHP
monkeydominicorobin/phptenthousandone
/tenk.php
UTF-8
89
2.703125
3
[ "MIT" ]
permissive
!/usr/bin/php <?php function fone() { return "I am PHP Function One"; } echo fone(); ?>
true
184ea2ebb2829e16369bce1f433f7f2855862aa0
PHP
Amitolottle/NavegandoEnLaWeb
/Web/Unidad1/notas.php
UTF-8
640
2.75
3
[]
no_license
<?php /* Program: mysql_test.php * Desc: Connects to MySQL Server and * outputs settings. */ include_once("includes/database.php"); /*Esta página se encarga de mostrar todas las notas, junto con su nombre y porcentajes. */ $sql= "SELECT * FROM estudiantesWeb.notas ORDER BY idNota"; $result = mysqli_query($con,$sql); ...
true
40f91e3e58c69758176b157d9f74927eceb31304
PHP
AmadouTidiane2021/monprojetpoo
/src/controllers/CategoriesController.php
UTF-8
970
2.796875
3
[]
no_license
<?php class CategoriesController { public static function add() { if (isset($_GET['id'])) : $categorie = Categorie::find([ 'id' => $_GET['id'] ]); endif; include(VIEWS . 'categories/add.php'); } public static function save() { ...
true
c937d391f55687a0b4e9e300081799f3e6c5fc67
PHP
karthikboddu/FundooNotes
/application/tests/controllers/Phaketest.php
UTF-8
847
2.578125
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php class ShoppingCartTest extends PHPUnit_Framework_TestCase { private $shoppingCart; private $item1; private $item2; private $item3; public function setUp() { $this->item1 = Phake::mock('Item'); $this->item2 = Phake::mock('Item'); $this->item3 = Phake::mock('Item...
true
73da08181b968c34e849a16d15d10d1d8e4bc32f
PHP
sandyverden/PHPSimSimiAPI
/index.php
UTF-8
210
2.5625
3
[]
no_license
<?php require_once('simsimi_api_class.php'); $obj = new SimSimiAPI(); try{ $result = $obj->simSimiConversation('en', '1.0', 'Hi simi'); }catch(Exception $e){ echo $e->getMessage(); } var_dump($result);
true
d688fababfc45a7ec068839bce9a83b666265ece
PHP
JkDevArg/test
/switchCase.php
UTF-8
640
3
3
[]
no_license
<?php namespace JkDev; function covidE($tipo){ switch ($tipo){ case "verde": echo "Bueno"; break; case "amarillo": echo "Moderado"; break; case "naranja": echo "Restriccion nivel 1"; break; case "rojo": echo "Restricción nivel 3"; break; cas...
true
1a3d7c2dbab472b97b594662856a4700c0527dfc
PHP
dalencar/ans-tiss
/complexTypes/dentes.php
UTF-8
655
2.953125
3
[ "BSD-2-Clause" ]
permissive
<?php namespace anstiss\complexTypes; class dentes { /** * * @var string $elementoDentario * @see dm_dente * @access public */ public $elementoDentario = null; /** * * @var string $condicaoClinica * @see dm_condicaoClinica * @access public */ publi...
true
4445cdb7f9adb0888b429b21c4d2cb4f36140785
PHP
SazonovDA/Student-papers-in-JS-PHP
/Task04/Task04_2/tests/TruncaterTest.php
UTF-8
803
2.75
3
[]
no_license
<?php namespace App\Tests; use PHPUnit\Framework\TestCase; use App\Truncater; class TruncaterTest extends TestCase { public function testTrancate() { $truncater1 = new Truncater(); $truncater2 = new Truncater(['length' => 6]); $this -> assertSame( "Long...", $t...
true
b3eadc93c1ed28b852fd65e49497e9e34ee1de0e
PHP
marknotton/craft-plugin-agent
/src/variables/Variable.php
UTF-8
5,920
2.671875
3
[ "MIT" ]
permissive
<?php namespace marknotton\agent\variables; use Jenssegers\Agent\Agent as JenssegersAgent; use Craft; use craft\helpers\Template; use craft\helpers\UrlHelper; use craft\helpers\StringHelper; use craft\helpers\Html; use Twig\Markup; use marknotton\agent\Agent; class Variable extends JenssegersAgent { const VERSIO...
true
0365e8e8a8af7b7d2b4f72457b3ef9747c830ece
PHP
emiliesedziol/php-laravel
/php7-course-hold/classes/inventory.php
UTF-8
447
3.5625
4
[]
no_license
<?php interface InventoryInterface{ public function carsSold($numberOfCars); } class Inventory implements InventoryInterface{ public function carTotal($company) { $companies = [ "BMW" => 240, "Honda" => 177 ]; return " Vehicles in inventory ".$companies[$company]; ...
true
7b81b6508f766c926fb218f4bdc9e589bc504f40
PHP
logeshlog1991/php_Tutorial
/mysql_app/update.php
UTF-8
2,263
2.65625
3
[]
no_license
<?php require 'conn.php'; //update--------------------- if(isset($_POST['first'])&&isset($_POST['last'])&&isset($_POST['bio'])&&isset($_POST['country'])&&isset($_POST['uid'])){ if(!empty($_POST['first']) && !empty($_POST['last']) && !empty($_POST['bio']) && !empty($_POST['country'])){ $id = $_POST['uid']; $fn...
true
4bb4d9073dbc1c90b93a525c652150bb380f09ff
PHP
code16/sharp-handball-sample
/app/Sharp/PlayerSharpList.php
UTF-8
1,933
2.640625
3
[]
no_license
<?php namespace App\Sharp; use App\Player; use Code16\Sharp\EntityList\Containers\EntityListDataContainer; use Code16\Sharp\EntityList\EntityListQueryParams; use Code16\Sharp\EntityList\SharpEntityList; class PlayerSharpList extends SharpEntityList { function buildListDataContainers() { $this->addDa...
true
3495b5dab7fadd4fcea094e35d524ce10468d1de
PHP
fmarangi/aoc
/src/Year2015/Day15.php
UTF-8
2,112
3.234375
3
[]
no_license
<?php namespace Mzentrale\AdventOfCode\Year2015; use Mzentrale\AdventOfCode\Puzzle; class Day15 implements Puzzle { public function part1(string $input) { return $this->getHighestScore($input); } public function part2(string $input) { return $this->getHighestScore($input, 500); ...
true
8e6c25120e116103fce440e069ebfef6b57e4706
PHP
willfarrell/angular-io-app
/src/php/class.timers.php
UTF-8
3,594
3.234375
3
[]
no_license
<?php // TODO replace timer with https://github.com/sebastianbergmann/php-timer/ ?? /* Add a timer for nested events If negative min value, you forgot to place a stop call */ require_once 'class.timer.php'; class Timers { static $id = ""; static $timers = array(); static $counter = 0; /** * Constructs a ...
true
f5c6ad30c5f27ff0c2b230bf594c4aa059d8c6c2
PHP
jsonukhan/mypractice
/prac/AbstractClasses/ContractEmployee.php
UTF-8
911
2.9375
3
[]
no_license
<?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 ContractEmployee * * @author junaid.tariq */ class ContractEmployee extends BaseEmployee{ //put yo...
true
98253964edb3491af7d452a09652015c78a2e7bd
PHP
joykumarbera/yii-rest
/console/migrations/m200918_071923_post.php
UTF-8
1,061
2.640625
3
[]
no_license
<?php use yii\db\Migration; /** * Class m200918_071923_post */ class m200918_071923_post extends Migration { // Use up()/down() to run migration code without a transaction. public function up() { $this->createTable('post',[ 'id' => $this->primaryKey(), 'author_id' => $thi...
true
ab3104827ebef7e468182655af91b4c2837f1ec3
PHP
peckadesign/PeckaDesk
/app/Dashboard/Presenters/BasePresenter.php
UTF-8
1,931
2.515625
3
[]
no_license
<?php declare(strict_types = 1); namespace PeckaDesk\Dashboard\Presenters; /** * @property-read \Nette\Bridges\ApplicationLatte\Template $template */ abstract class BasePresenter extends \Nette\Application\UI\Presenter { private \PeckaDesk\Dashboard\Navigation\Factory $navigationFactory; private \PeckaDesk\Dash...
true
1db2d4ed9eb11502e2436c5596985d0d0f587d34
PHP
shimu5/juzzsports
/order/OrderManager.php
UTF-8
4,269
2.734375
3
[]
no_license
<?php /** * * OrderManager Manager Class * OrderManager will manage all about us static page information * * @package Order Manager * @category Manager * @author * @date 10/6/2014 * * */ require_once ROOT . "functions/Connection.php"; require_once ROOT . "classes/OrderList.php"; require_once R...
true
58e54c0c8f8d38209d2dc8393d4e76b558d1636a
PHP
wander4747/PHP-Clean-Architecture
/src/Application/UseCases/ExportRegistration/ExportRegistration.php
UTF-8
1,242
2.703125
3
[]
no_license
<?php declare(strict_types=1); namespace App\Application\UseCases\ExportRegistration; use App\Application\Contracts\ExportRegistrationPdfExporter; use App\Application\Contracts\Storage; use App\Domain\Repositories\LoadRegistrationRepository; use App\Domain\ValueObjects\Cpf; final class ExportRegistration { priv...
true
0e7fb0d5803faf6ac191adce33dda98fe1b0ae29
PHP
DomainDrivenPHP/temperature-value
/Tests/DomainDrivenPhp/Temperature/ScaleTest.php
UTF-8
942
2.78125
3
[ "MIT" ]
permissive
<?php namespace DomainDrivenPhp\Temperature; class ScaleTest extends \PHPUnit_Framework_TestCase { /** * @test * * @expectedException \Exception * @expectedExceptionMessage Temperature scale not recognized: little */ public function shouldThrownExceptionWhenTryToGetScaleFromStringWith...
true
3fcbcbaf90bc298d92f7d3794e4abd3297a68907
PHP
Kinrosslong/LaravelVueElement
/app/Http/Controllers/BackendController.php
UTF-8
5,295
2.671875
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Redis; use Illuminate\Support\Facades\Route; use Illuminate\Support\Facades\URL; use App\Http\Middleware\CheckForm; // use Illuminate\Http\UploadedF...
true
f70d6f5ca6d0b0912935cd7a4a7e959b9c0aa90f
PHP
DieterSomers/php_oefeningen
/3.1_MySQL/lib/html_functions.php
UTF-8
774
2.828125
3
[]
no_license
<?php function PrintHead() { $head = file_get_contents("templates/head.html"); print $head; } function PrintJumbo($title = ""){ if ($title != null) { $jumbo = file_get_contents("templates/jumbo_detail.html"); $jumbo = str_replace("@jumbo_title@", "$title", $jumbo); print $jumbo; ...
true
1ca2509d202a8189b7ba435df27b474c9dba9d18
PHP
meghanakiran/Web-Based-Database
/Project/PHP/7call1.php
UTF-8
513
2.578125
3
[ "MIT" ]
permissive
<?php $con = mysqli_connect('******','******', '******','******') or die('error connecting to database'); $query = 'SELECT * FROM Salecategory'; $result = mysqli_query($con, $query)or die('error querying database'); while($row = mysqli_fetch_assoc($result)) { echo "SC_ID :{$row['sc_id']} <br> ". ...
true
d5410833530a564208a6c0cdd4262524673f755e
PHP
andparsons/mage-app-start
/app/code/Magento/Backend/Block/Widget/Grid/Column/Renderer/Radio.php
UTF-8
2,318
2.734375
3
[]
no_license
<?php namespace Magento\Backend\Block\Widget\Grid\Column\Renderer; /** * Grid radiogroup column renderer * * @api * @deprecated 100.2.0 in favour of UI component implementation * @since 100.0.2 */ class Radio extends \Magento\Backend\Block\Widget\Grid\Column\Renderer\AbstractRenderer { /** * @var int ...
true
9e2d430ea7fbba491fd07a3380ee414d567b9301
PHP
PlayerManagementSystem/PlayerManagementSystem
/scripts/personaggio/rimuovi_abilita.php
UTF-8
676
2.5625
3
[]
no_license
<?php require_once '../../classi/Competenza.php'; require "../config.php"; require "../funzioni_comuni.php"; if (!isset($_POST['id_ab']) || !is_numeric($_POST['id_ab'])) errore("ID Abilità non inviato"); if (!isset($_POST['id_pg']) || !is_numeric($_POST['id_pg'])) errore("ID Personaggio non inviato"); session...
true
d37c6a1705f19c7521abfbbc620aa498bc757c5b
PHP
yanula20/Codeup-Exercises
/foreach.php
UTF-8
972
3.921875
4
[]
no_license
<?php $things = array('Sgt. Pepper', "11", null, array(1,2,3), 3.14, "12 + 7", false, (string) 11); foreach ($things as $element) { if (is_integer($element)) { echo "{$element} is an integer\n"; } else if (is_float($element)) { echo "{$element} is a float.\n"; } else if (is_bool($element))...
true
dd2a1fa0b6caff9f4461d062084657988b73845a
PHP
derpixler/php-interface
/src/HumanBuilder.php
UTF-8
362
3.03125
3
[]
no_license
<?php /** * We all Humans! * * @author René Reimann <info@rene-reimann.de> * @version 1.0 * @package Humans */ interface HumanBuilder { /** * Set a type Human * * @param string $type set a type of Human * @return string */ public function setTyp( $type ); /** * Return Human * * @param string...
true
8f6cad75c80077f9b984404c31f5af4faeb4714c
PHP
mirakl/sdk-php-shop
/src/Mirakl/Core/Request/ProductReferencesTrait.php
UTF-8
1,425
2.8125
3
[]
no_license
<?php namespace Mirakl\Core\Request; use Mirakl\MMP\Common\Domain\Product\Offer\ProductReference; /** * Example of product references: * <code> * $productReferences = [ * 'EAN' => ['3515586944589', '3165140467278', '...'], * '<type>' => ['<product_id>', '<product_id>', '...'], * '...' => ['...', '.....
true
2d6b11d354d728bc6724a5f17e8418bab74496a3
PHP
zhjguang/badGuyHacker
/权限维持/lock_simple.php
UTF-8
591
2.546875
3
[]
no_license
<?php @unlink($_SERVER['SCRIPT_FILENAME']); //删除自身 error_reporting(0); //禁用错误报告 ignore_user_abort(true); //忽略与用户的断开,用户浏览器断开后继续执行 set_time_limit(0); //执行不超时 while (true) { # 需要锁定的文件 $filePath = '/var/www/html/flag'; chmod($filePath, 0777); //设置属性 @unlink($filePath); file_put_contents($filePath, "xq...
true
c440811f8cfa614721a69cddb4207c7257a8bbb3
PHP
llxxddlxd/bm-php-new
/src/model/response/result/TransactionBuildBlobResult.php
UTF-8
857
2.671875
3
[]
no_license
<?php /** * @author zjl <[<email address>]> */ namespace src\model\response\result; class TransactionBuildBlobResult{ private $transactionBlob;//String transaction_blob private $hash;//String hash /** * @return mixed */ public function getTransactionBlob() { re...
true
b6ba86507d36c33651dee81a6f59848ba079deb6
PHP
qqqwed/ESTimer
/App/Utility/Pool/MysqlPool.php
UTF-8
650
2.78125
3
[]
no_license
<?php /** * Description: 连接池实现接口 * Created by Dong.cx * DateTime: 2019-07-22 17:39 * @version V4.0.1 */ namespace App\Utility\Pool; use EasySwoole\Component\Pool\AbstractPool; use EasySwoole\Mysqli\Config; class MysqlPool extends AbstractPool { /** * 创建连接池 * 当连接池第一次获取连接时,会调用该方法,返回一个连接池对象 * @return Mysql...
true
54883b0b296033f1207dd65d1c3141fcd5e175d3
PHP
cash2one/gaiwang
/common/components/RsaPassword.php
UTF-8
1,740
2.8125
3
[]
no_license
<?php /** * 密钥类 * 加密,解密 * @author qinghao.ye <qinghaoye@sina.com> */ class RsaPassword { public $privateKey; //私钥 public $public_key; //公钥 /** * 初始化私钥 */ function __construct() { $private = Yii::getPathOfAlias('common') . DS .'rsaFile'. DS . 'memberpsw'. DS .'psw_private.p...
true
e38bde41a5b0c7e58c90b65b455bdc91f863ddf5
PHP
carono/php-commerceml
/src/Model/Group.php
UTF-8
1,399
2.9375
3
[ "MIT" ]
permissive
<?php namespace Zenwalker\CommerceML\Model; /** * Class Group * * @package Zenwalker\CommerceML\Model * @property Group parent * @property Group[] children */ class Group extends Simple { /** * @var Group[] */ protected $children = []; /** * @var Group */ protected $parent...
true
ff90de1c672257e91eda4ef08cf0a8748b843958
PHP
poyploy/e-thesis
/app/Repositories/PresentRepository.php
UTF-8
702
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Repositories; use App\Models\Present; use InfyOm\Generator\Common\BaseRepository; /** * Class PresentRepository * @package App\Repositories * @version December 11, 2018, 1:50 pm UTC * * @method Present findWithoutFail($id, $columns = ['*']) * @method Present find($id, $columns = ['*']) * @...
true
f11127385088643daebee428d6fb738c7cba8700
PHP
deyandim/PHP-form
/templates/ask_question.php
UTF-8
924
2.703125
3
[]
no_license
<h1>Write your question</h1> <form method="post"> Title: <input type="text" name="title"> | Category: <select name="category"> <?php foreach ($categories as $category): ?> <option <?= $category['id'] == $category_id ? 'selected' : ''?> value="<?= $category['id'];?>"><?= $category['name'] ?>(<...
true
40cd741ea276189bd5e543d5e2b9f00a80f15790
PHP
jkovacevic992/IPAPZ_Library_Management
/src/Entity/Genre.php
UTF-8
1,422
2.65625
3
[]
no_license
<?php /** * Created by PhpStorm. * Customer: josip * Date: 18.02.19. * Time: 09:26 */ namespace App\Entity; /** * Class Genre * * @package App\Entity * @Doctrine\ORM\Mapping\Entity(repositoryClass="App\Repository\GenreRepository") * @Symfony\Bridge\Doctri...
true
5f4508281c7ec3b6e55a8d265f7efda0f6a00d6e
PHP
aru456/Flight-Booking-System
/flight/previous.php
UTF-8
1,676
2.6875
3
[ "MIT" ]
permissive
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Login Form Tutorial</title> <link rel="stylesheet" href="login.css"> <style> body {background-image: url("background.jpg"); } td{ width:250px; font-size:25px; padding:5px ; text-align:center; } h1 {color: bla...
true
162a89b151a20312688ad84bec31a70bcbfa1310
PHP
alucard1792/htdocs
/PHPFase4b/1ra_actividad_10_ejercicios/ejercicio1/index.php
UTF-8
616
2.578125
3
[]
no_license
<!DOCTYPE html> <html> <head> <title>ejercicio 1</title> </head> <body> <form method="post" action="ControladorPieza.php"> <label for="campo1">valor pieza: </label> <input type="text" name="valor"> <label for="campo2">valor cantidad: </label> <input type="text" name="ValorCantidad"> <butt...
true
7f387ee41ad380447531060f72d4c122d682bf1c
PHP
trinhvanminh2009/My-Flickr
/Homepage/Data/ImageDb.php
UTF-8
3,313
2.765625
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: azaudio * Date: 4/21/2017 * Time: 12:08 PM */ include_once "Image.php"; include_once "Connection.php"; Class ImageDb{ private $conn; /** * UserDb constructor. */ public function geImageByUN($username){ $conn=new Connection(); $con=$conn...
true
aeb7043a86539e3bb20e5bd8b452ab0031777a6c
PHP
AnneChevalier/Projet_4
/App/Model/CommentManager.php
UTF-8
2,048
2.859375
3
[]
no_license
<?php namespace Model; use JFFram\Manager; use Entity\Comment; class CommentManager extends Manager { public function add($db, $userId, $chapterId, $title, $content) { $db->query("INSERT INTO comments SET userId = ?, chapterId = ?, title = ?, content = ?, creationDate = NOW()", [$userId, $chapterId, $title, $c...
true
0dc8725a54fc5b0ea2a8fd2ca5e59c3d56198fcd
PHP
qingshanyinyin/leetcodes
/AllSubString.php
UTF-8
1,235
3.671875
4
[]
no_license
<?php /** * 查询一个字符串的所有子字符串 */ class AllSubString { private $_str; public function __construct($str = "") { $this->_str = $str; } /** * 滑动窗口法 * @return array */ public function getAllSubStrings(): array { $n = strlen($this->_str); $maps = []; ...
true
b8cf8109ec4623268452e4a080aac5d64f4d783f
PHP
jeristiano/carriepigeon
/app/Service/Auth.php
UTF-8
1,013
2.609375
3
[]
no_license
<?php namespace App\Service; use App\Constants\ErrorCode; use App\Exception\BusinessException; use App\Model\User; use Phper666\JWTAuth\JWT; use Psr\Http\Message\ServerRequestInterface; /** * Class Auth * @package App\Service */ class Auth { /** * 获得登录的用户信息 * @throws \Psr\S...
true
26ac0fbb361274b7d5129926afe31f98919e74c6
PHP
anisM/php-logging
/logFactory.php
UTF-8
2,508
3
3
[]
no_license
<?php namespace anisM\Component\Log; // TODO : Here we got a 'Couplage Fort' between log entity and the component // Try to send the ORM Log as a parameter in the construct class or create the entity class here in the component.... use anisM\ApiBundle\Entity\Log as Log; use Doctrine\ORM\EntityManager; /** * Class L...
true
3ee7f2669144721884edb61ed563a3ae2ac410cb
PHP
3tor/myphplearningtestfiles
/functions2.php
UTF-8
483
3.0625
3
[]
no_license
<!DOCTYPE html> <html> <head> <title></title> </head> <body> <?php $DEBUG = 1; function GetSpaceShip($NameofShow = "Firefly") { if ($GLOBALS['DEBUG']) { echo "GetSpaceShip() called with arg: $NameofShow<br>"; } static $spaceships = array("StarTrek" => "Enterprise","Firefly"=>"Serenity", "LostInSp...
true
ac69b6baaa2a73e92d09548099bd6009d2b8b97b
PHP
heartshare/yii2-setting-2
/src/Storage.php
UTF-8
716
2.734375
3
[ "MIT" ]
permissive
<?php namespace cszchen\setting; use yii\base\Component; abstract class Storage extends Component { public $sections = []; public $except = []; public function save($section, $key, $value) { if ($this->isMatch($section)) { return $this->store($section, $key, $value); } ...
true
c2b50156b529d13104413544b5edc11fd26ede5a
PHP
SengentoBV/php-rules-engine
/src/RuleOperation.php
UTF-8
2,268
3.09375
3
[ "MIT" ]
permissive
<?php /** @noinspection PhpDocMissingThrowsInspection */ namespace SengentoBV\PhpRulesEngine; use JsonSerializable; class RuleOperation extends RuleObject { public string $operator; public string $column; /** * @var RuleValue */ public RuleValue $value; /** * @param string $oper...
true
00bbaf22cca90b3f304303f832b0d72c5bf3606a
PHP
Vallium/camagru_42
/models/ImageModel.php
UTF-8
2,506
2.828125
3
[]
no_license
<?php namespace model; class ImageModel extends Model { protected $table = 'images'; static function createTable(\PDO $db, $schema = "camagru") { //Drop $req = "DROP TABLE IF EXISTS $schema.images"; $db->exec($req); //Create $req = "CREATE TABLE IF NOT EXISTS $sche...
true
284765f852a48866b601100922a3839bcf011365
PHP
Evaneos/burrow-tools
/src/LeagueEvent/EnqueueListener.php
UTF-8
1,276
2.765625
3
[ "MIT" ]
permissive
<?php namespace Burrow\LeagueEvent; use Burrow\EmptyHeadersFactory; use Burrow\HeadersFactory; use Burrow\QueuePublisher; use League\Event\AbstractListener; use League\Event\EventInterface; final class EnqueueListener extends AbstractListener { /** @var QueuePublisher */ private $publisher; /** @var Even...
true
5ec7fcf72ab042c11035613c927af705bf7315e0
PHP
Phainix/SCAPHPC2
/week8/Product/products.php
UTF-8
1,090
2.625
3
[]
no_license
<?php include_once './autoload.php'; $title = "Products"; $products = array(); $error = false; $category_id = isset($_GET['category_id']) ? $_GET['category_id'] : null; $brand_id = isset($_GET['brand_id']) ? $_GET['brand_id'] : null; $seller_id = isset($_GET['seller_id']) ? $_GET['seller_id'] : null; try { $whe...
true
719ae583e64898a0a92b224a76a320d545d0e659
PHP
richard4s/PHP-Files
/Desktop/FORBES/myhtdocs/php_practice/15_for_each_statements.php
UTF-8
392
3.46875
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <title>PHP Practice</title> </head> <body> <?php $food = array('Healthy'=> array('Salad', 'Vegetables', 'Pasta'), 'Unhealthy'=> array('Pizza', 'Ice cream')); foreach($food as $element => $inner_array) { echo '<b>'.$element.'</b><br />'; foreach($inner_...
true
3a2380e2c1153cb1ed7ece4f46005e35834219e9
PHP
Pim-tech/WdgLib
/lib/widgets/PreScreen.php
UTF-8
3,244
3.0625
3
[]
no_license
<?php namespace lib\widgets; /** * Class PreScreen * @author yourname */ class PreScreen { private $size; private $buffer = array(); private $pos=0; private $lines = null; private $cols = null; private $region; /** * @param $dependencies */ public function __construct(int $...
true
85b2c822bbd03282bfb7d11a8e34dbf91411b94d
PHP
yaokun123/my_php
/系统编程/03信号/06异步信号处理pcntl_async_signals.php
UTF-8
1,238
3.203125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: yaokun * Date: 2019/3/4 * Time: 下午10:39 */ /** * PHP7.1信号新特性 -- pcntl_async_signals() 方法 * * * 一个新的名为 pcntl_async_signals() 的方法现在被引入, * 用于启用无需 ticks (这会带来很多额外的开销)的异步信号处理。详情请查看 PHP7.1新特性 * * * pcntl_async_signals — 开启/关闭异步信号处理或返回当前的设定 * * * bool pcntl_async_sign...
true
c31c5012762e705bc28b4f0a61f5e410e4270f8c
PHP
takano-hinata/php-practice3
/practice3.php
UTF-8
1,188
4.28125
4
[]
no_license
<?php //課題1 function sum1($max) { return $max * 2; } echo sum1(4) . "\n"; //課題2 function sum2($a, $b) { return $a + $b; } echo sum2(2, 5) . "\n"; //課題3 function multiply_array($arr) { $result = 1; foreach ($arr as $a) { $result *= $a; } return $result; } echo multiply_array(arr...
true
0186331fc4a4ac2150fb11305404550bfa959f54
PHP
babacarMbengue12/demoSamanemvc
/libs/Router/RoutePrefixParameter.php
UTF-8
599
2.828125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Babacar Mbengue * Date: 01/04/2019 * Time: 16:35 */ namespace Babacar\Router; class RoutePrefixParameter extends Parameter { /** * @var string $pattern */ private $value; public function __construct(string $variable,$key = null) { paren...
true
9f25f66b547d4b65be24a398489bf9a492447158
PHP
sasha172017/task-test-phone
/Model/Phone.php
UTF-8
2,688
2.9375
3
[]
no_license
<?php namespace Model; use Database\DB; use PDO; class Phone { public function getCountryCode() { $db = DB::getInstance(); try { $result = $db->query("SELECT * FROM country_code")->fetchAll(PDO::FETCH_GROUP | PDO::FETCH_ASSOC); $countryCode = array_map('reset', $resul...
true
49632ae759545a8997750c4ff93b048bd3a44330
PHP
pieters-thomas/challenge-php-guestbook
/model/PostLoader.php
UTF-8
1,186
3.0625
3
[]
no_license
<?php class PostLoader { private const STORAGE = 'guestLog.txt'; public static function getAllPosts(): array { $posts = []; try { $json = json_decode(file_get_contents(self::STORAGE), true, 512, JSON_THROW_ON_ERROR); } catch (JsonException) { echo 'JSON er...
true
6cb14694be2b4644c22a262981142fb8ba7c7844
PHP
MrBrault/mrbrault.com
/stick/scripts/file/database.php
UTF-8
1,232
2.640625
3
[]
no_license
<?php //connect to database include 'connect.php'; $con = mysql_connect($Server, $Username, $Password) or die(mysql_error()); mysql_select_db($Database, $con) or die(mysql_error()); $action = $_POST['dbaction']; if ($action == 'list') { $output = ""; $result = mysql_query("SELECT * FROM savedata O...
true
20d93c94b39b6795f289abe08cd3b2ee3b1c9c34
PHP
demongaobo/payCenter
/app/Lib/Common/Api/ApiClient.php
UTF-8
1,396
2.78125
3
[ "MIT" ]
permissive
<?php namespace App\Lib\Common\Api; use App\Lib\Curl; /** * * @author */ class ApiClient { private $url = 'http://dev-order.zuji.com/common/test/testServer'; // private $url = 'http://localhost/zuji/dev_common_service/api.php'; /** * 错误提示 * @var string */ private $error = ''; /** * * @var ApiPr...
true
2ddea0569062960d3590e35eea7b0ac459946449
PHP
JoseUrbina/PracticasJQUERY
/examples/example1.php
UTF-8
120
2.59375
3
[]
no_license
<?php namespace examples; class first { public static function showMessage($message) { echo $message; } }
true
4a77eb101cc72c5ae44fad37137afd6b44d69ada
PHP
phorick/transip-api-php
/examples/VpsService-cancelAddon.php
UTF-8
640
2.578125
3
[ "Apache-2.0" ]
permissive
<?php /** * This example cancels a addon, * Be aware that cancelling a addon will automatically trigger a restart of the VPS * * @copyright Copyright 2013 TransIP BV * @author TransIP BV <support@transip.nl> */ // Include vpsservice require_once('Transip/VpsService.php'); try { // cancel the addon for spec...
true
ed51b0a14521949fdb3120e9d26bb35f8de3be7b
PHP
radkol/huntershalo.com
/application/corecms/services/I18NService.php
UTF-8
3,222
2.875
3
[]
no_license
<?php class I18NService extends SingletonClass { const SESSION_LANGUAGE_ATTR = "language"; private $defaultSiteLanguage = NULL; private $availableLanguages = array(); private $multiLanguageSite = FALSE; public function __construct() { parent::__construct(); $currentWe...
true
1991babc3505e20f9fd1347c5279c41cc4f2e758
PHP
IlucielI/sistemakademik
/application/models/User_Model.php
UTF-8
2,167
2.625
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php class User_Model extends CI_Model { public function getUser($username = false) { if ($username == false) { $this->db->select('*'); $this->db->from('user'); $this->db->where('username !=', 'admin'); return $this->db->get()->result_array(); } return $this->db->get_where('user', ['username' => $...
true
3cf8938cda24856454ace174fe753c6c29e56a81
PHP
SIVERARichard/DUPHP
/index.php
UTF-8
4,669
2.609375
3
[]
no_license
<?php /* Ouverture BD */ $link = mysqli_connect('mysql-richardsivera.alwaysdata.net','170726','Raam-1996'); mysqli_select_db($link, 'richardsivera_td1'); mysqli_set_charset($link, 'utf8'); function getBlock($file, $data = []) { require $file; } /*<?php print_r($data)?>*/ /* Récupération des info pour he...
true