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
c2d51a6d99366e1b36a612af4a7628632362a558
PHP
pinguinato/corso-phpunit
/src/Person/Person.php
UTF-8
821
3.46875
3
[]
no_license
<?php class Person { private $firstName; private $lastName; private $address; private $age; private $telephone; public function __construct( $firstName, $lastName, $address, $age, $telephone ) { $this->firstName = $firstName; $th...
true
5048d68a65e5632799b315f62e5e7c9fef87769f
PHP
ahmjw/php-dom-view
/src/View.php
UTF-8
2,472
2.734375
3
[]
no_license
<?php /** * Japan, Gunma-ken, Maebashi-shi, January 4th 2018 * * @link http://chupoo.introvesia.com * @author Ahmad <rawndummy@gmail.com> */ namespace Introvesia\PhpDomView; /** * @package Introvesia * @subpackage PhpDomView * @copyright Copyright (c) 2016-2018 Introvesia (http://chupoo.introvesia.com) ...
true
76d5b40ed821b13497866173dae36897b7e7ec7f
PHP
daniel5268/Meye
/app/Http/Controllers/BossController.php
UTF-8
1,033
2.515625
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\UserRepo; class BossController extends Controller { public function init(){ if (is_null(UserRepo::findByUsername('admin'))){ UserRepo::create('admin','admin','admin'); UserRepo::create('master','master','mas...
true
c5f2eb28ebc5fdfe4c4712e8df98d6dde488ba76
PHP
erickcastelo/rest-api-prontuario
/models/Classificacao.php
UTF-8
1,140
2.5625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use Yii; /** * This is the model class for table "classificacao". * * @property integer $id * @property string $nome * * @property Examelaboratorial[] $examelaboratorials */ class Classificacao extends \yii\db\ActiveRecord { /** * @inheritdoc */ public static func...
true
014e0f08eef5010d499165f7a1b73e8060dc8d6d
PHP
teodorus-nathaniel/Training-SWP
/core/Connection.php
UTF-8
3,062
3.125
3
[]
no_license
<?php class Connection { private static $connection; private $mysqli; private function __construct(string $server, string $username, string $password, string $database) { $this->mysqli = mysqli_connect($server, $username, $password, $database) or die('set your database configuratio...
true
5915ff757935a6b8f17b43e62b78ab3ad663ebb5
PHP
cq522138/thuchanh1
/ung_dung_tu_dien/ungdungtudien.php
UTF-8
518
3.046875
3
[]
no_license
<?php $dictionary = array( "hello" => "xin chào", "how" => "thế nào", "book" => "quyển vở", "computer" => "máy tính"); if ($_SERVER["REQUEST_METHOD"] = "POST") { $searchword = $_POST["search"]; $flag = 0; foreach ($dictionary as $word => $description) { if ($searchword == $word) { ...
true
8a81eb26685318db2c83cde8c305809a14fe2da3
PHP
koredalin/PublicArchive
/IgraNSS4_OOP/old_versions/backup 26VIII2013/Pawn.class.php
UTF-8
1,123
3.046875
3
[]
no_license
<?php class Pawn{ private $color; private $pos_num; private $number; private $home_pos_num; public function __construct($color, $number, $pos_num=0){ $this->color=$color; $this->pos_num=$pos_num; $this->number=$number; } public function newPosition($new_pos) { $this->pos_num=$new_pos; ...
true
88c1ff6e5951e2785956b4fbfbd34f5b1cf7582f
PHP
roccozanni/growler
/src/Growler/Notification.php
UTF-8
1,227
3.453125
3
[ "MIT" ]
permissive
<?php namespace Growler; class Notification { private $_type; private $_title; private $_message; private $_icon; /** * @param Growler\NotificationType $type The notification type * @param string $title The title * @param string ...
true
bb8613e44aa3bc5fb6aed0edbfe43efdb27b2280
PHP
BagerManBG/PU-PHP-Cryptography
/src/SHA1.php
UTF-8
2,787
3.140625
3
[]
no_license
<?php namespace src; class SHA1 extends HashAlgorithm { /** * {@InheritDoc} */ public static function create() { return new SHA1(); } /** * @return string */ public function hash() { $h0 = '67452301'; $h1 = 'EFCDAB89'; $h2 = '98BADCFE'; $h3 = '10325476'; $h4 = 'C3D2E1F0'...
true
d32f29738c90f34c1f9c0eb9d4c610e98591d4ed
PHP
josephdeeb/SENG300
/viewComs.php
UTF-8
4,551
2.71875
3
[]
no_license
<!-- viewComs.php ---------------------------------------------------------------------------------------------------------------------------------------------------- This page is for submitters to view the comments that have been made on their journals. Users are given the option to upload a revised version ...
true
563445cb16ba4abb7be435ccac5475c5cebd45bf
PHP
VinceM83/Discussion
/test/utilisateur.test.php
UTF-8
227
2.765625
3
[]
no_license
<?php require_once('../classes/utilisateur.class.php'); $paul = new Utilisateur('Paul'); $ringo = new Utilisateur('Ringo'); $john = new Utilisateur('John'); $george = new Utilisateur('George'); echo $john->getPseudo();
true
114b60bb2558ddb131c9de02c8b8b8e3ec98a1ce
PHP
ghaitsatha/skripsi
/core/prosescrud.php
UTF-8
3,303
3
3
[ "Apache-2.0" ]
permissive
<?php class prosesCrud { protected $db; function __construct($db){ $this->db = $db; } function proses_login($username,$password) { // untuk password kita enkrip dengan md5 $row = $this->db->prepare('SELECT * FROM tbl_user WHERE username=username AND password=md5(password)'...
true
d838d5ac093c58817b35c779a316918b67469f20
PHP
RezaulAlamOni/Web-Engineering-
/3PHP&MySql/b/show.php
UTF-8
2,372
2.640625
3
[]
no_license
<?php require_once('db.php'); ?> <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Employee L...
true
aec37515476e189c8f58725bf6488641ae5d55ad
PHP
tdorkaa/ToDoApp
/Tests/Validator/InputValidatorTest.php
UTF-8
3,421
2.75
3
[]
no_license
<?php use PHPUnit\Framework\TestCase; use ToDoApp\Entity\Todo; use ToDoApp\Exception\InvalidInputException; use ToDoApp\Validator\InputValidator; class InputValidatorTest extends TestCase { /** * @var InputValidator */ private $inputValidator; protected function setUp() { $this->inp...
true
5161cbd38cab3b08244cd6f881af4292d69e95a2
PHP
doulmi/Laravel-Vuejs-Ecommerce
/app/Http/Controllers/AddressController.php
UTF-8
1,916
2.609375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Http\Requests\AddressRequest; use App\Models\Address; use App\Repositories\AddressRepository; use Auth; use Illuminate\Http\Request; class AddressController extends Controller { private $repo; public function __construct(AddressRepository $repo) { $this->repo = ...
true
9722295ba78412641197ed8302c6cec151d1d8a9
PHP
torilife/torilife
/fuel/app/classes/controller/error.php
UTF-8
1,003
2.609375
3
[ "MIT" ]
permissive
<?php class Controller_Error extends Controller_Site { /** * The 404 action for the application. * * @access public * @return Response */ public function action_404() { $this->template->title = '404 Not Found'; $this->template->header_title = site_title($this->template->title); $this->template-...
true
c4510c55f552560ddb7b42a6295c74deca837025
PHP
Axelcureno/core
/classes/View/PHP.php
UTF-8
1,889
2.78125
3
[ "MIT" ]
permissive
<?php /** * View\PHP * * Core\View PHP templates bridge. * * @package core * @author stefano.azzolini@caffeinalab.com * @version 1.0 * @copyright Caffeina srl - 2014 - http://caffeina.co */ namespace View; class PHP { protected $templatePath = __DIR__; protected static $globals = []; const EXTE...
true
3e9cfbb36dad66789f48c0c051ce77e6c7e0c801
PHP
MohammedAafaque/Brokeflix
/includes/classes/FormSanitizer.php
UTF-8
799
2.90625
3
[]
no_license
<?php class FormSanitizer { public static function sanatizeFormString($inputText) { $inputText = strip_tags($inputText); $inputText = trim($inputText); $inputText = strtolower($inputText); $inputText = ucfirst($inputText); return $inputText; } public static function sanatizeFormUsername($i...
true
a98f888c7168c1d0e9b3ec1c9146b5e8c5821dc5
PHP
cursesun/sms
/src/Gateways/ChuangLan.php
UTF-8
3,830
2.578125
3
[]
no_license
<?php /** * This file is part of the mucts.com. * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. * * @version 1.0 * @author herry<yuandeng@aliyun.com> * @copyright © 2020 MuCTS.com All Rights Reserved. * @see https://zz.253.com/v5.html#/api_doc */...
true
bb7ed6ed220d356f0d8fff1f2177893304fe4151
PHP
cultivatingcoders/ecn-church
/php/classes/dbconnect.php
UTF-8
701
3.109375
3
[]
no_license
<?php /** * Pretty simple. Contains a single function that can be reused for * establishing a database connection via ini file. * * * * */ function establishConn($iniFile) { if ($GLOBALS['dbConn'] != null) { $db = parse_ini_file($iniFile); $user = $db['user']; $pass = $db['pass']; $name = $db[...
true
35854304ca7a3c0f4fef6d975728cf774a780f73
PHP
xuelanghua/rrshop
/addons/fr_hb/inc/function/packet.func.php
UTF-8
5,869
2.609375
3
[]
no_license
<?php // +---------------------------------------------------------------------- // | Author: 凡人 <fanren3150@qq.com> // +---------------------------------------------------------------------- defined('IN_IA') or exit('Access Denied'); /** * 打开红包 * @param type $openid * @param type $packet * @param type $project *...
true
44cd5d1a41f17515511bdfae5b096b225b75b459
PHP
AndreasRaisl/smallPortfolio
/weitereFormularePHP/affenformularKartenbestellungNewer.php
UTF-8
4,628
3.015625
3
[]
no_license
<?php $PHP_SELF = $_SERVER['PHP_SELF']; // Anzahl, Nachname und Email sind zwingend. Wenn einer der Werte nicht gesetzt wurde oder leer ist, dann das Formular nochmal aufrufen //Dieser Fall tritt auch ein wenn die Seite neu aufgerufen wird, also vor jeder Eingabe if (!isset($_GET['anzahl']) or !isset($_GET['nach...
true
334f96bd0166d4ec0cc468b3043dba3ad24c9280
PHP
Mixeys/coursePHP
/cookie1.php
UTF-8
844
3.3125
3
[]
no_license
<?php // Счетчик и дата последнего посещения $count = 0; if(isset($_COOKIE['count'])){ $count = $_COOKIE['count']; } $count++; $lastVisit = ''; if(isset($_COOKIE['lastVisit'])){ $lastVisit = date('d-m-Y H:i:s', $_COOKIE['lastVisit']); } if(date('d-m-Y', $_COOKIE['lastVisit']) != date('d-m-Y')){ setcookie(...
true
c6fe4fa08216209748847f34b926c7e9b0ca2317
PHP
MatokUK/shunting-yard-php
/tests/Token/PlusTokenTest.php
UTF-8
858
2.71875
3
[]
no_license
<?php namespace Matok\Test\ShuntingYard\Token; use Matok\ShuntingYard\Token\PlusToken; use Matok\ShuntingYard\Token\ValueToken; use PHPUnit\Framework\TestCase; class PlusTokenTest extends TestCase { public function testOperandsCount() { $token = new PlusToken('+'); $this->assertEquals(2, $to...
true
b5235347255e124209a90f39ddb8649f6d3d6c44
PHP
sheepcat/piebridge
/piebridge/protected/models/UserInfoAR.php
UTF-8
1,071
2.703125
3
[]
no_license
<?php /** * This is the model class for table "user". * * The followings are the available columns in table 'user': * @property integer $user_id * @property string $user_name * @property string $password * @property string $email * @property string $sex * @property string $birthday * @property in...
true
f46153d1866b4fcc56f0210501fa4834f365f0fa
PHP
dptobat/leetcode
/2_addTwoNumbers.php
UTF-8
1,368
3.671875
4
[]
no_license
<?php /** * Definition for a singly-linked list. * class ListNode { * public $val = 0; * public $next = null; * function __construct($val) { $this->val = $val; } * } */ class Solution { /** * @param ListNode $l1 * @param ListNode $l2 * @return ListNode */ function addTwo...
true
cd730c8b0762d58fff1dec51d16eeb6f55267d09
PHP
ciniki/donations
/public/donationList.php
UTF-8
5,777
2.625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php // // Description // ----------- // This method will return the list of donations for a tenant. It is restricted // to tenant owners and sysadmins. // // Arguments // --------- // api_key: // auth_token: // tnid: The ID of the tenant to get donations for. // // Returns // ------- // function ciniki_donations...
true
96aa2ded18755617bd77e8327c3412020e570402
PHP
zivkovicmilos/Amenic
/Implementation/Amenic/app/Entities/Movie.php
UTF-8
1,107
3.296875
3
[ "MIT" ]
permissive
<?php namespace App\Entities; /* Author: Martin Mitrović Github: Rpsaman13000 */ use CodeIgniter\Entity; /** Movie - object of this class represents one row in Movies table * @version 1.0 */ class Movie extends Entity { /* Columns: -tmdbID -title -released ...
true
03eb4f8321b659ed65f139214b5a4a60b50a030c
PHP
josmel/buen
/source/app/Models/PuTypes.php
UTF-8
433
2.546875
3
[]
no_license
<?php namespace App\Models; class PuTypes extends BaseModel { protected $table = 'pu_types'; protected $fillable = ['name_type', 'flagactive']; const STATE_INACTIVE = 0; const STATE_ACTIVE = 1; const TYPE_COMUN = 'comun'; const TYPE_POPULAR = 'popular'; const TYPE_PREMIUM = 'premium'; public function ...
true
cd223dd9abb9c646e80ae4ea34485abecbb1fa74
PHP
jamiebclark/CakeAssets
/Utility/AssetFile.php
UTF-8
2,095
3.203125
3
[]
no_license
<?php /** * Utility to extends Folder and File utilities to assist with locating asset files within directories * **/ App::uses('Folder', 'Utility'); App::uses('File', 'Utility'); class AssetFile { /** * Returns a path based on a string or an array of items * * @param mixed A list of elements to be combined int...
true
d31ad010a4398e7ab49a33e15dbe02b9fc6c44a1
PHP
Eteckq/PimpMyBicycle
/model/UserManager.php
UTF-8
1,284
3.03125
3
[]
no_license
<?php require_once("Manager.php"); require_once("objects/User.php"); class UserManager extends Manager { public function getUsers(){ $accounts = array(); $db = $this->dbConnect(); $accountsReq = $db->query('SELECT * FROM users'); while ($accountReq = $accountsReq->fetch()) { $account = new User($account...
true
f406fcd8d71993ae5ab36016a806bd21172bc5d2
PHP
Mortec/photographywhy
/public/newsletter.php
UTF-8
321
2.78125
3
[]
no_license
<?php if(isset($_POST['email'])) { $data = $_POST['email'].',' ; $ret = file_put_contents( 'emails.txt', $data.PHP_EOL, FILE_APPEND | LOCK_EX ); if($ret > 0) { echo "$ret bytes written to file"; } else { die('There was an error recording email'); } } else { die('Die'); } ?> ...
true
a95921d99f604341dae936cfaa03a9ca5c55e2a5
PHP
medamineDev/laravel_basics
/app/Http/Controllers/PagesController.php
UTF-8
527
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Http\Requests; class PagesController extends Controller { public function about() { $mayname = "Grine med amine"; $poste = "Web dev"; $skills = ["Linux-ubunto", "laravel", "AngularJS", "NodeJS", "Html5-Css3"]; $data = []; ...
true
08e8f65725f5da5ff519e12fc5d6020058cf2781
PHP
plmhq/web-re-deprecated
/app/controllers/APIController.php
UTF-8
2,361
2.828125
3
[ "MIT" ]
permissive
<?php class APIController extends Controller { /** * Status code * @var int */ protected $statusCode = 200; /** * HTTP code constants */ const HTTP_OK = 200; //Response to a successful GET, PUT, PATCH or DELETE. Can also be used for a POST that doesn't result in a creation. const HTTP_CREATED = ...
true
bf64d660b455974cca293f9e50092f9e2cdd4255
PHP
WPPlugins/agentrank
/reviews.php
UTF-8
3,669
2.875
3
[]
no_license
<?php /** *AgentRank List and Paginate Reviews *Since Version 1.0 */ // Number of records to show per page: $display = 10; //in this plugin //note that start is start page //starts from 0 index == page 1 //not the normal start record number. if (isset($_GET['s'])) { $start = $_GET['s']; } else { $s...
true
9db8de038a732a70b20b71d6e2355131aecdf1a3
PHP
ZYallers/easyswoole3
/App/Utility/Code.php
UTF-8
750
2.71875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: zhongyongbiao * Date: 2018/11/1 * Time: 上午10:24 */ namespace App\Utility; class Code { const SIGN_INVAL = 0000; const TOKEN_TIMEOUT = 0001; const OK = 200; const BAD_REQUEST = 400; const NOT_LOGIN = 401; const NOT_FOUND = 404; const PARAM_INVA...
true
422d6e4fdcffb25829385b60d7616759f49602d1
PHP
amaraimusi/CrudBaseBulk
/app/View/Helper/AppHelper.php
UTF-8
2,817
3.125
3
[]
no_license
<?php App::uses('Helper', 'View'); class AppHelper extends Helper { /** * エンティティ内の値をタイプに合わせて加工して表示。 * * @param $ent エンティティ * @param $key エンティティのキー * @param $type 0(省略):空対応のみ 1:XSSサニタイズ 2:金額表記 3:有無フラグ用 4:改行文字対応 5:長文字用 6:テキストエリア用 * @param $option:オプションデータ $typeの値によって意味が変わる * @return 値 */ public functi...
true
4157edbf54006aea871f20f2a61ff473b71a288d
PHP
Cristovao-bit/upinside_treinamentos
/WS_PHP/01-modulo_base/02_modulo-iniciando_com_PHP/2º_trabalhando_com_variaveis/index.php
UTF-8
584
3.09375
3
[]
no_license
<?php //ALTERANDO DOCUMENTO PARA HTML header('content-type: text/html; charset: utf-8'); $meuNome = "Cristovão Lira Braga"; $minha_empresa = "ML - Manutenção Lira"; $idadeDocliente = 25; $idade_do_cliente = 26; echo "Meu nome é {$meuNome}. Eu trabalho na {$minha_empresa} e tenho {$idadeDocliente} anos!<hr>"; //Var...
true
57404a9124c383fb48451268243e2eb7b3347645
PHP
sinha-nishant/ITP-303-Full-Stack-Development
/a9/search_results.php
UTF-8
4,483
2.8125
3
[]
no_license
<?php // establish DB connection $host = "303.itpwebdev.com"; $user = "sinhan_db_user"; $password = "uscItp2021"; $db = "sinhan_dvd"; // to use MySQLi extension $mysqli = new mysqli($host, $user, $password, $db); // returns errorr code from db connection call if ($mysqli -> connect_errno) { // there is an ...
true
883c312c14e479864d44bfc1bbeac516bdacb219
PHP
EnquiringStone/FutureStoreWeb
/src/FutureStore/ApiBundle/Service/UserService.php
UTF-8
8,250
2.515625
3
[ "BSD-3-Clause" ]
permissive
<?php /** * Created by PhpStorm. * User: johan * Date: 1/21/14 * Time: 5:58 PM */ namespace FutureStore\ApiBundle\Service; use Doctrine\ORM\EntityManager; use FOS\UserBundle\Doctrine\UserManager; use FutureStore\ApiBundle\Entity\Payment; use FutureStore\ApiBundle\Entity\PaymentArticle; use FutureStore\ApiBundle\I...
true
c699826dc3fff540baa3642eb8520b990962747c
PHP
kareemaly/mm-rl
/app/sections/ClothComposer.php
UTF-8
263
2.59375
3
[ "MIT" ]
permissive
<?php use Products\Cloth; class ClothComposer { public function __construct(Cloth $clothes) { $this->clothes = $clothes; } public function compose($view) { $view->groups = $this->clothes->all()->groupBy('type'); } }
true
5547264a89f4cb578217966ac12212b8d61eb171
PHP
mm-boost/recipe
/database/seeds/CategoriesTableSeeder.php
UTF-8
535
2.5625
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; use App\Category; class CategoriesTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { DB::table('categories')->delete(); $categories = ['和食','洋食','中華','肉料理','野菜料理','デザート','ドリンク','アジア...
true
ee1eec863ccf26c6a80b87fbe194fb6a3beb851b
PHP
Alex-Kinuthia/jama
/php/voiceMenu.php
UTF-8
21,055
2.75
3
[]
no_license
<?php //1. Ensure ths code runs only after a POST from AT if(!empty($_POST) && !empty($_POST['phoneNumber'])){ require_once('dbConnector.php'); require_once('AfricasTalkingGateway.php'); require_once('config.php'); //2. receive the POST from AT $sessionId =$_POST['sessionId']; $serviceCode =$_POST['serviceC...
true
72cf5fadb7dd02ec3f4222994c3050e1eb75f92c
PHP
CrabsterStor/PHP_2
/cookiesSave.php
UTF-8
308
2.546875
3
[]
no_license
<?php $toExpired = 120; $time = time()+$toExpired; foreach($_POST as $key=>$value) { setcookie("$key", "$value", $time); } echo '<h1 style="text-align:center;">ZAPISANO</h1>'; header( "refresh:1;url=cookies.php" ); echo "Ważność cookies: $toExpired sekund"; ?>
true
aac2d7594935916712867d51f4153c963ccf4c12
PHP
batnu/tema2dwes
/public/hoja1/ejercicio6.php
UTF-8
1,721
3.328125
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Ejercicio 6</title> </head> <body> <p><b>Escribir un programa que calcule el número de billetes de 500, 200, 100, 50, 20, 10 y 5 así como de monedas de 2, 1, 0'5, 0'20, 0'10, 0'05, 0'02 y 0'01 para desglosar una cantidad C de forma que se necesite...
true
cf35a9c787c150b1f4c9ccb47d5e7acbf4e28816
PHP
safan9/School-Management-System
/Admin/dark/scripts/deactive_staff.php
UTF-8
881
2.65625
3
[]
no_license
<?php session_start(); require_once("db_connection.php"); //checking if admin already logged in or not if(!isset($_SESSION["admin_id"]) && !isset($_SESSION["username"])){ header("Location:login.php"); } //getting staff_id from queryString $staff_id = $_GET["id"]; //getting records from table for given staff...
true
a4ef199bbd3ac3b3527a8163a64974347d55ccd7
PHP
VovaMukovozov/finalProject
/server/api/core/models/OrdersModel.php
UTF-8
6,101
2.875
3
[]
no_license
<?php /** * Description of Orders * */ require_once dirname(__FILE__) . '/Model.php'; class OrdersModel extends Model { /** * parent construct * @return void * */ public function __construct() { parent::__construct(); } /** * creating new order * @param type...
true
59d948cca4c89f9d83a3c353ae64e1e80821d724
PHP
ahmed-fathy-aly/Library-App
/Web/PHP Website/Return_book.php
UTF-8
9,406
2.515625
3
[]
no_license
<?php require_once("includes/session.php"); ?> <?php require_once("includes/connection.php"); ?> <?php require_once("includes/functions.php"); ?> <?php if ($_SESSION['is_admin']!=1) { if(logged_in()) redirect_to("index.php?admin=0"); else redirect_to("index.php"); } ?> <?php $user_name = $_SE...
true
8adf05977d11dd361731cc2f0f3f946a24326dd8
PHP
afranca/wp2
/MusicSample3/presentation/album_details.php
UTF-8
835
2.90625
3
[]
no_license
<?php class AlbumDetails { // Public variables to be read from Smarty template public $mAlbum; public $mYear; public $mTracks; public $mAlbumID; public $mNewRating; // Class constructor public function __construct() { if (isset($_GET['album_id'])) { $this->mAlbumID = $_GET['album_id']; ...
true
6a093cdbd3eef720b2e11f264f2fe066e132cc6b
PHP
nafid1999/ecommerce-application-PHP
/admin/connect.php
UTF-8
345
2.515625
3
[]
no_license
<? // connection to database; $db_name="mysql:host=localhost;dbname=shop"; $user="root"; $pass=''; try { $con=new PDO($db_name,$user,$pass); $con->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); } catch(Exception $e) { die('connection failed : '.$e->getMessage()); ...
true
ee5a5d93f027222d7a777c0ac88b9c2bf3e80ad3
PHP
Trankalinos/NCS
/application/core/MY_Controller.php
UTF-8
1,394
2.546875
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php /** * core/MY_Controller.php * * Default application controller * * ------------------------------------------------------------------------ */ class Application extends CI_Controller { protected $data = array(); // parameters for view components protected $id; // identifier ...
true
6651a57d5b288ae0bf69e1436bebb8f496b7356e
PHP
MargoMono/baby_space
/src/App/Repository/TypeRepository.php
UTF-8
2,847
2.6875
3
[]
no_license
<?php namespace App\Repository; use App\Components\Language; use PDO; use PDOException; class TypeRepository extends AbstractRepository implements Entity { public function getAll($sort = null) { if (empty($sort['order'])) { $sort['order'] = 'id'; } if (empty($sort['desc']...
true
f6b89613dc7c18760f0c83a62012116d44771952
PHP
paladin3895/liquid_legacy
/src/Nodes/RegisteringTrait.php
UTF-8
1,178
2.8125
3
[]
no_license
<?php namespace Liquid\Nodes; use Liquid\Registry; trait RegisteringTrait { protected $registry; public function terminate() { $this->unregister(); foreach ($this->nexts as $node) { foreach ($node->previouses as $previous_node) { if ($previous_node->status & self::STATUS_ALIVE) continue 2...
true
8da4c4579f6c3f7e484013d15ab73dd224f9f5f9
PHP
Nich-Thompson/Project4
/app/Http/Requests/StoreLocationRequest.php
UTF-8
1,460
2.765625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Requests; use App\Models\User; use Illuminate\Foundation\Http\FormRequest; class StoreLocationRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; ...
true
c4fad30200cbedbd7f51dd5c44f642b56a27d1f5
PHP
pablogmorales/jamesapp
/web-api/src/Module/Wot.php
UTF-8
6,742
2.515625
3
[]
no_license
<?php namespace Daytalytics\Module; use Daytalytics\DataGetter; use Daytalytics\RequestException; use Daytalytics\ProxyServer; /** * Web Of Trust (WOT) server module * @see https://www.mywot.com/wiki/API */ class Wot extends BaseModule { protected $endPoint = 'http://api.mywot.com/0.4/public_link_json2?host...
true
b92e77b28428e4900515d4e135fcf6599f26a72d
PHP
kylekatarnls/business-day
/src/Cmixin/BusinessDay/Calendar/MissingCalendarExtensionException.php
UTF-8
692
2.625
3
[ "MIT" ]
permissive
<?php namespace Cmixin\BusinessDay\Calendar; use BadFunctionCallException; use Cmixin\BusinessDay; final class MissingCalendarExtensionException extends BadFunctionCallException { public static function forFunction(string $function): self { return new self( $function.' function is not ava...
true
c8fc0159495c1881fecff24c45c6e27e08e02573
PHP
glennneiger/itrack
/itrack_proto/src/php/TreeViewNew/test_hourly_report/email_sendgrid_test.php
UTF-8
2,735
2.71875
3
[ "Apache-2.0" ]
permissive
<?php $url = 'https://api.sendgrid.com/'; $user = 'iespl'; $pass = 'mailiespl2015'; $params = array( 'api_user' => $user, 'api_key' => $pass, 'to' => 'rizwan@iembsys.com', 'subject' => 'testing from curl', 'html' => 'testing body', 'text' => 'testing body', ...
true
052a1f134f582d4c1c1ab3191b1e3b21e7eac5c1
PHP
petrarozic/Budget_app
/model/expense.class.php
UTF-8
1,196
2.875
3
[]
no_license
<?php /******************************** * Troškovi korisnika ATRIBUTI 'expense_id int NOT NULL PRIMARY KEY AUTO_INCREMENT,' . 'category_name varchar(20) NOT NULL,' . 'user_id int NOT NULL,'. 'expense_name varchar(30) NOT NULL,'. 'expense_value double NOT NULL,' . 'expense_d...
true
0b17e2ad314b9b194108e2970bdfa6f2e1fb25cf
PHP
poemyoung/Software-Engineering
/Search/class_all.php
UTF-8
11,150
2.53125
3
[]
no_license
<?php require_once 'mysql_connect.php'; require 'class_article_name.php'; require 'class_article_author.php'; require 'class_article_content.php'; require 'class_disease_depart.php'; require 'class_disease_name.php'; require 'class_disease_part.php'; require 'class_disease_symptom.php'; require 'class_doctor_expertise....
true
791091dc6c706781aff2f78f62db5428886f6076
PHP
djsharman/state
/generator/Filename/CodeFilename.php
UTF-8
554
2.921875
3
[]
no_license
<?php class CodeFilename { public static function getInst() { static $inst = null; if($inst === null) { $inst = new self(); } return $inst; } /** * @var string */ private $unitName; /** * @param string $unitName */ public function...
true
46f831d43dbb00cf27da7ec40a331b50e7a50c65
PHP
joao-valdez-2201158/PSI_PWS_PL
/weblogicmvc/webapp/model/Stopover.php
UTF-8
842
2.53125
3
[]
no_license
<?php use ActiveRecord\Model; class Stopover extends Model { static $validates_presence_of = array( array('id_flight'), array('id_departure_airport'), array('id_destination_airport'), array('date_of_departure'), array('hour_of_departure'), array('date_of_arrival'), array...
true
eeb232e9108465a59a25cbce85bb4e7563809906
PHP
zoonru/pheanstalk
/src/Socket/NativeSocket.php
UTF-8
4,129
3.125
3
[ "MIT" ]
permissive
<?php namespace Pheanstalk\Socket; use Pheanstalk\Exception; use Pheanstalk\Socket; /** * A Socket implementation around a fsockopen() stream. * * @author Paul Annesley * @package Pheanstalk * @license http://www.opensource.org/licenses/mit-license.php */ class NativeSocket implements Socket { /** * ...
true
6c0b6feea5b07ebead94e9e9d6ecdd54206a4a63
PHP
TheFootballSocialClub/FSCHateoasBundle
/Tests/Functional/TestBundle/Provider/PostProvider.php
UTF-8
2,848
2.5625
3
[]
no_license
<?php namespace FSC\HateoasBundle\Tests\Functional\TestBundle\Provider; use Pagerfanta\Pagerfanta; use Pagerfanta\Adapter\ArrayAdapter; use FSC\HateoasBundle\Tests\Functional\TestBundle\Model\Post; use FSC\HateoasBundle\Tests\Functional\TestBundle\Model\AlternateRouterPost; use FSC\HateoasBundle\Tests\Functional\Tes...
true
6c332ae3d4d575e3b7d45af71148395cd37c640f
PHP
nabil-nablotech/Local-Freelance-System
/app/models/Admin.php
UTF-8
8,244
2.796875
3
[]
no_license
<?php class Admin extends User{ private $role; private $permission; // --------Getter and Setters of the attributes----------- public function getRole(){ return $this->role; } public function setRole($role){ $this->role = $role; ...
true
6e2de70421e5e1ce46bc248d26971eed4e4341a6
PHP
anthonyngure/NyanTalkAPI
/app/Traits/HasUuid.php
UTF-8
898
2.796875
3
[]
no_license
<?php namespace App\Traits; use Uuid; /** * Class Uuid. * * Manages the usage of creating UUID values for primary keys. Drop into your models as * per normal to use this functionality. Works right out of the box. * * Taken from: http://garrettstjohn.com/entry/using-uuids...
true
a1a01831795c423020b9173a1f697f604501957d
PHP
tadywankenobi/test
/guestbook/includes/guestbook.php
WINDOWS-1252
16,575
2.609375
3
[ "MIT" ]
permissive
<?php /**************************************************************************** * DRBGuestbook * http://www.dbscripts.net/guestbook/ * * Copyright 2007-2009 Don B ****************************************************************************/ $guestbook_fp = NULL; $MAX_BAD_WORD_LENGTH = 255; $MIN_CO...
true
a892afda3f2cb136f0ddacef03359adc197d4541
PHP
JonathanLoscalzo/Proyecto2014_grupo45
/model/EntidadReceptoraModel.php
UTF-8
3,086
2.9375
3
[ "MIT" ]
permissive
<?php include_once("model/Model.php"); include_once("model/NecesidadEntidadModel.php"); include_once("model/EstadoEntidadModel.php"); include_once("model/ServicioEntidadModel.php"); class EntidadReceptoraModel extends Model { public $id; public $razonSocial; public $telefono; public $domicilio; p...
true
7ef12dbae75cecf447faf07325551a22430b17f6
PHP
toun0u/CaamhroApi
/app/modules/system/class_category.php
UTF-8
23,851
2.515625
3
[]
no_license
<?php require_once DIMS_APP_PATH.'modules/system/class_category_object.php'; require_once DIMS_APP_PATH.'modules/system/class_category_module.php'; require_once DIMS_APP_PATH.'modules/system/class_category_module_type.php'; require_once DIMS_APP_PATH.'modules/system/class_pagination.php'; class category extends pagin...
true
0eb64b66d27ca07fb1bc52fb171c2c7640dcabdb
PHP
VladKorn/php-bpm-detect
/test.php
UTF-8
1,294
2.578125
3
[ "Unlicense" ]
permissive
<?php require "class.bpm.php"; echo "detecting bpm for the file test.mp3 with no predefined length using ffmpeg:\n"; $bpm_detect = new bpm_detect("test.mp3",DETECT_LENGTH,USE_FFMPEG); echo "track length is ".$bpm_detect->getLength()." sec\n"; echo "average track bpm is ".$bpm_detect->detectBPM()."\n"; echo "track bpm...
true
c6fc8e832b0505075163416fc741979d6d4b2c60
PHP
Unicity/Chimera
/classes/Unicity/Spring/Data/XML/Syntax.php
UTF-8
7,614
2.578125
3
[ "Apache-2.0" ]
permissive
<?php /** * Copyright 2015-2016 Unicity International * Copyright 2011 Spadefoot Team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2...
true
db7b18a8bf78be1dda05b3b1a8ace6fd8678dccc
PHP
diallomahdy/senforage
/website/controllers/abonnements.ctrl.php
UTF-8
6,078
2.625
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. */ class Abonnements extends Controller{ // Constructeur public function __construct() { // Appel du constru...
true
989818f06c68d7a2f1c53363d57530a26b518fa5
PHP
aldolat/ozh-tweet-archive-theme
/functions.php
UTF-8
5,904
2.640625
3
[]
no_license
<?php if ( function_exists('register_sidebar') ) register_sidebar(); add_action( 'wp_enqueue_scripts', function(){ wp_enqueue_script( 'jquery' ); } ); function otat_get_tweet_style() { $title = strlen( get_the_title() ); $is_reply = ozh_ta_is_reply_or_not( false ); if( $title > 100 ) { $st...
true
c6f8d49f16893d1311413773203fb56027ddbe9f
PHP
onolinus/ApiSurveyOnline
/app/Libraries/Questions/Question3.php
UTF-8
2,276
2.828125
3
[]
no_license
<?php namespace app\Libraries\Questions; use PluginSimpleValidate\Field; class Question3 extends AbstractQuestion{ CONST NUMBER = 3; CONST CHAPTER_NUMBER = 2; private $dipa, $dana_lainnya; private $dipa_keys = [ 'dana_pemerintah' => 'Dana dari Pemerintah', 'PNBP' => 'PNBP', ...
true
b4f2606075649f176a524d3f011e889ece48f358
PHP
ruvents/ruwork
/src/UploadBundle/TmpPath/TmpPathGenerator.php
UTF-8
449
2.515625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Ruwork\UploadBundle\TmpPath; final class TmpPathGenerator implements TmpPathGeneratorInterface { private $prefix; public function __construct(?string $prefix = null) { $this->prefix = $prefix ?? 'ruwork_upload_tmp_path'; } /** * {@inheritdoc...
true
de64f71fb289f51bbb1bbd5df54337e126f96d66
PHP
ChaseLarocque/CamroseFruitShare
/populateDropDown.php
UTF-8
514
2.53125
3
[]
no_license
<?php /* populateDropDown.php Alex Ho, Chase Larocque, Justin Ikenouye AUCSC401 - Hidden Harvests of Camrose (Camrose Fruit picking website) March 27, 2019 Contains code to fill the fruit dropdown list in fruitSearch.php and fruitOffer.php */ include 'DBConnect.php'; session_start(); $sql = $pdo-> prepare("SELEC...
true
26b5955ee59b8ff1ea1bcbf74096177ccfaba836
PHP
shrsujan/leapfrog
/ci_project/application/controllers/Home.php
UTF-8
1,555
2.65625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php class Home extends CI_Controller{ public function __construct(){ parent::__construct(); } public function index(){ $this->load->view("home/index"); } public function contact(){ $this->load->helper('form'); $this->load->library('form_validation'); $this->form_validation->set_rules('name','name'...
true
3b52abd60f92a5cf72d4c635ccdc4ce17d1ae6ca
PHP
rafaelfqueiroz/transnatal
/app/libraries/Transnatal/Repositories/DbTravelCostRepository.php
UTF-8
993
2.578125
3
[]
no_license
<?php namespace Transnatal\Repositories; use Transnatal\Interfaces\TravelCostRepositoryInterface; use TravelCost; class DbTravelCostRepository implements DbTravelCostRepositoryInterface { public function find($id) { return TravelCost::finrOrFail($id); } public function get_first() { return TravelCost::firs...
true
3a350d9c797b39de6901add806508614dc526288
PHP
hubahuba/incubeus
/src/Ngungut/Nccms/InstallNCCms.php
UTF-8
2,097
2.5625
3
[ "MIT" ]
permissive
<?php namespace Ngungut\Nccms; use Illuminate\Console\Command; use Illuminate\Support\Facades\File; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\InputArgument; class InstallNCCms extends Command { /** * The console command name. * * @var string */ protected $name = '...
true
7671b70c217249d465dc3e14c7300353ab9fb02c
PHP
vincent4vx/php-swf
/src/Processor/Sprite/SpriteInfoExtractor.php
UTF-8
4,044
2.875
3
[]
no_license
<?php namespace Swf\Processor\Sprite; use Bdf\Collection\Stream\Streams; use SimpleXMLElement; use Swf\SwfFile; /** * Extract sprites metadata from swf */ final class SpriteInfoExtractor { /** * @var SwfFile */ private $file; /** * SpriteInfoExtractor constructor. * * @param ...
true
4fcb74b9a90a7aacd6bcdb89f675daf7f13ec88f
PHP
electric-eloquence/fepper-drupal
/backend/drupal/core/lib/Drupal/Core/Batch/BatchStorage.php
UTF-8
6,392
2.625
3
[ "GPL-2.0-only", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-other-permissive", "LicenseRef-scancode-other-copyleft", "GPL-2.0-or-later", "MIT" ]
permissive
<?php namespace Drupal\Core\Batch; use Drupal\Core\Database\Connection; use Drupal\Core\Database\DatabaseException; use Symfony\Component\HttpFoundation\Session\SessionInterface; use Drupal\Core\Access\CsrfTokenGenerator; class BatchStorage implements BatchStorageInterface { /** * The table name. */ const...
true
ed9fa29bd6d1032e011c850b4c4a434c03d87ce1
PHP
AntonioDeJesusHernandezLiborio/mxAlert
/MxAlertBackEnd/API/api_Account.php
UTF-8
3,088
2.703125
3
[]
no_license
<?php class APIAccount { private $conn; private $db; private $sql; public function __construct(){ $this->starDB(); } public function starDB(){ $this->db = new Conexion(); $this->conn = $this->db->getConnection(); } public function closeConnection(){ $thi...
true
a5662b1e51db16dac351ceb7eac54a813b92e057
PHP
jeffersonsimaogoncalves/larasnap
/src/Controllers/ModuleController.php
UTF-8
2,637
2.5625
3
[]
no_license
<?php namespace LaraSnap\LaravelAdmin\Controller; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use Illuminate\Database\Eloquent\ModelNotFoundException; use Session; use LaraSnap\LaravelAdmin\Requests\ModuleRequest; use LaraSnap\LaravelAdmin\Services\ModuleService; use LaraSnap\LaravelAdmin\Models...
true
daf2669d90087c57e5c0ef056da4959e585b793e
PHP
zeinabsamir/fcizu-portal
/models/announcement.php
UTF-8
2,358
3.328125
3
[]
no_license
<?php class Announcement { public $id; public $content; public $courseId; public $teacherId; public $createdAt; public function __construct($id, $content, $courseId, $teacherId, $createdAt) { $this->id = $id; $this->content = $content; $this->courseId = $courseId; $thi...
true
eaee3eb072584ef7fecac4292ac8087b3d349219
PHP
sarkrui/Music-Sharing-Prototype
/Digital Prototype/ajaxPro.php
UTF-8
947
2.796875
3
[ "MIT" ]
permissive
<?php require('db.php'); $position = $_POST['position']; $i=1; foreach($position as $k=>$v){ $sql = "Update Queue1 SET position_order=".$i." WHERE id=".$v; $connect->query($sql); $i++; } header("Refresh:0"); $sql = "SELECT * FROM Queue1 ORDER BY position_order ASC "; $query = mysqli_query($conne...
true
749923dc7fa29162a06ec0100c0d2dc75905a244
PHP
dsoftviewi/tupri-dsvicode
/CMS/ajax_pack_page.php
UTF-8
11,792
2.53125
3
[]
no_license
<?php //===================12-08-2016 by junior Developer A Ganeshkumar============= include('../Connections/divdb.php'); $timezone = new DateTimeZone("Asia/Kolkata" ); $date = new DateTime(); $date->setTimezone($timezone ); $mm=$date->format('m'); $mm1=$date->format('M'); $yy=$date->format('Y'); $dd=$date...
true
0247939b9a3e29253571a7d84c9f2018f312a2d6
PHP
Renato27/menew-teste1
/app/Services/Schedule/UpdateSchedule/Contracts/UpdateScheduleService.php
UTF-8
949
2.78125
3
[]
no_license
<?php namespace App\Services\Schedule\UpdateSchedule\Contracts; use App\Models\Schedule; use App\Repositories\Contracts\ScheduleRepository; interface UpdateScheduleService { /** * Seta a model de Schedule. * * @param Schedule * @return UpdateScheduleService */ public function setSche...
true
9d4d493b0a3fca1788c54059a5cfc5e1030d0448
PHP
conpago/conpago-cli
/src/Conpago/Cli/Contract/ICommand.php
UTF-8
769
2.953125
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: bg * Date: 08.10.15 * Time: 22:13 */ namespace Conpago\Cli\Contract; /** * Command definition. Implement it to add new command to Cli. * * @license MIT * @author Bartosz Gołek <bartosz.golek@gmail.com> */ interface ...
true
b3b7aee7b829229d76c5a0fe675f258efa8cfe33
PHP
AdityaHerlambang/ecommerce-web
/app/Http/Controllers/AdminController.php
UTF-8
4,128
2.53125
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Admin; class AdminController extends Controller { protected $routelink = 'admin/dataadmin'; protected $rules = [ 'name' => 'required|string|max:255', 'username' => 'required|string|max:255|unique:admins', ...
true
050880e4bc0e9bf6df0d03b11fb8a6149f7cbd48
PHP
carmeniulia/phpunit-docker-compose
/tests/Calculator.php
UTF-8
159
3.3125
3
[]
no_license
<?php declare(strict_types=1); final class Calculator { public static function addition($tal1, $tal2): int { return $tal1 + $tal2; } }
true
a8279337a54c1345de67d1ebfd6a6954c41eb0b2
PHP
takepan/present
/procon/atCoder/arc012_1.php
UTF-8
472
3.4375
3
[]
no_license
<?php /* Problem URL : http://arc012.contest.atcoder.jp/tasks/arc012_1 Score : 100 Result : AC Time : 55 ms Memory : 3900 KB */ $arr = array('Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'); fscanf(STDIN, "%s", $day); if (ar...
true
91d1bbcdac9a8763cdc5569895843e1f4c850733
PHP
Julienleery/AlloTools
/classesBT/core/modules/siteWebManager/class.SiteWebManager.php
ISO-8859-1
1,924
2.921875
3
[]
no_license
<?php class SiteWebManager { /** * Contient les rsultats renvoyer PHP */ private $result; /** * Identifiant de la socit qui appartient le site * @var string */ private $idRevend; /** * Constructeur * @param string $idRevend */ public function __construct($idRevend) { $this->idRevend = ...
true
d5c6841d500575f636cc83c419f002fbce237449
PHP
thomsva/Tsoha-Bootstrap
/app/models/wine.php
UTF-8
4,829
2.875
3
[]
no_license
<?php class Wine extends BaseModel{ public $id, $name, $region, $winetext, $type, $reviewstars, $reviewcount; public function _construct($attributes){ parent::_construct($attributes); } public static function all(){ $query=DB::connection()->prepare( 'SELECT id...
true
c92aef6b7fd44fa0984ef7a9e997c84d3ffebacc
PHP
uglide/zfcore-autoupdate
/library/Core/Db/Table/Abstract.php
UTF-8
5,246
2.6875
3
[]
no_license
<?php /** * Copyright (c) 2012 by PHP Team of NIX Solutions Ltd * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, ...
true
b5d8e01ffe75ccfc56020d81b8b636bcc26775c8
PHP
citrus-soft/citrus.core.module.options
/src/ModuleOptions/SelectboxOption.php
UTF-8
563
2.671875
3
[]
no_license
<?php namespace Citrus\Core\ModuleOptions; if (!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true) die(); class SelectboxOption extends OptionControl { protected $items = []; public function type() { return static::TYPE_SELECTBOX; } protected function getTypeParams() { return [ 1 => $this->it...
true
6041d73ccbecb397d959d3d910aff90e6c62eba4
PHP
Faiawuks/sandbox
/AuctionFinancial/BankAppAccountRecordServiceAdapter.php
UTF-8
2,812
2.609375
3
[]
no_license
<?php namespace AuctionFinancial; use AuctionFinancial\Model\AccountRecord; use AuctionFinancial\Model\Person; use BankApp\AccountRecordService as BankAppAccountRecordService; use BankApp\AccountHolderService as BankAppAccountHolderService; class BankAppAccountRecordServiceAdapter implements AccountRecordInterface {...
true
98f950b792e1c9e887d67a3ca966e1567569639f
PHP
geophase/FERMI_SITE
/form.php
UTF-8
1,963
2.53125
3
[]
no_license
<html> <?php if ($_SERVER["REQUEST_METHOD"] == "POST") {//Check it is coming from a form $varTitle = filter_var($_POST['formTitle'], FILTER_SANITIZE_STRING); $varDescr_it = filter_var($_POST['formDescr_en'], FILTER_SANITIZE_STRING); $varDescr_en = filter_var($_POST['formDescr_it'], FILTER_SANITI...
true
6836ff48dc3fba87aba8894fd06f24826ef87eb1
PHP
BSSE-GROUP-13-RECESS/recess
/Laravel Web Interface/Covid_casetool/database/migrations/2021_02_07_085719_creates_table__covid19_health_officer.php
UTF-8
1,125
2.546875
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreatesTableCovid19HealthOfficer extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('C...
true
27c07adab1371607c471ecbb9a4c50b6087519c7
PHP
gaelle8278/particulieremploi
/pe/recherche/templates/results.php
UTF-8
29,692
2.546875
3
[]
no_license
<?php /** * Affichage des résultats de la recherche d'annonces * * @package WordPress * @subpackage particulieremploi * @since ParticulierEmploi 1.0 */ //echo "<pre>";print_r($_POST);echo "</pre>"; //echo "<pre>";print_r($params);echo "</pre>"; $message=""; if(empty($params['codep']) || $params['codep']===fals...
true
300d206630c13be8c7326f045d1b87cb4a3f5695
PHP
htfan/workerman-thrift
/Applications/ThriftRpc/Services/User/UserHandler.php
UTF-8
579
2.8125
3
[ "MIT" ]
permissive
<?php namespace Services\User; class UserHandler implements UserIf { /** * @param int $param * @return int */ public function userInt($param){ return "我要返回整数"; } /** * @param string $param * @return string */ public function userString($param){ return 3...
true
4e7cb183d9b1c61c5aba87c5749691e0fafbdf8e
PHP
orangespaceman/folio-api
/routes/LastFmRoutes.php
UTF-8
1,369
2.765625
3
[]
no_license
<?php namespace Api\Routes; use Api\Services\LastFmService; /** * Last.fm routes */ class LastFmRoutes extends AbstractRoutes { /** * Define available routes * * @param array $routes available routes */ protected $routes = array( array( 'name' => 'Last.fm latest trac...
true