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
b821d663148878bf96f219c5e09f4d92ccbcb4ab
PHP
robinbiny/php7_examples
/php_7_1/type_jugging_changes_notice_non_well_formed_number.php
UTF-8
232
2.796875
3
[]
no_license
<?php error_reporting(E_ALL); ini_set('display_errors', 1); $quantity = '2 boxes'; $price = 4.00; $total_price = $quantity * $price; echo $total_price; // Outputs "8" and Notice: A non well formed numeric value encountered
true
183a1d2f73a56922c872947250a0923e52c0cd25
PHP
NIT-Administrative-Systems/lodash-php
/tests/LodashTest.php
UTF-8
555
2.84375
3
[ "MIT" ]
permissive
<?php use PHPUnit\Framework\TestCase; class LodashTest extends TestCase { public function testChain() { $users = [ ['user' => 'barney', 'age' => 36], ['user' => 'fred', 'age' => 40], ['user' => 'pebbles', 'age' => 1], ]; $youngest = __($users) ...
true
87060592e1ab08c7ca22d745cafb1990addc1654
PHP
renanliberato/checkers
/module/Application/src/Model/Board.php
UTF-8
471
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. */ namespace Application\Model; /** * Description of Board * * @author renan */ class Board { /** * @var Checke...
true
2dc1ba5ec38ae4634cd9d225158bcd00b21db2fe
PHP
huaweicloud/huaweicloud-sdk-php-v3
/Services/Dc/V3/DcAsyncClient.php
UTF-8
60,210
2.53125
3
[ "Apache-2.0" ]
permissive
<?php namespace HuaweiCloud\SDK\Dc\V3; use HuaweiCloud\SDK\Core\Utils\HeaderSelector; use HuaweiCloud\SDK\Core\Client; use HuaweiCloud\SDK\Core\ClientBuilder; use HuaweiCloud\SDK\Core\Utils\ModelInterface; class DcAsyncClient extends Client { protected $headerSelector; protected $modelPackage; public fu...
true
7300f1dd879710cefa37a72bfe51a0ef33b9e0ee
PHP
pooja-137/Laravel-demo
/saveData.php
UTF-8
585
2.515625
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\UserInfo; class saveData extends Controller { //save data into database function save(Request $req){ // print_r($req->input()); $user=new UserInfo; $user->name=$req->uname; $user->password=$...
true
a95e8727151849b5724e3259052ec6a81516940c
PHP
bulbulica/wad
/sources/admin/login.php
UTF-8
795
2.53125
3
[]
no_license
<?php $username=$_POST['username']; $password=$_POST['password']; $username = stripslashes($username); $password = stripslashes($password); $username = mysql_real_escape_string($username); $password = mysql_real_escape_string($password); $sql="SELECT * FROM $tbl_name WHERE username='$username'"; $result=mysql_query($s...
true
308f345f75c025131c09f499cbed1be515fbb918
PHP
coralie-fortunato/memory
/memory.php
UTF-8
3,589
2.5625
3
[]
no_license
<?php require("classes/database.php"); require("classes/score.php"); require("classes/game.php"); $db = new DataBase("localhost","root","","memory"); $db_connect = $db->connect(); $success_msg=null; if(isset($_GET['restart'])){ unset($_SESSION['game'], $_SESSION['begin_game'], $_SESSION['end_game'], $_SESSION['s...
true
b7e61776ded80821d689f9d22122813d98bb0b6c
PHP
Shri-Anand-Travels/bestflightdeals.co.uk
/database/migrations/2021_07_08_132339_create_flights_table.php
UTF-8
1,406
2.546875
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Schema; class CreateFlightsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { ...
true
3d99b62bf74d2155b71fb523fc5d96d86a8fe00f
PHP
sharonmalio/UberMatatu_WebApp
/models/Trips.php
UTF-8
15,982
2.515625
3
[]
no_license
<?php class Trips { /*private $uid = null; private $plate = ""; private $email = null;*/ private $trips = ""; function __construct(){ } function get_buses($user_id,$start_coordinate,$start_location,$end_coordinate,$end_location,$trip_date,$trip_time){ //check closest destination stage $destL...
true
981aabeac0086c36e951a18129641ba45fbfb9f7
PHP
vivekjib/vjbhtml
/Html_/php work/evenorodd.php
UTF-8
74
2.546875
3
[ "MIT" ]
permissive
<?php $b=$_POST["b"]; if($b%2==1) echo "odd"; else echo "even"; ?>
true
d0395f7942834a47aa74134c9ef50936c497eda0
PHP
alauritzen/Codeup-Exercises
/search-arrays.php
UTF-8
598
3.25
3
[]
no_license
<?php $names = ['Tina', 'Dana', 'Mike', 'Amy', 'Adam']; $compare = ['Tina', 'Dean', 'Mel', 'Amy', 'Michael']; $query = "Tina"; function inCast($cast, $name) { if (array_search($name, $cast) !== FALSE) { return TRUE; } else { return FALSE; } } echo inCast($names, $query) . PHP_EOL; func...
true
abcf7ef1c046da4fe42a3ffed83c9650a642c7a8
PHP
jununsw/jununsw.github.io
/CVEN4309/01/script/read.php
UTF-8
14,132
2.578125
3
[]
no_license
<?php $dir = $_SERVER['DOCUMENT_ROOT']; require($dir . "/unsw/db_config/db_header.php"); if ((!isset($_GET["id"]))) { die("no parameter"); } $zid = $_GET["id"]; $table = "cven4309_quiz"; $column = "d1"; $sql1 = "select {$column} from {$table} where zid='{$zid}'"; $conn = unsw_connect(); if ...
true
aca21aa1e7a25b1bcc1e60a78eecf52119a8b2d9
PHP
sheldonrampton/nyss_tools
/code_pusher.php
UTF-8
2,052
2.71875
3
[]
no_license
<?php $previous_update = svn_get_last_update("last_update"); $new_update_string = svn_update(); svn_write_new_update_string($new_update_string, "last_update"); $current_update = svn_get_last_update("last_update"); print "From $previous_update to $current_update.\n"; $current_dir = getcwd(); // Update James Tunick's br...
true
0d521d8596b0f38bf85028c3632153849f99c37b
PHP
bhubneshb/trait
/Trait 1.php
UTF-8
364
3.265625
3
[]
no_license
<?php trait hi { public function disp() { echo "bhubnesh prasad behera <br>"; } } class bhuvi { use hi; } class lipsa { use hi; } class suchi { use hi; } $a= new bhuvi(); $a-> disp(); $b= new lip...
true
1548c7d159c2dd57b51eec8ecc6366df61d0c8ac
PHP
finanalyst/grav-plugin-scrolled-table-shortcode
/shortcodes/ScrolledTableShortcode.php
UTF-8
1,131
2.546875
3
[ "MIT" ]
permissive
<?php namespace Grav\Plugin\Shortcodes; use Thunder\Shortcode\Shortcode\ShortcodeInterface; class ScrolledTableShortcode extends Shortcode { public function init() { $this->shortcode->getHandlers()->add('scrolled-table', function(ShortcodeInterface $sc) { $this->shortcode->addAssets('css','plu...
true
01bd8bb1fc87c855ed772b5937d1a58405f060fb
PHP
teledirigido/wp-paristemplate
/acf/og.php
UTF-8
5,570
2.734375
3
[]
no_license
<?php /* * Add this in your functions.php: if( class_exists('open_graph')): add_action('wp_head', function(){ open_graph::general(); open_graph::facebook(); open_graph::twitter(); }); endif; * This helper works better with ACF PRO or the following custom fields: og_title og_...
true
33aa8cc2084f14486a6e33d9954ad3e069bf6ebc
PHP
ooyanma/php
/pdo_testdb.php
UTF-8
1,499
2.9375
3
[]
no_license
<!DOCTYPE html> <html lang="ja" dir="ltr"> <head> <meta charset="utf-8"> <title>PDOでデータベース接続</title> <link href="./css/style.css" rel="stylesheet"> </head> <body> <?php // PDO : PHP Data Objects // http://php.net/manual/ja/book.pdo.php // データベースユーザー $user = ""; $pa...
true
a902519a8bc5f8fdb688412e32a362cd161ba8d1
PHP
getgrav/grav
/system/src/Grav/Common/Page/Medium/GlobalMedia.php
UTF-8
3,808
2.578125
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php /** * @package Grav\Common\Page * * @copyright Copyright (c) 2015 - 2023 Trilby Media, LLC. All rights reserved. * @license MIT License; see LICENSE file for details. */ namespace Grav\Common\Page\Medium; use Grav\Common\Grav; use Grav\Common\Media\Interfaces\MediaObjectInterface; use Grav\Common\U...
true
1f70ca4eb483b428b1132f9ac268e873e422c955
PHP
AntonMuxa/LoyaltyProgram
/Model/Source/FieldsValues.php
UTF-8
955
2.625
3
[]
no_license
<?php namespace Alevel\LoyaltyProgram\Model\Source; use Alevel\LoyaltyProgram\Api\Repository\LoyaltyProgramRepositoryInterface; use Magento\Framework\Data\ValueSourceInterface; class FieldsValues implements ValueSourceInterface { /** * @var LoyaltyProgramRepositoryInterface */ private $repository; ...
true
54458b3297194d6d59082d2266bde84e42d5e20f
PHP
mahmoudafifi414/RobotMovements
/Output/OutputDecorator.php
UTF-8
345
3.21875
3
[]
no_license
<?php namespace Output; class OutputDecorator { private Output $output; public function __construct(Output $output) { $this->output = $output; } public function showOutputConcatenation(): string { return 'Final position is x=' . $this->output->getXValue() . ' y=' . $this->outp...
true
08fdb42bfb5cdcbe0b516f145ab492e957c6b936
PHP
Shofiul-Alam/magento-app
/src/vendor/magento/framework/Search/Adapter/Mysql/Query/QueryContainer.php
UTF-8
1,654
2.515625
3
[ "LicenseRef-scancode-unknown-license-reference", "AFL-2.1", "AFL-3.0", "OSL-3.0", "MIT" ]
permissive
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Framework\Search\Adapter\Mysql\Query; use Magento\Framework\DB\Select; use Magento\Framework\Search\Request\QueryInterface as RequestQueryInterface; /** * MySQL search query container. * * @de...
true
ddf4ae460c43fda5675e508620c7917b0e3f79d3
PHP
JohnnyIITU/IsAudit
/app/User.php
UTF-8
2,091
2.671875
3
[]
no_license
<?php namespace App; use Illuminate\Notifications\Notifiable; use Illuminate\Contracts\Auth\MustVerifyEmail; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Support\Facades\Auth; class User extends Authenticatable { use Notifiable; const ROLE_CLIENT = 'user'; const ROLE_ADMIN = 'ad...
true
41f3162db2f4d14cb0c859061a86c7702eb73661
PHP
syamsulmj/e-lab
/app/Http/Helpers.php
UTF-8
316
2.609375
3
[]
no_license
<?php namespace App\Http; use Illuminate\Support\Facades\Storage; class Helpers { public static function neat ($slug) { $neat = str_replace("-", " ", $slug); return ucwords($neat); } public static function raw ($slug) { $raw = str_replace(" ", "-", strtolower($slug)); return $raw; } }
true
f2e7afd91c487c00d4f3cb1218de427708edb728
PHP
danatunes/PanOverflow
/Connection.php
UTF-8
862
2.796875
3
[ "MIT" ]
permissive
<?php class Connection{ private $host; private $user; private $pass; private $db_name; private $conn; function __construct1(){ } function __construct($user,$pass) { $this->host = 'localhost'; $this->user = $user; $this->pass = $pass; ...
true
302df67d7e1785e4e8b77aa59ce7a9df59e1d96d
PHP
ZihChen/PowerPortfolio
/app/Services/StockService.php
UTF-8
2,191
2.6875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: owlting * Date: 2021-04-02 * Time: 01:24 */ namespace App\Services; use App\Models\Stock; use Carbon\Carbon; class StockService { protected $stockModel; public function __construct(Stock $stockModel) { $this->stockModel = $stockModel; } publ...
true
6342d49af548725177f5a370b8bd10a477f8a9ad
PHP
jzxyouok/hxingxing-cms
/app/Extensions/UmengAndroidPush.php
UTF-8
1,651
2.609375
3
[ "MIT" ]
permissive
<?php namespace Douyasi\Extensions; use Douyasi\Extensions\UmengAndroidNotification; class UmengAndroidPush extends UmengAndroidNotification { protected $appkey = NULL; protected $appMasterSecret = NULL; protected $timestamp = NULL; protected $validation_token = NULL; function __construct...
true
78de3c7414017f122182c038b6c8ebd2a4a5537a
PHP
dhan360/SHIELD
/Entidades/Cliente.php
UTF-8
611
3.125
3
[]
no_license
<?php class Cliente { private $rut; private $dv; private $razon_social; private $actividad; /* * Constructor sin parametros */ function __construct() { this.$rut=""; this.$dv="";//LDSDLSDLS this.$razon_social=""; this.$actividad=""; } /* * Accesador Global */ public fun...
true
9b34a0dac800c16e99520587e97550c9466aff62
PHP
sc-zahradnik/p4f_utilities
/src/traits/Arrays/Merge.php
UTF-8
609
2.953125
3
[]
no_license
<?php namespace P4F\Components\Utilities\traits\Arrays; use P4F\Components\Utilities\traits\Arrays\Merge\Recursive as RecursiveTrait; /** * @url http://be2.php.net/manual/en/function.array-merge.php */ trait Merge{ use RecursiveTrait; /** * Merge one or more arrays * @param array $array Init...
true
2746b8de5551132944e55a75fcf13fad928abfc1
PHP
sherlockiazi/sicantik-backoffice
/app/models/TmpermohonanTrperizinan.php
UTF-8
687
2.734375
3
[ "MIT" ]
permissive
<?php class TmpermohonanTrperizinan extends BaseModel { protected $table = 'tmpermohonan_trperizinan'; protected $guarded = ['id']; protected $fillable = ['tmpermohonan_id', 'trperizinan_id']; public static function insert_data($tmpermohonan_id, $trperizinan_id) { TmpermohonanTrperizinan::create([ 'tmper...
true
41ba12f6130ca83c685c9b80b78b0aaa69dabb10
PHP
BinaryStudioAcademy/bsa-2017-bebeep
/app/Listeners/NotifyDriverAboutTripReview.php
UTF-8
592
2.515625
3
[]
no_license
<?php namespace App\Listeners; use App\Events\ReviewOnTripCreated; use Illuminate\Contracts\Queue\ShouldQueue; use App\Notifications\ReviewOnTripCreated as NotificationReviewCreated; class NotifyDriverAboutTripReview implements ShouldQueue { /** * Handle the event. * * @param ReviewOnTripCreated ...
true
a5602888aad040ebbcfbd53a78cecc7388389289
PHP
Alvaro-DAW/M14_Ac3_get_post
/src/Controller/CategoriaController.php
UTF-8
6,060
2.5625
3
[]
no_license
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\Routing\Annotation\Route; use App\Entity\Categoria; use App\Repository\CategoriaRepository; use App\Form\...
true
a08b38d003ad05ede195775361df446bc34d44a9
PHP
huynhmanhnguyen/apiLumen
/app/Models/AsnProcessing.php
UTF-8
834
2.609375
3
[]
no_license
<?php namespace App\Models; /** * Created by PhpStorm. * User: admin * Date: 10/27/2016 * Time: 10:41 AM */ class AsnProcessing extends AsnProcessingFactory { protected $table = 'asn_processing'; protected $primaryKey = 'asn_processing_id'; /** * The name of the "created at" column. * *...
true
b2f83e049d25f0a74c9bd672b54fda4d7e747d6b
PHP
juckerf/sshLoginAuditing
/collector/classes/classAccepted.php
UTF-8
1,058
2.875
3
[]
no_license
<?php class Accepted extends Entry{ private $loginType; private $user; private $sourceIp; function __construct($date,$time,$server,$sessionId,$loginType,$user,$sourceIp){ $this->date=$date; $this->time=$time; $this->server=$server; $this->sessionId=$sessionId; $this->loginType=$loginType; $this->user=...
true
0038e2766da13f58c7c7b842ca5e77de065e4071
PHP
sjb9774/shopify-test-app
/app/Http/Middleware/AppBridgeVerify.php
UTF-8
1,259
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Middleware; use Illuminate\Http\Request; use PHPShopify; use Closure; use Firebase\JWT\JWT; class AppBridgeVerify { public function handle(Request $request, Closure $next) { $token = $request->header('Authorization'); $token = explode(' ', $token)[1]; try { ...
true
604c3482cfa18930c69731fd146945341b18a5d6
PHP
Najamuddin1/tailwindBase
/plugins/wp-rocket/inc/Engine/Container/ImmutableContainerAwareTrait.php
UTF-8
752
2.703125
3
[]
no_license
<?php namespace WP_Rocket\Engine\Container; use Psr\Container\ContainerInterface as InteropContainerInterface; trait ImmutableContainerAwareTrait { /** * @var \Psr\Container\ContainerInterface */ protected $container; /** * Set a container. * * @param \Psr\Conta...
true
22de5d5540c533bd0d679bf7440d22efcf1a24fb
PHP
Kebatoufragile/SportNet
/app/src/Controllers/LogoutController.php
UTF-8
1,076
2.59375
3
[]
no_license
<?php namespace App\Controllers; use App\Model\User; use Cartalyst\Sentinel\Native\Facades\Sentinel; use Cartalyst\Sentinel\Users\UserInterface; use Psr\Http\Message\ServerRequestInterface as Request; use Psr\Http\Message\ResponseInterface as Response; final class LogoutController extends AbstractController{ pr...
true
e2db1a9a13853fc3c005e0f7c088046a6be750d2
PHP
extendssoftware/exa-php
/src/Validator/Exception/TemplateNotFound.php
UTF-8
538
2.640625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace ExtendsSoftware\ExaPHP\Validator\Exception; use Exception; use ExtendsSoftware\ExaPHP\Validator\ValidatorException; class TemplateNotFound extends Exception implements ValidatorException { /** * Template not found for key. * * @param string $key */ ...
true
1832321d117978c3feb474e11abb94d8169cfffc
PHP
GuillaumeEtendard/supinternet_exam0429
/exo4.php
UTF-8
1,924
3.140625
3
[]
no_license
<?php if(isset($_POST)){ if($_POST['id'] == 1){//si l'utilisateur s'inscrit $passwordHash = password_hash($_POST['password'], PASSWORD_BCRYPT); $passwordHash = $passwordHash."\n"; if(!file_exists('exo4/login@supmail.fr')){//créé le fichier s'il n'existe pas en ajoutant le mot...
true
69ab45c9508c15fccb9b6ed9856aaeb72d505ee6
PHP
tera-insights/grokit
/Libs/base/GLAs/OrderByGLA.h.php
UTF-8
9,992
2.640625
3
[ "Apache-2.0" ]
permissive
<? // Copyright 2013 Tera Insights, LLC. All Rights Reserved. // // Author: Christopher Dudley /* * Template Arguments: * * [R] 'order': Mapping of input name => ordering * Valid orderings are: * ascending: 'ASC', 'ASCENDING', '+', '>' * ...
true
c4562baf332cd1feee312a3a0806b516de4964d2
PHP
chix/brnorent
/App/Model/CrawlerBase.php
UTF-8
408
2.625
3
[]
no_license
<?php namespace App\Model; use Katzgrau\KLogger; class CrawlerBase { /** @var \DibiConnection */ protected $dibi = null; /** @var KLogger\Logger */ protected $logger = null; protected $config = null; public function __construct(\DibiConnection $dibi, KLogger\Logger $logger, array $config) { ...
true
35429db66b8180530c339f6833e9b4e6d906d2e9
PHP
Brennentm13/the-real-final-phph-mysql
/public_html/index.php
UTF-8
1,211
3.09375
3
[]
no_license
<!DOCTYPE> <html> <head> <body> <div> <h1>Todo Form</h1> <form method="POST"> <label for="task">Task:</label> <input id="todo" type="text" name="todo"> <button type="submit">Add To List</button> </form> ...
true
7ace762b135a7045eaebb67784d8b3ccc38824e6
PHP
sercadel/actividades-modulo-III
/Practica-3.19/Practica-3.19.php
UTF-8
886
3.609375
4
[]
no_license
<?php function listarDirectorio($directorio) { // Obtiene un listado de los elementos dentro del directorio $arrayDirectorios = scandir($directorio); // Elimina del resultado los directorios "." y ".." unset($arrayDirectorios[array_search('.', $arrayDirectorios, true)]); unset($arrayDirectorios[ar...
true
352530caf9ac8051a29502d20e9ed654528ec218
PHP
vaicaloc/book_intern
/app/Addition.php
UTF-8
156
3.015625
3
[ "MIT" ]
permissive
<?php namespace App; use App\Operator; class Addition implements Operator { public function run ($number1, $number2) { return $number1 + $number2; } }
true
634b1c09ae207c3bd76a4a3ba70a32b15e656cfc
PHP
GS05-42-MatsuiKazuhiro/symply
/sample/checkuser.php
UTF-8
524
2.671875
3
[ "MIT" ]
permissive
<?php function checkuser($fid, $fname, $femail, $fphoto, $mysqli) { // すでにユーザーが存在するかどうかを確認する $exist_check = "SELECT * FROM fb_login WHERE fid =" .$fid. ""; $result = $mysqli->query($exist_check); if ($result->num_rows == 0) { // 新規ユーザーの場合は情報を保存 $query = "INSERT INTO fb_login(fid, name, email, photo) VALUES('$...
true
0b8398b013d10e6bcff720e2519bdb2ffbec14de
PHP
remibrat/projet-oauth
/oauth-client/OAuth2/OAuth2SDK.php
UTF-8
1,300
2.734375
3
[]
no_license
<?php namespace OAuth2; use OAuth2\Providers\Provider; class OAuth2SDK { protected array $providers; public function __construct(string $localUrl) { $this->loadProviders($localUrl); } public function getProviders(): array { return $this->providers; } ...
true
206e71e578d4cf3b0d10871ea8da7521f0f5c1de
PHP
gang3071/larabbs
/app/Models/Traits/UserSocialiteHelper.php
UTF-8
828
2.90625
3
[ "MIT" ]
permissive
<?php namespace APP\Models\Traits; trait UserSocialiteHelper { public static function getByDriver($driver, $id) { $functionMap = [ 'github' => 'getByGithubId', 'wechat' => 'getByWechatId' ]; $function = $functionMap[$driver]; if (!$function) { ...
true
c831dd49823de834dea91737337deab928003702
PHP
Simovative/zeus
/skeleton/bundles/Demo/Command/LoginCommandValidator.php
UTF-8
1,127
2.875
3
[ "MIT" ]
permissive
<?php namespace Simovative\Skeleton\Demo\Command; use Simovative\Zeus\Command\CommandRequest; use Simovative\Zeus\Command\CommandValidator; use Simovative\Zeus\Translator\TranslatorInterface; /** * @author Benedikt Schaller */ class LoginCommandValidator extends CommandValidator { const CORRECT_PASSWORD = 'test1...
true
01df0d4e05d57431093023627c3a21627bd37da4
PHP
maiktmp/control-servicio-social
/app/Models/RegistrosExternos.php
UTF-8
1,954
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; /** * App\Models\RegistrosExternos * * @property int $id * @property string $hr_ent * @property string $hr_sal * @property int $hr_totales * @property int $check * @property string $comentarios * @property int $id_ext * @property int $sta...
true
1e5c636c5d186dbad61ee423520666733aeafa44
PHP
wight3/699_client
/application/admin/model/Admin.php
UTF-8
3,915
2.53125
3
[ "Apache-2.0" ]
permissive
<?php /** * Created by PhpStorm. * User: NickBai * Email: 876337011@qq.com * Date: 2019/3/17 * Time: 4:48 PM */ namespace app\admin\model; use think\Model; class Admin extends Model { protected $table = 'v2_admin'; /** * 获取管理员 * @param $limit * @param $adminName * @return array ...
true
922139d5144e36c37b59b931658da1833523df7d
PHP
MarianelaCortina/Project_AgenciaCAC
/DataBase/ConexionDB.php
UTF-8
1,406
3.4375
3
[]
no_license
<?php class ConexionDB { //definición de atributos private $host; private $email; private $password; private $databaseName; private $conn; public function __construct($host,$email,$password,$databaseName){ $this->host=$host; $this->email=$email; $this->password=$pa...
true
849c2f7446671c48d7b2a149c5065c3a8dcdefac
PHP
Valentinlazy/symfony-angular-seed
/src/CoreDomain/Model/File.php
UTF-8
486
3.125
3
[]
no_license
<?php namespace CoreDomain\Model; class File { protected $path; protected $originalName; public function __construct($path = null, $originalName = null) { $this->path = $path; $this->originalName = $originalName; } /** * @return null */ public function getPath()...
true
f0a9c4b3624db4ba895bf2f9e76f075b972663c6
PHP
itsmejip/carsten-blaser.com
/library/filetransmodule.class.php
UTF-8
1,266
2.90625
3
[]
no_license
<?php namespace Jip\Library; class FileTransModule implements ITransModule { private $translations; private $lastModified; private $regex = '/\<\@trans.(.+?)\@\>/'; public function getRegex() { return $this->regex; } public function setRegex($regex) { $this->regex = $regex; return $this; ...
true
9a683b608d41ff6cf1b419fecb6b94b93c285789
PHP
WaylandAce/DataTablesBundle
/tests/MyTestClass.php
UTF-8
625
2.640625
3
[ "MIT" ]
permissive
<?php //---------------------------------------------------------------------- // // Copyright (C) 2016 Artem Rodygin // // You should have received a copy of the GNU General Public License // along with the file. If not, see <http://www.gnu.org/licenses/>. // //-----------------------------------------------------...
true
a0ab52860990c769c98074855668d655293c398c
PHP
kartik4u/dummy
/database/migrations/2019_04_17_185935_create_favourites_table.php
UTF-8
713
2.546875
3
[]
no_license
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class CreateFavouritesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('favourites', function(Blueprint $table) { $table->integer('id', true); ...
true
9285b6b7b19bdccb4dc37ad15e59e9f4fe3a36da
PHP
thiagohsp/gks2
/app/Console/Commands/UpdateCustomersMaino.php
UTF-8
3,391
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Console\Commands; use App\Models\Customer; use App\Repository\Eloquent\CustomerRepository; use Illuminate\Console\Command; use Illuminate\Support\Facades\Http; use Illuminate\Support\Facades\Log; use PhpParser\Node\Stmt\Continue_; class UpdateCustomersMaino extends Command { /** * The na...
true
a88d0b4ea85f49bafebf553b4916a4d775e27eac
PHP
AUMTeam/aum-backend
/modules/branches/add.php
UTF-8
542
2.625
3
[]
no_license
<?php /** * Adds a new branch to the DB */ $exec = function (array $data, array $data_init) : array { if (empty($data['branch_name'])) throw new InvalidRequestException(); global $user; global $db; if (!in_array(ROLE_POWERUSER, $user['role_name'])) //Only power users (admins) are allowed ...
true
0489cb8dd88999b8170db4147612755f9593a0c4
PHP
Sophie-Williams/AncestorBotPHP
/ancestor/RandomData/RandomDataProvider.php
UTF-8
2,896
2.90625
3
[]
no_license
<?php namespace Ancestor\RandomData; class RandomDataProvider { private $afflictions; private $virtues; private $NSFWquotes; private $gold; private $trinkets; private $rewardsQuotes; private $quirksPositive; private $quirksNegative; private static $instance = null; const virt...
true
004aafc8a793c35f0a081c3833fe9cfa5f414b1e
PHP
sdkakcy/efendi
/app/Facades/Session.php
UTF-8
787
2.84375
3
[]
no_license
<?php namespace App\Facades; class Session { public static $instance = null; /** * get View instance * * @return $this */ public static function getInstance() { if (self::$instance == null) { self::$instance = new self(); } return self::$instan...
true
f7673bfed679e12412a81145274a4111f6504ea0
PHP
kshirish/PostBox-2.0
/PHP/login.php
UTF-8
822
2.59375
3
[]
no_license
<?php $servername = "localhost"; $username = "root"; $password = "google60"; $db_name = "postbox"; $table_name = "login"; $conn = mysqli_connect($servername, $username, $password, $db_name); if (!$conn) { echo 0; // error at connection } else { $query = 'SELECT password, blockflag, level...
true
aebb6bb6cd06b1cea29e27f525e7a6f0c4936a54
PHP
seacjs/yii2-tinkoff-pay
/response/HttpResponse.php
UTF-8
457
2.859375
3
[]
no_license
<?php namespace chumakovanton\tinkoffPay\response; class HttpResponse { private $statusCode; private $payload; public function __construct(int $statusCode, array $payload = null) { $this->statusCode = $statusCode; $this->payload = $payload; } public function getStatusCode(): ...
true
f9c34c7f838efa0be9057d87d6e0e8891643e3ca
PHP
spiral/data-grid
/src/Specification/Sorter/AbstractSorter.php
UTF-8
591
2.796875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php declare(strict_types=1); namespace Spiral\DataGrid\Specification\Sorter; use Spiral\DataGrid\Specification\SorterInterface; use Spiral\DataGrid\SpecificationInterface; abstract class AbstractSorter implements SorterInterface { private array $expressions; public function __construct(string ...$express...
true
ea3269ade54cd8aa17ef4c20bbdb090d4f1c842f
PHP
Janest-evogue/DWWM-182_Symfony-intro
/src/Controller/HttpController.php
UTF-8
7,183
2.875
3
[]
no_license
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\JsonResponse; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\Session\SessionInterface; use Symfony\C...
true
46525eace340db83cfad5ce81b6f1318f15ecd56
PHP
AnneLaureBnd/restaurant
/models/ReservationModel.class.php
UTF-8
1,807
2.8125
3
[ "MIT" ]
permissive
<?php class ReservationModel extends ModelManager { //add reservation in database public function addReservation($name, $cutlery, $date, $time, $phone, $email) { $req = 'INSERT INTO reservations (reservation_name, reservation_cutlery, reservation_date, reservation_time, reservation_phone, reservati...
true
8d005d15b2955e38c25423263273a870a00ba6b7
PHP
yliamala/pizzeria1
/app/order/discount/VipStrategy.php
UTF-8
204
2.734375
3
[]
no_license
<?php namespace App\Order\Discount; class VipStrategy implements DiscountStrategyInterface { public function getDiscount(): int { return DiscountStrategyInterface::MAX_DISCOUNT; } }
true
25ffc60f28b07791ac01ade0d8db7e93b05efcb1
PHP
wearesho-team/google-autocomplete
/src/Exceptions/QueryException.php
UTF-8
961
2.96875
3
[ "MIT" ]
permissive
<?php namespace Wearesho\GoogleAutocomplete\Exceptions; use Wearesho\GoogleAutocomplete\Enums\SearchStatus; use Wearesho\GoogleAutocomplete\Queries\Interfaces\SearchQueryInterface; /** * Class RequestException * @package Wearesho\GoogleAutocomplete\Exceptions */ class QueryException extends \Exception { /** @...
true
21f41931a0eec987b223b10301ab96c945ddbafe
PHP
gellios/rabbit
/src/Rabbit/Document/Message.php
UTF-8
1,349
2.78125
3
[]
no_license
<?php namespace Rabbit\Document; use Doctrine\ODM\MongoDB\Mapping\Annotations as ODM; /** @ODM\Document */ class Message { /** * @var int * * @ODM\Id */ private $id = 0; /** * @var string * * @ODM\String */ private $text; /** * @var User * ...
true
e52ae2cd8673657e46998033fd4d917d9132bf56
PHP
reallovelei/SwooleDoc
/example/websocket/Chat.php
UTF-8
5,795
2.53125
3
[]
no_license
<?php // 运行说明如下: ini_set("display_errors", "On"); error_reporting(E_ALL); //restore_exception_handler(); //restore_error_handler(); class Chat { public $ws = null; public $type = null; // 消息类型 public static $count = 0; // 泳道隔离 避免某一类型处理较慢 影响到其他类型的处理 public $type_task_cnt = array( 101 => 3...
true
1ffc7bce1d14be7701212b889ff13f16a9f06ba5
PHP
Victopia/php-node
/.private/scripts/framework/renderers/StaticFileRenderer.php
UTF-8
1,321
2.765625
3
[ "WTFPL" ]
permissive
<?php /*! StaticFileRenderer.php | Sends the file as binary content. */ namespace framework\renderers; use core\Utility as util; use framework\System; class StaticFileRenderer extends CacheableRenderer { public function render($path) { $res = $this->response(); $mime = util::getInfo($path); if ( pre...
true
16653f81842969f86be295033896f4bf07720c5e
PHP
bazhonglvyou/bazhonglvyou
/app/api/user/logic/Role.php
UTF-8
4,949
2.546875
3
[]
no_license
<?php namespace app\api\user\logic; use think\Db; /** * 后台-角色管理类 * Class Role * @package app\api\user\logic */ class Role { /** * 角色列表 * @author:yanghuna * @datetime:2017/3/13 15:19 * @return false|\PDOStatement|string|\think\Collection */ public function lists() { $p...
true
83a8b8213d906de9dd1186e898e5ed62e3bcacb8
PHP
netcore/module-search
/Repositories/SearchRepository.php
UTF-8
9,903
2.625
3
[ "MIT" ]
permissive
<?php namespace Modules\Search\Repositories; use Carbon\Carbon; use DB; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\SoftDeletes; use Illuminate\Support\Collection; use Modules\Search\Models\SearchLog; class SearchRepository { /** * Records count per page. * * @var in...
true
4df210cc0d2a55ea75a2257332873d63c154ce25
PHP
Aplear/verstak1
/app/common/components/ImgResizer.php
UTF-8
460
2.546875
3
[ "BSD-3-Clause" ]
permissive
<?php namespace common\components; use Yii; use yii\imagine\Image; use Imagine\Image\Box; class ImgResizer extends \yii\base\Component { public function resize($path = '', $width = 100, $height = 100) { Image::thumbnail($path, $width, $height) ->resize(new Box(500,300)) ...
true
b71085c046cefc27747f17337e95b6b5ed238375
PHP
kmj22/is218-website
/signUpController.class.php
UTF-8
3,699
2.6875
3
[]
no_license
<?php class signUpController extends controller{ public function __construct(){ $this->html = app::menu(); } public function get(){ if (isset($_REQUEST['message'])){ if ($_REQUEST['message'] == 1){ echo 'Error: Passwords did not match'; } else if ($_REQUEST['message'] == ...
true
c215dc5cef789274d81b25ecac40444f15b776c6
PHP
Bamz-west/Zuri-php-task
/includes/func.php
UTF-8
2,930
3.0625
3
[]
no_license
<?php function displayerrors($e,$f){ if(array_key_exists($f,$e)){ echo '<p>'.$e[$f].'</p>'; } } function registeruser($dbconn){ //insert data into the database $stmt = $dbconn->prepare("INSERT into Customer(first_name,last_name,email,username,password) VALUES(:fn,:ln,:e,:un,:p)"); // encry...
true
46952f254787aae208521bfa199a8cf828a12c83
PHP
ellakcy/member_app
/src/AppBundle/Entity/ContactEmail.php
UTF-8
1,682
2.671875
3
[]
no_license
<?php namespace AppBundle\Entity; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Validator\Constraints as Assert; use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity; /** * ContactEmail * * @ORM\Table(name="contact_email") * @ORM\Entity(repositoryClass="AppBundle\Repository\ContactEmailReposit...
true
6246ed4f9f1e30a7140f1f1344d8348f556d771d
PHP
krischai123/php
/Intern2020/Movies/test/hot-head/Test2.php
UTF-8
4,420
2.625
3
[]
no_license
<html> <head> <title>เมื่อไหร่จะเสร็จ</title> </head> <body> <?php ini_set('display_errors', 1); error_reporting(~0); $servername = "localhost"; //ชื่อขึ้นต้นหน้าเว็บ $username = "root"; // root คือค่าต้นของการเรียกชื่อ ตัว sql $password = ""; //ถ้าไม่มีก็ว่างไว้ $mo...
true
815cd428b936cdbdd58f83318ff04a02021f6e23
PHP
rajeshraman63/phpFiles
/whileLoop.php
UTF-8
180
3.421875
3
[]
no_license
<!DOCTYPE html> <html> <head> <title>While Loop</title> </head> <body> <?php $x = 0; while ($x <= 5) { echo "$x value <br> "; } ?> </body> </html>
true
11e470a2c99a585cca92cea62c8aedc2c15a2034
PHP
lion5893/lion5893.github.io
/php/form_login/result.php
UTF-8
3,290
2.703125
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Result</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"> </head> <body> <div class="container"> ...
true
43d1168827c85cc14fb0fa0628f2e6b22639ecc3
PHP
hasna-aissa/Blog-Informatique
/elem.php
UTF-8
715
2.796875
3
[]
no_license
<?php $bdd = new PDO("mysql:host=127.0.0.1;dbname=espace_commentaire;charset=utf8","root",""); /* if($_POST){ $name=$_POST['pseudo']; $commentaire=$_POST['commentaire']; $handle= fopen("commentaires (1).php", "a"); fwrite($handle, "<strong>". $name . "</strong>:<br/>" . $commentaire . "<br/>"); fclose($handle);...
true
1767c97cf54bba777c091b0ca1cfa982812d1e5d
PHP
Cavinlz/goyhuiquan
/libraries/language.php
UTF-8
2,185
2.765625
3
[]
no_license
<?php if (defined("CZCool") or die( "Access Denied!" )); /** * @author Cavinlz * */ class CLanguage { /** * The default language, used when a language file in the requested language does not exist. * * @var string * @since 1.0 */ protected static $default = 'zh-cn'; /** * It requires to add...
true
09878fb3d4564ba5773f1168d5db97a07f8996ab
PHP
lzakrzewski/tranche-allocation-algorithm
/src/Percentage.php
UTF-8
770
3.140625
3
[]
no_license
<?php declare(strict_types=1); namespace TrancheAllocationAlgorithm; class Percentage { /** @var string */ private $value; public function isGreaterThan(self $percentage): bool { return $this->value() > $percentage->value(); } public static function _75(): self { return ...
true
70e88666a598d19c1ff8858e12d8a6fea5a7f99f
PHP
y-saiki1/HairCA
/packages/Domain/Models/JWT/JsonWebToken.php
UTF-8
726
3.234375
3
[]
no_license
<?php namespace Packages\Domain\Models\JWT; class JsonWebToken { /** * @var int JWT有効期限 一週間 */ const TIME_TO_LIVE = 64800; /** * @var string JWT */ private $jwt; /** * @param string JWT */ public function __construct(string $jwt) { $this->jwt = $jwt;...
true
007b7af766dbb39072c91e0879016c15bc854238
PHP
Kappa-org/Application
/src/UI/FormControl.php
UTF-8
1,169
2.6875
3
[ "BSD-3-Clause" ]
permissive
<?php /** * This file is part of the Kappa\Application package. * * (c) Ondřej Záruba <zarubaondra@gmail.com> * * For the full copyright and license information, please view the license.md * file that was distributed with this source code. */ namespace Kappa\Application\UI; use Nette\Application\UI\Control; us...
true
9fff21bee7b635dd903dbe77f83541f3de11504f
PHP
tongdung13/tongduongcheochinh
/index.php
UTF-8
636
3.3125
3
[]
no_license
<?php $mang = array( array(2,3,4,5,6), array(9,3,2,1,6), array(0,2,1,6,7), array(1,5,7,9,5), array(6,2,4,8,6) ); $sum = 0; for ($i = 0; $i < count($mang); $i++){ for ($j = 0; $j <count($mang[$i]); $j++){ if ($i == $j) { $sum += $mang[$i][$j]; } } } echo "tong d...
true
f097f013e39b590348b86b67249b7fc1ac3f5586
PHP
ameliaikeda/backblaze
/src/Adapter.php
UTF-8
1,033
2.78125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace Amelia\Backblaze; use BadMethodCallException; use ChrisWhite\B2\Client; use Mhetreramesh\Flysystem\BackblazeAdapter as BaseAdapter; class Adapter extends BaseAdapter { /** * The custom domain in use for backblaze, if set. * * @var string */ protected $host; /** *...
true
075caf626ab23c4f43d8ceed0757ed4100f65ab2
PHP
ARCANEDEV/php-html
/src/Elements/Concerns/HasAutofocusAttribute.php
UTF-8
728
2.65625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Arcanedev\Html\Elements\Concerns; /** * Trait HasAutofocusAttribute * * @author ARCANEDEV <arcanedev.maroc@gmail.com> * * @mixin \Arcanedev\Html\Elements\Concerns\HasAttributes */ trait HasAutofocusAttribute { /* -----------------------------------------------...
true
9d8cc191ea92ace7a5c98a94b56f764f3dadf2dc
PHP
NAONAOx1126/Cherry
/libs/Connection.php
UTF-8
3,770
2.828125
3
[]
no_license
<?php /** * This file is part of Twitter auto post application. * * @author Naohisa Minagawa <info@clay-system.jp> * @copyright Copyright (c) 2010, Naohisa Minagawa * @license http://www.apache.org/licenses/LICENSE-2.0.html Apache License, Version 2.0 * @since PHP 5.3 * @version 4.0.0 */ /** * MySQLのコネク...
true
e71fc29755914539c6d4807ee1f75d95257f8533
PHP
octavianparalescu/daily-tasks
/src/Task/Action/PutTaskAction.php
UTF-8
4,008
2.546875
3
[]
no_license
<?php declare(strict_types=1); namespace DailyTasks\Task\Action; use DailyTasks\Framework\ADR\Action\HTTPResourceAction; use DailyTasks\Framework\ADR\Contract\ActionHandlerInterface; use DailyTasks\Framework\ADR\Contract\ActionInterface; use DailyTasks\Framework\ADR\Security\HTTPCorsHandler; use DailyTasks\Framework...
true
691739dece7898cf93f6ca8a2722c2ed1abb9b91
PHP
Maxeltr/blog-note3
/module/MxmFile/src/Model/FileInterface.php
UTF-8
4,153
2.65625
3
[]
no_license
<?php /* * The MIT License * * Copyright 2018 Maxim Eltratov <Maxim.Eltratov@yandex.ru>. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limit...
true
27aa06aba3659e8c5126cdfa1268bef4b561e61b
PHP
Shemaees/almasher-task
/app/Http/Middleware/JWTMiddleware.php
UTF-8
1,816
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Middleware; use Closure; use Exception; use Tymon\JWTAuth\Exceptions\TokenExpiredException; use Tymon\JWTAuth\Exceptions\TokenInvalidException; use Tymon\JWTAuth\Exceptions\TokenBlacklistedException; use Symfony\Component\HttpKernel\Exception\UnauthorizedHttpExcept...
true
70d5d0370aa54559d9be11c34e8caf330a5689eb
PHP
fetchapp/fetchapp-php-2.0
/src/FetchApp/API/EnumEmulator.php
UTF-8
1,314
2.828125
3
[]
no_license
<?php /** * Created by JetBrains PhpStorm. * Updated by SublimeText 2. * Creator: Brendon Dugan <wishingforayer@gmail.com> * Last Updated: Patrick Conant <conantp@gmail.com> * User: Patrick Conant <conantp@gmail.com> * Date: 8/7/13 * Time: 8:00 PM */ namespace FetchApp\API; class EnumEmulator { /** *...
true
066122bfbf267bb9d62adbafe2309bb93b47466e
PHP
ngmautri/nhungttk
/module/Application/src/Application/Model/WhRepository.php
UTF-8
961
2.65625
3
[ "Apache-2.0" ]
permissive
<?php namespace Application\Model; use Doctrine\ORM\EntityRepository; /** * * @author nmt * */ class NmtInventoryCategoryItemRepository extends EntityRepository { /** * * @return array */ public function getAllWarehouse() { $sql = " SELECT *...
true
a29c5c54a47e0f7fa6c334ed53e6b0c1ab720f97
PHP
Mediagone/common-types-doctrine
/src/Crypto/HashType.php
UTF-8
2,170
2.625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php declare(strict_types=1); namespace Mediagone\Doctrine\Common\Types\Crypto; use Doctrine\DBAL\Platforms\AbstractPlatform; use Doctrine\DBAL\Types\Type; use Mediagone\Common\Types\Crypto\Hash; final class HashType extends Type { //=============================================================================...
true
90caba53eda1692eb3c49e20c23c7bd5dde4794e
PHP
yunfengvico/laravels-demo
/app/Table/InterfaceTable.php
UTF-8
105
2.625
3
[ "MIT" ]
permissive
<?php namespace App\Table; interface InterfaceTable { public function __construct($tableName); }
true
22ef4702d72906e32dac87f01c1a32a05a73d0b9
PHP
Yas2410/sf_library
/src/Controller/Admin/AuthorController.php
UTF-8
5,158
2.578125
3
[]
no_license
<?php namespace App\Controller\Admin; use App\Entity\Author; use App\Form\AuthorType; use App\Repository\AuthorRepository; use Doctrine\ORM\EntityManagerInterface; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Respo...
true
6abfeeff5c18660b329e84636239bb2778458ff3
PHP
eddmash/powerorm
/src/Model/Field/AutoField.php
UTF-8
2,957
2.765625
3
[ "MIT" ]
permissive
<?php /* * This file is part of the powerorm package. * * (c) Eddilbert Macharia <edd.cowan@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Eddmash\PowerOrm\Model\Field; use Doctrine\DBAL\Types\Type; use Eddmash\Pow...
true
9b071573b45998a29252349582c5f3171c91782b
PHP
Aritra995/Database-Applications-in-Web
/Real_Crud/delete.php
UTF-8
2,095
2.765625
3
[]
no_license
<?php session_start(); require_once "pdo.php"; if( !isset($_SESSION['name']) ){ die('ACCESS DENIED'); } if( isset($_POST['delete']) && isset($_POST['autos_id'])){ $sql = "DELETE FROM auto WHERE autos_id = :zip"; $stmt = $pdo->prepare($sql); $stmt->execute(array( ...
true
d3a678b60da71a88ea91a3ca71c0ae1940bfebfa
PHP
johndem/CAPS
/back-end/add-event.php
UTF-8
2,464
2.5625
3
[]
no_license
<?php session_start(); include 'create-link.php'; $title = urldecode($_POST['title']); $title = mysqli_real_escape_string($link,$title); $title = htmlspecialchars($title, ENT_QUOTES); $category = urldecode($_POST['category']); $category = mysqli_real_escape_string($link,$category); $category = htmlspecialchars($cat...
true
df5d980d04137f589ce6d50aefa0d363ff8f4fa4
PHP
CYisbaba/Technology-web
/src/upload.php
UTF-8
3,873
2.546875
3
[]
no_license
<?php if(isset($_POST["name"])){ $name = $_POST["name"]; $price = $_POST["price"]; $number= $_POST["number"]; $description = $_POST["description"]; $filename ="../image/".$_FILES["img"]["name"]; $filename =iconv("UTF-8","gb2312",$filename); //judge file upload if($_FILES["img"]["error"])...
true
aade5768290ff0249634e7a82db801ccb01fc384
PHP
lkirby5679/Trader-Wars
/class/artifacts/spyship.inc
WINDOWS-1252
19,333
2.71875
3
[]
no_license
<?php class spyship { var $class = "spyship"; var $pieces = 7; var $min_cloak = 150; // Cloak value of each artifact piece var $max_cloak = 250; // Maximum Cloak value of each artifact piece var $scoremax = 0; // Any player with a score over this value will not be able to see the artifact. Set to 0 for everyone to...
true
3e33deeeb5162f2839a126ca210645d898608b07
PHP
alnever/blog
/app/Http/Controllers/CategoryController.php
UTF-8
3,925
2.5625
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Category; use Illuminate\Http\Request; use Session; class CategoryController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $categories = Category::p...
true