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
6b75da6c2e4f91a60dd7c538bbfacbc380600ea7
PHP
kluz116/basic_login
/config.inc.php
UTF-8
1,362
2.75
3
[]
no_license
<?php require'connection.php'; session_start(); class Config extends Connection { public function loginUser() { if(isset($_POST['username']) && isset($_POST['password'])){ $username = $_POST['username']; $password = $_POST['password']; if (!empty($username) && !empty($password)) { try{ $data =$this-...
true
2236b48540fb8b7053c6168bcd3f22d3fbd0610d
PHP
Onasusweb/Blocks
/Model/Behavior/BlockRolePermissionBehavior.php
UTF-8
2,235
2.59375
3
[]
no_license
<?php /** * BlockRolePermission Behavior * * @author Noriko Arai <arai@nii.ac.jp> * @author Shohei Nakajima <nakajimashouhei@gmail.com> * @link http://www.netcommons.org NetCommons Project * @license http://www.netcommons.org/license.txt NetCommons License * @copyright Copyright 2014, NetCommons Project */ App...
true
094c0eaa1bb94695d5ef4bf9ef9f912aa2debc12
PHP
lachezaraspa/PHPProject1DV608
/controller/LoginController.php
UTF-8
1,204
2.640625
3
[]
no_license
<?php /** * @author Lachezar */ class LoginController { private $model; private $view; private $conn; private $dal; function __construct(LoginView $view, LoginModel $model) { $this->view = $view; $this->model = $model; } public function control(UserDAL $dal) { ...
true
8ce237849cff89dbab6f5a7f51e5113c840c2d50
PHP
Sarah358/registration
/app/Http/Controllers/UserController.php
UTF-8
2,098
2.859375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use App\User; use Illuminate\Support\Facades\Validator; use Auth; use Redirect; use Illuminate\Support\Facades\Input; class UserController extends Controller { // show the form function login(){ ...
true
6ace73667e1bf26b33e4e578d9b8c05517bba9df
PHP
rodrigocnascimento/replicant
/src/Helpers/Facebook/Emoji.php
UTF-8
898
2.96875
3
[ "MIT" ]
permissive
<?php namespace Helpers\Facebook; class Emoji { public $emoji = [ 'saylor' => '⚓️', 'fire' => '🔥', 'pirate_skull' => '☠', 'metal_hands' => '🤘', 'rat' => '🐀', 'robot' => '🤖', 'chillin' => '😎', 'unicorn' => '🦄', 'snake' => '🐍', 'dancer' => '👯', 'wolf' => '🐺', '...
true
5930dd1f626825fa1bd85fb74b434eb2688c46ee
PHP
satvikmittal638/PHP
/Learning/variables.php
UTF-8
198
3.234375
3
[]
no_license
<?php $string = "Satvik"; var_dump($string); echo "<br>"; $myarray = array("a", "*", 8, 1.5); var_dump($myarray); echo "<br>"; var_dump($string); $string=null; echo "<br>"; var_dump($string); ?>
true
1f24a9551e6c3189351eda8a14c280b7b191c480
PHP
google-code/ana-cakephp
/app/models/job.php
UTF-8
1,669
2.59375
3
[]
no_license
<?php class Job extends AppModel { var $name = 'Job'; var $hasAndBelongsToMany = array( 'User' => array('className' => 'User', 'joinTable' => 'jobs_users', 'foreignKey' => 'job_id', 'associationForeignKey' => 'user_id', ...
true
8f24e76b2df3bd4c7f57f5452d2a9131b57075a4
PHP
crees/sis-sdk-php
/src/Arbor/Model/StandardizedAssessmentMark.php
UTF-8
4,455
2.671875
3
[]
no_license
<?php namespace Arbor\Model; use Arbor\Resource\ResourceType; use Arbor\Query\Query; class StandardizedAssessmentMark extends ModelBase { const STUDENT = 'student'; const STANDARDIZED_ASSESSMENT_ASPECT = 'standardizedAssessmentAspect'; const MARK_GRADE = 'markGrade'; const MARK_INTEGER = 'markInteg...
true
88165f6fb4c4427d2a655a7ac2cbcd7d9ee468b0
PHP
incredibledevelopers/phpherokutest
/index.php
UTF-8
625
2.625
3
[]
no_license
<?php $host = "host = ec2-50-19-95-77.compute-1.amazonaws.com"; $port = "port = 5432"; $dbname = "dbname = d289v9rsd9ji5e"; $credentials = "user = uuptlthknwssba password=6060ddb6df79f83d0e51e707aa1db046bff370752bc1e3ed1b06d37c1d69cc18"; $db = pg_connect( "$host $port $dbname $credent...
true
1f020236e7de51a7d133f1f1f115894fd7b034a6
PHP
bamboocloudhotel/api-laravel-54
/app/Models/Ingpo.php
UTF-8
740
2.5625
3
[]
no_license
<?php /** * Created by Reliese Model. */ namespace App\Models; use Carbon\Carbon; use Illuminate\Database\Eloquent\Model; /** * Class Ingpo * * @property int $id * @property int $salon_id * @property string $prefac * @property int $numfac * @property Carbon $fecha * @property string $cedula * @property ...
true
0da9db5aeeb8e8f9b6507ac380c0e059743e399f
PHP
johnflash4real/ipea-dev-test
/app/Services/TagService.php
UTF-8
1,429
2.734375
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: JFlash * Date: 3/14/19 * Time: 12:35 AM */ namespace App\Services; use App\Http\Helpers\InfusionsoftHelper; use App\Module; use App\Tag; class TagService { /** * Get proper reminder tag for specific module or when no module * @param Module $module * ...
true
0c6d5ba9e42b308625e50c7ad6e2fef85d76c09c
PHP
FoysalCr7/mySql-crud-php
/php crud/edit.php
UTF-8
1,559
2.734375
3
[]
no_license
<?php require_once "vendor/autoload.php"; use App\classe\Register; $id=$_GET['id']; $result=\App\classes\Register::registerupdate($id); $data = mysqli_fetch_assoc($result); if (isset($_POST['btn'])){ \App\classes\Register::registerupdates($_POST); } ?> <html> <head> <title>Registration Update</title> </...
true
a2be7daff26fb3ea2d32e5e2952207d28114a01f
PHP
luyuting/WeBoth-App-Server
/action/AchieveListAction.php
UTF-8
1,665
2.515625
3
[]
no_license
<?php require('../dao/AchieveDao.php'); header("content-type: text/html; charset = utf-8"); /** * 列表采用基于查询的分页,一次15条 */ date_default_timezone_set('PRC'); $userId = $_REQUEST['userId']; $achieveTime = empty($_REQUEST['achieveTime'])? Date("Y-m-d H:i:s"): $_REQUEST['achieveTime']; $achieveDao = new AchieveDa...
true
df6c68577ef50662d9484b9009969acba67c3541
PHP
filmtools/secondstominutes
/src/SecondsToMinutes.php
UTF-8
240
3
3
[]
no_license
<?php namespace FilmTools\SecondsToMinutes; class SecondsToMinutes { /** * @param int $seconds * @return string|int */ public function __invoke( $seconds ) { return seconds2minutes( $seconds ); } }
true
838813ab091a247c79f275738df52cb3682fa6d9
PHP
x-code/Rest-Api-Phalcon
/app/library/helper/DateHelper.php
UTF-8
985
2.625
3
[]
no_license
<?php namespace Helper; use Phalcon\DI; use Models\Airport; use Adkarta\DateHelper\Timezone as TimezoneHelper; class DateHelper { public static function getDurationInMinutes($start_time = 0, $end_time = 0) { $duration = TimezoneHelper::getDuration("", $start_time, "", $end_time); return $d...
true
a11e93898e6cb8e34c11885a12e8d2968ddf6f74
PHP
MidnightJabber/twitterGame
/php/logger.php
UTF-8
5,005
3.15625
3
[]
no_license
<?php /// This file creates logging function. Logging data is spread through 2 locations. /// A simple log file is appended whenever something is logged. Also an 'alive' HTML /// log webpage is also available at: www.tweety.midnightjabber.com/php/tweetylogs.html /// /// NOTE: If the file-name provided to logging method...
true
4bf019968948681054351b525c601ee21bcf161b
PHP
na-ji/hflan_v3
/src/hflan/UserBundle/Entity/User.php
UTF-8
3,119
2.59375
3
[ "MIT" ]
permissive
<?php namespace hflan\UserBundle\Entity; use Doctrine\ORM\Mapping as ORM; use FOS\UserBundle\Model\User as BaseUser; use hflan\LanBundle\Entity\Team; use Symfony\Component\Validator\Constraints as Assert; use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity; /** * User * * @ORM\Table(name="hf_user") * ...
true
bc42a30252e1e68ed8704a0ce7363cb51f06e567
PHP
rmitcoder/api-php
/functions/mysql.func.php
UTF-8
2,452
3.0625
3
[ "MIT" ]
permissive
<?php require_once "../include.php"; /* This class generate a pdo connection instance; */ class MyPDO{ public $pdo = null; public function __construct($dsn,$username, $password, $charset){ try{ $this->pdo = new PDO($dsn,$username,$password,array(PDO::ATTR_PERSISTENT => true)); }...
true
5ad97646958ac25490858908609b1bfc941d9890
PHP
suyin12/jh-framword
/php/彩票/无限分类.php
UTF-8
1,608
2.9375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: qishou * Date: 15-8-2 * Time: 上午12:00 */ //准备数组,代替从数据库中检索出的数据(共有三个必须字段id,name,pid) header("content-type:text/html;charset=utf-8"); $categories = array( array('id'=>1,'name'=>'电脑','pid'=>0), array('id'=>2,'name'=>'手机','pid'=>0), array('id'=>3,'name'=>'笔记本','pid'=...
true
0c37b8c28ae7b8c9c35ccfea550d40825fe73ec4
PHP
akouvach/egroupsserver
/src/model/temas_relaciones_base.php
UTF-8
2,019
2.6875
3
[ "MIT" ]
permissive
<?php /* ----Creado----2020-06-20 09:49:59.4702097 -0300 -03 m=+0.304022401 */ require_once '../core/crud.php'; class Temas_relaciones_base extends Crud { private $idTema; private $idTemaRel; const TABLE = 'temas_relaciones'; public function __construct(){ parent::__construct(self::TABLE); } public functi...
true
edf5abf5e307b63e0396cd05da1e81696f5093ec
PHP
quansho/laravel-chat
/app/Services/Messenger.php
UTF-8
2,514
2.703125
3
[ "MIT" ]
permissive
<?php namespace App\Services; use App\Models\Message; use App\Models\Conversation; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Collection; class Messenger { /** * @param int $authId * @param int $withId * @return Conversation|Builder|Mo...
true
4d26edcf27ea635a0dc57f99fb0b00d867d9fbce
PHP
anychin/atmlab-website-2008
/library/services/news/NewsService.php
UTF-8
1,730
2.625
3
[]
no_license
<? require_once ('NewsCategoryService.php'); require_once ('News.php'); class NewsService extends DAOService { private $categoryService; public function __construct() { parent::__construct('news'); $this->categoryService = DAOService::instance('NewsCategoryService'); } public function create($category) ...
true
a40c453aaab6ba1aaadf6ec23bdde7fd95344690
PHP
Darkry/Slunenka
/app/AdminModule/Modules/ModulesManagement.php
UTF-8
1,880
2.796875
3
[]
no_license
<?php namespace AdminModule\Modules; use \Nette\Caching\Cache; /** * Using Nette RobotLoader determine which modules exist in AdminModule * @author Kryštof Selucký */ class ModulesManagement { /** @var \Nette\Loaders\RobotLoader */ private $robot; /** @var \Nette\Caching\Cache */ private $cache; ...
true
7f0da4e4d2e59418a2de984b6224ca53763b3b23
PHP
karlosredmond/ProjectY2
/ConfirmDeleteCustomer.php
UTF-8
1,429
2.765625
3
[]
no_license
<!--Name : Karl Redmond Student No.: C00196815 Course : KCCOMC-2P Description: Delete Customer Screen --> <!-- include home screen and database login data--> <?php include 'home.html.php'; include 'garagedb.inc.php' ; $sql = "UPDATE Customers SET markForDeletion = 1 WHERE customerId = '$_POST[customer...
true
2c9a46e05a06c201a3d12e4f6e824cfcd5091d2b
PHP
ljimmy/sf
/src/Database/DriverManager.php
UTF-8
1,048
3
3
[ "MIT" ]
permissive
<?php namespace SF\Database; use SF\Contracts\Database\Driver; use SF\Exceptions\NullPointerException; class DriverManager { const DEFAULT_NAME = 'default'; private static $drivers = []; public static function getDrivers() { return self::$drivers; } public static function getDrive...
true
384579c0230b1d31efc6fcef3a9a3fbfd2e970de
PHP
sivapgv/agtext
/transaction.php
UTF-8
2,634
2.5625
3
[]
no_license
<?php include('template/header.php'); $colors = getData('color'); $designs = getData('users','order by name asc'); $printno = getSqlData("select max(voucherid) as vocuherid from transactions;"); $prtno = $printno[0]["vocuherid"]+1; if($_POST && isset($_POST['amount'])){ $data["userid"] = $_POST['userid']; $data[...
true
bf84157beb2295b1eda6bd3be5f77fefd47673d5
PHP
Johnny-Jackpot/serialsCatalog
/views/site/serial.php
UTF-8
1,891
2.53125
3
[]
no_license
<?php require_once(ROOT . '/views/layouts/header.php'); ?> <!-- Page Heading --> <div class="row"> <div class="col-lg-12"> <h1 class="page-header"><?php echo htmlspecialchars($serial['name']); ?> </h1> </div> </div> <!-- /.row --> <div class="row"> <div class="col-md-3"> <img class="img-thu...
true
67671984aecae5eda0a2a9fa50e4958d3c53ef92
PHP
zarqeon/blog_tutorial
/Post.php
UTF-8
5,743
3.109375
3
[]
no_license
<?php require_once 'Model.php'; require_once 'Tag.php'; /** * rövidtávú cél: * elérni, hogy a classTag objektumnak ne kelljen kívülről beállítani az attribútumait. * TEHÁT: ne így kelljen példányosítani: * $tag = new classTag(); * $tag->name = 'lófasz'; * * hanem e helyett inkább így: * $attr = array( * ...
true
b00eea6e33d6cfac01e236dbbec547f2ed86b1da
PHP
chesBen/PHP-projects
/reverseArrayOFStrings.php
UTF-8
129
3.3125
3
[]
no_license
<?php $numbers = explode(' ', readline()); for ($i=count($numbers) - 1; $i >= 0; $i--) { echo $numbers[$i] . " "; }
true
19d620022999fc1cf04ae561c44b3271f5b06f05
PHP
ra1g-eu/devpr2d
/incl/changelogconfig.php
UTF-8
7,799
2.59375
3
[ "MIT" ]
permissive
<?php include_once("config.php"); $updating = false; $peeporun = false; $ra1glauncher = false; $websitechangelog = false; $success = ""; $failure = ""; $connection = new PDO($dsn, $username, $password, $options); if ($_SERVER['REQUEST_METHOD'] === 'GET') { try { //LOAD PEEPORUN CHANGELOG if (isset($...
true
346495a632d7c816cb20365e1b442839cd4f6063
PHP
Esisto/IoEsisto
/v04/session.php
UTF-8
3,396
3.03125
3
[]
no_license
<?php require_once("dataobject/User.php"); require_once 'manager/UserManager.php'; require_once 'dao/UserDao.php'; session_start(); /** * Classe Session * è una classe che contiene solo metodi statici e * gestisce le sessioni php */ class Session { /** * Metodo Session::start( $user ) * riceve come argom...
true
b9b1e2a30fc8b47e075bcf8c20101d9b807bbe16
PHP
AltabHossain/assign3
/action_delete.php
UTF-8
667
2.59375
3
[]
no_license
<?php include 'connection.php'; //User defined function function ScriptMessage($message){ echo "<script type='text/javascript'> alert('$message'); document.location='./delete.php'; </script>"; } // Get value of id from the web form $id=$_POST['id']; $sql = "DELETE FROM products WHERE id...
true
4d2779b07f0d214b329373f12beeef04f130b480
PHP
DEV-2020/intranet-wrapper
/src/Requests/IntranetClient.php
UTF-8
3,450
2.671875
3
[]
no_license
<?php namespace App\Requests; use GuzzleHttp\Client; use GuzzleHttp\Cookie\CookieJar; use Symfony\Component\DomCrawler\Crawler; use Symfony\Component\CssSelector\CssSelectorConverter; use App\Entity\Student; use App\Entity\Grade; use Symfony\Component\HttpKernel\Exception\BadRequestHttpException; class IntranetClien...
true
b282253ca448aefebfb89bf6f4447bc524e56412
PHP
filipve/webshop
/database/seeds/ProductTableSeeder.php
UTF-8
2,427
2.59375
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; use Illuminate\Database\Eloquent\Model; use App\Product; class ProductTableSeeder extends Seeder { public function run() { Product::create([ 'name' => 'WDL Garden Spade', 'description' => 'Man...
true
913fc990f4d9c00a93e1de9e29cddc96ad55fab6
PHP
danleedham/UK-Parliamentary-Stacker
/template/latestscreenshot.php
UTF-8
1,768
2.53125
3
[ "MIT" ]
permissive
<?php // If $m isn't already set, get it from URL if it's passed if(!isset($m) && isset($_GET['m'])) {$m=$_GET["m"];} // If $m is not passed, set it as Theresa May (hard-coded value) if(!isset($m)){ $m="8"; } // If $house isn't already set in a require, get it from URL if it's passed if(!isset($house) && isset($_GE...
true
0e7459dbcc8ab2e7d23416faafa2a82306dddab9
PHP
soundintheory/fuel-cmf
/classes/CMF/Field/Time.php
UTF-8
2,645
2.625
3
[]
no_license
<?php namespace CMF\Field; class Time extends Date { protected static $defaults = array( 'default' => null, 'default_offset' => null, 'format' => 'H:i', 'list_format' => 'H:i' ); public static function process($value, $settings, $model) { $settings = s...
true
100696b70e6402d3080ee75eacee5cb1b5797829
PHP
onebytegone/banknote
/code/steps/RunningTotal.php
UTF-8
892
3.03125
3
[ "Apache-2.0" ]
permissive
<?php /** * Sums all the values of the set then adds this to a * running total which is then stored. * * @copyright 2015 Ethan Smith */ class RunningTotal extends CalculationStep { private $amountCalculate; public function __construct() { $this->amountCalculate = new AmountCalculate(); } /**...
true
84cc78188d2fd326d7af1f1b3dd085f9e4c77d7e
PHP
AlexDateDev/Factory-PHP
/Array/RemoveDuplicates.php
UTF-8
244
2.875
3
[]
no_license
<?php /** * Devuelve un array sin duplicados * * @param array $arr * @return array * * @version 3.0 => 12-4-2008 * @version 3.1 => 27-10-2009 */ static function RemoveDuplicates( $arr ){ return array_unique($arr); } ?>
true
2678bd00dade97664f410f9f58dd60da3a8c7649
PHP
reym-zylun/lamcar-api
/app/User.php
UTF-8
2,404
2.53125
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Foundation\Auth\User as Authenticatable; use Validator; class User extends Authenticatable { protected $table = "users"; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'device_id', 'device_type',...
true
d08d3e5a11e667bd19d4a3ac73661032ce4b0af9
PHP
Podbi/product-search
/spec/ProductSearch/Repository/DriverProductRepositorySpec.php
UTF-8
983
2.515625
3
[]
no_license
<?php namespace spec\ProductSearch\Repository; use PhpSpec\ObjectBehavior; use ProductSearch\Driver\DriverAdapter; use ProductSearch\Repository\ProductRepository; use Prophecy\Argument; /** * @mixin \ProductSearch\Repository\DriverProductRepository */ class DriverProductRepositorySpec extends ObjectBehavior { p...
true
f14b86e47437adb79cba4ec941a758f7bd74d2c0
PHP
Yas3r/php.localhost
/function.php
UTF-8
702
3.59375
4
[]
no_license
<?php function mymodule_abs ($num) { if ($num < 0){ return - $num; } return $num; } function hello ($name, $greeting = 'Hello! ') { echo $greeting, $name, PHP_EOL; } hello('Bob', 'Good morning '); hello('Tom'); // タイプヒンティング function array_output (array $var) //配列である事が期待される { if (is_array($var)) foreach...
true
f6d683baaf1e1d68dfc5413beb85ed434188eb3a
PHP
Gods-Fear/Lyrics
/lyrics_website/php/addalbum.php
UTF-8
2,846
3.078125
3
[]
no_license
<?php session_start(); if(!isset($_SESSION["logged_in"]) && $_SESSION["logged_in"] !== true) { header("location: main.php"); exit; } $dateErr = $artistErr = ""; $error = false; if ($_SERVER["REQUEST_METHOD"] == "POST") { if (empty($_POST["album"])) { $album...
true
f64fb6612fbcba54e51c0e278fa60d98da98687b
PHP
cotterpl/BehatTraining
/src/Controller/Web/SearchController.php
UTF-8
911
2.71875
3
[]
no_license
<?php namespace Acme\Controller\Web; use Acme\Controller\AbstractController; use Slim\Http\Request; use Slim\Http\Response; /** * Controller handling movie searching. * * @package Acme\Controller\Web */ class SearchController extends AbstractController { /** * Search page * * @param Request ...
true
d97aa2c49cc40ba5e046e55241b9f26373a1c363
PHP
pinkybs/cf-otherapps
/app/models/Dal/Hotel/Cus.php
UTF-8
2,166
2.796875
3
[]
no_license
<?php require_once 'Dal/Abstract.php'; /** * Dal Hotel Cus * MixiApp hotel Cus Data Access Layer * * @package Dal/Hotel * @copyright Copyright (c) 2009 Community Factory Inc. (http://communityfactory.com) * @create 2009/11/02 Zhaoxh */ class Dal_Hotel_Cus extends Dal_Abstract { /** * tech ...
true
a80d23a12f03c3222e4f7ccbac9498fc3fd49078
PHP
Nakawashi/kata-fizzbuzz
/src/Collections/Players.php
UTF-8
446
2.796875
3
[]
no_license
<?php namespace FizzBuzz\Collections; use Doctrine\Common\Collections\ArrayCollection; use FizzBuzz\PlayerInterface; /** * Players Collection * * @method PlayerInterface[] toArray() */ final class Players extends ArrayCollection { /** * @return PlayerInterface[]|\InfiniteIterator */ public func...
true
c5a7c07fff490be43e30c997628e8807b4674ee0
PHP
OskarStark/doctor-rst
/src/Analyzer/FileCache.php
UTF-8
3,161
2.734375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); /** * This file is part of DOCtor-RST. * * (c) Oskar Stark <oskarstark@googlemail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace App\Analyzer; use App\Application; use App\Value\Vi...
true
a75224e719595567f29d7bdca3ac795aadced7ab
PHP
eescobedo/Project-Flyer
/app/Http/Controllers/AddPhotoToFlyer.php
UTF-8
1,601
2.734375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Flyer; use App\Http\Thumbnail; use App\Photo; use Symfony\Component\HttpFoundation\File\UploadedFile; use Image; class AddPhotoToFlyer { /** * @var \App\Builder */ private $flyer; /** * @var array|null|\Symfony\Component\HttpFoundation\File\Uplo...
true
d69b6f7abfc3425c4018935fa8af2ab86834c5f3
PHP
megabentilad/LoginLogoutMulticapaPDO
/controller/cREST.php
UTF-8
4,545
2.78125
3
[]
no_license
<?php /** * Useless function * * Soy un fichero, jopé * @package POO-LMR * @author Luis Mateo Rivera Uriarte */ if(isset($_REQUEST['pagina'])){ $_SESSION['DAW215LLPaginaAnterior'] = $_SESSION['DAW215LLPagina']; $_SESSION['DAW215LLPagina'] = $_REQUEST['pagina']; header("Location: index.php"); ex...
true
6f51b0c94260d354f73130299ce14b936445a125
PHP
isaacsonw/seerbit-php-sdk
/src/Seerbit/Service/Mobile/MobileService.php
UTF-8
959
2.5625
3
[ "MIT" ]
permissive
<?php namespace Seerbit\Service\Mobile; use Seerbit\Client; use Seerbit\Service\ITransformable; use Seerbit\Service\TransactionService; class MobileService extends TransactionService implements ITransformable { private $result; public function __construct(Client $client) { parent::__construct($...
true
1f4e43c069abad9cc49c5e9c20c2e9373c435d48
PHP
shindipurnama/uasmobile
/tampil_list_antrian.php
UTF-8
1,529
2.609375
3
[]
no_license
<?php include("koneksi.php"); // array for json response $response = array(); $response["data"] = array(); $date = date('Y-m-d'); // Mysql select query $data = mysqli_query($con,"SELECT pasien.NAMA AS NAMA_PASIEN, antrian.NO_ANTRIAN, antrian.WAKTU_PERIKSA, ...
true
bd770d603965f6cebb188197c4308e0a762e27e2
PHP
astonecipher/myOneCal
/lib/table2array/TableToArray.php
UTF-8
4,600
3.5625
4
[]
no_license
<?php namespace Scraper32; require_once("simple_html_dom.php"); require_once("util.php"); /** * Class TableToArray * * Has method that can convert a html table to a 2-dimensional PHP array * Has method that can print the 2-dimensional array to console or file */ class TableToArray { var $arr; //Two dimensional ...
true
25d7e8a6c77f27d8be9997438f9c05418971123f
PHP
thupercarl/cupcakes
/index.php
UTF-8
2,421
2.734375
3
[]
no_license
<?php //This is my controller for the cupcakes project //Turn on error-reporting ini_set('display_errors', 1); error_reporting(E_ALL); //Start a session session_start(); //Require necessary files require_once ('vendor/autoload.php'); require_once ('model/data-layer.php'); require_once ('model/validati...
true
f6f60c5d5caee539ea9dc835d3947f199dd95b46
PHP
igaster/laravel-model-options
/src/modelOptions.php
UTF-8
2,761
3.109375
3
[ "MIT" ]
permissive
<?php namespace igaster\modelOptions; /********************************** * * 1.Create a column in migrations: * * $table->json('options'); * * 2.Use trait in Model: * * use igaster\modelOptions\modelOptions; * * 3.Define valid options keys in Model: * * protected $validOptions=[ * 'op...
true
c5a5108d4c2d24f308d470e18dfaec5016b479d5
PHP
SergeiSvirin72/lessor-app
/database/seeders/RoomSeeder.php
UTF-8
429
2.640625
3
[ "MIT" ]
permissive
<?php namespace Database\Seeders; use App\Models\Floor; use App\Models\Room; use Illuminate\Database\Seeder; class RoomSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $floors = Floor::all(); $floors->each(function ($flo...
true
053537d6029dd5984ded01c771f5875cb28e434e
PHP
rafaeldiehl/estudos-php
/php-basico/30-cookie.php
UTF-8
288
2.65625
3
[]
no_license
<?php setcookie('user', 'Rafael Diehl', time() + 3600); setcookie('email', 'rafaeljuliani1984@gmail.com', time() - 3600); setcookie('ultima_pesquisa', 'Tênis Adidas', time() + 3600); echo "Valores armazenados na superglobal \$_COOKIE: "; foreach($_COOKIE as $cookie) { echo "<li>$cookie</li>"; }
true
b3ade962c6804b115d80874add460c1b032c7181
PHP
apetridis/php-simple-app
/secNewDes.php
UTF-8
1,324
2.59375
3
[]
no_license
<!DOCTYPE html> <html> <head> <link rel="stylesheet" href="styles.css"> <title>Secretery's new Reservation Page</title> </head> <body> <?php session_start(); if(!isset($_SESSION["username"])) header("Location: login.html"); include "config.php"; $conn -> select_db("heroku_ed39a20fb4d6fd8"); ...
true
172386d120fa5270b29eb900ff6f0535fdc74688
PHP
sislex/gm
/app/Email.php
UTF-8
363
2.5625
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Email extends Model { protected $table = 'email'; protected $fillable = [ 'email' ]; static function getEmail(){ $email = Email::all()->first(); if ($email) { return $email->email; } else ...
true
da7e5e0340bc782e9243531d84a4e6fed1fd2767
PHP
khoa-le/fuviet.com
/src/AppBundle/Controller/ProductController.php
UTF-8
1,160
2.625
3
[]
no_license
<?php namespace AppBundle\Controller; use AppBundle\Entity\Product; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; class ProductController extends Controller { /** * @Route("...
true
9341256bcde60228023760c63a351a4bdb1b1f01
PHP
ikhsanfadillah/komunitasjendela
/app/Models/User.php
UTF-8
1,894
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Illuminate\Notifications\Notifiable; use Illuminate\Contracts\Auth\MustVerifyEmail; use Illuminate\Foundation\Auth\User as Authenticatable; use Spatie\Permission\Traits\HasRoles; use Wildside\Userstamps\Userstamps; class User extends Authenticatable { use Notifiable, HasRoles, Use...
true
2263f29eafa508f71b08ab49aaccd650933ee038
PHP
rra696/YiiChat
/repositories/MessagesRepository.php
UTF-8
1,636
2.625
3
[]
no_license
<?php namespace app\repositories; use app\models\Messages; class MessagesRepository { public function getAllActive() { $messages = Messages::find() ->where('active = 1') ->all(); return $messages; } public function getLastFrom...
true
c496fe9ff982dcb3526fc119ae1bcbdc428fbed6
PHP
QualityUnit/php-resqueue-serial
/lib/Process/SignalTracker.php
UTF-8
2,084
2.796875
3
[ "MIT" ]
permissive
<?php namespace Resque\Process; use Resque\Process; use Resque\SignalHandler; class SignalTracker { /** @var int */ private $trackedSignal; /** @var string[] */ private $receivedSignals = []; /** @var callable|int|null */ private $originalHandler; /** @var int|null */ private $startT...
true
27547d167ccaf69aaafa7569e7fecb9e17a46781
PHP
prashantka/Scrapper
/search.php
UTF-8
2,809
2.609375
3
[]
no_license
<?php header('Content-Type: text/html; charset=Windows-1252'); //$s=3;$team="as-saint-etienne"; for($s=4;$s<=5;$s++){ /* $arrayofteams=array("ac-ajaccio","as-nancy","as-saint-etienne","estac-troyes","evian-thonon-gaillard","fc-lorient","fc-sochaux","girondins-bordeaux","lille-osc","montpellier-hsc","ogc-nice","ol...
true
e7cf6da22de1b1597b9e561d3c0b8156e06f4252
PHP
Rohan2021/MusicOnline-CSAC45
/createplaylist.php
UTF-8
1,744
2.53125
3
[]
no_license
<?php session_start(); $pagename="My Playlist"; if(!isset($_SESSION['uid'])){ header('location:index.php'); exit(); } include("db/config.php"); include("db/db.php"); include("db/api.php"); $playlistname = ""; if(isset($_POST['submit'])){ $playlistname = trim(strtolower($_POST['playlistName'])); ...
true
5ff1245c6fb924142ffe37402c65d44695058b95
PHP
JustAHappyKid/php-spare-parts
/src/web-client/html-form.php
UTF-8
14,355
2.96875
3
[]
no_license
<?php namespace SpareParts\WebClient; require_once dirname(__FILE__) . '/html-parsing.php'; # htmlSoupToDOMDocument use \Exception, \InvalidArgumentException; class HtmlForm { protected static function supportedInputTypes() { return array('text', 'password', 'email', 'tel', 'url', 'search', 'check...
true
a2d86d9a30c9e46997569353bc53bdfa5d94af8f
PHP
tatag165314021/Catalog-Programmer
/marketplace/user/update_user.php
UTF-8
4,804
2.640625
3
[]
no_license
<?php include('includes/config.php'); error_reporting(0); $user_id = $_POST['user_id']; $email = $_POST['email']; $nama = htmlspecialchars($_POST['nama']); $telepon = htmlspecialchars($_POST['noHP']); $status = $_POST['status']; $role = htmlspecialchars($_POST['role']); //$pass = $_POST['password']; $idSkil = $_POST[...
true
87888e3bfd571e3b2ea35f367f1f7be7eee2ed11
PHP
afzel/c2_PHP_MySQL
/task3/src/adapters/AdapterInterface.php
UTF-8
505
3
3
[]
no_license
<?php namespace b2b\Adapters; interface AdapterInterface { /** * @param $id * @return array */ public function find($id) : array; /** * @param array $conditions * @return array */ public function findAll(array $conditions): array; /** * @param $name * @p...
true
953c53f69fbde3ac1ff8bcd7855a701d54da11e0
PHP
slepic/php-value-object
/src/ViolationInterface.php
UTF-8
1,305
2.84375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Slepic\ValueObject; /** * All value object integrity violations are represented by this interface * * Every violation is composed of an error code (for machines) and a message (for humans). * * The error code is represented by the violation class name, its parents, and th...
true
390a704269cca954868caedc9704aab8b990e4fe
PHP
xiaodin1/myqee
/drivers/database/mysqli/result.class.php
UTF-8
1,325
2.65625
3
[ "Apache-2.0" ]
permissive
<?php /** * 数据库MySQLI返回类 * * @author 呼吸二氧化碳 <jonwang@myqee.com> * @category Driver * @package Database * @subpackage MySQLI * @copyright Copyright (c) 2008-2016 myqee.com * @license http://www.myqee.com/license.html */ class Driver_Database_Driver_MySQLI_Result extends Database_Result { prote...
true
51d4a6b50fd402b38680f14f449085da28261b64
PHP
MCMatters/laravel-cs-fixer
/src/Steps/DeclareStrictTypes.php
UTF-8
1,547
2.578125
3
[]
no_license
<?php declare(strict_types=1); namespace McMatters\CsFixer\Steps; use Illuminate\Support\Facades\Config; use McMatters\CsFixer\Contracts\Step; use McMatters\CsFixer\NodeVisitor\StrictTypeDeclarationResolver; use PhpParser\NodeTraverser; use PhpParser\ParserFactory; use Symfony\Component\Finder\Finder; use function ...
true
2f23fa01519dd29dba102d6370fb93cbf54f8d94
PHP
ltf9651/swoole-live
/server/monitor.php
UTF-8
778
2.71875
3
[ "Apache-2.0" ]
permissive
<?php /** * 监控服务 ws http 8811 * 定时器检测端口号 */ class Monitor { CONST PORT = 8811; public function port() { $shell = "netstat -anp 2>/dev/null | grep " . self::PORT . " | grep LISTEN | wc -l"; $result = shell_exec($shell); if ($result != 1) { // 发送报警服务 邮件 短信 ...
true
e8ffddfcff5f9dfc6344ecf1309d1103d9518311
PHP
PetrKraina/dbmanager
/DBManager/DBManager.php
UTF-8
16,920
3.203125
3
[]
no_license
<?php /* * Author: Petr Kraina * Copyright (c): Petr Kraina */ namespace Mavi\DBManager; class DBManager implements DBManagerInterface { /** * @param \PDO object. */ private $database = null; /** * @param QueryProperties object. * Object beares parameters of query. * When the...
true
c714ef515bd988854c51d205a21384b58584b98c
PHP
Moearly/martn.video
/app/Http/Controllers/CategoryController.php
UTF-8
907
2.796875
3
[ "MIT" ]
permissive
<?php namespace Learner\Http\Controllers; use Learner\Http\Controllers\BaseController; use Learner\Repositories\CategoryRepositoryInterface; class CategoryController extends BaseController { /** * @var \Learner\Repositories\CategoryRepositoryInterface */ protected $categories; /** * Insta...
true
d4054cf6172a079eecce140d9a37f8e3823b8534
PHP
KumisSoft/komersil
/database/migrations/2015_04_18_143535_create_categories_table.php
UTF-8
1,360
2.53125
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateCategoriesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('categories', function (Blueprint $table) { ...
true
dc45fe14e6da7002e6ad788a16c14236cd796424
PHP
kdes70/trk.dev
/application/backend/helpers/cms_helper.php
UTF-8
6,778
2.984375
3
[]
no_license
<?php function password_generate($n) { $symbol = array( 'A','B','C','D','E','F', 'G','H','I','J','K','L', 'M','N','O','P','R','S', 'T','U','V','X','Y','Z', '1','2','3','4','5','6', '7','8','9','0'); $password=""; for($i = 1; $i < $n; $i++) { $count=count($symbol); $index = r...
true
816419d22382bdfee16082c237b5417ae7b86401
PHP
Snoopbobb/m4mysqlproject
/update_item.php
UTF-8
681
2.75
3
[]
no_license
<?php // Initialize Code require('Initialize/initialize.php'); $id = $_GET['id']; $sql = " UPDATE item SET name = :name, price = :price WHERE id = :id "; $sql_values = [ ':name' => $_POST['name'], ':price' => $_POST['price'], ':id' => $_GET['id'] ]; // Make a PDO statement $statement = DB::prepare($sql)...
true
4e01e3474baa06fad8d27da9f0302f54c2591bb6
PHP
WISHPRO/e-commerce-l5
/app/Antony/DomainLogic/Modules/Security/Base/Security.php
UTF-8
1,406
2.765625
3
[]
no_license
<?php namespace app\Antony\DomainLogic\Modules\Security\Base; use app\Antony\DomainLogic\Contracts\Security\AccessControl; use app\Antony\DomainLogic\Modules\DAL\Base\DataAccessLayer; class Security extends DataAccessLayer implements AccessControl { /** * @param $permission_id * @param array $roles ...
true
39eae16ec0f9d83620245fc3c726fbab006a00ea
PHP
linuxplayground/s14
/mvc/modules/user/actions/group.php
UTF-8
14,891
2.703125
3
[]
no_license
<?php /* All action methods for Authorisation in this model. */ require_once ("modules/common/model.class.php"); Log::getInstance()->write (__FILE__." loaded", "debug"); class GroupAction extends Model { public function __construct ( ) { // } public function listGroup( $oMsg ) { if ($this->validateUser...
true
750cb2853576ee1ce43e65531dcebb7b53c86589
PHP
mohammedkhalf/shapelist
/app/Repositories/Backend/Location/LocationRepository.php
UTF-8
2,152
2.671875
3
[ "MIT" ]
permissive
<?php namespace App\Repositories\Backend\Location; use DB; use Carbon\Carbon; use App\Models\Location\Location; use App\Exceptions\GeneralException; use App\Repositories\BaseRepository; use Illuminate\Database\Eloquent\Model; /** * Class LocationRepository. */ class LocationRepository extends BaseRepository { ...
true
13545aec8790e4d6ae9daa9bf0c923b8fa5167b1
PHP
GraceHuntley/random_api_viewer
/getPage.php
UTF-8
1,578
2.703125
3
[]
no_license
<?php $target_url = 'http://developer.android.com/reference/classes.html'; $userAgent = 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13'; $base_url= 'http://developer.android.com'; //curl_setopt($ch, CURLOPT_USERAGENT, $userAgent); $ch = curl_init(); curl_setopt($ch, CU...
true
d7f0ad6dbbf4e29e86f350b9f19a6ea3d7e9d472
PHP
yepitstrent/Earn2Learn
/moodle/mod/quiz/questiontypes/datasetdependent/categorydatasetdefinitions.php
UTF-8
3,846
2.59375
3
[]
no_license
<?php // $Id: categorydatasetdefinitions.php,v 1.6.4.2 2005/12/07 06:03:05 moodler Exp $ ///////////////////////////////////////////////////////////////////// ///// This page offers a way to define category level datasets ///// ///////////////////////////////////////////////////////////////////// req...
true
dcf7577f5e30ecd69f703e834663c4d38ebfe070
PHP
romain-lisowski/pink-story
/apps/api-gateway/app/src/Story/Query/Model/StoryUpdate.php
UTF-8
2,400
2.65625
3
[]
no_license
<?php declare(strict_types=1); namespace App\Story\Query\Model; use App\Common\Domain\Model\EditableInterface; use App\Common\Domain\Model\EditableTrait; use App\Language\Query\Model\Language; use App\User\Domain\Model\UserableInterface; use App\User\Domain\Model\UserInterface; use App\User\Query\Model\User; use Doc...
true
90daff501b1d2fa96f7022bf80b95c616d445bb3
PHP
CodeCodeGH/router
/protected/models/Admin.php
UTF-8
2,701
2.671875
3
[]
no_license
<?php /** * This is the model class for table "{{admin}}". * * The followings are the available columns in table '{{admin}}': * @property integer $id * @property string $name * @property string $password * @property string $ctime * @property string $mtime */ class Admin extends CActiveRecord { ...
true
94a44933b1f5e2a316aadd82b4fcbb731adf57ea
PHP
quickow/dcourier.system
/protected/models/Pickup.php
UTF-8
3,086
2.671875
3
[]
no_license
<?php /** * This is the model class for table "pickups". * * The followings are the available columns in table 'pickups': * @property string $id * @property string $pickup_date * @property integer $booking_id * @property integer $driver_id * * The followings are the available model relations: * @property Shi...
true
ea83777f4c95140a21ce24eed16e2a9bf4aa64e9
PHP
Finnology/oro-platform
/src/Oro/Bundle/EntityConfigBundle/Tools/ConfigLogger.php
UTF-8
1,951
2.6875
3
[ "MIT" ]
permissive
<?php namespace Oro\Bundle\EntityConfigBundle\Tools; use Psr\Log\AbstractLogger; use Psr\Log\LoggerInterface; /** * Adds to logger entity config log */ class ConfigLogger extends AbstractLogger { /** * @var LoggerInterface */ protected $baseLogger; public function __construct(LoggerInterface...
true
016d2f61153631b3e9fcd3b8e896b0c5a76f69cd
PHP
goc00/payment-engine
/application/libraries/Oneclicklib.php
UTF-8
4,858
2.796875
3
[ "MIT" ]
permissive
<?php require_once('webpay-sdk-php/libwebpay/webpay.php'); // SDK class Oneclicklib { private $webpay; private $folderDefault = "DEFAULT"; private $configX; function __construct() { $this->context =& get_instance(); $this->configX = $this->context->config; // para instancia de config $thi...
true
fd8ad504ce3d72442515133b110cb2e1e28fc9af
PHP
staub4/ch.bfh.bti7054.w2013.q.keystore
/view/PwDetail.class.php
UTF-8
1,135
2.640625
3
[]
no_license
<?php include_once("lib/xtemplate.class.php"); include_once("model/User.class.php"); class PwDetail { private $xtpl; private $mysqli; private $id; private $pw; private $privkey; function __construct(&$mysqli, $id) { $this->mysqli = $mysqli; $this->id = $mysqli->mysqli->real_esc...
true
54b874dfc58814974c54b50dcfd8ce36ee015b14
PHP
sflorian/staque
/php/pages/motDePasseOublie.php
UTF-8
3,459
2.84375
3
[]
no_license
<?php /************************************************************************ * FORMULAIRE ESPACE CLIENT * *************************************************************************/ // Initialisation des variables // contiendra nos éventuels messages d'erreur de valid...
true
790a3191da6b0c672850219d99ee8c724a4b9830
PHP
WsdlToPhp/PackageEws365
/src/StructType/EwsRecognitionIdType.php
UTF-8
2,242
2.984375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace StructType; use InvalidArgumentException; use WsdlToPhp\PackageBase\AbstractStructBase; /** * This class stands for RecognitionIdType StructType * @package Ews * @subpackage Structs * @author WsdlToPhp <contact@wsdltophp.com> */ class EwsRecognitionIdType extends Abstra...
true
71c8eb0ce65dced31d0e3bc01e1627e908b18e6c
PHP
reasilaj/vemt_rovers_task
/src/Direction.php
UTF-8
697
3.390625
3
[]
no_license
<?php class Direction { const NORTH = 'N'; const SOUTH = 'S'; const WEST = 'W'; const EAST = 'E'; const VALID_DIRECTIONS = [ self::NORTH, self::SOUTH, self::WEST, self::EAST, ]; const DIRECTION_DEGREE = [ self::NORTH => 90, self...
true
3b4c1242ff392da78848044927947b1f5f0deec1
PHP
zerkalica/Semaphore
/Model/AdapterInterface.php
UTF-8
479
2.953125
3
[]
no_license
<?php namespace Millwright\Semaphore\Model; /** * Semaphore adapter interface */ interface AdapterInterface { /** * Acquire semaphore and return handle * * @param string $key * @param integer $ttl time to leave in seconds * * @return boolean */ function acquire($key, $ttl)...
true
1997b4425119b2a7db36c5e21b454c0d05d8c36e
PHP
GlennZZ/share
/protected/extensions/Http.php
UTF-8
6,728
2.78125
3
[]
no_license
<?php /** * Http.php * ---------------------------------------------- * 版权所有 2014-2015 联众互动 * ---------------------------------------------- * @date: 2014-8-13 * @author: wintrue <328945440@qq.com> */ class Http { /** * CURL兼容https * @param string $url * @param array $post * @param array $extra * @p...
true
a9974e45ac1384e73cae4edc23a86694bc208d0f
PHP
MKodde/OpenConext-engineblock
/src/OpenConext/EngineBlockBridge/Configuration/EngineBlockConfiguration.php
UTF-8
1,670
2.71875
3
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace OpenConext\EngineBlockBridge\Configuration; use OpenConext\EngineBlock\Assert\Assertion; final class EngineBlockConfiguration { /** * @var array */ private $configuration = []; public function __construct(array $configuration) { foreach ($configuration as $key => $v...
true
50d8171ee3e4177b86789931362c3a310c0c9d29
PHP
Tinku03/Animals
/database.php
UTF-8
850
2.890625
3
[]
no_license
<?php include('connect.php') ?> <!DOCTYPE html> <html> <head> <title></title> </head> <body> <?php $sql = "SELECT * from animals_details"; $result = mysqli_query($conn,$sql); $resultcheck = mysqli_num_rows($result); $hasMatch = false; if($resultcheck > 0) { ...
true
55b35cec0a51a5b52d1ffba8ad0eb094653bbb7e
PHP
decodelabs/tagged
/src/Tagged/Embed/Media.php
UTF-8
2,437
2.5625
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php /** * @package Tagged * @license http://opensource.org/licenses/MIT */ declare(strict_types=1); namespace DecodeLabs\Tagged\Embed; use DecodeLabs\Tagged\Element; use DecodeLabs\Tagged\Markup; interface Media extends Markup { /** * @return static */ public static function parse(string $em...
true
6de2bed1b4cd5fdc0a248d70e4c89612560af8c2
PHP
Chen294/ComputerRepair
/WeChatAppletUI/module/Permission.php
UTF-8
1,446
2.6875
3
[ "Apache-2.0" ]
permissive
<?php class Permission { private $_db; private $_user_info; private $_user_id; private $_perm; private $_role; private $_role_perm; private $_user_role; /** * @param Database $db * @param array $config sysconfig in config.php */ public function __construct($db, $conf...
true
0b3b0a21d81eadfa8da42927a170ab14069e3138
PHP
Patrikr7/ci4_paypal
/app/Database/Seeds/ProductsSeeder.php
UTF-8
775
2.625
3
[ "MIT" ]
permissive
<?php namespace App\Database\Seeds; use App\Libraries\Uuid; use CodeIgniter\Database\Seeder; class ProductsSeeder extends Seeder { public function run() { $uuid = new Uuid(); $data = [ [ 'description' => 'Ebook 1001 Receitas Fitnes', 'price' => '59.90', 'uuid' => $uuid->v4(), ],...
true
a41c2ea9799ed649eec215659cb407979c933f66
PHP
sonupatil/Employee-Management-System
/module/EmployeeManagementSystem/src/EmployeeManagementSystem/Form/EmployeeForm.php
UTF-8
1,262
2.703125
3
[]
no_license
<?php namespace EmployeeManagementSystem\Form; use Zend\Form\Form; class AdminForm extends Form { public function __construct($name = null) { // we want to ignore the name passed parent::__construct('employee'); $this->add(array( 'name' => 'id', 'type' => 'Zend\Form\Element\Hidden', )); $this->a...
true
a53a96e0cc5ca707c72e3a4c3b80fe82a4948692
PHP
RuraEgor/link-new-v
/ajax/del.php
UTF-8
1,810
2.671875
3
[]
no_license
<?php require_once '../config.php'; $_POST['name'] = (isset($_POST['name'])) ? $_POST['name'] : '&&&'; if ($_POST['name'] != '&&&') { $nameDel = $_POST['name']; $nomEl = array(); //------ ОПРЕЛЕЛЕНИЕ НОМЕРА ЭЛЕМЕНТА --------- $pes = mysql_query(" SELECT `number`,`group_id` FROM `$tbLink` WHERE `id...
true
481d385021941468a72300b50b68b869d6d90876
PHP
Delabarrejulien/PHPP1
/partie4/exo3p4.php
UTF-8
341
2.75
3
[]
no_license
<?php function test ($chain1 , $chain2) { return $chain1 . $chain2; } ?> <!DOCTYPE html> <html lang="fr"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>ex3p4</title> </head> <body> <?= test ('salut!',' c\'est moi...');?> ...
true
6afd7824f0a800c1009038aae31989fb6c5bbd16
PHP
dgautsch/wpackagist
/src/Package/Theme.php
UTF-8
631
2.59375
3
[ "MIT" ]
permissive
<?php namespace Outlandish\Wpackagist\Package; class Theme extends AbstractPackage { public function getVendorName() { return 'wpackagist-theme'; } public function getComposerType() { return 'wordpress-theme'; } public static function getSvnBaseUrl() { return ...
true