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
53e766023d5ef17b5d3998cb8677bf9fc97cd54a
PHP
BTS-SIO2-2013/BilletMaster
/class/Ticket.class.php
UTF-8
2,795
3.234375
3
[]
no_license
<?php class Ticket { private $id; private $code; private $libelle; private $etat; private $dateValidation; private $idUtilisateur; private $idEvenement; public function __construct() { $nbArguments = func_num_args(); switch($nbArguments) { ...
true
010b4f77516a98f52091da1dfbf05520183d9107
PHP
KristianND/belajarPBW
/editstatistik.php
UTF-8
2,740
2.921875
3
[]
no_license
<?php // include database connection file include_once("config.php"); // Check if form is submitted for user update, then redirect to homepage after update if(isset($_POST['update'])) { $id = $_POST['id']; $tahun2014=$_POST['tahun2014']; $tahun2015=$_POST['tahun2015']; $tahun2016=$_POST['tahun2016']; $t...
true
5ecabc00ecbbb6f5be594fbb3c18bd74d07289d0
PHP
dingwenxiu/xxyz
/app/Models/Player/PlayerTransferRecords.php
UTF-8
2,226
2.546875
3
[]
no_license
<?php namespace App\Models\Player; use App\Models\Base; class PlayerTransferRecords extends Base { protected $table = 'user_transfer_records'; static function getList($c, $pageSize = 20) { $query = self::orderBy('id', 'desc'); // 转出用户ID if (isset($c['from_user_id']) && $c['from_use...
true
69091992dfe6c7ac433618ddf0b32c2a71963bd8
PHP
spiritphp/spirit
/src/Request/UploadedFileError.php
UTF-8
1,882
2.703125
3
[]
no_license
<?php namespace Spirit\Request; class UploadedFileError { static $errors = [ UPLOAD_ERR_INI_SIZE => 'The file "%s" exceeds your upload_max_filesize ini directive (limit is %d KiB).', UPLOAD_ERR_FORM_SIZE => 'The file "%s" exceeds the upload limit defined in your form.', UPLOAD_ER...
true
f30eb5d31db3dd3374d47959ae32c071239f5986
PHP
Hugh-Swin/DP2-project
/predict_group_sales.php
UTF-8
1,230
2.859375
3
[]
no_license
<?php if(isset($_POST["predictGroup"])){ @session_start(); $server = "127.0.0.1"; $user = "root"; $pass = "pass"; $dbname = "salesdb"; $conn = mysqli_connect($server, $user, $pass, $dbname); if (!$conn) { echo "<p>Database connection failure</p>"; } $predictGroup = ""; $predictGroup = isset($_POST["predictGroup"]) ? ...
true
4cfca286c714be15cee46fd76d0a81e97be0e175
PHP
SuRaMoN/itertools
/tests/itertools/RangeIteratorTest.php
UTF-8
880
2.890625
3
[ "WTFPL" ]
permissive
<?php namespace itertools; use PHPUnit_Framework_TestCase; class RangeIteratorTest extends PHPUnit_Framework_TestCase { /** @test */ public function testRangeIteratorWithFiniteRange() { $this->assertEquals(range(1, 10), $this->irange(1, 10)); $this->assertEquals(range(2, -10, -1), $this->irange(2, -10, -1));...
true
13e63b2f06c29816e8a13f16eda3c064f68d5404
PHP
Jeffrey-Vink/PHP7-en-MySQL
/H6/Opdracht 5/index.php
UTF-8
411
3
3
[]
no_license
<?php session_start(); ?> <!DOCTYPE html> <html lang="en" dir="ltr"> <head> <meta charset="utf-8"> <title></title> </head> <body> <?php function berekenSnelheid($s, $a = 5.5):float { return sqrt((2 * $a * $s))*3.6; } $remspoor = 50; echo "Snelheid van een auto met re...
true
a87231ca6e5178fc2ceceb450c8425b4a57b7588
PHP
pinodex/boardy-old
/src/Boardy/Providers/UsersControllerProvider.php
UTF-8
767
2.5625
3
[ "MIT" ]
permissive
<?php /** * Boardy * * Simple PHP forum app. * * @package boardy * @author Raphael Marco <pinodex@outlook.ph> * @link http://pinodex.io */ namespace Boardy\Providers; use Silex\Application; use Silex\ControllerProviderInterface; class UsersControllerProvider implements ControllerProviderInterface { ...
true
6bdc8f8f27e378f2d1d365a0f2d697958212ec4e
PHP
CyberVladislav/shop
/database/seeds/ProductsTableSeeder.php
UTF-8
1,130
2.5625
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; use Illuminate\Support\Facades\DB; use Faker\Factory as Faker; class ProductsTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $faker = Faker::create(); foreach (range(1,45) as $...
true
69be7b67a62564c4259eca14cdd770be21fdd4ef
PHP
eliseoeric/flight_deck
/app/FlightDeck/Listeners/WatchSales.php
UTF-8
887
2.703125
3
[]
no_license
<?php namespace FlightDeck\Listeners; use Exception; use FlightDeck\Customers\CustomersRepository; use FlightDeck\PurchaseOrders\Events\NewOrderPlaced; use FlightDeck\Representatives\RepresentativeRepository; use Laracasts\Commander\Events\EventListener; class WatchSales extends EventListener{ /** * @var Custo...
true
19f61420aa5af01675bec30f3bb6aa5ca613329c
PHP
devpacdd/dedalo-4-Beta-1
/lib/dedalo/component_av/class.component_av.php
UTF-8
8,630
2.59375
3
[]
no_license
<?php /* * CLASS COMPONENT AV */ require_once( DEDALO_LIB_BASE_PATH . '/media_engine/class.AVObj.php'); require_once( DEDALO_LIB_BASE_PATH . '/media_engine/class.PosterFrameObj.php'); class component_av extends component_common { # Overwrite __construct var lang passed in this component #protected $lang = DEDALO_...
true
70bd7825e2813361cc8bb965073ac25be7ad5fc0
PHP
mathewhany/doune-two
/app/Doune/Helpers/functions.php
UTF-8
1,368
2.953125
3
[]
no_license
<?php use Slim\Slim; function app() { return Slim::getInstance(); } /** * Is it a valid article? If not, redirect back with input. * * @param string $title * @param string $content * @return void */ function validateArticle($title, $content) { if (empty($title) || empty($content)) { redirect()-...
true
62794ff52d0b68b9643aeb3ce35e67d09b46b067
PHP
tatjudy/DMIT2503
/ajax_students/ajax_site/display.php
UTF-8
2,103
2.796875
3
[]
no_license
<?php // Note that there is NO design in this page (other than embedded tags that will be styled at the master page). No doctype, <head>, <style>, etc. require("mysql_connect.php"); // DEFAULT QUERY: RETRIEVE EVERYTHING $result = mysqli_query($con,"SELECT * FROM cd_catalog_class") or die (mysqli_error($con)); $resu...
true
f84b018f5e9ac766a7634ffdaa91b59b21d6aa61
PHP
itabr/simple-database-program-php
/part-2/UID/sql/www/Show_M.php
UTF-8
4,953
2.828125
3
[]
no_license
<?php include('header.php'); ?> <br> <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main"> <h3><b> Movie Information Page:</b></h3> <hr> <h4> <label for="search_input">Search:</label></h4> <form class="form-group" action="search.php" method ="GET" id="usrform"> <input type="text" id="search...
true
43c09244192022cfff2b2786bdaeac460a189848
PHP
VladimirYalumov/OAuth2_test
/app/Entities/OauthAccessToken.php
UTF-8
1,381
2.6875
3
[ "MIT" ]
permissive
<?php namespace App\Entities; use Doctrine\ORM\Mapping as ORM; /** * Class OauthAccessToken * @package App\Entities * @ORM\Entity * @ORM\Table(name="oauth_access_tokens") */ class OauthAccessToken { /** * @ORM\Id * @ORM\ManyToOne(targetEntity="User", cascade="persist") * @ORM\JoinColumn(name=...
true
bcd0bda7a0af38a3707d3ecf6b084f6b7c2c33ea
PHP
phacility/phabricator
/src/applications/maniphest/typeahead/ManiphestTaskClosedStatusDatasource.php
UTF-8
1,837
2.71875
3
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php final class ManiphestTaskClosedStatusDatasource extends PhabricatorTypeaheadDatasource { const FUNCTION_TOKEN = 'closed()'; public function getBrowseTitle() { return pht('Browse Any Closed Status'); } public function getPlaceholderText() { return pht('Type closed()...'); } public functi...
true
7197dc0696ec8f93d7227db3f42040fc5d27ceb6
PHP
edsz14/ABCD22
/www/htdocs/central/test/wxis.php
WINDOWS-1250
3,091
2.515625
3
[]
no_license
<?php /* modifications 20210402 fho4abcd Added test with context */ include("../config.php"); echo "<xmp>"; echo "Path to databases: $db_path--\n"; echo "Path to wxis: $Wxis--\n"; echo "Path to IsisScripts: $xWxis--"; echo "</xmp>"; echo "<hr>"; echo "Testing if the file <b>$Wxis</b> exists<br>"; if (!f...
true
16c7f9f5c6282d20aa65829a2a401cec7d7f5dac
PHP
ThiagoLuizMatos/BancoDeQuestoes
/Assertiva.php
UTF-8
539
3.03125
3
[]
no_license
<?php class Assertiva{ private $afirmativaCorreta; private $afirmativaMarcada =null; public function __construct($gabarito){ $this->afirmativaCorreta = $gabarito; } public function getAfirmativaCorreta(){ return $this->afirmativaCorreta; } ...
true
3d2e8e359b988816079fcdc9f1f418d57a9fcc86
PHP
otis913/SC_group
/php/upHdPeople.php
UTF-8
713
2.609375
3
[]
no_license
<?php // include('./loginCheck.php'); // //取得POST過來的值 // $handClassNO = $_POST["handClassNO"]; // $handClassPeople = $_POST["handClassPeople"]; // $handClassNowPeople = $_POST["handClassNowPeople"]; // //返回訊息文字 // $message = "修改成功!"; // //建立SQL // $sql = "UPDATE HANDCLASS // set // handCla...
true
05b7182a7bf7732bf9114a0a24674129601c7fe8
PHP
nullx27/pathfinder
/app/main/model/usermodel.php
UTF-8
8,407
2.65625
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: exodus4d * Date: 09.02.15 * Time: 20:43 */ namespace Model; use DB\SQL\Schema; use Controller; use Controller\Api\User as User; use Exception; class UserModel extends BasicModel { protected $table = 'user'; protected $fieldConf = [ 'active' => [ ...
true
ba50eed5fe108488f75fc2481c9b66dc06f92194
PHP
EdgarFGarcia/codingbootcamp2
/app/Repository/MainRepository.php
UTF-8
2,375
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Repository; use App\Models\Category; use App\Models\Item; use App\Models\User; use Hash; class MainRepository{ public static function insertcategory($data){ return Category::create([ 'name' => $data->name ]); } public static function getcategory($item...
true
eb9720d885fc69117dbfbc6ae0b5346710551aaf
PHP
TheWizardLlewyn/TheCampaign
/objects/scenario.php
UTF-8
11,603
3.15625
3
[]
no_license
<?php //The scenario object handles creation and resolution of scenarios class Scenario { var $user_id; var $job_id; var $description; var $name; var $scenario_status; var $scenario_date; var $options; var $effected_party_id; var $target_name; var $severity; function __cons...
true
f3965124ad3edb86987f1d413612a49794ac838f
PHP
cbrinicombe13/addressbook
/add.php
UTF-8
5,430
2.765625
3
[ "MIT" ]
permissive
<?php include("entry.php"); ?> <!DOCTYPE html> <html class = "no-js" lang="en" dir = "ltr"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <link rel="stylesheet" href="foundation.css"> <l...
true
e397202ff5ae14772e4903a605b59895493de4c4
PHP
vanlong200880/cms
/vendor/Sky/System/ListDateFormat.php
UTF-8
1,384
2.84375
3
[]
no_license
<?php namespace Sky\System; class ListDateFormat{ public function listDay($min = 1, $max = 31, $active = ''){ $day = array(); $day[] = '<option value="">-- Day --</option>'; for($i = $min; $i <= $max; $i++){ if($i == $active){ $day[] = '<option selected value="'.$...
true
2bbcdb0a09e5713d478ea1b9c779376e4a7cdbc4
PHP
taouraghti/mini-instagram
/app/includes/functions/functions.php
UTF-8
1,500
2.75
3
[]
no_license
<?php function redirect($page, $i=0){ if($i == 0) header('location: ' . URLROOT . '/' . $page); else header('location: ' . $page); exit(); } function redirectError($page, $data, $i=0) { echo '<div class="container" style="margin-top:100px;">'; foreach($data as $e) ...
true
dc2f13ac72006559121bf5933a6e0b7b87a409c8
PHP
WsdlToPhp/PackageOvh
/src/StructType/TelephonySmsSenderAdd.php
UTF-8
4,192
2.9375
3
[ "MIT" ]
permissive
<?php namespace Ovh\StructType; use \WsdlToPhp\PackageBase\AbstractStructBase; /** * This class stands for telephonySmsSenderAdd StructType * @subpackage Structs * @author WsdlToPhp <contact@wsdltophp.com> */ class TelephonySmsSenderAdd extends AbstractStructBase { /** * The session * Meta informat...
true
99c8660cc74bcfdd01892f5a325b4d613d089961
PHP
ealgase/CiteIt
/api/siteinfo/index.php
UTF-8
8,145
2.859375
3
[ "Unlicense" ]
permissive
<?php //dependancies require('utils.php'); //supports either XML or JSON, but JSON by default //HEADERS //check if XML if ($_GET['format']=="xml"){ header('Content-Type:text/xml'); //the xml is human readable, to text/xml is used as opposed to application/xml } else{ header('Content-Type:application/json'); }...
true
69ee4235a1c60f66518c2933855357aad6b941b5
PHP
iexn/weiqing_scaffold
/wsysphp/library/Db.class.php
UTF-8
5,847
2.609375
3
[]
no_license
<?php namespace wsys; class Db { private static function initial() { // 数据表整理优化 load()->classs('db'); load()->func('db'); } public static function sql_table($tablename) { self::initial(); $db = pdo(); $sql_property = "SHOW TABLE STATUS LIKE '" . trim...
true
bf681ca81b2d6583496011d387a7706c40a9532a
PHP
edgiese/rwe
/c/data/data_address.php
UTF-8
5,134
2.796875
3
[]
no_license
<?php if (FILEGEN != 1) die; // interface definition for all custom data types class data_address implements data_customtype { private $line1=''; private $line2=''; private $city=''; private $state=''; private $zip=''; private $country=''; private $bUSAonly=''; function __construct($bUSAonly) { if (!$bUSAon...
true
10f0a88bb5329f826827b3f79e6d402b152f4f33
PHP
xgrind/php7_novidades
/aula11.php
UTF-8
186
2.8125
3
[]
no_license
<?php abstract class Conta { abstract public function verSaldo(int $idUser); } abstract class ContaCorrente extends Conta { abstract public function verSaldo($idUser): int; }
true
37a8c8b1723ab8a8843193beec256a3ea5a4bc4f
PHP
mak-alamin/web_dev_essentials
/php_rest_api/config/Database.php
UTF-8
381
3.078125
3
[]
no_license
<?php class Database { private $host = ""; private $db_name = ""; private $db_user = ""; private $db_pass = ""; private $conn = ""; public function connect() { $this->conn = null; try { $this->conn = new PDO(); } catch (PDOException $e) { ech...
true
6efb72ca6d5a390789dee80341bf7dd7ffb3d43f
PHP
ectrimble20/LeisureConstructionWebsite
/Library/Template/Component.php
UTF-8
4,420
2.671875
3
[]
no_license
<?php namespace Leisure\Library\Template; use Leisure\Library\Common\Settings; class Component { /** * @param $user_id * @param $username * @param $active * @return string */ public static function UserTR($user_id, $username, $active) { $action_text = "Deactivate"; ...
true
1b4b5c0ae8fc00f14caa2c9f8e0d3a0b1483082b
PHP
winni4eva/getdesk-pro
/app/Domain/Services/Day/DayService.php
UTF-8
335
2.796875
3
[]
no_license
<?php namespace App\Domain\Services\Day; use App\Domain\Repositories\Day\DayRepoInterface; class DayService { protected $dayRepo; public function __construct(DayRepoInterface $dayRepo) { $this->dayRepo = $dayRepo; } public function getDays() { return $this->dayRepo->get...
true
c3ec72b536a5f7e52c1bc0bab806aeb18d60822a
PHP
drm/Mystique
/src/Mystique/PHP/Node/Name.php
UTF-8
522
2.859375
3
[ "MIT" ]
permissive
<?php namespace Mystique\PHP\Node; use \Mystique\Common\Compiler\CompilerInterface; use Mystique\Common\Ast\Node\LeafAbstract; class Name extends LeafAbstract implements \Mystique\Common\Compiler\Compilable { function __construct($name) { $this->name = (string)$name; } function compile(CompilerInt...
true
3627b2de5e9c46f4b2b25e1b84f446af8ec7dc0b
PHP
kleopatra999/dfp-query-tool
/src/Inventory/Api/LineItemCreativeAssociationService.php
UTF-8
1,881
2.5625
3
[]
no_license
<?php namespace Inventory\Api; use Common\Api\Authenticator; class LineItemCreativeAssociationService { private $customTargetingService; public function __construct() { $this->customTargetingService = new CustomTargetingService(); } public function create( $creativeId, $lineItemId ) { if ( empty($creative...
true
a2fce5493500b12f47a87d69b5093fa615895e6d
PHP
lunaticPenguin/PhpTools
/app/tools/Constraint.php
UTF-8
5,363
3.328125
3
[ "MIT" ]
permissive
<?php namespace App\Tools; class Constraint { const ARRAY_CONTAINS_ALL_KEYS = 1; const ARRAY_CONTAINS_ALL_VALUES = 2; const ARRAY_IDENTICAL_TO = 4; /** * Allows to check if a variable is a string, and if it has the specified min/max length if so * * @param $strInput * @param array...
true
4efa8fd38c468ab4c1e9c2afb88a6b8531d113a2
PHP
benjaminhansen/workday-wsdl
/src/StructType/Contingent_WorkerType.php
UTF-8
7,424
2.71875
3
[]
no_license
<?php namespace WorkdayWsdl\\StructType; use \WsdlToPhp\PackageBase\AbstractStructBase; /** * This class stands for Contingent_WorkerType StructType * Meta information extracted from the WSDL * - documentation: Response element containing an instance of Contingent Worker and its associated data. * @subpackage St...
true
cea0fcbde398f8821827ed64eb1b9c4d88915b91
PHP
dostontiu/easyway
/console/migrations/m191207_165032_season.php
UTF-8
551
2.640625
3
[]
permissive
<?php use yii\db\Migration; /** * Class m191207_165032_season */ class m191207_165032_season extends Migration { /** * {@inheritdoc} */ public function safeUp() { $this->createTable('season', [ 'id' => $this->primaryKey(), 'name' => $this->string()->notNull(), ...
true
c1f6d189ab35082cfbf456b0b0fb5b1bfff67e5d
PHP
raezon/Reservation
/views/welcome/security/ServicesAndPriceForm.php
UTF-8
2,020
2.515625
3
[]
no_license
<?php namespace app\models\forms; class ServicesAndPriceForm extends \yii\base\Model { public $produit_nom; public $produit_option; public $produit_type; public $nombre_de_persson; public $quantite; public $description; public $price; public $diet; public $imageFile; public $pr...
true
b8b612d628e7fd1e29572aba6cf29189ff186826
PHP
ProjectBFG/Simple-Discussions
/Sources/Subs-List.php
UTF-8
11,674
2.515625
3
[ "Apache-2.0" ]
permissive
<?php /** * ProjectGLS * * @copyright 2013 ProjectGLS * @license http://next.mmobrowser.com/projectgls/license.txt * * This file contains a standard way of displaying lists for SMF. * Simple Machines Forum (SMF) * * @package SMF * @author Simple Machines http://www.simplemachines.org * @copyright 2012 Simpl...
true
464f20ef61b98d774bd43030814214b224a6de2f
PHP
smnscp/pdflib
/src/Scope/Page.php
UTF-8
1,426
2.90625
3
[]
no_license
<?php namespace Epubli\Pdf\PdfLib\Scope; use Epubli\Pdf\PdfLib\Closable; /** * Class Page: A wrapper for a PDFlib Page scope. * @package Epubli\Pdf\PdfLib * @author Simon Schrape <simon@epubli.com> */ class Page extends ScopedObject implements Closable { const SCOPE = 2; /** @var Document The Document c...
true
d59b46f8439b92745f38dd18bfce101184ff145a
PHP
bitBillet/phpadmin
/src/Modules/Category/Domain/Entity/CategoryEditTables.php
UTF-8
229
2.515625
3
[]
no_license
<?php use Core\Domain\Entity\EntityInterface; class CategoryEditTables implements EntityInterface { const TABLE_NAME = 'edit_tables'; public function getTableName(): string { return self::TABLE_NAME; } }
true
b44ef6aa8c5c888dd82b6c7f0474318d87fd9983
PHP
benthud82/printvis
/testtimes.php
UTF-8
2,193
2.71875
3
[]
no_license
<?php Function _ftpupload($ftpfilename,$ftpwhse) { //* Transfer file to FTP server *// $serverarray = array(2=>"10.1.112.199",3=>"10.1.22.212",6=>"10.1.17.208",7=>"10.1.18.194",9=>"10.1.16.206",11=>"10.10.200.209"); $server = $serverarray[$ftpwhse]; //$server = "10.1.16.206"; $ftp_user_name = "anonymous"; $ftp_us...
true
b510bcbdcf54b3d59269ab559aba97a8e60ed031
PHP
demental/wp_citizenry
/widget.php
UTF-8
988
2.671875
3
[]
no_license
<?php class Citizenry_bridge_Widget extends WP_Widget { public function __construct() { $options = array( "classname" => "citizenry-bridge-widget", "description" => "Display random registered user" ); parent::__construct("citizenry-bridge-widget", "Citizenry random user", $options); } public ...
true
ccf85ffef47397e245d888e54ae1390bd8f0a58c
PHP
aimed/buddybeeper-server
/lib/Mail.php
UTF-8
2,088
3.140625
3
[]
no_license
<?php if (!defined("MAIL_DEFAULT_FROM_ADDRESS")) { trigger_error("No MAIL_DEFAULT_FROM_ADDRESS set", E_USER_NOTICE); } class Mail extends Template { /** * Contains the email subject */ public $subject = ""; /** * Contains default data */ public $defaultData = array(); /** * Contains th...
true
f62cc1072bd327b747900feba5bca242665a58fc
PHP
mFaviez/project
/models/NoteManager.php
UTF-8
1,560
3.46875
3
[]
no_license
<?php class NoteManager { private $_db; public function __construct($db) { $this->setDb($db); } public function setDb(PDO $db) { $this->_db = $db; } //Ajoute une note dans la bdd public function insert(Note $note) { $re...
true
6b4f91c4d04a1b7cc97eeb44db628853756285c9
PHP
fkueyu/authorize
/extend/mylib/Assistant.php
UTF-8
2,843
3.03125
3
[ "Apache-2.0" ]
permissive
<?php namespace mylib; class Assistant { /** * 获取周一和周日 getdays('2017-03-18') * Array * ( * [0] => 2017-03-13 * [1] => 2017-03-19 * ) */ public function getdays($day) { $lastday = date('Y-m-d', strtotime("$day Sunday")); $firstday = date('Y-m-d', strtoti...
true
c48ee623ffbc2c046709b2c5dda608642a89123f
PHP
kphefner/simple-mvc
/private/modules/error/ErrorController.php
UTF-8
1,198
2.625
3
[]
no_license
<?php /** * Define Class for Login Controller * * @author Kenny Hefner * @version 1.0 * * @copyright AdFX, Inc., 20 Sep, 2020 * @package controller * **/ /** * Require file containing view superclass */ require('ViewController.php'); /** * Require file containing controller superclass */ require('A...
true
c6c31696333522fb24906bb9f3838ac5bae3d887
PHP
hossainbhat/pharmacy
/app/Imports/ProductImport.php
UTF-8
611
2.609375
3
[ "MIT" ]
permissive
<?php namespace App\Imports; use App\Models\ImportProduct; use Maatwebsite\Excel\Concerns\ToModel; use Maatwebsite\Excel\Concerns\WithHeadingRow; class ProductImport implements ToModel,WithHeadingRow { /** * @param array $row * * @return \Illuminate\Database\Eloquent\Model|null */ public funct...
true
7ce34a2b3ab6417a1f945b9b0c7037ed2d46b8b2
PHP
bstut/hoerapi.php
/HoerAPI/PodcastDeletedItem.php
UTF-8
248
2.625
3
[ "MIT" ]
permissive
<?php namespace HoerAPI; class PodcastDeletedItem { public $event_id, $deldate; public function __construct(array $data){ $this->event_id = (int) $data['event_ID']; $this->deldate = parseDate($data['deldate']); } }
true
e6f2d767065d9d8824ccf04e939eea5f4b809a8c
PHP
octalmage/wib
/php-7.3.0/ext/standard/tests/strings/parse_str_error1.phpt
UTF-8
1,015
2.75
3
[ "BSD-4-Clause-UC", "BSD-3-Clause", "LicenseRef-scancode-other-permissive", "TCL", "ISC", "Zlib", "LicenseRef-scancode-public-domain", "BSD-2-Clause", "blessing", "MIT" ]
permissive
--TEST-- Test parse_str() function : non-default arg_separator.input specified --INI-- arg_separator.input = "/" --FILE-- <?php /* Prototype : void parse_str ( string $str [, array &$arr ] ) * Description: Parses the string into variables * Source code: ext/standard/string.c */ echo "*** Testing parse_str() : er...
true
452e57075c7a97ecd808bb689f806696c30a3cf7
PHP
TuijaStardust/php
/php_methods.php
UTF-8
4,773
3.0625
3
[]
no_license
<?php $pagetitle = "PHP - Methods"; $creation_date = "2021-01-24"; $edit_date = "2021-02-11"; require('includes/header.php'); ?> <h2>Useful in general</h2> <h3>var_dump()</h3> <ul> <li>Print out the details of the variable in the browser; useful to see what variable contains...
true
37ed0aa23eaa0df08a574e45a6bb29801678f5b7
PHP
mixof/Eduparser
/utils/configuration.php
UTF-8
1,165
2.734375
3
[]
no_license
<?php if(!function_exists("getConfig")) { $globalConfig=array(); function getConfig($param) { global $globalConfig; if(isConfig($param)) return $globalConfig[$param]; else return false; } function isConfig($param) { global $globalConfig; if(isset($globalConfig[$param])) return true; return false; ...
true
d3be4bc93fa29436a8ca721f829c213c2e97105c
PHP
akash1706/CRUD-Using-OOP-PHP-and-MYSQLI
/employees/delete.php
UTF-8
430
2.53125
3
[]
no_license
<?php //Deletion // include database connection file require_once'classes/employee.php'; if(isset($_GET['value'])) { // Geeting deletion row id $rid=$_GET['value']; $deletedata=new employee(); $delete=$deletedata->delete($rid); if($delete) { // Message for successfull insertion echo "<script>alert('Reco...
true
b59dabc7fcd1deb7b381b59693110f694f941188
PHP
Greg808/sportradar
/app/src/Service/Container.php
UTF-8
1,289
2.90625
3
[]
no_license
<?php namespace CodingExercise\Service; use PDO; class Container { /** * @var array */ private $configuration; /** * @var PDO */ private $pdo; /** * @var EventsLoader */ private $eventsLoader; /** * @var PDOEventsStorage */ private $pdoEvent...
true
fb2846f6b9d9c153c9168b6014724c30c348a68c
PHP
iamwildtuna/boxberry-sdk
/src/Client.php
UTF-8
20,027
2.640625
3
[ "MIT" ]
permissive
<?php namespace WildTuna\BoxberrySdk; use WildTuna\BoxberrySdk\Entity\CalculateParams; use WildTuna\BoxberrySdk\Entity\Intake; use WildTuna\BoxberrySdk\Entity\Order; use WildTuna\BoxberrySdk\Entity\TariffInfo; use WildTuna\BoxberrySdk\Exception\BoxBerryException; use Psr\Log\LoggerAwareInterface; use Psr\Log\LoggerAw...
true
09aeb3830e070a5458dddbb11ba803ec54c2fe34
PHP
mkilchhofer/bfh-web-2017
/src/model/AttachmentModel.php
UTF-8
3,238
2.953125
3
[]
no_license
<?php require_once 'core/db.inc.php'; require_once 'model.php'; class AttachmentType extends EntityBase { public $title; } class Attachment extends EntityBase { public $gearId, $description, $data, $mimeType, $typeId; } class AttachmentModel { public static function getAtt...
true
6f7b372c0e28106c1cba7f8dbe597c6cb491265a
PHP
isizukaRyo/html.css
/テスト.php
UTF-8
181
3.515625
4
[]
no_license
<?php $a = 128; $b = 6; $c = $a + $b; echo "a+b=$c<br>/n"; $c = $a - $b; echo "a-b=$c<br>/n"; $c = $a * $b; echo "a×b=$c<br>/n"; $c = $a / $b; echo "a/b=$c<br/n";
true
1970972221461df17124b2a1f3a7629ecbd57242
PHP
dlaststark/machine-learning-projects
/Programming Language Detection/Experiment-2/Dataset/Train/PHP/walk-a-directory-non-recursively-2.php
UTF-8
228
2.796875
3
[]
no_license
$pattern = 'php'; foreach (scandir('/home/foo/bar') as $file) { if ($file != '.' and $file != '..') { if (preg_match("/$pattern/", $file)) { echo "$file matches $pattern\n"; } } }
true
643e20b81ebb8718450cdabb6a3850264eace0a2
PHP
osielGF/MarioClass
/practica_08_A1/Views/modules/alumnos.php
UTF-8
603
2.5625
3
[]
no_license
<?php session_start(); if(!$_SESSION["validar"]){ header("location:index.php?action=ingresar"); exit(); } ?> <!DOCTYPE html> <html> <head> <title>Alumnos - Listado</title> </head> <body> <H1>LISTADO DE ALUMNOS</H1> <table border="1"> <thead> <tr> <th>Matricula</th> <th>Nombre</th> <th>Carrera...
true
281d80c904b11c177f1c8ba3c99478ea5824c99b
PHP
renecruzlaguna/clinicadminnewclient
/src/AppBundle/Libs/Helper/Dates.php
UTF-8
6,022
3.28125
3
[ "BSD-3-Clause", "MIT" ]
permissive
<?php namespace AppBundle\Libs\Helper; class Dates { private $days_dias = array( 'Monday' => 'Lunes', 'Tuesday' => 'Martes', 'Wednesday' => 'Miércoles', 'Thursday' => 'Jueves', 'Friday' => 'Viernes', 'Saturday' => 'Sábado', 'Sunday' => 'Domingo' ); ...
true
14e29635aeb1c51fea8d86b28c09ba60caac0ef7
PHP
1valero/ProyectoInventario
/SI/select.php
UTF-8
480
2.640625
3
[]
no_license
<?php include ("conexion.php"); $con=mysql_connect($host,$user,$pass) or die ("Problemas al conectar al server"); mysql_select_db($db,$con) or die("Problemas al conectar con la base de datos"); $registro=mysql_query("SELECT * FROM codigo where nombre='$_POST[nombre]'") or die ("Problemas en Consulta:".mysql_error()...
true
5e2693ad7fc7d207d959a2ec4f065c8ed62b37c0
PHP
guspecht/youtube-channel-site
/processing_contact.php
UTF-8
1,670
3.015625
3
[]
no_license
<?php // importing phpfunctions require 'phpfunctions.php'; if ( $_SERVER['REQUEST_METHOD'] == 'POST' && isset( $_POST['contactEmail'] ) && !empty($_POST['contactEmail'])) { // path to the file $fileLocation = "./files/contacts.json"; // in case the file does not exist it will create one. (w+) $openFil...
true
f6996e849ac7503aa52aeed9a057034ed22586e5
PHP
gbbiancardi/cursos-alura
/curso_php/php_array_string_funcao_web/tipos-chaves.php
UTF-8
267
3.96875
4
[]
no_license
<?php // O PHP só trabalha com índices do tipo número inteiro e string. Qualquer outro tipo ele tenta adequar ao número inteiro. $array = [ 1 => 'a', '1' => 'b', 1.5 => 'c', true => 'd' ]; foreach ($array as $item) { echo $item . PHP_EOL; }
true
884b5c0f0528b0ada19b88188805c7c9923a4e99
PHP
glibmarchenko/art
/app/Http/Controllers/Api/ProductController.php
UTF-8
1,157
2.75
3
[]
no_license
<?php namespace App\Http\Controllers\Api; use App\Http\Controllers\Controller; use App\Http\Requests\Product\Save; use App\Models\Products\Product; use Illuminate\Http\Request; class ProductController extends Controller { /** * @param \App\Http\Requests\Product\Save $requ...
true
ded3d66a766aafa27a92cee256d2b6e96bdf518e
PHP
NohaElsayed/Hotel-System
/app/Http/Requests/admin/StoreTypeRoomRequest.php
UTF-8
1,142
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Requests\admin; use Illuminate\Foundation\Http\FormRequest; class StoreTypeRoomRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** ...
true
27be2b619603eecd1ca88d43426ad7df8e2524b6
PHP
MarineCormier/Projet-certif
/VehiculeManager.php
UTF-8
905
2.953125
3
[]
no_license
<?php class VehiculeManager { private $_db; public function __construct($db) { $this->setDb($db); } public function add(Vehicule $vehicule) { $r = $this->_db->prepare("INSERT INTO vehicules(type, modele, energie, cv, immatriculation, circulation, co2, ptac) VALUES (:type, :modele, :energie, :cv, ...
true
fa489e93f8aac3e80089d7322b8386670c55d63a
PHP
BurbanoJesus/PIC
/core/models/inicio.php
UTF-8
1,651
2.734375
3
[]
no_license
<?php include_once $_SERVER['DOCUMENT_ROOT'].'/plataforma/application/database/database.php'; Class Inicio extends Db{ function insertar($id = Null, $url, $tipo){ try{ $sql = "INSERT INTO multimedia_inicio VALUES(:id,:url,:tipo)"; $query = $this->db->prepare($sql); $query->execute(['id' => $id, 'url' => ...
true
27872566848b4670d252cea20b0f8ec1a8527f7e
PHP
bjorn-87/ramverk1
/test/Weather/WeatherTest.php
UTF-8
2,405
2.75
3
[]
no_license
<?php namespace Bjos\Weather; use Bjos\Curl\CurlMock; use PHPUnit\Framework\TestCase; use Anax\Response\ResponseUtility; use Anax\DI\DIMagic; /** * Test Weatherclass */ class WeatherTest extends TestCase { private $weather; protected function setUp() : void { global $di; // Setup di ...
true
761d91f5bcaffa1d306bd1d01032b3ef9c8b4d94
PHP
nitsolan/nss
/mail/contact_me.php
UTF-8
949
2.5625
3
[]
no_license
<?php include(ROOT_PATH.'env.php'); // check if fields passed are empty if(empty($_POST['name']) || empty($_POST['email']) || empty($_POST['message']) || !filter_var($_POST['email'],FILTER_VALIDATE_EMAIL)) { echo "No arguments Provided!"; return false; } $name = $_POST['name']; $email_address = ...
true
f4b286532727cf77de7a93d1634d21dcacedd590
PHP
mail2rkjaiswal/emdbold
/getemdbstatus.php
UTF-8
978
2.515625
3
[]
no_license
<center> <form action="" method="POST"> Enter EMDB Id : <input type="text" name="emdbId" required> <input type="submit"> </form> </center> <?php error_reporting(0); if(isset($_POST['emdbId'])){ $emdbId = $_POST['emdbId']; // EMDB status api $url = "https://www.employeemasterdatabase.com/getstatus.php...
true
86040a6be33d096c4885da7d18593696a60d1f7a
PHP
oxo0300/galaxytvonline
/public/core/packages/formitbuilder-1.2.1-pl/modCategory/ded7a03d9c7b18c6522ea15585f7a11a/0/formitbuilder/model/formitbuilder/FormItBuilder.class.php
UTF-8
25,100
2.59375
3
[]
no_license
<?php require_once 'FormItBuilderCore.class.php'; /** * The main FormItBuilder methods. Most of the program bulk lives within this class and handles a great number of set/get methods and output methods. */ class FormItBuilder extends FormItBuilderCore{ /** * A reference to the modX instance * @var modX $...
true
d3adc2d987127aaec7c0ca3a24a796398acf9fbf
PHP
olguncengiz/frontify-php-mysql-react-color-management
/api/functions.php
UTF-8
515
2.953125
3
[]
no_license
<?php // HTTP status codes finding function function HttpStatus($code) { $status = array( 200 => 'OK', 201 => 'Created', 202 => 'Accepted', 400 => 'Bad Request', 405 => 'Method Not Allowed', 500 => 'Internal Server Error'); // If anything else, return 500 return $status[$code] ? $status[$...
true
64eb9e2865374bed8e1c004bdaae323d05dfa452
PHP
oikenfight/web-md-editor
/laravel/app/Http/UseCases/Item/DeleteUseCase.php
UTF-8
973
2.8125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace App\Http\UseCases\Item; use App\Entities\Contracts\ItemInterface; use App\Http\UseCases\Contracts\Item\DeleteUseCaseInterface; use App\Repositories\Contracts\ItemRepositoryInterface; use Illuminate\Http\Request; /** * Class DeleteUseCase * @package App\Http\UseCases\Item *...
true
6e766883971f64bfd18ec72cba93c5c53b8c7cd7
PHP
wd101434/wangzizhen
/blog/php/uesr/user_set.php
UTF-8
3,224
2.546875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: 王子真 * Date: 2017/5/12 * Time: 18:57 */ $uptypes=array( 'image/jpg', 'image/jpeg', 'image/png', 'image/pjpeg', 'image/gif', 'image/bmp', 'image/x-png' ); $max_file_size=2000000; //上传文件大小限制, 单位BYTE $destination_folder="uploadimg/"; //上传文件路径 $...
true
bd4747e09d7bb7770f314818bac5b5b20bcb5062
PHP
Giova9625/kicksportsv-master
/Core/Models/productos.php
UTF-8
6,673
2.875
3
[]
no_license
<?php /* * Clase para manejar la tabla productos de la base de datos. Es clase hija de Validator. */ class Productos extends Validator { // Declaración de atributos (propiedades). private $id = null; private $producto = null; private $descripcion = null; private $precio = null; private $imagen =...
true
e9425f62ba6a5ea5eb2b5e01489debcf58452601
PHP
LeonardoSaccotelli/TeamUp
/TeamUpWordpress/wp-content/plugins/ultimate-member/includes/admin/core/class-admin-theme-updater.php
UTF-8
4,577
2.65625
3
[ "GPL-3.0-only", "GPL-2.0-only", "GPL-1.0-or-later", "GPL-2.0-or-later", "MIT" ]
permissive
<?php namespace um\admin\core; if ( ! defined( 'ABSPATH' ) ) { exit; } if ( ! class_exists( 'um\admin\core\Admin_Theme_Updater' ) ) { /** * Class Admin_Theme_Updater * @package um\admin\core */ class Admin_Theme_Updater { /** * Restored themes * @var array */ private $restored = array(); ...
true
bec4569b48f8a14c4ddf46c8a670711f959316e3
PHP
AnthonyBouillon/Curriculum-Vitae
/Controllers/contact-controller.php
UTF-8
4,630
3.03125
3
[]
no_license
<?php /* fopen : Ouvre un fichier , r+ : Ouvre en lecture et écriture, et place le pointeur du fichier au début du fichier. */ $file_txt = fopen('../compteur-page-contact.txt', 'r+'); /* fgets : Récupère la ligne courante sur laquelle se trouve le pointeur du fichier, donc la première ligne. */ $number_views = fgets(...
true
6b42b6d6cdb7de34f8d22cd223d0bf9352c0f8f3
PHP
hectareua/hectare
/models/Currency.php
UTF-8
1,236
2.640625
3
[]
no_license
<?php namespace app\models; use Yii; /** * This is the model class for table "currency". * * @property integer $id * @property string $name * @property string $code * @property double $rate * * @property Product[] $products */ class Currency extends \yii\db\ActiveRecord { /** * @inheritdoc */ ...
true
933d28df41d2e567c4ed31b47bf68357376c049b
PHP
philkra/elastic-apm-php-agent
/src/Exception/Timer/NotStartedException.php
UTF-8
346
2.84375
3
[ "MIT" ]
permissive
<?php namespace PhilKra\Exception\Timer; /** * Trying to stop a Timer that has not been started */ class NotStartedException extends \Exception { public function __construct( string $message = '', int $code = 0, Throwable $previous = NULL ) { parent::__construct( 'Can\'t stop a timer which isn\'t started.', $...
true
fbba134b11751883fa146d2d29c179b172388095
PHP
victory21th/Laravel-AngularJS
/app/controllers/AuthController.php
UTF-8
1,810
2.59375
3
[]
no_license
<?php /* * CardShare Web Controller Side * File Name : AuthController.php * File Description : Auth Controller to Control Login and Logout with authentication * Created Date : 11 - Nov - 2014 * Last Modified Date : 25 - Nov - 2014 * Company : iExemplar * Created By : Allen Emanuel Raj D * Contributors : Al...
true
66ade09e77ab55cc0461e7e472071520d0a5d943
PHP
foton-framework/ext-log
/log.ext.php
UTF-8
3,096
2.703125
3
[]
no_license
<?php class EXT_Log extends SYS_Model_Database { //-------------------------------------------------------------------------- public $table = 'log'; public $name = 'Data log'; public $add_action = FALSE; //-------------------------------------------------------------------------- public function init() { ...
true
6e6002bcc8ab943ed4ae8e193055253f620df0eb
PHP
AgenB/lekcja
/dlakogos/index.php
UTF-8
1,151
2.65625
3
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Page Title</title> <link rel="stylesheet" type="text/css" media="screen" href="style.css"> </head> <body> <div class="container"> <div class="left"> <form action="insert.php" method="POST"> <input type="text"...
true
8c35c15d2e8139773759698fe81e64fed8cfc205
PHP
seonghyeongseok/FLH
/database/seeds/BoardCheckTableSeeder.php
UTF-8
719
2.671875
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; class BoardCheckTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { // 게시글 번호 $boardId = [1, 1, 2, 1, 2]; // 게시글 확인한 학생번호 $boardCheckedNumber = ...
true
77f2590a926c6212a046bc790981e3d3250260d9
PHP
milicasavicevic/oop3
/crud7/controllers/TaskController.php
UTF-8
1,923
2.90625
3
[]
no_license
<?php namespace Controllers; //start session session_start(); //including the database connection file use \Dbconnection; class TaskController{ public function viewTasks(){ include('views/view_task.php'); } public function createTask() { $crud = new Dbconnection(); i...
true
13540f1b259b261c9aafd170c824598b01fa7662
PHP
pabloestebanZTE/zolid_on_air_new
/application/models/bin/ObjUtil.php
UTF-8
959
2.890625
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT", "GPL-1.0-or-later", "GPL-2.0-or-later", "GPL-2.0-only" ]
permissive
<?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. */ class ObjUtil { protected $request; protected $data; public $method; public function __construc...
true
eb5ca485f6f20e00c9b5f4b7708aa8953cdbfd11
PHP
abztan/project-tomorrow-alpha
/formula.php
UTF-8
2,270
2.78125
3
[]
no_license
<?php echo "L: ".$l = -0.3521; echo "<br/>M: ".$m = 2.441; echo "<br/>S: ".$s = 0.09182; echo "<br/>Z: ".$z_score = -2; echo "<br/>A: ".$a = (($s*$l)*$z_score)+$l; echo "<br/>R: ".$x =1/$l; echo "<br/>B: ".$b = pow($a,$x); echo "<br/>W: ".$weight = $b*$m; echo "<br/>".$birthDate = "2016-04-06"; echo "<br/>B_YEAR: ".$...
true
fe0efabdaaae4f839a23fbfee126c93ff6ccadf8
PHP
pioniro/pagination
/src/Paginator/Paginator.php
UTF-8
1,244
3.078125
3
[]
no_license
<?php declare(strict_types=1); namespace Pioniro\Pagination\Paginator; use ArrayIterator; use Pioniro\Pagination\PagerInterface; use Pioniro\Pagination\PaginatorInterface; use Pioniro\Pagination\Traits\Arrayable; class Paginator implements PaginatorInterface { use Arrayable; /** * @var iterable|array ...
true
54614b494f4cf1f6bd181705e6aa9ea6131604dc
PHP
erufenix/webapps
/src/Entity/OperacionesUserNavi.php
UTF-8
3,472
2.890625
3
[]
no_license
<?php namespace Entity; /** * OperacionesUserNavi */ class OperacionesUserNavi { /** * @var integer */ private $idUser; /** * @var string */ private $user = ''; /** * @var string */ private $userName = ''; /** * @var string */ private $userC...
true
ff87c66fcf6d2cae167f9e4047868e5de4ccfe03
PHP
rar007/sistemaVenda
/cadastro-produto.php
UTF-8
3,660
2.8125
3
[]
no_license
<?php $dbConfig = array(); $dbConfig['host'] = 'localhost'; $dbConfig['user'] = 'userVenda'; $dbConfig['pass'] = 'sen1234'; $dbConfig['base'] = 'sistemaVenda'; $nome = ''; $preco = 0.0; $qtde = 0; $unidade = ''; if(isset($_POST['salvar'])) { $conn = mysqli_connect( ...
true
379db127bd08cbf86dc584ae1e01a17ddcc15515
PHP
jessica224/deli
/App/Model/AdicionaisDao.php
UTF-8
1,359
2.703125
3
[]
no_license
<?php namespace App\Model; class AdicionaisDao extends Dao { static public function getAdicional($adc_codigo) { try { $sql = "select * from adicionais where adc_codigo = ?"; $statement_sql = Conexao::getConnection()->prepare($sql); $statement_sql->bindValue(1, $adc_cod...
true
83ca41fabf7e58668d28a8b3ace61a4dce4d6286
PHP
sergioferraz96/database
/contato.php
UTF-8
2,872
2.984375
3
[]
no_license
<?php // Verifica se existe a variável txtnome if (isset($_GET["txtnome"])) { $nome = $_GET["txtnome"]; // Conexao com o banco de dados $server = "localhost"; $user = "root"; $senha = ""; $base = "database3"; //$conexao = mysql_connect($server,$user,$senha) or die("Erro na conexão!"...
true
5aaa8ee53f7029b7b8622e8ee48dcadc7e016557
PHP
pierswarmers/icalparser
/src/IcalParser.php
UTF-8
4,690
2.8125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace om; /** * Copyright (c) 2004 Roman Ožana (http://www.omdesign.cz) * * @author Roman Ožana <ozana@omdesign.cz> */ class IcalParser { /** @var \DateTimeZone */ public $timezone; /** @var array */ public $data; /** * @param $file * @param null $callback * @return array|null * @throws \R...
true
00ae410ca97bc0e41245b72e2604237948133b72
PHP
eslam-abdelnasser/Demos
/app/Http/Controllers/AppointmentController.php
UTF-8
697
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Models\Appointment; use Illuminate\Http\Request; class AppointmentController extends Controller { // public function patient(Request $request){ $appointment = new Appointment(); $appointment->name = $request->name ; $appointment->email =...
true
e000bea6bea63a943d473bcd37b1edf1dfef3ae4
PHP
planetwebsolution/Telamela-SourceCode
/admin/class_reports_bll.php
UTF-8
23,959
2.609375
3
[]
no_license
<?php /** * Class name : Reports * * Parent module : None * * Author : Sandeep Sharma * * Last modified by : Sandeep Sharma * * Comments : The Reports class is used to maintain Reports infomation details to user for several modules. */ class Reports extends Database { /** * function Ads * ...
true
4247c01d2d5a62cd528b5c9ab17eb081caa49349
PHP
cbradley3/srl-backend
/app/Http/Controllers/CategoriesController.php
UTF-8
2,311
2.65625
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Support\Facades\Validator; use Purifier; use Response; use App\Category; use Auth; use JWTAuth; class CategoriesController extends Controller { public function __construct() { $this->middleware("jwt.auth", ["only" => ["store", ...
true
c4aaa99c9fcb2704f7344c9e34604231a9c23b54
PHP
laramore/requests
/src/Traits/Http/Filters/HasFieldParameter.php
UTF-8
517
2.5625
3
[ "MIT" ]
permissive
<?php /** * Simplify field parameter in filters. * * @author Samy Nastuzzi <samy@nastuzzi.fr> * * @copyright Copyright (c) 2020 * @license MIT */ namespace Laramore\Traits\Http\Filters; trait HasFieldParameter { protected $fields; public function checkField($fieldName=null, $params=[]) { i...
true
db45e8d0ce0a2449c16aea182ec94a7710616a2f
PHP
FerhanGit/Gozbite
/includes/classes/events.php
UTF-8
2,246
3.28125
3
[]
no_license
<?php class Events { // the array which will contain all the registered/added events var $events = Array(); function & instance(){ static $instance = NULL; if ($instance === NULL){ $instance = new Events; } return $instance; } function add($event, $handler, & $object){ $obj = & Events::instance...
true
2d33624b374820ef04201f61c1585162f07f668b
PHP
sebmiet/SimpleShop
/user.php
UTF-8
363
2.75
3
[]
no_license
<?php /** * Created by PhpStorm. * User: sebmiet * Date: 01.04.18 * Time: 02:45 */ class user { private $id; private $login; private $construct; public function __construct($anonymous = true) { if ($anonymous == true) { $this->id = 0; $this->login = ''; ...
true
b2599ad76e02232eb9bea368bab2c4dc2f1b95ea
PHP
Redish248/Web-programming-lab1
/Lab1/checkPoints.php
UTF-8
2,015
2.875
3
[]
no_license
<?php session_start(); $start = microtime(true); $x = $_GET["X"]; $y = $_GET["Y"]; $r = $_GET["R"]; $check; $currentTime = date("H:i:s", strtotime('-1 hour')); echo "<!DOCTYPE HTML> <html> <head> <meta charset='UTF-8'> <title>Points</title> <link rel='shortcut icon' href='...
true