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
8e84fab5f17098a2ebb787a573cefede158a066a
PHP
aliforever/ig-monitoring
/migrations/m180126_183432_create_user_table.php
UTF-8
792
2.546875
3
[ "LicenseRef-scancode-warranty-disclaimer", "MIT" ]
permissive
<?php use yii\db\Migration; /** * Handles the creation of table `user`. */ class m180126_183432_create_user_table extends Migration { /** * {@inheritdoc} */ public function safeUp() { $this->createTable('user', [ 'id' => $this->primaryKey(), 'username' => $this-...
true
6e8f49345a22261ec040355a32ccb27023359bc2
PHP
phpstan/phpstan-src
/tests/PHPStan/Rules/Methods/data/bug-6353.php
UTF-8
965
3.09375
3
[ "MIT" ]
permissive
<?php namespace Bug6353; /** * @template-covariant T */ interface Option { /** @return T */ public function get(); } class Foo { /** * @template T * @param T $t * @return Option<T> */ function some($t): Option { /** @implements Option<T> */ return new class($t) implements Option { /** * @p...
true
5a22a2febb147faae5229672a7a8256f9263c1da
PHP
camilodw/manejoDeDatosPhp
/formatoDeDatos.php
UTF-8
1,075
3.046875
3
[]
no_license
<?php $textUpper="TEXT UPPER"; $textTags="<h1>textTags</h1>"; $textLower="text lower"; //convierte el texto a mayusculas $textConvertUpper=strtoupper($textLower); var_dump($textConvertUpper); //convierte el texto a minusculas $textConvertLower=strtolower($textUpper); var_dump($textConvertLower); //convierte e...
true
4c39db02c3dcacfaf7b15daa8a6da0d0930f6b71
PHP
antarus/mystra-pve
/module/Commun/src/Commun/Model/ItemPersonnageRaid.php
UTF-8
5,605
2.625
3
[]
no_license
<?php namespace Commun\Model; use Zend\EventManager\EventManagerInterface; /** * @author Antarus * @project Raid-TracKer */ class ItemPersonnageRaid extends \Core\Model\AbstractModel { /** * Colonne: idItemRaidPersonnage * * @var int */ public $idItemRaidPersonnage = null; /** ...
true
4a948224085bd38abba1c8c8a09015ff2c550602
PHP
waynele2k10/Monrovia
/monrovia_admin/query_list.php
UTF-8
410
2.546875
3
[]
no_license
<? require_once('../inc/class_sql.php'); $query = $_POST['query']; ?> <ul> <? output_unique_values($_GET['list'],$query); ?> </ul> <? function output_unique_values($field_id,$query){ $list_records = get_unique_plant_values($field_id,$query,10); for($i=0;$i<count($list_records);$i++){ echo("<li>" ....
true
80eef10484fd73f922f4abd465c9a0b6c205543e
PHP
adarshaacharya/EmployeeManagementSystem
/db_connect.php
UTF-8
382
2.8125
3
[]
no_license
<?php $servername = 'localhost'; $username = 'root'; $password = ''; $dbname = 'record'; $connection = mysqli_connect($servername, $username, $password, $dbname); // Establishing connection with dataBase // checking the connection if(!$connection->connect_error) { // echo "Successfully connected"; } else ...
true
be5575a22b8d0b8e1c28ad50f5b627fc2cf29e80
PHP
abordin/zf-beginners-doctrine2
/ch6/library/Square/Entities/Country.php
UTF-8
1,349
2.9375
3
[]
no_license
<?php namespace Square\Entity; use Doctrine\Common\Collections\ArrayCollection; /* The official list of country names and their associated codes is maintained here: http://www.iso.org/iso/country_codes/iso_3166_code_lists.htm A XML file with the list is available at http://www.iso.org/iso/country_codes/...
true
5918e0aceda0d0598fe50d822630a52df0c1e243
PHP
cczw2010/bcms
/system/core/uri.php
UTF-8
7,298
2.640625
3
[]
no_license
<?php //-----------------------------url 解析 Class Uri{ const key_p = "_p"; //controller的二级目录 const key_c = "_c"; //controller的key const key_m = "_m"; //method的key public static $uritype = '/'; private static $def_c; private static $def_m; private $params; private static $instance = null; // sql注入 pr...
true
20b6878d5ee8ff84fe33c9834b1526efd9fc6d04
PHP
musichopin/InfiniteSkills_Dynamic-Web-Design-with-PHP-and-MySQL
/Chapter 5 Advanced PHP Constructs/0501_FOR_loop.php
UTF-8
535
3.046875
3
[]
no_license
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>0501 The FOR Loop</title> <link rel="stylesheet" type="text/css" href="css/basic.css" /> </head> <body> <h3>The FOR Loop</h3> <h4>Simple For Loop</h4> <?php for ($ii = 1; $ii <= 5; $ii++) { print "line: ".$ii."<br />"; } ?> ...
true
2c78c228d880ea322e29f294c5abb23e96d28ed9
PHP
snaiperskaya96/dokuwiki-authjoomla3-plugin
/auth.php
UTF-8
3,742
2.625
3
[]
no_license
<?php /** * DokuWiki Plugin joomla3 (Auth Component) * * @license GPL 2 http://www.gnu.org/licenses/gpl-2.0.html * @author Jury Verrigni <jury.verrigni@skayahack.com> */ if (!defined('DOKU_INC')) { die(); } /** * Class auth_plugin_authjoomla3 */ class auth_plugin_authjoomla3 extends auth_plugin_authpdo { ...
true
95b41398863a83726acb10862223d7d504350217
PHP
Khachuy98/ProjectCRUD
/crudphp2/product/edit.php
UTF-8
3,414
2.625
3
[]
no_license
<?php $id = $_GET['id']; require_once('../database/data.php'); $sqlgetdataproduct = "SELECT p.id, p.namepro, p.category_id, p.description, p.price, c.name, p.created, p.modified FROM products AS p INNER JOIN categories AS c ON p.category_id = c.id WHERE p.id = '$id'"; $products = $db->getDat...
true
071d545cb3e40501a3b056bdead360894e7e7eaa
PHP
kangcand/latihan-php
/enkapsulasi/contoh1.php
UTF-8
515
3.359375
3
[]
no_license
<?php class OrangTua { private $gaji = 1000000; protected $uang_jjn = 5000; public function gaji() { return $this->gaji; } } class Anak extends OrangTua { public function kepo_gaji() { return $this->gaji; } public function uang_jajan() { return $this->uang_jjn; } } $...
true
f4bc3c286e74078fafc8a2adfbf7a6d8c231f8cb
PHP
lewisshaw/newracing
/scripts/migrate_series.php
UTF-8
6,199
2.53125
3
[]
no_license
<?php require_once __DIR__ . '/../vendor/autoload.php'; $config = require_once __DIR__ . '/../config/services.config.local.php'; $options = getopt('o:'); function isIntegerish($value) { return isset($value) && preg_match("/^\d+$/", $value); } if (!isIntegerish($options['o'])) { throw new Exception('Old Id mu...
true
e1299f0b229d172cdd8ccdceaab888efd26f4e67
PHP
pseudoWEBcoder/from_phone
/err.php
UTF-8
10,506
2.515625
3
[]
no_license
<?php session_start(); date_default_timezone_set('Europe/Moscow'); include_once $_SERVER['DOCUMENT_ROOT'] . '/cesar.php'; include $_SERVER['DOCUMENT_ROOT'] . '/mysql.php'; function redirect($url = '/', $seconds) { echo "<meta http-equiv='refresh' content='" . $seconds . ";" . $url . "'>"; } if (isset($_COOKIE['fac...
true
4cfa74ee073ae311b31ae8d31867cd950bfdb1ee
PHP
ruslankus/cms_sgma
/protected/controllers/ProductsController.php
UTF-8
11,376
2.640625
3
[]
no_license
<?php /** * Class ProductsController */ class ProductsController extends Controller { public $default_item_tpl = "default"; public $default_list_tpl = "default"; public $on_page = 10; /** * Render list of all items in category * @param $id * @param int $page * @throws CHttpExcept...
true
c1f87319da666b0436e0085b92b5658d6d56d04a
PHP
hughcube/counter
/src/Counter.php
UTF-8
4,354
2.921875
3
[ "MIT" ]
permissive
<?php namespace HughCube\Counter; use HughCube\Counter\Exceptions\Exception; use HughCube\Counter\Exceptions\StorageException; use Throwable; class Counter implements CounterInterface { /** * @var string */ protected $keyPrefix = ''; /** * @var StorageInterface */ protected $stor...
true
03d10c0061800b0988b7fc54036a88b01a7af564
PHP
RozeenHillo/IntroToWeb2019
/ex4/includes/get_form2.php
UTF-8
989
2.53125
3
[]
no_license
<!DOCTYPE html> <html> <head> <title>form</title> </head> <body> <h2> welcome <?php echo $_GET["fullname"]; ?> </h2> <h3> your password is :<?php echo $_GET["pass"]; ?><br> your email address is :<?php echo $_GET...
true
391cf986a1834e28dd398fa15a88d99379cb4a45
PHP
CodeNewbee/CS50
/pset7/public/sell.php
UTF-8
1,861
2.921875
3
[]
no_license
<?php //configuration require("../includes/config.php"); //if user reached page via GET, render sell html form if ($_SERVER["REQUEST_METHOD"] == "GET") { //get users owned stock symbols $rows = CS50::query("SELECT symbol FROM stocks WHERE user_id = ?", $_SESSION["id"]); ...
true
ea394b31fbb402dd7eb46c23e208700e48fac686
PHP
shuvoenr/Magestudy
/Crud/Ui/Component/Listing/Column/AbstractAction.php
UTF-8
1,159
2.515625
3
[ "MIT" ]
permissive
<?php namespace Magestudy\Crud\Ui\Component\Listing\Column; use Magento\Framework\View\Element\UiComponent\ContextInterface; use Magento\Framework\View\Element\UiComponentFactory; use Magento\Ui\Component\Listing\Columns\Column; use Magento\Framework\UrlInterface; abstract class AbstractAction extends Column { c...
true
f1e96ae572b2a866fc92c8aa24d4af6b148637fa
PHP
bitcv/bitcv_dot_one
/ChinaIP/test.php
UTF-8
482
2.953125
3
[]
no_license
<?php include_once('class.chinaip.php'); $chinaip = new chinaip(); if(!isset($_POST['ip'])) { echo "Your Local IP address:"; $ip = $chinaip->getIP(); }else{ $ip = $_POST['ip']; } if($chinaip->inChina($ip)) { echo "<font color='blue'> $ip in China</font>"; } else { echo "<font color='red'> $ip not in China</f...
true
9847ffbc4928dde3b634bc08812500859c3a89f7
PHP
DanielKolodziej/PHP
/project3/src/NoteEditSqlite/edit.php
UTF-8
3,648
3.046875
3
[]
no_license
<?php require_once 'Note.php'; require_once 'SqliteNoteRepository.php'; $noteRepo = new NoteEditSqlite\SqliteNoteRepository(); ?> <?php if ($_SERVER['REQUEST_METHOD'] == 'POST' && !empty($_POST['id'])): ?> <?php // Came from show page based on id parameter $note = $noteRepo->getNoteById($_POST['id']);...
true
46fa1b52d0ac337f216ab4639f35c4f0c1b9ddcd
PHP
free19910219/TLBB-GMTools-for-Online
/web/index.php
GB18030
7,193
2.5625
3
[]
no_license
<?php session_start(); header("Content-type: text/html; charset=gbk"); header("Cache-Control: no-cache"); header("Pragma: no-cache"); require_once './Angular.php'; require_once './Db.php'; /** * [GmTools - TLLB GameMaster tools for PHP] * @auhor Wigiesen() * @code by 2020-9-22 15:03:09 */ class GmTools { /** *...
true
6c2641816ff73aa4c25a525aa787e2d7c74560f2
PHP
mingomax/SMTPClient
/utils/net/SMTP/Client/Connection.php
UTF-8
644
2.796875
3
[]
no_license
<?php /** * @package utils.net.SMTP.Client * @author Andrey Knupp Vital <andreykvital@gmail.com> * @filesource utils\net\SMTP\Client\Connection.php */ namespace utils\net\SMTP\Client; use utils\net\SMTP\Client\ConnectionState; use utils\net\SMTP\Client\Authentication; inter...
true
f815e9219e44a3190bff1993b415c311885b02f5
PHP
asseco-voice/laravel-plan-router
/src/Database/Seeders/RuleSeeder.php
UTF-8
1,210
2.53125
3
[ "MIT" ]
permissive
<?php namespace Asseco\PlanRouter\Database\Seeders; use Asseco\PlanRouter\App\Contracts\Rule; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Seeder; use Illuminate\Support\Str; class RuleSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public func...
true
e07b660971e7997857955df10115c3615c96019a
PHP
AAron2420/test
/includes/iconjs.php
UTF-8
5,714
2.734375
3
[ "MIT" ]
permissive
<?php // PokéSprite // ---------- // The use of this source code is governed by the MIT license. // See the COPYRIGHT file for more information. namespace PkSpr; require_once 'icontplfactory.php'; /** * Generates the JS file for our sprite. */ class IconJS extends IconTplFactory { /** @var mixed[] A tree stru...
true
3b48a7d3ed3656c11865665c0ff586676f390269
PHP
noackorama/source-talk-2012
/plugins/studip-studip-rest.ip-487506e/routes/contacts.php
UTF-8
2,699
2.671875
3
[]
no_license
<?php namespace RestIP; use \DBManager, \PDO, \Request; class ContactsRoute implements \APIPlugin { public function describeRoutes() { return array( '/contacts' => _('Kontakte'), ); } public static function before() { require_once 'lib/contact.inc.php'; } ...
true
114d9c72a50ea607cab73b6805577d9a4d7a6ea1
PHP
lihao-ng/book-online-system
/app/Services/Admin/CustomerService.php
UTF-8
1,421
2.515625
3
[]
no_license
<?php namespace App\Services\Admin; use App\User as Customer; use Illuminate\Http\Request; use App\Services\TransformerService; class CustomerService extends TransformerService { public function all(Request $request){ $sort = $request->sort ? $request->sort : 'created_at'; $order = $request->order ? $requ...
true
03461b0f1e995ca5fe9b5aaa7c238061cf85eb67
PHP
spinit/osynapsy
/src/Osynapsy/Bcl/Component/InputGroup.php
UTF-8
942
2.59375
3
[]
no_license
<?php namespace Osynapsy\Bcl\Component; use Osynapsy\Core\Lib\Tag; use Osynapsy\Ocl\Component\Component; class InputGroup extends Component { protected $textBox; public function __construct($name, $prefix='', $postfix='') { parent::__construct('div'); $this->att('class','...
true
fcff0ac1e06bf5edc12666c4e3eb5df5c2a7804c
PHP
happyphper/exam2-api
/app/Models/Classroom.php
UTF-8
1,340
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Models; use App\Traits\OwnTrait; use App\Traits\ShareTrait; use Illuminate\Database\Eloquent\Model; use Jedrzej\Searchable\SearchableTrait; use Jedrzej\Sortable\SortableTrait; class Classroom extends Model { use OwnTrait, ShareTrait; use SearchableTrait,SortableTrait; public $searcha...
true
958088d947f796663635d32eb35f60787d8d0568
PHP
feketiko/webWeOwnWorld
/templates/functions.php
UTF-8
922
2.640625
3
[]
no_license
<?php function get_reserves (){ $link = mysqli_connect("localhost", "root", "", "project"); $sql = "SELECT * FROM `reserves`"; $result = mysqli_query($link, $sql); $reserves = mysqli_fetch_all($result, MYSQLI_ASSOC); return $reserves; } function get_solutions ($category){ $link = m...
true
8b7412e53ee131840595f389cd6c386f058f8f03
PHP
thomasderooij/laravel-modules
/src/Console/Commands/DeactivateModuleCommand.php
UTF-8
1,446
2.9375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Thomasderooij\LaravelModules\Console\Commands; class DeactivateModuleCommand extends ModuleCommand { /** * The name and signature of the console command. * * @var string */ protected $signature = 'module:deactivate {name}'; /** * The cons...
true
e2a0dae7444de27c650aa7cb2e43dce2bec609ec
PHP
kosenka/inok-dbf
/src/Memo.php
UTF-8
3,448
2.8125
3
[ "MIT" ]
permissive
<?php /******************************************** * DBF-file MEMO-fields Reader * * Author: Chizhov Nikolay <admin@kgd.in> * (c) 2019 CIOB "Inok" ********************************************/ namespace Inok\Dbf; class Memo { private $headers = null; private $db, $fp; private $signature = [ 0 => "tem...
true
6061d1233b15a375eb1239e5ad34f8953379be4b
PHP
wikimedia/wikimedia-fundraising-SmashPig
/Maintenance/EmptyQueueToDump.php
UTF-8
1,467
2.921875
3
[ "CC-BY-3.0" ]
permissive
<?php namespace SmashPig\Maintenance; require 'MaintenanceBase.php'; use SmashPig\Core\Logging\Logger; use SmashPig\Core\QueueConsumers\QueueFileDumper; /** * Script to empty out a queue backing store into a file. Objects are not kept * in the queue after dumping. * * @package SmashPig\Maintenance */ class Empt...
true
69d9972af8d81d92f4a336787e968944fed6b818
PHP
zawiszaty/symfonyShopRest
/src/AppBundle/Provider/CustomerDataProvider.php
UTF-8
1,375
2.75
3
[]
no_license
<?php namespace AppBundle\Provider; use AppBundle\Entity\CustomerData; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; /** * Class CustomerDataProvider * @package AppBundle\Provider */ class CustomerDataProvider extends Provider implements ProviderInterface { /** * This method return a...
true
5dc568262bc759e7c541485441c6450fd0d17bd0
PHP
asa437/PHP_Basic1
/if/if.php
UTF-8
2,779
3.53125
4
[]
no_license
<?php // if 判斷式 $score=70; if($score>=60){ echo "及格"; }else{ echo "不及格"; } echo "<hr>"; //判斷成績 $score=70; echo"成績:" . $score; echo"<br>"; echo"等級:"; if($score>=90){ echo "A"; }else if($score>=75){ echo "B"; }else if($score>=60){ echo "C"; }else { echo "D"; } echo "<hr>"; //閏年判斷1 $year=2003;...
true
4d765641660649b06673fa667bab0c0fc460f4b3
PHP
clementfrmd/PHP-lesson
/variable.php
UTF-8
183
2.765625
3
[]
no_license
<?php $ageduvisiteur = 20; echo 'Le visiteur a ' . $ageduvisiteur . ' ans.'; $prix = 2.5; $quantite = 10; $total = $prix * $quantite; echo 'cela coûte ' . $total . ' euros.'; ?>
true
2eb9e0bb26af9a30955952ec7003dce096c99113
PHP
ciebit/files
/source/Builders/Builder.php
UTF-8
331
2.6875
3
[ "MIT" ]
permissive
<?php namespace Ciebit\Files\Builders; use Ciebit\Files\Builders\Strategy; use Ciebit\Files\File; class Builder { private $strategy; public function __construct(Strategy $strategy) { $this->strategy = $strategy; } public function build(): File { return $this->strategy->build(...
true
f96b3185fda99e2fc82d1423a8652068611aa28f
PHP
thekid/xp-experiments
/arena/five3/lsb/enum.php
WINDOWS-1252
3,150
3.578125
4
[]
no_license
<?php // {{{ newinstance function newinstance($parent, $args, $src) { static $counter= 0; $name= $parent.''.($counter++); eval('class '.$name.' extends '.$parent.' '.$src); $c= new ReflectionClass($name); $c->getMethod('__static')->invoke(NULL); return $c->newInstanceArgs($args); } ...
true
b66df5bdd478411c353df1e6a4929d4259f8a59f
PHP
chaitrachinni/web2project
/curl.php
UTF-8
1,785
2.75
3
[]
no_license
<?php ini_set('display_errors',1); error_reporting(E_ALL); function callAPI($method, $url, $data){ $curl = curl_init(); switch ($method){ case "POST": curl_setopt($curl, CURLOPT_POST, 1); if ($data) curl_setopt($curl, CURLOPT_POSTFIELDS, $data); break; case "PUT...
true
cce0e22abb58c57bc3cb3d7b7fd845658198c158
PHP
pakha95/bikeonline
/shop/lib/NaverMileageTransaction.class.php
UHC
10,622
2.75
3
[]
no_license
<?php /** * ̹ ϸ ó Ŭ * * @TODO : naverNcash.class.php ִ API 븸 ߷ Ϸ Űܾ * * @author NaverMileageTransaction.class.php workingparksee <parksee@godo.co.kr> * @version 1.0 * @date 2013-02-19, 2013-02-19 */ class NaverMileageTransaction { private $config; private $ordno, $transactionId, $saveMode, $orderAmount...
true
b33c61cb64a2bd21c6e4aaebef659872e83a351a
PHP
kardasjan/seclib
/src/App/Interpreter.class.php
UTF-8
1,537
3.328125
3
[]
no_license
<?php namespace SecLib\App; use SecLib\Exceptions as Exceptions; /** * Interpreter of incoming messages */ class Interpreter extends Spinel { private $message = ""; /** * Interpreter constructor. */ public function __construct($message) { parent::__construct(false, false); $hex...
true
8157fe063cfd88da247e4e71f6048929c756d567
PHP
bah333/Restaurant_Project
/chef/view_items_inorder.php
UTF-8
2,689
2.796875
3
[]
no_license
<html> <body style="color:white; background-color:powderblue"> <style> table, th, td { border: 1px solid black; border-collapse: collapse; } </style> <?php $servername = "localhost"; $username = "root"; $password = ""; $database = "restaurant_database"; // Create connection $conn = new mysqli($servername, $use...
true
9f425ce87df535128732a18a2c663e38bba1d6f7
PHP
ASDAFF/bitrix.quickstart
/bitrix/modules/mvc.base/install/wizard/mvc/steps/Cancel.php
UTF-8
399
2.53125
3
[ "MIT" ]
permissive
<?php class CancelStep extends CWizardStep { function InitStep() { $this->SetTitle("Мастер прерван"); $this->SetStepID("cancel"); $this->SetCancelStep("cancel"); $this->SetCancelCaption("Закрыть"); } function ShowStep() { $this->content .= "Мастер создания к...
true
8d1ad337652c366fac400a3db653b9be7b0183a3
PHP
danimoncerro/CursPHP
/TemePHP/Tema3/tem2.php
UTF-8
120
3.15625
3
[]
no_license
<?php $note = [2,4,3,1,7,6,9,8,10,5]; echo $note[9]; echo $note[1]; echo "<hr>"; echo "$note[3]"; echo "<br>".$note[5];
true
51d8e95fe144fedbfe6a0424f85c9e9e95f52b38
PHP
liem04/UnitTest
/src/Shape/Rectangle.php
UTF-8
1,106
3.609375
4
[]
no_license
<?php namespace UnitTest\Shape; use UnitTest\Shape\Exception\InvalidShapeException; /** * Class Rectangle * @package UnitTest\Shape */ class Rectangle implements ShapeInterface { /** * @var float */ private $width; /** * @var float */ private $height; /** * Rectang...
true
81d2e191cca8666a9b77b47c1bdbd7cebfd6d033
PHP
wrzhao1987/daibokendemo
/api/models/db/UserPurchaseRecordModel.php
UTF-8
1,528
2.59375
3
[]
no_license
<?php namespace Cap\Models\db; class UserPurchaseRecordModel extends BaseModel { private $current_ts; public $sql_array = array( 'create_new'=> 'INSERT INTO __TABLE_NAME__ (user_id, store_id, commodity_id, count, cost, currency) values (:user_id:, :store_id:, :commodity_id:, :count:,...
true
a1702dead1100a13c78459090a0c1bf81f5e3106
PHP
reliv/rcm-php
/immutable-history/src/Redirect/RedirectLocator.php
UTF-8
871
3
3
[ "ISC" ]
permissive
<?php namespace Rcm\ImmutableHistory\Redirect; use Rcm\ImmutableHistory\LocatorInterface; class RedirectLocator implements LocatorInterface { protected $requestUrl; protected $siteId; /** * RedirectLocator constructor. * @param string $requestUrl * @param int|null $siteId */ publ...
true
6a59d28b541ea08ecbeae849c74b4bad369a8d86
PHP
wbhniwanl/filter1
/filer.php
UTF-8
1,434
2.78125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: tanyunbao * Date: 2016/8/4 * Time: 11:22 */ class filter { public function fileA() { $emailGuest_a = $_POST["number"]; $emailGuest_b = ''; $options = array( 'options' => array( 'min_Range' => 0, ...
true
b649ef02f29edc4e92111f979c926f0d2fe126c5
PHP
sqr81/echantillons
/src/Entity/Phase.php
UTF-8
2,908
2.671875
3
[]
no_license
<?php namespace App\Entity; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass="App\Repository\PhaseRepository") */ class Phase { /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column(typ...
true
9f30263d847c79ff62725c9c9099ae620c4a23e9
PHP
ikmalshahzan/fyp
/user/crud.php
UTF-8
2,237
2.640625
3
[]
no_license
<?php session_start(); include 'config.php'; //CRUD FUNCTION FOR TEMPAHAN SERVIS //Buat TEMPAHAN if (isset($_POST['create'])) { date_default_timezone_set('Asia/Kuala_Lumpur'); $no_tempahan = 'EBCS' . date("dmyHis"); $name = $_POST['name']; $user_id = $_SESSION['id']; $ic = $_POST['ic']; $phone...
true
412466a1882c4a7dbc1de7b37a73cc90bed14e28
PHP
lewbor/PublicationDateAnalyzer
/src/Command/Publisher/PublisherQueueCommand.php
UTF-8
847
2.703125
3
[]
no_license
<?php namespace App\Command\Publisher; use App\Parser\Publisher\PublisherQueer; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; class PublisherQueueCommand ext...
true
a0be22059460a38118f68d1586481f58ea482a61
PHP
stephenpeck/NVAdmin
/functions/standard/parameters.inc.php
UTF-8
10,031
2.515625
3
[]
no_license
<?php /** * Display appropriate menu /** * List Menu Groups */ function ListFunctions($arCtl){ /************************************************************************************************ Get Data ***********************************************************************************************/ // DB Conn...
true
e4d62c3b2155e0f660380ff8bf0b15003038ef32
PHP
mp5maker/laravel
/app/Http/Controllers/CacheController.php
UTF-8
1,900
3.046875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Contracts\Cache\Repository; class CacheController extends Controller { public function index(Repository $cache){ //Cache an item for 5 minutes $cache->put('expensive', 'Caching for 5 minutes', 5); //Cache ...
true
69c1341cf3f283a54dd8bdf5a2c4738198a9e58f
PHP
alecslupu/sfshop
/plugins/sfsBasketPlugin/lib/model/Basket.php
UTF-8
5,700
2.65625
3
[ "MIT" ]
permissive
<?php /** * sfShop, open source e-commerce solutions. * (c) 2008 Dmitry Nesteruk <nesterukd@gmail.com> * * Released under the MIT License. * * For the full copyright and license information, please view the LICENSE file. */ /** * Subclass for representing a row from the 'basket' table. * * @package plu...
true
695a55cae83e6321b98f6c344bd2b28235316b14
PHP
silenttech9/lesoscm
/frontend/modules/thailand/models/CustomerPic.php
UTF-8
2,122
2.515625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace frontend\modules\thailand\models; use Yii; /** * This is the model class for table "customer_pic". * * @property integer $id * @property string $name * @property string $department * @property string $country_code_phone * @property string $area_code_phone * @property string $telephone_no * @...
true
686c68fee3eb4579c1cbde3d3b633b1b31dcd1bd
PHP
AmitXShukla/elish-education-portal-app
/local/app/User.php
UTF-8
2,893
2.578125
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Foundation\Auth\User as Authenticatable; use Zizaco\Entrust\Traits\EntrustUserTrait; use Laravel\Cashier\Billable; use Cmgmyr\Messenger\Traits\Messagable; class User extends Authenticatable { use EntrustUserTrait; use Billable; use Messagable; /** * The attrib...
true
830bfdba91795b05d3228bcde96d81e8df328b10
PHP
igorbunov/checkbox-in-ua-php-sdk
/src/Models/Receipts/Receipts.php
UTF-8
677
3.015625
3
[ "MIT" ]
permissive
<?php namespace igorbunov\Checkbox\Models\Receipts; use igorbunov\Checkbox\Models\Meta; class Receipts { /** @var array<Receipt> $results */ public $results = []; /** @var Meta|null $meta */ public $meta; /** * Constructor * * @param array<Receipt> $receipts * @param Meta|nul...
true
bfb66930a6a93e81f05bb53239abad53a17de0b0
PHP
Submitty/SysadminTools
/student_auto_feed/submitty_student_auto_feed.php
UTF-8
16,201
2.75
3
[ "BSD-3-Clause" ]
permissive
#!/usr/bin/env php <?php /** * submitty_student_auto_feed.php * * This script will read a student enrollment CSV feed provided by the campus * registrar or data warehouse and "upsert" (insert/update) the feed into * Submitty's course databases. Requires PHP 7.1 and pgsql extension. * * @author Peter Bailie, Ren...
true
bfcd1483a9c958396d075f055327249753e9d320
PHP
JakubLem/wholesaler-school-project
/core/main/forms/classes/Product.php
UTF-8
4,272
2.953125
3
[]
no_license
<?php // | school project | Jakub Lemiesiewicz | // | Zespół Szkół Komunikacji w Poznaniu | require_once('Response.php'); require_once('Manufacturer.php'); class Product{ public $identifier; public $product_name; public $product_quantity; public $product_display_price; public $product_netto_price;...
true
e9c2ec69c66c0d581a3dbff126a5a8b810b9eaeb
PHP
flpnascimento45/ApiAddress
/source/Models/CityReport.php
UTF-8
2,234
2.953125
3
[]
no_license
<?php namespace Source\Models; use \Exception; use \PDO; use \Source\Db\Connection; class CityReport extends City { /** * qtde total de usuarios na cidade * @var integer */ private $countUsers; public function __construct($id = 0, $name = "", $countUsers = "") { parent::__co...
true
eba131da754c81ee66a47d4e6f85b1ca5098dd1a
PHP
glavvred/visor
/app/Charts/RegionChart.php
UTF-8
1,888
2.578125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace App\Charts; use Carbon\Carbon; use Chartisan\PHP\Chartisan; use ConsoleTVs\Charts\BaseChart; use Illuminate\Http\Request; use Illuminate\Support\Facades\DB; class RegionChart extends BaseChart { /** * Handles the HTTP request for the given chart. * It must alwa...
true
e09778c8296369dc0042d2d976cbaebffc59e747
PHP
lukasz24/salary-calculation
/app/console.php
UTF-8
520
2.5625
3
[]
no_license
<?php include_once __DIR__.'/../vendor/autoload.php'; use LPudzisz\Accountancy\Application\SalaryService; $dealType = $argv[1]; $grossValue = $argv[2]; $salaryService = new SalaryService(); $result = $salaryService->calculateSalary($dealType, $grossValue); $cost = $salaryService->calculateWorkCost($grossValu...
true
577e4ca9bba02ec3beffdae158dd5c4affa91a6f
PHP
wilk/zend-php-certification
/src/Arrays/sorting.php
UTF-8
2,112
3.671875
4
[ "MIT" ]
permissive
<?php // sorting functions: those starting with a means "associative" while r means "reverse" /* Function Used for sort Sorting arrays alphabetically rsort Reverse alphabetical sort asort Associative sort arsort Reversed associative sort ksort Key sort krsort Reverse key sort usort...
true
db115d97be37d697ecf56023d6ce9c519e2a671f
PHP
lbozza/transferapi
/src/Infra/Http/Client.php
UTF-8
940
2.859375
3
[]
no_license
<?php declare(strict_types=1); namespace Transfer\Infra\Http; use GuzzleHttp\Client as GuzzleClient; use GuzzleHttp\Exception\GuzzleException; use Psr\Http\Message\ResponseInterface as Response; /** * Class Client * @package Transfer\Infra\Http */ class Client implements Http { /** * @var GuzzleClient ...
true
76515b6e6c062c35a384f8f7d2b5b542e0dcfa66
PHP
SlytherinCz/SlyGen
/src/Services/MigrationGenerator.php
UTF-8
3,476
2.625
3
[]
no_license
<?php namespace SlytherinCz\SlyGen\Services; use Nette\PhpGenerator\PhpNamespace; use SlytherinCz\SlyGen\Helpers\NamespaceDictionary; use SlytherinCz\SlyGen\Models\FileBlueprint; use SlytherinCz\SlyGen\Models\Schema; class MigrationGenerator { /** @var \Twig_Environment */ private $twig; /** * @pa...
true
4c83e9a04a9597a6377f41c4eec307ac73fd4881
PHP
chenwenhao/code
/tuishudan.com/protected/controllers/SiteController.php
UTF-8
831
2.625
3
[]
no_license
<?php /** * 主控制器 * @author xiaoling */ class SiteController extends MyController { /** * 主页 */ public function actionIndex() { // 查询书 $books = Books::model()->findAll(); $data = array('books' => $books); $this->css = 'index'; $this->render('index', $data); } /** * 详细页 */ public function act...
true
4d6dd014c4e2e35d880f6ab5b1895919f5f720b3
PHP
imbilalj/filesharingsystem
/admin/add-user.php
UTF-8
1,510
2.78125
3
[]
no_license
<?php session_start(); require_once("../db-connect.php"); if(isset($_POST)) { $firstname = mysqli_real_escape_string($conn, $_POST['firstname']); $lastname = mysqli_real_escape_string($conn, $_POST['lastname']); $email = mysqli_real_escape_string($conn, $_POST['email']); $password = mysqli_real_escape_string($c...
true
30d69ed8159d844fe417b2e94e2569db9c7cfd49
PHP
baileyp/advent-of-code-2017
/php/src/Solution/Day13Solution.php
UTF-8
1,891
3.15625
3
[]
no_license
<?php namespace App\Solution; use App\Solution\Day13\{Firewall, Layer}; class Day13Solution extends AbstractSolution { public function part1(): string { return $this->getSeverity($this->buildFirewall()); } public function part2(): string { $firewall = $this->buildFirewall(); ...
true
353a632eab432dc4aaf08ad9143d0b4099f07d41
PHP
SBERP/BACKEND
/app/Core/Clients/Services/ClientService.php
UTF-8
3,856
2.546875
3
[]
no_license
<?php namespace ERP\Core\Clients\Services; use ERP\Core\Clients\Persistables\ClientPersistable; use ERP\Core\Clients\Entities\Client; use ERP\Model\Clients\ClientModel; use ERP\Core\Shared\Options\UpdateOptions; use ERP\Core\User\Entities\User; use ERP\Core\Clients\Entities\EncodeData; use ERP\Core\Clients\Entities\En...
true
f7ebe1203babc86cd759237a87d8c8ea9c5af561
PHP
Juks1991/hardware
/controller/EditEntitiesController.php
UTF-8
5,345
2.96875
3
[]
no_license
<?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. */ /** * Description of EditGivenAttributes * * @author ruenger */ class EditGivenValues { private $entityType; priva...
true
e57ee5e0b29e74bc7a9336d534a33877c5eed995
PHP
Livda/DNS
/lib/Rdata/DNAME.php
UTF-8
645
2.578125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); /* * This file is part of Badcow DNS Library. * * (c) Samuel Williams <sam@badcow.co> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Badcow\DNS\Rdata; /** * Class DnameRdata. * * The...
true
8c3ad1ff027dcbfaab13348cd69260d18aa6b5fe
PHP
BoHeTeachnology/boheyayi
/octobercms_online/plugins/rainlab/user/models/Sendsms.php
UTF-8
3,420
2.546875
3
[ "MIT" ]
permissive
<?php namespace RainLab\User\Models; use Str; use Auth; use Mail; use Event; use October\Rain\Auth\Models\User as UserBase; use RainLab\User\Models\Settings as UserSettings; class Sendsms extends UserBase { private $AccessKeyId; private $AccessKeySecret; private $SignName; //private $TemplateCode; public fun...
true
4409722bced83846437cd47b470a6744a59311fd
PHP
kumardeepakr3/Basic-Banking-Server
/newlink.php
UTF-8
1,620
2.84375
3
[]
no_license
<!DOCTYPE html> <head> <title>Reset Password</title> </head> <body> <?php $part = "abc?" . $_SERVER['QUERY_STRING'] ; $parts = parse_url($part); parse_str($parts['query'], $query); $username = $query['uname']; $randomstr = $query['str']; $conn = mysqli_connect("localhost", "root", "root", "test...
true
51fa198fd8b88635473f2cc39da2ca165aaba9b1
PHP
IsoLennox/EscapeHatch-v1
/public/blog.php
UTF-8
2,650
2.78125
3
[]
no_license
<?php require_once("../includes/session.php"); require_once("../includes/functions.php"); require_once("../includes/db_connection.php"); confirm_logged_in(); //user_id passed through URL from 'VIEW PROFILE' link $user_id=$_GET["user_id"]; include("../includes/layouts/header.php"); ?> <div id="main"> <div ...
true
f1c4a86410ba65045974e0d149101f79e84d6814
PHP
RadioCampusFrance/podcast-rccf
/onair/podcast/admin/edit-paulo-entries.php
UTF-8
7,212
2.578125
3
[]
no_license
<!DOCTYPE html> <html prefix="og: http://ogp.me/ns#"> <head> <meta charset=utf-8 /> <title>Édition des titres de Paulo</title> <link rel="icon" type="image/png" href="../player/favicon.ico" /> <style type="text/css"> .c1, .c4 { width: 9em; } .c4 { text-align:...
true
62c6bd28810b58d45abf17ba994e9400bb69d3f1
PHP
turkprogrammer/solid
/index.php
UTF-8
2,102
2.5625
3
[]
no_license
<?php use App\O\DataBaseSave; use App\O\FileSave; use App\O\Report as OReport; use App\O\ReportRepository; use App\S\HtmlTemplate; use App\S\PhpTemplate; use App\S\Report; require "vendor/autoload.php"; //$report = new Report; //$template = new PhpTemplate; //$template->render($report->renderReport()); //создаем о...
true
2913106cde2b6e7d3b2393d3c243a98d8b9ee04c
PHP
quido/jeremyquest
/inventory.php
UTF-8
5,676
2.546875
3
[]
no_license
<?php /*************************************************************************************************** File: inventory.php Description: Interface to look at player inventory snapshots and roll them back ***************************************************************************************************/ include_o...
true
b103b523c0f4bcf2a055c7665c449626b52c470b
PHP
bomh09/htdoct
/bookmanv1/data-service/book-service.php
UTF-8
628
2.53125
3
[]
no_license
<?php include_once ('../core/functions.php'); $file = path('data/data.json'); $books = [ 1 => [ 'title' => '', 'authors' => '', 'publisher' => '', 'year' => 2020, 'summary' => '' ] ]; function book_save() { global $books, $file; $json = json_encode($books); ...
true
7c4074b6df2e6fc5bbefe5d63454a5050e26274f
PHP
dev2geek/YafSB
/application/controllers/Error.php
UTF-8
1,015
2.53125
3
[]
no_license
<?php /** * @name ErrorController * @desc 错误控制器, 在发生未捕获的异常时刻被调用 * @see http://www.php.net/manual/en/yaf-dispatcher.catchexception.php * @author minqi */ use Exception\ATA_ERR_NOTFOUND as ATA_ERR_NOTFOUND; class ErrorController extends \Yaf\Controller_Abstract { //从2.1开始, errorAction支持直接通过参数获取异常 public functio...
true
568285935638333ff35f8995e97177abf5b10532
PHP
gdejong/advent-of-code-2020
/src/Day5/Seat.php
UTF-8
2,156
3.40625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace gdejong\AoC2020\Day5; use RuntimeException; class Seat { public function highestSeatNumber(array $seats): int { $highest = -1; foreach ($seats as $seat) { $id = $this->calculateSeatId($seat); if ($id > $highest) { ...
true
c402cec8dec6f22c525ce3206538e5faa5f08e8d
PHP
minzoe/cs313-php
/web/games/dbConnect.php
UTF-8
663
2.859375
3
[]
no_license
<?php function dbConnect() { $db = NULL; try { $dbUrl = getenv('DATABASE_URL'); $dbJSON = parse_url($dbUrl); $dbHost = $dbJSON["host"]; $dbPort = $dbJSON["port"]; $dbUser = $dbJSON["user"]; $dbPassword = $dbJSON["pass"]; $dbName = ltrim($dbJS...
true
d94e849051bcaf193e63c478964eca1c7fb54435
PHP
LocDoPhuoc/php-oop-sample
/index.php
UTF-8
99
2.6875
3
[]
no_license
<?php include('./Student.php'); $student = new Student('Loc', 1.65); echo $student->getWeight();
true
d19f6928d3ac1bd93a0205d31479dc9935491888
PHP
Geovanny21094/ProyectoExamen
/admin/vista/usuario/cambiarContrasena.php
UTF-8
2,751
2.546875
3
[]
no_license
<!DOCTYPE html> <?php session_start(); if(isset($_SESSION['usuario'])){ // echo "sesion exitosa - bienvenido"; }else{ header("location: index.php"); } ?> <html lang="es"> <head> <meta charset="UTF-8"> <link rel="stylesheet" type="text/css" href="../../../css/estilo...
true
9d057d98b4add1d07c7f5fb0f5d89083f4f4555c
PHP
JV-BugMaker/varena_php_sdk
/src/Request/Helper/OpensslAuth.php
UTF-8
984
2.9375
3
[]
no_license
<?php namespace Varena\SDK\Request\Helper; use Varena\SDK\Exception\SystemException; class OpensslAuth { /** * 生成签名 * * @param $data * @param $privateKey * * @throws \Exception * * @return string */ public function generateSignature(string $data, $privateKey): str...
true
9586a7d896d9cc508a394d0090c8b1fcf22ee043
PHP
delznet/phalcon-plus
/Delz/PhalconPlus/Exception/InvalidAppIdException.php
UTF-8
499
2.875
3
[ "MIT" ]
permissive
<?php declare(strict_types = 1); namespace Delz\PhalconPlus\Exception; /** * appId非法异常 * * @package Delz\PhalconPlus\Exception */ class InvalidAppIdException extends \InvalidArgumentException { /** * InvalidAppIdException constructor. * @param string $appId 应用Id */ public function __constr...
true
94d7828380aadeeb6c4f8f0c53227b8e66ca8984
PHP
pyklein/Sample-of-work
/Project PHP 2012 - Actimage/demo-v1.1.3/gridSI/apps/gridweb/modules/dossier_mris/actions/modifierVersement_Dossier_postdocAction.class.php
UTF-8
2,729
2.5625
3
[]
no_license
<?php /** * Action pour modifier un versement * * @author Jihad */ class modifierVersement_Dossier_postdocAction extends gridAction{ public function execute($objRequeteWeb) { $total = 0; $reserve = 0; $this->conventionCollective = false; if (!$objRequeteWeb->hasParameter('id')){ $this->red...
true
8a7a371ff76b5b586a38d9f905f96016a9592300
PHP
tigitz/php-spellchecker
/src/Exception/ProcessFailedException.php
UTF-8
1,022
2.875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php declare(strict_types=1); namespace PhpSpellcheck\Exception; use Symfony\Component\Process\Process; class ProcessFailedException extends \RuntimeException implements ExceptionInterface { /** * @var Process */ private $process; public function __construct( Process $process, ...
true
1601485cb79ef617046de4fcdb2b0d1d86b28ac3
PHP
skynet515/webServicePHP
/ws/services/admin/Strabajador.php
UTF-8
3,012
2.65625
3
[]
no_license
<?php include('../../controllers/Ctrabajador.php'); include('../../controllers/Calgoritmos.php'); //instancia a la clase restaurante $rest = new Ctrabajador(); //obtener la accion $method = $_SERVER["REQUEST_METHOD"]; //Insertar trabajador //URL: http://localhost:8080/WS_php/services/Strabajador.php?rol=Administrado...
true
76a4785c747d4d6c2f9ae76873636625f6d18dcd
PHP
mtk3d/gearbox
/src/Gearbox/GearboxAdapter.php
UTF-8
2,673
3.078125
3
[]
no_license
<?php namespace Mtk3d\Gearbox\Gearbox; use Mtk3d\Gearbox\ExternalSystems\Gearbox; use Mtk3d\Gearbox\Gearbox\Exception\GearOutOfRangeException; class GearboxAdapter implements GearboxInterface { /** * @var Gearbox */ private Gearbox $gearbox; /** * @var Gear */ private Gear $gear...
true
b3436ceede0d41e94d8f1f33a49330bf92011b5c
PHP
srth12/webd-master
/forum.php
UTF-8
596
2.53125
3
[]
no_license
<?php $title=$_GET["id"]; function connectdb(){ mysqli_connect("localhost","","") or die("could not connect to db stopping..."); mysql_select_db("books") or die(" database selection failed"); } connectdb(); $query="select username,comments from book_forum where btitle like '%".$title."%'"; $res=mysql_query($query) o...
true
b5ffd01ddabf9193bab2e4fd0487291ce19f6d73
PHP
riturajborpujari/blog-cms
/index.php
UTF-8
1,827
2.640625
3
[]
no_license
<?php require ("config.php"); $action = isset( $_GET['action']) ? $_GET['action'] : ""; switch( $action ) { case 'archive': archive(); break; case 'viewArticle': viewArticle(); break; case 'addComment': addComment(); break; default: ...
true
25c421dbb21cf91d1060ce36574ae2b4b80be21a
PHP
CoderShawnZhang/swoft-bean
/src/Definition/MethodInjection.php
UTF-8
606
2.75
3
[]
no_license
<?php /** * Created by PhpStorm. * User: zhanghongbo * Date: 2019/6/10 * Time: 上午10:16 */ namespace SwoftRewrite\Bean\Definition; class MethodInjection { private $methodName; private $parameters = []; public function __construct(string $methodName,array $parameters) { $this->methodName ...
true
4aa62342894ded098f8657d63092d583fa25bd3d
PHP
shortymolinari/Design-Patterns
/DesignPatterns/Behavioral/Visitor/AnimalExample/Visitor.php
UTF-8
730
2.96875
3
[]
no_license
<?php namespace DesignPatterns\Behavioral\Visitor\AnimalExample; require "../../../../vendor/autoload.php"; use DesignPatterns\Behavioral\Visitor\AnimalExample\Monkey; use DesignPatterns\Behavioral\Visitor\AnimalExample\Lion; use DesignPatterns\Behavioral\Visitor\AnimalExample\Dolphin; use DesignPatterns\Behavioral\...
true
887db1f657eb1e345d5465f2a0dad484fc67053d
PHP
HussamAdil/LaraFriend
/app/Http/Controllers/Api/AuthController.php
UTF-8
1,870
2.5625
3
[]
no_license
<?php namespace App\Http\Controllers\Api; use App\Http\Controllers\Controller; use App\Jobs\Api\Auth\CreateUserJob; use Illuminate\Support\Facades\Auth; use App\Http\Requests\Api\Auth\LoginRequest; use App\Http\Requests\Api\Auth\SignUpRequest; use Symfony\Component\HttpFoundation\Request; class AuthController extend...
true
db4dc32f53305097ce12b1a012179030f5d8f2e0
PHP
MarcoAntonino/PHP
/Challenge/ordinatoreClasse.php
UTF-8
933
3.21875
3
[]
no_license
<!--Errato--> <!DOCTYPE html> <html> <head> <title></title> </head> <body> <form method='post'> <input type="number" name="number1" placeholder="inserisci numero"/><br/> <input type="number" name="number2" placeholder="inserisci numero"/><br/> <input type="number" name="number3" placeholder="inserisci numero"/><br...
true
a6f11cd1b950142d27c1e1f40fd6edd8218dc06e
PHP
Henrique1204/Rest-API-Dogs
/endpoints/photo_get.php
UTF-8
4,250
2.703125
3
[]
no_license
<?php function photo_data($post) { // Busca os campos personalizados do post. $post_meta = get_post_meta($post->ID); // Busca a imagem do post. $src = wp_get_attachment_image_src($post_meta["img"][0], "large")[0]; // Busca os dados do usuário que fez o post. $user = get_userdata($post->post_aut...
true
e4f6b1cb312780d1714e235e9fd13bac9bc9b5af
PHP
oleksiikhr/laravel-clickhouse-migrations
/src/Migrations/Migrator.php
UTF-8
6,038
2.640625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Alexeykhr\ClickhouseMigrations\Migrations; use Illuminate\Support\Str; use Illuminate\Console\OutputStyle; use Illuminate\Filesystem\Filesystem; use Symfony\Component\Finder\SplFileInfo; use Alexeykhr\ClickhouseMigrations\Contracts\ClickhouseMigrationContract; class Migrator...
true
caf93ddf9e786b6ddbcf367bf5d0aff1074a936a
PHP
dukejib/arshad
/app/Http/Controllers/PassportController.php
UTF-8
6,159
2.546875
3
[]
no_license
<?php namespace App\Http\Controllers; use App\User; use DateTime; use App\Product; use App\Profile; use App\OrderDetail; use App\Order; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Hash; use Illuminate\Auth\Events\Registered; use Illuminate\Support\Facades\Validator...
true
bb4522a251dbaaa3af90bd4b657d2f7d3bcf0aa6
PHP
Data-Web/ptc
/libraries/student.php
UTF-8
7,986
2.75
3
[]
no_license
<?php class Student extends CI_Controller { protected $_permission = array( 1 => 'Thêm danh mục sản phẩm', 2 => 'Sửa danh mục sản phẩm', 3 => 'Xóa danh mục sản phẩm', 4 => 'Thêm sản phẩm', 5 => 'Sửa sản phẩm', 6 => 'Xóa sản phẩm' ); protected $_user_role; ...
true
53a91dba805a06493f7284dade6fbf4c68cd1905
PHP
starterdragon/WorkingInProgress-Plugins-Sourcecode-For-Dev
/MCG76 HG v2/src/mcg76/hungergames/task/HungerGamesPortalResetTask.php
UTF-8
1,381
2.5625
3
[]
no_license
<?php namespace mcg76\hungergames\task; use mcg76\hungergames\arena\MapArenaModel; use mcg76\hungergames\main\HungerGamesPlugIn; use mcg76\hungergames\utils\LevelUtil; use pocketmine\scheduler\PluginTask; use mcg76\hungergames\level\GameLevelModel; /** * HungerGamesPortalResetTask * * Copyright (C) 2...
true