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
115706a69f1de1b6119b0fee0bf8b3051ae22d1e
PHP
aphiria/aphiria
/src/Sessions/src/Session.php
UTF-8
5,430
2.890625
3
[ "MIT" ]
permissive
<?php /** * Aphiria * * @link https://www.aphiria.com * @copyright Copyright (C) 2023 David Young * @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md */ declare(strict_types=1); namespace Aphiria\Sessions; use Aphiria\Sessions\Ids\IIdGenerator; use Aphiria\Sessions\Ids\UuidV4IdGenerator; ...
true
e4386c68d384573c12d91ab3c99a3c1a990a8e33
PHP
azjezz/psl
/src/Psl/Str/Byte/strip_prefix.php
UTF-8
470
2.9375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php declare(strict_types=1); namespace Psl\Str\Byte; /** * Returns the string with the given prefix removed, or the string itself if * it doesn't start with the prefix. * * @pure */ function strip_prefix(string $string, string $prefix): string { if ('' === $prefix || !starts_with($string, $prefix)) { ...
true
e12f4c09ce5bd6925bd5ec97c505df738d026922
PHP
mukeshshukla/yii-blog
/protected/migrations/m130426_071844_craete_tbl_lookup.php
UTF-8
1,346
2.65625
3
[]
no_license
<?php class m130426_071844_craete_tbl_lookup extends CDbMigration { public function up() { $this->createTable('tbl_lookup', array( 'id' => 'pk', 'name' => 'varchar(128) COLLATE utf8_unicode_ci NOT NULL', 'code' => 'int(11) NOT NULL', 'type' => 'varchar(128) ...
true
b32a4dfdcaea008b2fc61efff204195133426d26
PHP
SergioBertolinSG/performance_tests_oc_env
/server/index.php
UTF-8
1,576
2.53125
3
[]
no_license
<?php use \Psr\Http\Message\ServerRequestInterface as Request; use \Psr\Http\Message\ResponseInterface as Response; require 'vendor/autoload.php'; function isProcessRunning($process){ try{ exec("pgrep $process", $pids); if(!empty($pids)){ return true; } }catch(Exception $e){...
true
54c8c9efc24bb08804453880932841d0970e2d24
PHP
Taitava/silverstripe-assetcommitter
/code/AssetCommitterRequestHandlerExtension.php
UTF-8
745
2.6875
3
[ "MIT" ]
permissive
<?php /** * Class AssetCommitterRequestHandlerExtension * * @property $owner static|RequestHandler */ class AssetCommitterRequestHandlerExtension extends Extension { /** * This hook method handles all tasks that should be performed at the end of the execution flow. In practise this means * pushing new commits...
true
d619a7b82131d0645cd3abd87ee9ce338fb8831d
PHP
Hynitr/deguideLightCBT
/staff/dashboard/test.php
UTF-8
247
2.5625
3
[ "MIT" ]
permissive
<select id="catclass" class="form-control"> <?php $x = 1; while($x <= 24) { echo ' <option style="font-size: 20px" id="catclass">'.$x.' </option> <br>'; $x++; } ?> </select>
true
28c3958e450f8b9eb7fb1b5cbe5bc2d7403d4bd6
PHP
petarkaranovic/eStoreAPI-APP
/database/factories/ProductsFactory.php
UTF-8
556
2.578125
3
[]
no_license
<?php /* @var $factory \Illuminate\Database\Eloquent\Factory */ // use Illuminate\Support\Str; // use Faker\Generator as Faker; // $factory->define(App\Product::class, function (Faker $faker) { // return [ // 'name'=>$faker->company, // 'price'=>$faker->biasedNumberBetween($min = 10, $max = 100, ...
true
bab61d85b43d0918d15a8a5517daea670d0ca283
PHP
66ru/gpor-contrib
/_lib/ezcomponents-2009.2/Document/src/document/xml/odt/filter/element/frame.php
UTF-8
1,387
2.5625
3
[ "BSD-3-Clause" ]
permissive
<?php /** * File containing the ezcDocumentOdtElementFrameFilter class. * * @package Document * @version 1.3 * @copyright Copyright (C) 2005-2009 eZ Systems AS. All rights reserved. * @license http://ez.no/licenses/new_bsd New BSD License * @access private */ /** * Filter for ODT <draw:frame/> elements. * *...
true
747c8c2cb3e8e281a1ff3a35a52a3b086b1f043f
PHP
newclarity/the-business-of-wordpress-conference
/wp-content/themes/thebusinessof/includes/sponsor-widget.php
UTF-8
2,367
2.578125
3
[]
no_license
<?php register_widget('EventPressSponsorWidget'); class EventPressSponsorWidget extends WP_Widget { function __construct() { parent::__construct(false, $name = 'Sponsors'); } function form($instance) { $id = $this->get_field_id('title'); $label = __('Title:'); $value = esc_attr($instance['title']); $na...
true
dc076f836f504b487c8143f5323bd2099cd64b58
PHP
luxurno/SBS
/app/VO/WeatherVO.php
UTF-8
1,129
3.171875
3
[]
no_license
<?php declare(strict_types = 1); namespace App\VO; class WeatherVO extends AbstractVOModel { private string $date; private float $temp; private int $pressure; private int $humidity; public function __construct( string $date, float $temp, int $pressure, int $humidi...
true
090846d8e6994c15e40c657121acb9fe63c7f394
PHP
danlangford/buttonmen
/test/src/engine/TestDummyBMSkillCaptureCatcher.php
UTF-8
471
2.625
3
[ "BSD-3-Clause" ]
permissive
<?php class TestDummyBMSkillCaptureCatcher extends BMSkill { /** * An array containing the names of functions run by * BMCanHaveSkill->run_hooks() * * @var array */ public static $hooked_methods = array("capture", "be_captured"); public static function capture($args) { thr...
true
d230d45b348bac889db5f6a5a1df3ed547eaa92a
PHP
jacobd1808/IM16
/index.php
UTF-8
1,382
2.53125
3
[]
no_license
<?php include_once "app/config/conn.php"; $pageOpt = array( "title" => "IM16 . Coming Soon", 'navName' => "home", 'cssIncludes' => " ", "jsIncludes" => " ", ); // Example of how to call a Class Method //$user = new User($conn); //$newUser = $user->createUser($data); ?> <!DOCT...
true
58f54d76fe29c8df20a9ff0c2664468dd9d1d2d1
PHP
marmala5/code_academy_mj
/19_2021-07-26_PHP_arrays_GET_POST/homeworks_PHP/home_game_PHP/game.php
UTF-8
1,867
3.4375
3
[]
no_license
<?php // Parašykite funkciją, kuri mestų kauliuką iki kol iškris 5 arba 6. Visus savo metimus išvestų į ekrana.(while). // while ($rollRes < 5) { // $rollRes = rand(1, 6); // echo('<pre>'); // echo($rollRes); // } // echo('<br>'); // Papildomas funkcionalumas žaidimui(papildomas sudėtingumas): // Metame 2 ka...
true
8e7bc98a1b40ed5fa81587dd1fecddfb9e3bd4af
PHP
Nikolay-Mishin/_MySQL-Book_shop
/core/_classes/components/DB.php
UTF-8
640
2.796875
3
[]
no_license
<?php final class DB extends PDO { private static $instance = null; private function __construct() { include_once(MAIN . "/db_params.php"); $dsn = "mysql:host=$db_params[host];dbname=$db_params[dbname];charset=$db_params[charset]"; $opt = array(PDO::ATTR_DEFAULT_FETCH_MODE => PDO...
true
0fda39c33c0e8088440523b2afb1a7fd1bf7e58e
PHP
mouhied/open-5
/Models/PostsModel.php
UTF-8
2,789
2.96875
3
[]
no_license
<?php namespace App\Models; use App\Models\Model; class PostsModel extends Model { protected $id; protected $titre; protected $image; protected $chapo; protected $contenu; protected $auteur; protected $create_at; protected $users_id; public function __construct() { $t...
true
c1403ededad336c9fe05425a36a09a58f88afb2d
PHP
florianboyer/Projet1
/web/PHP⁄HTML/tabl_ex1.php
UTF-8
539
3.25
3
[]
no_license
<html lang=fr> <head> <meta charset="utf-8"> <title>Exercice1</title> </head> <body> <?php $tableau=array( "ligne 0"=>array("colone 0","colone 1","colone 2"), "ligne 1"=>array("colone 0","colone 1","colone 2"), "ligne 2"=>array("colone 0","colone 1","colone 2"), "ligne 3"=>array("colone 0","colone 1"...
true
e03b3c5ee327fd3d52b86a21488984ea1dbd3811
PHP
JustAuthMe/demo-website
/core/Entity.php
UTF-8
6,207
3.015625
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: peter_000 * Date: 16/06/2016 * Time: 19:59 */ namespace PitouFW\Core; use ReflectionClass; abstract class Entity { protected int $id = 0; /** * @return int */ public function getId(): int { return $this->id; } /** * @param int...
true
1fc50bfe350150f420b78f3fe477ecfb97fa6f09
PHP
xjtuwangke/laravel-cms
/src/Xjtuwangke/LaravelCms/Elements/Form/FormField/CheckGroup.php
UTF-8
1,600
2.765625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: kevin * Date: 14/9/24 * Time: 23:29 */ namespace Xjtuwangke\LaravelCms\Elements\Form\FormField; class CheckGroup extends FormFieldBase{ /** * checkbox val=>html对 * @var array */ protected $options = array(); /** * checkbox 被选中的值 * @...
true
07b58350879b80a199d433a5b7c8c6b630d2be6e
PHP
diSumma/iSete
/Sito/phps/connection.php
UTF-8
1,565
2.953125
3
[]
no_license
<?php class DB { private $host; private $usr; private $pwd; private $db; private $conn; private $res; function __construct($host, $usr, $pwd, $db=''){ $this->host = $host; $this->usr = $usr; $this->pwd = $pwd; $this->db = $db; $this->conn = null; $this->res = null; } public function...
true
1639965bb48500f2d4fc8b8ac38bfbd171795d2d
PHP
davidlkarp/CI-ninja-gold
/application/controllers/ninjaGold.php
UTF-8
2,612
2.734375
3
[]
no_license
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class ninjaGold extends CI_Controller { public $gold; public $energy = 100; public function index() { $this->load->view('ninjaGold'); $reset = $this->input->post('reset'); if($this->input->post('reset')) { $this->session->unse...
true
b5e17a39a04c53ffabb2f093957fdfe7b511f681
PHP
AdrianiBruss/miniRouterV2
/src/Router/Router.php
UTF-8
1,011
3.015625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: adrienbrussolo * Date: 01/12/2014 * Time: 12:27 */ namespace Router; use Symfony\Component\Yaml\Exception\RuntimeException; class Router implements \Countable { protected $routes; //$route = $route->getRoute('/php-route-2015/2'); // $route->getController() ...
true
12ff00fe6ae149010a2a2ff105f7abab73de9e36
PHP
e-spin/contao-form-scr-default
/e-spin_form-scr-default/classes/FormInsertTags.php
UTF-8
1,031
2.515625
3
[]
no_license
<?php /** * e-spin_form-scr-default extension for Contao Open Source CMS * * Copyright (C) 2014 e-spin * * @package e-spin_form-scr-default * @author e-spin <http://e-spin.de> * @author Ingolf Steinhardt <contao@e-spin.de> * @author Codefog <http://codefog.pl> * @author Kamil Kuzminski <kamil.kuzminski@c...
true
5a33b8cf3cd46e1d12d49bf45918473924c5c6ca
PHP
Nastialoli/intens
/forfor.php
UTF-8
492
3.140625
3
[]
no_license
<?php //Esli mi ne znaem skolko chisel v massive , no znaem chto eto dvumerniy mas, to po indeksu // $a = [1,2,3,4,5,6,7,8,9,10,[1,2,3,4,5,6,7,8,9,10]]; // for($i = 1, $gor = count($a) - 1; $i<=$gor; $i++) { // echo PHP_EOL; // for($j = 1, $vert = count($a[$gor]); $j<=$vert; $j++) { // echo $i*$j.'|'; //...
true
f89f60d03dbb03b326e81bd4676f0df1d9ed1f3f
PHP
victorynox/rollun-barcode
/src/Barcode/src/DataStore/Traits/ScansInfoTrait.php
UTF-8
471
2.609375
3
[]
no_license
<?php namespace rollun\barcode\DataStore\Traits; use Xiag\Rql\Parser\Query; /** * Trait ScansInfoTrait * @package rollun\barcode\DataStore\Traits * @const FIELD_ID */ trait ScansInfoTrait { /** * Return primary key identifier * * Return "id" by default * * @see DEF_ID * @return ...
true
5d3210eb7b295a46debfe5f2d021f6e62d206f71
PHP
Dhawala/fexcon
/includes.php
UTF-8
1,597
3.078125
3
[]
no_license
<?php //date range $number_of_days_in_month = cal_days_in_month(CAL_GREGORIAN,date('m'),date('Y')); $first_day = date('Y').'-'.date('m').'-01'; $last_day = date('Y-m-d',strtotime(date('Y-m').'-01 + '.$number_of_days_in_month.'days')); //GET request is present if(isset($_GET['date'])){ $date = strtotime(date($_G...
true
5d391c800eb679324b9770b1c3ad44d5f0ff776d
PHP
HalcyonEngineering/PVMS
/protected/controllers/TaskController.php
UTF-8
6,644
2.65625
3
[]
no_license
<?php class TaskController extends Controller { /** * @return array action filters */ public function filters() { return array( 'accessControl', // perform access control for CRUD operations 'postOnly + delete, dynamicUpdate', // we only allow deletion via POST request ); } /** * Specifies the ac...
true
aef0403b9da9306b8605fdfd1045bcb749ae1cd9
PHP
jaykrall/tornado
/src/lib/DataSift/Loader/Json.php
UTF-8
2,443
2.890625
3
[ "MIT" ]
permissive
<?php namespace DataSift\Loader; use Symfony\Component\Config\FileLocator; /** * Json file data loader * * LICENSE: This software is the intellectual property of MediaSift Ltd., * and is covered by retained intellectual property rights, including * copyright. Distribution of this software is strictly forbidden ...
true
45401148962adabc8b4c5a82d9bb64a02c52323f
PHP
CodewithSudeep/Tutorial-PHP-Edition
/Day 14/task5.php
UTF-8
119
2.890625
3
[]
no_license
<?php // create a function which returns square root of given number in argument // hint function(){ return number; }
true
b70eb55ea381a7fe6e590d9efd7353fe41a88594
PHP
KatyaPrusakova/PHP-Piscine
/day07/ex06/Fighter.class.php
UTF-8
235
3.3125
3
[]
no_license
<?php abstract class Fighter { private $who; public function __construct($target){ $this->who = $target; } public function _toString(){ return $this->who; } abstract function fight($targ); } ?>
true
ee0d60ab858afa767176498b3e762cdfec3a5a95
PHP
thomaskise/itc250Winter2019project
/demo/demo_mysqli.php
UTF-8
2,808
2.671875
3
[ "Apache-2.0" ]
permissive
<?php /** * demo_mysqli.php is both a test page for your mysqli connection, and a starting point for * building DB applications using mysqli connections * * @package nmCommon * @author Bill Newman <williamnewman@gmail.com> * @version 2.09 2011/05/09 * @link http://www.newmanix.com/ * @license https://www.apach...
true
2a387aefcac88290d50d6b3f1c61e44f220ec1aa
PHP
mustafa-mahmud/register-login
/read.php
UTF-8
1,140
2.734375
3
[]
no_license
<?php if (!isset($_SESSION)) { session_start(); } if ($_SERVER['REQUEST_METHOD'] === 'POST') { $ck = json_decode(file_get_contents('php://input')); if (isset($ck[2])) { $email = $ck[0]; $pass = $ck[1]; emailPassCk($email, $pass); return; } } function emailPassCk($email, $pass) { if ($email...
true
783d81eeef49ea26e85127861c5340cad490fdea
PHP
thanamart/dormitory
/myVideos.php
UTF-8
3,780
2.609375
3
[]
no_license
<?php include 'connectdb.php'; session_start(); if(isset($_GET['action'])){ if($_GET['action'] == 'edit'){ $strSQL = "SELECT * FROM videos WHERE video_id = '".$_GET["video_id"]."' "; $objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]"); $objResult = mysql_fetch_array($objQuery); }else if($_GET[...
true
90d70fa512a8a64e812b1b13a4af88609ddf46de
PHP
artnetepin/php-frameworks
/ci_example/application/views/test/names.php
UTF-8
96
2.765625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php foreach ($customers as $row) { echo $row['fname'].' '.$row['lname'].'<br>'; } ?>
true
f94ec68fbc30a4401132b7878d8ee6362164b535
PHP
tableau-mkt/eloqua_app_cloud
/src/Entity/EloquaAppCloudServiceInterface.php
UTF-8
2,261
2.546875
3
[]
no_license
<?php namespace Drupal\eloqua_app_cloud\Entity; use Drupal\Core\Entity\ContentEntityInterface; use Drupal\Core\Entity\EntityChangedInterface; use Drupal\user\EntityOwnerInterface; /** * Provides an interface for defining Eloqua AppCloud Service entities. * * @ingroup eloqua_app_cloud */ interface EloquaAppCloudS...
true
261ac56c7a061907fdfb555649b7cc6551e60650
PHP
Marriage-L-BPC-Cyan/newphp
/random.php
UTF-8
133
3.296875
3
[]
no_license
<?php $r = rand(1,6); echo "$r"; if ($r == 1) { echo "Almost Snake Eyes"; } elseif ($r == 6) { echo "Have a good day!"; ?>
true
5063125c0e3f412625cb281deb8ffda6c1ae0865
PHP
285984303/hy_api
/app/Jobs/TcpReFoward.php
UTF-8
2,071
2.78125
3
[]
no_license
<?php /** * @desc 消息转发重试 * author:Frank * date:2017/09/13 * 重试消息:refoward:* * 失败消息:tcp_msg_fail */ class TcpReFoward { private $redisHost = '127.0.0.1'; private $redisPort = '6379'; private $redis; public function __construct() { ini_set('date.timezone','Asia/Shanghai'); $thi...
true
dee8d9a06b8f2c986066798b25bc90743e2ef005
PHP
IwanToTeW/bookReview
/src/PostBundle/Repository/PostRepository.php
UTF-8
5,182
2.6875
3
[]
no_license
<?php namespace PostBundle\Repository; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\ORM\OptimisticLockException; use Doctrine\ORM\ORMException; use Doctrine\ORM\Query\ResultSetMapping; use PostBundle\Entity\Post; /** * Class PostRepository * @package PostBundle\Repository */ class PostRepository ...
true
71b59eb3bb0389ea30e7c4fb4c3bf6a9cb68c098
PHP
deyansp/dynamic-web-project
/script/delTourDate.php
UTF-8
2,396
2.640625
3
[]
no_license
<?php require 'dbCred.php'; session_start(); // if the script is to be accessed by anyone that isn't logged in as admin if($_COOKIE['name'] !== "Admin" || $_SESSION['email'] !== "admin@loremipsum.com") { echo "<h2>Access Denied!</h2>"; exit; } if (isset($_GET['id'])) { $id = sanitizeInput($_GET["id"])...
true
c967542d628061648164387375a53743814d8d40
PHP
danbockapps/tracker
/activate.php
UTF-8
1,155
2.515625
3
[]
no_license
<?php require_once("config.php"); function correct_key($email, $key) { $result = pdo_seleqt(" select activation from wrc_users where email = ? ", array($email)); if($result[0]['activation'] === $key || $result[0]['activation'] == null) { return true; } else { return false; ...
true
dca1e7402d43136946962d520c946d31db82f890
PHP
zayro/encuesta-lector
/backend/librerias/clases/clase_comprimir.php
UTF-8
1,110
2.84375
3
[]
no_license
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ namespace comprimir; /** * Description of clase_comprimir * * @author Usuario */ class comprimir extends ZipArchive { p...
true
316975a6413961c1d01b4ea0a5c76248bbf0da52
PHP
adienurzaman/sisfo_xyz
/application/models/M_set_pelaporan.php
UTF-8
2,700
2.546875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php class M_set_pelaporan extends CI_Model { function __construct() { parent::__construct(); } //function menampilkan data function get_data($id_user) { $query = $this->db->query("SELECT * FROM credit_set_input WHERE id_user='$id_user' ORDER BY bulan,minggu ASC"); foreach ($...
true
7df5347dad0549722382697f24eeb82e0a2e0fd2
PHP
jborel1201/projet-exam
/app/daos/UploadDao.php
UTF-8
2,739
2.90625
3
[]
no_license
<?php require_once ENTITIES_PATH . 'FileUpload.php'; require_once ENTITIES_PATH . 'DocumentUpload.php'; class UploadDao { public static function select($collection) { $arrayResult = []; $cursor = $collection->find(); foreach ($cursor as $document) { $object = new Documen...
true
2a8d67c392c295c1a39fe94ba420ee56dd22f6c3
PHP
DBRisinajumi/Dimensions
/demo/split_old.php
UTF-8
1,170
2.578125
3
[]
no_license
<?php /** * Amount split * * @author Juris Malinens <juris.malinens@inbox.lv> * @author Uldis Nelsons <uldisnelsons@gmail.com> */ $sTitle = "Table data which can be categorized and split further"; require 'views/header.php'; ?> <table class="dim_table"> <tr> <th>Account holder</th> <th>Transac...
true
c71ed6fbfdaf9a8ed0702629a1fb910d4c342c4c
PHP
nadee85/TopNotch
/model/User.php
UTF-8
1,584
2.515625
3
[]
no_license
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * Description of User * * @author Nadeeshani */ class User extends IdentifiedBaseModel{ //put your co...
true
1d7526e37b0f0fb12289a801a113ef2818b205cc
PHP
michel-p/basic-php-api
/classes/database/PDOSingleton.php
UTF-8
2,549
3.375
3
[]
no_license
<?php namespace BasicPHPAPI\Database; use PDO; use PDOException; use PDOStatement; /** * PDO SINGLETON CLASS */ class PDOSingleton { static private $PDOInstance; /** * PDOSingleton constructor. * @param $dsn string eg: mysql:host=localhost;dbname=testdb * @param bool (optionnal) $username ...
true
7d24d2d778b40a16dee652e9df9b2490e7f36aa2
PHP
hxpdeihgu/wechat
/package/PostXmlPackage.php
UTF-8
756
2.71875
3
[ "BSD-3-Clause" ]
permissive
<?php /** * @author: hxp * @Date: 16/7/15 * @Time: 下午5:00 */ namespace app\package; class PostXmlPackage { private $postXml; /** * 设置xml * @author hxp * @param $postXml */ public function setPostXml($postXml){ $this->postXml = $postXml; return $this; } /** ...
true
f069d0bfc7f178f0296fff6384a15d04162366b2
PHP
TheoOpenCR/Projet4
/model/CommentManager.php
UTF-8
1,799
2.703125
3
[]
no_license
<?php require_once(__DIR__."/Manager.php"); class CommentManager extends Manager { public function getComments($postId) { $db = $this->dbConnect(); $comments = $db->prepare('SELECT id, author, comment, is_reporting, DATE_FORMAT(comment_date, \'%d/%m/%Y à %Hh%imin%ss\') AS comment_date_fr FROM c...
true
a0e0a788381a9ce84051e78b3c68e40c78a10b26
PHP
peaceman/vpfw-fj
/Vpfw/Language/Storage/Database.php
UTF-8
3,179
2.953125
3
[]
no_license
<?php class Vpfw_Language_Storage_Database implements Vpfw_Language_Storage_Interface { /** * @var Vpfw_DataMapper_Language */ private $languageMapper; /** * @var Vpfw_DataObject_Language[] */ private $languageDaos = array(); /** * @param Vpfw_DataMapper_Language $language...
true
71b87bb509c69bd1ebcf713875ffe104e5d6062f
PHP
owner888/kaliphp
/src/lib/cls_msgbox.php
UTF-8
2,403
2.625
3
[ "MIT" ]
permissive
<?php /** * KaliPHP is a fast, lightweight, community driven PHP 5.4+ framework. * * @package KaliPHP * @version 1.0.1 * @author KALI Development Team * @license MIT License * @copyright 2010 - 2018 Kali Development Team * @link http://kaliphp.com */ namespace kaliphp\lib; use kaliphp\kali...
true
059229ffd91deb7574d458d3cb5fe3fda747d358
PHP
ricardorohde/hungrice
/class/Client.class.php
UTF-8
2,171
2.8125
3
[]
no_license
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * Description of Client * * @author Fabio-CSM */ class Client extends AUser{ private $college; ...
true
6f0c097c15e5c4c59c044b61670aff662a583b76
PHP
fracz/refactor-extractor
/results/moodle--moodle/cae837087adcb175ecc33935560aebaabcca5e1f/after/assignment.class.php
UTF-8
12,268
2.515625
3
[]
no_license
<?php require_once($CFG->dirroot .'/blog/lib.php'); require_once($CFG->libdir.'/formslib.php'); /** * Extend the base assignment class for offline assignments * */ class assignment_blog extends assignment_base { function assignment_blog($cmid='staticonly', $assignment=NULL, $cm=NULL, $course=NULL) { p...
true
abf3a8fb1a030ce8461539805b741c72417294a5
PHP
ASeoighe/ESB-Work
/DatabaseUI/SearchSQLwithPHP.php
UTF-8
2,811
2.546875
3
[]
no_license
<?php $db_hostname = 'localhost'; $db_username = 'root'; $db_password = ''; $db_database = 'coalyard'; // Database Connection String global $con; $con = mysql_connect($db_hostname,$db_username,$db_password); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db($db_database, $...
true
519beb0c072e7863e18f921c956b56fe99c31703
PHP
NsonguruaJohnson/Study-Pal
/change-password.php
UTF-8
4,892
2.890625
3
[]
no_license
<?php // Initialize session session_start(); // Check if the user is logged in, if not then redirect to login page // if (!isset($_SESSION["loggedin"]) || $_SESSION["loggedin"] !== true){ // header("location: login.php"); // exit(); // } if(!isset($_COOKIE['userid']) || !isset($_COOKIE['useremail'])){ ...
true
d4948826430443b32156c51e6dce2ad2d6aede09
PHP
pavlin-policar/TPO-zdravstveni-is
/app/Http/Controllers/ChargeController.php
UTF-8
3,657
2.59375
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Http\Requests; use App\Http\Requests\CreateChargeRequest; use App\Models\User; use App\Repositories\UserRepository; use Illuminate\Support\Facades\Auth; class ChargeController extends Controller { private $users; /** * ChargeController constructor. * ...
true
97c1b03bb18d85610f3197a85a5a54382bf59480
PHP
Craig-J-Roberts/Network-Tools
/src/Iwconfig.php
UTF-8
7,395
2.78125
3
[]
no_license
<?php namespace cjr\NetworkTools; use cjr\NetworkTools\Exception\InvalidInterfaceException; use cjr\NetworkTools\Exception\WPASupplicantStillRunningException; use cjr\NetworkTools\Exception\WPASupplicantNotRunningException; use cjr\NetworkTools\Exception\InvalidEncryptionTypeException; use cjr\NetworkTools\WPASupplic...
true
e3db03c37a6b4aa7646d032c0f9dced01b40bdaa
PHP
amyrhaq/PHP-in-Action
/Introduction-to-PHP/echo.php
UTF-8
312
3.296875
3
[]
no_license
<!-- Go ahead and write the PHP code to echo "I'm learning PHP!" on line 10. --> <!DOCTYPE html> <html> <head> <title>Hello, World!</title> </head> <body> <!-- Add your PHP code in the tag below! --> <h1><?php echo "I'm learning PHP!"; ?></h1> </body> </html>
true
5ccf85320d264fae010acf42267182bcfda505de
PHP
steevy007/SimpleLoginPHP
/index.php
UTF-8
997
2.703125
3
[]
no_license
<?php session_start(); require_once 'connectUser.php'; //require_once ?> <!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> <center> <form method="post"> ...
true
2611e3c1a2e6aea47a76ecad2b8eca65a8841c82
PHP
BrianToro/EjerciciosPHP
/views/Players.php
UTF-8
1,649
2.609375
3
[]
no_license
<?php require_once '../controllers/FormController.php'; $form = new FormController(); $response = $form->getPlayers(); ?> <html> <head> <title>Formulario mundial</title> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC1...
true
885688d9f843e1caca4488a9ab790cb9964b7735
PHP
zjjxlfl/miulee-amazon-advertising
/src/SponsoredProducts/BudgetRules/Client.php
UTF-8
959
2.71875
3
[ "Apache-2.0" ]
permissive
<?php namespace easyAmazonAdv\SponsoredProducts\BudgetRules; use easyAmazonAdv\Kernel\BaseClient; /** * Class Client. * * @author baihe <b_aihe@163.com> * @date 2019-11-12 09:43 */ class Client extends BaseClient { /** * getBudgetRules. * * @param int $pageSize Sets a limit on the nu...
true
877724f8d71c2fc7a4f7469615e1bdfe0c8c9858
PHP
sldevand/activapi.fr
/lib/SFram/Helpers/DateHelper.php
UTF-8
302
2.828125
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php namespace SFram\Helpers; use DateTime; use Exception; /** * Class DateHelper * @package SFram\Helpers */ class DateHelper { /** * @return string * @throws Exception */ public static function now() { return (new DateTime())->format('Y-m-d H:i:s'); } }
true
cc81fd37de0e32a9c080e26245bb7393f156f393
PHP
faizinur/blacktriangle
/application/controllers/mahasiswa.php
UTF-8
1,432
2.515625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php class Mahasiswa extends CI_Controller{ function __construct(){ parent::__construct(); $this->load->model('m_mahasiswa'); $this->load->helper('url'); //helper url } function index(){ // load halaman $this->load->view('v_login'); } function cek(){ $nama = $this->input->post('nama'); $pass = $th...
true
30183728aa8ffd824e62e4ab5cf6e875d7e86398
PHP
edgewl2/DavisFrameworks
/app/Core/Http/Thunder/Route/RouterException.php
UTF-8
546
2.703125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Luis Solorzano * Date: 08-21-16 * Time: 09:03 AM */ namespace Davis\Core\Http\Thunder\Route; class RouterException extends \Exception{ public function __construct($message, $code, \Exception $previous) { parent::__construct($message, $code, $previous); } public sta...
true
65ea06a90ea0545ee5f51f25fcda0f84973cf58c
PHP
lebedyncrs/calendar-graphql-api
/app/database/seeds/AccessLevelsTableSeeder.php
UTF-8
508
2.734375
3
[]
no_license
<?php use Illuminate\Database\Seeder; use \App\Models\AccessLevel; class AccessLevelsTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $accessLevels = [ ['name' => 'Read', 'key' => 'read'], ['name' => ...
true
6201ad8710e61482fb898c8c818b9152ec44b542
PHP
MobydickUA/imdb_parser
/database/migrations/2019_08_24_155223_create_all_tables.php
UTF-8
1,504
2.703125
3
[]
no_license
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateAllTables extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('actors', function ...
true
9714536f6885cd61e0a8c54907bb28fb70d4939b
PHP
milkcreation/presstify-woocommerce
/Metabox/MetaboxProduct.php
UTF-8
4,725
2.53125
3
[]
no_license
<?php declare(strict_types=1); namespace tiFy\Plugins\Woocommerce\Metabox; use tiFy\Plugins\Woocommerce\{Contracts\MetaboxProduct as MetaboxProductContract, WoocommerceAwareTrait}; use tiFy\Support\{ParamsBag, Proxy\PostType}; use WP_Screen; /** * @see /wp-content/plugins/woocommerce/includes/admin/meta-boxes/class...
true
9a78062709b599dcf1778c7aa24e5b018c63c3ae
PHP
Vaporbook/EpubFramework
/lib/uuidGen.php
UTF-8
1,112
3.015625
3
[ "MIT" ]
permissive
<?php class uuidGen { public static function generateUuid() { // The field names refer to RFC 4122 section 4.1.2 return sprintf('%04x%04x-%04x-%03x4-%04x-%04x%04x%04x', mt_rand(0, 65535), mt_rand(0, 65535), // 32 bits for "time_low" mt_rand(0, 65535), // 16 bits for "time_mid" mt_ran...
true
4c5bc715d55ac187ccdce3d392f2a6e969bcfe15
PHP
asmaerafie/application
/app/Http/Controllers/LoginController.php
UTF-8
963
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; class LoginController extends Controller { public function __construct() { // $this->middleware('guest'); // $this->middleware('auth'); } public function showLogin() { ...
true
1c83cd93a71c779e0fe8f66bf795dd4d70b63e08
PHP
rakibtg/ZincPHP
/libraries/Greetings/Greetings.php
UTF-8
203
2.96875
3
[ "MIT" ]
permissive
<?php namespace Greetings; /** * Describe what your library class would do. * */ class Greetings { function hello() { return 'hello world from greetings library'; } }
true
5c1ce19e5b2bb6957383ab54d3b3a3ae7de1d4ca
PHP
Mahabub1727/webtech
/Lab Task 3/registration.php
UTF-8
9,033
3
3
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <style> .error {color: #FF0000;} </style> </head> <body> <?php $nameErr = $emailErr = $unameErr = $passwordErr = $cpasswordErr = $genderErr = $DateofBirthErr = ""; $name = $email = $uname = $password = $cpas...
true
b7b14583f5e369409dd735e3ee24a92e2cb4e948
PHP
whaatt/Garuda
/application/packets.php
UTF-8
39,005
2.75
3
[]
no_license
<?php require_once('conf.php'); require_once('query.php'); require_once('libs/dompdf/dompdf_config.inc.php'); //Used for generating PDFs /* Packets Handler */ function isPosInt($input){ if (strval(intval($input)) == $input and intval($input) > 0){ return true; } else{ return false; } } function mtRandShu...
true
4c23af3bdc4c3b34b345b52396eee29844f8f18c
PHP
Jrius4/pos_app_desktop
/www/database/seeds/TransactionsSeeder.php
UTF-8
3,743
2.515625
3
[ "MIT" ]
permissive
<?php use App\Product; use App\Sale; use App\Transaction; use Carbon\Carbon; use Illuminate\Database\Seeder; use Illuminate\Support\Facades\DB; class TransactionsSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $transactions = ne...
true
8b65dcac470ece132cf4e82bf802f43cea4323b1
PHP
DomingosCastroDC/Alguns-C-digos
/exemplo.php
UTF-8
1,613
2.671875
3
[]
no_license
<?php require_once __DIR__."/configDb.php"; /** * @var $query Faz a consulta no banco de dados * @var $getAll pega todos os dados do banco de dados */ $sql = "SELECT * FROM cursos ORDER BY ordem "; $query = $conexao->query($sql); $getAll = $query->fetchAll(PDO::FETCH_OBJ); ?> <!DOCTYPE html> <html lang="en"> <...
true
0eea159a90298546366a9bb09a93eab8b456fd06
PHP
oliviermar/quizz.be
/src/App/Command/CreateQuestionCommand.php
UTF-8
1,682
3.0625
3
[]
no_license
<?php namespace App\App\Command; use Ramsey\Uuid\UuidInterface; /** * Class CreateQuestionCommand * * @author Olivier Maréchal <o.marechal@wakeonweb.com> */ class CreateQuestionCommand { /** @var string */ private $id; /** @var string */ private $label; /** @var bool */ private $qcm; ...
true
123ab3ac37ad5cdadd3142f8ba8a61615926a429
PHP
papillon078/hopitalE2N
/controllers/exo06_getAppointmentListController.php
UTF-8
404
2.671875
3
[]
no_license
<?php // création d'une instance de classe Appointment $appointment = new Appointment(); // récupération de la liste des clients $appointmentList = $appointment->getAppointmentList(); //reception des messages de notification (création ou suppression d'un rendez-vous if (isset($_SESSION['successMessage'])){ $mess...
true
af571c8a07ee08536f971bfc6ccb4a5ae14ad1b2
PHP
albertcarrete/ac2292777
/Personal/user.php
UTF-8
617
2.75
3
[]
no_license
<?php /** * */ class User { function __construct() { # code... } function getInfo($user_id,$data_retrieve,$dbc){ $selectUserToEdit = "SELECT username,first_name,last_name,email FROM `47924`.`ac2292777_personal_users` WHERE user_id='$user_id'"; $queryUserToEdit = @mysqli_query ($dbc, $selectUserToEdi...
true
883d7e0b5c65dc1ec782cf967bdfe8cb05ee6b1c
PHP
gferter/mlc-tools
/php_tests/test.php
UTF-8
1,983
2.84375
3
[]
no_license
<?php function test_enums(){ require_once "gen/EnumTest.php"; require_once "gen/EnumHolder.php"; $xml_data = '<data value="test_value_1"><map><pair key="test_value_2" value="string_value"/></map></data>'; $xml = simplexml_load_string($xml_data); $test = new EnumHolder(); $test->deserialize($x...
true
babe839411bf137d37520b276d748a8e8357c881
PHP
flyandi/mg-framework
/platform/components/component.googleanalytics/googleanalytics.component.php
UTF-8
2,073
2.640625
3
[]
no_license
<?php /* (mg)framework Version 5.0 Copyright (c) 1999-2011 eikonlexis LLC. All rights reserved. This program is protected by copyright laws and international treaties. Unauthorized reproduction or distribution of this program, or any portion thereof, may result in serious civil and criminal penalties...
true
e333438759d593aef8c726763749c63c04d2e5c0
PHP
alphagov/accessibility-monitoring
/phppgadmin/htdocs/dataimport.php
UTF-8
7,612
2.65625
3
[ "GPL-2.0-or-later", "MIT" ]
permissive
<?php /** * Does an import to a particular table from a text file * * $Id: dataimport.php,v 1.11 2007/01/22 16:33:01 soranzo Exp $ */ // Prevent timeouts on large exports (non-safe mode only) if (!ini_get('safe_mode')) set_time_limit(0); // Include application functions include_once('./libraries/lib.inc...
true
7e00dd0a74c0f15c38ae9cd11ad9fb10b562efb4
PHP
kit9/s2sHRMS
/admin/controller/leave_type.php
UTF-8
3,600
2.609375
3
[]
no_license
<?php include '../config/class.config.php'; $con = new Config(); header("Content-type: application/json"); $verb = $_SERVER["REQUEST_METHOD"]; if ($verb == "GET") { $arr = array(); $arr = $con->SelectAll("leave_type"); $count = count($arr); if ($count >= 1) { echo "{\"data\":" . json_encode($ar...
true
625c099d55f2d2f3fa1a191b438d5ef0e9b43191
PHP
cosmin-z/LibriPerTutti
/ricercaLista.php
UTF-8
499
2.90625
3
[]
no_license
<?php include 'connection.php'; $chiave = $_GET['chiave']; $sql = "SELECT titolo, autore from libri where libri.titolo LIKE '%$chiave%' or libri.autore LIKE '%$chiave%'"; $result = mysqli_query($conn, $sql); if($result) { $risultati = []; while ($ricerca = mysqli_fetch_array($result)) { array_push($r...
true
52de7d21df001e4d8df85ef9661842a52806f4e9
PHP
cdnsteve/segment-php-sdk
/src/Validate.php
UTF-8
5,250
2.65625
3
[ "MIT" ]
permissive
<?php namespace CdnSteve\Segment; class ValidationException extends \Exception{} class Validate { /** * Validate common parameters between all request types. * @param array $message * @throws \CdnSteve\Segment\ValidationException */ public function common(array $message) { // Check userId or ano...
true
6ac0616084b21c6f983d8b83bc1c6f1c3da43588
PHP
jfm-wcs/remote-0921-php-basics-1
/script.php
UTF-8
243
3
3
[]
no_license
<?php define("NUMBER", 42); // const NUMBER = 42; $fruits = ["orange", "pomme"]; // array_push($fruits, "banane", "poire"); $fruits[1] = "banane"; $fruits[3] = "poire"; $fruits[104] = "cerise"; array_push($fruits, "prune"); print_r($fruits);
true
381d93e01339d27dccc8eae2438ebd53a1ecdf06
PHP
sushil74432/summary_login
/file_to_db.php
UTF-8
2,931
3.140625
3
[]
no_license
<?php include_once 'db.php'; include_once "utils.php"; include_once "pole.php"; include_once "sapling.php"; include_once "seedling.php"; include_once "tree.php"; // Include PHPExcel_IOFactory include_once 'PHPExcel-1.8/Classes/PHPExcel/IOFactory.php'; function file_to_db($inputFileName){ global $conn; $abso...
true
a5d9ecf26a55d2bc8acc8e02424540836c60d584
PHP
pshen1983/panda
/_obj/ForumMessage.inc.php
UTF-8
2,243
2.953125
3
[]
no_license
<?php include_once ("../utils/DatabaseUtil.php"); class ForumMessage { private $id; public $sid; public $tid; public $reply; public $body; private $creator; private $ctime; public static function addMessage($sid, $tid, $reply, $body) { $db_connection = DatabaseUtil::getConn(DatabaseUtil::$FBBS); $query...
true
a9943965ed2182a72899e706243407010dbfbeca
PHP
khuesmann/meshnetconfig
/app/Http/Controllers/BuildingController.php
UTF-8
2,696
2.6875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Http\Requests\BuildingFormRequest; use App\Models\Building\Building; use Illuminate\Http\Response; class BuildingController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\Vi...
true
983114a35b573b1c79397aaa3ed1171eb035f9a0
PHP
yuricoco/devups
/dclass/devups/QueryBuilder.php
UTF-8
23,959
2.828125
3
[]
no_license
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * Description of QueryBuilder * * @author Aurelien Atemkeng */ class QueryBuilder extends \DBAL { // private $table...
true
9f82238eb296a903c0ca7b9438c0f9fecf34636e
PHP
Aimypalo/wp-synergyoflondon
/wp-content/plugins/autonav-wl/autonav-read-pdf.php
UTF-8
856
2.59375
3
[ "MIT" ]
permissive
<?php /* Plugin Name: Autonav PDF Image reader Description: Experimental support for creating PDF thumbnails with AutoNav Author: William Lindley Author URI: http://www.saltriversystems.com/ */ function autonav_read_pdf($img_resource, $pic_full_path, $attr, $ext) { if (!isset($img_resource)) { switch ($ext) { ...
true
498a336601acf240c3977b0f5e59babaca46291d
PHP
duongko/project2
/Bài tập C (Array)/c6.php
UTF-8
1,281
3.328125
3
[]
no_license
<?php $dayso = 0; //nhận dãy số nhập vào if (isset($_POST['n'])) { $dayso = $_POST['n']; } // ?> <!-- // Form nhập vào dãy số--> <form action="#" method="post"> <table> <tr> <td>Nhập dãy số tự nhiên:</td> <td><input type="text" name="n" value="<?= $dayso ?>" /></td> </...
true
51c8dda1ece5ff73b2e3a8dc333ecac93995150a
PHP
jkimbo/phabricator
/src/applications/files/view/PhabricatorFileSideNavView.php
UTF-8
1,227
2.671875
3
[ "Apache-2.0" ]
permissive
<?php final class PhabricatorFileSideNavView extends AphrontView { private $selectedFilter; public function setSelectedFilter($selected_filter) { $this->selectedFilter = $selected_filter; return $this; } private function getSelectedFilter() { return $this->selectedFilter; } public function re...
true
1b718b13ad3f0180da984c1954b88e848f121771
PHP
octavioalapizco/symfony
/src/Acme/BlogBundle/Controller/BlogController.php
UTF-8
5,346
2.53125
3
[ "MIT" ]
permissive
<?php namespace Acme\BlogBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\Request; use Acme\UserBundle\Entity\User; use Acme\BlogBundle\Entity\Blog; class BlogController extends Controller { public fu...
true
8dcd9dfcf98e8c3fd1e4f5390025596731dc9f55
PHP
yuback/userManagement
/Model/AdminModel.php
UTF-8
1,999
2.859375
3
[]
no_license
<?php class AdminModel extends Model{ private $name; private $content; private $mysqli; private $affectRow; public function __construct(){ parent :: __construct(); } //增加新群组 public function addGroups($name){ $name = $this -> escape($name); $sql = sprintf("INSERT INTO `groups` SET `groups_n...
true
3eb776fd93321522b7423d975cb84518a4c26752
PHP
bicermukremin/laravel-vue_site_and_blog
/app/Http/Requests/ProfileRequest.php
UTF-8
2,530
2.6875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Requests; use Illuminate\Http\Request; use Illuminate\Foundation\Http\FormRequest; class ProfileRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true;...
true
144bec5cdbf19501a8e171f1073d1b9c444047e4
PHP
WebChemistry/oauth2-seznam
/src/Provider/Seznam.php
UTF-8
1,625
2.515625
3
[]
no_license
<?php declare(strict_types = 1); namespace WebChemistry\OAuth2\Client\Seznam\Provider; use League\OAuth2\Client\Provider\AbstractProvider; use League\OAuth2\Client\Provider\Exception\IdentityProviderException; use League\OAuth2\Client\Token\AccessToken; use Psr\Http\Message\ResponseInterface; final class Seznam exte...
true
e5f44ef7930590deb9ba984c9680459ff0177ed6
PHP
mikewuu/bemail
/app/Translation/Translators/Gengo/GengoCallbackRequest.php
UTF-8
1,471
2.640625
3
[]
no_license
<?php namespace App\Translation\Translators\Gengo; use Illuminate\Http\Request; /** * Class GengoCallbackRequest * @package App\Translation */ class GengoCallbackRequest { /** * @var Request */ private $request; /** * Create GengoCallbackRequest instance. * * @param Request ...
true
7250c270f525b541132396ffc06ed14ef9740047
PHP
lufree/widget
/lib/Widget/Exception/NotFoundException.php
UTF-8
549
2.6875
3
[ "MIT" ]
permissive
<?php /** * Widget Framework * * @copyright Copyright (c) 2008-2013 Twin Huang * @license http://opensource.org/licenses/mit-license.php MIT License */ namespace Widget\Exception; /** * Exception thrown if any resource or record not found * * @author Twin Huang <twinhuang@qq.com> */...
true
7ed36d4a7d52312815dff4aa1d7917c132907a22
PHP
UTN-FRD/encuesta-docente
/protected/models/Participants.php
UTF-8
4,651
2.703125
3
[]
no_license
<?php /** * This is the model class for table "participants". * * The followings are the available columns in table 'participants': * @property string $participant_id * @property string $firstname * @property string $lastname * @property string $email * @property string $language * @property string $blacklist...
true
1e67905d3ad95eed3c239f92d2a132c322f6a8dd
PHP
ardiantrik/spotify_tcc
/application/controllers/main_controller.php
UTF-8
10,472
2.546875
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class main_controller extends CI_Controller { public function __construct(){ parent::__construct(); $this->load->model('main_model'); $this->load->library('session'); } public function index(){ //$this->load->vie...
true
912ba31062c59a95ddadfe097d63ddf2e36c8143
PHP
Seraphp/main
/tests/Server/Registry/RegistryTest.php
UTF-8
1,990
2.609375
3
[]
no_license
<?php /** * File documentation * @author Peter Nagy <antronin@gmail.com> * @version $Id$ * @filesource */ require_once 'Server/Registry/Registry.class.php'; /** * Class documentation */ class RegistryTest extends PHPUnit_Framework_TestCase { private $_reg = null; function setUp() { $this->...
true
f00b4cbb659f664d97c3a49097a148d67107e914
PHP
Rene-Roscher/laravel-tickets
/src/Traits/HasTicketReference.php
UTF-8
217
2.5625
3
[ "MIT" ]
permissive
<?php namespace RexlManu\LaravelTickets\Traits; trait HasTicketReference { public function toReference() : string { $type = basename(get_class($this)); return "$type #$this->id"; } }
true
daeca5fa409f24cf23faa6713e40d45dcb5a53fc
PHP
digit01Wave/surveyMonkey
/app/controllers/QuestionController.php
UTF-8
2,126
2.703125
3
[ "MIT" ]
permissive
<?php class QuestionController extends BaseController { public function storeQuestions($cat_id) { $validator = Validator::make(Input::all(), array( 'question'=>'required' )); if($validator->fails()) { return Redirect::route('survey-category', $cat_id)->withInput()->withErrors($validato...
true