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
f93c0373369d8eac134f054d12503f19d1a60593
PHP
dsaifi007/prime_storage
/application/models/api/User_model.php
UTF-8
8,750
2.515625
3
[ "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-warranty-disclaimer", "MIT" ]
permissive
<?php /* |------------------------------------------------------------------------------- | All Users information get/set/save/delete |------------------------------------------------------------------------------- */ class User_model extends CI_Model { private $users_table = "users"; private $array ...
true
d3958005e8a0c7e76fd0cb317fb5c63537ed3d40
PHP
skyeeenet/Skye-Shop
/app/Repositories/Auth/Interfaces/AuthRepositoryInterface.php
UTF-8
256
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Repositories\Auth\Interfaces; use App\User; use Illuminate\Http\Request; interface AuthRepositoryInterface { function register(Request $request); function login(Request $request); function logout(Request $request); }
true
202b8e87e389fed8066a0d6109c3aedd7e440187
PHP
pythooon/test_first
/app/Service/UserService.php
UTF-8
1,544
2.515625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace App\Service; use App\Command\UserDetail\DeleteUserIfUserDetailNotExist\DeleteUserIfUserDetailNotExist; use App\Command\UserDetail\EditUserDetailIfExist\EditUserDetailIfExist; use App\Commons\CommandBus\CommandBus; use App\Commons\QueryBus\QueryBus; use App\Contract\User\FindU...
true
2baf3897715002d9aae64106fcee300ceb719254
PHP
ajeetkumarjha15/PhpTask4
/index2.php
UTF-8
1,838
3.140625
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <title>Sample Calculator</title> <meta name="description" content="Simple Calculation Using Arithmetic Operators"> <meta name="author" content="AloNe ForeVer"> </head> <body> <body background="http://previews.123rf.com/images/iunewind/iunewind1403/iunewind140300097/26559245-Black...
true
511fd3af4d510d98c11ef3340bf6ba9223ad2316
PHP
TaHUoP/acceptic
/src/Acceptic/DataSources/Event/ArrayDataSource.php
UTF-8
878
2.984375
3
[]
no_license
<?php namespace Acceptic\DataSources\Event; use Acceptic\Contracts\DataSources\EventDataSourceInterface; use Acceptic\Entities\Event; class ArrayDataSource implements EventDataSourceInterface { /** * In a real life example or in a more extended test task * I would use factories to instantiate entities...
true
846d096a09f7bf60fe84262d04b38746bc3ece0c
PHP
hafael/abstracts
/src/Console/EventBootstrap.php
UTF-8
1,512
2.71875
3
[]
no_license
<?php namespace Hafael\Abstracts\Console; use Illuminate\Support\Str; use Hafael\Abstracts\Console\Partials\EventPartial; use Hafael\Abstracts\Console\Partials\ListenerPartial; class EventBootstrap extends Bootstrap { use EventPartial, ListenerPartial; /** * The name and signature of the c...
true
ab1b197acb932c49f601b33fee3e9dce3f4f6822
PHP
websitetest/c9
/src/Framework/lib/Authentication/Provider/DatabaseUserProvider.php
UTF-8
486
2.53125
3
[]
no_license
<?php namespace src\Framework\lib\Authentication\Provider; use src\Framework\lib\Authentication\Provider\UserProviderInterface; use src\Framework\lib\Authentication\Exception\OperationNotSupportedException; class DatabaseUserProvider implements UserProviderInterface { public function loadUserByUsername($usern...
true
cab62cf5b8cdfe8e17984813ba557f26d4d662ba
PHP
AdamCox9/nickelbot
/adapters/kraken/kraken_lib.php
UTF-8
4,933
2.875
3
[ "MIT" ]
permissive
<?PHP class Kraken { protected $key; // API key protected $secret; // API secret protected $url; // API base URL protected $version; // API version protected $curl; // curl handle function __construct($key, $secret, $url='https://api.kraken.com', $version='0', $sslverify=true) {...
true
cdfb536a933db2a511657eb145bd4430924eb862
PHP
tautvydascoding/2018-05-14
/dirbame_cia/diena_11/Justas/php-masyvai2/nav.php
UTF-8
702
2.875
3
[]
no_license
<?php $meniu = ["home", "about", "gallery", "contact", "blog"]; // print_r($meniu);//test ?> <!-- paprastas isvedimas --> <nav> <ul> <?php for ($i = 0; $i < count($meniu); $i++) { echo "<li>" . $meniu[$i] . "</li>...
true
22d596b04e630a4efb35c55598ed60494a9b5e96
PHP
gabrovex/zf-doctrine-encrypt-module
/src/Service/EncryptManager.php
UTF-8
1,213
2.65625
3
[ "MIT" ]
permissive
<?php namespace ZfDoctrineEncryptModule\Service; use DoctrineEncrypt\Encryptors\EncryptorInterface; use ParagonIE\Halite\HiddenString; class EncryptManager { /** * @var EncryptorInterface */ protected $adapter; /** * EncryptManager constructor. * * @param EncryptorInterface $ada...
true
83f34089c5c8f16fff82f69b1fdbcd5579b5abdd
PHP
LIJIZHENG/LIJIZHENG
/console/migrations/m171114_043757_create_site_table.php
UTF-8
505
2.609375
3
[ "BSD-3-Clause" ]
permissive
<?php use yii\db\Migration; /** * Handles the creation of table `site`. */ class m171114_043757_create_site_table extends Migration { /** * @inheritdoc */ public function up() { $this->addColumn('site','cmbProvince',$this->string()); $this->addColumn('site','cmbCity',$this->str...
true
e180af06a4a42705b80bca1a164714ad2a8ef2dc
PHP
jhanitesh10/online_test
/admin_upload_question.php
UTF-8
2,007
2.625
3
[]
no_license
<?php session_start(); ?> <?php if($_FILES['image']['name'] != ''||$_FILES['image']['name'] == '') { $errors= array(); $file_name = $_FILES['image']['name']; $file_size = $_FILES['image']['size']; $file_tmp = $_FILES['image']['tmp_name']; $file_type = $_FILES['...
true
3dc747dff934753b5dcb4414c28bd8ed3ed452ae
PHP
Rixafy/Lempex
/app/Module/Console/Project/ProjectCommand.php
UTF-8
1,644
2.5625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Lempex\Module\Command\Project; use Lempex\Module\Command\Project\Helper\ProjectAddHelper; use Lempex\Module\Command\Project\Helper\ProjectEditHelper; use Lempex\Module\Command\Project\Helper\ProjectInfoHelper; use Symfony\Component\Console\Command\Command; use Symfony\Compone...
true
e7697767baaf8d843194cdf66d501f787c20470e
PHP
jameswilddev/dbml-parser
/tests/Unit/Parsing/Logging/EnumValueEventTest.php
UTF-8
755
2.734375
3
[ "MIT" ]
permissive
<?php namespace JamesWildDev\DBMLParser\Tests\Unit\Parsing\Logging; use JamesWildDev\DBMLParser\Parsing\Logging\EnumValueEvent; use PHPUnit\Framework\TestCase; final class EnumValueEventTest extends TestCase { public function test() { $enumValueEvent = new EnumValueEvent( 'Test Enum Name', 'Test ...
true
1e96912642fb78285c0f57cefd98ffd81b821edd
PHP
BoulderES/ddd-api
/src/Backoffice/Users/Infrastructure/Symfony/Service/JWTDecodeToken.php
UTF-8
860
2.5625
3
[]
no_license
<?php declare(strict_types = 1); namespace Cuadrik\Backoffice\Users\Infrastructure\Symfony\Service; use Cuadrik\Shared\Domain\Model\Token; use Cuadrik\Backoffice\Users\Domain\TokenDecoderInterface; use Cuadrik\Shared\Domain\Utils\Exceptions\ExceptionManager; use Lexik\Bundle\JWTAuthenticationBundle\Encoder\JWTEncod...
true
878a6346f7e0e03b148d05e80551e9e639a04ef6
PHP
schierproducts/user-engagement-wrapper
/src/ActionEvent/ActionEventProvider.php
UTF-8
1,087
2.984375
3
[ "MIT" ]
permissive
<?php namespace Schierproducts\UserEngagementApi\ActionEvent; use Schierproducts\UserEngagementApi\Interfaces\ActionEvent\ActionEventInterface; use Schierproducts\UserEngagementApi\Interfaces\ActionEvent\ActionEventQuery; interface ActionEventProvider { /** * Perform a search and return a list of action e...
true
b66cc3e70746246aebc323f104006a1717259045
PHP
bassalyn/Databases
/hospitalDB/getdoctors.php
UTF-8
1,283
2.890625
3
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>CS3319 Assignment3</title> </head> <body> <?php include 'connectdb.php'; ?> <h2>Here are the ordered doctors</h2> <?php $whatorder= $_POST["order"]; if ($whatorder == "firstasc"){ $query = 'SELECT fName, lName, licenseNumber FROM doctor ORDER BY fName'; ...
true
7eda652e2157cbd42d2bf272ba564e624d5cd925
PHP
nickknissen/tlint
/src/Lint.php
UTF-8
915
2.8125
3
[ "MIT" ]
permissive
<?php namespace Tighten; use PhpParser\Node; class Lint { private $linter; private $node; public function __construct(BaseLinter $linter, Node $node) { $this->linter = $linter; $this->node = $node; } public function __toString() { if ($this->linter->getExtension(...
true
051649abbda8f0113aa08ba29237ffdb97f32b79
PHP
ravi-10/php-capstone
/public/thank_you.php
UTF-8
6,905
2.515625
3
[]
no_license
<?php /** * Thank You Page * last_update: 2019-09-10 * Author: Ravi Patel, patel-r89@webmail.uwinnipeg.ca */ require __DIR__ . '/../app/atg_config.php'; use App\BookingModel; use App\UserModel; $title = 'ATG - Thank You'; $heading = 'Thank You for Booking!'; if(!$_SES...
true
dd8daea5cad41d1a4d79e9d218515c8131590c8c
PHP
Skiniukas/fullstack-party
/src/Model/Repo.php
UTF-8
3,788
3.03125
3
[]
no_license
<?php namespace App\Model; /** * Class Repo */ class Repo { /** * @var int */ private $id; /** * @var string */ private $name; /** * @var string */ private $fullName; /** * @var string */ private $ownerName; /** * @var string ...
true
eafc9dad36a2b92b7ea472227a5618008655c252
PHP
duytc/selenium-learn
/src/Tagcade/DataSource/Conversant/Widget/DateSelectWidget.php
UTF-8
2,775
2.671875
3
[]
no_license
<?php namespace Tagcade\DataSource\Conversant\Widget; use DateTime; use Facebook\WebDriver\Remote\RemoteWebDriver; use Facebook\WebDriver\WebDriverBy; use Facebook\WebDriver\WebDriverSelect; use Monolog\Logger; class DateSelectWidget extends AbstractWidget { /** * @param RemoteWebDriver $driver */ ...
true
23903d2847180a51376e48f22744c1f3d6d7e878
PHP
KnowYourKnot/Binweevils
/game-full/php2/shop/getHagglePrices.php
UTF-8
5,903
2.515625
3
[]
no_license
<?php error_reporting(0); include('../../essential/backbone.php'); if(isset($_POST)) { $nestItemsArray = removeEmptyValuesFromArray(explode(',', $_POST['items'] . ',')); $gardenItemsArray = removeEmptyValuesFromArray(explode(',', $_POST['gardenItems'] . ',')); $garden = $_POST['gardenItems']; $items = ...
true
836a4a0a8073d748ce0a84d460dc40782225a884
PHP
alfredbez/buchhaltung
/php/classes/Logger.inc.php
UTF-8
628
3.15625
3
[]
no_license
<?php class Logger { private $logfile; public function __construct($file = false) { if ($file) { $this->logfile = $file; } else { $this->logfile = ''; $this->logfile .= __DIR__; $this->logfile .= '../../../'; $this->logfile .= 'lo...
true
28bb2ae28f73391f1ca36fb04355180329580009
PHP
cstplvishnu/schoolnotebook-2
/app/Fine.php
UTF-8
595
2.6875
3
[]
no_license
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Fine extends Model { protected $table = 'fines'; public function feeCategory() { return $this->belongsTo('App\FeeCategory'); } // /** // * Create a conversation slug. // * // * @param string $title ...
true
3c85b0af68eafc93d16ebc50d8b3db03249336b7
PHP
MasGaNo/Fantasite
/Html/Html.php
UTF-8
4,132
3.421875
3
[]
no_license
<?php /** * Html element */ abstract class FS_Html { const ATTR_NAME = 'name'; const ATTR_CLASS = 'class'; const ATTR_ID = 'id'; private $_tag; private $_isDouble; private $_attr; private $_class; private $_content; /** * Construct Html Element * @param st...
true
e2ef520aa544fbe9d36ee141ba8e0b38fbc7f0f8
PHP
ankitbudhori23/database-connection-in-PHP-for-Login-and-Registration-
/register.php
UTF-8
4,323
2.796875
3
[]
no_license
<?php include "config.php"; ?> <!DOCTYPE html> <html> <head> <title>Create Registration form with MySQL and PHP</title> <!-- Bootstrap CSS --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css"> <!-- jQuery library --> <script src="https://ajax.google...
true
ab280ab918c2fd0f00a29267d89e98671780e462
PHP
warrenkdavidson/LoadingStation
/model/PlaneCalc.php
UTF-8
6,927
2.875
3
[]
no_license
<?php class PlaneCalc { public $rowCounter = 0; public $sag1 = 0; public $sag2 = 0; public $sag3 = 0; public $sag4 = 0; public $sag5 = 0; public $sag6 = 0; public $real_apogee1 = 0; public $real_apogee2 = 0; public $real_apogee3 = 0; public $real_apogee4 = 0; public $r...
true
eea89bfdbb39f1567f0c96f91d5509b018d0aecd
PHP
shreepanch/Practise
/php_string.php
UTF-8
152
3.09375
3
[]
no_license
<!DOCTYPE html> <html> <body> <?php //The PHP strlen() function returns the length of a string. echo strlen("shreepanch");//output = 10 ?> <body> <html>
true
1aebfdd4ca95e8b4f5ca88f87d997ef592fe1f51
PHP
nechutny/BP
/src/tests/foreach/ok_easy.php
UTF-8
84
2.796875
3
[ "Apache-2.0" ]
permissive
<?php function main(array $arg) { foreach($ags as $val) { echo $val."\n"; } }
true
64bdb8871ef12a8bb020a620a9d8d8a055c85256
PHP
jessie266729/ilookbook
/oop/oop1.php
UTF-8
562
2.984375
3
[]
no_license
<?php /** * 面向对象的封装 */ header('Content-Type:text/html;charset=utf-8'); class MyPc { private $name; // get和set起到原始数据保存的作用下 对新数据进行操作 function __set($name,$value){ if($value == '555'){ $this->name = $value; } } function __get($name){ return $this->name; } function __construct($name="") ...
true
4079847857f092d15b9bd156f0bddf07f62ab45d
PHP
Majkl45/Registration-Form
/welcome.php
UTF-8
610
2.546875
3
[]
no_license
<?php session_start(); if (!isset($_SESSION['username'])) { header("Location: index.php"); } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" type="text/css" href="style.css...
true
077cab2afa8e788eb3989bef0b404209caf89435
PHP
jacobe911/pure_php_simple_blog
/editpost.php
UTF-8
3,395
2.671875
3
[]
no_license
<?php session_start(); include 'config.php'; include 'functions/functions.php'; if(!$_GET['edit']){ header('Location: index.php'); } if($_GET){ $sql = 'SELECT posts.id, posts.authorid, posts.title, posts.description, posts.body, posts.post_date, users.username as author FROM posts INNER JOIN users ON users.i...
true
ac76083f578da0f05c2f065ab51927c665d05168
PHP
sir-hadi/Sprout-Game-Store
/application/models/DeveloperModel.php
UTF-8
2,952
2.5625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php class DeveloperModel extends CI_Model { /** * Pada kelas ModelDeveloper ini akan mengatur logic yang akan dilakukan pada controller Developer dan semua * data yang didapatkan maupun mengirim ke controller maupun view untuk Developer * @author Aditya Ramadhan * @version 1.0 * @since 2...
true
56e72b22585f3c43bdd34509a66a689732c05456
PHP
TA3/bearicade
/public/telegram/vendor/clue/block-react/src/functions.php
UTF-8
7,448
2.875
3
[ "MIT" ]
permissive
<?php namespace Clue\React\Block; use React\EventLoop\LoopInterface; use React\Promise\PromiseInterface; use React\Promise\CancellablePromiseInterface; use UnderflowException; use Exception; use React\Promise; use React\Promise\Timer; use React\Promise\Timer\TimeoutException; /** * wait/sleep for $time seconds * ...
true
a45c5257d9795193943475d8a2347c2a83b25c1b
PHP
diegotiller/php
/ajaxEstruturaMVC/controllers/ajaxController.php
UTF-8
613
2.5625
3
[]
no_license
<?php class ajaxController extends controller { public function index() { $dados = array( 'frase' => '' ); if (isset($_POST['nome']) && !empty($_POST['nome'])) { $nome = addslashes($_POST['nome']); $dados['frase'] = 'Meu nome é: '.$nome; } echo json_encode($dados); exit; //sem o loadView o ...
true
c81473575d7c516f7d48387a50b64ff21bb9b2fb
PHP
bolenge/bolenge-php
/core/Middleware.php
UTF-8
482
3.109375
3
[]
no_license
<?php namespace Core; /** * Le Middleware principal */ class Middleware { /** * L'instance de Core\Request * @var Request */ protected $req; /** * L'instance de Core\Response * @var Response */ protected $r...
true
640f2f8c95cda78a1090b6f979da9ec2075b2541
PHP
pengjun1128/automatic
/script/git-hook.php
UTF-8
933
2.609375
3
[]
no_license
<?php /** * @describe: * @author: Jerry Yang(hy0kle@gmail.com) * */ $json = file_get_contents('php://input'); SeasLog::debug($json); $git_data = json_decode($json, true); if (! is_array($git_data)) { SeasLog::error('请求有误'); exit; } $repository_name = $git_data['repository']['name']; $ref_exp = explode('/',...
true
90097ab97d0a8dc1ba405fc4ebd8c86a8a8a054c
PHP
Ben-jpeg/BAROINI_BENDJADE_ECF202104_2
/app/Http/Controllers/ReviewController.php
UTF-8
1,421
2.609375
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Http\Controllers\Controller; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Auth; class ReviewController extends Controller { //#5a page critiques/reviews public function reviews($id){ //Accéder à la page 'critique de l'anime' uniquement ...
true
c8697cc65899ad721496c6fd9cc43403f7947f0b
PHP
njoerd114/morgue
/features/slack/routes.php
UTF-8
4,487
2.6875
3
[ "MIT" ]
permissive
<?php use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\ServerRequestInterface; $app->get( '/events/{id}/slack-channels', function (ServerRequestInterface $request, ResponseInterface $response, $args) use ($app) { $id = (int) $args['id']; header("Content-Type: application/json"); ...
true
4e82b0f585ee16c484fdfbec5eca0035ea36f909
PHP
AlexEvesDeveloper/hl-stuff
/iris-sdk/Common/Model/Address.php
UTF-8
5,583
2.765625
3
[]
no_license
<?php namespace Barbondev\IRISSDK\Common\Model; /** * Class Address * @todo Should implement \JsonSerializable and have private properties. Currently doesn't for PHP <5.4 compatibility. * * @package Barbondev\IRISSDK\Common\Model * @author Ashley Dawson <ashley.dawson@barbon.com> */ class Address { /** ...
true
305d4cd9494241db462023af83c23129175503fc
PHP
gizmore/gwf5
/inc/util/gwf/GWF_Array.php
UTF-8
664
3.359375
3
[ "MIT" ]
permissive
<?php /** * Array utility * @author gizmore */ final class GWF_Array { public static function array($value) { if (is_array($value)) { return $value; } $back = []; if ($value !== null) { $back[] = $value; } return $back; } /** * Recursive implode. Code taken from php.net. Original code b...
true
08b5d3c0d1ab4b509be28c28b67788dddca7fece
PHP
taaz/php-api
/lib/ParameterGroups/AbstractParameterGroup.php
UTF-8
1,400
2.78125
3
[ "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-public-domain" ]
permissive
<?php namespace Heidelpay\PhpApi\ParameterGroups; use Heidelpay\PhpApi\Exceptions\UndefinedPropertyException; /** * The AbstractParameterGroup provides functions for every parameter group which extends this class * * @license Use of this software requires acceptance of the Evaluation License Agreement. See LI...
true
fe0b8a772fe426e80e393ef344945b4c3dfd1de7
PHP
kevinaraujo/mvc2
/index.php
UTF-8
614
2.65625
3
[]
no_license
<?php session_start(); //ARQUIVO DE CONFIGURAÇÃO include_once('config.php'); //LOAD DAS CLASSES function __autoload($class){ include('Model/'.$class.'.php'); } //se digirar if(sizeof($_GET) == 0){ header('location:'.PASTA.'/home'); } if (isset($_GET['controller'])) { include_once('Controller/' . ucf...
true
08af2b3b5c5d30291da06524eb061fed546bea97
PHP
hhh920406/Typewriter
/Web/Album/ZWebAlbum_web_v3/app/developer/sql.php
UTF-8
3,401
3.234375
3
[]
no_license
<?php define("HOST", "localhost"); define("NAME", "ZHG"); define("PASSWORD", "19910702"); define("DATABASE", "ZWebAlbum_v3"); class SQL { /** * @var string $host The host name of the database. * @var string $name The user name to connect to the host. * @var string $password The password to connect ...
true
c761e81b6c430432488f76a864a9e797ca1c6f31
PHP
mhthaveamazing/demo_cricketpedia
/application/models/Pedia_model.php
UTF-8
1,754
2.546875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php class Pedia_model extends CI_Model{ function __construct() { parent::__construct(); $this->load->database(); } function create_link(){ $data=$this->input->post(); if($data['select_hash']== "MD2"){ $hashed=md2($data['input_link']); }elseif ($data['select_ha...
true
8721c8abb03855cd33d1ce8acbe7b6ddc452ca76
PHP
filippofortino/Swap-old
/assets/includes/upload.php
UTF-8
2,347
2.96875
3
[]
no_license
<?php /** * Swap Upload Script * * Simple algorithm that uploads one * or multiple files. * * @author Filippo Fortino <filippofortino@gmail.com> * @version 1.0.0 */ /** * getUrl * * Return the current page url. * * @return string */ function getUrl() { $url = @( $_SERVER["HTTPS"] != '...
true
3d8fd8401695204b18018d38ce8497517294bb01
PHP
Tschrock/Pocketmine-Plugins-1.3.12
/DEV/DEV_PerWorldGamemode_1.3.php
UTF-8
10,677
2.71875
3
[]
no_license
<?php /* __PocketMine Plugin__ name=PerWorldGamemode description=Control Gamemode on differant worlds version=1.3 author=tschrock class=PerWorldGamemode apiversion=12 */ class PerWorldGamemode implements Plugin { private $api, $list, $config; public function __construct(ServerAPI $api, $serve...
true
1cbaa1e75d0df2980fd1f9195f90b11711c92e1a
PHP
juasoonline/orders.juasoonline
/app/Repositories/Juasoonline/Resource/Customer/Order/OrderRepositoryInterface.php
UTF-8
721
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Repositories\Juasoonline\Resource\Customer\Order; use App\Http\Requests\Juasoonline\Resource\Customer\Order\OrderRequest; use App\Models\Juasoonline\Resource\Customer\Order\Order; use Illuminate\Http\JsonResponse; interface OrderRepositoryInterface { /** * @param $customer * @return...
true
9e4101dd0b56bac0d788855df14de9f0cfa6e555
PHP
nishagarwal/sample-hpm
/hpmTest.php
UTF-8
4,106
2.6875
3
[]
no_license
<?php //echo "Begin Test<br/>"; //File containing structure for our REST requests require "RestRequest.php"; //File containing login information for Zuora require "config.php"; //Sandbox URL for generating signature for IFrame $url = 'https://apisandbox-api.zuora.com/rest/v1/rsa-signatures'; //Set req...
true
62564f41a569ea95caae2dde0b046567a1fd7cab
PHP
vietphuongtran/HTTP5203-XML-Assignment2
/t123458.php
UTF-8
1,470
2.625
3
[]
no_license
<?php $xml = new DOMDocument("1.0", "UTF-8"); //load the xml doc $xml = simplexml_load_file("tickets.xml"); $tickets = $xml->ticket; //This depends on postion -> improvement: come up with a more efficient way $messages = $tickets[2]->messages->message; $messInsert = $tickets[2]->messages; if (isset($_POST['submit'])) {...
true
94eb7147539c1cd8388a7e485bb5818132c8534b
PHP
marxys/Sandwich
/app_sandwitch_293/controllers/news.php
UTF-8
1,912
2.703125
3
[]
no_license
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class News extends CI_Controller{ public function __construct(){ parent::__construct(); $this->load->model('news_model'); $this->news_model->init(); $this->load->model('etablissement_model'); $this->etablissement_model->init(); ...
true
c50c2a008fff5f4718fb1e72470d68cda88e046f
PHP
Dosen2017/lz
/lzsdk/sdkproject/login/helper/RedisH.php
UTF-8
1,570
2.703125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: sds * Date: 2020/5/18 * Time: 12:00 */ namespace app\login\helper; use think\Config; use think\Helper; /** * Class RedisH * @package app\login\helper * 极简版redis操作类 */ class RedisH extends Helper { protected $redisHandler; public funct...
true
d28c08e36cc63771c0216ce981e9ceedd4f9f77b
PHP
baizhiqiang/yii2-wechat-1
/Module.php
UTF-8
10,357
2.625
3
[ "MIT" ]
permissive
<?php /*! * yii2 extension - wechat - module * xiewulong <xiewulong@vip.qq.com> * https://github.com/xiewulong/yii2-wechat * https://raw.githubusercontent.com/xiewulong/yii2-wechat/master/LICENSE * create: 2016/1/21 * update: 2016/3/17 * version: 0.0.1 */ namespace yii\wechat; use Yii; use yii\base\ErrorExcep...
true
09a6ffbc0101fe74c1c330c26a818e063ba698a0
PHP
mramsden/tefel
/src/Tefel/Feed/StationsFeed.php
UTF-8
2,593
3.078125
3
[ "MIT" ]
permissive
<?php namespace Tefel\Feed; use ArrayAccess; use Countable; use Guzzle\Http\Client; use IteratorAggregate; use SimpleXMLElement; class StationsFeed implements ArrayAccess, Countable, IteratorAggregate { /** * @var string */ private $stationsFeedUrl; /** * @var SimpleXMLElement */ ...
true
3e1fde69f66505897cdb7cf50cc537cdcf660ff0
PHP
ikneb/lg
/src/AppBundle/Entity/User.php
UTF-8
8,068
2.515625
3
[ "MIT", "BSD-3-Clause" ]
permissive
<?php namespace AppBundle\Entity; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Security\Core\User\UserInterface; use Symfony\Component\Validator\Constraints as Assert; use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity; /** * @ORM\Table(name="a...
true
7fb96600bb2f7f5d38e79aeca7aba113fe4fb14f
PHP
riobrotha/app-kasir-ku
/application/controllers/auth/Login.php
UTF-8
2,341
2.53125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php defined('BASEPATH') or exit('No direct script access allowed'); class Login extends MY_Controller { public function __construct() { parent::__construct(); $is_login = $this->session->userdata('is_login'); $role = $this->session->userdata('role'); if ($is_login) { ...
true
6723536c37f7db29baccd314dc43676d3065f042
PHP
hendiyahya/praktikum4dpbo
/includes/Task.class.php
UTF-8
1,271
2.546875
3
[]
no_license
<?php /****************************************** PRAKTIKUM RPL ******************************************/ class Task extends DB{ // Mengambil data function getTask(){ // Query mysql select data ke tb_to_do $query = "SELECT * FROM tb_to_do"; // Mengeksekusi query return $this->execute($qu...
true
51682273938326d883e0242815d0a9dc138bd4df
PHP
toahacse/School_managment-ERP-
/app/classes/student.php
UTF-8
3,896
2.796875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: toaha * Date: 12/17/2018 * Time: 12:51 PM */ namespace App\classes; class student { public function saveStudent($data){ $link = mysqli_connect('localhost','root', '', 'school_management'); if(isset($data['s_ok'])) { $fileName=...
true
8e56c3740ca9e9eb99234e91f6f1c044334b9497
PHP
tarikfayzullah/Dental_Clinic_php
/app/Http/Controllers/AppointmentsController.php
UTF-8
1,538
2.75
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Appointment; use Illuminate\Http\Request; use \DB; class AppointmentsController extends Controller { public function appointment() { $doctors = DB::table('doctors')->get(); $times = DB::table('time_slot')->get(); $dates = DB::table('date...
true
8378e02e2271245a498af956f6c808625baf898b
PHP
romanmatyus/Acl
/tests/RM/Acl/Acl.user1.phpt
UTF-8
2,344
2.5625
3
[ "MIT" ]
permissive
<?php /** * Test: Acl->isAllowed() * @dataProvider? databases.ini */ use Tester\Assert; require __DIR__ . '/connect.inc.php'; // create $connection $database = 'test_' . Nette\Utils\Random::generate(10, 'a-zA-Z'); $connect($database); Nette\Database\Helpers::loadFromFile($connection, __DIR__ . "/files/test1.sql...
true
3502ac9375bca0378065d850cb3d0c57a700556c
PHP
cuonglh1/CrawlerMVC
/app/curl/Curl.php
UTF-8
447
2.984375
3
[]
no_license
<?php namespace App\Curl; Class Curl { public $uri; public function __construct($uri) { $this->uri = $uri; } public function getWebContent() { // Initialize CURL $curl = curl_init($this->uri); // Set return curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); ...
true
6e285c5e549a43a7c3fd97041a9840b535ecfc7a
PHP
Gevorg618/Laravel-Structure-with-modules
/modules/Admin/Services/Accounting/PayableReportService.php
UTF-8
934
2.65625
3
[]
no_license
<?php namespace Modules\Admin\Services\Accounting; use Modules\Admin\Repositories\Ticket\OrderRepository; /** * Class PayableReportService * @package Modules\Admin\Services */ class PayableReportService { /** * @var OrderRepository */ protected $orderRepo; /** * PayableReportService c...
true
d6655cf368db17bf4bcae3cdb62b7b8584475cb9
PHP
Mimileo/cst336
/final_project/custloginprocess.php
UTF-8
2,024
2.75
3
[]
no_license
<?php session_start(); //print_r($_POST); include 'dbConnection.php'; $conn = getDatabaseConnection(); //print_r($conn); $username = $_POST['username']; $password = sha1($_POST['password']); $user; //The following SQL allows SQL injection // $sql = "SELECT * // FROM tc_admin // WHERE username = '$u...
true
640c3c1144102a3b8266ec039291898dc85c42c6
PHP
squiquem/Piscine_PHP
/rush00/cart.php
UTF-8
6,410
2.84375
3
[]
no_license
<?php function cart_creation() { if (!isset($_SESSION['cart'])) { $_SESSION['cart'] = array(); $_SESSION['cart']['id'] = array(); $_SESSION['cart']['name'] = array(); $_SESSION['cart']['qty'] = array(); $_SESSION['cart']['price'] = array(); $_SESSION['cart']['lock'] = false; } return true; } function a...
true
fc3736ba4c69d0b437c90782a6df8163639d693f
PHP
ARCANEDEV/EmbedVideo
/tests/ParserManagerTest.php
UTF-8
2,900
2.78125
3
[ "MIT" ]
permissive
<?php namespace Arcanedev\EmbedVideo\Tests; /** * Class ParserManagerTest * * @package Arcanedev\EmbedVideo\Tests * @author ARCANEDEV <arcanedev.maroc@gmail.com> */ class ParserManagerTest extends TestCase { /* ----------------------------------------------------------------- | Properties | ...
true
68e1b39adcf2b70abf5006b5e52ff71cda798590
PHP
Faizanabid36/php-codes
/Login System with a Pfp/performSignup.php
UTF-8
2,093
2.5625
3
[]
no_license
<?php require 'db/db_inc.php'; require 'session.php'; if(empty($_POST['fname'])||empty($_POST['lname'])||empty($_POST['uname'])||empty($_POST['email'])||empty($_POST['age'])||empty($_POST['password1'])||empty($_POST['password2'])){ header('location: signup.php?status=incomplete'); exit(); } else{ $first=trim($_POS...
true
69f667de1934ea4d15da24daa29a67dd0ad8a1b7
PHP
ahorak8/blog
/plugins/ahorak/blogsite/updates/builder_table_create_ahorak_blogsite_posts.php
UTF-8
635
2.609375
3
[ "MIT" ]
permissive
<?php namespace Ahorak\BlogSite\Updates; use Schema; use October\Rain\Database\Updates\Migration; class BuilderTableCreateAhorakBlogsitePosts extends Migration { public function up() { Schema::create('ahorak_blogsite_posts', function($table) { $table->engine = 'InnoDB'; ...
true
53b3192a8c817bd5f20b2550b6eea8a399ed490b
PHP
dondonai/ddbone
/includes/structure/author.php
UTF-8
2,618
2.625
3
[]
no_license
<?php if( !defined('ABSPATH' ) ) exit; // Exit if accessed directly /* * Display the contact details of the author * * @since 2.0.18 */ add_action( 'genesis_before_comments', 'bfg_author_box' ); function bfg_author_box() { $firstname = get_the_author_meta('first_name'); $lastname = get_the_author_meta('...
true
478c8f5c52d731f30c92661f852f1cb41202f508
PHP
benson336/DIYRestorationpro
/includes/users.php
UTF-8
2,365
2.859375
3
[]
no_license
<?php Class Users { private $conn; private $db_table = "users"; public $username; public $password; public $email; public $phone; public $id; public function __construct($db){ $this->conn = $db; } public function create(){ $sql = "INSERT INTO " . $this->db_table . " (username, password, email, phone) VALUES (:us...
true
eaaf5aca1d5d06f0da22d92ecdd64d04b2267862
PHP
Louis-Aime/Milesian_converter_PHP
/Compare_easter_days_cmd.php
UTF-8
568
3.234375
3
[ "MIT" ]
permissive
<?php // Compare several Easter Days computations // Value for method: Default: 0, Roman: 1, Gregorian: 2, Julian: 3; include "Easter_lean.php"; echo "Test Easter computation with file, method, start and end year: ",$argv ["0"]," ", $argv ["1"]," ", $argv ["2"]," ", $argv ["3"]," ", PHP_EOL; for ($year = $argv...
true
63f268593bc31cae06462eecc14cf5e09e7d5a0f
PHP
seotracker/seo-core
/Adapter/Crawler/SymfonyCrawler.php
UTF-8
1,840
2.734375
3
[ "MIT" ]
permissive
<?php /** * This file is part of the Seo Core package * * Copyright (c) 2014 - 2015 Mickaël Andrieu * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace SeoTracker\SeoCore\Adapter\Crawler; use DOMElement; use Symfony\Compon...
true
2bef01548bb6fa355dedefcce3fadfd6c87a94f8
PHP
Klako/scoutorg
/src/Builder/Tables/ContactTable.php
UTF-8
843
2.8125
3
[]
no_license
<?php namespace Scouterna\Scoutorg\Builder\Tables; use Scouterna\Scoutorg\Builder\Bases\ContactBase; use Scouterna\Scoutorg\Model\Contact; class ContactTable extends BuilderTable { public function __construct($config, $scoutorg) { parent::__construct($config, $scoutorg, ContactBase::class); } ...
true
664303a3a4fc426ce8c713d6ea58044125ee0285
PHP
Epistol/-OLD-_-CuisineDeGeek
/controler/admin_controller.php
UTF-8
2,834
2.71875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: ASUS * Date: 03/07/2016 * Time: 03:25 */ // TODO : la partie adminsitration à revoir /** * The about page controller */ class AdminController extends UtilisateurController { private $modelObj; private $db; function __construct($model, $maco) { $t...
true
91999b753b36795534c1e8cd3129df8a000bcd85
PHP
ytt8612/php-api
/ApiTest/ApiTest/Table/Tags.php
UTF-8
365
2.609375
3
[]
no_license
<?php class Table_Tags extends Core_Db_ApiTable{ protected $_tablename = 'en_tag'; protected $_pk = 'tag_id'; /** * * @return Table_Tags */ public static function getInstance(){ return parent::getInstance(); } /** * 检索标签 * @param $tag */ public function getTag($tag){ return $this->getQuery()->w...
true
9335bf78e608b1239354c9ba0eea9222b9475a34
PHP
getsmygets/TemplateEngine
/tests/CompilerTest.php
UTF-8
2,353
2.734375
3
[]
no_license
<?php declare(strict_types=1); use PHPUnit\Framework\TestCase; use TemplateEngine\Parser; use TemplateEngine\Compiler; use TemplateEngine\Program; use TemplateEngine\Token; use TemplateEngine\Action; final class CompilerTest extends TestCase { public function testCheckValid() { $string = "ABCD\n" ...
true
f112aae353d119cb7a50a2fd401f78a647a56562
PHP
nishmar/CS-411-Group-1-Good-Game
/updateFriendList.php
UTF-8
2,754
3.1875
3
[]
no_license
<?php // Start the session session_start(); ?> <?php /** * updateFriendList.php * * Inserts or deletes a user from the user's friend list. * Then redirects user to either search page or profile page. * * Date: 11/30/14 * Created by Nishi */ function connectSQL(){ //MySQL default credentials $servername =...
true
7cb1ce7e430a45d67f07adc095ea047eef33bdcf
PHP
hanigamal/activity-log
/src/Marquine/ActivityLog/Diff/Diff.php
UTF-8
4,902
2.75
3
[ "MIT" ]
permissive
<?php namespace Marquine\ActivityLog\Diff; use cogpowered\FineDiff\Diff as Differ; class Diff { /** * The data before the activity. * * @var array */ protected $before; /** * The data after the activity. * * @var array */ protected $after; /** * Indi...
true
4853d37efa723a349236e20084586211d69a721f
PHP
vinaykharayat/registrationFormPHP
/registerUser.php
UTF-8
2,735
2.984375
3
[]
no_license
<?php ini_set("file_uploads", '1'); /* * 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. */ require_once('./dao/databaseDao.php'); require_once('./bean/userBean.php'); const SUCCESS_CODE = 2...
true
62677174dc53a10ba38e1c18b98123bf326a933d
PHP
wangfeixiang92/tbook
/database/migrations/2018_01_02_124935_create_modules_table.php
UTF-8
1,129
2.53125
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateModulesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('modules', funct...
true
5eac3c25af12d6c117e7622a1743888ed00be731
PHP
Wanna-Play/Wanna-Play
/app/database/migrations/2015_09_24_142707_create_Events_table.php
UTF-8
1,289
2.609375
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateEventsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('events', function(Blueprint $table) { $table->increments('id'); $table->...
true
7432ce701f2871d470c1891ba4a7325915e92967
PHP
ieldan/kohana-welcome-test
/htdocs/application/views/page/hashgenerator.php
UTF-8
336
2.640625
3
[ "BSD-3-Clause" ]
permissive
<!DOCTYPE html> <html> <head> <title>hash generator (for debugging purposes!)</title> </head> <body> <form> <input name="input" value="<?= htmlspecialchars($input) ?>" /> <button>Hash it!</button> </form> <?php if ($hash): ?> <label>Hash: </label> <output><?= htmlspecialchars($hash) ?></output> <?php endif ?> ...
true
a19cc2c8fa522aa4f4288db6672f19194572d4bb
PHP
bteferi/Php_App
/alwebdev/hello.php
UTF-8
798
3.59375
4
[]
no_license
<?php error_reporting(-1); // default settings $firstName = 'Oscar'; // single quote works $lastName = "Zaky"; // just like double quote $fullName = $firstName . ' ' . $lastName; function printName($f, $l){ global $firstName, $lastName; echo "<p>Hello, $f $l</p>"; echo "First name is $firstName"; ...
true
c0f824d938ad644b9accbf12712e573d18ffb387
PHP
tuftsceeo/smartpost-theme
/index.php
UTF-8
2,852
2.546875
3
[]
no_license
<?php /** * The main template file * * This is the most generic template file in a WordPress theme * and one of the two required files for a theme (the other being style.css). * It is used to display a page when nothing more specific matches a query. * For example, it puts together the home page when no home.php ...
true
c0fa73e16fa65d9dd44bebd7558b7228c86f248a
PHP
zesda/glimpse-plus
/account.php
UTF-8
1,215
2.5625
3
[]
no_license
<?php /** * Description of account * * @author cir8 */ include 'bootstrap.php'; run(); include $application->getDirConfig('controllers') . 'ApplicationWebBody.php'; include $application->getDirConfig('controllers') . 'ApplicationWebPage.php'; class account { private $app; public function __construct...
true
90927b3e5084c870d74e76a7580fa35663e91a5d
PHP
atib/tablet-gaylord
/user/confirmation.php
UTF-8
2,069
2.53125
3
[]
no_license
<?php session_start(); $username = $_SESSION['fname']; if(!isset($_SESSION['email'])) { $error_msg = "user not found"; header("Location: index.php?err=$error_msg"); exit(); } if (isset($_GET['err'])){ $error_msg = $_GET['err']; $success_msg = ""; } else if(isset($_GET['succ'])){ $success_msg = $_GET['su...
true
ddf5904936b45f178cfa94a42622a4adaf0ac841
PHP
Twinkle0613/Laravel_API_Test
/app/Http/Requests/ImportUserRequest.php
UTF-8
1,099
2.53125
3
[]
no_license
<?php namespace App\Http\Requests; // use Illuminate\Foundation\Http\FormRequest; use Request; use App\Http\Requests\Api\FormRequest; class ImportUserRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize...
true
e07bcbd44f9974a4bfe4edea28ad7ca85d79ec00
PHP
UltimaPHP/UltimaPHP
/scripts/mobiles/Monsters/ML/Prism of Light/CrystalVortex.php
UTF-8
788
2.59375
3
[]
no_license
<?php /** * Ultima PHP - OpenSource Ultima Online Server written in PHP * Version: 0.1 - Pre Alpha */ class CrystalVortex extends Mobile { public function summon() { $this->name = "a crystal vortex"; $this->body = 0; $this->type = ""; $this->flags = 0x00; $this->color = 0x00; $this->basesoundid = 0x107; ...
true
26a1d05b64297b8971908d4bdb112f1494952186
PHP
mtrunkat/php-libphutil-composer
/src/Facebook/Libphutil/AphrontDatabaseTransactionState.php
UTF-8
2,180
2.859375
3
[ "Apache-2.0" ]
permissive
<?php namespace Facebook\Libphutil; /** * Represents current transaction state of a connection. * * @group storage */ class AphrontDatabaseTransactionState { private $depth = 0; private $readLockLevel = 0; private $writeLockLevel = 0; public function getDepth() { return $this->depth; ...
true
a1f4730577d464b6f88613758c613ae2537862a0
PHP
ayush194/Sweetchat
/signup/verify.php
UTF-8
2,258
2.734375
3
[ "MIT" ]
permissive
<?php if ($_SERVER["REQUEST_METHOD"] == "POST") { if (isset($_POST["username_check"])) { //reqest for checking username against database //establish connection $conn = new mysqli("localhost", "root", "starfish12345", "sweetchat"); //check for connection error if ($conn->connect_error) { die(...
true
1167bf8f952ed95a2c76673f62b187ad45398ff4
PHP
medharik/it2_2019_jours
/it2_dynamique/s2/tp2.php
UTF-8
566
2.6875
3
[]
no_license
<?php //recuperer les infos depuis le liens (url) $libelle=$_GET["libelle"]; $prix=$_GET["prix"]; if($libelle=="hp") $src="images/index.jpg"; else { $src="images/pc1.jpg"; } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-sca...
true
29a38771dc4a477d358ecfbe97a092fc10743384
PHP
iqbalmalik89/photoapp
/Repo/TestimonialRepo.php
UTF-8
2,493
2.796875
3
[]
no_license
<?php class TestimonialRepo{ public function getTestimonials($request) { $requestData = $request; // Initial response is bad request $response = 400; // If there is some data in json form if(!empty($requestData['id'])) { $count = $GLOBALS['con']->from('testimonial')->where('id...
true
923af5a521a8b766f605b9518c72631740d3e9d0
PHP
HaseProgram/University
/6sem/ppo/3 lab/html/core/model.php
UTF-8
1,013
2.75
3
[]
no_license
<?php require_once "registry.php"; require_once "memory.php"; class Model { protected $data; protected $groupsArr; private $registry; protected $memory; protected $history; public function __construct() { $this->memory = new Memory(); $this->data = json_decode(file_get_contents(ROOT_DIR . '/gro...
true
616b801d913285facd4b07670b36c23cd26fc1f4
PHP
gingerpayments/ginger-php-plugin-sdk
/src/Tests/EmailTest.php
UTF-8
747
2.65625
3
[]
no_license
<?php namespace GingerPluginSdk\Tests; use GingerPluginSdk\Exceptions\OutOfPatternException; use GingerPluginSdk\Properties\EmailAddress; use PHPUnit\Framework\TestCase; class EmailTest extends TestCase { public function test_allow_valid_email() { $expected = 'test@mail.ginger'; $real = new E...
true
036ac2cee48ed4e33501579b88fd0de353e5efca
PHP
paullandre/Tools
/cleanup.php
UTF-8
2,726
3.078125
3
[]
no_license
<?php /** * @Filename: cleanup.php * @Class: iterate * @Function: Find and delete all empty folders * @Date: 08/29/17 * @author: Paul Andre Francisco */ define("ROOT", __DIR__); include_once ROOT . "/model/model.class.php"; include_once ROOT . "/entity/emptyFolder.class.php"; print "Searching for empty folder...
true
e3fd96496d49892d34fef5f4d91d6aa2a0b7b4ba
PHP
sjadema/puzzle-maker
/src/Puzzle/PuzzleFactory.php
UTF-8
924
2.9375
3
[]
no_license
<?php declare(strict_types=1); namespace App\Puzzle; use App\Puzzle\Model\Name; use App\Puzzle\Model\Puzzle; use App\Puzzle\Model\Quote; use App\Puzzle\Model\Word; /** * Factory to create a {@see Puzzle}. */ class PuzzleFactory { /** * Creates a puzzle from an array. * @param mixed[] $data The data. * @ret...
true
94b2ef6da4f3f0bd0bcd1c97d4a2b565cf343857
PHP
HaaaToka/Course-Registration-System
/web/admin/login.php
UTF-8
2,043
2.59375
3
[]
no_license
<?php session_start(); include "../database.php"; include "../config.php"; include "../functions.php"; include "../base.html"; include "../header.php"; #include_once "includer.php"; $newconn = new ConnectDB($sn,$un,$pss,$db); $message = ""; if(isset($_POST['form'])){ // print_r($_POST); $userid = addsla...
true
c2beba74dd0530afc6492dcd3b1edb7226001cc3
PHP
alexispti/QQ
/src/Misc/Buffer.php
UTF-8
553
3.25
3
[]
no_license
<?php namespace WorldFactory\QQ\Misc; class Buffer { /** @var string The output of the command */ private $content = ''; public function reset() { $this->content = ''; } /** * @return string */ public function get() : string { return $this->content; } ...
true
e9d8c11cf0eaa4abd51b6bf172d397ef66a68be2
PHP
netwolf103/ecommerce-sluuf
/src/Netwolf103/Ecommerce/Sluuf/Product/Rings.php
UTF-8
1,893
2.90625
3
[]
no_license
<?php namespace Netwolf103\Ecommerce\Sluuf\Product; use Netwolf103\Ecommerce\Sluuf\Product; /** * Rings class. * * @author Zhang Zhao <netwolf103@gmail.com> */ class Rings extends Product { /** * Return sizes * * @param float $min * @param float $max * @param float $step * ...
true
6387f1bf1010e376d0a2af17dd6b36c3def506b5
PHP
carlosasjr/Treinamentos-PHP
/PHPZERO/PHP_SUPER/CRUD/Contato/Contato.class.php
UTF-8
2,945
3.234375
3
[]
no_license
<?php /** * .class [ TIPO ] * * @copyright (c) 2018, Carlos Junior */ namespace CRUD; use PDO; use PDOException; class Contato { private $pdo; /* * ************************************************ */ /* * ************* METODOS PRIVADOS ***************** */ /* * *********************...
true
0b5fe3bc552dfa9beb1373c48bd8bf95f6895f62
PHP
jayaraman11/Distributed_DBMS_Project
/rddb.php
UTF-8
2,582
2.53125
3
[]
no_license
<?php $error=FALSE; session_start(); function test_input($data) { $data = trim($data); $data = stripslashes($data); $data = htmlspecialchars($data); return $data; } if(isset($_POST['submit'])){ $name = test_input($_POST['studentname']); // c...
true