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
19064573e43145aa34a046b82773ae20d0093d62
PHP
michalczyzynski/musement
/lib/sdk/musement_catalog/src/Model/Cities/City.php
UTF-8
816
2.984375
3
[]
no_license
<?php declare(strict_types=1); namespace Musement\SDK\MusementCatalog\Model\Cities; use Musement\SDK\MusementCatalog\Assertion; use Musement\SDK\MusementCatalog\Model\Locale; final class City { private $locale; private $id; private $name; private $url; public function __construct(Locale $locale...
true
1c3b4d0141f58328dbf67ef2e60d5bc34ae48eb0
PHP
wwb382899012/money_management
/server/role/src/service/RoleAdd.php
UTF-8
775
2.578125
3
[]
no_license
<?php /** * 角色信息获取 */ use money\service\BaseService; use money\model\SysRole; class RoleAdd extends BaseService{ protected $rule = [ 'sessionToken' => 'require', 'name' => 'require', 'status' => 'require|in:1,2', ]; public function exec(){ $data['name'] = $this->m_reques...
true
81a8d6f6e5b2419390c672ff5a34c47195b1117f
PHP
formapro/testo
/examples/Testo/Examples/Hello.php
UTF-8
117
2.625
3
[ "MIT" ]
permissive
<?php namespace Testo\Examples; class Hello { public function world() { echo 'hello world!'; } }
true
17c1c4e474a4bc1dc777a3ccdedf21013cebe577
PHP
gregoriopellegrino/searchwp-epub
/vendor/vaites/php-apache-tika/src/Clients/CLIClient.php
UTF-8
7,009
2.96875
3
[ "MIT" ]
permissive
<?php namespace Vaites\ApacheTika\Clients; use Exception; use Vaites\ApacheTika\Client; /** * Apache Tika command line interface client * * @author David Martínez <contacto@davidmartinez.net> * @link https://tika.apache.org/1.24/gettingstarted.html#Using_Tika_as_a_command_line_utility */ class CLIClient ex...
true
ae32fe6964194bed21c22fd33b31ecb7b56158ff
PHP
kapilkataria-srijan/training
/day2.php
UTF-8
751
3.828125
4
[]
no_license
<?php class house { var $windows; var $doors; // var $rooms; // public function set_doors($num_door) { // $this->doors = $num_door; // } public function __set($property, $value) { if ( property_exists($this, $property)){ $this->$property = $value; } } public function __get($propert...
true
1e58d16288bd21d51047871fe5f4f7c219ed9691
PHP
DEV-FORKS/qamini
/application/classes/datetimeqamini.php
UTF-8
3,018
3.125
3
[ "MIT" ]
permissive
<?php defined('SYSPATH') or die('No direct script access.'); /** * Qamini DateTime Class * * @package qamini * @uses Extends Kohana_Date * @since 0.3.0 * @author Serdar Yildirim */ class DateTimeQamini extends Kohana_Date { private $_time; private $_next_time; private $_diff; private $_tem...
true
2c060adfdba06c0c69e6dbbd23d1cbbe1efaae46
PHP
JeffreyMolleno/PHP-miniproj-1
/Controllers/Autoloader/AutoLoader.inc.php
UTF-8
244
2.625
3
[]
no_license
<? spl_autoload_register('myAutoLoader'); function myAutoLoader($className){ $path = "Views"; $extension = ".components.php"; $fullPath = $path . $className . $extension; include_once($fullPath); }
true
8a817fc6d7cdbade603be5cf26dc3ce8f20bf7e3
PHP
shijianzsh/fenggubao
/Appcenter/Common/Model/Sys/PerformanceModel.class.php
UTF-8
1,276
2.640625
3
[]
no_license
<?php namespace Common\Model\Sys; use Common\Model\BaseModel; use V4\Model\Tag; /** * 业绩模型 * */ class PerformanceModel extends BaseModel { /** * 获取每月业绩信息 * * @param string $month 年月(格式:201808) * @param string $field 字段 * @param mixed $where 筛选条件 * @param mixed $page 页数(默认flash不分页) * @param int $li...
true
d6fbc8f732533720252557983786e693446b4d88
PHP
StarNeit/SolarSpeedRack-Yii2
/models/Accessory.php
UTF-8
4,633
2.546875
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use Yii; /** * This is the model class for table "accessory". * * @property integer $id * @property string $slug * @property string $description * @property integer $order * @property integer $status * * @property Product $product */ class Accessory extends \yii\db\ActiveRecord ...
true
2c03aa06525ed714cb0453e05de4d4939976574f
PHP
elastic/swagger-codegen
/samples/client/petstore/php/SwaggerClient-php/tests/UserApiTest.php
UTF-8
990
2.734375
3
[ "Apache-2.0" ]
permissive
<?php namespace Swagger\Client; class UserApiTest extends \PHPUnit_Framework_TestCase { // add a new pet (id 10005) to ensure the pet object is available for all the tests public static function setUpBeforeClass() { // for error reporting (need to run with php5.3 to get no warning) //ini_...
true
00403497bccd2f1bdc9d89fedcdf716a1cd60fe5
PHP
t3n/graphql-tools
/src/Transforms/ConvertEnumValues.php
UTF-8
1,900
2.65625
3
[]
no_license
<?php declare(strict_types=1); namespace GraphQLTools\Transforms; use GraphQL\Type\Definition\EnumType; use GraphQL\Type\Schema; use function count; class ConvertEnumValues implements Transform { /** @var mixed[]|null */ private $enumValueMap; /** * @param mixed[]|null $enumValueMap */ pu...
true
dd2af8470b8172c4df813f33d2bfcbed2f3515b1
PHP
lucaiustin96/CriC-Proiect_La_TW
/controllers/localizareController.php
UTF-8
868
2.625
3
[]
no_license
<?php require 'libs/Controller.php'; class localizareController extends Controller { private $model = null; function __construct() { parent::__construct(); require 'models/LocalizareEvenimentModel.php'; $this->model = new LocalizareEvenimentModel(); } public function index() { if(isset($_S...
true
03caeb4bb46dae47c4a98d4b14173d83c4b12aa0
PHP
Ashwin1421/car-rental-app
/assets/php/login.php
UTF-8
941
2.546875
3
[ "MIT" ]
permissive
<?php session_start(); if(isset($_POST["login"])){ $username = trim($_POST['username']); $username = strip_tags($username); $username = htmlspecialchars($username); $password = trim($_POST['password']); $password = strip_tags($password); $password = htmlspecialchars($password); $password_hash = hash(...
true
b937da17e7be5ea6f112be8408b2f1d909adefa9
PHP
trak2018z/findyourjob-tr1
/app/api/dao/UserAccessDAO.php
UTF-8
7,353
2.8125
3
[]
no_license
<?php if(!isset($_SESSION)) { session_start(); } /** * Created by PhpStorm. * User: Przemek * Date: 12.11.2017 * Time: 19:48 */ class UserAccessDAO { public $db; public $jsonUtils; public $userID; function __construct() { try { require('../app/api/JSONUtils.php'); ...
true
88c84bf6e0dd6183f2b4c6da2a94bf825198d5d2
PHP
allcho/yii2-rbac-usermanager
/backend/models/RoleForm.php
UTF-8
1,699
2.71875
3
[]
no_license
<?php namespace allcho\rbac\backend\models; use Yii; use yii\base\Model; /** * Password reset form */ class RoleForm extends Model { public $role; public $type; public $desc; public $parent; public $child; public function rules() { return [ [['role',...
true
b10c23210d0bb0dddc9c67a80e799bcb81712519
PHP
tomson2001/refmodmine
/classes/process-model-similarity/SimilarityScoreBasedOnCommonActivityNames.php
UTF-8
928
3.125
3
[]
no_license
<?php class SimilarityScoreBasedOnCommonActivityNames implements ISimilarityMeasure { public static $literatureSource = "Akkiraju et al. 2010: Discovering Business Process Similarities: An Empirical Study with SAP Best Practice Business Processes"; protected $mapping; protected $similarityValue; publi...
true
8157dd81f45a015640407fca6d523c0f7de6d25c
PHP
fonghub/learnphp
/Application/Task/Bll/Process/Process2.class.php
UTF-8
2,685
2.953125
3
[]
no_license
<?php namespace Task\Bll\Process; /* * https://github.com/elarity/advanced-php/blob/master/2.%20php%E5%A4%9A%E8%BF%9B%E7%A8%8B%E5%88%9D%E6%8E%A2---%E5%BC%80%E7%AF%87.md */ class Process2 { /* * 在程序从pcntl_fork()后父进程和子进程将各自继续往下执行代码 * 在调用完pcntl_fork()后,该函数会返回两个值。 * 在父进程中返回子进程的进程ID,在子...
true
42eb9229e91d26eba6b4e2f1b7743ae620c705f5
PHP
racko92/Php_Vezbe2
/login.php
UTF-8
1,985
2.96875
3
[]
no_license
<?php session_start(); const LOGIN_TIMES = 2; if (!isset($_SESSION['invalid'])) { $_SESSION['invalid'] = LOGIN_TIMES; } if($_SESSION['invalid'] <= 0){ $_SESSION['timeout'] = date('H:i:s', time() + 30); } if($_SESSION['timeout'] > date('H:i:s')){ header('Location:timeout.php'); } $filename = "us...
true
8a0840e2d777126f23aa390154a1c50375fecc95
PHP
xoopscube/xcl
/html/kernel/object.php
UTF-8
20,282
2.578125
3
[ "BSD-2-Clause", "GPL-1.0-or-later", "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-free-unknown", "GPL-2.0-only" ]
permissive
<?php /** * Xoops object datatype * @package kernel * @version 2.3.1 * @author Nuno Luciano (aka Gigamaster), 2020 XCL PHP7 * @author Minahito, 2007 * @author Kazumi Ono (aka onokazu) 2000 XOOPS.org * @copyright Copyright 2000-2021 XOOPSCube Project * @license Legacy : https://github.com/x...
true
1989e3376d9515ff96a771dd422e2f74f61d4d8e
PHP
vichgirl/repetitor
/require/load_handbook.php
UTF-8
535
2.546875
3
[]
no_license
<?php require_once 'connection.php'; require_once 'Object/handbooksObj.php'; if(isset($_POST['id'])) { $id=$_POST['id']; if ($id!=0) { $handbooks = Handbooks::select_by_id($id); if (!$handbooks) die($connection->error); $row_handbook = $handbooks->fetch_array(MYSQLI_ASSOC); $output =...
true
c60fe294983f3ccaa7c3811601fee2668b1240ec
PHP
wmizzi/nethealth_server
/public/ul_speeds.php
UTF-8
2,647
2.765625
3
[]
no_license
<?php // Start the session session_start(); ?> <?php require_once("../includes/functions.php") ?> <?php include("../includes/fusioncharts.php") ?> <?php require_once("../includes/layouts/header.php") ?> <?php $user_id = $_SESSION['userid']; $connection = connect_to_database(""); $db_name = "user" ....
true
e7b30566eecde282a8e9b36cc826e11acf2a8b32
PHP
lorenzolrom/ISD-rCMS
/src/user/cpanel/settings.php
UTF-8
1,265
2.96875
3
[]
no_license
<?php // Process changes if the form was saved if(!empty($_POST)) { $update_setting = $conn->prepare("UPDATE Setting SET value = ? WHERE code = ?"); // Loop through each value in the form, and update it in the table foreach(array_keys($_POST) as $save_setting) { $update_setting->bindValue(1, $_POST[$sa...
true
8951e41e3556d52751fcc4db89382918a2752d3e
PHP
muneebgawri/evolutionscript5.1-persian
/includes/classes/class_mail.php
UTF-8
2,288
2.671875
3
[]
no_license
<?php /** * * @ EvolutionScript FULL DECODED & NULLED * * @ Version : 5.1 * @ Author : MTIMER * @ Release on : 2014-09-01 * @ Website : http://www.mtimer.net * **/ class Mail { function mail() { global $db; global $cache; $mail_settings = $cache->get("mail_settings"); if ($mail_settings == null...
true
94b47265329e86d90fb4ad69adcd0080537a988d
PHP
sscerbatiuc/vStore
/src/Mercedes/VStoreBundle/Model/Discount/OrdinaryDiscount.php
UTF-8
2,049
3.15625
3
[]
no_license
<?php namespace Mercedes\VStoreBundle\Model\Discount; use Mercedes\VStoreBundle\Model\Helper\Time; /** * LETS US CREATE DISCOUNT OPTIONS WITH: * > percent discount value * > start & end date */ class OrdinaryDiscount extends Discounts { private $startDate; private $endDate; public function __constr...
true
c05caca3a37c1702384ec12b171f53a4c29451ec
PHP
christopher1986/Curly
/src/Ast/Node/TemplateTag.php
UTF-8
3,559
3.046875
3
[]
no_license
<?php namespace Curly\Ast\Node; use Curly\ContextInterface; use Curly\Ast\Node; use Curly\Io\Stream\OutputStreamInterface; use Curly\Parser\Exception\NoSuchMethodException; /** * The TemplateTag node is responsible for rendering a template tag. * * @author Chris Harris * @version 1.0.0 * @since 1.0.0 */ class ...
true
b2d45fe44314cb48c9770e9aa856a7c10603a535
PHP
zacka32/Apotik
/config/countSelisihHari.php
UTF-8
2,040
3.3125
3
[]
no_license
<?php function selisihHari($tglAwal, $tglAkhir) { include "koneksi.php"; // memecah string tanggal awal untuk mendapatkan // tanggal, bulan, tahun $pecah1 = explode("-", $tglAwal); $date1 = $pecah1[2]; $month1 = $pecah1[1]; $year1 = $pecah1[0]; // memecah string tanggal akhir un...
true
2fa63baa6239d7b7793c0a50309839e48849c251
PHP
AntonShevchuk/Bluz
/application/modules/twitter/controllers/callback.php
UTF-8
4,302
2.546875
3
[ "MIT" ]
permissive
<?php /** * Twitter Auth controller * * @author Anton Shevchuk * @created 23.10.12 18:10 */ namespace Application; use Bluz; use Application\Users; return /** * @return \closure */ function() { /** * @var Bluz\Application $this */ // process "denied" response if ($this->getRequest()->ge...
true
9b76aad6fe8a4b5270709801141e2433fd3b4a56
PHP
eugedelatorre/app_victimas
/app/Http/Controllers/DocumentoController.php
UTF-8
1,857
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Documento; use Validator; class DocumentoController extends Controller { public function agregar(Request $form){ /*$reglas = [ "nombre_profesional_interviniente"=>"required|string", "desde_profesional_interviniente"=>"required", ...
true
81e653d2b2b229c746dae19155365eba460ab724
PHP
sampan26/CSE-330
/spring2019-module2-group-458521-466868/upload.php
UTF-8
1,389
2.703125
3
[]
no_license
<?php if(isset($_POST['username'])){ session_start(); include 'file_script.php'; if(!isset($_FILES['file_upload']) || $_FILES['file_upload']['error'] == UPLOAD_ERR_NO_FILE) { echo htmlentities("Error no file selected"); } else { print_r("%s",htmlentiti...
true
93012a9ea7df11ad2debb487a657ce776a87bead
PHP
dungptit1410/quanlynhahang
/controllers/FontendController.php
UTF-8
3,312
2.5625
3
[]
no_license
<?php require_once('controllers/BaseController.php'); require_once ('models/Category.php'); require_once ('models/Product.php'); class FontendController extends BaseController { public function __construct() { $this->folder = 'fontend'; } public function index() { $this->render1('i...
true
d1222e0dc5e5d470d65768ebabaaa6f72651d96d
PHP
mickeejsing/Assignment3-1DV610
/view/LoginView.php
UTF-8
5,179
3
3
[]
no_license
<?php namespace view; require_once('model/User.php'); class LoginView { private static $login = 'LoginView::Login'; private static $logout = 'LoginView::Logout'; private static $name = 'LoginView::UserName'; private static $password = 'LoginView::Password'; private static $keep = 'LoginView::KeepMeLoggedIn'; ...
true
02edc35be3f2c4c6d85ae7228fbe7e1488fb9f3f
PHP
SandileMP/testPHP
/public_html/logins/application/helpers/custom_helper.php
UTF-8
2,611
2.78125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php function any_in_array($needle, $haystack){ $needle = is_array($needle) ? $needle : array($needle); foreach ($needle as $item){ if (in_array($item, $haystack)){ return TRUE; } } return FALSE; } function interviewStatus($status) { switch ($status) { ...
true
379a99dce2ef35ce190329716649090bd3d837d5
PHP
deInternetJongens/laravel-api-factories
/src/Commands/ApiFactoryMakeCommand.php
UTF-8
1,963
2.59375
3
[ "MIT" ]
permissive
<?php namespace DIJ\ApiFactories\Commands; use Illuminate\Console\GeneratorCommand; use Illuminate\Support\Str; class ApiFactoryMakeCommand extends GeneratorCommand { /** * The console command name. * * @var string */ protected $name = 'make:api-factory'; /** * The console comma...
true
f14ccd7bfc02b5776cd04cd6da236be6c32af06c
PHP
phug-php/parser
/Parser/TokenHandler/TagTokenHandler.php
UTF-8
767
2.65625
3
[ "MIT" ]
permissive
<?php namespace Phug\Parser\TokenHandler; use Phug\Lexer\Token\TagToken; use Phug\Parser\Node\ElementNode; use Phug\Parser\State; class TagTokenHandler extends AbstractTokenHandler { const TOKEN_TYPE = TagToken::class; public function handleTagToken(TagToken $token, State $state) { $this->create...
true
6811aa433e7a288eb52e622fc457757378fc1128
PHP
pandaengine/qingmvc
/src/validator/filter/Quotes.php
UTF-8
874
2.90625
3
[ "Apache-2.0" ]
permissive
<?php namespace qing\validator\filter; /** * 引号转义 * * @author xiaowang <736523132@qq.com> * @copyright Copyright (c) 2013 http://qingmvc.com * @license http://www.apache.org/licenses/LICENSE-2.0 Apache-2.0 */ class Quotes{ /** * 转义单双引号 * * @param string $value * @return string */ public static funct...
true
bbe4729dfd6dd745745ee0c2063e8d67a9e9e4b6
PHP
ebertbueno/projeto_salao
/database/migrations/2017_01_11_141259_create_commands_table.php
UTF-8
1,329
2.640625
3
[]
no_license
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateCommandsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('commands', fun...
true
8f4ddda385ea997a2f53f67af307e9515350352d
PHP
AngeloCioffi/mumshoppe
/app/api/product.php
UTF-8
1,039
2.546875
3
[ "MIT" ]
permissive
<?php $app->get('/api/product', function() use ($app) { $products = ProductQuery::create()->find(); if (!$products) return; echo json_encode($products->toArray()); }); $app->get('/api/product/:id', function($id) { $product = ProductQuery::create()->findPK($id); if (!$product) return; echo $product...
true
ceb4ec28437b325fad269393211ec572ff39862b
PHP
mxp100/php-headhunter-api
/src/EndPoints/Me.php
UTF-8
794
2.65625
3
[ "MIT" ]
permissive
<?php namespace seregazhuk\HeadHunterApi\EndPoints; class Me extends Endpoint { const RESOURCE = 'me'; /** * @return array */ public function info() { return $this->getResource(); } /** * @param bool $val */ public function setIsInSearch($val = true) { ...
true
fecf44b579d78731a89bd3cafb3fa1d727aeb9e5
PHP
svichas/clusterphp-example
/Cluster/Kernel/App/Cluster.php
UTF-8
2,078
2.625
3
[ "MIT" ]
permissive
<?php namespace Cluster\Kernel\App; use Cluster\Core\Model\Model; use Cluster\Core\View\View; use Cluster\Core\ErrorHandler\ErrorHandler; use Cluster\Kernel\DevelopmentMode\DevelopmentMode; use Cluster\Core\Route\Route; //global variables $GLOBALS['ROUTE_OVERWRITE'] = [ "/404" => [ "call" => true, "method" => ...
true
d595ee81c4cc2b690d16e571f10a9cb704982a6c
PHP
PayIcam/admin_ginger
/admin_upload_file_dropbox.php
UTF-8
2,283
2.53125
3
[]
no_license
<?php require_once 'includes/_header.php'; $Auth->allow('admin'); require_once 'class/DropboxUploader.php'; if ($_POST) { try { if ($_FILES['file']['error'] !== UPLOAD_ERR_OK) throw new Exception('File was not successfully uploaded from your computer.'); if ($_FILES['file']['name'] ==...
true
60e9c269ffa46a111452a57e262cd1d4ac2957ff
PHP
jntme/bfh_webandapps
/exercises/mytests/classes/stack.php
UTF-8
594
3.90625
4
[]
no_license
<?php interface Stack { function push($item); function pop(); function size(); } class MyStack implements Stack { var $stackArray = array(); function push($item) { $this->stackArray[]=$item; } function pop() { return array_pop($this->stackArray); ...
true
aeefdec7e25a7c98515118c2b6eeee4fd601f441
PHP
chitralimbu/survey
/test.php
UTF-8
3,523
2.890625
3
[]
no_license
function countColour($beatpm){ $eighty = $GLOBALS['eighty']; $hundred = $GLOBALS['hundred']; $huntwenty = $GLOBALS['huntwenty']; $colour = $GLOBALS['colour']; for ($k=0; $k < count($colour); $k++) { $col[$k] = 0; } if ($beatpm == 80) { $bpm = $eighty; } if ($beatpm == 100) { $bpm = $hundred;...
true
f0bbe8b0347194908c2da7f16dc4bdf08e20d0be
PHP
Smony/mobile.poets
/vendor/libs/function.php
UTF-8
2,339
2.765625
3
[]
no_license
<?php function dd($arr) { echo '<pre>' . print_r($arr, true) . '</pre>'; } function formatStr($str) { $str = trim($str); $str = stripslashes($str); $str = htmlspecialchars($str); return $str; } function baseURL(){ return sprintf( "%s://%s%s", isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != ...
true
7dd0752bcc5252b1f0d92518ca51a3525b374997
PHP
carlosahh8912/e-school
/app/classes/PaginationHandler.php
UTF-8
3,377
2.78125
3
[]
no_license
<?php /** * @author Joystick * @version 1.0.0 * */ class PaginationHandler extends Model { /** * Establecimiento de parámetros necesarios * @param * **/ private $query; private $params = []; private $rows = []; private $offset; private $limit = 25; private $pattern = ''; private $pages ...
true
d965d4927bbdda1f84a5c1492edba2020f048bbf
PHP
ukrzik/ukrzik-Lektorium_task_3
/app/models/users.php
UTF-8
1,509
3.25
3
[]
no_license
<?php namespace App\models; use App\Connection; use PDO; class users { private $connection; public function __construct() { $this->connection = (new Connection())->connect(); } protected $id; protected $name; protected $surname; protected $email; protected $role; //...
true
f0bdf26148d06800a646bf5d9ab1599ecf093437
PHP
kosekma1/sklarphp
/08-databaze/insert-form/index-complete-form.php
UTF-8
2,006
3.09375
3
[]
no_license
<?php require "FormHelper.php"; try { $db = new PDO("sqlite:restaurant.db"); } catch (PDOException $e){ print "Can't connect ".$e->getMesssage(); exit(); } //připraví se na databázové výjimky $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); // Logika hlavní stránky // - jestliže je formulář odeslan...
true
e56b2e1a41cb269b0fc09c41aa6de9b48e3215b9
PHP
johnlee1204/ReptileErp
/inc/php/Classes/Email.php
UTF-8
3,866
2.9375
3
[]
no_license
<?php use Agile\AgileLibrary; class Email extends AgileLibrary{ private static $config; private static function getDevEmail(){ if(isset(self::$agileApp->systemConfigs['adminEmail'] )){ return self::$agileApp->systemConfigs['adminEmail']; } throw new Exception("SystemConfig 'adminEmail' is missing"); } ...
true
3a4f0700c323067d886c6a760a40b3d0a95ea561
PHP
bpasha7/prj
/models/lot_model.php
UTF-8
9,806
2.625
3
[]
no_license
<?php class Lot_Model extends Model { public function __construct() { Session::init(); if (!empty($_SESSION['Role'])) { $role = Session::get('Role'); parent::__construct($role,''); } else parent::__construct(); } public function bet($lot) ...
true
0acd3bd6ebe2f73293d350a8b938f86290527b77
PHP
dave-redfern/masterclass-repo
/app/Support/Http/Session.php
UTF-8
1,063
2.6875
3
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
<?php namespace App\Support\Http; use App\Support\Collection; /** * Class Session * * @package App\Support\Http * @subpackage App\Support\Http\Session */ class Session extends Collection { /** * Constructor. */ public function __construct() { parent::__construct($_SESSION); ...
true
abc2ade1a4cad37a5abbb31cc7c5aadbf744a466
PHP
basv98/bs_shoop
/app/shop/Product.php
UTF-8
1,255
2.953125
3
[]
no_license
<?php namespace App\shop; use App\Models\Product as ModelsProduct; class Product { private $product; public function __construct($product_id = "") { if ($product_id) { $this->product = ModelsProduct::find($product_id); } } public function get() { return $...
true
14b7065a35293e59dc96aa1bb6019fbdd0998149
PHP
phoebe09010901/mary
/admin/includes/function_checkdata.php
UTF-8
1,388
3.1875
3
[]
no_license
<?php //check id_number function isIDnum($num){ //先用RE語法初步檢驗輸入格式是否正確 if(preg_match("/^[a-zA-Z][12][0-9]{8}$/",$num,$r)){ //算出開頭英文字母的地區代碼 $x=10+strpos("abcdefghjklmnpqrstuvxywzio",strtolower($num[0])); //檢查碼1=地區代碼十位數的數字+(個位數的數字x9) $chksum=($x-($x%10))/10+($x%10)*9; //檢查碼2=身分數字部分依序乘上8...
true
6c7b4e552147366c3018bbb7435781b738f93774
PHP
liangdev/shopinterest
/quickstart/application/models/Merchant.php
UTF-8
509
2.6875
3
[]
no_license
<?php class Merchant extends BaseModel { public function setUsername($username) { if(filter_var($username, FILTER_VALIDATE_EMAIL)) { $this->_username = $username; return true; } else { return false; } } public function setPassword($password)...
true
3b76a7fbc7e14ff8c14620fcbb5679e74fe89e09
PHP
teguh02/mobilePulsanet-Sdk
/example/callbackSample.php
UTF-8
1,522
2.59375
3
[]
no_license
<?php use ofi\mobilepulsa\mobilepulsa; /** * Refrensi * https://developer.mobilepulsa.net/documentation#api-callback_url */ class callbackSample { /** * Contoh testing callback, disini developer sdk ini menggunakan * postman seperti pada gambar ini, untuk melempar pesan callback * dan akan ditan...
true
7eb77be801f8f0934a732d94ee7941595bf58fd1
PHP
JiaYouDianSuan/bonus
/View/Web/Segment/Segment_Input_Checkbox.php
UTF-8
1,691
2.6875
3
[]
no_license
<?php /* * To change this template, choose Tools | Templates * and open the template in the editor. */ /** * Description of Segment_Input_Checkbox * * @author jinlee */ class Segment_Input_Checkbox extends Segment_Input { protected $_arrData; function __construct($sInput, $sApp) { parent::__c...
true
37bfdba7ecb8865ae18355fb346f8237898c54e1
PHP
hlee-va/php-test-helpers
/tests/set_new_overload_static_classname.phpt
UTF-8
528
2.890625
3
[]
no_license
--TEST-- set_new_overload() should be able to handle static class names during creation --SKIPIF-- <?php if (!extension_loaded('test_helpers')) die('skip test_helpers extension not loaded'); ?> --FILE-- <?php class X { public static function create() { $var = new static(); var_dump($var); } } class Y extend...
true
59a4c2cdecb2372ccf0799d3100ca1f198cdcedd
PHP
ToadsworthLP/ITP-OnePageCMS
/htdocs/homepage/config/HomepageActions.php
UTF-8
567
2.546875
3
[]
no_license
<?php include_once "admin/utility/IIncludeSwitchConfig.php"; class HomepageActions implements IIncludeSwitchConfig { const NONE = 0; const SEND_MESSAGE = 1; public function getMapping(): array { return [ HomepageActions::NONE => "admin/action/NoAction.php", HomepageActi...
true
73720921dd4b060c63f4ffff1f94d92dd7288ab9
PHP
VellaNicholas/dbi-tcs
/admin/controller/contRegUoS.php
UTF-8
1,684
3
3
[]
no_license
<!-- This file is responsible for the controller layer of the regUoS page. It contains business logic and validation. --> <?php //Prevents scripting and SQL injection function test_input($data) { $data = trim($data); $data = stripslashes($data); $data = htmlspecialchars($data); ...
true
10f00a75a56190c7d0798bd0ada951746be7fcb4
PHP
MTES-MCT/histologe
/src/Exception/File/MaxUploadSizeExceededException.php
UTF-8
249
2.734375
3
[ "MIT" ]
permissive
<?php namespace App\Exception\File; class MaxUploadSizeExceededException extends \Exception { public function __construct(int $filesize) { parent::__construct(sprintf('Le fichier dépasse %s MB', $filesize / 1024 / 1024)); } }
true
c3b4bc1d7971c736a9837365e3e9816a79de7839
PHP
MohammedAttya2/Robot
/src/Output/OutputInterface.php
UTF-8
374
3.1875
3
[]
no_license
<?php namespace App\Output; use App\Robot; interface OutputInterface { /** * @param Robot $robot */ public function __construct(Robot $robot); /** * Generate the output * @param string $command the input string command * @return string The generated Output */ publi...
true
b9b9fd511062ec2fa9f73e2c4daf7d2a2951059a
PHP
baraja-core/doctrine-fulltext-search
/src/QueryNormalizer/QueryNormalizer.php
UTF-8
1,899
2.828125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Baraja\Search\QueryNormalizer; use Baraja\Search\Helpers; final class QueryNormalizer implements IQueryNormalizer { /** @var array<string, int> */ private static array $filterSearchKeys = [ 'in' => 1, 'it' => 1, 'a' => 1, 'the' => 1, 'of' => 1, 'or' => 1, 'I' => 1, 'you...
true
dbda7efc1f67a5bba1128494760296d92fb7264e
PHP
AntoineArt/web_supy_antars
/site/controleur/forums/commentaires.php
UTF-8
991
2.640625
3
[]
no_license
<?php /* Auteur: Frapiccini Benoît Ce programme récupère les commentaires dans l'intervale demandé (min inclus, max exclus). /!\ Pour l'instant, on se limite aux 100 premiers commentaires /!\ Les données ne sont pas traitées comme dans l'index (par ex), car cela provoque une erreur de type "illegal string offset" ...
true
ad35ef8ed7d3cd95f3cc52597f5cebcb3f2d559c
PHP
secureticketpurchase/ticketsbroadway
/ticketsbroadway/library/api-lib/classes/City.php
UTF-8
2,519
3.203125
3
[ "WTFPL" ]
permissive
<?php // City Class (has no corresponding object in API) // Has an array of venues, cast, shows, zip codes(?) class City { public $cityName; //name of city in API public $state; public $wpCity; //city Wordpress object public $venues = array(); //array of venue IDs public $shows = array(); // array of show IDs ...
true
548a8cce61877de47db0db1a0a7aed2cfdfa03c7
PHP
mitch-myers/CSCI
/CSCI Complete Project Files/Final Quote System/ManagePurchaseOrder.php
UTF-8
4,281
3.078125
3
[]
no_license
<?php //middle man to pass info between the boundary classes class ManagePurchaseOrder { //wiil hold instances of POGateway,Quore store, and Sales associate interface var $POGateway; var $quote; var $SA; /**************************************************************...
true
29bbd377002cb14e0546efdce7be628dd4dea6c6
PHP
feche92/tp_laboratorio_2
/Ivagaza.Federico/AgregarJugueteSinFoto.php
UTF-8
377
2.640625
3
[]
no_license
<?php require_once "clases/Juguete.php"; $juguete=new Juguete($_POST['tipo'],$_POST['precio'],$_POST['pais'],"undefined"); if($juguete->Agregar()) { $ar=fopen("archivos/juguetes_sin_foto.txt","a"); fwrite($ar,date("Y/m/d H:i:s")."-".$juguete->ToString()."\n"); fclose($ar); echo "juguete agreg...
true
8be0a0ac5ec8da645313222e94a176b0bfb1cf49
PHP
nikriek/restock
/upc-parser/api.php
UTF-8
1,751
2.59375
3
[]
no_license
<?php function sanitize($str) { $str = stripcslashes($str); $str = htmlspecialchars($str, ENT_QUOTES, 'utf-8'); return $str; } function file_get_contents_curl($url) { $ch = curl_init(); curl_setopt($ch, CURLOPT_AUTOREFERER, TRUE); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT...
true
e9e91dd3cb2ed088d73ac579a9e51feec90e8e64
PHP
Dindapradani/UTSpemweb
/game-matematika/gameover.php
UTF-8
2,339
2.5625
3
[]
no_license
<?php session_start(); include "koneksi.php"; tambah($_SESSION["nama"], $_SESSION["email"], $_SESSION["score"]); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>UTS PEM...
true
838c1d9d285db3195a8f6ee1c1789030edef60bd
PHP
nicolascuisnier/home_camper
/models/database.php
UTF-8
560
3.03125
3
[]
no_license
<?php // creation d'une class class DataBase { protected $DataBase; public function __construct() { // nous utilison try and catch pour obtenir un message d'erreur en cas de non connexion try { // On se connecte à MySQL $this->DataBase = new PDO('mysql:host=localhost;dbname=home_camping2;...
true
5230a7a7b78924a44a39d51072f71037fe845511
PHP
tempprojects/imagecorp
/common/models/database/BlogMedia.php
UTF-8
1,149
2.65625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace common\models\database; use Yii; /** * This is the model class for table "blog_media". * * @property integer $id * @property integer $type_media * @property string $img * @property string $slider * @property string $video * @property integer $updated_at * @property integer $created_at */ cl...
true
90650a83d8e1f5be2616cf66a233712346cc396c
PHP
ychen630/projects
/weatherApp/chart/showchart.php
UTF-8
2,008
2.65625
3
[]
no_license
<?php date_default_timezone_set('America/Los_Angeles'); if(isset($_POST["input1"])){ //KoolChart Library $KoolControlsFolder = "KoolPHPSuite/KoolControls";//Relative path to "KoolPHPSuite/KoolControls" folder require $KoolControlsFolder."/KoolChart/koolchart.php"; $chart = new KoolChart("chart")...
true
84b8b6e53834c4225dfdf065d87bd9da84d1e3d1
PHP
dezwork/dwphp-framework
/console
UTF-8
1,572
2.546875
3
[ "MIT" ]
permissive
#!/usr/bin/env php <?php define('PATH_ROOT', str_replace('/vendor/dezwork/dwphp-framework', '', dirname(__FILE__))); $command = isset($_GET['command']) ? $_GET['command'] : null; if (is_null($command)) $command = isset($argv[1]) ? $argv[1] : null; $action = isset($argv[2]) ? $argv[2] : null; $parm_1 = i...
true
875c053d5e4b5f71dd44d3627b325220794055cd
PHP
jerryklimcik/job_presentation
/php/Searches/Interfaces/ISearchBuilder.php
UTF-8
347
2.6875
3
[ "MIT" ]
permissive
<?php namespace App\Services\Datatables\Searches\Interfaces; use App\Services\Datatables\Interfaces\ISearch; use stdClass; interface ISearchBuilder { /** @return ISearch */ public function searchType(): ISearch; /** * @param stdClass $search * @return void */ public function setSearch...
true
1871f024da50e8f5490b450b88320b3ebd4b7aaf
PHP
red-robots/anneneilsonhome_v2
/single-appearances.php
UTF-8
3,002
2.546875
3
[]
no_license
<?php get_header(); ?> <div id="primary" class="full-content"> <div id="content" class=""> <?php while ( have_posts() ) : the_post(); ?> <?php // Set some variables to set how to show the dates. $eventdate = DateTime::createFromFormat('Ymd', get_f...
true
adf0836c4028737a869ca3b7bae750c0f8206ccc
PHP
iaasen/stdlib
/src/Iaasen/Exception/LogicException.php
UTF-8
334
2.65625
3
[]
no_license
<?php /** * User: ingvar.aasen * Date: 10.09.2018 * Time: 15:14 */ namespace Iaasen\Exception; class LogicException extends \LogicException { public function __construct(string $message = "", int $code = 0, \Throwable $previous = null) { if($code === 0) $code = 500; parent::__construct($message, $code, $pr...
true
0bbc88c899d44bad89c3354ee17772a770b4107b
PHP
doornock/web-server
/app/ApiModule/model/ApiAuhenticator.php
UTF-8
3,289
2.796875
3
[]
no_license
<?php namespace Doornock\ApiModule\Model; use Doornock\Model\DoorModule\Device; use Doornock\Model\DoorModule\DeviceRepository; use Doornock\Model\DoorModule\Node; use Doornock\Model\DoorModule\NodeRepository; use Nette\Http\IRequest; use Nette\Http\Request; use Nette\Utils\Strings; class ApiAuthenticator { /** @v...
true
d957a8333d8bf76447c2c2e15e28e86ced0b6c18
PHP
janstarc/TPO-eStudent
/model/SifrantDB.php
UTF-8
35,360
2.6875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Paule * Date: 09/04/2018 * Time: 14:35 */ class SifrantDB { public static function isDuplicateDelPredmetnika($naziv, $kt, $tip){ $db = DBInit::getInstance(); $statement = $db -> prepare( "SELECT NAZIV_DELAPREDMETNIKA,SKUPNOSTEVILOKT,TIP,AKTI...
true
5b29f823425e0bfa7ed6df16ab220de51e0d7d6a
PHP
phpbe/mf
/src/App/System/Service/Mail/Smtp.php
UTF-8
3,366
2.671875
3
[ "MIT" ]
permissive
<?php namespace Be\Mf\App\System\Service\Mail; use Be\Mf\Be; use Be\F\App\ServiceException; use PHPMailer\PHPMailer\PHPMailer; class Smtp extends Driver { private $driver = null; // 构造函数 public function __construct() { $config = Be::getConfig('System.Mail'); if ($config->driver != 'S...
true
33ede98151832d2b4a2ef77f5b1055a554a23638
PHP
on-tec/gzcrawler
/src/Crawler.php
UTF-8
11,725
2.875
3
[]
no_license
<?php namespace GZCrawler; class Crawler { const TYPE_223_REGIONAL_DAILY = 1; const TYPE_223_NSI = 2; const TYPE_44_REGIONAL_CURR_MONTH = 3; const TYPE_44_NSI = 4; public $zipDone; protected $baseUrl; protected $type; protected $tmpDir; protected $xmlDone; protected $newItem; protected $type...
true
912b186b7ad097af4ae72a77247704a0a3a80e19
PHP
i29686112/gallery
/app/Providers/RedisServiceProvider.php
UTF-8
1,721
2.71875
3
[]
no_license
<?php namespace App\Providers; use Illuminate\Support\Facades\Log; use Illuminate\Support\ServiceProvider; use Redis; class RedisServiceProvider extends ServiceProvider { /** * Register services. * * @return void */ public function register() { // $this->app->single...
true
bc5f60eeb4498f2a3eadcfa7bcb3a8e986a310d0
PHP
filipgolonka/content-agregator
/library/Fg/Agregator/Source/Interface.php
UTF-8
543
2.703125
3
[]
no_license
<?php /** * Interface Fg_Agregator_Source_Interface * @author fgolonka */ interface Fg_Agregator_Source_Interface { /** * retrieving data from passed location * @return array */ public function get(); /** * setter method for $location parameter * @param string $location *...
true
b0967b1edd4de39ed97fe138e143a78389d9b866
PHP
stoppegp/KOM-core
/classes/KOM.class.php
UTF-8
8,565
2.53125
3
[]
no_license
<?php class KOM { static $dblink; static $mainDB; static $pagetitle; static $site_url; static $pagenames; static $pages; static $pagesByFile; static $active; static $scripts; static $styles; static $menus; static $issuelist; static $custompagelist; st...
true
9246cc0f3c6f399d2ac92c9ebf1aac07c7e1ef0e
PHP
slickframework/imageCahe
/src/Filter/AbstractFilter.php
UTF-8
1,442
2.9375
3
[ "MIT" ]
permissive
<?php /** * AbstractFilter * * @package Slick\ImageCache\Filter * @author Filipe Silva <silvam.filipe@gmail.com> * @copyright 2014 SlickFramework * @license http://www.opensource.org/licenses/mit-license.php MIT License * @since Version 1.0.0 */ namespace Slick\ImageCache\Filter; use Slick\ImageCa...
true
2d6ea422bd77be061f903bef3f5b748d563d946e
PHP
AABrizuela/segundoParcialProgra3
/src/Controllers/MateriasController.php
UTF-8
2,729
2.546875
3
[]
no_license
<?php namespace App\Controllers; use Psr\Http\Message\ResponseInterface as Response; use Psr\Http\Message\ServerRequestInterface as Request; use App\Models\Materia; use App\Models\Usuario; use Firebase\JWT\JWT; class MateriasController { public function getAll(Request $request, Response $response, $args) { ...
true
9f7742d438f846b2be9581584fb2e9f2d5c3a428
PHP
UNLPam/kimkelen-application
/lib/filter/TutorFormFilter.class.php
UTF-8
3,697
2.53125
3
[]
no_license
<?php /** * Tutor filter form. * * @package conservatorio * @subpackage filter * @author Desarrollo CeSPI * @version SVN: $Id: sfPropelFormFilterTemplate.php 11675 2008-09-19 15:21:38Z fabien $ */ class TutorFormFilter extends BaseTutorFormFilter { public function configure() { unset($this['p...
true
21a1fadf3ed8b7ca84a268adb5a9b7a2b68cc5ee
PHP
saminanirmala/module
/application/includes/adduser.php
UTF-8
207
3.578125
4
[]
no_license
<?php /*** using if / else ***/ if(isset($variable)) { echo $variable; } else { echo ''; } /*** using ternary ***/ echo isset($variable) ? $variable : '';
true
270c0235fdf1903e66d16d60266126c2ff51b0d3
PHP
KyleMerc/PHP_demo
/pyramidsample.php
UTF-8
486
3.609375
4
[]
no_license
<?php function Pyramid($plen) { $ctr = 0; $result = ""; for ($i = $plen; $i > 0; $i--) { for ($j = $i; $j > 0; $j--) { $result .= "B"; } for ($k = 0; $k <= $ctr; $k++) { $result .= "*"; } $ctr++; $result .= "<br />"; } return...
true
aa63418242650a7b8aaf562818b77b605b6e36ab
PHP
markmuthii/jobboard
/api/jobs.php
UTF-8
3,715
2.8125
3
[]
no_license
<?php if ($_SERVER["REQUEST_METHOD"] == "POST") { require_once "../config/db.php"; } else { require_once "config/db.php"; } if (isset($_POST["jobpublish"])) { $jobtitle = $db->real_escape_string($_POST["jobtitle"]); $location = $db->real_escape_string($_POST["location"]); $salarymin = $db->real_escape_string($_...
true
7d4bae9bef4273f726aed186ecfd9ef10385c5a7
PHP
JeremyDunn/php-fedex-api-wrapper
/src/FedEx/PickupService/ComplexType/VariationOptionDetail.php
UTF-8
1,295
2.90625
3
[]
no_license
<?php namespace FedEx\PickupService\ComplexType; use FedEx\AbstractComplexType; /** * Allows clients the ability to specify variations in their capabilities that may impact the set of features that are enabled in the called service. In a typical use case, id may correspond to the name of an initiative (or one featur...
true
8b65e51e3ea3b930973cbb94a85ba1d80c6fdf86
PHP
fareedamhadmhan/project2
/updatemember.php
UTF-8
2,858
2.578125
3
[]
no_license
<html> <head> <meta charset="utf-8"> </head> </html> <?php $servername = "localhost"; $username = "root"; $password = ""; $databasename = "project2"; // Create connection $con = new mysqli($servername, $username, $password, $databasename ); mysqli_query($con, "SET NAMES 'utf8' "); if(count($_POST)>0) { ...
true
9c20e7591e62abc1a55c1c3e59a273db0e4954b4
PHP
quanton81/quanton81PhpDesignPatterns
/tests/ChainOfResponsibilityTests.php
UTF-8
1,084
2.953125
3
[ "MIT" ]
permissive
<?php use PHPUnit\Framework\TestCase; include_once('src/chainOfResponsibility/Traduttore.php'); class ChainOfResponsibilityTests extends TestCase { public function testTraduttoreItEuro() { $traduttore = new Traduttore('it'); $this->assertSame('Traduttore Italiano.', $traduttore->ottieniTradut...
true
0770a2e6af61e61626744dd74b4220f1f183b934
PHP
anzasolutions/rhea
/src/core/dao/daofactory.php
UTF-8
470
2.75
3
[]
no_license
<?php namespace core\dao; class DAOFactory { private static $instance; public static function getInstance() { if (self::$instance == null) { self::$instance = new self(); } return self::$instance; } private function __construct() {} // TODO: have ...
true
c0ed0d711d93705a28012d755d6592eebfa18bbd
PHP
dhevanthareza/takoen-e-firdana
/app/Interfaces/ProfileRepositoryInterface.php
UTF-8
201
2.59375
3
[]
no_license
<?php namespace App\Interfaces; interface ProfileRepositoryInterface { public function authUser(); public function profile(string $username); public function update(object $request); }
true
4e89768ffd275e13ca5240cf68008697a5c2e677
PHP
Pecon-Software-Ltd/trackme
/index.php
UTF-8
1,858
3.203125
3
[]
no_license
<!DOCTYPE html> <!-- 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. --> <html> <head> <meta charset="UTF-8"> <title></title> </head> <body> <?php $servename = 'loc...
true
7b69cad3584a22bf0bdd9ca92106d2f53e79e252
PHP
eix/core
/src/php/test/Eix/Services/Net/Mail/AddressTest.php
UTF-8
858
2.671875
3
[ "MIT" ]
permissive
<?php /** * Unit test for class Eix\Services\Net\Mail\Address. */ namespace Eix\Services\Net\Mail; use Eix\Services\Net\Mail\Address; class AddressTest extends \PHPUnit_Framework_TestCase { const GOOD_EMAIL = 'good@email.com'; const BAD_EMAIL = 'bad@email.'; const NAME = 'Email Name'; /** * @...
true
9de3200a43eb28750ce6d933030c065d44ccb2c4
PHP
montemarco89/bookManage
/read.php
UTF-8
3,366
2.78125
3
[]
no_license
<?php // controlliamo l'esistenza di almeno un elemento prima di continuare if(isset($_GET["id"]) && !empty(trim($_GET["id"]))){ require_once "config.php"; // preparo lo statement if($stmt = $conn2->prepare("SELECT * FROM libri WHERE ID = ?")){ $stmt->bind_param("i", $param_id); ...
true
20c1a530941f96dee96f4bb456ac49cf04c1db02
PHP
sporchia/alttp_vt_randomizer
/app/Region.php
UTF-8
7,986
2.96875
3
[ "MIT" ]
permissive
<?php namespace ALttP; use ALttP\Support\ShopCollection; /** * A logical collection of Locations. Can have special can_enter function that * will apply to all locaitons contained, and can_complete function set to * validate that the region prize (if set) can be obtained. */ class Region { protected $location...
true
5d8e925d9d9ea47326b59ed95966744a5a621e67
PHP
zuida97/pagina_musica
/negocio/class.conexion.php
UTF-8
1,780
2.9375
3
[]
no_license
<?php /** * clase Conexion */ class Conexion { public $identificador; function __construct() { $servidor = "localhost"; $bd = "examen_feriamusica"; $user= "root"; $clave = ""; $this->identificador = mysqli_connect($servidor,$user,$clave,$bd); // code... } function InMoEl($sql) { ...
true
306f0c4b19b8e61c79bdebd05e82d65b76919234
PHP
BratislavStojanovic/WEB-SHOP
/cart.php
UTF-8
2,469
2.796875
3
[]
no_license
<?php require_once './User.class.php'; ?> <?php require_once './Helper.class.php'; ?> <?php $u = new User(); if( isset($_POST['remove_from_cart']) ) { if ( $u->removeFromCart($_POST['cart_id']) ) { Helper::addMessage('Product removed from cart.'); } else { Helper::addError('Failed to remove ...
true
4f05398d5a2e5ec6b5d68d6306210227efccf58a
PHP
AnanevEgor/Rielt
/models/SearchObjectForm.php
UTF-8
1,157
2.625
3
[ "BSD-3-Clause" ]
permissive
<?php /** * Created by PhpStorm. * User: Egor * Date: 25.04.2018 * Time: 13:26 */ namespace app\models; use Yii; use yii\base\Model; class SearchObjectForm extends Model { public $id_city; public $id_street; public $type_tread; public $num_bathroom; public $type_bathroom; public $amount...
true
6170f121a51d2772e6da6705fa30f549019e31fd
PHP
cergel/services
/cgi/app/resources/staticGewara.php
UTF-8
1,027
2.53125
3
[]
no_license
<?php namespace sdkService\resources; /** * 获取Gewara静态数据 * * @author CIYE * @version 2017-05-12 */ class staticGewara extends staticBase { private $fileNameTag = 'gewara_'; public function __construct($staticName, $staticPath = '') { $staticPath = !empty($staticPath) ? $staticPath : CGI_APP_P...
true
57e462e8372f60c0d0f9e6eacf4be4c735bca287
PHP
belgattitude/soluble-jasper
/src/Context/DefaultFileResolver.php
UTF-8
2,153
2.8125
3
[ "MIT", "JasPer-2.0" ]
permissive
<?php declare(strict_types=1); /* * Jasper report integration for PHP * * @link https://github.com/belgattitude/soluble-jasper * @author Vanvelthem Sébastien * @copyright Copyright (c) 2017-2019 Vanvelthem Sébastien * @license MIT */ namespace Soluble\Jasper\Context; use Soluble\Japha\Bridge\Adapte...
true