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
26e6137e090bc950f36c31c710960279128f3725
PHP
zarubond/Nowjou
/etc/scanner.php
UTF-8
735
2.6875
3
[]
no_license
<?php function walker($folder) { //echo "\n\n".$folder."\n"; $files = scandir($folder); foreach($files as $file) { if($file!='.' && $file!='..') { $path=$folder.'/'.$file; if(is_dir($path)) { if($file!='3rd' && $file!='.git' && $...
true
bffce06be9ca4503237aa708af0cc3e86ec331fd
PHP
jreynolds4/Slizzatrism
/web/sitecake/2.4.7/config/check.php
UTF-8
1,265
2.640625
3
[]
no_license
<?php if (basename(__FILE__) == basename($_SERVER["SCRIPT_FILENAME"])) { ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); } // Check for php version $phpVersion = preg_split("/[:.]/", phpversion()); if (($phpVersion[0] * 10 + $phpVersion[1]) < 56) { trigger_err...
true
af0b1935161f860dfb46691dcc62f442e370ec07
PHP
bea93/aplicacionFinal2021Bea
/controller/cCambiarPassword.php
UTF-8
3,129
2.703125
3
[ "MIT" ]
permissive
<?php //Si se ha pulsado el botón Cancelar if(isset($_REQUEST['Cancelar'])){ //Guardamos en la variable de sesión 'pagina' la ruta del controlador de la edición de usuario $_SESSION['paginaEnCurso'] = $controladores['editar']; header('Location: index.php'); exit; } //Definición y declaración de varia...
true
12257e534bc945011f020ce2293aab99482920ed
PHP
llshiro/aulafeuc
/controller.php
UTF-8
317
2.515625
3
[]
no_license
<?php function __autoload($class_name){ require_once 'classes/' . $class_name . '.php'; //Concatenando } $controle = $_GET['controlador']; $acao = $_GET['acao']; switch($controle){ case 'usuarios': $usuarios = new Usuarios(); echo json_encode($usuarios->findAll()); break; }
true
2607044174b6c8bd8d2c7f242ecdd7c94078a678
PHP
qopqopqop/wyvern
/includes/templates.php
UTF-8
2,696
2.546875
3
[ "MIT" ]
permissive
<?php /* |-------------------------------------------------------------------------- | Page templates |-------------------------------------------------------------------------- | | Register custom page templates without actually | creating files. | */ if ( !function_exists('get_virtual_templates') ) { function g...
true
8355ffe1216e435ed62d338ed846e6fdcd77f4e8
PHP
cierrateam/blueprint
/src/Models/Controller.php
UTF-8
1,109
2.953125
3
[ "MIT" ]
permissive
<?php namespace Blueprint\Models; use Illuminate\Support\Str; class Controller { /** @var array */ public static $resourceMethods = ['index', 'create', 'store', 'edit', 'update', 'show', 'destroy']; /** * @var string */ private $name; /** * @var array */ private $metho...
true
e5bfb5f6083b674afded6c8b8309fc365c50e17a
PHP
Fraz0r/P3
/lib/P3/ActiveRecord/Association/PolymorphicAssociation.php
UTF-8
1,481
2.78125
3
[]
no_license
<?php namespace P3\ActiveRecord\Association; use P3\ActiveRecord\Collection; use P3\Database\Query\Builder as QueryBuilder; /** * This is the association returned by an ActiveRecord if the "polymorphic" option * was passed as TRUE in BelongsTo * * The "as" option on the HasoOne or HasMany side deter...
true
f14356fa856ef7ab1e0dfcd32bfc4a4e5bc717b4
PHP
joseprest/Bookstore-laravel-AWS-ElasticBeansTalk
/app/Models/UserChannel.php
UTF-8
486
2.5625
3
[ "MIT" ]
permissive
<?php namespace Manivelle\Models; use Illuminate\Database\Eloquent\Model; class UserChannel extends ChannelUser { /** * Dynamically retrieve attributes on the model. * * @param string $key * @return mixed */ public function __get($key) { $value = $this->getAttribute($key...
true
c2d1efb441e794eb3a2439c8680462134a192ac1
PHP
PhillzMike/Supervision-System
/php/connection.php
UTF-8
396
2.65625
3
[]
no_license
<?php function connect(){ $hostname = 'localhost'; $username = 'root'; $pwd = ''; $dp = 'sms'; try{ $conn = new PDO("mysql:host=$hostname;dbname=$dp",$username,$pwd); $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); }catch(PDOException $ex){ file_put_conte...
true
f6012c29c71a6362843ffbd0926c9c8f9d96f1af
PHP
MakarSikorskyi/parcel
/mod/parcel/main.php
UTF-8
11,658
2.625
3
[]
no_license
<?php require_once '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'sys' . DIRECTORY_SEPARATOR . 'core.php'; class Category { public function get($ajaxSet = true) { $category = array(); $q = DBD::get()->prepare(' SELECT * FROM parcel_category '); $q->execute(); whi...
true
cbaee674b56603440f2c72b24f709071b2142fb5
PHP
marc-sunshine/flexTree
/application/forms/Linknode.php
UTF-8
1,472
2.609375
3
[]
no_license
<?php class Application_Form_Linknode extends Zend_Form { protected $_tree; protected $_node; public function __construct($tree, $node) { $this->_tree = $tree; $this->_node = $node; parent::__construct(); } public function init() { // Set the method for the display form to POST $t...
true
6d6a91787449c09b8151666aa6435cdbf75ee395
PHP
hughcube-php/laravel-huawei
/src/Http/Response.php
UTF-8
942
2.84375
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: hugh.li * Date: 2022/6/22 * Time: 14:56. */ namespace HughCube\Laravel\HuaWei\Http; use HughCube\GuzzleHttp\LazyResponse; abstract class Response { /** * @var LazyResponse */ private $httpResponse; private $bodyData; public function __construc...
true
fadf3f5b4d93fb2db4c64396b3d85a3a28627909
PHP
ebussola/facebook-core
/test/stubs/AccessTokenData.php
UTF-8
1,113
2.90625
3
[]
no_license
<?php /** * Created by JetBrains PhpStorm. * User: usuario * Date: 17/10/13 * Time: 15:22 */ class AccessTokenData implements \ebussola\facebook\core\AccessTokenData { private $long_access_token; /** * @var DateTime */ private $expiration_datetime; /** * @param string $access_tok...
true
bc9c15fe1bb58888e27dd9762db402313ef984e2
PHP
php-lsys/upload
/src/uploader/classes/LSYS/Uploader/Url/UrlImage.php
UTF-8
655
2.625
3
[]
no_license
<?php namespace LSYS\Uploader\Url; use LSYS\Uploader\Url; use LSYS\Uploader\Exception; use LSYS\Uploader\HandlerTrait; class UrlImage implements Url{ use HandlerTrait; /** * @return string */ public function saveUrl($url,&$name=null){ $upload=new \LSYS\Remote\Image($url,$this->config()); ...
true
6978245876025fcf8a5e556db8688fadc1cca629
PHP
Wsmallnews/laravel-demo
/app/Policies/UserPolicy.php
UTF-8
1,329
2.5625
3
[]
no_license
<?php namespace App\Policies; use App\Models\User; class UserPolicy extends Policy { public function index (User $user) { return $user->isSuperAdmin(); } /** * Determine whether the user can view the user. * * @param \App\Models\User $user * @param \App\Models\User $user...
true
4a0af3095bc27e4bf180fd7272bb9c442f1f3e40
PHP
kitoku-magic/final_magic
/model.php
UTF-8
3,261
3.359375
3
[]
no_license
<?php /** * 基底モデルクラス * * MVCAのMを担当するクラス * * @access public * @create 2010/08/12 * @version 0.1 */ abstract class model { /** * コンストラクタ * * @access public */ public function __construct() { $this->init(); } /** * 初期化処理 * * @access protected *...
true
2f08be282d00b90605d980a4f195e0b73a087e1e
PHP
rmstibbard/week-6--namespaces-composer
/app/Library/Shelf.php
UTF-8
488
3.40625
3
[]
no_license
<?php namespace App\Library; class Shelf { public function __construct() // Using collections { $this->books = collect(); // Set collection in __construct } public function addBook($book) { $this->books->push($book); return $this; } public funct...
true
3600648c408efe58d1e8dab81c855d71916dccee
PHP
sharenjoy/cmsharenjoy
/src/Service/Lister/Lists/CommonList.php
UTF-8
993
2.578125
3
[]
no_license
<?php namespace Sharenjoy\Cmsharenjoy\Service\Lister\Lists; class CommonList extends ListAbstract implements ListInterface { public function make($item, $column, $config) { $content = '<td align="'.$config['align'].'" width="'.$config['width'].'">'; if (isset($config['relations'])) { ...
true
e7a403a24a2a87f8f82578498615fbc6a0f5e409
PHP
patwalls/buildgrid
/app/Repositories/BomRepository.php
UTF-8
3,526
2.71875
3
[]
no_license
<?php namespace BuildGrid\Repositories; use BuildGrid\Events\BomFileStored; class BomRepository { /** * @param $bom * @param $file * @return bool */ public function storeBomFile($bom, $file) { $path = $this->getBomFileStoragePath($bom); if ( ! \Storage::disk(env('D...
true
baa11a939aaf95500b8d9cae2e373be1738a3094
PHP
qqu0127/CS143-UCLA
/project1b/www/showMovieInfo.php
UTF-8
4,451
2.8125
3
[]
no_license
<html> <head> <title>Show Movie Information</title> <style> h1 { text-align:center;} .requirement{color:red; font-size:small} </style> </head> <body> <br><p><h1>Movie Information Page</h1></p><br> <form method = "GET" action = "./search.php"> <input type = "text" name = "search" size = 150px> <span clas...
true
d17e3437fcc5280f47b97c8af3edc914619fa98a
PHP
dathalongbay/PHP2005
/ngay17/001/index1.php
UTF-8
1,350
3.1875
3
[]
no_license
<!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>Document</title> </head> <body> <pre> ...
true
413e5aab5a49129cf8cef32e0e1ed5dfd6974411
PHP
No-OBu/Test_mvc
/project/src/SQLData/MessagesSQLData.php
UTF-8
1,475
3.046875
3
[ "Unlicense" ]
permissive
<?php namespace SQLData; use Models\BaseModel; use Models\MessagesModel; class MessagesSQLData extends BaseSQLData { const TABLE_NAME = 'Messages'; const MODEL_NAME = MessagesModel::class; public function createObject($arrayData) { $inst = new MessagesModel($arrayData); return $inst; ...
true
caa9797df741a661f0911c42a53767bb27fd0919
PHP
anamadi/PHP_Basic
/nivell3/exercici2.php
UTF-8
424
3.875
4
[]
no_license
<?php /* Escriu un programa en PHP que compta el nombre total de vegades que un valor existeix en l'array. */ $valor = 8; $arrayRepeticiones = array(2,8,7,8,4,8,9,8); var_dump($arrayRepeticiones); $cuenta = array_count_values($arrayRepeticiones); foreach($cuenta as $numero=>$repeticiones) { if($numero == $valor) ...
true
136d21b968f78f42b4a7e5fc91e39cf9d6e80867
PHP
dssiqueira/smart_health
/app/controllers/welcome.php
UTF-8
704
2.578125
3
[]
no_license
<?php /** * Default Controller * */ class Welcome extends Controller { public function index() { require_once APP . 'models/userModel.php'; $this->userModel = new UserModel ( $this->db ); $usersCount = $this->userModel->getUsersCount(); $usersCount = isset($usersCount) ? $usersCount->count:0; ...
true
d32cab29553bea4ed90b5e38ee624cdc4ad2316c
PHP
Prevent93/the-interview
/class_docsv.php
UTF-8
13,839
2.71875
3
[ "Unlicense" ]
permissive
<?php // set the mem limit to what is stated below in the comment for insertCSVIntoDatabase() ini_set('memory_limit','512M'); /** * NOTES * 10mb of csv is around 50,000 rows * so 325mb should be about 1,600,000 rows ? * * This is meant for CLI use, has NOT been tested in any other environment * * We're i...
true
eaabd305beaf5f34255ec894f56cafaa401f2539
PHP
HebahNsour96/Fresh-Shop
/admin/examples/product.php
UTF-8
18,545
2.578125
3
[ "MIT" ]
permissive
<?php require('includes/connection.php'); $id = ''; $name = ''; $qty = 0 ; $desc = ''; $price = 0 ; $image_name = ''; $cat_id = ''; if (isset($_POST['submit'])) { $name = $_POST['pro_name']; $qty ...
true
82ec14c167f8968c8e019b234ea94465b0c8441c
PHP
phisikus/magog
/application/classes/controller/page/guard/websocket.php
UTF-8
2,680
2.84375
3
[ "BSD-3-Clause" ]
permissive
<?php /** * Created by JetBrains PhpStorm. * User: micmax93 * Date: 03.04.13 */ require("lib.websocket.php"); class SimpleWebSocketClient { public $socket; public $isOpen; public function __construct($addr = "ws://127.0.0.1:12345/echo/") { $this->socket = new WebSocket($addr); $thi...
true
932a66ae3b089cb2493e93b41cdafa7b5f8b8e28
PHP
anton-github/google-adwords-api-light
/Google/Api/Ads/AdWords/v201406/classes/PendingInvitationSelector.php
UTF-8
1,073
2.796875
3
[ "Apache-2.0" ]
permissive
<?php /** * Selector for getPendingInvitations method. * @package Google_Api_Ads_AdWords_v201406 * @subpackage v201406 */ class PendingInvitationSelector { const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/mcm/v201406"; const XSI_TYPE = "PendingInvitationSelector"; /** ...
true
76f8c7241e3cbce0ed124891642bc7064e91fe81
PHP
amit0789/basic-practice
/JW_filter1/jw_filter.php
UTF-8
870
2.53125
3
[]
no_license
<?php /* Plugin Name: Jw filter Plugin URI : http://themesflow.com Description: demo Author :amit Author URI: http://themesflow.com Version: 1.0 */ add_filter('the_content',function($content){ $id = get_the_id(); if(!is_singular('post')){ return $content; } $terms = get_the_terms('id', 'category')...
true
5f9ad8176633a3e61adfc763baf5fa4dbab12690
PHP
errorbadurl/wristband-rev
/app/Wristbands/Classes/Colors.php
UTF-8
108,391
2.828125
3
[ "MIT" ]
permissive
<?php namespace App\Wristbands\Classes; use Storage; class Colors { public function reset() { // regular style wristbands. Storage::put('json/wristband/colors/regular.json', json_encode($this->regular())); Storage::put('json/wristband/colors/regularLarge.json', json_encode($this->regularLarge())); Storage...
true
1eba0de0c5b1050bb25057787badcad53b9e5352
PHP
ImperialAdepts/WebGame
/src/PlanetBundle/Entity/Resource/BlueprintRecipe.php
UTF-8
3,709
2.5625
3
[]
no_license
<?php namespace PlanetBundle\Entity\Resource; use Doctrine\ORM\Mapping as ORM; /** * class WorkSheet * * @ORM\Table(name="bluprint_recipes") * @ORM\Entity(repositoryClass="PlanetBundle\Repository\BlueprintRecipeRepository") */ class BlueprintRecipe { /** * @var int * * @ORM\Column(name="id", type="intege...
true
ff5bf410ee0d3e7fd15f41a16cc3ce33cd7d0b95
PHP
royWati/todayict
/data/apis/categories/class.php
UTF-8
751
2.890625
3
[]
no_license
<?php include ('../db.php'); global $db; class Category{ public static function addCategory($name){ global $db; // adding data you use arrays $data = array(); $data['name'] = $name; $data['active_status']=1; $data['created_on']= $db->GetOne('Select now()'); // AUTO EXECUTE INSERT -> TABLENAME,ARRAY...
true
a797f30bb7bbbe5ad7aec0d75fd4f85f7c62127c
PHP
uxff/xahoo
/approot/protected/xahooadmin/components/MemberAdminIdentity.php
UTF-8
2,207
2.8125
3
[]
no_license
<?php /** * UserIdentity represents the data needed to identity a user. * It contains the authentication method that checks if the provided * data can identity the user. */ class MemberAdminIdentity extends CUserIdentity { public $admin; public $_uid; public $username; public $role...
true
c49acccea6f7ece8f4e525f38ffc291e6868bb97
PHP
barryosull/bounded-context-laravel
/src/Infrastructure/Laravel/Player/RegisteredList.php
UTF-8
327
2.828125
3
[ "MIT" ]
permissive
<?php namespace BoundedContext\Laravel\Player; class RegisteredList { private $players = []; public function append_array($players) { $this->players = array_unique(array_merge_recursive($this->players, $players), SORT_REGULAR); } public function all() { return $this->players; ...
true
9feedecfbfc349ed8ec1f37b98be5bcee954cc77
PHP
livewire/volt
/tests/Feature/Actions/ReturnViewDataTest.php
UTF-8
1,147
2.515625
3
[ "MIT" ]
permissive
<?php use Livewire\Volt\Actions\ReturnViewData; use Livewire\Volt\CompileContext; use Livewire\Volt\Component; it('may return view data lazily', function () { $context = CompileContext::make(); $context->viewData = fn (MyClass $class) => [ 'a' => 'a', 'b' => $this->b, 'c' => $class->c...
true
930b57e825551ac3a5324b4165194dd86bbf5372
PHP
developpeurwebjuniorfr/php-unit-test
/src/Repositories/UserRepository.php
UTF-8
1,308
3.125
3
[]
no_license
<?php namespace App\Repositories; use App\Models\User; use App\Repositories\Repository; class UserRepository extends Repository { const __TABLE = 'users'; /** * Get all users * @return array<User> */ public function findAll(): array { $sql = 'SELECT * FROM ' . self::__TABLE;...
true
3efaf46d196c970704c9f067064b13d712b5971d
PHP
ArvindSridhar/GFT-Website
/test.php
UTF-8
824
2.875
3
[]
no_license
<?php include_once("config.php"); $conn = new mysqli($servername, $username, $password, $dbname3); /* // Check connection if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); }*/ $sql = "SELECT * FROM `MenuItems` WHERE 1"; if(!$result = $conn->query($sql...
true
8543089e8ec792795b848af56160bfbaadf73522
PHP
devlato/linq_php
/Qmaker/Linq/Expression/Operation/OperationInterface.php
UTF-8
253
2.640625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace Qmaker\Linq\Expression\Operation; interface OperationInterface { /** * Apply operation to the values stored in stack * @param \SplStack $stack * @return void */ public function compute(\SplStack $stack); }
true
9e642a66b9d3b88adecfb256611f17d63ea9e522
PHP
FSI-HochschuleTrier/jWidget
/widgets/Bus/SWTParser.class.php
UTF-8
2,433
2.609375
3
[ "MIT" ]
permissive
<?php class SWTParser { private $swtResponse; private $normResponse; private $responseDetails; private $busses = array(); const URL = "http://212.18.193.124/onlineinfo/onlineinfo/stopData"; public function __construct($stop) { $this->getDataBYcURL($stop); $this->normalizeResponse(); $this->toClass(); } ...
true
155227d37414e9e9f0730b495f9a3d0fa40dc336
PHP
SatosiNisimura/yorushika
/public/contact_form_done.php
UTF-8
1,616
2.625
3
[]
no_license
<?php try { require_once('../common/common.php'); $post = sanitize($_POST); $onamae = $post['onamae']; $email = $post['email']; $address = $post['address']; $tel = $post['tel']; $dat = $post['dat']; $tim = $post['tim']; $message = $post['message']; // 接続設定 $user = 'root'; $pass...
true
dc7e20b0819f62ff7339138e5d63de4acb5f50fa
PHP
liyanageisu/PHARMA-PRO
/php/expireDate.php
UTF-8
1,606
2.5625
3
[]
no_license
<!DOCTYPE html> <html> <head> <title>Expiry Date</title><link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous"> </head> <body> <?php include('include/connection.p...
true
bf6db48d6bf67ac1c4916f27683b1cb17f548eda
PHP
carlosromero/FightmasterPublicationBundle
/Model/Publication.php
UTF-8
4,452
2.734375
3
[]
no_license
<?php /** * This file is part of the FightmasterPublicationBundle package. * * (c) Dmitry Petrov aka fightmaster <old.fightmaster@gmail.com> * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace Fightmaster\PublicationBundle\Model; use Dat...
true
dfd2a49450428357018d60a72ea3137c9260ca8e
PHP
SURFscz/comanage-registry
/app/Vendor/adodb5/tests/pdo.php
UTF-8
1,732
2.71875
3
[ "BSD-3-Clause", "LGPL-2.0-or-later", "LGPL-2.1-or-later", "LicenseRef-scancode-unknown-license-reference", "GPL-1.0-or-later", "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-warranty-disclaimer", "GPL-2.0-only", "BSD-2-Clause", "LGPL-2.1-only", "MIT", "Apache-2.0" ]
permissive
<?php error_reporting(E_ALL); include('../adodb.inc.php'); echo "<pre>"; try { echo "New Connection\n"; $dsn = 'pdo_mysql://root:@localhost/northwind?persist'; if (!empty($dsn)) { $DB = NewADOConnection($dsn) || die("CONNECT FAILED"); $connstr = $dsn; } else { $DB = NewADOConnection('pdo'); echo "Conn...
true
851616c7564c63b55f7c2091b560487bed874999
PHP
GS03-06-KIMINORI-ISAKA/kadai
/10/basic action/answer_modification.php
UTF-8
3,880
2.671875
3
[]
no_license
<!DOCTYPE html> <html lang="ja"> <head> <meta charset="UTF-8"> <title>回答修正ページ</title> <script src="https://code.jquery.com/jquery-2.1.4.min.js"></script> </head> <body> <?php include_once('questionnaire.php'); $interest = array(); $language = array(); $future = array(); getData('in...
true
e5cc4dfe31c8108c3b121a3f9ce8fe8340a53dea
PHP
idsol/books
/config.inc
UTF-8
2,929
3.15625
3
[]
no_license
<?php /** * Emulate a namespace 'benet::' to do various tasks * @author sol * @created $rev=1$ $date=2009-12-03 16:16$ * @version $rev=2$ $date=2009-12-15 15:21$ */ /** * @class benet (singleton) * Emulate a namespace to do various tasks */ class benet { /** * Cached configuration * @type Zend_Config_Xml...
true
f8fdfefd90655ead087e65ee25c39b3f7a476be2
PHP
G-Vieira/questoes_concursos
/src/Model/Entity/Pergunta.php
UTF-8
1,176
2.859375
3
[]
no_license
<?php namespace App\Model\Entity; use Cake\ORM\Entity; /** * Pergunta Entity * * @property int $id * @property string $nome * @property string $explicacao * @property int $resposta * @property string $resp1 * @property string $resp2 * @property string $resp3 * @property string $re...
true
05b33df48e707ff76618ad7e52759c55201c772d
PHP
user9999/aist
/modules/brands.php
UTF-8
1,118
2.671875
3
[]
no_license
<?php //we don't use view-controller model here, because this file is very simple if (!defined("SIMPLE_CMS")) { die("Access denied"); } echo "<ul id=\"nav\" class=\"brands\">\n"; $res = mysql_query("SELECT * FROM catalog_brands WHERE showmenu = 1 ORDER BY position,altname,name"); while ($row = mysql_fetch_row($res)...
true
1f7a647a944acc60ced143c1e5456af706a88ac0
PHP
TeamLDCCIIT/Web_GestionDeSalles
/app/lib/disponibiliteSalle.php
UTF-8
1,319
2.953125
3
[ "MIT" ]
permissive
<?php /** * Created by Jérémie on 16/01/2018 */ /** * Retourne si une salle est disponible ou non * @param $db PgSqlLib * @param $id_salle int * @param $debut string * @param $fin string * @return string $type_res * @throws ErrorException */ function isDispo($db, $id_salle, $debut, $fin) { ...
true
6c75af1fbe66acdc0d3cbca85e7c240a4da6b1e2
PHP
Qandili/PHPMVC
/DSPHP/DAO/ProductDAO.php
UTF-8
641
2.921875
3
[]
no_license
<?php require_once 'DAO.php'; class ProductDAO extends DAO{ /** * ProductDAO constructor. */ public function __construct() { parent::__construct(); } public function create() { // TODO: Implement create() method. } public function find($id) { $stm...
true
1ee2e246a0c9ebabe65949bf84aa8bcf68701777
PHP
xuqisheng/kachurovskiy.github.io
/f/p/ecmdriver/php/gateway.php
UTF-8
425
2.609375
3
[]
no_license
<?php if ($_GET['type'] == 'get_champions') { // Ответим список победителей echo 'Ivan=' . rand(1000, 5000) . "&Sergey=" . rand(1000, 5000) . "&Хитрый чел=" . rand(5000, 15000); } else if ($_GET['type' == 'set_champion']) { // Обязательно надо что-то ответить, а то флеш подумает что запрос неуспешен echo '...
true
29faf4c601ec972230d2e4717a9c450dd6120781
PHP
Wolnosciowiec-Archive/ExtendedSearchQueryBundle
/Model/Service/DataProvider/SearchEngineSource/SearchEngineDataProviderInterface.php
UTF-8
1,477
2.78125
3
[]
no_license
<?php namespace ExtendedSearchQueryBundle\Model\Service\DataProvider\SearchEngineSource; use ExtendedSearchQueryBundle\Model\Entity\Search\SearchResultInterface; use ExtendedSearchQueryBundle\Service\ExtendedSearchQuery; /** * Search Engine Source Interface * ============================== * Every search source...
true
e8d34c35539b0c44439979d05b9c7179eb48b095
PHP
jdonaires/HelpDesk
/Desarrollo/DAL/DBAccess.php
UTF-8
864
2.5625
3
[]
no_license
<?php class DBAccess { private $conn; public function __construct() { try { /*Conexion a bd actual*/ // $this->conn = new PDO('mysql:host=localhost:3306;dbname=helpdesk_2018', 'root', 'root'); $this->conn = new PDO('mysql:host=localhost:3306;dbname=helpdesk_2018', 'root', 'root'); /*Cone...
true
95f2ef029a869c62673c716b9a8f7da3020dd86d
PHP
drupal-bakery/oven
/build.php
UTF-8
6,455
2.5625
3
[]
no_license
<?php /** * Drupal Bakery * * This is a tiny script used to kickstart the codebase. * All subsequent calls will be made by drupal-bakery. */ error_reporting(E_ALL); ini_set('error_reporting', E_ALL); if (php_sapi_name() !== 'cli') { // For safety :) exit('This script must be executed from the command line.')...
true
d1642ba317596d764659d2f6276f300e6f29f82b
PHP
anthonyflynn-bbc/individual-project
/php_scripts/link_times/old/LinkTimeCalculatorClass.php
UTF-8
3,665
2.9375
3
[]
no_license
y<?php // Process to be run daily after 06:00am (so that full previous day data included) // Updates the average link time for each of the 24 hours of the previous day include '/data/individual_project/php/modules/DatabaseClass.php'; class LinkTimeCalculator { protected $database; protected $DBH; // database conn...
true
caa791ef4bbeceb0e901db167a5915ea345b6997
PHP
erikpertusi/tagManager
/app/Services/Tag/TagServiceInterface.php
UTF-8
214
2.546875
3
[]
no_license
<?php namespace App\Services\Tag; interface TagServiceInterface { public function store(int $id, string $name); public function destroy(int $id); public function getTags(int $page, int $perPage); }
true
9acb66561d7d3cf7f1160ee3a138c0dc27caaddc
PHP
antonpetersson/Tipspromenad
/index.php
UTF-8
1,007
2.6875
3
[]
no_license
<?php session_start(); include "classes.php"; include "data.php"; ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <link rel="stylesheet" type="text/css" href="...
true
e01e8f664e11d9cd570932c96bc1999f9ffef5ae
PHP
Juwendixcode/backup
/htdocs/lagi2/demo.php
UTF-8
1,096
2.96875
3
[]
no_license
<html> <head> <?php $comments = array(); $user_name = "root"; $password = ""; $database = "praktikum"; $host_name = "localhost"; $con=mysqli_connect($host_name, $user_name, $password,$database); $result = mysqli_query($con,"SELECT * FROM comments ORDER BY id ASC"); while($row = mysqli_fetch_assoc($result)) { $comm...
true
c31c95810fd6f0d06f3585cc7cb5a23da0c27c8e
PHP
yggi49/madden-pc-league-manager
/documents/link_save.php
UTF-8
1,167
2.640625
3
[ "LicenseRef-scancode-warranty-disclaimer", "BSD-3-Clause" ]
permissive
<?php /** * @(#) link_save.php */ class Page { function Page() {} // constructor function getHeader() { global $_SYS; return ''; } // getHeader() function getHTML() { global $_SYS; /* error if this is not a POST request */ if ($_SERVER['REQUEST_METHOD'] != 'POST') { return $...
true
c53bb9fc88b457bc88e02d99c2dc2936d66559a7
PHP
m50/godot-theme-api
/src/Godot/Nodes/HSlider.php
UTF-8
1,788
2.75
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace GCSS\Godot\Nodes; use GCSS\Exceptions\ValueException; use GCSS\Godot\Resources\StyleBox; use GCSS\Godot\Resources\Texture; class HSlider extends Control { /** * @var array{grabber:Texture|null,grabber-disabled:Texture|null,grabber-highlight:Texture|null,tick:Texture...
true
19a5f227599a9b5f815f1aa1d4cd16d57ad0e827
PHP
xwp/wordpress-develop
/tests/phpunit/tests/privacy/wpCreateUserRequest.php
UTF-8
10,002
2.6875
3
[]
no_license
<?php /** * Test the `wp_create_user_request()` function. * * @package WordPress * @subpackage UnitTests * @since 5.2.0 */ /** * Tests_Privacy_wpCreateUserRequest class. * * @group privacy * @covers ::wp_create_user_request * * @since 5.2.0 */ class Tests_Privacy_wpCreateUserRequest extends WP_UnitTestCas...
true
b603d9af26f42b52a803b80c9b169896bfbf7cfd
PHP
yowane1795/PHP-learning
/04-exercices/lien_fruits.php
UTF-8
601
3.03125
3
[]
no_license
<?php // faire 4 liens HTML avec le nom des fruits // quand on clique sur un lien on affiche le prix pour 1000g de ce fruit, dans cette page lien_fruits.php include('fonction.inc.php'); if(isset($_GET['fruit'])){ //les $_GET sont preexeistant, ce sont les indices que l on verifie echo 'Fruit :' .$_GET['fruit'] . ...
true
22a533fb0917ac3cfa2ac7324578128b93467d27
PHP
GLeedle/riffcatcher_old
/inc/update.profile.image.inc.php
UTF-8
1,313
2.671875
3
[]
no_license
<?php require_once "sql/db_connect.inc.php"; if ($_SERVER['REQUEST_METHOD'] == "POST") { // what file do we need to move? $tmp_file = $_FILES['file_upload']['tmp_name']; // set target file name // basename gets just the file name $target_file = basename($_FILES['file_upload']['name']); // $_...
true
a4b0714359acc29d94947812b6cd1daac2c3df39
PHP
devsnippet/image
/src/Node/Box.php
UTF-8
495
2.75
3
[ "MIT" ]
permissive
<?php namespace Zodream\Image\Node; class Box extends Bound { const Top = 1; const RightTop = 2; const Right = 5; const RightBottom = 8; const Bottom = 7; const LeftBottom = 6; const Left = 3; const LeftTop = 0; const Center = 4; public $direction = self::LeftTop; public f...
true
6bee7e54b25eb5174e7c286b868bfc54a912643a
PHP
vipervoid/view-maker
/src/MatchesPatterns.php
UTF-8
727
2.765625
3
[ "MIT" ]
permissive
<?php namespace Evercode1\ViewMaker; use App\Http\Controllers\ApiController; trait MatchesPatterns { private function patternMatchAndReturn($start, $end, $str) { $pattern = sprintf( '/%s(.+?)%s/ims', preg_quote($start, '/'), preg_quote($end, '/') ); // set exi...
true
90c3adb50737db1965068f0d3c9a76cef5f8d822
PHP
fasderq/game-shop
/src/Social/Interfaces/StrategyInterface.php
UTF-8
847
2.734375
3
[]
no_license
<?php namespace GameShop\Site\Social\Interfaces; use GameShop\Site\Social\Exceptions\RequestValidationFailed; use GameShop\Site\Social\Model\Profile; use GameShop\Site\Social\Model\Session; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Session\SessionInterface; interface Strategy...
true
eb54265687d913da3df001fab080db1a9c3e10c1
PHP
elolmedo/ConsumPSPV_PHP
/config/database.php
UTF-8
1,892
2.953125
3
[]
no_license
<?php ########################### ## #@autor: Raúl Olmedo #@date: 20-30-20 ##function: Class that contain differents method to connect database. #### ################################ include '../config/globals.php'; include '../config/core.php'; class Database{ //Credentials for connection private $host = "lo...
true
1ea4f78d7671069325816a1164e4e771e82b4337
PHP
gracegicheru/Cms
/routes/web.php
UTF-8
7,278
2.84375
3
[ "MIT" ]
permissive
<?php use App\Post; use App\Tag; use App\User; use App\Role; use App\Country; use App\Photo; use App\Video; /* |-------------------------------------------------------------------------- | Web Routes |-------------------------------------------------------------------------- | | Here is where you can register web ro...
true
4302434339b3848802496c0b2bb0d47fd31abb6e
PHP
hallowelt/IDProvider
/tests/phpunit/api/IDProviderIncrementApiTest.php
UTF-8
804
2.65625
3
[ "MIT" ]
permissive
<?php /** * @group IDProvider * @group API * @group Database * @group medium * * @covers IDProviderIncrementApi */ class IDProviderIncrementApiTest extends ApiTestCase { protected function setUp() { parent::setUp(); $this->doLogin(); } protected function tearDown() { parent::tearDown(); } public f...
true
316af80459c06bfb13a7732bace195e8907aa8e7
PHP
kriss250/ORG
/app/ORG/ORG.php
UTF-8
2,463
2.609375
3
[]
no_license
<?php namespace ORG; use DB; use Auth; class Settings { public static $LOGO = ""; } class POS { public static function Log($activity,$type) { try { $done = \DB::insert("insert into logs (user_id,type,action,date) values(?,?,?,?)",[Auth::user()->id,$type,$activity,Dates::$RESTODT]); ...
true
ce7dc239f6e7cd72475cc4c7fe65c389109e0cc4
PHP
MaziveSilverio/dreamseeders-ec
/admin/view/players.php
UTF-8
1,817
2.65625
3
[]
no_license
<?php session_start(); ?> <?php include "connection.php"; include "_mozamor_%.php"; if (isset($_SESSION['admin'])) { ?> <!DOCTYPE html> <html> <head> <title>PHP-Kuiz</title> <link rel="stylesheet" type="text/css" href="css/style.css"> <link rel="stylesheet" type="text/css" href="css/style1.css"> </head> <body...
true
451ec1a593d0793f60da5a3bfc3f2d93740ca97b
PHP
cincarnato/cdicmdb
/src/CdiCmdb/Scanner/Veraz.php
UTF-8
8,539
2.53125
3
[]
no_license
<?php namespace CdiCmdb\Scanner; use Monolog\Logger; use Monolog\Handler\StreamHandler; use Monolog\Handler\RotatingFileHandler; /** * Description of Linux * * @author Cristian Incarnato <cristian.cdi@gmail.com> */ class Veraz { protected $logger; protected $ssh; protected $host; ...
true
20ad5d1b90f863554f47d8f6f36e6dca45d85003
PHP
fzhqzxguest/php-getting-started
/web/net2ftp/languages/de.inc.php
ISO-8859-1
109,206
2.546875
3
[]
no_license
<?php // ------------------------------------------------------------------------------- // | net2ftp: a web based FTP client | // | Copyright (c) 2003-2012 by David Gartner | // | ...
true
d652f683b282068ea674f106b66c48ea32887b3c
PHP
harlamenko/booking-API-stub
/src/Entity/Taxi.php
UTF-8
2,028
2.796875
3
[]
no_license
<?php namespace App\Entity; use Symfony\Component\Validator\Mapping\ClassMetadata; use Symfony\Component\Validator\Constraints as Assert; class Taxi { public $name = ''; public $type = ''; public $sits = ''; public $luggage = ''; public $service = ''; public $meeting = false; public $price...
true
d20a7c1d96f46a4cbbe4b875f8c0fa8f4c676d1b
PHP
hisimon/phpDesign
/facade/index.php
UTF-8
1,513
2.5625
3
[]
no_license
<?php /** * 外观模式(门面): * 外观设计模式的目标是控制外部错综复杂的关系,并且提供简单的接口以利用上述组件的能力 * 医院的例子 首先病人必须先挂号,然后门诊。如果医生要求化验,病人必须首先划价,然后缴款,才能到化验部门做化验。化验后,再回到门诊室。 解决这种不便的方法便是引进门面模式。可以设置一个接待员的位置,由接待员负责代为挂号、划价、缴费、取药等。这个接待员就是门面模式的体现,病人只接触接待员,由接待员负责与医院的各个部门打交道。 什么是门面模式 门面模式要求一个子系统的外部与其内部的通信必须通过一个统一的门面(Facade)对象进行 * @author simon <drawi@163.com> ...
true
60433d90517f51d1e93f77b3428cfd194041b30c
PHP
SeaWolfShepherd94/fiveguys-version1
/orders.php
UTF-8
1,653
3.0625
3
[]
no_license
<?php $name = "Matt"; $age = 24; $stringOne = "My name is "; $stringTwo = "I am a computer scientist."; include('config/db_connect.php'); $sql = 'SELECT title, ingredients, customer, ordered_at, id FROM Burgers ORDER BY ordered_at'; $result = mysqli_query($conn, $sql); $burgers = mysqli_fetch_all($result...
true
3bbae73197b2bb34dbab681e94394f3a885fd8fe
PHP
DwrmKK/gz34phhblog
/controller/dologin.php
UTF-8
729
2.609375
3
[]
no_license
<?php //引入函数库 // include('./functions.php'); //1 接受表单数据 $username =$_POST['username']; $password =$_POST['password']; //2 判断账号是否正确 $account =file_get_contents('./data/account'); //读取账号 //根据行转成数组 $account =explode("\n",$account); // var_dump($account); // exit; //循环每个账号 foreach($account as $v){ //拼出账号格式 $tmp ...
true
9ad699ab3d686061dfe9856525b2a8eaa2c99056
PHP
ghurtadoarevalo/Despevago
/app/User.php
UTF-8
1,919
2.5625
3
[]
no_license
<?php namespace App; use Illuminate\Notifications\Notifiable; use Illuminate\Foundation\Auth\User as Authenticatable; class User extends Authenticatable { use Notifiable; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'email', 'passwo...
true
1bf6c891c286ec7add942e99d7db75baa7c11811
PHP
denjai/TU-Plovdiv
/Semester7/tel_book/tel-edit-ajax.php
UTF-8
2,643
2.859375
3
[]
no_license
<?php include('config/boot.php'); $errors = array(); $infos = array(); $PID = $_GET['pid']+0; // perdon_id when new telephone is added $form = $_POST['tel']; if(isset($form['ID'])) { $ID = $form['ID']+0; } else { $ID = $_GET['id']+0; } if($ID == 0) { // new person, no data $title = "Add New Telephone"; $tel = a...
true
0dbcba7eec1a6c5fcdc25f44cd0a0a8673b8659f
PHP
skfhb/helpdesk
/include/classComment.php
ISO-8859-1
4,656
2.875
3
[]
no_license
<?php //---------------------------------------------------------------// // Projet : Task Manager // // Fichier : dettask.php // // Description : Classe de gestion des commentaires // // Auteur : Herv Bordeau // // Date : 07/03/2013 // //--------------------------...
true
c2a779ed6b9f825c952d096902021941c4898ae6
PHP
stoef28/swapspace
/eclipse_ws/class/object.class.php
UTF-8
3,589
3.0625
3
[]
no_license
<?php abstract class object { protected $deletable = true; protected $characteristics = array(); // entries: array('value' => string, 'db_operations' => boolean, 'type' => string) // types: '', 'date', 'datetime' protected $pdo_single; protected $function_single; // protected $dict_single; protected $session_...
true
d9be3b0807746d7fd4b9f06bd0a8585acba7711f
PHP
orgarkadiusz/test-system-php
/php/ajax/eSekretariat/wyslijPowiadomienie.php
UTF-8
4,107
2.625
3
[]
no_license
<?php if(session_status() == PHP_SESSION_NONE) { session_start(); } include 'php/dane/dane.php'; require 'moduly/PHPMailer/Exception.php'; require 'moduly/PHPMailer/PHPMailer.php'; require 'moduly/PHPMailer/SMTP.php'; use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\Exception; $polaczenie = @new my...
true
a2cf47951e3ce17d9ddf3bf03eb2a5846eefee46
PHP
uladkasach/Word-Subject-Classification
/0_source/notpublic/ClientSideControl/import/source/retreive_html.php
UTF-8
757
2.53125
3
[]
no_license
<?php function retreive_html($urlToScan, $userAgent){ if(!isset($userAgent)){ $userAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36"; } $ch = curl_init(); $timeout = 15; #curl_setopt($ch, CURLOPT_USERAGENT,$userAgent)...
true
37ffe077da62d3700731bcdfdcd83575bba50d9e
PHP
fabriceb/chicken-php
/src/decompiler.php
UTF-8
352
2.609375
3
[ "MIT" ]
permissive
<?php namespace igorw\chicken; use Functional as F; /** @api */ function decompile(array $opcodes) { $lines = F\map($opcodes, __NAMESPACE__.'\\compile_opcode'); return implode("\n", $lines); } function compile_opcode($opcode) { if (0 === $opcode) { return ''; } return implode(' ', array_...
true
65b63c5e83bf85d720e1ac48027de1fffe9dcfbd
PHP
DevSlashNull/sawtooth-seth-php
/includes/functions.php
UTF-8
1,055
2.546875
3
[ "MIT" ]
permissive
<?PHP require "./vendor/autoload.php"; use GuzzleHttp\Client; use GuzzleHttp\Psr7\Request; // Create a Constant for our JSON version and our seth-rpc URL: const jsonRPC = '2.0'; const SETH_RPC_URL = "http://{your_seth-rpc_url}:3030"; function chkPrefix($input) { if (strlen($input) < 2) { $in...
true
da67cafa1cfd79c5924ca87cfc4e82f8434b7146
PHP
mojtaba33/laravello
/database/seeders/BoardSeeder.php
UTF-8
661
2.515625
3
[]
no_license
<?php namespace Database\Seeders; use App\Models\Board; use App\Models\Card; use App\Models\CardList; use App\Models\User; use Illuminate\Database\Seeder; class BoardSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { for( $i = 0 ;...
true
e0d26186b4e070aabd3823832f4d531a6d10b8c1
PHP
JefranMarquez/SnappSena
/database/migrations/2019_09_27_200849_create_novelteis_table.php
UTF-8
2,273
2.5625
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateNovelteisTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('areas', funct...
true
8d630636b46dd95122d12c0aec1084ce2cd0aab3
PHP
ladefoule/coding-game-tennis-tdd
/index.php
UTF-8
376
3.453125
3
[ "MIT" ]
permissive
<?php require "MatchTennis.php"; $match = new MatchTennis(); // On fait 5 tests aléatoire de matches de Tennis for($i = 0; $i < 5; $i++){ $testAleatoire = ""; $tailleEntree = rand(80, 150); for($j=0; $j < $tailleEntree; $j++) $testAleatoire = $testAleatoire . rand(0, 1); echo $testAleatoire.'<...
true
dd3572d3d6111699c9a865e865daf699cd1797cd
PHP
maboiteaspam/BricEtBroc
/Locale/lib/Negotiater.php
UTF-8
2,466
3.015625
3
[]
no_license
<?php namespace BricEtBroc\Locale; use BricEtBroc\Locale\Finder as Finder; class Negotiater{ protected $allowed_locales; protected $negotiated_locale; protected $best_locale; public function __construct( $allowed_locales ){ $this->allowed_locales = $allowed_locales; } public funct...
true
4e6a8a0fc90eb0307cb26fa423f0f963c85b15a6
PHP
joshuamakula/Malaikah
/src/components/appointment-form-handler.php
UTF-8
707
2.546875
3
[]
no_license
<?php $name = $_POST['name']; $phone = $_POST['phone']; $visitor_email = $_POST['email']; $subject = $_POST['subject']; $problem = $_POST['problem']; $email_from = "djoshjuan@gmail.com"; $email_subject = "New form Appointment"; $email_body = "Name: $name. \n". "Ph...
true
16a4ccd1150c43a15511c732e5d1dd5879f60ac6
PHP
katemezha/web-4sem
/lesson8/src/Core/User/Document/Adress.php
UTF-8
1,161
2.734375
3
[]
no_license
<?php declare(strict_types=1); namespace App\Core\User\Document; use App\Core\Common\Document\AbstractDocument; use App\Core\User\Repository\AdressRepository; use Doctrine\ODM\MongoDB\Mapping\Annotations as MongoDB; use Doctrine\ODM\MongoDB\Mapping\Annotations\ReferenceOne; /** * @MongoDB\Document(repositoryClass=...
true
38ce279916770540f358e6af34f20bc4c24aea4f
PHP
pfefferle/yigg
/lib/forms/global_validators/yiggValidatorYiggUser.class.php
UTF-8
956
2.890625
3
[]
no_license
<?php /** * create a validator for usernames which does not have an error if the user exists in the system */ class yiggValidatorYiggUser extends yiggValidatorUsername { /** * Configures the current validator. * * @see sfValidator */ protected function configure($options = array(), $messages = array()) ...
true
a2a59f67a5aa976ac844bbc6e16c3b6296a80440
PHP
HackMayi/blog
/application/admin/model/Admin.php
UTF-8
1,992
2.5625
3
[ "Apache-2.0" ]
permissive
<?php /** * Created by PhpStorm. * User: Administrator * Date: 2019/2/27 * Time: 16:26 */ namespace app\admin\model; use app\admin\validate\AdminValidate; use think\Exception; use think\Model; use think\Session; class Admin extends Model { public static $fields = 'id,uname,last_login_time,last_login_ip,stat...
true
aaf7080409932b3c78e949d7fbf8072ba841a34b
PHP
tenchoo/gitUeliao_gz
/core/vendors/template/TemplatesStorage.php
UTF-8
913
3.015625
3
[]
no_license
<?php /** * 网铺模板类 * @author morven * */ class TemplatesStorage { public $select = 'templateId,title,image'; private $instance; public function __construct() { } /** * 创建实例类 * @param string $type 调用实例类型 * @throws CHttpException */ public function create( $type ) { $className = ucfirst(...
true
42713edc764443f25576a35d693b016b261ffee3
PHP
FranciscoGh12/SAI_Laravel
/app/Http/Controllers/Reportes/ReportesController.php
UTF-8
2,603
2.53125
3
[ "MIT" ]
permissive
<?php namespace SAI\Http\Controllers\Reportes; use Illuminate\Http\Request; use SAI\Http\Controllers\Controller; use DB; use TCPDF; use Illuminate\Support\Facades\Redirect; use RealRashid\SweetAlert\Facades\Alert; class ReportesController extends Controller { protected $infoReportes; public function index($...
true
c830aecad8ce4315b47a782525d28fd0537f56d5
PHP
lucky1603/Collaboration
/module/Ntkp/src/Model/RoleModel.php
UTF-8
734
2.53125
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 Ntkp\Model; /** * Description of RoleModel * * @author Sinisa Ristic */ class RoleModel { private $tableGate...
true
3c21edfee6ddb7f58e97a4195f5f583653e50f00
PHP
WebDevCF2019/POO
/exempleClass04.php
UTF-8
3,409
3.9375
4
[]
no_license
<?php class exempleClass04 { // Attributs protected $name = "Anonymous"; protected $attaque = 10; protected $defense = 10; protected $vie = 100; // ----------------------------------------------------------------- // Constante(s) const HUMAIN = "vrai"; // -------------------------------...
true
dbdccf78375c72b52a0fd33927b10863fd6b61cb
PHP
bootcamp-s17/ideathing
/database/seeds/IdeasTableSeeder.php
UTF-8
2,135
2.796875
3
[]
no_license
<?php use Illuminate\Database\Seeder; use Carbon\Carbon; class IdeasTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { // Store id for Meh in $meh_id $meh_id = DB::table('priorities') ->select(DB::raw('id')...
true
6ab759255adb3f46c5b90564c23d60a3e0da3588
PHP
vijay2546/dl24webnode
/static/mailagent.php
UTF-8
794
2.703125
3
[]
no_license
<?php if(isset($_POST["submit"])){ echo "Fill All Fields.."; //Checking for blank Fields.. $subject =isset($_POST["submit"])? 'New Request: ' . $_POST['subject'] : "New Request!!"; echo $subject; $message =isset($_POST["message"])? $_POST['message']: "No message"; $email_from =$_POST['email']; $headers = 'From...
true
7595cf86cb129b3fe2215dea676a1be529383906
PHP
kaz0636/openflp
/app/controllers/api_folder_controller.php
UTF-8
1,788
2.53125
3
[ "MIT" ]
permissive
<?php class ApiFolderController extends AppController { public $uses = array('Dir'); const ERR_ALREADY_EXISTS = 10; public function create() { $name = $this->params('name'); if (!$name) { return $this->renderJSONStatus(false); } $conditions = array(); ...
true
8ea18e9ab6a2776f8740908970e5d377c99d617a
PHP
codevia-io/venus-utils
/src/Security/Password.php
UTF-8
1,789
3.328125
3
[ "MIT" ]
permissive
<?php namespace Codevia\Venus\Utils\Security; /** * Oriented object version of the native PHP password API. */ class Password { const ALGO = PASSWORD_DEFAULT; /** * Hash a password with a salt and a strong algo * * @param string $password The users's password * @param string|int|null $...
true