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
60fd116ddba97f4bbd16a58e0c42ed7acf340685
PHP
3appy/test_base
/view/view/D36_view.php
WINDOWS-1252
2,771
2.5625
3
[]
no_license
<?php error_reporting(E_ALL); /** * //36 add a comment to an article * * @author Bernd Schrder */ if (0 > version_compare(PHP_VERSION, '5')) { die('This file was generated for PHP 5'); } /** * The C - view is the basis of all views where the watched entity is of an * of an event: * * @author Bernd Schrd...
true
3127014e7bc071754de82ec258e5f02fe1757fba
PHP
moxuandi/yii2-graphql
/tests/objects/query/StoryListQuery.php
UTF-8
1,282
2.53125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: tsingsun * Date: 2016/11/23 * Time: 下午2:39 */ namespace yiiunit\extensions\graphql\objects\query; use GraphQL\Type\Definition\ResolveInfo; use GraphQL\Type\Definition\Type; use yii\graphql\base\GraphQLQuery; use yii\graphql\GraphQL; use yiiunit\extensions\graphql\data\Da...
true
4396533a27a1aba78b78549552cda6d68a1951c1
PHP
parth391/volt-php-sdk
/src/Entities/AccessToken.php
UTF-8
833
3.21875
3
[ "MIT" ]
permissive
<?php namespace LJJackson\Volt\Entities; class AccessToken { private string $accessToken; private int $expiresIn; private string $tokenType; private string $refreshToken; public function __construct(array $response) { $this->accessToken = $response['access_token']; $this->expi...
true
4295a56c9572dd345ae62ed92542a0f0b3cf6b8b
PHP
luigif/WsdlToPhp
/samples/ebay-trading/Ve/Type/EbayTradingTypeVeROReportPacketStatusCodeType.php
UTF-8
1,743
2.640625
3
[]
no_license
<?php /** * Class file for EbayTradingTypeVeROReportPacketStatusCodeType * @date 04/07/2012 */ /** * Class EbayTradingTypeVeROReportPacketStatusCodeType * @date 04/07/2012 */ class EbayTradingTypeVeROReportPacketStatusCodeType extends EbayTradingWsdlClass { /** * Constant for value 'Received' * Meta informat...
true
98fd78eaeb60ed4deea439a4430f471ec52a66db
PHP
thomasresende/Prova-D3-Ramon
/questao 7/questao7.php
UTF-8
2,647
3.140625
3
[]
no_license
<?php class SuperHeroi { private $id; private $nome; private $poderEspecial; private $energia; private $forca; private $origem; public function getId() { return $this->id; } public function getNome() { return $this->nome; } public function getPoder...
true
c9bcd79e831178530eeb184daddfc44b17ed336f
PHP
PacktPublishing/Laravel-5x-Cookbook
/app/Http/Controllers/ProfileShowController.php
UTF-8
843
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Http\Requests\ProfileShowRequest; use App\Repositories\ProfileShowPage; use Illuminate\Database\Eloquent\ModelNotFoundException; class ProfileShowController extends Controller { /** * // 1. Setup Gate * // 2. Setup Repo */ public function getProfi...
true
8020f550dda282b11837500981a26604ae62cf0a
PHP
gliese1337/AyamelResourceApiServer
/src/Ayamel/ResourceApiBundle/ApiTester.php
UTF-8
4,238
3
3
[]
no_license
<?php namespace Ayamel\ResourceApiBundle; /** * Simple class to wrap curl for testing resource api routes. If JSON is returned by the api, the structure will be automatically decoded, returning a standard PHP object. * * Example Usage: * //get a resource * $api = new ApiTester('http://localhost/api/v1/rest');...
true
e88384369413814f5c0a44d432d2bf18e6e59390
PHP
BenmrChen/PHP_Web_Textbook
/chapter4/checks-input_copy.php
UTF-8
720
2.625
3
[]
no_license
<?php require '../header.php'; ?> <p>請選擇您想吃的雞排種類:</p> <form action="checks-output_copy.php" method="post"> <?php $genre=[ '無調味', '椒鹽', "香辣", '孜然' ]; foreach ($genre as $item) { echo '<input type="checkbox" name="genre[]" value="', $item, '">'; echo $item; echo "<p>"; }; // fore...
true
5760b080e08ede03c40b9365fb6e7f0afffee371
PHP
Delosreyes1221/ITI-taw-02-May-19
/PRACTICAS/Practica6/views/modules/reservacion.php
UTF-8
771
2.515625
3
[]
no_license
<?php ?> <!-- VISTA DE Habitaciones --> <h1>Reservaciones</h1> <!-- TABLA DE PRODUCTOS --> <table class="table table-dark" border="1"> <thead> <!-- COLUMNAS DE PRODUCTOS --> <tr> <th>Numero de reservacion </th> <th>Tipo de habitacion</th> <th>Noches de hospedaje</th> <th></th> <th></th> ...
true
3ef9eee5bee3f6a45bd9e9f4e7bf805661c4b873
PHP
verylaolu/CatFramework
/core/PACKAGE/VERIFY/class.verify.php
UTF-8
16,820
2.984375
3
[]
no_license
<?php /** * 验证码类 * */ class verify { private $_width = 100; private $_height = 25; private $_code_num = 4; private $_code_key = ''; private $_font_size = 20; public $SESSION; public $img_type = 'jpg'; public function __construct($SESSION,$code_key = 'verity', $width = 1...
true
55f72d303ce45117fa2aa7833155dd14e719da4d
PHP
BedrockPlugins/BedrockChat
/src/BedrockPlugins/BedrockChat/tasks/BedrockChatTask.php
UTF-8
665
2.734375
3
[]
no_license
<?php namespace BedrockPlugins\BedrockChat\tasks; use BedrockPlugins\BedrockChat\BedrockChat; use pocketmine\scheduler\Task; class BedrockChatTask extends Task { public function onRun(int $currentTick) { foreach (BedrockChat::getInstance()->getServer()->getOnlinePlayers() as $player) { ...
true
593e1e8dfa32e05ff495644c5576b1acf14d8984
PHP
tdevos/scrum4free
/module/Scrum/src/Scrum/Controller/ProjectController.php
UTF-8
2,740
2.515625
3
[]
no_license
<?php namespace Scrum\Controller; use Zend\Mvc\Controller\AbstractActionController; use Scrum\Form\Project AS ProjectForm; use Zend\View\Model\ViewModel AS ViewModel; class ProjectController extends AbstractActionController { public function addAction(){ $projectForm = new ProjectForm(); ...
true
f310bfec3bb753b8be5289a1910e3a50ea9807a9
PHP
Harselan/Natkarlek
/routes/route.php
UTF-8
3,553
2.84375
3
[]
no_license
<?php /* För att fixa routessystemet behöver du skriva in följande kod i config filen för apache om du inte redan har gjort det. <Directory /> Options Indexes FollowSymLinks AllowOverride All </Directory> Sedan måste du även ha en fil i mappen på projektet som kallas .htaccess. I denna fil kan du skriva in <I...
true
e76ca063192f63cdb2f7bf6ad4d17efb901c69e5
PHP
sergiovin/guestbook
/src/Application/ValueObject/Criteria.php
UTF-8
3,548
2.703125
3
[ "MIT" ]
permissive
<?php namespace Application\ValueObject; use Application\Adapter\ArrayCollection; use Application\Contract\Criteria as CriteriaInterface; use Application\Exception\BadRequestException; use Symfony\Component\Validator\Constraints as Assert; class Criteria implements CriteriaInterface { private $comparison; /...
true
56ac3f971d24d3812c7000c4efdb108602e71994
PHP
tmy2017/WE-CRM
/modelling/php/WECRMService.php
UTF-8
2,153
2.765625
3
[ "Apache-2.0" ]
permissive
<?php require_once(realpath(dirname(__FILE__)) . '/Agent.php'); require_once(realpath(dirname(__FILE__)) . '/Customer.php'); /** * @access public * @author andreas.martin */ interface WECRMService { /** * @AttributeType int */ const AGENT_TOKEN = 1; /** * @AttributeType int */ const RESET_TOKEN = 2; /...
true
54b98f4f690ebcc658414eaa0847e760ef89f22d
PHP
ciaoyunchen/login
/reg_api.php
UTF-8
1,245
2.984375
3
[]
no_license
<?php /*************************************************** * 會員註冊行為: * 1.建立連線資料庫的參數 * 2.判斷是否有送來表單資料 * 3.建立所需的SQL語法 * 4.將表單資料以變數形式填入SQL語法中 * 5.執行資料庫連線並送出SQL語法 * 6.判斷SQL語法是否執行成功,執行下一步 ***************************************************/ $data['acc']=$_POST['acc']; $data['pw']=$_POST['pw']; $data['name']=$_POST['...
true
ed2aa9dfffdee8c7eb9751e882f2216e187b816e
PHP
mauserrifle/simresults
/lib/Simresults/CachedParticipant.php
UTF-8
3,290
2.75
3
[ "ISC" ]
permissive
<?php namespace Simresults; /** * The cached participant class. Overrides methods to implement cache. * * This is a more effective alternative for the decorator pattern where * the decorated class would not benefit from cache when calling itself. * * @author Maurice van der Star <mauserrifle@gmail.com> * @c...
true
95e5803fa1db81b809cc91ca2bf6e3e3a06aebfb
PHP
PHPFramewrok/Larablog
/app/Http/Controllers/PostController.php
UTF-8
1,495
2.625
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Post; class PostController extends Controller { /** * Display a listing of the resource. * * @return Response */ public function index() { $posts = Post::whereStatus('published')->orderBy('created_at', 'desc')->get(); return view('post.index') ->with('p...
true
9dcd28246fb161a5d19014ff19daacc94a0263e8
PHP
npmcdn-to-unpkg-bot/Cpro
/modele/cpro/Personne.class.php
ISO-8859-1
3,602
3.3125
3
[]
no_license
<?php class Personne { //En POO, il y a une phrase trs importante qu'il faut que vous ayez constamment en tte : // Une classe, un rle. Maintenant, rpondez clairement cette question : Quel est le rle d'une classe comme Personn ? //Attribut(s) priv(s) //private $_clef; //int auto_increment p...
true
3aae48381d970a9362d6d66467093dde106455e4
PHP
clearvox/gigaset-provision-php
/src/Clearvox/Gigaset/Provision/ColorScheme.php
UTF-8
797
2.59375
3
[]
no_license
<?php namespace Clearvox\Gigaset\Provision; /** * Class ColorScheme * @package Clearvox\Gigaset\Provision */ class ColorScheme { /** * @var int */ private $tree; /** * @var int */ private $basic; /** * @return int */ public function getTree() { ret...
true
9e2494f703fdfb99dac69941b742070929359e55
PHP
Aptimyze/hjgit
/gateway/PayPal/CoreComponentTypes/BasicAmountType.php
UTF-8
902
2.71875
3
[]
no_license
<?php namespace PayPal\CoreComponentTypes; use PayPal\Core\PPXmlMessage; /** * @hasAttribute * On requests, you must set the currencyID attribute to one of * the three-character currency codes for any of the supported * PayPal currencies. Limitations: Must not exceed $10,000 USD * in any currency. No currency ...
true
d11fe61d0d9cbc57f493f7d2076487eb09606e77
PHP
athawe/2017-school-projects
/LAMP_Project1/page1.php
UTF-8
6,312
2.953125
3
[]
no_license
<?php /** * Project 1 File Doc Comment * * @category Project_1 * @package N/A * @author Aaron Thawe <aaron.thawe@gmail.com> * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License * @version N/A * @link aaron.thawe@gmail.com * */ session_start(); //Send user to other pages if they s...
true
86410412b0955942e17ea502b9ad43ac50e5a755
PHP
gazrogers/tasgell
/public/index.php
UTF-8
1,146
2.53125
3
[]
no_license
<?php use Phalcon\Di\FactoryDefault; use Phalcon\Mvc\Micro; try { /** * The FactoryDefault Dependency Injector automatically registers the services that * provide a full stack framework. These default services can be overidden with custom ones. */ $di = new FactoryDefault(); /** * Set...
true
7a78bdab70c455385c338368b3a67a29c7b80d23
PHP
JoelEF/invoice
/app/Http/Controllers/customerController.php
UTF-8
1,453
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Customer; use Illuminate\Http\Request; class CustomerController extends Controller { /** * Create a new controller instance. * * @return void */ public function __construct() { //$this->middleware('auth'); } /** * Sho...
true
866c740a31b051ad3e3081f28b1a56cff5e03496
PHP
tedslittlerobot/enum
/src/Traits/ReflectsFromConstants.php
UTF-8
317
2.546875
3
[ "MIT" ]
permissive
<?php namespace Tlr\Phpnum\Traits; use ReflectionClass; trait ReflectsFromConstants { /** * Get the constants * * @return array */ public static function getConstants() { $reflection = new ReflectionClass(static::class); return $reflection->getConstants(); } }
true
ec27c4352ed0ae413953f2762e0715e2d0556f2e
PHP
koshimizu/hin
/webapps/lib/form/doctrine/base/BaseModelForm.class.php
UTF-8
2,488
2.59375
3
[]
no_license
<?php /** * Model form base class. * * @package form * @subpackage model * @version SVN: $Id: sfDoctrineFormGeneratedTemplate.php 8508 2008-04-17 17:39:15Z fabien $ */ class BaseModelForm extends BaseFormDoctrine { public function setup() { $this->setWidgets(array( 'id' ...
true
e164311dd4b591bad6e602668d93cfc758d80727
PHP
packethost/packet-php
/src/PacketHost/Client/Api/Email.php
UTF-8
999
2.578125
3
[ "Apache-2.0" ]
permissive
<?php namespace PacketHost\Client\Api; class Email extends \PacketHost\Client\Api\BaseApi implements \PacketHost\Client\Api\Interfaces\EmailInterface { public function __construct(\PacketHost\Client\Adapter\AdapterInterface $adapter) { parent::__construct($adapter, 'emails/:id', \PacketHost\Client\Dom...
true
d94d4a047c825c25c786137d28b09651f37f1479
PHP
adadevoh/roomChatDemo
/system/core/class.view.inc.php
UTF-8
1,247
3.21875
3
[]
no_license
<?php /*------------------------------------------------------------- ---Parses template files with loaded data to output html markup ----------------------------------------------------------------*/ //include_once "class.controller.inc.php"; class View{ protected $view, $vars = array(); //Initialize the view pu...
true
e56179e01477b32a8cde95baa83e068a9468a76f
PHP
ganeshdhole212/eklakshyahtml
/greatest.php
UTF-8
1,029
3.578125
4
[]
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 $number1=$_GET["number1"]; $number2=$_GET["number2"]; $number3=$_GET["number3"]; if ($number1=='' && ...
true
9ca66de0965d59eee821a726c56da6963e033781
PHP
LukaszBielak/Tutorials
/PHP/turi/core/biblioteki/metatags.php
UTF-8
751
2.703125
3
[]
no_license
<?php //parser metatagów class metatags { private $_config; private $_router; private $_db; private $__view; public function __construct($name = "") { $this->_config = singleton::getInstance("config");//rejestrowanie config, router oraz baze danych $this->_router = singleton::getInstance("ro...
true
30fd0c94efc07b7cb5f34e1de466d3c6f6a50d88
PHP
himanshu0729/Attendance-Management-System
/viewmore.php
UTF-8
1,896
2.625
3
[]
no_license
<?php require 'dbcon.php'; ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> <style> table { font-family: arial, sans-...
true
99615a5689c6cb2fc3bf1d4b6d907370affaa9e2
PHP
JakeBurchDev/quickcheck
/app/Http/Controllers/CollectionController.php
UTF-8
10,312
2.53125
3
[ "ECL-2.0" ]
permissive
<?php use Illuminate\Http\Request; use App\Models\Collection; use App\Models\User; use App\Models\AssessmentGroup; use App\Models\Assessment; use App\Models\Question; class CollectionController extends \BaseController { /************************************************************************/ /* VIEW ENDPOIN...
true
da86d2e3635b069acc18771dba4b2bdcff4ee827
PHP
ayub567/jquery.formbuilder
/src/example-save.php
UTF-8
711
2.5625
3
[ "MIT" ]
permissive
<?php require('Formbuilder/Formbuilder.php'); // IF you have a db setup, remove the following line. it's for demo only print_r(json_decode(file_get_contents('php://input'), true)); exit; // Grab the incoming form JSON $form = Formbuilder::readFromStream(); /** * Save the JSON to a database, identified by $json['...
true
398d3ffe9a420393d9573baa43c85cba79773a92
PHP
JackieDo/Laravel-Dotenv-Editor
/src/Console/Traits/CreateCommandInstanceTrait.php
UTF-8
1,417
3.0625
3
[ "MIT" ]
permissive
<?php namespace Jackiedo\DotenvEditor\Console\Traits; use Jackiedo\DotenvEditor\DotenvEditor; trait CreateCommandInstanceTrait { /** * The .env file editor instance. * * @var DotenvEditor */ protected $editor; /** * Create a new command instance. * * @param DotenvEdito...
true
e75695f31473107e727bbf22220682e213d6f07b
PHP
TonyAdamo/CS494
/Login Final/insertData.php
UTF-8
1,415
2.71875
3
[]
no_license
<?php session_start(); if(!session_is_registered(myusername)){ header("Location:http://web.engr.oregonstate.edu/~clarkant/Final/main_login.php"); } ?> <?php //ini_set('display_errors', 1); $dbhost = 'oniddb.cws.oregonstate.edu'; $dbname = 'clarkant-db'; $dbuser = 'clarkant-db'; $dbpass = 'PlLhDDtv8g7KlkHW'; $c...
true
9652995fbd4ba64be5a49343a929e95feb8b5891
PHP
igit-cn/duobaohui
/duobaohui_mgmt/app/models/admin/ClientModel.php
UTF-8
1,756
2.546875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: guoshijie * Date: 15/10/29 * Time: 下午3:43 */ namespace Laravel\Model; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Session; class ClientModel extends Model { public function __construct(){ $this->init(); } private function init(...
true
2b21aa0f15533fa713726e8ab9e5ee981385a119
PHP
2166120/css1
/Jan-Paula-San-Juan--Group-1--Draw-Stars.php
UTF-8
1,147
4.25
4
[]
no_license
<?php /* Part 1 Create a function called draw_stars() that takes an array of numbers and echo out an asterisk, or '*'. For example: */ $x = array(4, 6, 1, 3, 5, 7, 25); function draw_stars($array){ foreach($array as $value){ if(gettype($value) == "string"){ for($i = 0; $i < strlen($value); ...
true
3e043e8accb7d5e94248dff62c726710aa726347
PHP
sidibos/investment-manager
/tests/InvestorWalletTest.php
UTF-8
1,024
2.734375
3
[]
no_license
<?php namespace Tests; use LendInvest\Money; use LendInvest\InvestorWallet; use PHPUnit\Framework\TestCase; class InvestorWalletTest extends TestCase { public function testCanCreateInvestorWallet() { $investorWallet = new InvestorWallet(new Money(2000)); $this->assertInstanceOf(InvestorWallet:...
true
1e9e26949bd61ae3aa16c07a29a9fea66f27180d
PHP
leuchtdiode/laminas-common
/src/Router/HttpRouteCreator.php
UTF-8
1,740
2.6875
3
[]
no_license
<?php namespace Common\Router; use Laminas\Router\Http\Literal; use Laminas\Router\Http\Method; use Laminas\Router\Http\Segment; class HttpRouteCreator { private ?string $route = null; private ?string $action = null; private bool $mayTerminate = true; private ?array $constraints = null; private ?array $child...
true
153792028307892f911c86719f5316f9244e801f
PHP
Nabmaster/exoObjet
/Modele/Contact.php
UTF-8
3,574
3.21875
3
[]
no_license
<?php namespace Modele; /** * */ class Contact extends \Lib\Entite { private $date; private $nom; private $genre; private $categorie; private $email; private $message; //--------getter/setter---------------------------- /** * Get the value of Date * * @return mixed */ public...
true
a42a2c9f793de8789ebffd4936da1532be909dc3
PHP
nmt667r/2020ec
/www/view/cart_view.php
UTF-8
1,559
2.796875
3
[]
no_license
<!DOCTYPE html> <html lang="ja"> <head> <meta charset="UTF-8"> <title>カート</title> </head> <body> <h1>カート</h1> <?php foreach ($err_msg as $read) { ?> <p><?php print $read; ?></p> <?php } ?> <?php if($carts !== NULL){ ?> ...
true
2f9471a2cc0385df8542cd39ac00dd048eb70ac1
PHP
PAYONE-GmbH/payone-php-api
/src/Response/ResponseContract.php
UTF-8
600
2.671875
3
[]
no_license
<?php namespace ArvPayoneApi\Response; /** * Class XmlApiResponse */ interface ResponseContract { /** * Request success * * @return bool */ public function getSuccess(); /** * Get full error description from response * * @return string */ public function getE...
true
71949b9d062baefc1626b77bb7bc7616282fe2c2
PHP
t-ishida/pokemon-calculator
/lib/ActionBase.php
UTF-8
369
2.859375
3
[ "MIT" ]
permissive
<?php namespace pokemon\lib; abstract class ActionBase { private $request = null; abstract public function run(); /** * @param null $request */ public function setRequest($request) { $this->request = $request; } /** * @return null */ public function getReques...
true
dda8ac4605831a0988f798fd967fc241e8253660
PHP
yuantaowork/log
/common-lib/src/Common/IpUtil.php
UTF-8
1,818
2.8125
3
[]
no_license
<?php namespace Cmexpro\Common\Lib\Common; class IpUtil { /** * 获取真实IP * * @param bool $validate * * @return string */ public static function getCurrentIP($validate = true) { $ipkeys = array( 'REMOTE_ADDR', 'HTTP_X_FORWARDED_FOR', // 阿里云使用 X-Fo...
true
c847340f7cb4ae41f0d466f80b881a26d2535377
PHP
Rafid-Al-Ahsan97/Database-Management
/1722006_login.php
UTF-8
2,039
2.625
3
[]
no_license
<!doctype html> <?php $servername="localhost"; $username="root"; $password=""; $dbname="spms"; $conn = mysqli_connect($servername, $username, $password, $dbname); if(isset($_POST['Login'])){ $user=$_POST['user']; $pass=$_POST['pass']; $usertype=$_POST['usertype']; $query="SELECT * FROM `log...
true
4b1e4bd01474dd6f2431c158e0230470db2103dc
PHP
joetannenbaum/alfred-workflow
/src/ParamBuilder/Action.php
UTF-8
917
2.8125
3
[ "MIT" ]
permissive
<?php namespace Alfred\Workflows\ParamBuilder; use Alfred\Workflows\ItemParam\Action as ItemParamAction; use Exception; /** * @method static \Alfred\Workflows\ItemParam\Action text(string|array $text) * @method static \Alfred\Workflows\ItemParam\Action url(string|array $url) * @method static \Alfred\Workflows\Ite...
true
7f80362dbf41376b0811908977e7df6b22db1380
PHP
Fabstract/HTTP-Application
/src/ExceptionHandlerInterface.php
UTF-8
175
2.5625
3
[]
no_license
<?php namespace Fabstract\Component\Http; interface ExceptionHandlerInterface { /** * @param \Exception $exception */ public function handle($exception); }
true
a781d24dc70c5cbe7aad4ea79f0bf36499b6b477
PHP
Jumilo-dev/GBAF
/index.php
UTF-8
2,023
2.765625
3
[]
no_license
<?php include 'includes/header.php'; include 'includes/navbar.php'; include 'includes/connect_bdd.php'; if (!isset($_SESSION["utilisteur"])){ if (!empty($_POST)){ if (isset($_POST["username"],$_POST["password"]) && !empty($_POST["username"]) && !empty($_POST["password"])) { $username= strip_tags(...
true
29f83a6eb5018bbc3a422310c0152befff211f22
PHP
yowgerald/training
/app/Repository/Eloquent/TeacherRepository.php
UTF-8
2,649
2.75
3
[]
no_license
<?php namespace App\Repository\Eloquent; use App\Models\MClass; use App\Repository\TeacherRepositoryInterface; class TeacherRepository extends BaseRepository implements TeacherRepositoryInterface { /** * UserRepository constructor. * * @param MClass $model */ public function __construct(M...
true
480b4287201fbbc8c2d8d4f30f961f79ac18bf40
PHP
Shilpa25453/codeigniterproject
/assignment4validation/login.php
UTF-8
406
2.515625
3
[]
no_license
<?php $link=mysqli_connect("localhost","root","","reg"); $name=$_GET['name']; $password=$_GET['pass']; $count=0; $sq="select empname,emppassword from employees"; $result=mysqli_query($link,$sq); while($row=mysqli_fetch_assoc($result)) { if($name==$row['empname']) { if($password==$row['emppassword']) { echo "login s...
true
080ec3d33d26744bfddc299224a7d33e9d5400a1
PHP
k-julien/Git_PHP
/Majoriter/majoriter.php
UTF-8
869
3.3125
3
[]
no_license
<!-- PHP --> <?php $titre = "Majeur/Mineur"; $age = 19; $agelimit = 21; function check($age,$agelimit){ if ($age < $agelimit){ return " Vous etes mineur au États-Unis "; } if($age >= $agelimit){ return "Vous etes majeur en France"; } }; function pariter($age){ if($age %2 == 1){ return "text-red"...
true
c922fb9eb7d53b4e78d92b24360d228a83cfb08e
PHP
stewardjornsen/Mind-Lar-Work
/app/Http/Controllers/PersonController.php
UTF-8
6,833
2.515625
3
[ "Unlicense" ]
permissive
<?php namespace App\Http\Controllers; use Image; use App\Person; use Illuminate\Http\Request; use Illuminate\Support\Facades\File; class PersonController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { ...
true
d8154d05ba5da406272b325acdf5721e48a188a7
PHP
caizhigang97/CwsShareCount
/lib/Cws/CwsShareCount.php
UTF-8
9,813
3.046875
3
[ "MIT" ]
permissive
<?php /** * CwsShareCount. * * @author Cr@zy * @copyright 2013-2015, Cr@zy * @license GNU LESSER GENERAL PUBLIC LICENSE * * @link https://github.com/crazy-max/CwsShareCount */ namespace Cws; class CwsShareCount { const SN_DELICIOUS = 'Delicious'; const SN_FACEBOOK = 'Facebook'; const SN_GOOGLEPLUS...
true
67f8e1e0437d9a76f8644ac8c7630c25d694507b
PHP
klmm/PP2.0
/tests/cree_pronos.php
UTF-8
2,521
2.65625
3
[]
no_license
<?php require_once($_SERVER['DOCUMENT_ROOT'] . '/jeux/cyclisme/lib/sql/get_cycliste.php'); $id_jeu = $_POST['id_jeu']; $id_cal = $_POST['id_cal']; $login_base = 'Testtest0'; $NB_PRONOS = 500; $cyclistes = get_cyclistes_jeu($id_jeu, $id_cal); $nb_cyclistes = sizeof($cyclistes); ...
true
33c6be95ec21cc5f2da1790c38a24b4139616b23
PHP
jplnishiguchi/lean1
/module/Database/Database/Model/RolesObject.php
UTF-8
263
2.8125
3
[]
no_license
<?php namespace Database\Model; class RolesObject { /** * TODO: Add columns, getters and setters * */ protected $_tableName = "playdough_roles"; public function getTablename() { return $this->_tableName; } }
true
cda4e452665508f0e1c67d59d4f2a952452cc812
PHP
vamulapalli/spatial-DB
/PolygonOverlay/functions.php
UTF-8
733
3.40625
3
[]
no_license
<?php /** * This function converts a WKT string into a PHP array of polygonal coordinate pairs. * @param string $wkt_str is the Well-Known-Text string representing one or more polygons * @return array Returns an array of polygons with sub arrays of coordinate pairs */ function convert_wkt_to_poly_arr($wkt_str) {...
true
42d4525b77d1ae4167db7cfdcdbcf382fd7002df
PHP
PiotrSitkowski/edison-xml-editor
/src/Utils/FTPService/FTPService.php
UTF-8
5,028
3.265625
3
[]
no_license
<?php namespace FTPService; use Helper\Helper; /** * FTP Service * * Author: Piotr Sitkowski */ class FTPService extends FTPClient { private $FTPHandle = null; protected $connParam = []; public function __construct(array $connectionParams) { $this->connParam = $connectionParams; ...
true
c28fe6a9e304e8fddc4cddb2753af5ce344290f0
PHP
rifatgurbuz35/DeuRestraunt
/Controllers/UserController.php
UTF-8
2,119
2.5625
3
[]
no_license
<?php class UserController extends Controller { public function __construct() { parent::__construct(); } public function yeniKullanici(){ $response=[]; if(isset($_POST['dataKullanici'])){ $data=$_POST['dataKullanici']; include "Models/User.php"; ...
true
e2163402a09fcc6ba8baf50d55872a26b1f12e55
PHP
kevintayloruk/krone
/frame.php
UTF-8
522
2.671875
3
[]
no_license
<? require_once("./functions.inc.php"); require_once("./database.inc.php"); //get_sites(); //get_frames(3); echo $_POST["siteid"]; ?> <form method="post" action="frame.php"> <label for="site">Frame: </label> <select id="site" name="site"> <? $frames = get_frames($_POST["siteid"]); var_dump($frames); ...
true
72dc6f4765f6c50cec4d4a1463fcff8370e422dc
PHP
rabiunizam/frogasia
/test/functions/decrypt.php
UTF-8
581
2.640625
3
[]
no_license
<?php function crypter($string,$key,$a) { if(empty($a)) $string=base64_decode($string); $salida=''; for($i=0;$i<strlen($string);$i++) { $char=substr($string,$i,1); $keychar=substr($key,($i%strlen($key))-1,1); if($a)$char=chr(ord($char)+ord($keychar)); else $char=chr(ord($char)-ord...
true
2fd87a3e5766e0d1d619350f655e44cb3c98d551
PHP
limostr/uvtsmartuniv
/module/User/src/Controller/AuthController.php
UTF-8
2,795
2.625
3
[]
no_license
<?php declare(strict_types=1); namespace User\Controller; use Laminas\Authentication\AuthenticationService; use Laminas\Db\Adapter\Adapter; use Laminas\Mvc\Controller\AbstractActionController; use Laminas\View\Model\ViewModel; use RuntimeException; use User\Form\Auth\CreateForm; use User\Model\Table\UsersTable; cla...
true
5e3dc9a90bfee1cbf63f579b699922b763c934ab
PHP
skydiver/october-plugin-strings
/updates/create_strings_table.php
UTF-8
912
2.59375
3
[ "MIT" ]
permissive
<?php namespace Martin\Strings\Updates; use Schema; use October\Rain\Database\Updates\Migration; use Martin\Strings\Models\String; class CreateStringsTable extends Migration { public function up() { Schema::create(String::TEMPLATE_VARS_TABLE_NAME, function($table) { ...
true
e45c2a0abeb22e0e26957fb227b13383bc74fe92
PHP
Skanky0815/rbmvc
/RBMVC/Core/DB/DB.php
UTF-8
3,368
2.96875
3
[]
no_license
<?php namespace RBMVC\Core\DB; use PDO; /** * Class DB * @package RBMVC\Core\DB */ class DB { /** * @var DB */ private static $instance = null; /** * @var \PDO */ private $db; /** * @var Query */ private $query; /** * @var string */ privat...
true
968818f2672ee46c12bf9dd9bc16d95e9d4018e5
PHP
wesr29/rule29
/blocks/tabs/tabs.php
UTF-8
1,140
2.671875
3
[]
no_license
<?php /** * @param $title - string text * @param $tabs[][title] - string text * @param $tabs[][content] - string HTML */ $tabs = array_map(function($tab){ $tab['slug'] = sanitize_title_with_dashes($tab['title']); return $tab; }, $tabs); ?> <div class="tabs"> <div role="tablist" aria-lab...
true
f109a7f5b643d167bfba8d3e7257ae37cdac0df7
PHP
cygnusb2b/radix
/server/src/AppBundle/Definitions/QuestionDefinition.php
UTF-8
2,982
2.890625
3
[ "MIT" ]
permissive
<?php namespace AppBundle\Definitions; use AppBundle\Question\TypeManager; class QuestionDefinition { /** * @var bool */ private $allowHtml = false; /** * @var QuestionChoiceDefinition[] */ private $choiceDefinitions = []; /** * @var string|null */ private $lab...
true
a6bdfe91dff5445f650840a1c3285ff6d09fb7cc
PHP
sdmitry82/test_with_db
/layoutClass.php
UTF-8
379
2.609375
3
[]
no_license
<?php class layoutClass { public function getHeader($title){ return '<!DOCTYPE html><html><head><meta charset="UTF-8"><title>' . $title . '</title><link rel="stylesheet" href="styles.css"></head><body><div class="container">'; } public function getFooter(){ return '<div><a href="/" targ...
true
f35e66586bb8ee88a06bb416328daec1d5981b90
PHP
Famzy/citikab-android-web
/app/Http/Controllers/Admin/CarTypeController.php
UTF-8
9,818
2.546875
3
[ "MIT" ]
permissive
<?php /** * car Type Controller * * @package Gofer * @subpackage Controller * @category car Type * @author Trioangle Product Team * @version 1.7 * @link http://trioangle.com */ namespace App\Http\Controllers\Admin; use Illuminate\Http\Request; use App\Http\Requests; use App\Http\Cont...
true
2d78fa506402b33ad74657747115e04dd8eb35e1
PHP
yifangyun/fangcloud-php-sdk
/src/YfyClientOptions.php
UTF-8
1,207
2.546875
3
[ "MIT" ]
permissive
<?php /** * 构造YfyClient的参数 */ namespace Fangcloud; /** * Class YfyClientOptions * @package Fangcloud */ final class YfyClientOptions { /** * access_token: (string) 构造时可以直接设置一个access token。也可以在 * 构造完成后通过setAccessToken方法设置 */ const ACCESS_TOKEN = 'access_token'; /** * refresh_token...
true
548272b5362c9e4df8666ab0223972111289d3b9
PHP
sonvq/phpunittraining
/demo/visualphpunitui/app/test/Test/AnnotTest.php
UTF-8
917
2.828125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace Test; class AnnotTest extends \PHPUnit_Framework_TestCase { /** * @dataProvider providerCalcArgs * @covers Baseball::cal_avg * @return float * @param int $atbats * @param int $hits */ public function testCalc($atbats, $hits) { $baseball = new Baseb...
true
5cb5fef1f9f00b39bb9d4881921f9636ae168324
PHP
andregds85/SistemaPHP-Eletivas
/content/content/home/eletivas/pg/pesquisa.php
ISO-8859-1
1,160
2.59375
3
[]
no_license
<HTML> <BODY> <div align="center"> <?php $db = mysql_connect("localhost", "root", ""); mysql_select_db("sulpel", $db); $dados = mysql_query("select * from sulpel_prod where titulo like '%$palavra%' "); if (mysql_num_rows($dados)==0) echo "Opa... No h Produtos com esta pala...
true
ddc5e1888a8d8430635f88e04d93bdcf598606ae
PHP
gregoiredervaux/projetWebIcam
/admin_projet_web/class/Donnee.php
UTF-8
2,780
2.921875
3
[]
no_license
<?php class Donnee { protected $_value; protected $_type; protected $_verif; const choix_type=array('tel','email','nom','prenom','int','statut','promo','check','nb','id','psw','bool'); public function get_verif() { return $this->_verif; } public function set_verif($val) { $this->_verif=$val; } publ...
true
80f3bab3a1de73ef2567cd4683717f98e5b85132
PHP
bobbybouwmann/messenger
/tests/MessengerTest.php
UTF-8
1,051
2.640625
3
[ "MIT" ]
permissive
<?php use Bobbybouwmann\Messenger\Message; use Bobbybouwmann\Messenger\Messenger; class MessengerTest extends TestCase { /** * @var Messenger */ protected $messenger; /** * @var Message */ protected $message; /** * @var int */ protected $recipient; function...
true
306d316d4e1d00d3bbc80433853f29f0b945be90
PHP
jmiridis/atcsf1
/lib/PaypalEventManager.class.php
UTF-8
1,622
2.53125
3
[]
no_license
<?php class PaypalEventManager { static public function handleEvent(sfEvent $event) { switch($event->getName()) { case 'paypal.ipn_success': $transaction = $event->getSubject(); $message = sprintf('IPN Success | Reservation: %s', $transaction->parent_id); self::notifyPaypal...
true
53f59fff8da7b0c5928dab27286fbb360b69dbc5
PHP
baglan-s/loto-project
/app/Models/City.php
UTF-8
605
2.671875
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class City extends Model { protected $fillable = ['name', 'region_id']; public function region() { return $this->belongsTo('App\Models\Region'); } public function participants() { return $this->hasMany('App\...
true
d48a4381aa59f9f0a4eeef4c4392c3335e844510
PHP
pgrimaud/cheetahmail-sdk
/src/Data/Ssis/MappingFile.php
UTF-8
2,798
2.734375
3
[ "MIT" ]
permissive
<?php namespace Cheetahmail\Data\Ssis; class MappingFile { /** * @var int $Idmapp */ protected $Idmapp = null; /** * @var boolean $Header */ protected $Header = null; /** * @var string $ColumnDelimiter */ protected $ColumnDelimiter = null; /** * @var s...
true
437f9694c22001fd022b58182281affdf6fd58c5
PHP
78778443/permeate
/model/user/logic/userLogic.php
UTF-8
542
2.65625
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: Administrator * Date: 2017/6/16 * Time: 21:42 */ class userLogic { public static function getUserOne($where) { $result = self::getUserList($where); return !empty($result[0]) ? $result[0] : false; } public static function getUserList($wher...
true
d34528533b13e7eeb274f8c77e2a9fcf37fc7c81
PHP
alkingold/lokisalle
/admin/gestion_avis.php
UTF-8
3,782
2.65625
3
[]
no_license
<?php require_once('../inc/init.inc.php'); if(!membreConnecteAdmin()) { header('location:' . RACINE_SITE); exit(); } // SUPPRIMER UN AVIS if(isset($_GET['action']) && $_GET['action'] == 'supprimer' && isset($_GET['id_avis']) && !empty($_GET['id_avis'])) { $id_avis = htmlentities($_GET['id_avis']); $requete = $bdd-...
true
8ef91758ee5ad5ded803ca272690415fa19fec13
PHP
wilcor03/contabilizalo_back
/app/Models/Blog/Fileable.php
UTF-8
1,017
2.59375
3
[]
no_license
<?php namespace App\Models\Blog; use Illuminate\Database\Eloquent\Model; //MODELS use App\User; use App\Models\Blog\File; class Fileable extends Model { protected $table = 'fileables'; public $timestamps = false; /* * @ $object => files availables for the that object * */ public static function...
true
f38dda200afb528074fe99ea445a1c86cd5b0fba
PHP
maziesmith/attendance-management-system-13
/Attendance_management_system/login.php
UTF-8
1,992
2.734375
3
[]
no_license
<?php session_start(); // start a session $lnemail=$_POST['email']; // get value from login form $lnpassword=$_POST['password']; $lntype=$_POST['type']; $mysqli = new mysqli("localhost","root","","project2"); if($lntype==student) { $data =...
true
8057c3acc22bb7a396cea7aa1d5a067e0c77a1f0
PHP
Keirodev/search-engine-php-js
/lib/SearcherFile.php
UTF-8
2,441
3.09375
3
[ "MIT" ]
permissive
<?php namespace cebe\jssearch; class SearcherFile extends Searcher { private $index; private $files; /** * Searcher constructor. * @param object $index * @param object $files * @param int $resultLimit */ public function __construct($index, $files, $resultLimit = 20) { ...
true
1596f979b34f0a7fc2b10e96f913a87a867337a0
PHP
13808796047/checklike
/app/Handlers/OpenidHandler.php
UTF-8
1,446
2.703125
3
[]
no_license
<?php namespace App\Handlers; use GuzzleHttp\Client; class OpenidHandler { protected $http; public function __construct() { // 实例化 HTTP 客户端 $this->http = new Client(); } public function getOpenid($code) { $config = config('wechat.official_account'); $query ...
true
d62aaa670fb2ac39ce644d0b9c9c7091e29002b2
PHP
ivanmal/estudo-padroes-projeto
/padroesphp/comportamentais/strategy/Imposto.php
UTF-8
368
3.109375
3
[]
no_license
<?php namespace padroesphp\comportamentais\strategy; class Imposto { /** * * @var ImpostoInterface */ private $strategy; /** * * @param ImpostoInterface $strategy */ public function __construct(ImpostoInterface $strategy) { $this->strategy = $strategy; } public function calcular($renda) { ...
true
47e154150e1d8f5939f128676c16721f383f295d
PHP
khaledbelal/moqdmat-ashrita
/app/Moqdma.php
UTF-8
620
2.59375
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Notifications\Notifiable; use Illuminate\Foundation\Auth\User as Authenticatable; class Moqdma extends Authenticatable { use Notifiable; /** * The attributes that are mass assignable. * * @var array */ protected $table = "moqdmat"; protected $f...
true
6622596492b5de4d62bc307d8acc9db08f70da6a
PHP
XingCloud/logphpcode
/elex_analytics/v4/lib/SaveLogManager.class.php
UTF-8
2,109
2.609375
3
[]
no_license
<?php class SaveLogManager{ function __construct(){ require_once GLOBAL_LIB_ROOT. '/common.php'; require_once LIB_ROOT_V4. '/LogContainer.class.php'; } static private $instance = null; static public function singleton(){ if(!self::$instance){ self::$instance = new self(); } return self::$instance; }...
true
cc6f41366f738d656e26fe5875039952eeff32c3
PHP
abhi07898/ONLINE-TEST-TASK
/front-end/exam-option.php
UTF-8
1,276
2.59375
3
[]
no_license
<?php /** * Template File Doc Comment * * PHP version 7 * * @category Template_Class * @package Template_Class * @author Author <author@domain.com> * @license https://opensource.org/license/MIT MIT License * @link https://localhost/ */ session_start(); if ($_SESSION['admin'] == '') { header('l...
true
459b000e17f2a11de2d9c4b8ba925cba00e3c1ca
PHP
qinzhi/TP5
/app/common/controller/Number.php
UTF-8
283
2.59375
3
[ "Apache-2.0" ]
permissive
<?php namespace app\common\controller; class Number { //创建订单类型 const CREATE_ORDER_TYPE = 1; /** * 生成订单号 */ public static function createOrderSn(){ return self::CREATE_ORDER_TYPE . date('ymdHis') . rand(10000,99999); } }
true
7e36a760cc9c355303483e0c8c58acfaebbc430a
PHP
Milthir/Sikerkod
/classes/last_visit.php
UTF-8
1,878
2.859375
3
[]
no_license
<? /* konstruktor 2. paramétere a mezők számát adja meg install fgv paraméterei a tipusokat adják meg SQL tipusként (TEXT, INTEGER...) */ class last_visit { var $prefix; var $mezo_num; function last_visit($prefix,$mezo_num) { $this->prefix = $prefix; $this->mezo_num = $mezo_num; } function install() { ...
true
e1fe86a18e2a14573a6c709a21afd08b42a468a9
PHP
Guandonien/GSB
/Includes/Securite.inc.php
UTF-8
800
2.515625
3
[]
no_license
<?php session_start(); function valideInfosCompteUtilisateur($utilisateur, $motDePasse) { // Ne pas oublier de convertir le mot de passe en md5, aussi non cela retourne 0 tous le temps. return existeCompteVisiteur($utilisateur, md5($motDePasse)); } function ouvreSessionUtilisateur($utilisateur) { $result...
true
892413a798c76b7a59745a6a7583e0bd5493b0d2
PHP
judasnow/lotus
/server/application/libraries/qiniuyun_lib.php
UTF-8
9,673
2.515625
3
[]
no_license
<?php /** * Qiniuyun的相关操作 * * @athor: odirus@163.com */ require_once(getcwd() . '/application/third_party/qiniu/io.php'); require_once(getcwd() . '/application/third_party/qiniu/rs.php'); require_once(getcwd() . '/application/third_party/qiniu/fop.php'); class Qiniuyun_lib { private $_bucket = 'maoejie'; ...
true
e9d5a4a0452041ad204adc42b74b1f6da2aa3ff8
PHP
MSinR/crud-php-mysqli-procedural
/public/index.php
UTF-8
1,200
2.625
3
[]
no_license
<?php require_once("../inc/session.php"); ?> <?php require_once("../inc/dbconnect.php"); ?> <?php require_once("../inc/function.php"); ?> <!DOCTYPE html> <html> <head> <title>Sample CRUD</title> <link rel="stylesheet" type="text/css" href="stylesheets/public.css"> </head> <body> <div class="main"> <?php echo quer...
true
8cba6438390fdf7e8319cc4280fe257bda790804
PHP
glennfriend/dokuwiki-api-sync-tool
/core/cli-helper.php
UTF-8
617
3.015625
3
[]
no_license
<?php use App\Utility\Console\CliManager as CliManager; /** * 取得 command line 處理之後獲得的參數 */ function getParam($key, $defaultValue=null) { return CliManager::get($key); } // -------------------------------------------------------------------------------- // output // --------------------------------------------...
true
01d7df4abe25d017e5e3fdc22000dfebbfcee878
PHP
Rahana1998/PHP
/object.php
UTF-8
475
3.703125
4
[]
no_license
<?php class Vehicle{ public $name; public $color; function set_name($name) { $this->name = $name; } function get_name() { return $this->name; } function set_color($color) { $this->color = $color; } function get_color() { return $this->color; } } $Car ...
true
2a094e922a151788286c5ab9de408e3cf343d836
PHP
Maruf-Reaz/BillCollectionForISP
/app/controllers/Packages.php
UTF-8
2,585
2.765625
3
[]
no_license
<?php namespace App\Controllers; use App\Libraries\Validation; use App\Libraries\Controller; use App\Models\Package; class Packages extends Controller { public function __construct() { $this->middleware( [ 'Authentication' ] )->all(); $this->middleware( [ 'Roles' ] )->all()->hasRole( [ 'all' => [ 'Admin' ]...
true
290e6431114104416d80301895a8d9c1be118cba
PHP
aolkin/hrdc
/publicity/wordpress-plugin-integration.php
UTF-8
6,131
2.53125
3
[]
no_license
<?php /* Plugin Name: MyHRDC Show Posts Plugin URI: https://my.hrdctheater.org/ Description: Pull publicity info from MyHRDC to display on the website Version: 1.0.0 Author: Aaron Olkin License: GPLv2 or later */ function makePost($show, $include_season) { $post_id = 0 - $show->show_id; // negative ID, to avoid clas...
true
8a41ccdfc7e49b2d661038417d5a24ec9b2e9769
PHP
LordDeveloper/jeely
/src/Jeely/TL/Methods/UnbanChatMember.php
UTF-8
1,449
2.96875
3
[ "Unlicense" ]
permissive
<?php namespace Jeely\TL\Methods; use Jeely\Telegram; /** * @class UnbanChatMember * @description Use this method to unban a previously banned user in a supergroup or channel. The user will not return to the group or channel automatically, but will be able to join via link, etc. The bot must be an administrator f...
true
31cc122d93e9ce1d61105a20e1dddc5a574ce43a
PHP
thinkshout/discussions
/src/DiscussionPermissions.php
UTF-8
2,133
2.734375
3
[]
no_license
<?php namespace Drupal\discussions; use Drupal\Core\StringTranslation\StringTranslationTrait; use Drupal\discussions\Entity\DiscussionType; /** * Permissions for Discussions. */ class DiscussionPermissions { use StringTranslationTrait; /** * Returns an array of Discussion Type permissions. * * @retu...
true
328899828ba2ae345417bbcff4bb0317be204e59
PHP
nkmwambs/grants
/application/third_party/Api/Widget/Position/Position_output.php
UTF-8
2,047
2.71875
3
[]
no_license
<?php class Position_output{ /** * @var Object $CI - A property that hold CodeIgniter Singleton class instance */ protected $CI = null; /** * @var String $controller - Hold the active/ selected table/controller name */ protected $controller; /** * @var String $curre...
true
335e22f7dd7227bbcc4af37e39a109aeae637423
PHP
llebkered/acme-construction
/plugins/lucid/employment/updates/builder_table_create_lucid_employment_jobs.php
UTF-8
897
2.59375
3
[ "MIT" ]
permissive
<?php namespace Lucid\Employment\Updates; use Schema; use Winter\Storm\Database\Updates\Migration; class BuilderTableCreateLucidEmploymentJobs extends Migration { public function up() { Schema::create('lucid_employment_jobs', function($table) { $table->engine = 'InnoDB'; ...
true
4beac19705d094c60d519a20a6f8d395d559239a
PHP
heropoo/swoole-demo
/bin/http_server.php
UTF-8
712
2.921875
3
[ "MIT" ]
permissive
<?php use Swoole\Http\Server; use Swoole\Http\Request; use Swoole\Http\Response; // 实例化一个http服务器,监听本地的9501端口 $server = new Server("127.0.0.1", 9501); // 如果想要监听全局,ip换成 0.0.0.0 即可 // 处理request事件 $server->on('request', function (Request $request, Response $response) { // 设置响应头 $response->header("Content-Type"...
true
56a4e0a852f457b9dad1c3a5395900ba88a01ee3
PHP
pethin/csci297
/hw10/lookup.php
UTF-8
4,435
2.71875
3
[]
no_license
<?php ini_set('display_errors', 1); include_once('config.inc.php'); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <title>Appointment Lookup</title> <link rel="stylesheet" href="https://maxcdn.bo...
true