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
b14398e3229abad04d162db61411f1647c1a284f
PHP
RyanNerd/willow
/app/Robo/Script.php
UTF-8
4,310
2.75
3
[ "MIT", "CC-BY-3.0" ]
permissive
<?php declare(strict_types=1); namespace Willow\Robo; use League\CLImate\CLImate; use Composer\Script\Event; use Composer\Util\Platform; /** * Composer script */ class Script { /** * Composer hook that fires when composer create-project has finished. * @param Event $event */ public static fu...
true
a8fe324215d7b72ec44ef024b88a5892d0d79040
PHP
shmiko/calmapit_php
/Places/country_stats-master/country_stats-master/Country.php
UTF-8
566
2.90625
3
[]
no_license
<?php require_once 'db.php'; require_once 'HTML_Helper.php'; class Country { public function info($country_name) { global $database; $info_query = "SELECT name, continent, region, population, lifeExpectancy, governmentForm FROM Country WHERE name = '{$country_name}'"; $info = $database->fetch_record($i...
true
520d5e59cb81557bc81b5666903307d5a2e259b2
PHP
jonstoler/Chartridge
/kirby/lib/uri/path.php
UTF-8
881
2.96875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace Kirby\Toolkit\URI; use Kirby\Toolkit\Collection; use Kirby\Toolkit\URL; // direct access protection if(!defined('KIRBY')) die('Direct access is not allowed'); /** * Path * * The path object is a child object of the URI object. * It contains all parts of the path from a URL: * this/is/a/beauti...
true
5395cc3828190a393395988c674582109079c493
PHP
maorisr/ProjectSce
/MVCProject/models/gallery_model.php
UTF-8
1,227
3
3
[]
no_license
<?php class Gallery_Model extends Model { //Gallery model constructor public function __construct() { parent::__construct(); } // This function takes data of pictures from external API and returns the data that the user ask as JSON, and then this data will shown in the UI public function r...
true
3509236dfa53def42b93bc953de0609e53b1f871
PHP
rspsuresh/l2app
/models/LockerMaster.php
UTF-8
1,197
2.59375
3
[]
no_license
<?php namespace app\models; use Yii; /** * This is the model class for table "locker_master". * * @property int $id * @property string $locker_channel_api * @property string $locker_channel_id * @property string $locker_status * @property string $locker_created_at */ class LockerMaster extends \yii\db\Active...
true
e3b23611a61c9a936eb4e49129848d6a5d5f50d3
PHP
Diegoesc8712/backend-larena
/src/rutas/informacionCompartidaHistorial.php
UTF-8
4,448
2.765625
3
[]
no_license
<?php use Psr\Http\Message\ResponseInterface as Response; use Psr\Http\Message\ServerRequestInterface as Request; // json que debe recibir // { // "idHistorial": "2", // "idInformacionCompartir": "2" // } $app = new \Slim\App; //Get todos informacionCompartidaHistorial $app->get('/api/inf...
true
365c0c1e63634f0aead0aba54bf19c8bea6321df
PHP
yowmamasita/Bright.com-Developer-Test
/card.class.php
UTF-8
451
3.5
4
[]
no_license
<?php error_reporting(E_ALL); class card { var $number; var $suit; static $suits = array( "Clubs", "Spades", "Hearts", "Diamonds" ); function __construct($number, $suit) { $this->number = $number; $this->suit = $suit; } function getCard() { return ( $this->number==14 ? "Ace" : ( $this->numbe...
true
09ee08cb19f442d657fddf4046b2a0d9165a2f21
PHP
cosmocode/dokuwiki-plugin-issuelinks
/services/Jira.service.php
UTF-8
16,246
2.65625
3
[]
no_license
<?php /** * Created by IntelliJ IDEA. * User: michael * Date: 4/16/18 * Time: 7:57 AM */ namespace dokuwiki\plugin\issuelinks\services; use dokuwiki\Form\Form; use dokuwiki\plugin\issuelinks\classes\Issue; use dokuwiki\plugin\issuelinks\classes\Repository; use dokuwiki\plugin\issuelinks\classes\RequestResult; c...
true
b636d85aa9d2c3f5e26bdd37d926dd2740804615
PHP
bridgebooks/digit
/app/app/Transformers/ContactGroupTransformer.php
UTF-8
619
2.609375
3
[]
no_license
<?php namespace App\Transformers; use League\Fractal\TransformerAbstract; use App\Models\ContactGroup; /** * Class ContactGroupTransformer * @package namespace App\Transformers; */ class ContactGroupTransformer extends TransformerAbstract { /** * Transform the \ContactGroup entity * @param \Contact...
true
0fc9328935221b0eb1df88d9daa5810e919b152e
PHP
felixfbecker/php-language-server-protocol
/src/CompletionClientCapabilitiesCompletionItemInsertTextModeSupport.php
UTF-8
465
2.53125
3
[ "ISC" ]
permissive
<?php namespace LanguageServerProtocol; class CompletionClientCapabilitiesCompletionItemInsertTextModeSupport { /** * The tags supported by the client. * * @var int[] */ public $valueSet; /** * @param int[] $valueSet InsertTextMode */ public function __construct( ...
true
116e129c1563500ff3d9ac88b08c7bea152dee63
PHP
Covi/Covi_View_Helper
/HtmlTag.php
UTF-8
3,691
2.71875
3
[]
no_license
<?php /* - HtmlTag View Helper - @author J.A.Cobo (aka Covi) @url http://culturadigital.org @version 0.1 @license GPL 3.0 - HtmlTag View Helper - Copyright (c) 2011 J.A.Cobo (aka Covi) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public Lic...
true
271d5ba486f24b3cb4b80c74eaf73ddcc10abf8e
PHP
Creatiwity/WTemplate
/WTemplate.php
UTF-8
7,625
2.9375
3
[ "MIT" ]
permissive
<?php /** * WTemplate.php */ require_once dirname(__FILE__).DIRECTORY_SEPARATOR.'WTemplateFile.php'; require_once dirname(__FILE__).DIRECTORY_SEPARATOR.'WTemplateParser.php'; require_once dirname(__FILE__).DIRECTORY_SEPARATOR.'WTemplateCompiler.php'; /** * WTemplate is the template engine used by WityCMS. * * @p...
true
94a8662cef746d9eb2459388db08f6af624c1f61
PHP
rodrigoespinozadev/students-restapi
/System/Traits/Authenticate.php
UTF-8
833
2.796875
3
[]
no_license
<?php namespace System\Traits; use System\Cookie; use App\Models\Auth; use System\RestException; trait Authenticate { protected function isLogged() { return Cookie::get('is_logged'); } protected function validateLogin($request) { $auth = new Auth; $user = $auth->findUser($request); if (!password_verif...
true
39e97892952b8bc9ab61b09c23db13d8302cb1e0
PHP
laicwb/laicwb
/Lai/bin/Mysql.class.php
UTF-8
5,006
3.171875
3
[]
no_license
<?php /** * 用于Mysql数据库 */ class Mysql extends Db{ private $_dbms; //数据库的类型 private $_dbhost; //数据库主机地址 private $_dbname; //数据库的库名 private $_dbuser; //数据库用户名 private $_dbpass; //数据库密码 private $_charset; //设置字符集 private static $_ins; //用于单例存放本对象 private $_dsn; //用于组合对应mysql的连接 ...
true
9f05c08b909ce08574a42e994503a1ad64407bdb
PHP
mohamedhaouali/Gestion-des-Personnes-en-php-5
/rechercheparnom.php
UTF-8
1,232
2.546875
3
[]
no_license
<html> <head> <meta charset="UTF-8"> <title></title> </head> <body> <form action="" method="post" enctype="multipart/form-data"> <div id="searchbar"> <h1>What would you like to search?</h1> <input class="cham...
true
160b254a7a3e33b18b6effab3bcc76adc0dad412
PHP
DEM-DEM-DEMIDE/Git-quest
/database/seeds/CoursesTablesSeeder.php
UTF-8
535
2.625
3
[ "MIT" ]
permissive
<?php use Carbon\Carbon; use Illuminate\Database\Seeder; use Illuminate\Support\Facades\DB; class CoursesTablesSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $titles = ['basic', 'advance']; foreach ($titles as $title) ...
true
604ffbfb2405bee440fb67aee385136b12577d5b
PHP
lothwen/census-php
/includes/cSettings.php
UTF-8
898
2.640625
3
[]
no_license
<? /* * Census Settings class * */ require 'conf.php'; class cSettings { // Group specific preferences var $theme; var $max_filas; var $group_name; var $group_email; var $group_address; var $group_web; function __construct(){ global $db; // Database configuration global $ddbb_host; global $d...
true
ecaf8208eb854fde4c35afa30797104ba1c7857b
PHP
naringas/cfd7
/cfd/resources/FEpdf.php
UTF-8
884
2.609375
3
[]
no_license
<?php /* * @file * Custom class for PDF printing header footer */ class FEpdf extends TCPDF { protected $doc; protected $xsl; public function registerHeader($doc) { $this->doc = $doc; $xsl_header_file = drupal_get_path('module', 'cfd') . '/resources/cfd_header.xsl'; $xsl_header = new DOMDocument()...
true
f5a90357ae463f921fb02f98ff20db0e7aceaa58
PHP
itsbendunn/itp405-spring2016-laravel
/resources/views/genres/details.php
UTF-8
850
2.546875
3
[ "MIT" ]
permissive
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Genres</title> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"> </head> <body> <div class="container"> <h2> <?php echo $dvds[1]->genre->genre_name?> movies ...
true
8f6ac3afbd9e1038c6d0be3b32df63cf60f97db8
PHP
hbrawnak/network
/app/Http/Controllers/AuthController.php
UTF-8
3,800
2.640625
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Helper; use App\Repository\UserRepository; use Exception; use Illuminate\Http\JsonResponse; use Illuminate\Http\Request; use Illuminate\Support\Facades\Validator; use JWTAuth; class AuthController extends Controller { /** * @param Request $request * @para...
true
84b33d26f8953b31b4fb0681368c23bca371cd93
PHP
developbiao/php0520
/day01/关联数组.php
UTF-8
299
2.640625
3
[]
no_license
<?php header("content-type:text/html; charset=utf-8"); //Array demo1 //$arr = array("user1", "admin", "root", "biaoge", "gongbiao"); //echo "login:{$arr[4]}"; //自定义数组的索引 $arr = array("user1" => "gongbiao", "user2" => "root", "user3" => "mnitor"); echo "user:{$arr[user2]}"; ?>
true
b7dfcabff6e0fcb9dc92011ad86dbd8c89327f56
PHP
svast/start
/application/models/DbTable/Fichier.php
UTF-8
1,161
2.53125
3
[]
no_license
<?php class Application_Model_DbTable_Fichier extends Zend_Db_Table_Abstract { protected $_name = 'FICHIER'; protected $_primary = 'ID_FICHIER'; //Le nom de la clé primaire (case sensitive) protected $_sequence = 'FICHIERSEQ'; protected $_dependentTables = array('Application_Model_DbTable_Contenu'); protected...
true
a1e1eec16b39d432af3d2ade7c2946277745283b
PHP
mayue615/mytmc
/Index/Home/Api/UserspeechApi.class.php
UTF-8
1,976
2.546875
3
[]
no_license
<?php namespace Home\Api; use Home\Logic\UserspeechLogic; class UserspeechApi extends UserspeechLogic{ public function get_user_speech($user_id,$type="all",$start_date="2012-1-1"){ $condition['spk_id']=$user_id; //$condition['m_date']=array('egt',$start_date); $data=$this->where($condition)->relation(true)-...
true
05e252317de0b352999b7cf899d6fc13b12d0808
PHP
ad3n/server-library
/src/Behaviour/HasJWTLoader.php
UTF-8
947
2.53125
3
[ "MIT" ]
permissive
<?php /* * The MIT License (MIT) * * Copyright (c) 2014-2016 Spomky-Labs * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. */ namespace OAuth2\Behaviour; use Assert\Assertion; use Jose\JWTLoaderInterface; trait HasJWTLoader { /** ...
true
157f38423138088fa90b923a8f5b25876a0d9ee8
PHP
leticianurnberg/Lista_PC
/1.php
UTF-8
263
3.625
4
[]
no_license
<?php function FahrparaCel ($temp_f) { $temp_c = ($tf -32) * 5/9; return $temp_c; } print "Digite a temperatura em Fahrenheit: " ; $temp_f = (float)fgets(STDIN); $temp_c = FahrparaCel($temp_f); print "$temp_f Fahrenheit são $temp_c ° Celsius \n \n";
true
d3c48e100b4041a287feeead8355afdf463b241c
PHP
yangch981209/Petrinet
/src/engine/state.php
UTF-8
1,321
2.796875
3
[]
no_license
<?php /** * @package Petrinet * @subpackage Engine * * @copyright Copyright (C) 2012 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE */ /** * Base Class for Engine States. * * @package Petrinet * @subpackage Engine * @since...
true
08243f30082ec7aeb8d05616f5a8ee38c0519e8c
PHP
ShaolinSpirit76/KFTM2
/controller/inscriptionFormController.php
UTF-8
7,446
3.234375
3
[]
no_license
<?php //il faut tjrs appeler la base de donnée dans le controller require '../../model/DataBase.php'; require '../../model/User.php'; // On crée un tableau error qui s'auto-incrémentera avec la valeur de l'erreur que nous lui assignerons au cas par cas, si la regex n'est pas franchie. Chaque cellule remplie comptera p...
true
edc20d98ac42f0ee44d079aacbff8dba32af4afe
PHP
esvit/bazalt-api
/src/Components/Seo/Model/Page.php
UTF-8
508
2.59375
3
[ "MIT" ]
permissive
<?php namespace Components\Seo\Model; use Bazalt\ORM; class Page extends Base\Page { public static function create() { $route = new Page(); $route->site_id = \Bazalt\Site::getId(); return $route; } public static function getByUrl($url) { $q = Page::select() ...
true
ddd9f7d643f9c08bdd807d2639b604272da159dd
PHP
tokenly/xchain-client
/src/Client.php
UTF-8
43,156
2.6875
3
[ "MIT" ]
permissive
<?php namespace Tokenly\XChainClient; use Exception; use GuzzleHttp\Client as GuzzleClient; use GuzzleHttp\Exception\RequestException; use Tokenly\CurrencyLib\Quantity; use Tokenly\HmacAuth\Generator; use Tokenly\XChainClient\Exception\XChainException; /** * XChain Client */ class Client { function __const...
true
ebdfaa94e40ee3793ce6459d90fdfd9651a4ff8e
PHP
EnzoRoselli/CinemApp
/Model/QR_.php
UTF-8
1,028
2.84375
3
[]
no_license
<?php namespace Model; class QR_ { private $size; private $level; private $frameSize; private $fileName; private $ticket; public function __construct() { $this->size=10; $this->level='M'; $this->frameSize=3; } public function getSize() { ...
true
3ff69bd842a1df638a31179702d96f3e1f89ee95
PHP
Smoren/nested-accessor-php
/src/Exceptions/NestedAccessorException.php
UTF-8
4,397
2.984375
3
[ "MIT" ]
permissive
<?php namespace Smoren\NestedAccessor\Exceptions; use Smoren\ExtendedExceptions\BaseException; use Smoren\NestedAccessor\Components\NestedAccessor; /** * Class NestedAccessorException * @author Smoren <ofigate@gmail.com> */ class NestedAccessorException extends BaseException { public const SOURCE_IS_SCALAR = ...
true
735174044868cd928237cffcc14f48307039b340
PHP
Hamael18/wildCircus
/src/Migrations/Version20190123094255.php
UTF-8
2,446
2.53125
3
[]
no_license
<?php declare(strict_types=1); namespace DoctrineMigrations; use Doctrine\DBAL\Schema\Schema; use Doctrine\Migrations\AbstractMigration; /** * Auto-generated Migration: Please modify to your needs! */ final class Version20190123094255 extends AbstractMigration { public function getDescription() : string {...
true
dbc60f8e4f1b1d570520883e9daed044ab5b715f
PHP
asokoi/php-sdk
/src/AdvertiserBilling/AdvertiserBillingProvider.php
UTF-8
4,217
2.5625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Affise\Sdk\AdvertiserBilling; use Affise\Sdk\Helper\AbstractProvider; use Affise\Sdk\Helper\MessageResponse; use Affise\Sdk\Helper\PaginableResponse; use Affise\Sdk\Helper\Pagination; use Affise\Sdk\Helper\Response; use InvalidArgumentException; /** * Class AdvertiserBillin...
true
12a6108558e07378472a06797b1d8fa4cf673760
PHP
zumac/conn
/Lib/exchange-scrapper/src/Api/Data.php
UTF-8
2,127
2.984375
3
[]
no_license
<?php // AUTH: Tyler Quayle // DATE: 7/13/2017 // FILE: exchange-scrapper/src/api/Data.php // DESC: Used to print out various company related pieces of information namespace ExScrape\Api; class DATA extends APIAbstract{ public function companyCount() { $stmt = $this->conn->prepare("SELECT * FROM compani...
true
85004f72c7454295c6b8222e30eacadfc94bbc5f
PHP
poarfrippe/LoginPro
/backend/asymetricLogin2.php
UTF-8
1,478
3.234375
3
[]
no_license
<?php function powMod($x, $y, $p) { //x^y % p $res = 1; $x = $x % $p; //dass x < p if ($x == 0) return 0; while ($y > 0) { //wenn y ungerade ist if ($y & 1) $res = ($res * $x) % $p...
true
cc07ff423f9408baadafe642f602dde9a7acea3e
PHP
kelebriss/php
/select.php
UTF-8
545
2.734375
3
[]
no_license
<?php $conn = mysqli_connect('localhost', 'testing', '12341234', 'phptutorials'); //1 row echo '<h1>Single Row</h1>'; $sql = "SELECT * FROM topic where id = 6 LIMIT 1000"; $result = mysqli_query($conn, $sql); $row = mysqli_fetch_array($result); echo '<h1>'.$row['title'].'</h1>'; echo $row['description']; // all ...
true
1d14c49fcaca10673b451bfb3bc37bd20009b3e8
PHP
visakhmv/codeigniter-example
/application/models/Visakh_model.php
UTF-8
2,246
2.53125
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php class Visakh_model extends CI_Model { public function getAllRows($search) { if ($search) { $this->db->like('id', $search); $this->db->or_like('name', $search); $this->db->or_like('email', $search); $this->db->or_like('phone', $search); } ...
true
e6c8da9d1a833f5a5a3adf3c38c8211ead928870
PHP
mnk1985/amqp-tasks
/Tasks/Printer/Printer.php
UTF-8
240
2.8125
3
[]
no_license
<?php namespace AmqpTasksBundle\Tasks\Printer; use AmqpTasksBundle\Tasks\Printer\PrinterInterface; class Printer implements PrinterInterface { public function print(string $message): void { echo $message . PHP_EOL; } }
true
ef0e3ceaa45ae9568fd5e4bfbd94a8f5c9df0d70
PHP
adrelliott/leadfarm_v1
/application/controllers/campaign.php
UTF-8
2,006
2.578125
3
[]
no_license
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); //Test to see if we have a bespoke controller class configured in controller_config.php include('controller_config/init.php'); if( bespoke_controller('Campaign') ) get_bespoke_controller(); //yup = go get it. else { //nope? Use this default...
true
fd4059e3854f5b863b54dddd79ee501472c03ed1
PHP
itsho15/freeform
/app/Console/Commands/SendNotifyToUser.php
UTF-8
1,488
2.75
3
[ "MIT" ]
permissive
<?php namespace App\Console\Commands; use App\Notifications\SubscriptionNotification; use App\Plan; use App\Subscriptions; use App\User; use Carbon\Carbon; use Illuminate\Console\Command; use Notification; class SendNotifyToUser extends Command { /** * The name and signature of the console command. * * @var st...
true
e891c160d0d163e3e3bb563a221184f2b8f84bb6
PHP
elor/gallery
/check.php
UTF-8
1,781
3
3
[]
no_license
<!DOCTYPE html> <html lang="de"> <head> <meta charset="utf-8" /> <title>Thumbnail checker</title> </head> <body> <p> <?php if (($handle = opendir('.'))) { $list = array(); while ( !!($entry = readdir($handle) )) { if (is_dir($entry) && $entry !== '..' && $entry !== '.' && $entry !== 'thumbs') { ...
true
2c9979158587d8bc5835fd0e7bc75e0d01f5ffe0
PHP
leanne-abarro/getInMyBelly
/files/includes/basket.php
UTF-8
3,895
3.171875
3
[]
no_license
<?php require_once("product.php"); class Basket { private $aContents; public function __construct (){ $this -> aContents = array(); } public function add($iProductID,$iQuantity){ if(isset($this->aContents[$iProductID]) == false){ ...
true
1b1343cd9779445b59e2e6f482a23969d3a0fdb0
PHP
zhangjiquan1/phpsourcecode
/tttlkkkl/wcdf/api/application/library/app/work/model/Template.php
UTF-8
582
2.5625
3
[]
no_license
<?php /** * * Date: 17-5-6 * Time: 下午11:47 * author :李华 yehong0000@163.com */ namespace app\work\model; class Template { protected static $Obj; protected $table='work_template'; /** * 初始化 */ protected function initialize() { parent::initialize(); } /** * @re...
true
dcce6056ccd27642ef11d4aede031f091a679388
PHP
andreybolonin/Net_Gearman
/examples/Sum.php
UTF-8
508
3.109375
3
[]
no_license
<?php /** * Sum up a bunch of numbers * * @author Joe Stump <joe@joestump.net> * @package Net_Gearman */ class Net_Gearman_Job_Sum extends Net_Gearman_Job_Common { /** * Run the summing job * * @access public * @param array $arg * @return array */ public functi...
true
ca35b16ab899018226e39bbd857af301e37d9cd3
PHP
alexandr-stifanenkov/20190921_shop
/OOP/lateStaticBinding.php
UTF-8
1,191
3.625
4
[]
no_license
<?php // Late Static Binding - позднее статическое связывание class WhiteTable { protected $color = 'white'; public function getColor() { return $this->color; } public static function getClassName() { return __CLASS__; } public static function test() { re...
true
e07eaaee16d91da99fbaf7cc825e8f0b233cc6c6
PHP
mharoot/ZendModuleGenerator
/module/Employee/src/Model/Employee.php
UTF-8
3,688
2.796875
3
[]
no_license
<?php namespace Employee\Model; use DomainException; use Zend\Filter\StringTrim; use Zend\Filter\StripTags; use Zend\Filter\ToInt; use Zend\InputFilter\InputFilter; use Zend\InputFilter\InputFilterAwareInterface; use Zend\InputFilter\InputFilterInterface; use Zend\Validator\StringLength; class Employee implements Inpu...
true
8883f4f3732f70fce1a4644889c3ab6e6a230203
PHP
RichBarbosa/projeto-lpiv-
/php/create.php
UTF-8
558
2.578125
3
[]
no_license
<?php include_once("db.php"); if(!empty($_POST)) { $nome = $_POST['nome']; $email = $_POST['email']; $senha = $_POST['senha']; // verifica se usuario já existe //$senha = md5($senha); // Insere usuário $sql = "INSERT INTO dbusuario (nome, email, senha) VALUES ('${nome}', '${email}', '${senh...
true
32b159a9e0571dcdf862313cfae0f208a14ded84
PHP
BoHeTeachnology/boheyayi
/lumen_online/app/Rop/request/XvpProductQueryRequest.php
UTF-8
1,545
2.59375
3
[ "MIT" ]
permissive
<?php class XvpProductQueryRequest { private $apiParas = array(); private $store_id; public function getStoreId() { return $this->$store_id; } public function setStoreId($store_id) { $this->store_id = $store_id; $this->apiParas["store_id"] = $store_id; ...
true
052b310ec11af07c0594f8d734a39bbd55ed8481
PHP
lkkim/assignment5.1
/orders.php
UTF-8
985
2.578125
3
[]
no_license
<?php include("dbfunc.php"); $orders = getOrders(); $html=""; $html.= "<table>"; $html.= "<tr>"; $html.= "<th>Order ID</th>"; $html.= "<th>Order Date</th>"; $html.="<th>Order Price</th>"; $html.="<th>Product Title</th>"; $html.="<th>Customer Email</th>"; $html.="<th>Shipping Type</th>"; $h...
true
4ac62e7e0035bddef27420cbdc04d7ee0b38a851
PHP
vnartiz-org/vnartiz-app
/app/Controller/SearchController.php
UTF-8
2,243
2.515625
3
[]
no_license
<?php App::uses('GuestController', 'Controller'); class SearchController extends GuestController { /** * Search result * * @author anh_dung */ public function index() { // Check post if(($post = $this->request->data) && !empty($post['template']) && ($post['template'] == 'search')) { $params = array( ...
true
102c3843277b943ed8f59255c95cdc236d3db18e
PHP
prochor666/Weebo
/mwms/modules/nxmarket/lib/static.class.nxmarket.api.php
UTF-8
810
2.609375
3
[]
no_license
<?php /** * static.class.nxmarket.api.php - WEEBO framework nxmakrket module lib. */ class NXMApi{ final public function __construct() { throw new WeeboException("Can not instantiate static class!"); } final public function __clone() { throw new WeeboException("Can not clone static class!"); } public stat...
true
4d56a2b56ef6f1ce06d7156d0e4e4144b8b05c06
PHP
hrmCloud2015/nominaHrm
/src/Nomina/Controller/RetefuenteController.php
UTF-8
11,105
2.5625
3
[]
no_license
<?php /** STANDAR MAESTROS NISSI */ // (C): Cambiar en el controlador namespace Nomina\Controller; use Zend\Mvc\Controller\AbstractActionController; use Zend\View\Model\ViewModel; use Zend\Db\Adapter\Adapter; use Zend\Form\Annotation\AnnotationBuilder; use Principal\Form\Formulario; // Componentes generales...
true
2ae1800ffcb17fdc24cf1469cfda81a52c1f9fdc
PHP
ins0/zf2-snippster
/src/Snippster/Service/Snippster.php
UTF-8
3,423
2.671875
3
[ "MIT" ]
permissive
<?php namespace Snippster\Service; use Snippster\Entity\ViewSnippet; use Zend\Cache\Storage\StorageInterface; use Zend\Http\Response; use Zend\ServiceManager\ServiceLocatorInterface; use Zend\View\View; class Snippster { /** @var StorageInterface */ protected $cacheAdapter; /** @var ServiceLocatorInterfa...
true
5719da82d87041dffeb44447c363be5818b4d172
PHP
skugarev/cache
/src/ArrayCache.php
UTF-8
5,148
3.0625
3
[]
no_license
<?php declare(strict_types=1); namespace Yiisoft\Cache; use DateInterval; use DateTime; use Psr\SimpleCache\CacheInterface; use Yiisoft\Cache\Exception\InvalidArgumentException; /** * ArrayCache provides caching for the current request only by storing the values in an array. * * See {@see \Psr\SimpleCache\CacheI...
true
b8fbddeea13cfc56a625de777055b1dc7d057de9
PHP
deta-aditya/citeup
/app/Modules/Electrons/HtmlContents/HtmlContentService.php
UTF-8
1,756
2.890625
3
[]
no_license
<?php namespace App\Modules\Electrons\HtmlContents; use App\Modules\Models\HtmlContent; use App\Modules\Nucleons\Service; class HtmlContentService extends Service { /** * The main model for the service. * * @var HtmlContent */ protected $model = HtmlContent::class; /** * Get mul...
true
02f11f3a4cb19be150f99ee1d3f2c530a98c973d
PHP
bansi490/Calculator
/classes/Calculator.php
UTF-8
3,889
3.265625
3
[ "MIT" ]
permissive
<?php /** * @author Bansi Joshi <bjoshi.490@gmail.com> * @Copyright (c) 2021, Bansi Joshi. All Rights Reserved. * @Link http://github.com/bansi490/ */ /** @include common file for default configration */ include_once __DIR__."/../includes/common.php"; /** create log file for the calcula...
true
50a0f924eb2d7a1a2f6696c5689643fa8de0514a
PHP
Meyito/Practicas-BACK
/app/Models/Goal.php
UTF-8
817
2.765625
3
[]
no_license
<?php namespace App\Models; use App\Models\BaseModel; /** * Description of Goal Model * * @author Melissa Delgado */ class Goal extends BaseModel { protected $fillable = [ "code", "name", "subprogram_id" ]; protected $hidden = [ "updated_at" ]; protected sta...
true
6057afdf964b2d732bacb5063b1108b5790307aa
PHP
wrafael/jCms
/application/library/jcms/FieldDefenitions.php
UTF-8
11,092
3.015625
3
[]
no_license
<?php namespace jcms; /** * This class holds the information of all the custom fields in the content * table. * - $fields -> all the non system fields * - $alternateTypes -> Alternate behaviors the admin can set on a content field * - static getForm functions -> We need a function for each type_handler & * alte...
true
493d74a848caca369dd662df055866857eb81789
PHP
Aprendizaje360/nll
/app/Http/Requests/Enterprise/UpdateEnterprise.php
UTF-8
1,062
2.53125
3
[]
no_license
<?php namespace App\Http\Requests\Enterprise; use Illuminate\Foundation\Http\FormRequest; class UpdateEnterprise extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** ...
true
01412ebfa2847132c36442bd1f4a4cb9b2ee25b2
PHP
chaozzj/garitas
/application/Database.php
UTF-8
426
2.703125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: lilsa * Date: 10/12/2017 * Time: 22:34 */ class Database extends PDO { public function __construct() { parent::__construct( 'mysql:host='. DB_HOST. '; dbname='.DB_NAME, DB_USER, DB_PASS, array(PDO::MYSQL_ATTR...
true
7d2c660accec726afb38e973e17dd3b6e7c8e87b
PHP
tonyberrynd/SugarDockerized
/sugar/src/Console/CommandRegistry/CommandRegistryInterface.php
UTF-8
2,114
2.71875
3
[ "Apache-2.0" ]
permissive
<?php /* * Your installation or use of this SugarCRM file is subject to the applicable * terms available at * http://support.sugarcrm.com/Resources/Master_Subscription_Agreements/. * If you do not agree to all of the applicable terms or do not have the * authority to bind the entity as an authorized representative...
true
2788b2dd87eaa08de2662eb755f7d8c21726a284
PHP
redoxx/sf3-Analysis
/src/Medical/AnalysisBundle/Entity/Analyse.php
UTF-8
5,714
2.59375
3
[]
no_license
<?php namespace Medical\AnalysisBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * Analyse * * @ORM\Table(name="analyse") * @ORM\Entity(repositoryClass="Medical\AnalysisBundle\Repository\AnalyseRepository") */ class Analyse { /** * @var int * * @ORM\Column(name="id", type="integer") *...
true
dfe252e553350c2bb221fbf4c6f51afd51da1651
PHP
aufawibowo/ddd
/app/modules/account/Core/Application/Services/SetHeadOfDpp/SetHeadOfDppService.php
UTF-8
1,871
2.75
3
[]
no_license
<?php namespace A7Pro\Account\Core\Application\Services\SetHeadOfDpp; use A7Pro\Account\Core\Domain\Exceptions\InvalidOperationException; use A7Pro\Account\Core\Domain\Exceptions\UnauthorizedException; use A7Pro\Account\Core\Domain\Exceptions\ValidationException; use A7Pro\Account\Core\Domain\Models\User; use A7Pro\A...
true
342562f5a1ab8657243964b645ebb328a4ac09e4
PHP
KashifSolangi35/php_abstract_interface
/abstract_class.php
UTF-8
2,740
2.96875
3
[]
no_license
<?php abstract class Abstract_class{ protected function dbConnect(){ $dbHost = "localhost"; $dbUserName = "root"; $dbPassword = ""; $dbDatabase = ""; // establish a database connection if(!isset($GLOBALS['dbConntion'])){ $GLOBALS['dbConntion'] = new mysqli($dbHost,$dbUserName, $dbPassword,$dbDa...
true
149353652113b87a095892166669eb8bb6a3424c
PHP
emuroiwa/elearning
/scripts/open.php
UTF-8
1,301
2.53125
3
[]
no_license
<?php if(isset($_POST['Publish'])){ mysql_query("UPDATE results set open='yes' where open='no'") or die (mysql_error()); ?> <script language="javascript"> alert("Results Published") location = 'index.php?page=open.php' </script> <?php } if(isset($_POST['Suppress'])){ mysql_query("UPDATE results set ...
true
32d77fdf8121287e025decc3365476ee93c01c33
PHP
Nakaharen/php
/introduction/mb-string.php
UTF-8
381
3.53125
4
[]
no_license
<?php $string = 'Testes de integração com PHP'; echo mb_strlen($string) . PHP_EOL; // "strlen" conta o número de bytes, não de caracteres. // "ç" e "ã" contam 2 bytes. // para trabalhar com string multibyte, usar mb_ // echo mb_strtoupper($string); => deixa tudo em letra maiúscula echo mb_convert_case($string, MB_CA...
true
3985a67bac00859e042f0dce0cf022a04d47fcdc
PHP
YoJaum33/brief30
/url.php
UTF-8
4,369
2.640625
3
[]
no_license
<!DOCTYPE html> <html lang="fr"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>url</title> <meta name="description" content="recette facile"> </head> <body><pre><?php // séparer ses identifiants et les protéger, une bonne habitude à prendre incl...
true
6305e86be9ef8df833ff0c3ad8e294c0e5b2aaa5
PHP
Kyanush/mihome.kz
/app/Requests/SaveCategoryRequest.php
UTF-8
703
2.65625
3
[ "MIT" ]
permissive
<?php namespace App\Requests; use Illuminate\Foundation\Http\FormRequest; class SaveCategoryRequest extends FormRequest { public function rules() { $data = $this->request->all(); $category_id = $data['category']['id'] ?? 0; return [ 'category.name' => ['required', 'uniqu...
true
ca9de117cdb815e8615768596c8b8bcbb3d28ea8
PHP
m4n3z40/HTMLOven
/src/HTMLOven/HTMLReference.php
UTF-8
6,117
3.5
4
[]
no_license
<?php namespace HTMLOven; class HTMLReference { /** * The array representing the tag reference * * <code> * array( * 'div' => array( * 'tagName' => 'div', * 'hasClosingTag' => true, * ), * 'p' => array( * 'tagName' => 'p', * 'hasClosingTag' => true, * ), * ) * </code> * ...
true
730eb26f6dc89d41afdd947a38a57c6e8a70839f
PHP
tmjam/PHP-Logger
/lib/class.logger.php
UTF-8
3,771
3.34375
3
[]
no_license
<?php /******************************************** Document : Created on : February 7, 2013, 7:56 PM Author : Tauseef Jamadar Description: Purpose of this class is to allow users to log/debug data into files. *********************************************/ include('class.confi...
true
3b51c2bf210be1e14b375257b68717310d4682b8
PHP
MonsterTKE/VapeRank
/application/models/vendor_model.php
UTF-8
6,753
2.5625
3
[]
no_license
<?php class Vendor_model extends CI_Model { function __construct() { parent::__construct(); } /* I was a retard when I started building this site, I did not think clearly enough about the function names and such. vendors == juice and allowed_vendors == vendors. I am too lazy to change now. */ function...
true
1c66d35f29d1a15f5f4badbe683e44b44a5ae730
PHP
ahmedashraf313/school_managment_system
/panel/question.php
UTF-8
1,613
3.015625
3
[]
no_license
<?php require_once "connection/conn.php"; class question extends connection { function __construct(){ parent::__construct(); } function get_id(){ $name=func_get_arg(0); $prepare ='SELECT * FROM questions '; $stmt= $this->DBC->prepare($prepare); $stm...
true
198add589f00cbe586d09b72596938b1eef7bbe5
PHP
JoaoDanielRufino/SimpleWebApplications
/Twitter_clone/database.php
UTF-8
471
2.921875
3
[]
no_license
<?php class database{ private $host = 'localhost'; private $usuario = 'root'; private $senha = ''; private $db = 'twitter_clone'; public function conecta_mysql(){ $conec = new mysqli($this->host, $this->usuario, $this->senha, $this->db); mysqli_set_charset($conec, 'utf8'); if(...
true
0e60191c9d7acf4b9a8b8500c668cf2e7d2ca8a8
PHP
vncloudsco/shopvc
/wp-content/plugins/wordpress-seo/admin/metabox/class-metabox-keyword-synonyms-button.php
UTF-8
1,299
2.71875
3
[ "Apache-2.0", "GPL-3.0-only", "GPL-1.0-or-later", "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-other-copyleft" ]
permissive
<?php /** * WPSEO plugin file. * * @package WPSEO\Admin\Metabox */ /** * Button to show the premium upsell. */ class WPSEO_Metabox_Keyword_Synonyms_Button { /** * Returns a button because a link is inappropriate here. * * @return string */ public function get_link() { $keyword_synonyms_modal_config...
true
d35f02b785225cfc91edb856f9c31395c1e3471e
PHP
ioa-maellak/sports_clubs_management
/sportsclub/models/RefRoles.php
UTF-8
915
2.5625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use Yii; /** * This is the model class for table "ref_roles". * * @property string $id * @property string $role_name * * @property TblMemberRole[] $tblMemberRoles */ class RefRoles extends \yii\db\ActiveRecord { /** * @inheritdoc */ public static function tableNam...
true
f4485677532bfdbc2007c5df920665fe689349b5
PHP
tariqmth/skylink-sdk
/src/Catalogue/Products/PhysicalPackage.php
UTF-8
2,023
2.90625
3
[]
no_license
<?php namespace RetailExpress\SkyLink\Sdk\Catalogue\Products; use ValueObjects\Number\Real; class PhysicalPackage { const CUBIC_WEIGHT_CONVERSION_FACTOR = 250; private $weight; private $length; private $width; private $height; private $manualCubicWeight; public static function fromN...
true
5659f060987b1b1e64a490e4ee605b6776b9d4da
PHP
esinobas/NewLegafitness
/php/Database/Tables/TB_Timetable.php
UTF-8
4,181
2.84375
3
[]
no_license
<?php /** * Class with the specific methods and properties to access to the table data * * In this class the logical structure table is defined. */ /*if ( ! strpos(get_include_path(), dirname(__FILE__))){ set_include_path( get_include_path() . PATH_SEPARATOR . dirname(__FILE__)); }*...
true
0f5c084981daeca99f40a7c93128b9649fb300cd
PHP
pinguo-hewenlong/mingqi
/tp/application/inner/controller/Puser.php
UTF-8
16,193
2.609375
3
[ "Apache-2.0" ]
permissive
<?php namespace app\inner\controller; use think\Controller; use think\Db; class Puser extends Base { public function __construct() { parent::__construct(); } /* * 定义内部处理函数 */ //处理设置返回信息,第二版添加 private function setReturn() { } //处理信息:获取个人相关信息 public function getFromDb() { $table ...
true
8fd74c8f88801820bdf2675c695b8b25b35bb471
PHP
naumoff/demoshop
/app/Question.php
UTF-8
878
2.5625
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Question extends Model { #region CLASS PROPERTIES protected $table = 'questions'; protected $fillable = [ 'inquirer_id', 'question', 'url' ]; #endregion #region MAIN METHODS #endregion ...
true
20ab88e69251df022448778e45fb5fe5c5b402b7
PHP
adaiboad/FiLo-system
/admin.php
UTF-8
2,521
2.53125
3
[]
no_license
<?php session_start(); //check if the admin is logged in, otherwise redirect to start if (! isset($_SESSION['name'])){ header("Location: adminLogin.php"); $username = $_POST['username']; $password = $_POST['password']; } //if the form has been submitted //connect to the database $db = new PDO("mysql:dbna...
true
bc6cb00dabd872d122eca2911ff466ea1167301a
PHP
Mestrona/aqbanking-php
/src/AqBanking/Command/ListUsersCommand.php
UTF-8
1,078
2.578125
3
[ "MIT" ]
permissive
<?php namespace AqBanking\Command; use AqBanking\Command\AddUserCommand\UserAlreadyExistsException; use AqBanking\Command\ShellCommandExecutor\DefectiveResultException; use AqBanking\Command\ShellCommandExecutor\ResultAnalyzer; use AqBanking\User; class ListUsersCommand extends AbstractCommand { const RETURN_VAR...
true
dc7b2b2119ce14448a4f4aa345a29ae982a63c4a
PHP
Qafoo/changetrack
/src/main/Qafoo/ChangeTrack/DependencyInjection/AnonymouseServiceGenerator.php
UTF-8
1,853
2.78125
3
[ "MIT" ]
permissive
<?php namespace Qafoo\ChangeTrack\DependencyInjection; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Definition; use Symfony\Component\DependencyInjection\Reference; class AnonymouseServiceGenerator { /** * @var \Symfony\Component\DependencyInjection\C...
true
6615f3827c7abe246e613d75e70d8c9666ce2564
PHP
VictorBorysiuk/dayside
/public/show_comments.php
UTF-8
1,316
2.609375
3
[]
no_license
<?php require_once("../includes/session.php"); ?> <?php require_once("../includes/db_connection.php"); ?> <?php require_once("../includes/functions.php"); ?> <?php header("Content-Type: text/html; charset=utf-8"); print("<form> <form action='index.php' method='get'> <p>Sort:</p> <input type='radio' name='sort...
true
6e8496bd321d62f330c6bc6f84af873a024aeea4
PHP
audianz/Web
/www_production/application/modules/admin_shyam/models/mod_common_operations.php
UTF-8
2,178
2.640625
3
[]
no_license
<?php class Mod_common_operations extends CI_Model { // Common Operations For Single Table - Adding,Updating and Deleting /******** Insert the given data to dynamic Table ******/ function insert_data($insert_data,$tbl_name) { if(!empty($insert_data)) { $this->db->insert($tbl_name,$insert_data); if($this...
true
2f213393e2b18c0aa59176b556cd91ea8f7c76f3
PHP
TristenAnderson/CSCI-466
/CSCI 466/Assign 10/connectDB.php
UTF-8
367
2.921875
3
[]
no_license
<?php $username = 'z1820036'; $password = ''; try { // if something goes wrong, an exception is thrown $dsn = "mysql:host=courses;dbname=z1820036"; $pdo = new PDO($dsn, $username, $password); } catch(PDOexception $e) { // handle that exception echo "Connection to database failed: " . $e->getMessage(); } ...
true
64dd35bb0acb9e34d71bcc7cb474f8200d33f013
PHP
igao01/laravel_crud_cliente_contato
/app/Http/Controllers/ClienteController.php
UTF-8
2,558
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Support\Facades\Validator; use App\Models\Cliente; use App\Models\Contato; class ClienteController extends Controller { //LISTAR TODOS public function list(Request $request) { $array = ['error' => '', 'data' => []]; $data ...
true
1fa0e6a0628ac187db10439ddd9ae135aa9568bd
PHP
GlebSoftware/tems
/app/Http/Requests/ToolnameRequest.php
UTF-8
1,042
2.5625
3
[]
no_license
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class ToolnameRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** * Get t...
true
b05b3c16693638d2b4ba16654f8aa27bddb77a21
PHP
floatphp/Kernel
/src/BaseController.php
UTF-8
5,568
2.671875
3
[ "MIT" ]
permissive
<?php /** * @author : JIHAD SINNAOUR * @package : FloatPHP * @subpackage : Kernel Component * @version : 1.0.2 * @category : PHP framework * @copyright : (c) 2017 - 2023 Jihad Sinnaour <mail@jihadsinnaour.com> * @link : https://www.floatphp.com * @license : MIT * * This file if a part of...
true
d40297627d80d972c21f721e0b673d105aa3dc7e
PHP
8thWonderland/8thWonderland
/src/8thWonderland/Library/Controller/ActionController.php
UTF-8
4,424
2.578125
3
[]
no_license
<?php namespace Wonderland\Library\Controller; use Wonderland\Library\Application; use Wonderland\Library\Exception\AccessDeniedException; use Wonderland\Library\Exception\ForbiddenException; use Wonderland\Library\Http\Request\Request; use Wonderland\Library\Http\Response\Response; use Wonderland\Library\Http\Respon...
true
7519f339e163b71a111c2549f637ad9ed702f44d
PHP
liljeros/rand
/themes/core/functions.php
UTF-8
610
2.578125
3
[]
no_license
<?php $rd->data['header'] = '<h1>Header: Rand</h1>'; $rd->data['footer'] = '<p>Footer: &copy; Rand by Rickard Liljeros</p>'; /** * Print debuginformation from the framework. */ function get_debug() { $rd = CRand::Instance(); $html = "<h2>Debuginformation</h2><hr><p>The content of the config array:</p><pre>" . ht...
true
abb8d352efa1287f2e1387364e79a6f24855d16f
PHP
bryanw05/ABASports_Web
/android/getrequest.php
UTF-8
428
2.625
3
[]
no_license
<?php require 'jsoninterface.php'; $json = new JSONInterface(); $query = filter_input(INPUT_GET, "query", FILTER_SANITIZE_STRING); // will contain a fully formed query if(!$query){ $id = filter_input(INPUT_GET, "ID", FILTER_SANITIZE_STRING); // if query not present, check for player id $query = "select * from ...
true
6c00e38b58f73af12ea5a65f3afc3d0a3ff90e22
PHP
cairnswm/ToDo-Natural
/api/ActionsDBConfig.php
UTF-8
1,569
2.796875
3
[]
no_license
<?php global $mysqli; $DBServer = "localhost"; $DBUser = "cairnsco_todon"; $DBPassword = "123Password+1"; $DBSchema = "cairnsco_blackoutrugbytools"; //Open database connection function dbconnect() { global $mysqli, $DBServer, $DBUser, $DBPassword, $DBSchema; $mysqli = new mysqli($DBServer,$DBUser,$DBPassword,$DBS...
true
8df3c2324f27db9823bf7f18759f88c4611fc824
PHP
ctr1hub/poc_test
/phpyun_v4.3/uploads/api/pw_api/class_Invite.php
UTF-8
1,176
2.515625
3
[ "Apache-2.0" ]
permissive
<?php /* * $Author :PHPYUN开发团队 * * 官网: http://www.phpyun.com * * 版权所有 2009-2017 宿迁鑫潮信息技术有限公司,并保留所有权利。 * * 软件声明:未经授权前提下,不得用于商业运营、二次开发以及任何形式的再次发布。 */ !defined('P_W') && exit('Forbidden'); //api mode 8 class Invite { var $base; var $db; function Invite($base) { $this->base = $base; $this->db...
true
4832f05cadcb218cee0b14efe3cbc234ce2baa2b
PHP
mmontalvo13/recipesv2
/add.php
UTF-8
2,657
2.84375
3
[]
no_license
<?php include("header.php"); ?> <?php if(isset($_POST['submit'])){ // Connect to database $conn = mysqli_connect('localhost', 'matias', '13junio02', 'recipesv2'); // check connection if(!$conn){ echo 'Connection error: ' . mysqli_connect_error(); exit(); } $ing...
true
7dabbb36b00abe1924602ae12c3ac00be902db2a
PHP
igorsudijovski/arkanoid-seminarska-wbs
/ arkanoid-seminarska-wbs --username IgorSudijovski@gmail.com/php services/userService.php
UTF-8
2,566
3.03125
3
[]
no_license
<?php /* * Created on 28.11.2012 * * To change the template for this generated file go to * Window - Preferences - PHPeclipse - PHP - Code Templates */ class User{ var $user; var $score; private $password; private $question; private $answer; private $scorenum; function __construct($u){...
true
3de756612badacedb799c3962629c5add2747554
PHP
YobeSeven/laravel_portfolio_crud
/app/Http/Controllers/AboutsController.php
UTF-8
2,797
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Models\About; use Illuminate\Http\Request; use Illuminate\Support\Facades\Redirect; class AboutsController extends Controller { //* READ DANS ADMIN *// public function about(){ $abouts = About::all(); return view('admin.contents.about-admin', comp...
true
4127eb99184610c2e56b7e77e72af8f0da74ed3f
PHP
chakrit27/week4-5
/condition101.php
UTF-8
976
3.625
4
[]
no_license
<?php echo "1.The if Statement<br>"; $t = date("H"); echo $t."<br>"; if($t < "20"){ echo "Have a good day!"; } ?> <?php echo "2.The if else Statement<br>"; $t = date("H"); echo $t."<br>"; if($t < "20"){ echo "Have a good day!"; } else{ ...
true
394d96ee925dca72875262c58a3c9838ea048bb8
PHP
moovspace/routex-php
/app/Core/Cart/Addon.php
UTF-8
665
3.21875
3
[]
no_license
<?php namespace App\Core\Cart; class Addon { function __construct(int $id, int $qty = 1, float $price, float $packing = 0, string $name = '', float $price_sale = 0) { if($qty < 1) { $qty = 1; } $this->Qty = $qty; $this->Id = $id; $this->Price = $price; $this->PriceSale = $price_sale; $this->Packing ...
true
85369b27ee10e13ed889336b4421ded07f203f10
PHP
Tetramatrix/proxydigger
/webroot/ajax.php
UTF-8
4,406
2.5625
3
[]
no_license
<?php /*************************************************************** * Copyright notice * * (c) 2010-2017 Chi Hoang * All rights reserved * ***************************************************************/ require_once 'class.IP2Proxy.php'; require_once "proxies.php"; error_reporting(E_ERROR | E_PARSE); //ini_set("d...
true
95d080d94b6ff939163d5a04baa161e3d756e367
PHP
LeandroBaroni/curso-php
/api/lendoArquivos.php
UTF-8
595
3.015625
3
[]
no_license
<div class="titulos">Lendo Arquivos</div> <?php $arquivo = fopen('teste.txt', 'r'); echo fread($arquivo, 10); echo '<br>'; echo fread($arquivo, 10); echo '<br>'; fclose($arquivo); $arquivo = fopen('teste.txt', 'r'); $tamanho = filesize('teste.txt'); echo $tamanho; echo fread($arquivos, $tamanho); fclose($arquivo); ec...
true