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
60e766ef320a34d0194f6e38ded28b6e916582fc
PHP
jingsea/cleanair
/monitors/app/Services/ApiServer/Response/MonGet.php
UTF-8
1,866
2.5625
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: HP * Date: 2016/12/12 * Time: 17:48 */ namespace App\Services\ApiServer\Response; use Illuminate\Support\Facades\DB; /** * api get Monitors */ class MonGet extends BaseResponse implements InterfaceResponse { /** * 接口名称 * @var string */ protected $...
true
9148eca787f9e595a100625ba5c00b9153c0d226
PHP
herayafpm/backend_pos_uga
/app/Models/KaryawanModel.php
UTF-8
1,105
2.640625
3
[ "MIT" ]
permissive
<?php namespace App\Models; use CodeIgniter\Model; class KaryawanModel extends Model { protected $table = 'karyawan'; protected $primaryKey = 'id'; protected $returnType = 'array'; protected $allowedFields = ['user_id','toko_id']; protected $useTimestamps = true; protected $created...
true
becae31412dc94514b6cee735027058c1570b290
PHP
furter/pfbp_sushee
/sushee/classes/Sushee_AWS_SES.php
UTF-8
3,380
2.703125
3
[]
no_license
<?php require_once(dirname(__FILE__).'/../lib/Swiftmailer/lib/swift_required.php'); require_once(dirname(__FILE__).'/../lib/Swiftmailer-ses/classes/Swift/Transport/AWSTransport.php'); require_once(dirname(__FILE__).'/../lib/Swiftmailer-ses/classes/Swift/AWSTransport.php'); require_once(dirname(__FILE__).'/../lib/Swift...
true
0cfaac5fa2d00f174707056f906d23f2ca6cd511
PHP
Mittsuyama/www
/php/tag_box.php
UTF-8
2,808
2.703125
3
[]
no_license
<div id = "tagBox" class = "rightHead"> <i class="rightMargin fa fa-tags" aria-hidden="true"></i> <span class = "tabBoxTitle">TAGS</span> <div class = "hrGray"></div> <div id = "tagBoxContent"> <?php function utf8_array_asort(&$array) { if(!isset($array) || !is_array(...
true
8525c49699106c37ad8f29b822b6a551c60b9895
PHP
peter279k/email-parser
/src/EmailParser.php
UTF-8
7,033
2.84375
3
[ "MIT" ]
permissive
<?php /* * Email Parser * https://github.com/ivopetkov/email-parser * Copyright 2017, Ivo Petkov * Free to use under the MIT license. */ namespace IvoPetkov; /** * */ class EmailParser { /** * * @param string $email * @return array */ public function parse(string $email): array ...
true
f782022a3ccf6fb419d54603a67e37ef7ef02553
PHP
d0riven/InsertDataValidator
/lib/InsertDataValidator/FactoryGenerator.php
UTF-8
1,901
2.6875
3
[ "BSD-2-Clause" ]
permissive
<?php namespace InsertDataValidator; use InsertDataValidator\Exception\UnsupportedDriverException; class FactoryGenerator { // @see http://php.net/manual/ja/pdo.drivers.php const DRIVER_NAME_MYSQL = 'mysql'; const DRIVER_NAME_PGSQL = 'pgsql'; const DRIVER_NAME_ORACLE ...
true
49c94310b3c2e2692fcfe9eb2314bb0f6f360414
PHP
derbear/bellbook
/previous/util/connect.php
UTF-8
1,183
2.578125
3
[]
no_license
<?php function connect($private=false) { //connects to database and starts session require("dbConfig.php"); $con=mysql_connect($ADDRESS, $ADMIN, $PASSWORD); if(!$con) { //echo 'bad connection'; //echo mysql_error(); die(/*'Failed to connect: ' . mysql_...
true
a6c5e743928c3dfbd9c870fcc14d193f9ed307da
PHP
selvy19/Web2
/pert7_latihan7.php
UTF-8
208
2.96875
3
[]
no_license
<HTML> <HEAD> <TITLE> Penggunaan Join </TITLE> </HEAD> <BODY> <?php $var = array (' Tanggal 17 ' , ' Bulan 05 ' , ' Tahun 2010 '); $tanggal = join(" - ", $var); echo "$tanggal"; ?> </BODY> </HTML>
true
a04eb0bfed5c8c2bff56943ad11b85f761cf5c28
PHP
RaliDardjonova/audio-anotation
/src/export.php
UTF-8
2,328
2.609375
3
[]
no_license
<?php include('../config.php'); session_start(); $servername = $DB_HOST; $username = $DB_USER; $password = $DB_PASS; $dbname = $DB_NAME; try { $conn = new PDO("mysql:host=$servername; dbname=$dbname", $username, $password); $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCE...
true
ace80c781e5b7ffe9e3f8739d4b7f4a4ba4f294b
PHP
wrong-about-everything/impiura
/src/Error/FromPdo.php
UTF-8
373
2.703125
3
[]
no_license
<?php declare(strict_types=1); namespace Impiura\Error; use PDO; class FromPdo extends ErrorArray { private $pdo; public function __construct(PDO $pdo) { $this->pdo = $pdo; } public function value() { return [ 'code' => $this->pdo->errorCode(), 'exte...
true
fcb861f01b5391d7102f110fd69c3a8809598969
PHP
Jimi2333/webserver
/php/login1.php
UTF-8
487
2.578125
3
[]
no_license
<?php require_once("conn.php"); $username=$_POST['username']; $password=$_POST['password']; $sql = "SELECT UserName, Password FROM user"; $result = mysqli_query($conn, $sql); if (mysqli_num_rows($result) > 0) { // output data of each row while($row = mysqli_fetch_assoc($result)) { if($row ["UserName"]=...
true
8e196b7222d00ebdffceb7635a445f0c27409894
PHP
robbieaverill/silverstripe-markdowntextareafield
/forms/MarkdownTextareaField.php
UTF-8
2,624
2.765625
3
[ "BSD-3-Clause" ]
permissive
<?php /** * Configure the input field for markdown */ class MarkdownTextareaField extends TextareaField { /** * Define the actions allowed on this field * @var array */ private static $allowed_actions = array( 'preview', 'parse' ); /** * @var int Visible number of ...
true
e51348718b900269664c78b60b540b8cff71782c
PHP
philippehvp/pronostics
/concours_centre/concours_centre_affichage_choix_match_canal_onglets.php
UTF-8
2,032
2.515625
3
[]
no_license
<?php include_once('../commun.php'); // Lecture des paramètres passés à la page $largeur = isset($_POST["largeur"]) ? $_POST["largeur"] : 0; $championnat = isset($_POST["championnat"]) ? $_POST["championnat"] : 0; // Affichage des journées terminées du championnat $ordreSQL = ' SELECT journees.Jou...
true
0c2d7a466d630ef68865d37a50367c1898cddcbe
PHP
Silvayn/weneedplayer
/App/EntityManager.php
UTF-8
211
2.609375
3
[]
no_license
<?php namespace App; abstract class EntityManager { /** * * @var \PDO */ protected $pdo; public function __construct() { $this->pdo = PDOFactory::getPDO(); } }
true
b6802ec0555320bdbece43a9e7cdc5593119b345
PHP
efraindiaz/controlescolar
/model/ModeloGestionarGrupo.php
UTF-8
1,293
2.515625
3
[]
no_license
<?php require_once('db_abstract_model.php'); class Modelo_AsignarProfesor extends DBAbstractModel { var $idCarrera; var $idProfesor; var $idGrupo; public function stringQuery($idCarrera){ $this->idCarrera = $idCarrera; } public function datos($idProfesor, $idGrupo){ $this->idProfesor = $idProfesor; $thi...
true
53c8c4f11c412743fbf2ad4dae2be20dba67760a
PHP
andgar2010/Project_New_Reset_AIHD
/WEB/old/testupload/upload.php
UTF-8
3,661
2.8125
3
[]
no_license
<?php /** * Upload file to folder. * PHP Version 7.2. * * @category UploadFile * @package UploadFile_BD * @author Andres Garcia (andgar2010) <afgarcia0479@misena.edu.co> * @author Obed Alvarado (created code) <info@obedalvarado.pw> * @copyright 2018 - 2018 Andres Garcia * @copyright 2015 - 2018 Obed...
true
79489fe095ca12b81c1be34d2a8d5f5e2b64aa5a
PHP
profesionalsdevs/Login_HTML5_PHP
/PHP/login.php
UTF-8
523
2.53125
3
[]
no_license
<?php require 'connection.php'; if (isset($_POST['username'])) { $username = $_POST['username']; $password = sha1($_POST['password']); $query = "SELECT * FROM users WHERE Username = '$username' AND Password = '$password'"; $result = mysqli_query($connection, $query); $row = mysqli_fetch_assoc(...
true
e3634e410c0690a150547882ff942b93861f640d
PHP
ITColony/pre_training
/SimplifiedMagento/FirstModule/Model/Book.php
UTF-8
438
2.671875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Owner * Date: 12/16/2018 * Time: 9:10 AM */ namespace SimplifiedMagento\FirstModule\Model; use SimplifiedMagento\FirstModule\Api\Color; use SimplifiedMagento\FirstModule\Api\Size; class Book { protected $color; protected $size; public function ...
true
19044a003ca1c0045b789f1fcc7b1b5c7c5fb3c0
PHP
kriserickson/KrisMVC
/framework/tests/Orm/KrisCrudModelTest.php
UTF-8
4,331
2.609375
3
[ "MIT" ]
permissive
<?php require(__DIR__.'/ClassModelTest.php'); /** * Test class for KrisModel. * Generated by PHPUnit on 2011-06-27 at 23:07:16. */ class KrisCrudModelTest extends PHPUnit_Framework_TestCase { /** * @test */ public function testGetOne() { $classId = 23; $cat...
true
d03ee78e0dbff8ff51f770237ff55fdb55f15070
PHP
makameister/framework.dev
/src/Framework/Event/Event.php
UTF-8
1,757
2.953125
3
[]
no_license
<?php declare(strict_types = 1); namespace Framework\Event; class Event implements EventInterface { /** * @var string */ private string $name; /** * @var mixed */ private $target; /** * @var array<string, mixed|null> */ private array $params; /** * @va...
true
9d2a4c0b0922cd5a6e3b1e4ec438bdd4305dfe00
PHP
AlphaRomeoMike/php-login-system-with-mysql
/config.php
UTF-8
309
2.546875
3
[]
no_license
<?php $con = mysqli_connect("localhost", "root", "", "login"); if($con) { // echo "Connection established"; } function validate($input) { $input = htmlspecialchars($input); $input = stripslashes($input); $input = trim($input); return $input; } ?>
true
b94c89a9f98bb01e1f68a1727dd2413f8ab61ec0
PHP
gyc2015/gycphp
/MVC/control.class.php
UTF-8
2,374
3.046875
3
[]
no_license
<?php /* * control - 各个模块的控制基类 */ class control { # 构建模块的app,保证引用传递 protected $app; # 父模块,若模块由app直接创建,则为null protected $parent; public function get_parent() { return $this->parent; } # 模块名称 protected $name; public function get_name() { return $this->name; } # 模块根目录 protected $module_root;...
true
4ced895c6491fe436af7ca219903b0530c033558
PHP
anilkhute421/assingnment
/update.php
UTF-8
3,182
2.859375
3
[]
no_license
<?php include_once('config.php'); session_start(); if(!isset($_SESSION['username'])) { $_SESSION['msg'] = "<label style='color:red;'>Access Denied!!</label>"; header('Location:login.php'); exit(); } if(isset($_GET['Id'])) { $id = $_GET['Id']; $sqlItem = "SELECT * FROM tblsaveitems WHERE Id=$id"; ...
true
f06b2e4d875f94da152c1a98a73c4ba81c77928d
PHP
PaulSunbinovic/evcpc
/admin/Lib/Model/TreeModel.class.php
UTF-8
871
2.578125
3
[]
no_license
<?php class TreeModel{ //###################处理权限极其关系问题统一在这里 //############test public function test(){ header("Content-Type:text/html; charset=utf-8"); return $arr; } /* 3浙江01 7湖州31 2杭州32 9萧山区21 1拱墅区22 5江干区23 4下沙51 10西湖区24 6金华33 8江苏02 //#####测试使用代码 $tree=D('Tree'); $treels=M('tree')...
true
bae0f5e835e4c3fec2caf7aae3863dd7836f42c3
PHP
LunaSystemsPeru/sebeal_transporte
/models/Clasificacion.php
UTF-8
1,995
2.765625
3
[]
no_license
<?php require_once 'Conectar.php'; class Clasificacion { private $id; private $nombre; private $c_conectar; /** * Clasificacion constructor. */ public function __construct() { $this->c_conectar = Conectar::getInstancia(); } /** * @return mixed */ public...
true
8638ecaa7b9d9a117e3fca4b721c53bd2dedfda2
PHP
PratikRaut15/speed-elixia-project
/modules/api/W15/class/reports.api.php
UTF-8
82,629
2.625
3
[]
no_license
<?php require_once("global.config.php"); require_once("database.inc.php"); if (!class_exists('VODevices')) { class VODevices { } } class reports { function __construct() { $this->db = new database(DB_HOST, DB_PORT, DB_LOGIN, DB_PWD, SPEEDDB); } function gettempreport($customerno...
true
b653728ddeb42e092049c9cb072bfcac10861bd0
PHP
Abdullahmasood553/Show-Data-on-based-of-Date-using-ajax-in-php
/fetch.php
UTF-8
691
2.703125
3
[]
no_license
<?php $connection = mysqli_connect("localhost", "root", "", "php_validation"); $return_arr = array(); $query = "SELECT * FROM users"; $result = mysqli_query($connection, $query); while($row = mysqli_fetch_array($result)){ $id = $row['id']; $fname = ...
true
b14b92c43ec24797c1840a976d0fb2327ece1888
PHP
samirjisan/Assignment_6
/IronMan.php
UTF-8
193
2.703125
3
[]
no_license
<?php include 'Avenger.php'; class IronMan extends Avenger{ public $color = "Red"; public function flyingHero() { echo "Iron Man Can Fly"; } } ?>
true
b10832f32dd8990ee985c58f9ddefc5f0038a4da
PHP
neos/fluid
/Classes/TYPO3/Fluid/ViewHelpers/AliasViewHelper.php
UTF-8
1,937
2.796875
3
[ "MIT" ]
permissive
<?php namespace TYPO3\Fluid\ViewHelpers; /* * This file is part of the TYPO3.Fluid package. * * (c) Contributors of the Neos Project - www.neos.io * * This package is Open Source Software. For the full copyright and license * information, please view the LICENSE file which was distributed with this * source cod...
true
50af51ccae12241661e405920133f6a4300eb4aa
PHP
marscore/hhvm
/hphp/test/slow/ir_refcount/sink_jcc.php
UTF-8
511
2.546875
3
[ "Zend-2.0", "PHP-3.01", "MIT" ]
permissive
<?php function x() { return make_uniqid(microtime()); } // At the time this test was added, this function could sink increfs into // conditional exits of a region, which tests jcc service requests that have // the jcc and the stub in the same code block. function make_uniqid($prefix = '') { $uniqid = uniqid('', tru...
true
556dd0f6d0ba8b4e8a8ab39f4b74194daf1f99f2
PHP
freshheads/webpack-stats
/src/Stats.php
UTF-8
1,709
2.875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); /* * This file is part of the Freshheads Webpack stats library. * * (c) Freshheads B.V. <info@freshheads.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace FH\WebpackStats; use FH\Webp...
true
cb98d5cfb00af165ab667430cb326477ad8b7f2a
PHP
yuan1998/housesDemo
/app/CustomHelp/HelpArray.php
UTF-8
1,003
2.8125
3
[]
no_license
<?php namespace CustomHelp; class HelpArray { public function __construct($data){ $this->fill($data); } public function fill($data) { foreach($data as $key=>$value){ $this->$key = $value; } } public function _get($key) { return array_get($this,$key); }...
true
bf7d4ad7406b32be70a661b9d485f28e83b5a2a3
PHP
gpreviatti/my-wallet-backend
/app/Http/Controllers/EntraceController.php
UTF-8
3,465
2.703125
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Models\Repositories\EntraceRepository; use Illuminate\Http\JsonResponse; use Illuminate\Http\Request; use Illuminate\Support\Facades\DB; class EntraceController extends Controller { /** * repository variable * * @var EntraceRepository */ priva...
true
dc0fca7a19a03797a41e86a94801a6170563fcbe
PHP
lucas-simoes/autoescola
/protected/controllers/CofiguracoesController.php
UTF-8
4,478
2.6875
3
[]
no_license
<?php class CofiguracoesController extends Controller { /** * @var string the default layout for the views. Defaults to '//layouts/column2', meaning * using two-column layout. See 'protected/views/layouts/column2.php'. */ public $layout='//layouts/column2'; /** * @var CActiveRecord the currently loaded dat...
true
774068190db85148f55fc172d3221afa6233fe61
PHP
derrabus/orm
/lib/Doctrine/ORM/Query/AST/Literal.php
UTF-8
496
2.90625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Doctrine\ORM\Query\AST; use Doctrine\ORM\Query\SqlWalker; class Literal extends Node { final public const STRING = 1; final public const BOOLEAN = 2; final public const NUMERIC = 3; /** @psalm-param self::* $type */ public function __construct( ...
true
e6c600f6c4d001ad1a82bc7bd3d5e5add5aff196
PHP
opetstudio/boxbilling-system
/landingpage/src/Domain/Price/Service/PriceCreator.php
UTF-8
1,616
3.046875
3
[ "MIT" ]
permissive
<?php namespace App\Domain\Price\Service; use App\Domain\Price\Data\PriceData; use App\Domain\Price\Repository\PriceRepository; // use App\Domain\Price\Repository\PriceValidator; use App\Factory\LoggerFactory; use Psr\Log\LoggerInterface; /** * Service. */ final class PriceCreator { private PriceRepository $re...
true
8084c9e1e8c18bc7e132e9a41c085bf2e140fef9
PHP
AdoptOpenJDK/gamified-java9-hackathon
/src/main/resources/static/bower_components/SyntaxHighlighter/build/ext/phing/classes/phing/filters/XincludeFilter.php
UTF-8
4,016
2.734375
3
[ "LicenseRef-scancode-unknown-license-reference", "LGPL-3.0-only", "Unlicense" ]
permissive
<?php /* * $Id: XincludeFilter.php,v 1.16 2005/12/07 20:05:01 hlellelid Exp $ * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE...
true
2b6862540072ec4141bbd6f75b40f659380332c2
PHP
renatocosta/quake-data-collector
/src/Domains/Context/LogHandler/Application/Services/HumanRowMapper.php
UTF-8
757
2.828125
3
[]
no_license
<?php namespace Domains\Context\LogHandler\Application\Services; use Domains\Context\LogHandler\Domain\Services\RowMapped; class HumanRowMapper implements RowMapped { private array $noResult = []; public function map(string $rawRow): array { $rowMapped = $this->noResult; //remove 'gre...
true
b1ef527fc2322d8088cdcb4b79d723ce7e52c854
PHP
afane20/testPlan
/src/main/webapp/cs213/public_html/cs313/w10/mmeyers/location_schedule.php
UTF-8
1,580
2.59375
3
[]
no_license
<?php $schedule = db_query('select * from music_location_time mlt left join music_performance mp on mp.fk_location_time_id = mlt.pk_location_time_id where mlt.fk_location_id = '.$location_id.' order by mlt.date, mlt.time asc'); ?> <table class="list"> <tr> <th></th> <th>Date</th> <th>Time</th> ...
true
b09929569f503a281adb7c5e97c2e4a2cfee7ad3
PHP
NguyenQuocDan/Website_Ecommerce
/Controller/ShopController.php
UTF-8
1,665
2.71875
3
[]
no_license
<?php ob_start(); class ShopController { public $shopDB; public function __construct() { $this->shopDB = new ProductDB(); } function index() { $products = $this->shopDB->getAll(); include "View/product/list.php"; } public function delete() { if ($...
true
688ff77d5afa57bed4c04d42f31472dedc0f0875
PHP
andou/PHP-DBChecker
/includes/Autoloader.php
UTF-8
852
2.96875
3
[ "MIT" ]
permissive
<?php /** * This class is accountable of classes autoloading */ class Autoloader { /** * Registers autoloading methods */ public function register() { spl_autoload_register(array($this, 'autoload_core')); spl_autoload_register(array($this, 'autoload_checks')); } /** * Generic loading by fi...
true
d6f01f93504048ba48e287817ad78e188f1252ae
PHP
gizmore/gwf3
/core/module/Dog/dog_modules/dog_module/Shadowlamb/cmd/bounty/bounties.php
UTF-8
674
2.53125
3
[]
no_license
<?php /** * Show current bounties, paginated * @author gizmore */ final class Shadowcmd_bounties extends Shadowcmd { public static function execute(SR_Player $player, array $args) { $bot = Shadowrap::instance($player); switch (count($args)) { case 0: $page = 1; break; case 1: $page ...
true
4cb182c20932822f002092f522d967e9aa3cb0eb
PHP
Gabrielbelllo/backup
/www/API/PedidoCadastrar.php
UTF-8
811
2.75
3
[]
no_license
<?php namespace LOJA\API; use LOJA\Model\Cliente; use LOJA\Model\Pedido; use LOJA\Model\Carrinho; use LOJA\DAO\DAOPedido; class PedidoCadastrar{ public $msg; function __construct(){ try{ $c =new Cliente(); $c->setId($_SESSION['clienteid']);// Inserir um id já existent...
true
8c743ae85efaac9d598971090b598ee78d08af19
PHP
webtao520/php_project
/设计模式/外观模式/transaction.php
UTF-8
554
2.828125
3
[]
no_license
<?php //示例三:完成一个商品交易的复杂流程 //假设呢,一个商品交易环节需要有这么几步: $productID = $_GET['productId']; $qtyCheck = new productQty(); // 检查库存 if($qtyCheck->checkQty($productID) > 0) { // 添加商品到购物车 $addToCart = new addToCart($productID); // 计算运费 $shipping = new shippingCharge(); $shipping->updateCharge(); // 计算打折 ...
true
734aa868b02e9eaa5f62d59e6c86a04082bb21dd
PHP
AungYeHtatCoder/php_basic
/w3school_lesson/5_PHP_Strings/1_count_chars.php
UTF-8
693
3.25
3
[]
no_license
<?php $sentence = "The rain in Myanmar falls mainly on the plain"; //retrieve located characters and thire corresponding frequency. $char = count_chars($sentence, 1); foreach($char as $letter=>$frequency) { echo "Character " . chr($letter). " appears $frequency times<br><hr>"; } echo "<hr><br>"; $pargraph = "Lorem...
true
f3ae50db2b66feb45cf36eed9cfac90486ec108c
PHP
mohamedtajammul/FinalDonors
/new/user/eu.php
UTF-8
847
2.515625
3
[]
no_license
<?PHP $servername = "localhost"; $username = "root"; $password = ""; $dbname = "donate"; // Create connection $conn = mysqli_connect($servername, $username, $password, $dbname); // Check connection if (!$conn) { die("Connection failed: " . mysqli_connect_error()); } if($_GET['link']!= null) $u_id=$_GET['link']; $...
true
51cab637411db4b3344d718af7a30701ad48892b
PHP
wp-plugins/md-toc-generator
/mdtoc-admin.php
UTF-8
2,033
2.671875
3
[]
no_license
<?php if(isset($_POST['mdtoc_update']) && $_POST['mdtoc_update'] == 'update') { //Form data sent $selectedHeadings = $_POST['mdtoc_headings']; $serializedHeadings = serialize($selectedHeadings); update_option('mdtoc_headings', $serializedHeadings); ?> <div class="updated"><p><strong><?php _e('Options...
true
7d474ce49dd8da1b363fd9f672c8f00d11bbeff0
PHP
jhernandezj/AppWebFirmas
/lib/ext/ExcelToArray.class.php
UTF-8
10,901
3.046875
3
[]
no_license
<?php // Lanza todos los errores error_reporting(E_ALL | E_STRICT); // Tiempo ilimitado para el script set_time_limit(0); require_once 'PHPExcel/Classes/PHPExcel.php'; require_once 'PHPExcel/Classes/PHPExcel/IOFactory.php'; class ExcelToArray { /** * Contiene Las Extenciones Permitidas para E...
true
78d42adada45d3f8ad1537a1d97fc69b612abe63
PHP
ishaoguan/code-refactor
/src/bootstrap.php
UTF-8
9,428
2.9375
3
[ "MIT" ]
permissive
<?php /** * CodeRefactor * @author Ryan Liu <http://azhai.oschina.io> * @copyright (c) 2017 MIT License */ define('__CODE_REFACTOR_PATH', __DIR__ . '/CodeRefactor/'); if (! function_exists('starts_with')) { /** * 开始的字符串相同. * * @param string $haystack 可能包含子串的字符串 * @param string $nee...
true
18e5004025b4ed5d697223615ff8a2d4ecc66e2a
PHP
xiphux/tote
/include/get_pool_payout_amounts.inc.php
UTF-8
1,354
2.65625
3
[]
no_license
<?php require_once(TOTE_INCLUDEDIR . 'get_pool_pot.inc.php'); require_once(TOTE_INCLUDEDIR . 'get_pool_payout_percents.inc.php'); /** * get_pool_payout_amounts * * for a pool get the payout amounts * * @param object $poolid pool id * @return array array of placement payout amounts */ function get_pool_payout_...
true
48be15a631866c2b6ed558b04ba452c632d7d153
PHP
lucasfullstackdev/backend-challenge
/desafio-de-aplicacao/app/Entities/User.php
UTF-8
1,520
2.8125
3
[]
no_license
<?php namespace App\Entities; // use Illuminate\Contracts\Auth\MustVerifyEmail; // use Illuminate\Notifications\Notifiable; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Database\Eloquent\SoftDeletes; class User extends Authenticatable { use SoftDeletes; // use Notifiable; /***...
true
0d6e61eb65bf7d0a4b31745a8422327e0402db8d
PHP
phphatesme/LiveTest
/src/lib/Zend/Service/Technorati/Weblog.php
UTF-8
12,071
2.59375
3
[ "MIT" ]
permissive
<?php /** * Zend Framework * * LICENSE * * This source file is subject to the new BSD license that is bundled * with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://framework.zend.com/license/new-bsd * If you did not receive a copy of the license an...
true
283fa4f0bad0787b8a0bbacbeeb164af1802fa46
PHP
alexander-young/wp2000
/library/forms/ajax-contact-form.php
UTF-8
2,270
2.703125
3
[]
no_license
<?php add_action('wp_ajax_send_contact_form', 'handle_contact_form'); add_action('wp_ajax_nopriv_send_contact_form', 'handle_contact_form'); function handle_contact_form(){ // pretend everything was good if a bot fills out the honeypot if(!empty($_POST['website'])){ wp_send_json_success(); } $sanitized...
true
bba2b38112645e0cff624d0e0173211005ff8236
PHP
Nomilol/PhP_TestUnit_Rover
/tests/factoringRoverTest.php
UTF-8
1,908
2.78125
3
[]
no_license
<?php use PHPUnit\Framework\TestCase; /** *@covers Rover */ class testRover extends TestCase { public function testForwardWhenFacingNorth() { $rover = new Rover(0, 1, "North"); $this->assertEquals( array( 0, 1, "North" ), $rover->getPositionAndOrientation() ...
true
2fc17404f300de3af70229cfd7fdc97eee910d23
PHP
ec-mdecker/ec-modules
/sites/all/modules/custom/menu_block_placement/includes/views_plugin_argument_default_menu_block_placement_per_path.inc
UTF-8
987
2.6875
3
[]
no_license
<?php /** * @file * A contectual filter that allows content to show per menu item (not hierarchical) */ /** * Extending views_plugin_argument_default_node() */ class views_plugin_argument_default_menu_block_placement_per_path extends views_plugin_argument_default_node { /** * Provide the mlid */ functi...
true
12be73b39c2c81c46a23a439e2f1c1fb7e6bd782
PHP
Santhosh1223/CertificationWebsite
/config.php
UTF-8
3,618
2.640625
3
[]
no_license
<?php // load GCS library require_once 'vendor/fupload/autoload.php'; use Google\Cloud\Storage\StorageClient; // Please use your own private key (JSON file content) which was downloaded in step 3 and copy it here // your private key JSON structure should be similar like dummy value below. // WARNING: this is only fo...
true
30fb9cbca0f08dc7c95653b81a2cedf5e1c9180c
PHP
anshkatriya/gs
/GS/auto/class.php
UTF-8
2,339
2.8125
3
[]
no_license
<?php class GS_Auto_Class { private $request_path = array(); private $controller = ''; private $page= ''; private $subpage = ''; public $default_controller = ''; public $default_page = ''; public function __construct($_actionArray){ $this->default_controller = $_actionArray['default_controller']; ...
true
ba9c569720f5ba443696075493e5c3a73a32aab0
PHP
VJohn15/Taskbook
/while/03.php
UTF-8
186
3.359375
3
[]
no_license
<?php /** * Two positive integers N and K are given. Using addition and subtraction only, * find a quotient of the integer division N on K and also a remainder after this division. */
true
71a7c95b7b71b47c95deaca8062c9d6487384706
PHP
Agnaldoblopes/rate4it
/database/seeds/RatesTableSeeder.php
UTF-8
1,077
2.78125
3
[]
no_license
<?php use Illuminate\Database\Seeder; use App\Course; use App\Rate; class RatesTableSeeder extends Seeder { /** * Run the database seeds. * @return void */ public function run() { $allCourses = Course::all(); # Loop through all courses, and create a rate for each course ...
true
7668108416378a9680b9fba211f55b682537b371
PHP
jorgehmodesto/westwing_test
/app/Helpers/Validators/TicketValidator.php
UTF-8
1,820
2.984375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: jorge * Date: 26/01/18 * Time: 05:32 */ namespace App\Helpers\Validators; use Dotenv\Exception\ValidationException; class TicketValidator { /** * @var array */ private $params = []; /** * @var array */ private $requiredParams = [ ...
true
497c472795f8e8c367eca6ebdb80ad5415c6da98
PHP
prodeveloper/long_running_script
/queue_manager.php
UTF-8
737
2.53125
3
[]
no_license
<?php require_once 'helpers.php'; require_once 'model.php'; /** * @author Chencha Jacob Gisore * @link www.chenchatech.com */ class Queue_manager { //Write the path to your worker here static $path_to_worker='http://localhost/blog/long_running/worker.php'; function __construct() { } static function ...
true
151e1e3be8b493996f34b8bc1ae4fc941c62e21b
PHP
Acwhale/leetCode
/sort/insertSort.php
UTF-8
649
3.5
4
[]
no_license
function insertSort($arr){ if(count($arr) <= 0 ){ return $arr; } // 从下标为1的元素开始选择合适的位置插入,因为下标为0的只有一个元素,默认是有序的 for ($i=1;$i<count($arr);$i++){ // 记录要插入的数据 $tmp = $arr[$i]; // 从已经排序的序列最右边的开始比较,找到比其小的数 $j = $i; while ($j>0 && $tmp<$arr[$j-1]){ $arr...
true
9a814152305025fc2d3f54471ad4c886c3fb3d8e
PHP
zefilipe/my_classes
/com_algpdf/lib/db_algpdf_list.inc
MacCentralEurope
2,151
2.890625
3
[]
no_license
<?php /** * Database listing of the generated pdfs. * * This script, contains a class with methods, to manipulate data in daatabase for listing of the generated pdfs. * * @author Jos Filipe Lopes Santos <jfilipe@med.up.pt> * @version 1.0 - Date last modified: 27-03-2008 * @package algpdf * @subpackage librar...
true
7dd020e72c3cea637aaa6b04e504d682817c5ceb
PHP
lnsofficial/lns
/batch/lns_batch/app/Models/LolSeason.php
UTF-8
1,158
2.90625
3
[ "MIT" ]
permissive
<?php namespace App\Models; use App\Libs\UtilTime; class LolSeason extends BaseModel { protected $table = 'lol_seasons'; // テーブル名 protected $guarded = []; protected static $season_now = ''; protected static $season_before = ''; /** * 現在のシーズンを取得 * * */ public static function ...
true
b61deae89d177c965329bf395c100f11c28c1fe4
PHP
abdoukaba/monsite
/blog/index.php
UTF-8
1,788
2.6875
3
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>Mon blog</title> <link rel="stylesheet" href="css/style.css" /> <link rel="stylesheet" href="css/mobile.css" /> <link href="style.css" rel="stylesheet" /> </head> <body> <p><a href="..">Accueil du site </a></p> <h1>Mon sup...
true
77d74510c385b9f0dd2df7d0d1d025f8b1784874
PHP
Rkm11/ebuddy
/database/migrations/2017_10_20_175716_create_personal_info_table.php
UTF-8
1,559
2.515625
3
[]
no_license
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreatePersonalInfoTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('personal_i...
true
541e812b49a802dcf21fce5da964199444f71f6e
PHP
KyleLotilla/Mist-INTRODB-MCO2-
/search.php
UTF-8
3,927
2.796875
3
[]
no_license
<?php session_start(); if (isset($_POST['title'])) $_SESSION['title'] = $_POST['title']; if (isset($_POST['dev'])) $_SESSION['dev'] = $_POST['dev']; if (isset($_POST['genre'])) $_SESSION['genre'] = $_POST['genre']; if (ctype_space($_SESSION['title']) || $_SESSION['title'] == '') $_SESSION['title'] = null; if (ct...
true
ead3dc5b943f1e128929e23538a0745204a6aa04
PHP
treehouselabs/slugifier
/src/TreeHouse/Slugifier/Translation/EnglishTranslator.php
UTF-8
438
2.9375
3
[ "MIT" ]
permissive
<?php namespace TreeHouse\Slugifier\Translation; class EnglishTranslator implements TranslatorInterface { /** * @var array */ protected $map = [ // keep spaces around these since they are words, // in case of eg: foo+bar '&' => ' and ', '+' => ' and ', ]; /**...
true
7e620cd4e0f273edaee77b3bd7a34d15ae4b8f09
PHP
sycho05/Web-with-RestAPI
/application/models/post_model.php
UTF-8
1,889
2.71875
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php class Post_model extends CI_Model{ public function __construct() { parent:: __construct(); $this->load->database(); // $dbOracle = $this->load->database('oracle'); } public function get_posts($slug = FALSE) { if($slug === FA...
true
aa110261a18482e93d3fe7cc884518d09b1f32de
PHP
elden43/advent2019
/app/Presenters/Day6Presenter.php
UTF-8
3,503
3.0625
3
[]
no_license
<?php declare(strict_types=1); namespace App\Presenters; use App\AOC\SpaceObject; final class Day6Presenter extends BasePresenter { /** @var SpaceObject[] */ private $spaceMap; public function renderPuzzleResult(): void { $this->template->firstPuzzleResult = $this->firstPuzzleResult(); $this->template->sec...
true
1f35be9cb168c5917c3a74a69a933a0b5e3fdba5
PHP
kkstar34/extrait-de-naissance
/pdf.php
UTF-8
2,158
2.609375
3
[]
no_license
<?php require('fpdf/fpdf.php'); require 'config/config.php'; // setlocale(LC_TIME, 'fr_FR.UTF8'); // setlocale(LC_TIME, 'fr_FR'); // setlocale(LC_TIME, 'fr'); setlocale(LC_TIME, 'fra_fra'); $image1 = "images/ci.png"; $image2 = "images/abidjan.jpg"; if ($_POST['valider']){ $date = strftime('%A %d %B %Y, %H:%M'); ...
true
2c49eeb1c8942266c59de7b76306f0be7713840d
PHP
doiftrue/kama_excerpt
/kama_excerpt.php
UTF-8
3,964
2.734375
3
[]
no_license
<?php /** * Cuts the specified text up to specified number of characters. * Strips any of shortcodes. * * Important changes: * 2.8.0 - Improved logic to work with HTML tags in cutting text. * 2.7.2 - Cuts direct URLs from content. * 2.7.0 - `sanitize_callback` parameter. * 2.6.5 - `ignore_more` parameter. * 2...
true
2ab9b3e236346408a58a400af4c2e1f62a79fb56
PHP
omissis/psr-http
/src/Psr/Http/Response/Header/AllowInterface.php
UTF-8
286
2.5625
3
[]
no_license
<?php namespace Psr\Http\Message\Header; use Psr\Http\HeaderInterface; /** * Interface for Allow header * Valid actions for a specified resource. * To be used for a 405 Method not allowed * * Example: "Allow: GET, HEAD" */ interface AllowInterface extends HeaderInterface { }
true
c46c2e8858ae788ac322b6038c52734d0d03017b
PHP
allusai/laravel-class-project
/app/Http/Controllers/GenresController.php
UTF-8
1,850
2.828125
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use DB; use Validator; use Log; class GenresController extends Controller { public function index() { //First we want to capture the {id} variable from the url $genres = DB::table('genres')->get(); return view('genr...
true
0ec05b47fb37b8797c7570800ccd9a57e0eae2fc
PHP
zsol/cupapp
/data/migrations/007_facebook_profile.php
UTF-8
1,212
2.703125
3
[]
no_license
<?php /** * Migrations between versions 006 and 007. */ class Migration007 extends sfMigration { /** * Migrate up to version 007. */ public function up() { $this->executeSQL("ALTER TABLE sf_guard_user_profile ADD COLUMN `facebook_uid` VARCHAR(20)"); $this->executeSQL("ALTER TABLE sf_guard_user_pr...
true
8b6699538a1298361c290743e2397ce972735e18
PHP
vivekbirugupta/DataLoader-PHP
/src/Cache.php
UTF-8
3,234
3.21875
3
[ "MIT" ]
permissive
<?php namespace AndrewDalpino\DataLoader; use InvalidArgumentException; use IteratorAggregate; use ArrayIterator; use Countable; class Cache implements IteratorAggregate, Countable { /** * The items contained in the collection. * * @var array */ protected $items = [ // ]; ...
true
6a79a15983b3cbe490302aee62f1e09c7d36e5c8
PHP
MaBlanck/php-Partie4-Exercice8
/index.php
UTF-8
477
3.734375
4
[]
no_license
<?php function sum($startNumber = 0, $middleNumber = 2, $endNumber = 3) { return $startNumber + $middleNumber + $endNumber; } ?> <!DOCTYPE html> <html lang="fr" dir="ltr"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Exercice 8 Partie ...
true
146ce8cb0741b49083f95656be445601cf8525af
PHP
fashionweb/moraso
/library/Aitsu/Image/Resize.php
UTF-8
8,570
2.71875
3
[ "MIT" ]
permissive
<?php /** * Image resizer. * * @version 1.0.0 * @author Andreas Kummer, w3concepts AG * @copyright Copyright &copy; 2010, w3concepts AG * * {@id $Id: Resize.php 16535 2010-05-21 08:59:30Z akm $} */ class Aitsu_Image_Resize { private $basePath; private $thumbsPath; private $imagePath; private $imageSrc...
true
03f12c4c2318ec638263e87115687d8d28bfa754
PHP
andrey900/trash
/sites/loftsv/local/modules/studio8.main/lib/ajax/aajaxheandler.php
UTF-8
895
3.078125
3
[]
no_license
<?php namespace Studio8\Main\Ajax; abstract class AAjaxHeandler implements IAjaxHeandler { protected $response; protected $request; public function __construct(){ $this->makeDefaultResponse(); $this->makeDefaultRequest(); } protected function makeDefaultResponse(){ $this->response = new \stdClass(); $t...
true
58f6cffdc4ad29a6e95ce7ce0039796f877fdd81
PHP
adenjimmy/simadu
/application/controllers/Organisasi.php
UTF-8
7,542
2.84375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php Class Organisasi extends CI_Controller{ function __construct() { parent::__construct(); $this->model_squrity->getsqurity(); $this->load->helper('url'); $this->load->model('model_organisasi'); $this->load->library(array('template','pagination','form_validation'...
true
0666fd0f2563b6069f9f109341e24915fa6007a4
PHP
YetiForceCompany/YetiForcePortal2
/app/Payments/PaymentsSystemInterface.php
UTF-8
1,830
2.609375
3
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
<?php /** * The file contains: Common interface for various payment systems. * * @package App * * @copyright YetiForce S.A. * @license YetiForce Public License 5.0 (licenses/LicenseEN.txt or yetiforce.com) * @author Arkadiusz Adach <a.adach@yetiforce.com> */ namespace App\Payments; /** * Common interface for...
true
f861fd00a3ccac86d0fe9be279413050160f1e9c
PHP
williand94/PHP_Udemy
/Aprendiendo-php/funciones/prefedefinidas.php
UTF-8
703
3.90625
4
[]
no_license
<?php $frase = " What's up Nigga "; var_dump(trim($frase)); $text = true; if (empty($text)) { echo "LA variable no existe , o està vacia"; }else { echo "Existe la variable"; } echo "<br>"; //contar una cadena de caractéres $cadena = "12345 "; echo strlen($cadena); echo "<br>"; //Encontrar una...
true
fa1326d579801b50c7ef45f594712a0997d2f761
PHP
ppi/ppi-blog-module
/src/Entity/BlogPost.php
UTF-8
1,534
3.015625
3
[]
no_license
<?php namespace BlogModule\Entity; class BlogPost { protected $_id; protected $_title; protected $_content; protected $_category_id; protected $_date_created; protected $_slug; protected $_description; protected $_tags = array(); public function __construct($row) { foreach($row as $key =>...
true
37cff5c29b99ae218ace8228ab336b74f0f21895
PHP
kaixuan123wang/PHP-file-and-note
/StudyBySelf/OOP/5.php
UTF-8
977
2.71875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: ASUS * Date: 2018/12/14 * Time: 20:48 */ header("content-type:text/html;charset=utf8"); class Site{ var $url; var $title; function setUrl($par){ $this->url = $par; } function setTitle($par){ $this->title = $par; } ...
true
2ddec89bf4f87adb8af98a4a348a94fe9f38c202
PHP
ashrafdiab96/farmCommerce
/app/Http/Controllers/ClientController.php
UTF-8
10,776
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Support\Facades\Session; use Illuminate\Support\Facades\Hash; use Illuminate\Support\Facades\Mail; use Illuminate\Support\Facades\DB; use App\Models\Slider; use App\Models\Product; use App\Models\Category; use App\Models\Order; use App\...
true
f22b4ff674175c19de7df060e4d7d33f9af3242a
PHP
anushasidhanti/Product_Testcase
/MVC_App/app/models/Product.php
UTF-8
724
3.03125
3
[]
no_license
<?php class Product { public $id; public $manufacturer = ''; public $name = ''; public $additional_info = ''; public $price; public $availability; public $product_image = ''; public $source = ''; const DB_SOURCE = "DB"; const XML_SOURCE = "XML"; public function __construc...
true
5cd5cb2c693369940556d3df9ba48c1fff160e5e
PHP
victorFernandezBriones/checklist
/negocio/configuracion/contratos/cargarContratoModulo.php
UTF-8
770
2.6875
3
[]
no_license
<?php require_once '../../../data/Contrato.php'; $idArea = htmlspecialchars($_GET['idArea']); $serviceContrato = new Contrato(); $contratos = $serviceContrato->getContratosPorArea($idArea); if (!empty($contratos)): echo '<label for="idContrato">Contrato: </label>'; echo "<select id='idContrato' name='idCo...
true
7bc6fe17d9d179fe6a05859c3483333102e02d90
PHP
aufawibowo/ddd
/app/modules/account/Core/Domain/Services/UrlSignerService.php
UTF-8
203
2.625
3
[]
no_license
<?php namespace A7Pro\Account\Core\Domain\Services; interface UrlSignerService { public function sign(string $url, \DateTime $expiration): string; public function validate(string $url): bool; }
true
898ad2a47b48c7fdba7acfe20ba9b9c1b78da6fe
PHP
theshadow/rabbleandrouser
/src/RabbleAndRouser/HydratorInterface.php
UTF-8
577
2.640625
3
[]
no_license
<?php /** * Created by IntelliJ IDEA. * User: xanderguzman * Date: 10/1/14 * Time: 7:53 PM */ namespace RabbleAndRouser; use RabbleAndRouser\Model\HydratableInterface; /** * Interface HydratorInterface * @package RabbleAndRouser */ interface HydratorInterface { /** * @param HydratableInterface $obje...
true
a7a3219442514f044d7dc40ee4529ca36b4b12ac
PHP
nathanchauffe/mySecurePHP
/login/sys/veri_em.php
UTF-8
1,610
2.546875
3
[]
no_license
<?php // Inialize session. session_start(); //Get the blank header. require('bl_head.html'); // Include secure common files. require($_SERVER['DOCUMENT_ROOT'] . '/frame/coms.php'); // Grab text fields from html form on previous page. $id = $_POST['id']; $username = $_POST['username']; // Verify the hash. $sql = ...
true
a1fb66f61ba18ebabf5cc29251b91948c7007cef
PHP
bouwehand/ChocolateFactory
/src/anomynousdb/Mysqli/src/Model.php
UTF-8
4,279
2.75
3
[]
no_license
<?php /** * Created by PhpStorm. * User: bas * Date: 28-12-2016 * Time: 15:12 */ namespace Anomynousdb\Mysqli; use phpDocumentor\Reflection\DocBlock\Tags\Var_; use SebastianBergmann\CodeCoverage\Report\PHP; /** * @todo Create an other class ModelFactory and do the whole factory pattern shebang ...
true
95ef0bd8f9ad6b5467630cbf6335329f1c1c2fd2
PHP
stibi1993/bankaffiliate
/application/models/Structures_model.php
UTF-8
1,589
2.734375
3
[]
no_license
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Structures_model extends CI_Model { protected $_tableName = "structures"; public function __construct() { parent::__construct(); } /** * @param null $where * @return bool */ public function get...
true
3f4b132183ae750d1eed97951b60042708937963
PHP
JoanAlbertPerez/Suscripciones
/application/libraries/web_services.php
UTF-8
714
2.515625
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php if (! defined('BASEPATH')) exit('No direct script access allowe'); /** * */ class Web_services { public function WSRequest($url, $xml) { $username= 'jperez'; $password= 'GNd44TRj'; $ch=curl_init($url); curl_setopt($ch, CURLOPT_USERPWD, $username . ":" . $password); curl_seto...
true
aa9a4ecae28d95ed6c7c0b0e148398c8094bfc10
PHP
Kevinnu/phpnativo
/comprobacionusuarios.php
UTF-8
1,662
2.609375
3
[]
no_license
<!DOCTYPE html> <!-- To change this license header, choose License Headers in Project Properties. To change this template file, choose Tools | Templates and open the template in the editor. --> <html> <head> <meta charset="UTF-8"> <title>Consulta base</title> <?php include 'headlink.php'; ?>...
true
284695eb70a72e5ea22a8d3c435900c341dfb643
PHP
BlockHorizons/BlockPets
/src/BlockHorizons/BlockPets/commands/PetCommand.php
UTF-8
4,943
2.75
3
[ "Apache-2.0" ]
permissive
<?php declare(strict_types = 1); namespace BlockHorizons\BlockPets\commands; use BlockHorizons\BlockPets\Loader; use pocketmine\command\CommandSender; use pocketmine\console\ConsoleCommandSender; use pocketmine\utils\TextFormat; class PetCommand extends BaseCommand { const HELP_MESSAGE_TITLE = TextFormat::GREEN . ...
true
333c3d6584ca5b4bb8f47b3cf2007e6df5e1c89a
PHP
conradosaud/tcc-sistemas-informacao
/codigo-fonte/painel/php/funcoes_login.php
UTF-8
2,320
2.796875
3
[]
no_license
<?php // -------------------------------------------------------- /* Identificadores de ações */ if(isset($_POST["hiddenCadastroCliente"])){ $resposta = cadastraUsuario(); echo $resposta; } if(isset($_POST["hiddenAcessarPainel"])){ $resposta = validaLogin(); if($resposta){ /* if($_PO...
true
63d54781ea04bd0283f8bfff9f9d75afe779558b
PHP
esolveeg/api_saud
/app/Http/Controllers/AddressController.php
UTF-8
4,123
2.796875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Address; use App\Area; use App\Phone; use Illuminate\Http\Request; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Validator; class AddressController extends Controller { public function create(Request $request) { $address = $this->valid...
true
0a0dec35c18663ab7238c3fc811378743ba18eba
PHP
sharepui/sharepui-en
/en/send.php
UTF-8
5,694
2.78125
3
[ "Apache-2.0" ]
permissive
<?php /*Description of the following lines*/ /* set the names of variables received from the form on share.html */ //-----set variables-----// $plant_id=$_POST['plant_id']; $recipe_name=$_POST['recipe_name']; $overview=htmlspecialchars($_POST['overview']); $timeperiod = $_POST['timeperiod']; $time_unit_id = $_POST['t...
true
02e86c6cb9fe6e899c77fc9825cb18c42c7bd730
PHP
bezdelnique/yii2-app
/src/entities/AbstractRepository.php
UTF-8
3,001
2.921875
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: heman * Date: 21.06.17 * Time: 14:54 */ namespace bezdelnique\yii2app\entities; /** * Class AbstractRepository * - common Repository methods: getAll(), getById() * - cache implementation */ abstract class AbstractRepository { const ENTITIES_PER_PAGE = 20; /...
true
2e2507cdca35ef2638b6f79c1000d1cf40742071
PHP
vuduc153/IT3290
/upload_file.php
UTF-8
705
2.5625
3
[]
no_license
<?php include 'connection.php'; // get review id for forder name // $query = "SELECT id FROM review WHERE id >= ALL(SELECT id FROM review)"; $result = mysqli_query($conn, $query); $row = mysqli_fetch_assoc($result); $id = $row['id']; $path = "images/".$id; // relative path // if (!file_exists($path)) { mkdir($path,...
true