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
1c53f0c249181a8bf20cbcd48f7b31106da29cfb
PHP
old-school-2/sporturban-2
/Сайт/work/peoples.php
UTF-8
2,361
2.625
3
[]
no_license
<?php date_default_timezone_set("UTC"); // Устанавливаем часовой пояс по Гринвичу header('Content-Type: text/html; charset=utf-8'); // устанавливаем кодировку require_once $_SERVER['DOCUMENT_ROOT'] . "/config.php"; require_once $_SERVER['DOCUMENT_ROOT'] . "/lib/db.php"; //require_once $_SERVER['DOCUMENT_ROOT'] . "/li...
true
76e3450b4d725f7ea079f927b6d2904077d29466
PHP
nitro-lab/shellsmart-api
/src/Connector/Response.php
UTF-8
461
2.671875
3
[]
no_license
<?php namespace NitroLab\ShellsmartApi\Connector; class Response { private $response; public function __construct($response) { $this->response = $response; } public function __get($name) { return $this->body()->{$name}?? null; } public function body() { r...
true
5a87a093334da3069870c34636ea75d633787bdf
PHP
jenniferberg/bank_of_earth
/controllers/addAcct.php
UTF-8
1,596
2.578125
3
[]
no_license
<?php require_once('../controllers/initialize.php'); ?> <?php if(!isset($userEmail) || empty($userEmail)){ header("Location: login.php"); exit; } ?> <?php //Define form type $formType = ''; //Define variables to posted values if set $user_id = $person['id']; $type = isset($_POST['type']) ? $_POST['type'] : ''; $am...
true
d654555e1499dfc07d71b2980cfd1d1a39b84677
PHP
open-serializer/open-serializer
/src/Type/DocBlockPropertyResolver.php
UTF-8
3,453
2.53125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace OpenSerializer\Type; use phpDocumentor\Reflection\DocBlock\Tags\Var_; use phpDocumentor\Reflection\DocBlockFactory; use phpDocumentor\Reflection\Type; use phpDocumentor\Reflection\Types\Array_; use phpDocumentor\Reflection\Types\Boolean; use phpDocumentor\Reflection\Types\Comp...
true
7d36aca07d47badd09fc24d7e774fc9ad2dbb386
PHP
lightSAML/lightSAML
/src/LightSaml/State/Request/RequestState.php
UTF-8
2,392
2.6875
3
[ "MIT" ]
permissive
<?php /* * This file is part of the LightSAML-Core package. * * (c) Milos Tomic <tmilos@lightsaml.com> * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace LightSaml\State\Request; use LightSaml\Meta\ParameterBag; class RequestState impl...
true
4506d3342ee692f4f6f23009f9464a6c34dedf90
PHP
oafbot/sparticle-subversion-history
/sparticle/library/core/Application_Controller.php
UTF-8
2,735
2.5625
3
[]
no_license
<?php /** * LAIKA FRAMEWORK Release Notes: * * @filesource Application_Controller.php * * @version 0.1.0b * @package laika * @subpackage core * @category control * @date 2010-01-18 02:29:45 -0500 (Mon, 18 Jan 2010) * * @author Leonard M. Witzel <witzel@post.harvard.edu> * @copyrigh...
true
f499dfe2a77241d66ef1adb5dd37b2195cff21c8
PHP
igorpan/worky
/Worky/Core/Application.php
UTF-8
861
2.78125
3
[ "MIT" ]
permissive
<?php namespace Worky\Core; use Worky\DependencyInjection\Container; use Worky\Http\Request; /** * Base Application class. It is in charge of handling requests and returning responses. */ abstract class Application { /** * @var Container */ protected $container; public function __construct()...
true
b22f7f137929d253a40218d496c31f297bb5ce33
PHP
SebastienP60/titre-pro
/controllers/connectionController.php
UTF-8
2,394
3
3
[]
no_license
<?php //Déclaration du tableau des erreurs $formErrors = array(); //Déclaration de l'expression régulière pour les mots de passe $regexPassword = '%^(([a-z]|[A-Z]|[0-9]|&|\?|!|#|@)+){8,32}$%'; //Si le formulaire pour se connecter à son compte est rempli if(isset($_POST['myIdentity'])){ //On instencie dans une varia...
true
a7bb8af8e48019cefdccd8e9659d70ce1256e086
PHP
SilvioLi/Chess
/winner_data.php
UTF-8
592
2.546875
3
[]
no_license
<?php $con= mysqli_connect("ec2-52-5-252-78.compute-1.amazonaws.com","s_user17","s_user17","s_user17"); // Check connection if (mysqli_connect_errno()){ echo "Failed to connect to MySQL: " . mysqli_connect_error(); } else { $player = $_POST["player"...
true
93f0869c1502d39731781f7358eb8158f290424d
PHP
alainfchampagne/AAwhatthingsdo
/storeBOOKS.php
UTF-8
3,940
2.609375
3
[]
no_license
<?php /* Template Name: StoreBooks */ ?> <?php get_header('store'); ?> <a href="http://www.whatthingsdo.com/store/books/"><div id="topBooks"></div></a> <div id=storebump> </div> <!-- Begin Product Display Section --> <?php global $post; $args = array( 'numberposts' => 800, 'category' => 136 ); ...
true
c8af9d7eac02801b9cdc3d4a7b39907e36078f44
PHP
Snoradbe/Mine-Project
/app/Services/Store/Distributors/ItemsDistributor.php
UTF-8
1,009
2.796875
3
[ "MIT" ]
permissive
<?php namespace App\Services\Store\Distributors; use App\Models\Store\Cart; use App\Models\Store\MineStore; use App\Models\Store\Product; use App\Models\User; class ItemsDistributor implements Distributor { public function distribute(Cart $cart): void { $mineStore = new MineStore([ 'pur...
true
73de67ef32d513233564970743fe8dffd9771554
PHP
bangformis/bang.mvc.api.client
/Bang/Lib/TaskResult.php
UTF-8
1,225
3.109375
3
[]
no_license
<?php namespace Bang\Lib; use Exception; /** * 使用於工作或API一般回傳結果 * @author Bang */ class TaskResult { public function __construct() { $this->IsSuccess = FALSE; $this->Message = ""; } /** * @var bool 是否執行成功 */ public $IsSuccess; /** * @var string 結果訊息 */ ...
true
83c1fa51dae31cf2df805a52c50944bb47e46701
PHP
sguegue/htdocs
/htdocs/data.php
UTF-8
1,093
2.578125
3
[]
no_license
<?php DEFINE('SERVIDOR','localhost'); DEFINE('USUARIO','root'); DEFINE('CLAVE',''); DEFINE('BASE','bd23'); /* intento conectar */ if(!$conexion = mysqli_connect(SERVIDOR,USUARIO,CLAVE,BASE)){ /* Si no puedo conectar muestro mensaje de error */ echo "Error de Conexion"; exit(); }else{ if(isset($_POST['busca'])){ ...
true
07bc2850b22f834fd2a4efeb001621ce2076e872
PHP
khovanskiy/WebArena
/package/Account.php
UTF-8
1,965
3.09375
3
[ "Apache-2.0" ]
permissive
<? import("package/DBObject.php"); class Account extends DBObject { private $user_id; private $login; private $permissions = 0; private static $current = null; /** * @param string $login * @param string $password * @return Account|null */ public static function auth($login,...
true
1a34f9a90ae17650b8cdd7d3fd847620fc55674d
PHP
Elelion/701371-task-force-1
/frontend/modules/api/controllers/MessagesController.php
UTF-8
2,509
2.515625
3
[]
no_license
<?php namespace frontend\modules\api\controllers; use frontend\models\Message; use frontend\models\Task; use yii\base\ExitException; use yii\db\ActiveRecord; use yii\helpers\Json; use yii\web\Controller; use Yii; class MessagesController extends Controller { public $enableCsrfValidation = false; /** *...
true
254a4da2e6960257010d933370e17ded7e9ebbed
PHP
rmoctezuma/controlTimsa
/includes/Objetos/ListaAgencia.php
UTF-8
759
2.75
3
[]
no_license
<?php include_once("../includes/generic.connection.php"); require_once("Agencia.php"); class ListaAgencia{ var $agencias; function ListaAgencia(){ $this->agencias = array(); try{ $PDOmysql = consulta(); $sql = 'SELECT * FROM Agencia'; $stmt = $PDOmysql->prepare($sql); $stmt->execute()...
true
b5ea941c705b632ba908e6aa7f1a44062efa5fee
PHP
phacility/phabricator
/src/infrastructure/status/PhabricatorObjectStatus.php
UTF-8
1,896
3.015625
3
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php abstract class PhabricatorObjectStatus extends Phobject { private $key; private $properties; protected function __construct($key = null, array $properties = array()) { $this->key = $key; $this->properties = $properties; } protected function getStatusProperty($key) { if (!array_key_exis...
true
e891147b6241e4ea072784d478d560551b2c2e87
PHP
nyxx47/bisma-social-network-app-with-laravel
/app/Http/Controllers/InfoController.php
UTF-8
961
2.65625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Info; use Session; class InfoController extends Controller { public function __construct() { $this->middleware('auth:admin'); } public function show() { $info = Info::all(); return view('core.info')->withInf...
true
85d4a86c578a3799ec69f09d8b34ce654809f35c
PHP
Thioubado/codinggame
/mo/bases/x06_structureDeControl.php
UTF-8
3,164
3.40625
3
[]
no_license
<?php $toto = 512; // on enchaine les controles ci-dessous .... if ($toto > 0 && $toto < 500) { // 1er echo $toto.' est compris entre 0 et 499'; } elseif ($toto >= 500 && $toto < 1000) { echo $toto.' est compris entre 500 et 1000'; } else { echo $toto.' est plus grand que 999'; } echo '<hr>'; $simba = 700; i...
true
5f14b41630aba6c4fc125f8e1c62bd66db66b81d
PHP
Mediagone/common-types
/tests/Unit/Crypto/HashTest.php
UTF-8
1,038
2.53125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php declare(strict_types=1); namespace Tests\Mediagone\Common\Types\Crypto; use Mediagone\Common\Types\Crypto\Hash; use Mediagone\Common\Types\Crypto\HashArgon2id; use Mediagone\Common\Types\Crypto\HashBcrypt; use PHPUnit\Framework\TestCase; /** * @covers \Mediagone\Common\Types\Crypto\Hash */ final class HashT...
true
fd732d1364c5c3afb319175d1b03789947646dbc
PHP
brBart/project-999
/999_pos/trunk/commands/get_comparison_page.php
UTF-8
2,443
2.875
3
[]
no_license
<?php /** * Library containing the GetComparisonPageCommand base class. * @package Command * @author Roberto Oliveros */ /** * Base class. */ require_once('presentation/command.php'); /** * For displaying the results. */ require_once('presentation/page.php'); /** * For displaying the object details. */ requi...
true
cfba31bb18faba040fdd8201a96f7f41c4586f35
PHP
giorgiosironi/cathacks
/spec/Md/CatHacks/Types/SomeSpec.php
UTF-8
510
2.625
3
[ "MIT" ]
permissive
<?php namespace spec\Md\CatHacks\Types; use PhpSpec\ObjectBehavior; use Prophecy\Argument; class SomeSpec extends ObjectBehavior { function let() { $this->beConstructedWith(42); } function it_is_an_option() { $this->shouldHaveType('Md\CatHacks\Types\Option'); } function ...
true
bf1d3c1504b35a489581cf7bf3c717386d31d9a2
PHP
quickdry/code-snippets
/php/class-db.php
UTF-8
7,353
3.15625
3
[ "MIT", "GPL-2.0-or-later", "GPL-2.0-only" ]
permissive
<?php namespace Code_Snippets; use wpdb; /** * Functions used to manage the database tables * * @package Code_Snippets */ class DB { /** * Unprefixed site-wide table name */ const TABLE_NAME = 'snippets'; /** * Unprefixed network-wide table name */ const MS_TABLE_NAME = 'ms_snippets'; /** * Sid...
true
924fdc755e2517373ae2728429530593352d5b24
PHP
jains5365/htmonitoringsystem
/project/app/models/Gov.php
UTF-8
2,088
2.875
3
[]
no_license
<?php class Gov { private $db; public function __construct(){ $this->db = new Database; } // Regsiter user public function login($data){ $this->db->query('SELECT * FROM govt WHERE name = :name'); $this->db->bind(':name', $data['name']); $row = $t...
true
47843c75cdf15176dbff6c60e9a5b114fb109b01
PHP
salted-herring/thething-backend
/custom-fields/code/Models/CustomForm.php
UTF-8
2,595
2.6875
3
[]
no_license
<?php /* * @file CustomForm.php * * A custom form to hold multiple custom fields. */ class CustomForm extends DataObject { private static $db = array( 'Name' => 'Varchar(100)', 'URL' => 'Varchar(256)' ); private static $has_many = array( 'CustomFields' => 'CustomField', ...
true
c1c97b640386281e6e23051e53e1dafb680f4011
PHP
bronsonpelayo/phalcon-starter
/apps/core/repositories/IRepository.php
UTF-8
339
2.578125
3
[ "MIT" ]
permissive
<?php namespace Core\Repositories; interface IRepository { function create($entity); function update($entity); function delete($entity, $id); function get($entity); function save(); function getbyid($entity,$id); function getall($entity); function toArray(); function slice($offset, ...
true
1ef65c0ed07feb1c61da85813e50b8e7f041fdf7
PHP
techSolstice/reddit_silver
/src/Service/ThreadService.php
UTF-8
5,530
3.125
3
[]
no_license
<?php namespace App\Service; use GuzzleHttp\Client; use GuzzleHttp\Exception; use Symfony\Component\DependencyInjection\ContainerInterface; use App\BriefPost; /** * Class ThreadService * Service providing methods for Reddit Post-related actions, including Requesting from Reddit API * @package App\Service */ class...
true
241847445857623deaaf1a8fb3d8b99a54ac642f
PHP
imatic/data-bundle
/src/Data/Query/DisplayCriteria/PagerFactory.php
UTF-8
510
2.5625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Imatic\Bundle\DataBundle\Data\Query\DisplayCriteria; /** * @author Miloslav Nenadal <miloslav.nenadal@imatic.cz> */ class PagerFactory { protected int $defaultLimit = 100; public function createPager(int $page, int $limit = null): PagerInterface { $limit ...
true
01f68c56720d203ce8b659212b3a3abbcfa19f26
PHP
luoxiaojun1992/sw-fw-less
/src/components/filewatcher/Watcher.php
UTF-8
1,794
3
3
[ "Apache-2.0" ]
permissive
<?php namespace SwFwLess\components\filewatcher; class Watcher { private $driverClass; /** @var WatcherWrapperContract */ private $driver; private $watchDirs; private $excludedDirs; private $suffixes; const EVENT_MODIFY = 0; const EVENT_CREATE = 1; const EVENT_DELETE = 2; ...
true
f17bad48c97678d1a6b3729866fc631872c59662
PHP
victor24680/self-composer
/src/App/Zn.php
UTF-8
222
2.671875
3
[]
no_license
<?php namespace App; use Contract\Send; class Zn implements Send { public function send($to, $content) { return '【站内消息】发送给:' . $to . '|发送内容:' . $content; } }
true
f20fa0dabed60fb307a380fa94c93b8fe571f250
PHP
Guilherme-Artigas/PHP-Basico-40h
/Aula 13 - Estrutura de Repetição For/02-tabuada.php
UTF-8
567
2.8125
3
[ "MIT" ]
permissive
<!DOCTYPE html> <html lang="pt-br"> <head> <meta charset="UTF-8"> <title>Curso de PHP - CursoemVideo.com</title> <link rel="stylesheet" href="_css/estilo.css"> </head> <body> <div> <?php $n = isset($_GET["num"])?$_GET[("num")]:2; fo...
true
9168934935401a23546ea9f018072376feb6a481
PHP
nixieonix/Wordpress
/WpGoogleMapAPI/mapxml.php
UTF-8
1,936
2.78125
3
[]
no_license
<?php /* Template Name: Location Map XML */ echo '<?xml version="1.0" encoding="UTF-8"?>'; echo '<markers>'; $posts = query_posts(array_merge( array( 'post_type' => 'location' ) )); //give each marker an id number $i = 0; foreach ($posts as $post){ ?> <?php global $post; $post_slug=$post->p...
true
5a743cc33c0ce186e63e4c018c43a35c5b5f0d38
PHP
danielpetrov/PHP-TheWeb
/Task2.php
UTF-8
1,203
2.78125
3
[]
no_license
<?php $title = 'Task2'; $result = ''; $RESULT = "Result: "; $validRequest = true; require_once "heading.php"; require_once 'functions.php'; $username = getValue($_POST, 'username'); $password = getValue($_POST, 'password'); $confirmPass = getValue($_POST, 'confirmPass'); if($username != null && $password != null && $...
true
cb83783df508b70a5a7cfabbb7eec406a9beec94
PHP
meeting90/863_framework
/final/Model.class.php
UTF-8
3,437
2.921875
3
[]
no_license
<?php require_once "Db/DbMysql.class.php"; require_once "Config.class.php"; class Model{ private $modName; public function __construct($name=''){ if(Config::$config['table_prefix']) $this->modName = Config::$config['table_prefix'] . $name; else $this->modName = $name; } /**the result of...
true
f30d37ab6b320fba711278d324ff8e704d885464
PHP
nikrowell/cranium
/wp-content/themes/cranium/app/route.php
UTF-8
429
2.921875
3
[]
no_license
<?php class Route { public $methods; public $path; public $callback; public $params; public function __construct($methods, $path, $callback) { $this->methods = $methods; $this->path = $path; $this->callback = $callback; $this->params = []; } public functio...
true
43ca42642263d2e4d76939cd31484e7a34f093dd
PHP
alien-repos/user_web_history
/app/Http/Controllers/EmployeeHistoryController.php
UTF-8
1,924
2.84375
3
[]
no_license
<?php namespace App\Http\Controllers; Use Exception; use Illuminate\Http\Request; use App\Repositories\Employee\EmployeeHistoryInterface as EmployeeHistoryInterface; class EmployeeHistoryController extends Controller { private $employeeHistory; private $request; public function __construct(EmployeeHistoryInte...
true
e9bd4affba1539f11b240de18544b577e3222ce4
PHP
stefanimeneghetti/projeto-integrador
/classes/servicos/Servico.php
UTF-8
2,602
3.4375
3
[]
no_license
<?php class Servico { private $id; private $nome; private $duracao; private $preco; private $descricao; private $ativo; private $profissionais; public function getId() { return $this->id; } public function setId($id) { $this->id = $id; } public function...
true
229d8f0b4d72a2c3d35e18a9c8cf3607f497fcd6
PHP
al10508222/controlV1
/controlgestionback/database/seeders/CatPeriodicityTypeSeeder.php
UTF-8
2,400
2.6875
3
[]
no_license
<?php namespace Database\Seeders; use App\Models\Catalogs\CatPeriodicityType; use Illuminate\Database\Seeder; class CatPeriodicityTypeSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { // 06 Bimestral // 07 Unidad obra // 08 Comisión // 0...
true
0d10f70c0513bf5d6e05cc525e409f5e58d0c097
PHP
toanmv-1729/wfms
/app/Contracts/Repositories/SampleDescriptionRepository.php
UTF-8
446
2.703125
3
[ "MIT" ]
permissive
<?php namespace App\Contracts\Repositories; interface SampleDescriptionRepository extends Repository { /** * Update Status all sample in project * @param int $projectId * @return Boolean */ public function updateStatus(int $projectId); /** * Find Sample Active Apply In Project ...
true
2b64bdc6099056a227fc07f4932c6a1b958b45be
PHP
ruanolucas/mp-ecommerce-php
/ipn.php
UTF-8
361
2.53125
3
[]
no_license
<?php function logger($content){ $file = fopen('ipn.txt', 'a'); fwrite($file, $content); fclose($file); } logger('------------------------- ' . date('Y-m-d H:i:s')); if(isset($_GET) && is_array($_GET) && count($_GET) > 0){ $content = print_r($_GET, true); logger($content); } $content = file_get_c...
true
382fcec147b28260162a8407ebf661781401a49f
PHP
zychmichal/PHP-JS
/send.php
UTF-8
407
2.734375
3
[]
no_license
<?php $koncowe = $_POST["koncowe"]; $file=file('chat.txt'); $ile = count($file); if($ile>5){ unset($file[0]); //Usuwamy wskazaną linię z tablicy(pliku txt) $plik=fopen('chat.txt','w'); //Otwieramy plik fwrite($plik,join('',$file)); //Zapisujemy plik bez lini usunietej fclose($plik); } echo $ile; $...
true
47b9fac55915351160645a917a3372682a9bc7ab
PHP
dreemcatcher/LoftScool102016Homework2
/zadanie5.php
UTF-8
1,113
3.46875
3
[]
no_license
<?php error_reporting(-1); mb_internal_encoding('utf-8'); function palindromcheck($text){ // $text="А роза упала на лапу Азора"; //$result=''; $withoutSpace = str_replace(' ', '', $text); // Удаляем пробелы $smallText = mb_strtolower($withoutSpace); // Переводим в нижний регистр $length ...
true
c10b642ca9030a8bfa7a47f87cab851f1957863e
PHP
chet21/ginger
/console/constructors/ControllerConstructor.php
UTF-8
1,099
2.828125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: User * Date: 15.05.2019 * Time: 8:56 */ namespace Console\Classes\Constructor; class ControllerConstructor { public $body; public $name; public $type; public function __construct($className, $type) { $this->name = $className; $this->...
true
5e8557a6cafb58fd947765a83f07f0128030ba6a
PHP
HarryJhin/ApplicationOfInformationProcessing
/02.php
UTF-8
101
3
3
[]
no_license
<?php $A = 7; $B = 5; $Op = '/'; switch ($Op) { case '/': echo $A / $B; break; }
true
fbdf705f895135f17033a5b46b2d1c5192c0fb76
PHP
b2pweb/bdf-collections
/src/OrderedCollectionInterface.php
UTF-8
1,368
3.203125
3
[ "MIT" ]
permissive
<?php namespace Bdf\Collection; use ArrayAccess; /** * An OrderedCollection keeps all its elements in order * * @template T * @extends CollectionInterface<T> */ interface OrderedCollectionInterface extends CollectionInterface, ArrayAccess { /** * Search the element position * * @param mixed $...
true
40760254cbdfd7f01ccad55e3a22d271f4c2c8ae
PHP
bapakami/GKJ-Sragen
/application/views/laporan/pdf_kematian.php
UTF-8
2,584
2.71875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<table align="center"> <tr> <td><b><h2 style="text-align: center;">Laporan Daftar Kematian Jemaat</h2></b> <b><h2 style="text-align: center;"><?=$namagereja[0]->namagereja?></h2> </td> </tr> </table> <br> <h4>Tabel Statistik : </h4> <table border="1" style="border-collapse: collapse;width: 100%;"> ...
true
11cad5500a9bc326cbf61f0ff8ee447fdedaf591
PHP
pisyek/simple-crud-l5
/app/Http/Requests/UpdateStudentDetail.php
UTF-8
1,114
2.640625
3
[]
no_license
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; /** * Class UpdateStudentDetail * * @package App\Http\Requests * @author Hafiz Suhaimi <pisyek@gmail.com> * @copyright 2018 Pisyek Studios */ class UpdateStudentDetail extends FormRequest { /** * Determine if the user is au...
true
b8fa82fc46dbdd628197d2923da7cdff7934d724
PHP
lyzwhh/baoming
/app/Services/RedisService.php
UTF-8
4,095
2.84375
3
[ "MIT" ]
permissive
<?php /** * Create by PhpStorm * User: neuq-xjh * Date: 2019/10/6 0006 * Time: 9:03 */ namespace App\Services; use Illuminate\Support\Facades\Redis; use phpDocumentor\Reflection\Types\Boolean; class RedisService { private static $prefix; /** * 访问该类方法的入口,并初始化prefix属性 * @param $name * @pa...
true
3364de203cc7c555628497e9e2eca2465df0f209
PHP
mike-odom/TorrentPHP
/src/Client/Deluge/ClientAdapter.php
UTF-8
3,546
2.765625
3
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
<?php namespace TorrentPHP\Client\Deluge; use TorrentPHP\ClientAdapter as BaseClientAdapter; use TorrentPHP\Torrent; /** * Class ClientAdapter * * @package TorrentPHP\Client\Deluge */ class ClientAdapter extends BaseClientAdapter { /** * @see ClientTransport::addTorrent() */ public function add...
true
5d184976a19ff3b75265be295dff228730a56886
PHP
Hadamcik/Spedito
/src/app/Model/Validator/TransportValidator/ITransportValidator.php
UTF-8
496
2.515625
3
[]
no_license
<?php declare(strict_types=1); namespace Spedito\Model\Validator\TransportValidator; use Spedito\Exceptions\Model\Validation\Entity\TransportValidationException; use Spedito\Model\DTO\TransportDTO; /** * Interface ITransportValidator * @package Spedito\Model\Validator\TransportValidator */ interface ITransportVal...
true
7dd16deafc204220961ef8ff7a5b734140310fbb
PHP
devmount-monstra/events
/repositories/repository.locations.php
UTF-8
3,390
3
3
[ "MIT" ]
permissive
<?php // let only monstra allow to use this script defined('MONSTRA_ACCESS') or die('No direct script access.'); /** * Locations repository class * * Provides all locations table database requests * */ class LocationsRepository { /** * Get locations table object * * @return object * ...
true
59cfd10a89a5699c68fb1ad8b267bc7355b1c976
PHP
MaxSprauer/aoc2018
/09_Marble_Mania/allthemarbles.php
UTF-8
3,921
3.203125
3
[]
no_license
<?php // Copyright 2018 Max Sprauer // Requires PEAR's Structures_LinkedList_DoubleNode require_once 'CircularBuffer.class.php'; require_once 'CircularBuffer2.class.php'; ini_set('memory_limit', '4G'); assert(32 == play2(9, 25)); assert(146373 == play2(13, 7999)); assert(2764 == play2(17, 1104)); assert(54718 == pl...
true
b8c7f3349b20c262417ebe61782b0875146ef5dc
PHP
sudiptadeb/slim-security
/src/SDeb/utils/Utils.php
UTF-8
768
2.875
3
[ "MIT" ]
permissive
<?php /** * User: Sudipta Deb <mr.sudiptadeb@gmail.com> * Date: 09/04/17 * Time: 11:36 PM */ namespace SDeb\utils; use SDeb\SecurityMiddleware; class Utils { /** * @param $fileLocation * @return SecurityMiddlewareException|string * @throws SecurityMiddlewareException */ public static...
true
91f33a2f18a42c4d506abd36a7af13c74578590d
PHP
TrueDaerk/neo-arango-wrapper
/src/client/ClientLoader.php
UTF-8
3,208
2.796875
3
[]
no_license
<?php namespace Neo\Arango; use ArangoDBClient\ConnectionOptions; use Neo\Commons\Config\ConfigurationFactory; use Neo\Commons\Config\HOCON\HoconConfigurationFactory; use Prophecy\Exception\InvalidArgumentException; class ClientLoader { /** * @param string $config Path to a file that will be used as a configu...
true
4c179b85d67f26aa98fc2b2cf32c5b0f126720a1
PHP
LeoStrupeni/DH_Php
/0521 - Intro PHP/0521_Practica2.php
UTF-8
2,285
3.75
4
[]
no_license
<?php $numero1 = "10"; $numero2 = "20"; if ($numero1 >= $numero2) { echo $numero1; } else { echo $numero2; }; echo "<hr>"; $randon=rand(1,5); if ($randon==3 || $randon==5) { echo $randon; }; echo "<hr>"; $randon2=rand(1,5); if ($randon2!=3) { echo "El número NO es 3"; } else { echo $...
true
75f3a226f9c900f8122a997bb333d171183adcf1
PHP
tellurion-project/GroestlFrame
/groestlframe.php
UTF-8
11,538
2.59375
3
[ "MIT" ]
permissive
<?php class GroestlFrame{ function __construct() { require "groestlcoin.php"; require "groestlframe_settings.php"; //connect to the database $this->connection = mysqli_connect($this->settings['db_server'], $this->settings['db_username'], $this->settings['db_password'], $this->settings['db_databa...
true
21735fda1712281d434b310d4b32272dbfd18a23
PHP
ViniciusBorgesTodeschini/Curso-PHP-POO
/Aula10b/index.php
UTF-8
1,216
2.953125
3
[ "MIT" ]
permissive
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> </head> <body> <pre> <?php require_once 'Pessoa.php'; require_once 'Aluno.php'; require_once 'Funcionario.php'; require_once 'Professor.php'; ...
true
c0fa9e5bb206648a3ee91beeb6b11d70e05223f9
PHP
sethrachwitz/sgql
/tests/lib/drivers/mysql/TransactionTest.php
UTF-8
3,486
2.5625
3
[]
no_license
<?php namespace SGQL\Lib\Drivers; include_once(dirname(__FILE__).'/../../../../src/lib/drivers/mysql.php'); include_once(dirname(__FILE__).'/../../../MySQL_Database_TestCase.php'); class TransactionTest extends \SGQL\MySQL_Database_TestCase { protected $fixture = [ [ 'default1Wireframe.sql', ...
true
71eabaf619b794c642c12e213e30c8b92cd1cb4c
PHP
Swahjak/smile-magento-elasticsearch
/src/app/code/community/Smile/ElasticSearch/Model/Catalog/Layer/Filter/Price.php
UTF-8
6,387
2.546875
3
[]
no_license
<?php /** * Handles price attribute filtering in layered navigation. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade Smile Searchandising Suite to newer * versions in the future. * * This work is a fork of Johann Reinke <johann@bubblecode.net> previous module * available at https://gi...
true
eaf9617ecffd4c47db2e594ef970eacd85807a85
PHP
Alex-Cas/web_arena
/src/Model/Table/GuildsTable.php
UTF-8
684
2.625
3
[]
no_license
<?php namespace App\Model\Table; use Cake\ORM\Table; class GuildsTable extends Table { public function getAllGuilds(){ $guilds = $this->find('all')->from("guilds")->toArray(); return $guilds; } public function deleteGuilds($id){ $entity = $this->get($id); $this->delete($entit...
true
cdc570ec02597a95ea0c47fd175429eb9ce644ae
PHP
athallahmaajid/login-php-example
/login.php
UTF-8
965
2.8125
3
[]
no_license
<?php require_once "core/init.php"; require_once "views/header.php"; $error = ''; if(isset($_SESSION["loggedin"]) && $_SESSION["loggedin"] === true){ header("location: welcome.php"); exit; } if (isset($_POST['submit'])){ $username = $_POST['username']; $password = $_POST['password']; if (!empty(t...
true
b204ee0bdd5ef400d1085a7ffe3bd5a0c94deafb
PHP
danielsteiner/oerkLerntool
/app/Console/Commands/ParseQuestions.php
UTF-8
6,114
2.90625
3
[ "MIT" ]
permissive
<?php namespace App\Console\Commands; use Illuminate\Console\Command; use Storage; use App\Category; use App\Question; class ParseQuestions extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'questions:parse {filename}'; ...
true
c1f2ff4d8a43c1cd8bd3a6e9fe4460c90586973a
PHP
NuranGho/MentorMatch
/validation.php
UTF-8
1,945
2.578125
3
[]
no_license
<?php $username = $_POST['user']; $password = $_POST['pass']; $username = stripcslashes($username); $password = stripcslashes($password); //establish connection to db $con=mysqli_connect("localhost", "root", ""); //switch to login db mysqli_select_db($con, "login");...
true
00ec6caed99573d688b928fec4355c88909eec78
PHP
huotuifan/jh_test
/src/classes/db/DbPlace.php
UTF-8
2,450
2.640625
3
[]
no_license
<?php namespace db; class DbPlace extends \common\DbModel { const ID = 'place_id'; const UUID = 'place_uuid'; const NAME = 'place_name'; const ABOUT = 'place_about'; const DISABLED = 'place_disabled'; const LAT = 'place_lat'; const LNG = 'place_lng'; const USER_ID = DbUser::ID; pu...
true
9f51aa29c659a2b37913ea92018b5127fec5e661
PHP
kevinmaulanan/laravel
/app/Http/Controllers/Users.php
UTF-8
2,905
2.578125
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Hash; use Illuminate\Support\Facades\Session; class Users extends Controller { /** * Handle the incoming request. * * @param \Illuminate\Http\Request $request ...
true
0caa77b18e14fb567a29ece98325214dc0773293
PHP
azlabsphp/laravel-oauth-clients
/src/Middleware/CreatesClientCredentials.php
UTF-8
2,761
2.765625
3
[ "MIT" ]
permissive
<?php namespace Drewlabs\Laravel\Oauth\Clients\Middleware; use Drewlabs\Oauth\Clients\Contracts\CredentialsIdentityInterface; use Drewlabs\Oauth\Clients\Credentials; trait CreatesClientCredentials { use InteractsWithRequest; /** * Creates client credentials from request cookie * * @param mix...
true
651457abcfbad4a49ef33d71525911fb6e1e0c3f
PHP
smartbooster/authentication-bundle
/src/Security/LastLoginInterface.php
UTF-8
355
2.78125
3
[ "MIT" ]
permissive
<?php namespace Smart\AuthenticationBundle\Security; /** * Add methods for handling last login */ interface LastLoginInterface { /** * @return null|\DateTime */ public function getLastLogin(); /** * @param null|\DateTime $lastLogin * * @return void */ public function ...
true
6725f821038f60f39ae115b6088de337ce772d68
PHP
jvsoest/rdf-viewer
/defaultView.inc.php
UTF-8
2,594
2.625
3
[]
no_license
<?php $prefixes = "PREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#> " ."PREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#> "; $resourceInfoQuery = "$prefixes SELECT ?resource ?resourceLabel ?resourceClass ?resourceClassLabel WHERE { BIND(<$resourceUri> AS ?resource). OPTIONAL { ?resource rdfs:label ?re...
true
b803ae63f31149488fcf20ad800df7dad60a1033
PHP
cryptobuks/laravel_admin
/app/Http/Middleware/Menu.php
UTF-8
4,970
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Middleware; use App\Model\Admin\Permission; use Closure; use Illuminate\Support\Facades\Redis; class Menu { /** * Handle an incoming request. * @param $request * @param Closure $next * @return mixed */ public function handle($request, Closure $next) { ...
true
e60efa2a86f002bda000ad0a8f583da525d77822
PHP
ervy19/Project_TEAMS
/app/controllers/TrainingPlanController.php
UTF-8
2,611
2.59375
3
[]
no_license
<?php class TrainingPlanController extends \BaseController { /** * Display a listing of the resource. * * @return Response */ public function index() { $trainings = Training::select(DB::raw('id, title')) ->where('isActive','=',true) ->where('isInternalTraining','=',true) ->where('isT...
true
6cceb631836cd238cdc059b5c1bb6ecb2f35160d
PHP
teamzac/text-file-parsers-php
/src/FixedWidth/Field.php
UTF-8
2,576
3.265625
3
[ "MIT" ]
permissive
<?php namespace TeamZac\Parsing\FixedWidth; use Illuminate\Support\Arr; use TeamZac\Parsing\Support\BaseField; class Field extends BaseField { /** * The number of characters for this field * * @var int */ protected $length; /** * Static constructor, convenient for chaining addit...
true
72c3cb21156212405553f8a54f79f36a89f0266b
PHP
jorke11/jelti
/app/Http/Requests/Administration/ProductsUpdateRequest.php
UTF-8
1,374
2.515625
3
[]
no_license
<?php namespace App\Http\Requests\Administration; use Illuminate\Foundation\Http\FormRequest; use Illuminate\Routing\Route; class ProductsUpdateRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function __construct(Ro...
true
b87088f584f61252ba49b4d5c887b23599719001
PHP
norbertogomez/Elastica
/lib/Elastica/Document.php
UTF-8
7,068
2.75
3
[ "MIT" ]
permissive
<?php namespace Elastica; use Elastica\Bulk\Action; use Elastica\Exception\InvalidException; /** * Single document stored in elastic search. * * @author Nicolas Ruflin <spam@ruflin.com> */ class Document extends AbstractUpdateAction { const OP_TYPE_CREATE = Action::OP_TYPE_CREATE; /** * Document d...
true
47834b4494488c869c2d56f4a83003a32d75aecd
PHP
rmaafs/Tienda
/php/Cupon.php
UTF-8
283
2.828125
3
[]
no_license
<?php class Cupon { public $cupon; public $descuento; public $descripcion; public function __construct($fila) { if ($fila == null) return; $this->cupon = $fila['cupon']; $this->descuento = $fila['descuento']; $this->descripcion = $fila['descripcion']; } }
true
60360945c9b10728f736548646dd1f3ed49f2c22
PHP
fobilow/cme-kernel
/src/Enums/NotificationStatus.php
UTF-8
316
2.625
3
[]
no_license
<?php /** * @author oke.ugwu */ namespace CmeKernel\Enums; /** * Class NotificationStatus * @package CmeKernel\Enums * * @method static READ * @method static UNREAD */ class NotificationStatus extends CmeEnum { const __default = self::UNREAD; const READ = "Read"; const UNREAD = "Unread"; }
true
4328ad0f0e455a8700b342160eb0c295106c5546
PHP
plopez145780/ifrocean
/ajouter_etude.php
UTF-8
765
2.65625
3
[]
no_license
<?php include_once 'Config/ConfigBDD.php'; $nom = htmlspecialchars($_POST['nom']); $ville = htmlspecialchars($_POST['ville']); $superficie = htmlspecialchars($_POST['superficie']); $date = htmlspecialchars($_POST['date']); try { $bdd = new PDO("mysql:host=" . ConfigBDD::SERVERNAME . ";dbname=" . ConfigBDD::DBNAME ...
true
3a381f837e5e9db0cc13cde321fd480f4bfc02c4
PHP
jvbijleveld/pesten
/controller/Game.php
UTF-8
2,134
3.34375
3
[ "Apache-2.0" ]
permissive
<?php require("./entities/CardDeck.php"); require("./entities/Log.php"); require("Player.php"); Class Game{ const START_HAND = 7; private $players; private $deck; private $pile; private $currentPlayer; private $round; public $gameStart = false; function __construct(){ $thi...
true
7a188dd22e2706827f0adffff98d37138603eee6
PHP
shinya-jp/Study
/PHP/basic/a_array_tr1.php
UTF-8
415
3.703125
4
[]
no_license
<?php $score = ["english" => 90, "math" => 88, "science" => 80]; // $total = $score["english"] + $score["math"] + $score["science"]; // echo $total; // 上記のコードforeach文で書くと(railsのeach文みたいな) $total = 0; // $配列データ as $keyはenglishなどの要素が入る $valueに90などの値が入る foreach ($score as $key => $value) { $total = $total + $value; } e...
true
8102397da13154121b64dc91ea705f6d496cc7ff
PHP
QuevinMartinezBotina/Sistema-de-Gestion-de-Inventario
/modulo/modelo/categoriasdao.php
UTF-8
3,569
2.9375
3
[]
no_license
<?php include 'conexion.php'; class CategoriaDao extends Conexion { /* -----------INSERTAR UN CAGORÍA-------------- */ public function insertarCategoria($id_categoria, $nomcategoria) { $mensaje = ""; try { $conexion = Conexion::conectar(); $sql = "INSERT INTO categoria(id_categoria, nomc...
true
21ec0f6eca25e6d7abfbb1e2be48bac3bffe5b16
PHP
thecodingmachine/washingmachine
/src/Clover/CrapMethodMerger.php
UTF-8
1,229
3.171875
3
[ "MIT" ]
permissive
<?php namespace TheCodingMachine\WashingMachine\Clover; use TheCodingMachine\WashingMachine\Clover\Analysis\Method; /** * Merges crap methods from Clover and Crap4J */ class CrapMethodMerger implements CrapMethodFetcherInterface { /** * @var CrapMethodFetcherInterface */ private $file1; /** ...
true
d8046494a13d5b89c1119b676d552702fc142cbc
PHP
orkhan-huseyn/devcenter-registration
/app/models/Course.php
UTF-8
1,355
3.265625
3
[]
no_license
<?php class Course { public $course_id; public $course_name; public $description; public $syllabus_path; public $instructor_id; public function __construct($course_id, $course_name, $description, $syllabus_path, $instructor_id) { $this->course_id = $course_id; $th...
true
3a9a9d4575556a64d645ffa2bc96f32921ea316a
PHP
thehelpster/helpster
/app/database/seeds/CommentsTableSeeder.php
UTF-8
404
2.828125
3
[ "MIT" ]
permissive
<?php class commentsTableSeeder extends Seeder { public function run() { $comment = new Comment(); $comment->user_id = '1'; //user of id 1 aka roger $comment->event_id = '1'; //event of id 1 on events aka Codeup of Humanity Demo Day $comment->comment = 'What will the Codeup students be doing at this event?'...
true
8b49b8626a39a0c033e52ecffd152ab31e059d74
PHP
kewh/echoCMS
/cms/model/edit_input.php
UTF-8
21,652
2.578125
3
[ "MIT" ]
permissive
<?php /** * model class for edit * * @since 1.0.11 * @author Keith Wheatley * @package echocms\edit */ namespace echocms; class editModelInput extends editModel { /** * Get posted tags * * @return array tags */ function getPostedTags() { if (isset($_POST['tags'])) { ...
true
17c7ce814c8ef9cb6f0438c81532436a01335c65
PHP
BotBuilders1/Grant-Cardon_RealState
/database/migrations/2020_02_06_202156_create_currency_table.php
UTF-8
1,682
2.59375
3
[]
no_license
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateCurrencyTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('currency', fun...
true
ac44f3306e5e4d7c103347f8857b304304ec31c9
PHP
adriana-olszak/Twitter
/src/Tweet.php
UTF-8
3,951
3
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 Tweets * * @author adriana */ // //CREATE TABLE Tweets ( // tweets_id int AUTO_INCREMENT, // use...
true
18f0e4841cf1f878cf1c22127f15bd9a2d876fc4
PHP
zxmeng/easyOutdoor
/comment/createCommentDB.php
UTF-8
650
2.640625
3
[]
no_license
<?php $servername = "localhost"; $username = "root"; $password = ''; $dbname = "test"; // Create connection $conn = new mysqli($servername, $username, $password, $dbname) or die("unable to connect"); $sql = "CREATE TABLE Comment ( ID INT UNSIGNED AUTO_INCREMENT PRIMARY KEY, content TEXT, senderID INT UNSIGNED NOT N...
true
c29df995ddd3c0d0e6f430990b952956f9fbd73e
PHP
quintype/quintype-api-php
/src/Quintype/Api/AccessType.php
UTF-8
1,058
2.703125
3
[]
no_license
<?php namespace Quintype\Api; use GuzzleHttp\Client; class AccessType { public function __construct($apiHost = '', $accessToken = '') { $this->accessType = new Client(['base_uri' => $apiHost]); $this->accessToken = $accessToken; } private function getResponse($query = null, $options ...
true
78bfbdaf1287f22470eed9438b0e22d0124fd92e
PHP
dekuan/decaptcha
/src/CCaptcha.php
UTF-8
4,983
2.796875
3
[ "Apache-2.0" ]
permissive
<?php namespace dekuan\decaptcha; use Symfony\Component\HttpFoundation\Response; use dekuan\delib\CLib; /** * class of CCaptcha */ class CCaptcha { var $m_sCryptSeed = 'dekuan-seed'; // ... const ARR_SUPPORTED_IMAGE_TYPE = [ IMAGETYPE_GIF, IMAGETYPE_JPEG, IMAGETYPE_PNG ]; // // captcha code will be checked...
true
8a88e366da5d68394e74a802ed82c7986748a4b0
PHP
gipfl/protocol-snmp
/src/DataType/AsnTypeHelper.php
UTF-8
708
2.90625
3
[ "MIT" ]
permissive
<?php namespace gipfl\Protocol\Snmp\DataType; use GMP; use InvalidArgumentException; use Stringable; class AsnTypeHelper { public static function wantGmpIntString(mixed $value): GMP|int|string { if ($value instanceof GMP || is_int($value) || is_string($value)) { return $value; } ...
true
e779332cb5ccbbc883eba949c1f8e68fe50c858a
PHP
0xC0D3D00D/DatatablesBundle
/Datatable/Column/Action.php
UTF-8
6,594
2.78125
3
[ "MIT" ]
permissive
<?php /** * This file is part of the SgDatatablesBundle package. * * (c) stwe <https://github.com/stwe/DatatablesBundle> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Sg\DatatablesBundle\Datatable\Column; /** * Clas...
true
f5def7c1dcc89eebe02ddfe1c0f82860171ecd8a
PHP
jusmark123/stocks-api
/src/Entity/Interfaces/ModifiedAtInterface.php
UTF-8
304
2.546875
3
[]
no_license
<?php /* * Stocks Api */ declare(strict_types=1); namespace App\Entity\Interfaces; interface ModifiedAtInterface { /** * @return mixed */ public function getModifiedAt(): \DateTime; /** * @return mixed */ public function setModifiedAt(\DateTime $modifiedAt); }
true
f7f3b45ec3d6e191b2ad2d0deefbe5337ee778be
PHP
dantinr/js2006
/1-5/data.php
UTF-8
412
2.515625
3
[]
no_license
<?php // php 使用 mysqli连接 MySQL $host = '127.0.0.1'; $port = 3306; $user = 'root'; $pass = '123456abc'; $db = 'shop2004'; //数据库名 $mysqli = new mysqli($host,$user,$pass,$db,$port); $sql = "select * from p_goods where goods_id=223"; $res = $mysqli->query($sql); $data = ...
true
851c5e18bd59a1b6dc6fcc43808e68e7dbfc7f95
PHP
rbrown29/MusicApp
/api/models/favorites.php
UTF-8
1,747
3.0625
3
[]
no_license
<?php $dbconn = pg_connect("host=localhost dbname=music"); class Favorite { public $id; public $songName; public $artistName; public $coverArt; public $albumName; public function __construct($id, $songName, $artistName, $coverArt, $albumName) { $this->id = $id; $this->songName = $songName; $this->artistNam...
true
a1cc92ca767416af7e0c092de6547b3d18fa8589
PHP
nazzle/reporting-tool
/models/Personnel.php
UTF-8
1,234
2.65625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use Yii; use app\models\Participants; /** * This is the model class for table "personnel". * * @property int $id * @property string $full_name * @property string $gender * @property string $designation * @property string $work_station */ class Personnel extends \yii\db\ActiveRecor...
true
916f813d7e65fa8c8d4d5795e212deabbd125820
PHP
haboutaleb/kayan
/app/Model/Country.php
UTF-8
790
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Model; use Illuminate\Database\Eloquent\Model; class Country extends Model { protected $table = "country"; protected $appends = ['imageurl', 'imageurlorg']; public function getImageurlAttribute() { if (!$this->attributes['image']) { return url('storage/app/cou...
true
47281576f07b8ceeace55dc40987a9a3efc3c4c0
PHP
skpnchl/laravel
/app/Http/Controllers/signUpController.php
UTF-8
1,707
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Request; use App\Http\Requests; use App\SignUp; use Redirect; use Validator; use Illuminate\Support\Facades\Hash; use Illuminate\Support\Facades\Auth; class signUpController extends Controller { public function index(){ return view('login'); } publi...
true
d2ac0edb228a853827b3a030ca2def39cacec1d3
PHP
samuthojo/garage
/database/seeds/NotificationsTableSeeder.php
UTF-8
624
2.578125
3
[]
no_license
<?php use Illuminate\Database\Seeder; use App\Notification; class NotificationsTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { // $faker = Faker\Factory::create(); // for($i = 1; $i < 7; $i++) { // $notificatio...
true
5838a0fedea6e8c631371c7b421352063e360b56
PHP
neehal19-39435-1/ajax
/fileio.php
UTF-8
6,341
2.8125
3
[]
no_license
<?php include 'dbInsert.php'; ?> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>PHP REGISTRATION FORM</title> <script src="regValid.js"></script> </head> <body> <h1>REGISTRATION FORM</h1> <?php $fname = $lname = $gender = $religion = $dob= $paddress = $peraddress = $phone = $email = $weblink...
true
2ad1012fe6e019bf8d3adc14a3a1abb388c235e8
PHP
ramsesaguirre/online-store
/app/Orders.php
UTF-8
862
2.71875
3
[]
no_license
<?php namespace App; use Illuminate\Database\Eloquent\Model; /** * Class Orders * * @package App */ class Orders extends Model { /** * @var string */ protected $table = 'tbl_orders'; /** * @var string */ protect...
true
fa4fdffdfce7d3a76e566cf86d9270b591d2b5e0
PHP
nirvana-info/old_bak
/hawaiicustoms/includes/classes/class.subscribe.php
UTF-8
7,788
2.578125
3
[]
no_license
<?php class ISC_SUBSCRIBE { public function HandlePage() { $action = ""; if(isset($_REQUEST['action'])) { $action = isc_strtolower($_REQUEST['action']); } switch($action) { case "subscribe": { $this->Subscribe(); break; } case "unsubscribe": { $this->Unsubscribe(); ...
true