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
88ed96847add7f5324ac6238599cf48429b1dc13
PHP
Innmind/Math
/tests/Geometry/Figure/RectangleTest.php
UTF-8
1,654
2.75
3
[ "MIT" ]
permissive
<?php declare(strict_types = 1); namespace Tests\Innmind\Math\Geometry\Figure; use Innmind\Math\{ Geometry\Figure\Rectangle, Geometry\Figure, Geometry\Segment, Algebra\Number, Algebra\Integer }; use PHPUnit\Framework\TestCase; class RectangleTest extends TestCase { public function testInterfa...
true
a91dbaa8f1a017acc32e1aa37a8f37f8242a28f7
PHP
dwvanstone/buttonmen
/test/src/engine/BMButtonTest.php
UTF-8
12,022
2.796875
3
[ "BSD-3-Clause" ]
permissive
<?php /** * Generated by PHPUnit_SkeletonGenerator 1.2.0 on 2012-12-07 at 14:08:15. */ class BMButtonTest extends PHPUnit_Framework_TestCase { /** * @var BMButton */ protected $object; /** * Sets up the fixture, for example, opens a network connection. * This method is called before...
true
74a89525a484d9dee3e9cc6313223d38eb72aa72
PHP
arturgssjr/sdk-getnet-php
/tests/Api/CustomerTest.php
UTF-8
3,078
2.546875
3
[ "MIT" ]
permissive
<?php namespace GetnetTests\Api; use Getnet\Api\Customer; use PHPUnit\Framework\TestCase; class CustomerTest extends TestCase { private $data; private $customer; protected function setUp(): void { $this->data = $GLOBALS['configs']['customer']; $this->customer = new Customer(); } ...
true
069c2fe216b6f3f2ad4db0697549b553857bf99a
PHP
istheweb/connect
/models/ContactExport.php
UTF-8
548
2.53125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: andres * Date: 16/12/16 * Time: 14:07 */ namespace istheweb\connect\models; // LIBRERIAS use Backend\Models\ExportModel; use Istheweb\Connect\Models\Contact as ObjectModel; class ContactExport extends ExportModel{ // EXPORT METHOD public function exportData($col...
true
cd40d300cb3848fa130344d1a78071dd01e3e50c
PHP
gshashidhar125/bangalorehack
/functions.inc.php
UTF-8
744
2.8125
3
[]
no_license
<?php function redirect($page) { header('Location: ' . $page); exit(); } /* function check_login_status() { if (isset($_SESSION['logged_in'])) { return $_SESSION['logged_in']; } return false; }*/ function check_login_status() { if (!isset($_SESSION['logged_in'])) { return ...
true
72010fc1ce15017d7362b05e932c0ef31301a191
PHP
hackzilla/bing-api
/PHP/bingads/BingAds/CampaignManagement/GetAdsByEditorialStatusResponse.php
UTF-8
506
2.53125
3
[ "Apache-2.0" ]
permissive
<?php namespace BingAds\CampaignManagement; /** * Response object for the GetAdsByEditorialStatus service operation. * @link http://msdn.microsoft.com/en-us/library/dn277538(v=msads.90).aspx GetAdsByEditorialStatusResponse Response Object */ final class GetAdsByEditorialStatusResponse { /** * An array of ...
true
09190fd86586bfa1e1083d8f92e79b93a75e9fad
PHP
MunizMechanics/SMArmas
/Modelos-P.php
ISO-8859-1
1,448
2.71875
3
[ "Apache-2.0" ]
permissive
<?php ob_start() ?> <!-- ============================================================= programa: Modelos-P.php funo: Arquivo de processamento dos modelos data: 24/04/2013 autor: Anderson Lucas Farias Muniz Docente: Alexandre Faccioni Barcellos ============================================================= --...
true
4ae2699d100b403383b2235f5870af930b204c24
PHP
gektor1/ToDo
/app/core/Controller.php
UTF-8
1,759
3.046875
3
[]
no_license
<?php /** * The controller class. * * The base controller for all other controllers. Extend this for each * created controller and get access to it's wonderful functionality. */ class Controller { const METHOD_POST = 'POST'; const METHOD_GET = 'GET'; const METHOD_PUT = 'PUT'; /** * ...
true
6c7a0eaa22c3585c933ddaada4aaf740346a0706
PHP
Figron/Restaurant-Website
/conf/database.php
UTF-8
567
2.9375
3
[]
no_license
<?php class Database { public $conn; public function getConnection(){ $conn = mysqli_connect("localhost","root","Drbk085VTeopiQ45","restaurant") or die("Couldn't connect"); $this->conn = $conn; return $conn; } function runQuery($query) { $result = mysqli_query($this->conn,$query); while($row=m...
true
358d98aaf418d1cf64a3969444d950031e9de301
PHP
rueian/CCEG
/app/StepRunner/SqlJoin.php
UTF-8
8,488
2.734375
3
[]
no_license
<?php namespace App\StepRunner; use Illuminate\Support\Facades\DB; // 此 Runner 的 output table 的 schema 為兩張 join table 組合,欄位前面都加上原 table_ class SqlJoin implements Runner { static function supportedInputStorageType() { return 'table'; } static function getName() { return 'SQL Join'...
true
8d6954a50ed2923bd4bdd9cea96fdce97fdc744d
PHP
mqh-kayani/sleek
/database/seeders/CollectionSeeder.php
UTF-8
501
2.5625
3
[ "MIT" ]
permissive
<?php namespace Database\Seeders; use App\Models\Category; use App\Models\Collection; use Illuminate\Database\Seeder; class CollectionSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $categories = Category::all(); foreac...
true
4d8d32baa95da7480cfd9af93918a6db72c5f285
PHP
arslaanejaz/Exposition-Application
/app/Http/Controllers/StandController.php
UTF-8
4,253
2.625
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Helpers\CustomHelper; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\File; use Illuminate\Support\Facades\Redirect; use Illuminate\Support\Facades\Storage; use Repositories\Eloquent\Location; use Repositories\Eloquent\Sta...
true
37101ec2ee8eeb7ab5cb163083c087975871c76a
PHP
songxiankun/njxz_admin
/Application/API/Controller/CityController.class.php
UTF-8
791
2.53125
3
[]
no_license
<?php /** * 城市-控制器 */ namespace API\Controller; use API\Model\CityModel; use API\Service\CityService; class CityController extends APIBaseController { function __construct() { parent::__construct(); $this->mod = new CityModel(); $this->service = new CityService(); } ...
true
a0d8a672b6f41a5f69f68286a0861a3f6ba58ddb
PHP
KiYace/dungeon-wallet
/app/Models/Tags.php
UTF-8
1,904
2.515625
3
[]
no_license
<?php namespace App\Models; use Backpack\CRUD\app\Models\Traits\CrudTrait; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; /** * Class Tags * @package App\Models * @property int $id * @property string $name * @property string $color * @property int $player_id * @...
true
06c7d518c09f62a0188d9f7f4afb660a0f558e28
PHP
sshaikh210/Codeup-Web-Exercises
/public/server-name-generator.php
UTF-8
561
2.6875
3
[]
no_license
<?php $arrayAdjectives = array('Big', 'Little', 'Ugly', 'Beautiful', 'Tall', 'Short', 'High', 'Low', 'Fat', 'Skinny'); $arrayNouns = array('Home', 'Building', 'Car', 'Person', 'Obama', 'USA', 'Downtown', 'Europe', 'Laptop', 'Butt' ); $adjectives = array_rand($arrayAdjectives); $nouns = array_rand($arrayNouns); ?> ...
true
2338493d4f015968cd0aad5cab9de3112a95d1fb
PHP
coderjp/verifier
/src/Traits/VerifierUserTrait.php
UTF-8
2,443
2.875
3
[ "MIT" ]
permissive
<?php namespace Coderjp\Verifier\Traits; /** * This file is part of Verifier, * * @license MIT * @package Coderjp\Verifier */ use Config; use Mail; trait VerifierUserTrait { /** * Queues an email for delivery * * @return mixed */ public function sendVerification() { $this...
true
e9a864cb9841dcbd94edc752775448348846304b
PHP
ucirvine/StorageBroker
/src/UCI/StorageBroker/DatabaseBroker/ResultProcessors/InsertResultProcessor.php
UTF-8
1,142
2.828125
3
[]
no_license
<?php /** * InsertResultProcessor.php * 12/13/13 * * @author: Jeremy Thacker <thackerj@uci.edu> */ namespace UCI\StorageBroker\DatabaseBroker\ResultProcessors; use PDO; use PDOStatement; use UCI\StorageBroker\DatabaseBroker\Statements\AbstractStatement; use UCI\StorageBroker\DatabaseBroker\DatabaseValueMap; /**...
true
9a24a84d6837d18e53526175c9260d051fb8aa03
PHP
HoboHub/factotum
/result_search.php
UTF-8
4,544
2.6875
3
[]
no_license
<?php header('Content-Type: text/html; charset=utf-8'); session_start(); if (isset($_POST['request'])) { $personSearchRes = filter_var(trim($_POST['request']), FILTER_SANITIZE_STRING); if ($personSearchRes !== "") { $_SESSION['search'] = $personSearchRes; header("Location: /result_search.php?search=1");...
true
e44cf9c0a33392a182558ef6c4d53581abb87982
PHP
wisnubaldas/blog_hitler
/app/View/Components/Blog/Select2.php
UTF-8
781
2.59375
3
[]
no_license
<?php namespace App\View\Components\Blog; use Illuminate\View\Component; class Select2 extends Component { /** * Create a new component instance. * * @return void */ public $dataOption; public function __construct($dataOption) { $this->dataOption = $this->make_data($dataOp...
true
a925c69fd0f1f914f1c631fc7ce5659eb839c7e4
PHP
unl/UNL_ENews
/src/UNL/ENews/Story/Newsrooms.php
UTF-8
645
2.84375
3
[]
no_license
<?php /** * Collection of newsrooms associated with a story * * @author bbieber * * @see UNL_ENews_Story::getNewsrooms() * */ class UNL_ENews_Story_Newsrooms extends UNL_ENews_NewsroomList { function __construct($options = array()) { $newsrooms = array(); $mysqli = UNL_ENews_Controller::...
true
49668e0a5d3ce17667beebcca2e16753e98a4871
PHP
Naru-hub/PHP
/array2.php
UTF-8
320
2.890625
3
[]
no_license
<?php $user = [ 'name' => 'kume', 'sex' => 'male', ]; $user['age'] = 20; echo $user['name'] . PHP_EOL; // var_export($user); $capital = [ 'japan' => 'Tokyo', 'China' => 'Beijing', ]; $capital['india'] = 'New Deihi'; echo $capital['japan'] . PHP_EOL; //Tokyo
true
502f944f462c3f3b317e13e6a94914a7643e11bd
PHP
neequole/sp2
/phptest/web_service/class/booking.php
UTF-8
5,105
3.015625
3
[]
no_license
<?php // Include database connection settings /** * Class to handle User */ class Booking { // Properties of booking public $book_id = null; public $title = null; public $e_date = null; public $e_stime = null; public $e_etime = null; public $venue_name = null; public $e_tclass = null; public $status = null...
true
531b775d065857cf1fb28d02cad92c32e6c01808
PHP
kngell/kngell_new_framwork
/app/Model/warehousemanager.class.php
UTF-8
2,078
2.640625
3
[]
no_license
<?php declare(strict_types=1); class WarehouseManager extends Model { protected string $_colID = 'whID'; protected string $_table = 'warehouse'; protected string $_colTitle = 'wh_name'; protected array $select2_field = ['company', 'country_code']; //================================================...
true
120f50ccc89ecca0542f168bd008df448fcb999d
PHP
maximw/PieceofScript
/src/PieceofScript/Services/Generators/Generators/Faker/FakerRegexify.php
UTF-8
676
2.703125
3
[]
no_license
<?php namespace PieceofScript\Services\Generators\Generators\Faker; use PieceofScript\Services\Errors\InternalFunctionsErrors\ArgumentsCountError; use PieceofScript\Services\Generators\Generators\FakerGenerator; use PieceofScript\Services\Values\Hierarchy\BaseLiteral; use PieceofScript\Services\Values\StringLiteral...
true
de93c56cdf49af1a1e48adc507faa7deda092970
PHP
kjohnson/archived-projects
/FUEL-CMS/FUEL-CMS-Contact-Module/controllers/contact.php
UTF-8
4,441
2.65625
3
[ "Apache-2.0" ]
permissive
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); require_once(MODULES_PATH.'/contact/libraries/Contact_base_controller.php'); class Contact extends Contact_base_controller { public function __construct() { parent::__construct(); $this->load->library('form_validation'); } public functi...
true
adad89e294e4fac2e0317025a262dce892da364e
PHP
nhukhanhdl/easyrdf
/lib/EasyRdf/Graph.php
UTF-8
14,263
2.921875
3
[]
no_license
<?php /** * EasyRdf * * LICENSE * * Copyright (c) 2009-2010 Nicholas J Humfrey. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * 1. Redistributions of source code must retain the above c...
true
edded5225104f92d03967fbc8e47a96920682b18
PHP
Postuf/telegram-osint-lib
/src/Scenario/UserContactsScenario.php
UTF-8
5,291
2.578125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace TelegramOSINT\Scenario; use TelegramOSINT\Client\InfoObtainingClient\Models\UserInfoModel; use TelegramOSINT\Client\StatusWatcherClient\Models\ImportResult; use TelegramOSINT\Exception\TGException; use TelegramOSINT\TLMessage\TLMessage\ServerMessages\Contact\ContactUser; cla...
true
e0b7e531e65a7c5b2f76e2589c986c3e219a7904
PHP
ushakovv/tour.temnikova.ru
/commands/ConfigureSiteController.php
UTF-8
1,455
2.765625
3
[ "MIT" ]
permissive
<?php namespace app\commands; use yii\console\Controller; use yii\helpers\Console; class ConfigureSiteController extends Controller { private function _checkConnection($dbHost, $dbPort, $dbName, $dbLogin, $dbPassword) { try{ $dbh = new \PDO("mysql:host=$dbHost;port=$dbPort;dbname=$dbName", $dbLogin, $dbPass...
true
9f3210dee0dbf701597c2951a40dd07e6b6ec92f
PHP
nzanella/personalwebsite
/examplecode/treeSource.php
UTF-8
4,825
3.015625
3
[]
no_license
<?php /** * Tree node value updates starting from source node, following path terminal node names, and setting the final node value. * * @author Neil Glen Zanella <coding@neilzanella.com> * @copyright 2004 Neil Glen Zanella */ require_once("includes/treeNode-v3.php"); function test() { $treeInstan...
true
a7e91ebdde6810a7d51d7357a05b09c982c596c3
PHP
abdiiwan1841/ci4-bawaslu
/app/Models/GroupPermissionModel.php
UTF-8
3,210
2.78125
3
[ "MIT" ]
permissive
<?php /** * * @author Tarkiman | tarkiman@itasoft.co.id / tarkiman.zone@gmail.com */ namespace App\Models; use CodeIgniter\Model; class GroupPermissionModel extends Model { protected $table = 'group_permissions'; protected $primaryKey = 'id'; protected $returnType = 'object'; protecte...
true
83fbcdec9a59788e1af3a409ede976928e67ff39
PHP
waqashameed/energysystem
/edit_user.php
UTF-8
2,243
2.546875
3
[]
no_license
<?php //require 'edit_action.php'; require 'session.php'; require 'db.php'; $id = 0; $id = $_GET['id']; if ($_SESSION['isadmin']!=1) { if ($id != $_SESSION['analyzerid']) { header('Location: edit.php?id='.$_SESSION['analyzerid']); } } $sql = "SELECT * FROM users WHERE id='".$id."'"; $result =...
true
d4cdf5d1648b2c1da12766295a99ad53641e1196
PHP
forhad35/itv-wd-06
/Classes/class27/array_modify.php
UTF-8
449
3.234375
3
[]
no_license
<?php $students = ['jamal' , 'kalam' , 'salam' , 'rafik']; // $students[2] = 'changed'; // $students[] = 'karim'; // array_pop() // array_shift() // array_push() // array_unshift() // $student = array_shift($students); $student = array_unshift($students, 'tarek', 'yash'); var_dump($students); var_dump($student); ...
true
2cb6e3986352355e24b8bfff3ea0ef495f29c3f8
PHP
renepardon/Geokit
/tests/Geokit/Tests/Geometry/LineStringTest.php
UTF-8
1,161
2.875
3
[ "MIT" ]
permissive
<?php /* * This file is part of Geokit. * * (c) Jan Sorgalla <jsorgalla@googlemail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Geokit\Tests\Geometry; use Geokit\Geometry\LineString; use Geokit\Geometry\Point; ...
true
c7439ea92fec313d90ed28c0d8e457bf17653d6e
PHP
mochi5o/product
/datainsert_area.php
UTF-8
1,922
2.734375
3
[]
no_license
<?php // APIからデータベースへのデータ取り込み用ファイル(エリア) // // try { // $pdo = new PDO('mysql:dbname=gs_db;charset=utf8;host=localhost','root',''); // } catch (PDOException $e) { // exit('dbError:'.$e->getMessage()); // } include('functions.php'); $pdo = db_conn(); $url= 'https://api.gnavi.co.jp/master/GAreaLargeSearc...
true
5591d3d69fb88f5ee714e60d195c4d3902bb9a87
PHP
haerunn/tugas_rpl
/application/models/MemberModel.php
UTF-8
1,117
2.71875
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php Class MemberModel extends CI_Model { public $id_member; public $nama_member; public $tgl_lahir; public $jenis_kelamin; public $no_hp; public $email; public function get_all_data_member() { $query = "SELECT * from member"; return $this->db->query($query)->result_array(); } function member_get_lis...
true
7b02b997cf6ef0bd69bbed126e99b7315314b6e6
PHP
opiumblu/barosello_04042017
/index.php
UTF-8
1,470
3.015625
3
[]
no_license
<?php include "utility_fuctions.php"; include "Barosello.class.php"; define("NUM_MAX", 100); define("SEPARATOR", ','); $obj = new Barosello(); // STEP1 $rules1 = [3 => "Baro", 5 => "Sello"]; echo "<b>STEP1: </b><br>"; $obj->standardOutput($rules1, NUM_MAX, SEPARATOR); // STEP2 $rules2 = [3 => "Baro", 5 => "Sello"...
true
430fee1a105d34531180f998df0a3ddb08e02fd6
PHP
carlosalva82/expense-tracker
/app/Http/Controllers/ExpenseController.php
UTF-8
1,956
2.609375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Expense; use App\Http\Requests\StoreExpense; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; class ExpenseController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index(i...
true
9cf6db744f53d39ecf6aad832f5b38187d9f7fb9
PHP
sinri/Ark-Core
/src/entity/ArkFileSystemItemEntity.php
UTF-8
3,721
2.859375
3
[ "MIT" ]
permissive
<?php namespace sinri\ark\core\entity; use sinri\ark\core\ArkHelper; use sinri\ark\core\exception\NotADirectoryException; use sinri\ark\core\exception\NotAValidPathException; /** * Class ArkFileSystemItemEntity * @package sinri\ark\core\entity * @since 2.5 */ class ArkFileSystemItemEntity { const TYPE_FILE...
true
b8584003d29c7c44dfaba8b7a5e884b58e44e815
PHP
vortrixs/slim-basic-login
/src/Action/RegisterUserAction.php
UTF-8
2,576
2.828125
3
[]
no_license
<?php namespace SBL\Action; use SBL\Library\AbstractAction; use SBL\Library\Crud; use SBL\Model\UserModel; use SBL\View\SignupView; use Slim\Psr7\Request; use Slim\Psr7\Response; class RegisterUserAction extends AbstractAction { /** * @var array */ private $errors = []; /** * @param Requ...
true
f941a6fb69a651fa4d40f8790dcb57ac27e1505f
PHP
diezc/PT-Logger
/ptlogger_web/month.php
UTF-8
2,202
3.28125
3
[]
no_license
<!DOCTYPE html> <html> <head> <title>Meses</title> </head> <body> <?php # Reanudación de sesión: session_start(); if (isset($_POST["firstyear"]) and isset($_POST["lastyear"])){ $firstyear=$_POST["firstyear"]; $lastyear=$_POST["lastyear"]; } else{ $firstyear=$_SESSION['firsty...
true
3859b56809be6840ebd0dbbbe1c196914cd7984f
PHP
inunosinsi/soycms
/cms/common/domain/admin/SiteDAO.class.php
UTF-8
935
2.65625
3
[]
no_license
<?php /** * @entity admin.Site * @date 2007-08-22 18:42:19 */ abstract class SiteDAO extends SOY2DAO{ /** * @return id */ abstract function insert(Site $bean); /** * @no_persistent #siteId# */ abstract function update(Site $bean); abstract function delete($id); /** * @index id */ abstract func...
true
88b8dbca8b02144ec14e5445126da5daebc3f805
PHP
lostinfo/jos-open-api
/src/request/DspReportAdgroupkeywordQuery.php
UTF-8
6,416
2.515625
3
[]
no_license
<?php namespace Lostinfo\JosOpenApi\request; /** * 查询.快车.指定单元下关键词及对应效果数据 * 京准通-快车API-京准通快车相关API * url: http://open.jd.com/home/home#/doc/api?apiCateId=151&apiId=1305&apiName=jingdong.dsp.report.adgroupkeyword.query * Class DspReportAdgroupkeywordQuery * @package Jd\request */ class DspReportAdgroupkeywordQuery ...
true
2993984c69fc8127cd928d1b70b12e6deb87a808
PHP
igrsSystem/Sistema_estoque
/views/login.php
UTF-8
380
2.53125
3
[]
no_license
<!DOCTYPE html> <html> <head> <title>login</title> <meta charset="utf-8"> </head> <body> <form method="POST"> Seu Numero:<br> <input type="text" name="number"><br><br> Sua Senha:<br> <input type="password" name="password"><br><br> <input type="submit" name="entrar"> </form> <?php if(!empty($msg)): ?> <h...
true
a43f8f6bf9b667a5d865632be2f3c630c15c725f
PHP
hlbreyes/profiler
/checkduplicate.php
UTF-8
1,116
2.890625
3
[]
no_license
<?php //Check if applicant name, birthday, and parent's name is already in the list. /*Defaults * $host = "localhost" * $username = "root"; * $password = ""; * $db = "profiling_db"; */ $host = "localhost"; $username = "root"; $password = "vem515"; $db = "profiling_db"; $con = mysqli_connect($host, $use...
true
63958988e135b9c6b8d725f3839cd15fa8c4f046
PHP
13222204208/vueapi
/app/Models/Permission.php
UTF-8
4,752
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Models; use App\Util\Arr; use Spatie\Activitylog\Traits\LogsActivity; use Spatie\Permission\Exceptions\PermissionDoesNotExist; /** * App\Models\Permission * @property string $guard_name * @property \Illuminate\Support\Carbon|null $created_at * @property \Illuminate\Support\Carbon|null $update...
true
1baf5e41d9dac4feaa18bcd1c54c45e2bfb0a492
PHP
nirdoshbista/flash
/excelEMIS/importEMIS_backend.php
UTF-8
64,703
3
3
[]
no_license
<?php /** function that retrieves a students records from the excel file * * @param type $excelObject * @param type $startingRow * @param type $sheet_index * @return array */ function getStudentsInfo($excelObject,$startingRow,$sheet_index){ $students_info=array(); //get student information from the sheet...
true
4a7cb683f49ba7fb696c992ab93e7175262f3115
PHP
rahulyhg/media-store
/app/controllers/MediaPurchaseController.php
UTF-8
989
2.59375
3
[]
no_license
<?php use MediaStore\Services\PaymentProcessingService; /** * Created by PhpStorm. * User: kaso * Date: 10/7/2014 * Time: 2:58 PM */ class MediaPurchaseController extends \BaseController { /** * @var PaymentProcessingService */ private $paymentProcessingService; public function __...
true
c8b70aa250e92591c960a5cfe0c4e846f02fabdb
PHP
anggadarkprince/prahu-pricing-management
/application/models/modules/Mailer.php
UTF-8
2,341
2.609375
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Mailer extends CI_Model { public function __construct() { $this->load->library('email'); } /** * Simple send template email. * * @param $to * @param $title * @param $template * @param $dat...
true
c289d038e6f5c86bdd331764a4eaa4df1cff51fb
PHP
zhouchang2017/app-mws
/app/Models/OrderItem.php
UTF-8
1,007
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Models; use App\Models\DP\Product; use App\Models\DP\ProductVariant; use App\Traits\MoneyFormatableTrait; /** * @property mixed variant */ class OrderItem extends Model { use MoneyFormatableTrait; protected $fillable = ['quantity', 'variant_id', 'product_id', 'origin_price', 'price', '...
true
2d01e9d1602b5ad89d65b1157abed9f93e636ce6
PHP
novvai/php-course-project
/Novvai/Stacks/Base.php
UTF-8
2,240
3.203125
3
[]
no_license
<?php namespace Novvai\Stacks; use ArrayIterator; use IteratorAggregate; use Novvai\Interfaces\Arrayable; use Novvai\Stacks\Interfaces\Stackable; abstract class Base implements IteratorAggregate, Stackable, Arrayable { protected $items = []; public function getIterator() { return new ArrayIterat...
true
1460d298183f22879b8a8bc54b27cb67be604d66
PHP
pawodyk/TUDublin_WebApps-Lecture1
/PHP_Basics/Ex1/main.php
UTF-8
118
3.140625
3
[]
no_license
<?php $months = ['January', 'February', 'March']; foreach ($months as $month) { print $month; print "\n"; }
true
5b21e8b9637f140fd328229790b8c71fc9ce9b5a
PHP
ladushki/search-service
/app/VehicleModel.php
UTF-8
519
2.609375
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\BelongsTo; use Illuminate\Database\Eloquent\Relations\HasMany; class VehicleModel extends Model { protected $fillable = ['name','manufacturer_id']; public function manufacturer(): BelongsTo { ...
true
3efb3542d3edf4d6feb622da7c27efcfcafc0962
PHP
jcsj89/santana
/src/Domain/User/Service/UserSelect.php
UTF-8
1,298
3.078125
3
[]
no_license
<?php namespace App\Domain\User\Service; use App\Domain\User\Data\UserCreateData; use App\Domain\User\Repository\UserCreatorRepository; /** * Service. */ final class UserSelect { /** * @var UserCreatorRepository */ private $repository; /** * The constructor. * * @param UserCr...
true
b6ea6ead39b6764f47ed086d9671671d35ac0b1a
PHP
BackupTheBerlios/freeform-frmwrk
/freeform/packages/html/HTMLTag.php5
UTF-8
8,957
2.59375
3
[]
no_license
<? /** * The HTMLTag is the base class of tags in HTML Document API. It * allows you to control various aspects of tag behaviour and create * complex views with a single tag. The tags effectively constitute * the View components in the MVC architecture. * * All tags can have children - either other tags ...
true
0d4af4b9682a8def6f57a757c3e4aff868e508be
PHP
vinodkumar1991/vinod_pt
/MPS/protected/models/VehicleServiceType_Model.php
UTF-8
992
2.59375
3
[]
no_license
<?php class VehicleServiceType_Model extends CActiveRecord { public $strTable = 'vehicle_service_types'; public function tableName() { return $this->strTable; } public static function model($className = __CLASS__) { return parent::model($className); } /** ...
true
78a6017797f50ae9beb5492019252fc6d83fe1ee
PHP
LyamkinViktor/Pr-of-it
/lesson4/gallery/index.php
UTF-8
786
2.515625
3
[]
no_license
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Галерея</title> </head> <style> img { width: 300px; height: 200px; margin: 5px; } </style> <body> <?php $pictures = include __DIR__ . '/data.php'; foreach ($pictures as $key => $pic) { if...
true
35f67988911af74fe1041385d0182a6bebd426fc
PHP
CrystalMare/iproject
/hosted/pages/wachtwoordherstel.php
UTF-8
2,103
2.765625
3
[]
no_license
<?php setDefaultBuffer(); switch ($_SERVER['REQUEST_METHOD']) { case 'GET': get(); break; case 'POST': post(); break; default: get(); } function setDefaultBuffer() { global $buffer; $buffer['emailerror'] = ""; } function get() { global $buffer; } fu...
true
df80c60be201fad49e97842b42a6427b6e8db9d9
PHP
jaredwilli/wphonors
/themes/wphonors/sidebar.php
UTF-8
1,825
2.515625
3
[ "CC-BY-3.0" ]
permissive
<div id="sidebar"> <ul> <?php if(function_exists('dynamic_sidebar')) { dynamic_sidebar('HomePage'); } ?> <?php if( !is_home() || !is_404() ) { ?> <li><h2 class="home-latest">Latest Submissions</h2> <ul> <?php $wpsnip = new WP_Query( array( 'post_type' => array( 'site', 'theme', 'plugin', 'person' ), 'showpost...
true
e8c0fbc58d712d562118d98a85243c66f94149ba
PHP
zrkb/nexus
/src/Helpers/array_helper.php
UTF-8
523
3.140625
3
[ "MIT" ]
permissive
<?php if (! function_exists('array_element')) { /** * Check if array has element with the specified key */ function array_element(string $key, array $array) { // We want to take the performance advantage of isset() while keeping // the NULL element correctly detected // See: h...
true
ac3140b48656ea788b677f6a80bd02a8d32102a6
PHP
wekiwork/moorexa-core
/Common/Interfaces/PackageManagerInterface.php
UTF-8
421
2.53125
3
[]
no_license
<?php namespace Lightroom\Common\Interfaces; use Lightroom\Core\{ Payload, BootCoreEngine }; /** * @package Package manager interface */ interface PackageManagerInterface { /** * @method PackageManagerInterface register payload for package manager * @param Payload $payload * @param BootCoreEng...
true
a56366a1cd418624646c7075cfa1cc43aedabf82
PHP
qqqkinokoppp/okashi-days
/admin/member/order_history/index.php
UTF-8
3,093
2.609375
3
[]
no_license
<?php require_once("../../../classes/Config.php"); // 必要なクラスのファイルを読み込む require_once(Config::APP_ROOT_DIR.'/classes/util/Session.php'); require_once(Config::APP_ROOT_DIR.'/classes/util/Common.php'); require_once(Config::APP_ROOT_DIR.'/classes/model/Order.php'); require_once(Config::APP_ROOT_DIR.'/classes/model/Member.ph...
true
496d4a67920605840db2bb674d5311c41741739a
PHP
xoptov/binance-platform
/src/Model/Request/OrderOpen.php
UTF-8
1,320
2.921875
3
[]
no_license
<?php namespace Xoptov\BinancePlatform\Model\Request; use Xoptov\BinancePlatform\Model\CurrencyPair; use Xoptov\BinancePlatform\Model\Part\TypeTrait; use Xoptov\BinancePlatform\Model\Part\VolumeTrait; use Xoptov\BinancePlatform\Model\Interfaces\OrderTypeInterface; abstract class OrderOpen extends Order implements Or...
true
d4d335fb1686ffd1eeea9527bc073e60d104dc90
PHP
dvsa/olcs-transfer
/test/src/Validators/ValidateEachTest.php
UTF-8
10,682
2.53125
3
[ "MIT" ]
permissive
<?php namespace Dvsa\OlcsTest\Transfer\Validators; use Dvsa\Olcs\Transfer\Validators\EmailAddress; use Dvsa\Olcs\Transfer\Validators\ValidateEach; use Laminas\Validator\Digits; use Laminas\Validator\GreaterThan; use Laminas\Validator\IsCountable; use Laminas\Validator\NotEmpty; use Laminas\Validator\ValidatorInterfac...
true
3539c742c07eb53a191eb4293ec3fcf23b77af1d
PHP
jacobpollard/homestead
/class/Autoassigner.php
UTF-8
4,227
3
3
[]
no_license
<?php PHPWS_Core::initModClass('hms', 'HousingApplication.php'); PHPWS_Core::initModClass('hms', 'HMS_Room.php'); class Autoassigner { private $term; private $applications; private $pairs; private $rooms; private $pairingStrategies; private $assignmentStrategies; public function __cons...
true
d0a6b730eb1c957bbce2e56be71d9ee520b46177
PHP
quangquach99/Q21Shop
/MVC/Models/Product.php
UTF-8
6,268
2.8125
3
[]
no_license
<?php class Product extends Dbh { public function getAllProducts() { $sql = "SELECT `product_id`,`product_code`,`product_name`,`product_price`,`product_state`, `product_category`,`product_image`,`product_highlight`,`product_quantity`,`product_details`, `product_description`,`products`.`reg_...
true
b7ad9b3905cbf3610681adf6f4ac3acea4ed5b16
PHP
20100204/shopping
/components/MyBehavious.php
UTF-8
629
2.578125
3
[ "BSD-3-Clause" ]
permissive
<?php /** * Created by PhpStorm. * User: jason * Date: 2016/9/7 * Time: 10:31 */ namespace app\components; use yii\base\Behavior; class MyBehavious extends Behavior { public $p1; public $p2; const EVENT_A='a'; const EVENT_B='b'; public function setP($v){ $this->p1 = $v; } ...
true
bdb8dff0a3d3ac59ece3fdf2429a5d189ea37acb
PHP
Titi196711/Ogelie
/mail.php
UTF-8
2,406
2.5625
3
[ "MIT" ]
permissive
<?php //use PHPMailer\PHPMailer\PHPMailer; //use PHPMailer\PHPMailer\SMTP; //use PHPMailer\PHPMailer\Exception; require('src/PHPMailer.php'); require('src/SMTP.php'); require('src/Exception.php'); require('src/OAuth.php'); require('src/POP3.php'); ?> <!--<form method="post" action="" enctype ="multipart/form-data"> ...
true
43c6c41ca9ec10a61fdc3b154688e362517efa77
PHP
305806761/babyfs
/models/Section.php
UTF-8
6,869
2.75
3
[ "BSD-3-Clause" ]
permissive
<?php /** * Created by PhpStorm. * User: malil * Date: 2016/10/8 * Time: 10:46 */ namespace app\models; use Yii; use yii\base\Model; use yii\db\ActiveRecord; class Section extends ActiveRecord { /** * * 通过课程名称查找课程id */ public static function getByName($section_name) { if ($se...
true
caefde33fb7baa917a85b0e2b4eaeab3f7d4fe5c
PHP
duncanidaho14/SCSymfony
/src/AppBundle/Controller/EventsController.php
UTF-8
3,214
2.65625
3
[ "BSD-3-Clause", "MIT" ]
permissive
<?php namespace AppBundle\Controller; use AppBundle\Entity\Event; use AppBundle\Service\MarkdownTransformer; use AppBundle\Service\NameGenerator; use DateTime; use Psr\Log\LoggerInterface; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter;...
true
db4f905ac2fb415a149d7335db8d514a582d9f4d
PHP
MohosinMiah/PHP
/Fundamental php/03. DataTypes/datatype.php
UTF-8
533
3.921875
4
[]
no_license
<?php /* 1. PHP supports the following data types: a) String b) Integer c) Float (floating point numbers - also called double) d) Boolean e) Array f) Object g) NULL 2. A variable that has no value assigned to it is called NULL. */ // null $x; var_dump($x); // output: NULL // string $...
true
2e8ca665d4b246afb9dfbbcac7c3a3d00ec5dc76
PHP
MRossettiPQ/Topicos3Web
/Exercicio 5/Exercicio 5.php
UTF-8
1,248
3.09375
3
[]
no_license
<html> <head> <title>Exemplo Conexão Banco</title> </head> <body> <?php $servername = "localhost"; $username = "root"; $password = ""; $link = new mysqli($servername, $username, $password); if ($link->connect_error) ...
true
69dde4c2aff419d805f8b537cbef05c67d7ddd5e
PHP
Xiedengfeng0911/blog
/app/controller/UserController.php
UTF-8
5,535
2.859375
3
[]
no_license
<?php namespace controller; use framework\Code; use framework\Page; use model\UserModel; use model\WordModel; class UserController extends Controller { //使用一个变量,用来承接model类的对象 public $user; public $word; function __construct() { parent::__construct(); $this->user = new UserModel(); $this->word = new WordMode...
true
c4cb92ad784570bbb31f732abd37a6825faffac9
PHP
Mohammed-Alama/pig_latin
/Pig_Latin.php
UTF-8
5,699
3.71875
4
[]
no_license
<?php class Pig_Latin { protected $word; private $vowels = ['a', 'e', 'i', 'o', 'u']; private $yay = 'yay'; private $ay = 'ay'; public function __construct($word) { $this->word = $word; $this->print($this->word); } /** * @param $word * @return array */ ...
true
515ecec35acbdcd772c4a1c670e37a94cdf790db
PHP
sergiosuarez/guayapp
/data/informacion/BD.php
UTF-8
2,507
3.078125
3
[]
no_license
<?php /* * ******************************************** The MyReview system for web-based conference management Copyright (C) 2003-2006 Philippe Rigaux This program 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 ...
true
ecd2fba851ea705dab8b7e3b12fdaf4c445def70
PHP
BenLorantfy-Archive/northsciencesolutions
/php/content.class.php
UTF-8
1,390
3.09375
3
[]
no_license
<?php // // Requires // -------- // Make sure working directory is root so paths point properly. // Since php files should be placed in either root or root/php, // this checks if working directory is /php and if so moves up // if(basename(getcwd()) == "php") chdir("../"); // // Classes // require_once("php/users.cla...
true
ffc37c1b4d30c5cd5c1fcc6766c613cfaade1fbb
PHP
Ceindetec/AppLearningWords
/vendor/kendoui/lib/Kendo/UI/Tooltip.php
UTF-8
6,644
2.5625
3
[ "MIT" ]
permissive
<?php namespace Kendo\UI; class Tooltip extends \Kendo\UI\Widget { public function name() { return 'Tooltip'; } public function html() { //tooltip does not render content } public function script($executeOnDomReady = true) { $script = array(); if ($executeOnDomRe...
true
e7963ddc7584c5ac10e13cb3b551e13ce19af8b0
PHP
michaloo/resform
/src/lib/Filters.php
UTF-8
1,182
2.65625
3
[]
no_license
<?php namespace Resform\Lib; class Filters { static function age($string) { $age = \DateTime::createFromFormat('Y-m-d', $string); $date = new \DateTime(); $diff = $date->diff($age); return $diff->y; } static function ajaxurl() { return admin_url( 'admin-ajax....
true
07843857033c2b4482e21d7349a4d1637a031832
PHP
simonkq1/class_php
/2018.05.01/class_4.php
UTF-8
310
2.53125
3
[]
no_license
<?php $fp=fopen("test1/class_1.txt",'r+'); //$cont = fread($fp,20); //echo nl2br($cont); //while($cont = fgets($fp)){ // echo $cont.'<br>'; //} //$cont = fread($fp, 2000); fwrite($fp,"Hello, World123122"); fclose($fp); ?> <!----> <!--<form>--> <!-- <input type="file" name="upload">--> <!--</form>-->
true
151d2a25cc22d6da098e20b2e33c77a4089a33b6
PHP
Davi-zzz/my-tnl-challenge
/src/app/Http/Controllers/API/RestaurantController.php
UTF-8
3,406
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\API; use App\Http\Controllers\API\BaseController; use App\Models\Restaurant; use Exception; use Illuminate\Http\Request; use Illuminate\Support\Facades\Validator; class RestaurantController extends BaseController { /** * Display a listing of the resource. * * @...
true
ff97c5d1cd37810fe1c4786be9fbb44394f6ff31
PHP
bumptakayuki/cakephp_20150919
/CakeBlog/src/Util/PagingUtil.php
UTF-8
7,254
2.875
3
[]
no_license
<?php namespace App\Util; use App\Bean\PagingInfoBean; /** * ページング処理をまとめたUtilityクラス * * @access public * @author Takayuki_suzuki * @package Util */ class PagingUtil { // ページング表示件数 protected $displayLimit = 5; // ページング表示件数 protected $maxPageDisplayLimit = 7; /** * ページングメソッド ...
true
5e0079abb624000957eaa0b4e410b0d56c35f8ce
PHP
ArielAereal/2018PHPC1
/clase2/Resueltos/ej_15/index.php
UTF-8
627
3.796875
4
[]
no_license
<?php /* Notas del ejercicio: faltan datos para calcular el perímetro de un triángulo el método Dibujar muestra pero no retorna un string */ include "entidades/figurageometrica.php"; include "entidades/rectangulo.php"; include "entidades/triangulo.php"; $figuna = new Rectangulo(3,7); echo "<pre>"; $figuna->s...
true
d28a10fa74c9d8e4caf890d1bbe6cfe388d1768f
PHP
noemdb/sgi
/app/Models/poa/Mlogico.php
UTF-8
853
2.578125
3
[]
no_license
<?php namespace App\Models\poa; use Illuminate\Database\Eloquent\Model; class Mlogico extends Model { /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'poa_id', 'tipo', 'resumen', 'indicadores', 'mverificacion', 'supuestos' ]; /*INI r...
true
9c7e828cb0ee052ad0024ef949677d571a8fbf48
PHP
rahulpatel-tavant/hackerearth
/hackerearth-master/egg_6_8.php
UTF-8
765
3.359375
3
[]
no_license
<?php function getdata($sum){ $num = $sum; if($num %8 == 0){ $data = $num/8; return $data; } else { $num = $num/8; $num = floor($num); for($i=$num;$i>=1;$i--){ $f = $i*8+($num-$i+1)*6; if($f == $sum){ $data = $num+1; return $data; } } $num = ...
true
a16e30bdbe086e28ec175b9ff205b8dfe0abfe98
PHP
cmn32480/exec-irc-bot
/scripts/chart_lib.php
UTF-8
1,793
2.578125
3
[ "Unlicense" ]
permissive
<?php ##################################################################################################### function chart__ppu($pix,$min,$max) { return (($pix-1)/($max-$min)); } ##################################################################################################### function chart__r2p_x($w,$min_x,$...
true
3173d673ed5eac5e0df4e187f84c7cd22966879b
PHP
khuppenbauer/MapSeven.Gpx
/Classes/Domain/Model/Strava.php
UTF-8
4,100
2.546875
3
[ "MIT" ]
permissive
<?php namespace MapSeven\Gpx\Domain\Model; /* * * This script belongs to the MapSeven.Gpx package. * * * * ...
true
b342a2da865713738bdbe8d4dcf5e87161c67ec9
PHP
luigif/WsdlToPhp
/samples/xignite-funddata/Short/Debt/XiFundDataTypeShortTermDebt.php
UTF-8
6,561
2.75
3
[]
no_license
<?php /** * Class file for XiFundDataTypeShortTermDebt * @date 08/07/2012 */ /** * Class XiFundDataTypeShortTermDebt * @date 08/07/2012 */ class XiFundDataTypeShortTermDebt extends XiFundDataWsdlClass { /** * The USTreasury * Meta informations : * - minOccurs : 1 * - maxOccurs : 1 * @var double */ ...
true
fbd1ddd80416b7386c0f78eb34d7695a2fb31572
PHP
verysuper/wda_php_train
/codeofaninja/pdo01/database.php
UTF-8
664
3.25
3
[]
no_license
<?php class Database{ //create object have must add modifiter private $dsn = "mysql: dbname=php2018; host=localhost; charset=utf8"; private $username = "root"; private $password = ""; public $conn; //******************* public function...
true
cfb69e749eb0b5eefb29c11feebdd4f337aff27a
PHP
ngonimuro/Photoblog
/app/models/Article_model.php
UTF-8
2,833
2.75
3
[ "MIT" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /** * @category Model * @author Florian Dahlitz * * handles article-based data */ class Article_model extends MY_Model { /** * default table */ protected $table = 'articles'; /** * validation rul...
true
4aca5485e57a8aead334e2215cc261307559aa20
PHP
m-jarmula/cakephp-FileUploaderComponent
/FileUploaderComponent.php
UTF-8
4,205
2.8125
3
[]
no_license
<?php App::uses('Component', 'Controller'); class FileUploaderComponent extends Component { protected $file; protected $dir = false; protected $maxFileSize = true; protected $allowedExtensions = true; protected $newFileName = false; protected $ext = false; public function setFile(array $...
true
2426c1f42803b7ca29b008591d9a4d7da36791ea
PHP
danielseek/drifting
/mylibs/Plupload.php
UTF-8
2,025
2.84375
3
[]
no_license
<?php namespace Natty; use Nette\Object; class UploadedQueue extends Object { private $session; public function __construct(\Nette\Http\Session $session) { $this->session = $session->getSection("uploadedQueue"); unset($this->session->uploads); } public function addFinishedUpload($fi...
true
4f639e02a863a03a05c265ae825977e435f889ea
PHP
alejandroEGT/tarea_trabajo_uno
/codigo/cargar_datos.php
UTF-8
2,681
2.5625
3
[]
no_license
<?php switch ($_REQUEST['method']) { case 'llenar_select_user': select_user(); break; case 'get_datos': $id_user = $_POST['id_user']; $id_rama = $_POST['id_rama']; $f_desde = $_POST['f_desde']; $f_hasta = $_POST['f_hasta']; $h_inicio = $_POST['h_inicio']; $h_fin = $_POST['h_fin']; get...
true
bfbd9bb7e956fd5fccdfaf86337a7732fdde0620
PHP
barbosalucas278/slim-php-heroku
/app/Clase6/Ejercicio27/Clases/AccesoDatos.php
UTF-8
976
2.890625
3
[]
no_license
<?php class AccesoDatos { private static $_ObjetoAccesoDatos; private $_PDO; private function __construct() { try { $this->_PDO = new PDO( 'mysql:host=localhost;dbname=clase4;charset=utf8', 'root', '', array(PDO::ATTR_E...
true
ff80b186782feea57ffc420754a3263c14d30ba9
PHP
NizarBoussarsar/Carpooling
/Application_mobile/covoituragej2me/getCovoitureurConnecte.php
UTF-8
1,360
2.578125
3
[]
no_license
<?php $hostname_localhost ="localhost"; $database_localhost ="covoiturage"; $username_localhost ="root"; $password_localhost =""; $con = mysql_connect($hostname_localhost,$username_localhost,$password_localhost) or trigger_error(mysql_error(),E_USER_ERROR); mysql_s...
true
f4446f87fd74255a8ac36411409a8f017d41e576
PHP
stsourdos/kritondromena
/model/clsKdObjekt.php
UTF-8
3,430
2.984375
3
[]
no_license
<?php /* An implementation of the Active record pattern. * http://stackoverflow.com/questions/12564328/php-parent-subclass-db-operations*/ class KdObject { protected $tablename; protected $table_pk; public $id; public $data = array(); protected $keymap = array(); function fetchAll () { $con = get_mysql_c...
true
145ffbe39a4f98ba5674eb5f514306ef6655cc09
PHP
DMSWorksLLC/php-xbase
/src/XBase/Column/DBaseColumn.php
UTF-8
2,304
2.921875
3
[ "MIT" ]
permissive
<?php namespace XBase\Column; use XBase\Enum\FieldType; use XBase\Stream\Stream; class DBaseColumn extends AbstractColumn { public static function getHeaderLength(): int { return 32; } public static function create(string $memoryChunk, int $colIndex, ?int $bytePos = null) { if (s...
true
f4a5c18bb48cf87e1fcb7ddc0cc8753fd50e6560
PHP
EorlBruder/ris2.0
/http/server/userDao.php
UTF-8
1,232
2.8125
3
[]
no_license
<?php require_once('server/dao.php'); /** * DAO für die User */ class UserDao extends Dao { private $user; private $auth; public function __construct() { parent::construct('UserDao'); $this->user = new \DB\SQL\Mapper($this->db, 'customer...
true
261d84414363bfa9bc2f4efaee800a9859e152e8
PHP
evgenygil/Taobao-Tmall-parser
/taoparser/function.php
WINDOWS-1251
1,314
2.703125
3
[]
no_license
<?php function getDomain($url) { $pieces = parse_url($url); $domain = isset($pieces['host']) ? $pieces['host'] : ''; if (preg_match('/(?P<domain>[a-z0-9][a-z0-9\-]{1,63}\.[a-z\.]{2,6})$/i', $domain, $regs)) { return $regs['domain']; } return false; } function sipp($input) { if(get_magic_quotes_gpc...
true
790a70d224a92a8edea6dd4cdb91c8e30082edf9
PHP
LBHackney-IT/DoS-scraper-service
/source/app/Http/Request/RequestInterface.php
UTF-8
2,582
2.84375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Request; /** * API request interface definition RequestInterface. * * @package App\Component\Api\Request */ interface RequestInterface { /** * Method for calling any user api resource. * * @param string $path * Path element to call. * @param array $options *...
true
f03cfd27eac08e616857cf12a168c08233613174
PHP
srujana2105/OnlineTests
/LoadMore.php
UTF-8
1,300
2.71875
3
[]
no_license
<?php include "connection.php"; $resultsPerPage=2; $page_limit=((int)$_POST['page']-1)*($resultsPerPage); //echo $resultsPerPage,$page_limit,$_POST['sub'],$_POST['page']; $sql = "SELECT questions.*,subjects.Subject FROM questions JOIN subjects USING(SID)"; if(($_POST['sub'])!="undefined") ...
true
8e11e300f52bd66e427f5720e27de9c20e8acf44
PHP
lcoclea/aircall-php
/src/AircallWebhooks.php
UTF-8
1,649
2.875
3
[]
no_license
<?php namespace Aircall; use GuzzleHttp\Exception\GuzzleException; /** * Class AircallWebhooks. */ class AircallWebhooks { const BASE_ENDPOINT = 'webhooks'; /** @var AircallClient */ private $client; public function __construct(AircallClient $client) { $this->client = $client; } ...
true