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
46ac3666be29beede178b8ee26cf490e7887790d
PHP
jtddsoft/php-uujia-framework-base
/src/common/lib/Redis/RedisProvider.php
UTF-8
4,163
2.796875
3
[ "MIT" ]
permissive
<?php namespace uujia\framework\base\common\lib\Redis; use uujia\framework\base\common\Config; use uujia\framework\base\common\lib\Base\BaseClass; use uujia\framework\base\common\traits\ResultTrait; class RedisProvider extends BaseClass implements RedisProviderInterface { use ResultTrait; /** * @var \Redis|\Sw...
true
fa4eba3b4d0a2fe74b5415b2cc514a583aa35581
PHP
AhamedR/laravel-bookstore-CURD
/app/Http/Controllers/BookController.php
UTF-8
7,334
2.640625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Book; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Storage; use Illuminate\Validation\Rule; class BookController extends Controller { /** * Create a new controller instance. ...
true
23adc3c8ab5f0f157f8c6ea6fb108018d536b563
PHP
Jingjar/movieOrderSystem
/api/getdate.php
UTF-8
344
2.53125
3
[]
no_license
<?php include_once "../base.php"; $movie=$Movie->find($_GET['movie']); $ondate=strtotime($movie['ondate']); $today=strtotime(date("Y-m-d")); for ($i=0; $i <3 ; $i++) { # code... $day=strtotime("+$i days",$ondate); if($day>=$today){ echo "<option value='".date("Y-m-d",$day)."'>".date("m月d日 l",$day)....
true
c117d154236c13a042df656d9b83045544178bb0
PHP
pobo-builder/shoptet-sdk
/src/Response/Product/Detail.php
UTF-8
4,742
2.515625
3
[]
no_license
<?php declare(strict_types=1); namespace Pobo\ShoptetSdk\Response\Product; use Pobo\ShoptetSdk\Api\ApiResponse; use Pobo\ShoptetSdk\Api\Traits\PropertyPopulateTrait; use Pobo\ShoptetSdk\Response\Product\Detail\Brand; use Pobo\ShoptetSdk\Response\Product\Detail\Category; use Pobo\ShoptetSdk\Response\Product\Detail\De...
true
d96957bc9e334f04e0e714d08484fd25c3edf5f3
PHP
maneeshs/orchestra
/tests/cases/supports/form/fieldset.test.php
UTF-8
8,382
2.546875
3
[ "MIT" ]
permissive
<?php namespace Orchestra\Tests\Supports\Form; \Bundle::start('orchestra'); class FieldsetTest extends \PHPUnit_Framework_TestCase { /** * Setup the test environment. */ public function setUp() { \Session::$instance = null; // load the session. \Session::load(); \Config::set('orchestra::support.form...
true
ea635f96053b0b72bd9a812bd546ba12b0e56cec
PHP
gitteri/authorize-net-cim-api
/tests/Services/ResponseTest.php
UTF-8
1,610
2.59375
3
[]
no_license
<?php use Gufran\AuthNet\Services\Response; class ResponseTest extends PHPUnit_Framework_TestCase { private $xml; private $response; public function setUp() { parent::setUp(); $this->xml = '<?xml version="1.0" encoding="utf-8"?> <createCustomerProfileTransactionResponse> <messages...
true
3671446bfc19845f81e92f76d2d5ce02136846d5
PHP
Paavani204/Task
/delete.php
UTF-8
730
2.515625
3
[]
no_license
<?php $mysqli = new mysqli("localhost", "root", "", "task"); if($mysqli->connect_error) { exit('Error connecting to database'); //Should be a message a typical user could understand in production } mysqli_report(MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT); $mysqli->set_charset("utf8mb4"); $uname = $_POST['uname']; $...
true
04692d105fbcb4342796b2e1499e8f9c1bf27f5c
PHP
reind33r/aflc
/database/migrations/2020_07_12_095802_create_pilot_documents_tables.php
UTF-8
1,792
2.515625
3
[]
no_license
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreatePilotDocumentsTables extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('pilot_d...
true
1a038f3f4f657a97182b5ca5dfafdfc233b02495
PHP
Voww/PHP_test_tasks
/imsmedia/parser/Parser.php
UTF-8
296
2.59375
3
[]
no_license
<?php /** * Created by IntelliJ IDEA. * User: Voww * Date: 16.12.2015 * Time: 9:39 */ interface Parser { /** * Parses a resource specified by resource name * @param $resourceName a resource name * @return void * @throws */ function parse($resourceName); }
true
23abb4867e1f18524cb39f18674446f0eba8466c
PHP
kooler62/liveandlearn
/laravel/app/Categories.php
UTF-8
1,160
2.71875
3
[ "MIT" ]
permissive
<?php namespace App; use DB; use Illuminate\Database\Eloquent\Model; class Categories extends Model{ //указываем таблицу protected $table = 'categories'; //указываем первичный ключ protected $primaryKey = 'cat_id'; //категории для шапки public function cats_for_header(){ $categories = DB::table('categories')...
true
db871271b8fb115334fe49e0bd01a24b33d2f7d0
PHP
lookitsatravis/listify
/tests/ListifyModelWithStringScopeTest.php
UTF-8
2,580
2.515625
3
[ "MIT" ]
permissive
<?php use Way\Tests\Assert; class ListifyModelWithStringScopeTest extends ListifyBaseTest { protected $model = 'FooWithStringScopeA'; protected $modelScopeValue = "company = 'companyA'"; private $modelB = 'FooWithStringScopeB'; private $modelBScopeValue = "company = 'companyB'"; public function...
true
216a7a99c64272017c3056ff7667ebda889b72e7
PHP
mayurikoli/database-operations-in-php
/up.php
UTF-8
1,390
2.546875
3
[]
no_license
<?php $conn=mysqli_connect("localhost","root","","phn_student"); $id=$_GET['update']; echo $id; if($conn) { $query="SELECT * FROM st WHERE user='$id'"; $result=mysqli_query($conn,$query); $data=mysqli_fetch_assoc($result); } ?> <html> <head> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com...
true
3678aae4699c9bbb3c9b5fe455b25bb02f0d59ff
PHP
msvdaamen/php_api_system
/app/router/RouterHandle.php
UTF-8
2,774
3.046875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: msvda * Date: 1-9-2018 * Time: 14:45 */ namespace App\router; class RouterHandle { private $url; private $class; private $function; private $request; /** * RouterHandle constructor. * @param string $url * @param string $controller ...
true
f7f920e6a26ac8964ec5987bb0cf0f695eaabc6f
PHP
emanuelbalcazar/wikiprecios
/application/controllers/test/Test_special_product_model.php
UTF-8
1,054
2.515625
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php class Test_special_product_model extends CI_Controller { public function __construct() { parent::__construct(); $this->load->database(); $this->load->helper(array('url', 'form')); $this->load->library('unit_test'); $this->load->model('Special_product'); ...
true
bef8f5dcdf0a9a9a6ae394ec8a623f8556e85479
PHP
mtws/wordpress-theme-tools
/inc/always-redirect-logins.php
UTF-8
1,287
2.828125
3
[]
no_license
<?php /** * Redirect to referer even if username and password fields empty * http://cubiq.org/front-end-user-registration-and-login-in-wordpress */ function mtws_login_redirect ($redirect_to, $url, $user) { if( isset( $_SERVER['HTTP_REFERER'] ) ) { $referrer = $_SERVER['HTTP_REFERER']; } else { ...
true
30f97599343460e7ca3e355c33a504da6272e136
PHP
sroze/kubernetes-client
/src/Model/ServicePort.php
UTF-8
1,383
3.078125
3
[]
no_license
<?php namespace Kubernetes\Client\Model; class ServicePort { /** * @var string */ private $name; /** * @var int */ private $port; /** * @var int */ private $targetPort; /** * @var string */ private $protocol; /** * @var int|null ...
true
daea39009603c485b73d900e754fd1f916b1c922
PHP
jayvant1511/login_project
/LOGIN/time.php
UTF-8
364
2.796875
3
[]
no_license
<html> <body bgcolor = "18aeet"> <center><h2> Last Login On The Web Page</h2></center> <br> <?php $time_now = mktime( date('h')+4, date('i')+30, date('s')); $date = date('d-m-Y H:i', $time_now); setcookie('time_now',$date,$time_now); if(isset($_COOKIE['time_now'])) { $visit = $_COOKIE['time_now']; echo $visit; ...
true
f0ddde78d7490403d020b7a6cded810a203b595d
PHP
addthoriq/backup_asus
/wp/lat/lat.php
UTF-8
311
3.046875
3
[]
no_license
<form method="post"> <input type="text" name="input"/> </form> <?php /* input krakatau, huruf < 6 echo krakatau*** hurufnya >= 6 echo krakatau-krakatau-krakatau*/ $c = ((isset($_POST['input'])?$_POST['input']:"0")); $b = strlen($c); if ($b < 6){ echo "$c***"; } elseif ($b >= 6) { echo "$c-$c-$c"; } ?>
true
66ca184d7882d30b4323a1d398dc083db7c52b89
PHP
samuelcasas/laravel-api-starter
/app/Http/Controllers/API/Clients/ClientTelephonesAPIController.php
UTF-8
12,579
2.515625
3
[]
no_license
<?php namespace App\Http\Controllers\API\Clients; use App\Http\Requests\API\CreateTelephoneAPIRequest; use App\Http\Requests\API\UpdateTelephoneAPIRequest; use App\Models\Telephone; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use Dingo\Api\Routing\Helpers; /** * Class ClientTelephonesAPIContro...
true
92d001fc1dfb3f238ee5c0263f0fed16c2950743
PHP
egorka-pom1dorka/PHP_courses
/hw9/productModel.php
UTF-8
762
2.890625
3
[]
no_license
<?php header("Content-Type: text/html;charset=UTF-8"); ?> <?php require_once("product.php"); class productModel { public function getProducts($query="") { $link = mysqli_connect("localhost","user","hedogo51","databuse"); $data = mysqli_query($link, "SELECT * FROM products WHERE 1=1 $query"); while ($te...
true
21ef01c9b6c59907523fd2d70318924fc7a3f5a1
PHP
Aphios/Sur-les-ailes-de-Leonard
/public/php/utils.php
UTF-8
705
3.09375
3
[]
no_license
<?php // General utils // Returns true if data is set and not empty function exists($data){ if(isset($data) and !empty($data)){ return true; } return false; } // Returns sanitized string if it is of correct length function getDataStr($data, $maxlen){ if(strlen($data) < $maxlen){ $data = fi...
true
c58ecd55ba1e875e2d2989383207638803f6f86e
PHP
flexsyscz/sandbox
/app/Security/Authentication/Authenticator.php
UTF-8
2,897
2.578125
3
[]
no_license
<?php declare(strict_types=1); namespace App\Security\Authentication; use App\Model\Users\User; use App\Model\Users\UsersFacade; use App\Security\LoggedUser; use Flexsyscz\Universe\Localization\TranslatedComponent; use Nette; use Nette\Security\AuthenticationException; use Nette\Security\IIdentity; use Nette\Security...
true
ee8bc724f4f4a3b260fb51c297d9ba3f6a41603a
PHP
oliwierptak/popo
/src/Popo/Plugin/PropertyPlugin/GetPropertyMethodPlugin.php
UTF-8
1,962
2.578125
3
[ "MIT" ]
permissive
<?php declare(strict_types = 1); namespace Popo\Plugin\PropertyPlugin; use Nette\PhpGenerator\Method; use Popo\Plugin\BuilderPluginInterface; use Popo\Plugin\PropertyPluginInterface; use Popo\Schema\Property\Property; class GetPropertyMethodPlugin implements PropertyPluginInterface { //@return array<array{filen...
true
a68e70d2aab0fe3acf7616d4acbfe3c4d9f35437
PHP
benjaminllim/jobswebsite
/jobs/jobs/CSY2028/EntryPoint.php
UTF-8
1,576
2.609375
3
[]
no_license
<?php namespace CSY2028; //Where all pages go through first class EntryPoint { private $route; private $method; private $routes; public function __construct(\CSY2028\Routes $routes) { $this->routes = $routes; } public function run() { $route = ltrim(explode('?', $_SERVER['RE...
true
6f9dfad5ae034878307d5a214199e4cc996b504e
PHP
andygomezb7/V3of6-Script-Amigo
/php/class/c.bbcode.inc2.php
UTF-8
3,068
2.5625
3
[]
no_license
<?php /* parseBBCode($bbcode) */ function BBcode($bbcode, $type = 'normal'){ include TS_ROOT.'/ext/bbcode.inc.php'; $parser =& BBcode::getInstance(); // CLASS BBCode switch($type){ // NORMAL case 'normal': // RESTRICTIONS $parser->restr...
true
d4a177b0ede3018b82698430a6397abd952f008e
PHP
narareddy/tuleap
/plugins/git/include/GitPHP/git/FilesystemObject.php
UTF-8
4,511
3.046875
3
[]
no_license
<?php namespace Tuleap\Git\GitPHP; /** * GitPHP Filesystem Object * * Base class for all git objects that represent * a filesystem item * * @author Christopher Han <xiphux@gmail.com> * @copyright Copyright (c) 2010 Christopher Han * @package GitPHP * @subpackage Git */ /** * Git Filesystem object class *...
true
ebb49d54f483e96d9a6da980d847ae2f5f092767
PHP
newman79/rfirmanager
/php/GetDevicesStatus.php
UTF-8
2,496
2.890625
3
[]
no_license
<?php // include('includes/json.php'); error_reporting(E_ALL); ini_set('display_errors', 1); ini_set('display_startup_errors', 1); set_error_handler( function($errno, $errstr, $errfile, $errline, array $errcontext) { // error was suppressed with the @-operator if (0 === error_reporting()...
true
7150962c20929458974f4ee740f7da82c9ca4510
PHP
intradiegopa/esame20162017
/database_lib.php
UTF-8
1,693
2.953125
3
[]
no_license
<?php class DB { private $pdo; public function __construct($host, $dbname, $username, $password) { try{ $pdo = new PDO('mysql:host='.$host.';dbname='.$dbname.';charset=utf8', $username, $password); $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRM...
true
a7a430706b03ac0ba48a295384997273a86d2d7c
PHP
sunkararohith008/Dream-Destination-Tourism-Website
/Transport/rideshare-backend/index.php
UTF-8
4,475
2.671875
3
[]
no_license
<?php //Check to see if there is no session yet if (session_status() == PHP_SESSION_NONE) { //Start the session since there is no session session_start(); } //require_once('validate.php'); require_once('database.php'); // Get category ID if (!isset($category_id)) { $category_id = filter_input(IN...
true
d6aaf80a211ed961bfe9d313fd87bd3933dbc173
PHP
maksdv/Daw2Server
/pedidos/clases/circulo.php
UTF-8
686
3.046875
3
[]
no_license
<?php class Circulo extends Figura{ public $tam; public function __construct ($tam) { $this->tam = $tam; } public function setColor($color) { parent::setColor($color); } public function area() { return ($this->lado) * ($this->lado); } public function perimetro() { ...
true
f8e6dd32cfb985ef66a9662548952ea90d11fb4c
PHP
ReadingShades/portal-egresados-cecar
/model/conexion.php
UTF-8
1,084
2.71875
3
[ "MIT" ]
permissive
<?php // require_once $_SERVER['DOCUMENT_ROOT'] . './Model/connectvars.php'; require_once('./model/connectvars.php'); class Conectar_Databases{ private $hostname = DB_HOST; private $database = DB_NAME; private $user = DB_USER; private $password = DB_PASSWORD; private...
true
eeac9a1dd84bd9ce99802e36c3394dcb096e9a58
PHP
marvinick/08.26.15.Library
/src/Copy.php
UTF-8
2,639
3.09375
3
[]
no_license
<?php class Copy { private $count; private $id; private $book_id; function __construct($count, $id = null, $book_id) { $this->count = $count; $this->id = $id; $this->book_id = $book_id; } function setCount($new_count)...
true
16c34b1e7b7ec52ba7c92e23dba8735e2d71c0be
PHP
syamsulhadi076/latihan-oop-dasar
/restoran.php
UTF-8
1,109
3
3
[]
no_license
<?php class Restoran { public $nama = "nama", $tipe = "tipe", $menu = "menu", $lokasi = "lokasi", $pemilik = "pemilik"; public function namaRestoran() { return "$this->nama"; } public function tipeRestoran() { return "$this->tipe"; } public function menuRestoran() {...
true
eacb4be8e6bed8686b0bd1ef12147d54e2124af3
PHP
Dirbaio/NSMBHD
/webroot/plugins/spritedb/functions.php
UTF-8
1,709
3.15625
3
[ "BSD-2-Clause" ]
permissive
<?php function getSprite($id) { return Fetch(Query(" SELECT s.*, sr.locked FROM {spriterevisions} sr LEFT JOIN {sprites} s ON s.id=sr.id AND s.revision=sr.revision WHERE sr.id={0}", $id)); } $fieldtypes = array('checkbox', 'value', 'signedvalue', 'list', 'binary', 'index'); function trim_valu...
true
973a5b1ab8dffafbdd9d8698f4f7818b387786a0
PHP
phantom0309l/chenshuxiu.top
/chenshuxiu.top/crondev/sjp/bag_0.php
UTF-8
1,307
3.421875
3
[]
no_license
<?php $arr = []; // 随机产生一些数字 for ($i = 0; $i < 5; $i ++) { $arr[] = rand(2, 10); } // 排序 sort($arr); // 去重 $arr = array_unique($arr); echo "\n============\n"; echo implode(",", $arr); echo "\n============\n"; $min = $arr[0]; $max = array_sum($arr); // 全求和 $sums = sums($arr); // 排序 asort($sums); echo "\n=======...
true
d71a2476ca546bdcafd13d1017c67b59070a7ccf
PHP
cjr-consulting/DartLeague
/php/app/LeagueManagement/Models/WinterSeason.php
UTF-8
1,405
2.59375
3
[]
no_license
<?php namespace TrentonDarts\LeagueManagement\Models; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; class WinterSeason extends Model { use SoftDeletes; /** * The database table used by the model. * * @var string */ protected $table = 'winter_se...
true
90d1bb153b4d458444bc4951d1f3f4f66473903f
PHP
fdrobidoux/WP-Production2
/content/plugins/reserv-billets/includes/metadatas/class-rb-meta-static.php
UTF-8
320
2.703125
3
[]
no_license
<?php /** * Class RB_Static_Meta * * Une metadata statique. */ class RB_Static_Metadata extends RB_Metadata { /** * @param String $post_type * @param Array $args */ public function __construct( $post_type, $args ) { // Appeler le constructeur parent. parent::__construct( $post_type, $args ); } }
true
6f09dacc51145cbbb88c4c8231e910690b0d9c04
PHP
DivermanCiv/Interface_JDR
/class/character.class.php
UTF-8
8,142
3.109375
3
[]
no_license
<?php require_once("config.class.php"); require_once("mygame_rule.class.php"); class Character extends Game_Rule{ public static $bdd; public $max_stat_points_allowed; public $min_stat_value_allowed; public $max_stat_value_allowed; public $error_message; public $valid_message; public $message_color; ...
true
d7e5d4c6b976b298a1e2678dfea71e04ddbbab49
PHP
AntonioKozar/PHP-save-filesystem-to-json
/map.php
UTF-8
4,219
2.6875
3
[]
no_license
<?php class Map { public $file_name; public $file_dir; public $file_path; public function __construct(string $file_name="", string $file_dir) { $this->file_name = $file_name; $this->file_dir = $file_dir; $this->file_path = $this->file_dir . "/" . $this->file_name; ...
true
f7963c71f5face7f4f93d807042c0287222eb9b3
PHP
sousa-marta/php-estruturado-desafio
/index.php
UTF-8
4,131
2.71875
3
[]
no_license
<?php //Incluindo functions.php que inclue variáveis.php que já contém session_start: require_once("config/functions.php"); //CADASTRO DE PRODUTO: if($_POST){ //Movendo imagem para pasta do projeto: $imgName = $_FILES['image']['name']; $tmpPath = $_FILES['image']['tmp_name']; $imgPath = "produ...
true
80421037a9251bbdab0312d2a0cd9c16b99ebc4a
PHP
se3/xmp
/xmp/webpad/dialogs/rename.php
UTF-8
2,134
2.796875
3
[]
no_license
<?php require_once('../admin/configuration.php'); require_once('../admin/authentication.php'); $msg = false; // Handle the reqest to rename the selected file. if (isset($_POST['old'])) { // Validate file name (no special characters) if (preg_match('/^[a-z0-9\-_\+!\(\)\.~]+$/i', $_POST['filename'])) { $old...
true
0789508996743da24bcd9e590d97a626f58b26cd
PHP
kevlozano/PHP-piscine
/d03/ex03/cookie_crisp.php
UTF-8
417
2.515625
3
[]
no_license
<?php if ($_GET['action'] == "set") { $cookie_name = 'php_cookie_test'; $cookie_value = 'absolutely nothing'; setcookie($cookie_name, $cookie_value); } else if ($_GET['action'] == 'get') { echo $_GET['name']."<br/>"; } else if ($_GET['action'] == 'del') { if (isset($_COOKIE[$_GET['name']])) { ...
true
b6a61db0beb2c86cb8bafde1d6cf165af8a0fa56
PHP
proitec/bp-manager
/module/Cp/src/Cp/Form/IpForm.php
UTF-8
1,186
2.59375
3
[]
no_license
<?php /** * mithra62 - Backup Pro Server * * @author Eric Lamb <eric@mithra62.com> * @copyright Copyright (c) 2014, mithra62, Eric Lamb. * @link http://backup-pro.com/ * @version 2.0 * @filesource ./module/PM/src/PM/Forms/IpForm.php */ namespace PM\Form; use Base\Form\BaseForm; /** * Ip Locker Form * *...
true
d13c87a1324fc59db9fab8897ce40ab19c9f7a45
PHP
faceless105/book-amp
/ch24 - registration/users.php
UTF-8
4,553
2.59375
3
[]
no_license
<?php function showRegistration(){ $email = getVar("email"); $password = getVar("password"); //show the registration form $output = '<div class="loginBox"> <form action="index.php" enctype="multipart/form-data" method="post"> <table class="registration"> <thead><tr><th colspan="2">User Registration</th><...
true
d21cfea5d963d03ef87ce97fefa4c88026b060e8
PHP
norugie/CSVGenerator
/csvGenerator.php
UTF-8
2,957
2.71875
3
[]
no_license
<?php require 'connect.php'; $database = new Database(); require 'functions.php'; $generate = new Generate(); ?> <form action="csvGenerator.php?generate=true" method="POST"> <label for="school"><b>Generate CSV for Grade Level: </b></label> <select name="school" id="school"> <option val...
true
32174d13e1d5ef52dd1ce0d13247373b5540fa5d
PHP
Alan38/PHP-bases-exercices-
/Les Bases/Array et Foreach.php
UTF-8
1,918
3.4375
3
[]
no_license
array <!-- TABLEAU --> foreach <!-- BOUCLE SPECIALE POUR LES TABLEAUX --> <br><br><br> <br><br><br> <!------------------- AFICHER UN TABLEAU: 1ère façon de faire ----------------------> <?php $tablen1 = array //ON CREE LE TABLEAU ('place 1' => 'Fanny', //1er ELEMENT DU TABLEAU 'place 2' =...
true
a713f13adcc6411cf2ce239f35f0d7ae4afdf197
PHP
arriolaalcides/project_rent_aa
/family.php
UTF-8
936
3.125
3
[]
no_license
<?php require_once('calculateInterface.php'); class family implements calculateInterface{ private $opt_price; private $amount; private $amount_fly; private $discount_family; public $total; /* @param $opt: the option chosed by the user @param $amount: the amount provided by the user @par...
true
76d057b1a2c29a53f32613ddd5e5fcbcd93089cb
PHP
ptnbk2401/tintuc
/app/Http/Requests/Vpublic/Core/Captcha/PCaptchaIndexRequest.php
UTF-8
2,263
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Requests\Vpublic\Captcha; use Illuminate\Foundation\Http\FormRequest; use Illuminate\Http\Request; use Illuminate\Routing\Route; use Illuminate\Support\Facades\Auth; class PCaptchaIndexRequest extends FormRequest { /** * Determine if the user is authorized to make this request. ...
true
4c3833ddbc9ffb3b3400fe8cccac5b932f7eb1dd
PHP
johmsalas/laraveluser
/app/Http/Controllers/Auth/FacebookAuthController.php
UTF-8
1,448
2.578125
3
[]
no_license
<?php namespace App\Http\Controllers\Auth; use App\Http\Controllers\Controller; use Socialite; use App\User; use App\Role; class FacebookAuthController extends Controller { /** * Where to redirect users after login. * * @var string */ protected $redirectTo = '/home'; /** * Creat...
true
522aebe02a0635e9facacddc0806e1485921acec
PHP
neotix-marcioteixeira/pilao
/scripts/process.php
UTF-8
3,141
2.71875
3
[]
no_license
<?php require(__DIR__) . '/dbQuery.php'; require(__DIR__) . '/functions.php'; require(__DIR__) . '/../inc/globals.php'; require(__DIR__) . '/../vendor/autoload.php'; // Import PHPMailer classes into the global namespace // These must be at the top of your script, not inside a function use PHPMailer\PHPMailer\PHPMaile...
true
bbe61b92df47008173ecf480ec8efbdf1bbaa779
PHP
organizacion-sesion-3-gloria-munoz/sesion5-travis
/Num_Par.php
UTF-8
139
3.015625
3
[]
no_license
<?php class Num_Par { public function Par($a) { if ( $a % 2 == 0) { return "par"; } else { return "impar"; } } } ?>
true
6db9ef53a6224c71cfc97d354b23a5c120cdaf19
PHP
jonlord1012/srmis
/inc/module_reader.php
UTF-8
222
2.515625
3
[]
no_license
<? class ModuleReader { function __construct() { // } function ModuleReader() { return __construct(); } function LoadModule() { // } } ?>
true
cad104470df54e1a921913702b31ccef5bbe5c03
PHP
joshi-sagar/careersupport24
/date_picker/bar chart/graph.php
UTF-8
1,888
2.703125
3
[]
no_license
<?php if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) { ob_start("ob_gzhandler"); } else { ob_start(); } //header to store the file header("Expires: ".date("D, j M Y h:i:s", mktime(0, 0, 0, date("n")+1, date("j")+1, 2020))." GMT"); header("Content-Type: image/png"); ##################...
true
e34134c6104aa00c754111c6128e497c84fbccc6
PHP
kanitha21/guvi-codekata-programs
/postive-or-negative-num.php
UTF-8
159
3.0625
3
[]
no_license
<?php $fhandle = fopen ("php://stdin","r"); $number = fgets($fhandle); if($number<0) echo "Negative"; else if($number>0) echo "Positive"; else echo "Zero"; ?>
true
eb53900d2f3cfde8dae999a56bb29a0f64bde9a1
PHP
DeNic0la/M307-Nirin-Kredihay
/Code/app/Controllers/CreateController.php
UTF-8
1,255
2.65625
3
[]
no_license
<?php class CreateController { function show() { $CreditPackages = CreditPackage::getAll(); $ShowErrors = false; require './app/Views/create.view.php'; } public function validate(){ if ($_SERVER['REQUEST_METHOD'] === 'GET'){ abort(404); } ...
true
590d60650d912377cfbf9faa2845a5fe6d684d1c
PHP
GLOCTARRR/Practicum
/php/1_2/1_2.php
UTF-8
673
2.609375
3
[]
no_license
<html> <head> <link rel= 'StyleSheet' type = 'text/css' href='style.css'/> </head> <body> <?php function editName() { $name = $_POST['name']; list ($lastName, $middleName, $firstName) = explode(" ", $name); return $lastName." ".substr($middleName, 0, 1).". ".substr($firstName, 0, 1)."."; } ?> <d...
true
95907752867442d6b7de9b37fa81f046e3768c7d
PHP
WPSHOPLA/Elisponsor_PAY_Module_WP
/payment/mypay/RefundSale.php
UTF-8
7,392
2.875
3
[]
no_license
<?php // # Get Sale sample // Sale transactions are nothing but completed payments. // This sample code demonstrates how you can retrieve // details of completed Sale Transaction. // API used: /v1/payments/sale/{sale-id} require __DIR__ . '/bootstrap.php'; use PayPal\Api\Amount; use PayPal\Api\CreditCard; use PayPal...
true
5d0f891160f819cc5c22fd94fce5d5b657bbcc80
PHP
fernandezPablo/Trabajo-Final-de-Administracion-de-Recursos
/Model/SysExterno.php
UTF-8
591
3.15625
3
[]
no_license
<?php class SysExterno{ private $_idSysExterno; private $_nombreSysExterno; function __construct($idSysExterno,$nombreSysExterno) { $this->_idSysExterno = $idSysExterno; $this->_nombreSysExterno = $nombreSysExterno; } public function getIdSysExterno(){ return $this->_idSysExterno; } public function ...
true
09db19d7289aefe680e17003d9f4f1c14a1b6dd8
PHP
harisspace/simple-blog-using-php-and-mysql
/app/controllers/Login.php
UTF-8
843
2.515625
3
[]
no_license
<?php class Login extends Controller{ public function index() { if(isset($_POST["login"])) { $username = htmlspecialchars($_POST["username"]); $password = htmlspecialchars($_POST["password"]); // query $user = $this->model('User_model')->getDataCond('userna...
true
39641fa0c87053b206e57899b34b81082b3269d4
PHP
elsamanang/php-esis-2018.2019
/lesson3/contact.php
UTF-8
539
3.890625
4
[]
no_license
<?php class Contact { /** définitions des attributs **/ public $nom; public $tel; /** ceci est un constructeur, il permet de créer des instances (objets) de type Contact. Un constructeur est juste une fonction **/ public function __construct($n, $t) { $this->nom = $n; $this->tel =...
true
9e1e94b2c0834482b0ae69f9367f4fec5020e0a4
PHP
shankersdhari/ukkr
/_protected/common/models/RequestWifi.php
UTF-8
2,691
2.546875
3
[]
no_license
<?php namespace common\models; use Yii; use yii\helpers\ArrayHelper; use yii\behaviors\TimestampBehavior; use yii\db\ActiveRecord; use yii\helpers\Url; use yii\captcha\Captcha; /** * This is the model class for table "{{%request_wifi}}". * * @property integer $id * @property string $name * @property string $emai...
true
eba6c61c43b6d8c833c24954db1665e534918cbc
PHP
code-area/laraarea-translation
/src/Traits/LanguageAttributeTrait.php
UTF-8
623
2.609375
3
[]
no_license
<?php namespace LaraAreaTranslation\Traits; trait LanguageAttributeTrait { /** * @var */ protected $languageColumn = 'lang'; /** * @return mixed|string */ public function getLanguageLabelAttribute() { $languages = collect(config('laraarea_languages'))->pluck('language'...
true
e912c29cf63fc9c9f9a8c8f356a6470f49dfaf45
PHP
andersock15/PruebaBRM
/app/Models/billing.php
UTF-8
1,010
2.765625
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Eloquent as Model; use Illuminate\Database\Eloquent\SoftDeletes; /** * Class billing * @package App\Models * @version July 6, 2019, 7:34 pm UTC * * @property producto bill * @property integer bill_cliente * @property float bill_total */ class billing extends Model { use So...
true
253f3d29a7f356226602e3f72df35b0443016487
PHP
luis-ende/LooopCore
/FrameworkBundle/Commons/LooopNode.php
UTF-8
3,904
3.15625
3
[]
no_license
<?php namespace LooopCore\FrameworkBundle\Commons; /** * Class implemented by a node to construct a tree of elements with options. * * LooopNode adds some extra functionality like retrieving a child by its features. */ class LooopNode implements LooopNodeInterface { /** * Array of LooopNodes. * ...
true
2c0eb45add6a31a18faa466e3374c3103af62c80
PHP
sabbelasichon/typo3-rector
/stubs/TYPO3/CMS/Extbase/Validation/Validator/ValidatorInterface.php
UTF-8
708
2.71875
3
[ "MIT" ]
permissive
<?php namespace TYPO3\CMS\Extbase\Validation\Validator; if (interface_exists('TYPO3\CMS\Extbase\Validation\Validator\ValidatorInterface')) { return; } interface ValidatorInterface { /** * Checks if the given value is valid according to the validator, and returns * the Error Messages object which oc...
true
36893c532b18b9df8651f9886f34ee7847a66358
PHP
toiiia/cert
/app/components/Nodus/lib/Services/Urls.php
UTF-8
2,584
2.609375
3
[]
no_license
<?php class Component_Nodus_Services_Urls implements Core_ModuleInterface { public function add_urls_to_sitemap($lang) { $urls = array(); $data = array( 'loc' => '/', ); Events::call('component.nodus.sitemap.add', $data); $urls[] = $data; $urls = $this->sitemap_from_datatypes($urls, $lang); $urls =...
true
d466406495a212b49bb3efb3edf0cd89af0931ee
PHP
seorc/phpiv
/tests/ValidatorSetTest.php
UTF-8
1,459
2.953125
3
[ "MIT" ]
permissive
<?php use Phpiv\ValidatorSet; use Phpiv\EmailValidator; use Phpiv\NumberValidator; use PHPUnit\Framework\TestCase; class ValidatorSetTest extends TestCase { public function validatorClassNamesProvider() { return array( // Valid names. array('string', true), array('date', true), array('basic', true), ...
true
a3f0463d0b2bc7f14ddb0f60894c99d71d40a760
PHP
miron258/bliz
/app/Http/Middleware/DisplayDetection.php
UTF-8
580
2.765625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Middleware; use Closure; use Jenssegers\Agent\Agent; class DisplayDetection { /** * Обработка входящего запроса. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle($request, Closure $next) ...
true
16f8942ad7796224f77de0134488f7a5d75c339b
PHP
linojiang268/jh008-server-php-v3.1-demo
/src/Domain/Team/Certification.php
UTF-8
2,691
2.59375
3
[]
no_license
<?php namespace Jihe\Domain\Team; use Brouwers\LaravelDoctrine\Extensions\Timestamps\Timestamps; use Doctrine\ORM\Mapping as ORM; use Gedmo\Mapping\Annotation as Gedmo; /** * @ORM\Entity * @ORM\Table(name="team_certifications") */ class Certification { use Timestamps; const TYPE_ID_CARD_FRONT = 0...
true
48fceeb7c9762b76ade7630352eebf3671667eae
PHP
BasilDean/php-project-lvl1
/src/Games/Calc.php
UTF-8
1,123
3.546875
4
[]
no_license
<?php namespace BrainGames\Games\Calc; use function BrainGames\Engine\runGame; use const BrainGames\Engine\NUMBERS_OF_ROUNDS; const DESCRIPTION = 'What is the result of the expression?'; function calc(int $n1, int $n2, string $operation): int { switch ($operation) { case '-': return $n1 - $...
true
9f4b3e2839514aa5317aaddcc9ebc0c28929453d
PHP
Happensit/Myframework
/app/controllers/NewsController.php
UTF-8
746
2.625
3
[]
no_license
<?php /** * Date: 09.07.15 9:18 * Project: drupal8 * Author: happensit */ class NewsController extends Controller { public function actionIndex() { $model = $this->loadModel('News'); $id = $model->max('news_id'); // Maximum $template = $this->loadView('about_view'); $templa...
true
aa4af181a19829be0fec3961f83b2bcf47ae8586
PHP
soumyajithalder/soumyajithalder.github.io
/PHP-Assignments/php-assignment-1.php
UTF-8
1,651
2.890625
3
[]
no_license
<!DOCTYPE html> <?php $message=""; $fullname=""; $errmessage=""; if(isset($_GET['submitbtn'])){ $firstname=$_GET['first']; $lastname=$_GET['last']; if(preg_match("/^[a-zA-Z]+$/", $_GET['first']) && preg_match("/^[a-zA-Z]+$/", $_GET['last'])) { $GLOBALS ['full...
true
defa9b17181ba61a21b96c31a0e96234f62465f8
PHP
ThomasBerranger/BroLight
/src/Manager/WishManager.php
UTF-8
1,518
2.6875
3
[]
no_license
<?php namespace App\Manager; use App\Entity\Podium; use App\Entity\User; use App\Entity\Wish; use Doctrine\ORM\EntityManagerInterface; use Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface; use Symfony\Component\Security\Core\Security; use Symfony\Component\Validator\Validator\ValidatorInter...
true
c16424f7b2b22363450bc74081d43294e9a184de
PHP
jorgefprietol/reservasy
/lib/Database/SqlFilter.php
UTF-8
10,650
2.640625
3
[]
no_license
<?php /** * Copyright 2020 Prieto Linares, Jorge Fidel * * This file is part of Agenda Capacitaciones Yanbal is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your...
true
feba7365c3da5e1d90349d49089d73013d74249e
PHP
Ignacho/TesisAsistenciaVarios
/20180326/TesisAsistenciaWEB/WEB/app/Http/Controllers/DocenteController.php
UTF-8
1,376
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Docente; class DocenteController extends Controller { public function index($id = null) { if ($id == null){ return Docente::all(); } else { return Docente::find($id); } } public function s...
true
81125aeb352253598cb96a9bb864f5428b04dfae
PHP
akshaypjoshi/swoft-component
/src/framework/src/Contract/DispatcherInterface.php
UTF-8
743
2.953125
3
[ "Apache-2.0" ]
permissive
<?php declare(strict_types=1); namespace Swoft\Contract; /** * Class DispatcherInterface * * @since 2.0 */ interface DispatcherInterface { /** * Dispatch * * @param array ...$params dispatcher params */ public function dispatch(...$params); /** * Pre middleware * *...
true
5bd09b658c457c8138ee2aaf6fd3e8a21acd77aa
PHP
simpart/spac
/src/fnc/rle/ExtFunc.php
UTF-8
1,380
2.828125
3
[ "MIT" ]
permissive
<?php /** * @file ExtFunc.php * @brief exec extends class * @author simpart * @note MIT License */ namespace fnc\rle; /*** define ***/ define( 'DFNC_TYPE_CLI', 'cli' ); define( 'DFNC_TYPE_RST', 'rest' ); /*** class ***/ class ExtFunc { protected $call_type = DFNC_TYPE_CLI; /** * set call typ...
true
17b938aca28f92e0fe7f848e257dd637d9689990
PHP
hskrasek/DashboardersHeaven.com
/app/Destiny/Slack/Builder/AbstractBuilder.php
UTF-8
516
2.71875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace App\Slack\Builder; use App\Services\Destiny\Client; use App\Slack\Block; abstract class AbstractBuilder { /** * @var Client */ protected $client; public function __construct(Client $client) { $this->client = $client; } /** * @p...
true
2ba1d3c7aa3d6d18e7d3ebe7d912c9704d3c8d34
PHP
ArmelChesnais/Webserver
/Warframe/options.php
UTF-8
3,257
2.8125
3
[]
no_license
<?php include "/Library/WebServer/Documents/includes/preload.php"; if ( getUserAuthority($loggedUser) < 10) { header($_SERVER["SERVER_PROTOCOL"]." 403 Forbidden"); exit(); } include "/Library/WebServer/Documents/includes/head.php"; ?> </head> <body> <?php include "/Library/We...
true
67c405ab23bbfaad300eed736c7abdb17ad67fca
PHP
IsThatTheWhat/Projet-Web-S3
/app/Http/Requests/ProfileFormRequest.php
UTF-8
1,071
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; use Illuminate\Support\Facades\Auth; use Illuminate\Validation\Rule; class ProfileFormRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public fun...
true
213b65c44417318fe06babfc5e3ba9060699b3cf
PHP
sourcoder/mombaby
/frontend/controllers/FoodController.php
UTF-8
10,164
2.515625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace frontend\controllers; use Yii; use common\models\Food; use backend\models\FoodSearch; use yii\web\Controller; use yii\web\NotFoundHttpException; use yii\filters\VerbFilter; use backend\models\FoodForm; use yii\filters\AccessControl; /** * FoodController implements the CRUD actions for Food model. */...
true
a3446109c73c25c6127f1fd693f50ae3a9959ae1
PHP
Tidynar/University
/common/access_config.php
UTF-8
328
2.65625
3
[ "MIT" ]
permissive
<?php class AccessRules { //config show what user what controllers can use function __construct() { } public function getRules() { return [ 'guest' => [ 'site/index', 'login/index' ], 'user' => [ 'site/index', 'login/index' ], 'administrator' => ['*'] // can use any controller ]...
true
f25c351c36529386adf7b671978c902178288c4d
PHP
VincentCroquet/Projet1php
/projet php v1.0/php/register.php
UTF-8
14,376
2.96875
3
[]
no_license
<?php require_once "connexion.php"; // même chose qu'un simple "require" à part que PHP vérifie si le fichier a déjà été inclus, et si c'est le cas, ne l'inclut pas une deuxième fois. $firstname = $lastname = $birthdate = $email = $login = $password = $confirm_password = ""; // déclaration des variables $firstname_err ...
true
a5aab31e38d2cb350a5f3d4745fc222ad3952960
PHP
Levandovski/CakePhpCrud
/src/Template/Users/add.ctp
UTF-8
712
2.765625
3
[]
no_license
<h1>Cadastrar Usuário</h1> <?php //Trabalhando com os Helpers do Cake //Vamos criar nossos formularios //O user que esta sendo passado ali no nosso create esta sendo setado no controller add, onde ele retorna os campos do banco de dados por meio da classe model da Entity echo $this->Form->create($user);//Estamos ini...
true
dafc4a4b3951a91430c50e004caf65d9620de807
PHP
thangttttv/f-server-master
/app/Http/Responses/API/V1/TrackingLog.php
UTF-8
1,219
2.5625
3
[]
no_license
<?php namespace App\Http\Responses\API\V1; class TrackingLog extends Response { protected $columns = [ 'id' => '', 'date' => '', 'campaign_id' => 0, 'distance' => 0, 'revenue' => 0, ...
true
cbd63f24dbdb2ea4b243f48df990aa5044051ab2
PHP
rsmarques/check-in-manager
/app/Models/User.php
UTF-8
4,179
2.875
3
[]
no_license
<?php namespace App\Models; use Hash; use Illuminate\Database\Eloquent\Model; use Illuminate\Auth\Authenticatable; use Illuminate\Auth\Passwords\CanResetPassword; use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract; use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract; use ...
true
f27503b6e2b72a96c534c3b06d63408ed2fb5593
PHP
aidanleuck/CS421
/user.php
UTF-8
328
3.125
3
[]
no_license
<?php Class User{ private $accountID; private $email; public function __construct($id, $email){ $this->accountID = $id; $this->email = $email; } public function getAccountID(){ return $this->accountID; } public function getEmail(){ return $this->email; ...
true
78035bb831aea3b5b25d35c94f591bc98a7b5121
PHP
tolik505/baby
/frontend/components/PokuponChecker.php
UTF-8
2,536
2.578125
3
[ "BSD-3-Clause" ]
permissive
<?php /** * Author: Pavel Naumenko */ namespace frontend\components; use yii\helpers\Html; use yii\web\Cookie; /** * Class PokuponChecker * * @package frontend\components */ class PokuponChecker { public static function checkUrl() { $pokuponActionId = \Yii::$app->request->get('pokupon_cid'); ...
true
84a6f96a92f47453abbe0eb03977214d565afa34
PHP
c315902734/weitang
/app/Extend/Vendor/yunpian/yunpian.php
UTF-8
2,892
2.90625
3
[]
no_license
<?php class yunpian { public function __construct(){ $config = array( 'apikey' => '52571b647711df2d8f31b4c446429cc8', //APIKEY 'url' => 'http://yunpian.com/v1/sms/send.json ', //访问地址 ); $this->config = $config; } public function sendMsg($mobile,$text){ $url = $this->config['url']; $data['apikey...
true
334464208f9433aeacd4878bd2bff190ab8a7689
PHP
GizzmoAsus/laravel-tests
/cases/RequestTest.php
UTF-8
2,040
2.5625
3
[]
no_license
<?php use Laravel\Request; class RequestTest extends PHPUnit_Framework_TestCase { public function setUp() { $_POST = array(); $_SERVER = array(); } public function test_request_method_returns_spoofed_method_if_uri_is_spoofed() { $_POST = array(Request::spoofer => 'something'); $this->assertEquals('some...
true
d0348e90018a80fdc7d2215f88155e890fc56ef2
PHP
vasil1960/forestry-ideas
/app/Http/Controllers/InstructionsController.php
UTF-8
918
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Models\Instruction; class InstructionsController extends Controller { public function index() { $instructions = Instruction::find(1); return view('instructions.index',[ 'instructions'=> $instructions ...
true
75e411166987ef116f99ff7d4bc662cd4a57d19b
PHP
tophathacker/safeswap
/controllers/index.php
UTF-8
706
2.6875
3
[]
no_license
<?php /** * index controller */ class Index extends Controller { function __construct() { parent::__construct(); } /** * default when you go to / or /index/ or /index/index */ public function index() { $this->view->render('index/index', null, null); } /** * this isn't used, not even s...
true
d49922a3ff13b010c6a9554ca9cfdb299f93271a
PHP
kiwi-26/LaravelTest
/tests/CalcAddTest.php
UTF-8
2,699
2.859375
3
[ "MIT" ]
permissive
<?php use Illuminate\Foundation\Testing\WithoutMiddleware; use Illuminate\Foundation\Testing\DatabaseMigrations; use Illuminate\Foundation\Testing\DatabaseTransactions; use App\Http\Controllers\ArticleController; class CalcAddTest extends TestCase { /** * A basic test example. * * @return void ...
true
0df1eb43ee1f16dcbd8a7893d6ced362f38f7cba
PHP
Ktalyst34/GestionProjet
/app/controllers/ServicesController.php
UTF-8
3,008
2.78125
3
[ "MIT" ]
permissive
<?php class ServicesController extends BaseController { /** * Service Repository * * @var Service */ protected $service; public function __construct(Service $service, Unit $unit) { $this->service = $service; $this->unit = $unit; } /** * Display a listing of the resource. * * @return Response...
true
1f94507217cef25a4830294bbfbd962e96954b92
PHP
Caihuar/liuyan
/database/migrations/2018_03_25_101702_create_kecheng_table.php
UTF-8
2,473
2.5625
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateKechengTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { //专业表 // Schema::create...
true
2fd093b7148bfc33fe027cff778296183176288d
PHP
codie1982/kymrest
/core/badcode.php
UTF-8
796
2.515625
3
[]
no_license
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * Description of input * * @author engin */ class badcode { public static function makeBadCode($tex...
true
fdf602f4c697d63ecb10becfe1777959bea2fede
PHP
BradSegel/repository
/Final/Working_Final/lib/SignupModel.php
UTF-8
1,159
3.046875
3
[]
no_license
<?php class SignupModel { private $name; private $level; function getname() { return $this->name; } function getLevel() { return $this->level; } function setname($name) { $this->name = $name; } function setLevel(...
true
a192423caa4c54e79c160b73ecac35f6871f62f1
PHP
codesInML/sideHustleProject
/authentication_site/index.php
UTF-8
1,048
2.765625
3
[]
no_license
<?php // check for submit if(isset($_POST['submit'])){ // start session session_start(); // Get the form data $_SESSION['name'] = htmlspecialchars($_POST['name']); $_SESSION['email'] = htmlspecialchars($_POST['email']); $_SESSION['Uname'] = htmlspecialchars($_POST['Uname']); $_SESSION['pwd'] = htmlspe...
true
08e502f8116d908d8260e9ed5dedb007d2c50db0
PHP
tmarkson/Nova-Labs-Environment
/www/DoThermostat.php
UTF-8
1,946
2.640625
3
[]
no_license
<?php require_once('MDB2.php'); include('config/config.php'); /* DEFINITIONS ============================================================= */ /* FUNCTIONS =============================================================== */ function queryErrorCheckNoDie($a) { if(PEAR::isError($a)) echo $a->getMessage(...
true
ac01b71ca0ad849a4ce3bcb3496860c41043fdb0
PHP
GasparMDQ/DB-AIRAUP
/admin/eventos_fichas_pdf_pre.php
ISO-8859-1
10,401
2.546875
3
[]
no_license
<?php require_once '/home/gasparmdq/configDB/configuracion.php'; require_once 'includes/abredb.php'; require_once '../includes/permisos.php'; require_once '../includes/funciones.php'; require('../includes/mysql_table.php'); $esadmin=false; if ($nivel_admin OR $nivel_evento) { $esadmin=true; } if (!$_SESSION['logge...
true