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
478fd794375e313de9c61379595aa2da19945471
PHP
salomalo/naked
/wp-content/mu-plugins/includes/support/info/wp-support-php_info.php
UTF-8
2,686
2.609375
3
[]
no_license
<?php if (!defined('ABSPATH')) exit; // Добавление поддержки вывода информации о PHP add_action('admin_menu', '_wp_render_menu_php_info'); /** * Добавляет новый пункт меню "Версия PHP". */ function _wp_render_menu_php_info() { // Добавление нового пункта меню в раздел "Инструменты" add_management_page...
true
3ae47dd5b283084c66c36d42f3010491acd8b754
PHP
joachimdieterich/curriculum
/share/classes/country.class.php
UTF-8
2,828
2.734375
3
[ "MIT" ]
permissive
<?php /** * This file is part of curriculum - http://www.joachimdieterich.de * * @package core * @filename country.class.php * @copyright 2013 Joachim Dieterich * @author Joachim Dieterich * @date 2013.03.24 11:36 * @license: * * The MIT License (MIT) * Copyright (c) 2012 Joachim Dieterich http://www.curriculumonlin...
true
f59b7284f26e67b67fccf22222ad2c8161037070
PHP
anthonytam/MTA-Roleplay
/external-webserver/includes/mail_class.php
UTF-8
3,155
2.578125
3
[]
no_license
<?php function EMAIL_tc($e_to,$e_to_name,$e_subject,$e_in_subject,$e_body){ // Create the mail transport configuration $transport = Swift_MailTransport::newInstance(); // Create the message $message = Swift_Message::newInstance(); $message->setTo(array( $e_to => $e_to_name ...
true
657e712212b30d7b10b3b826ace1ae5452862f51
PHP
nowa75/L5Blog
/app/Tag.php
UTF-8
563
2.640625
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; /** * App\Tag * * @property-read \Illuminate\Database\Eloquent\Collection|\App\Article[] $article */ class Tag extends Model { /** * Fillable fields for a tags * * @var array */ protected $fillable = [ 'name' ]; ...
true
e2f96707bb85f7cd4bd723f17171a2c946801b50
PHP
peter279k/JOM
/src/ArrayNode.php
UTF-8
7,583
2.828125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace DaveRandom\Jom; use DaveRandom\Jom\Exceptions\EmptySubjectNodeListException; use DaveRandom\Jom\Exceptions\InvalidKeyException; use DaveRandom\Jom\Exceptions\InvalidReferenceNodeException; use DaveRandom\Jom\Exceptions\WriteOperationForbiddenException; use DaveRandom\Jom\Excep...
true
1bf0928b1f5e4cfe52fb8ba6473c3692ed2949e1
PHP
WirVsVirusHackathonLebensmittelMatching/shop4me
/app/City.php
UTF-8
1,045
2.546875
3
[]
no_license
<?php namespace App; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\BelongsTo; class City extends Model { protected $fillable = [ 'country_code', 'city_name', 'zip_code', 'state', 'state_code', 'province', 'owner_id', ...
true
bd1eb078a275f2e2e28517c9155bfe4d00af9fa2
PHP
horaklukas/posterator
/backend/get-data.php
UTF-8
1,821
2.734375
3
[]
no_license
<?php # relative path into `posters` directory from `public` directory define('REL_POSTERS_PATH', './posters'); # path to file containing posters meta data define('POSTERS_METAFILE_PATH', __DIR__.'/../public/posters/posters-meta.json'); # path to file containing titles data define('POSTERS_TITLES_PATH', __DIR__.'/../pu...
true
5e6a322fdbe04dadf9d008a5c311c246e977d9cb
PHP
missinglink/Insomnia
/Community/Module/RequestValidator/Request/InputSanitiser.php
UTF-8
951
3.09375
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
<?php namespace Community\Module\RequestValidator\Request; /** * A simple class to prevent HTML injection attacks */ class InputSanitiser { /** * @var string */ private $value = ''; /** * @param string $uncleanValue */ public function __construct( $uncleanValue ) { ...
true
8b46d8d652e4187f3eb2659acf146a8405c56b3c
PHP
Selim-Reza-Swadhin/cookie_php
/reserve_cookie_data.php
UTF-8
3,842
3.125
3
[]
no_license
<?php //read cookie and assign cookie values //to PHP variable if (isset($_POST['submit'])){ //delete previous cookie setcookie('shirt_color', '', -1, '/'); setcookie('size', '', -1, '/'); setcookie('brand', '', -1, '/'); setcookie('type', '', -1, '/'); $ret1 = (isset($_POST['shirt_color'])) ? ...
true
32cf67833f2e33c7f925e3dcf753b4338e1b2635
PHP
djgogo/CPCII
/Address/src/Controllers/LogoutController.php
UTF-8
874
2.734375
3
[]
no_license
<?php namespace Address\Controllers { use Address\Http\Request; use Address\Http\Response; /** * @codeCoverageIgnore */ class LogoutController implements ControllerInterface { public function execute(Request $request, Response $response) { /** * ...
true
08e2fd88bb7d4a0bd1747ba46f7d21d55cbb286e
PHP
Retr01234/JobLister
/lib/Job.php
UTF-8
3,940
3.296875
3
[ "MIT" ]
permissive
<?php class Job{ private $db; public function __construct(){ $this->db = new Database; } // Get All Jobs public function getAllJobs(){ $this->db->query("SELECT jobs.*, categories.name AS cname FROM jobs INNER JOIN categories ON jobs.category_id = categories.id ORDER BY post_date DESC"); ...
true
b75c4817b5fc29cbb1a9f1489a4caf03db2b64e5
PHP
shail5788/social-network
/library/twitterLibrary.php
UTF-8
2,847
2.875
3
[]
no_license
<?php error_reporting(E_ALL); class twitterClass { public $consumer_key; public $consumer_secret_key; public $token; public $token_secret; public $apiUrl; public function __construct($consumer_key,$consumer_secret_key,$token, $token_secret){ $this->consumer_key=$consumer_key; ...
true
f39c5910c8c876b7d818c9a8dd8b353ea3523a60
PHP
kutny/datetime-bundle
/tests/DateTimeFactoryTest.php
UTF-8
7,856
2.609375
3
[]
no_license
<?php namespace Kutny\DateTimeBundle; use Kutny\DateTimeBundle\Date\Date; use Kutny\DateTimeBundle\Time\Time; use PHPUnit\Framework\TestCase; class DateTimeFactoryTest extends TestCase { const TIMEZONE_GMT = 'GMT'; const TIMEZONE_PRAGUE = 'Europe/Prague'; const TIMEZONE_LOS_ANGELES = 'America/Los_Angeles...
true
4532507c1524d74df6ae0b7a56c1992fd044343e
PHP
ntkurapati/navidile-player
/alerts.php
UTF-8
1,655
2.59375
3
[]
no_license
<?php ini_set('display_errors',1); error_reporting(E_ALL); $username = "navidileappphp"; $password = ini_get("mysqli.default_pw"); $hostname = "localhost"; $mysqli = new mysqli($hostname, $username, $password, "pittmedstech_nav"); if ($mysqli->connect_errno) { echo "Failed to connect to MySQL: (" . $mysqli->conne...
true
5a180124d8b1cda318363ee2b2ced8bf00141f8e
PHP
budyfriend/oop
/namespace/index.php
UTF-8
554
2.625
3
[]
no_license
<?php require_once 'App/init.php'; // $produk1 = new Komik( // "Naruto", // "Masashi Kishimoto", // "Shonen Jump", // 30000, // 100 // ); // $produk2 = new Game( // "Uncharted", // "Neil Druckmann", // "Sony Computer", // 250000, // 50 // ); // $cetakProduk = new cetakInfoProdu...
true
ce4f2cfe970634f2505b8ad5fbbb57563072537b
PHP
GreenCape/coding-standards
/tests/Standards/WordPress/VIP/RestrictedFunctions.inc
UTF-8
910
2.5625
3
[]
no_license
<?php switch_to_blog( $blogid ); // bad eval( 'some_code' ); // bad create_function( 'foo', 'bar(foo);' ); // bad file_get_contents( $url ); // bad vip_wp_file_get_contents( $url ); // bad wp_remote_get( $url ); // bad $ch = curl_init(); // bad curl_close( $ch ); // bad extract( array( 'a' => 1 ) ); // bad ad...
true
d84064f3442da507a8d45b77dd511d3871ee6107
PHP
luger888/aimya
/library/Aimya/PayPal/Paypal.php
UTF-8
7,949
2.703125
3
[]
no_license
<?php class Aimya_PayPal_Paypal { private $VARS; private $button; private $logFile; private $isTest=true; /* Print Form as Link */ function getLink() { $url = $this->getPaypal(); $link = 'https://'.$url.'/cgi-bin/webscr?'; foreach($this->VARS as $item => $sub){ ...
true
6a8ddaf5d506216ba424e15246937249702b2719
PHP
FiruzShirinov/shoppers-catalog
/app/Models/Product.php
UTF-8
1,056
2.9375
3
[]
no_license
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Product extends Model { use HasFactory; /** * The attributes that are mass assignable. * * @var string[] */ protected $fillable = [ 'name', ...
true
2c8b7c487efb92f901b10986fa18b133363cd73c
PHP
TwistoPayments/Twisto.php
/src/Twisto/Address.php
UTF-8
1,382
3.34375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace Twisto; class Address implements BaseAddress { /** @var string */ public $name; /** @var string */ public $street; /** @var string */ public $city; /** @var string */ public $zipcode; /** @var string */ public $phone_number; /** @var string */ publ...
true
a04be229233a51555be3dc33a6c1af18801728f1
PHP
jonaguera/JonagueraFacturasScraperBundle
/Jonaguera/FacturasScraperBundle/Services/Downloader.php
UTF-8
5,796
2.734375
3
[]
no_license
<?php /** * Clase con funciones para la descarga y guardado de archivos * * (c) Jon Agüera Fuente <jon_aguera@viajeseroski.es> * * @package PackageName * @author AuthorName * @abstract Abstract */ namespace Jonaguera\FacturasScraperBundle\Services; use Symfony\Component\Finder\Finder; class Downloader { ...
true
cab4c280b395b569eddcc441792e54dfcf44cc38
PHP
Iamoscarbc/ORQUIDEA_COLEGIO
/matricula/busquedaalumno.php
UTF-8
1,058
2.5625
3
[]
no_license
<?php //include("../seguridad.php"); include_once("../conexion/clsConexion.php"); $obj=new clsConexion; if (isset($_GET['term'])){ //rrecorrer la tabla de $return_arr = array(); /* Si la conexi�n a la base de datos , ejecuta instrucci�n SQL. */ $data=$obj->consultar("SELECT alumno.idalu , alumno.codigo , CO...
true
8825e0dd0c79ea9ab443d4e4e500afbf5de6d027
PHP
sunlollyking/Mobile-Patient-Record
/src/com/chrisdixon/PHP Scripts/addPatientDrug.php
UTF-8
2,094
2.90625
3
[]
no_license
<?php require("config.inc.php"); if (!empty($_POST)) { $priority = $_POST['priority']; $nhs_id = $_POST['nhs_id']; $date_started = $_POST['date_started']; $date_finished = $_POST['date_finished']; $dosage = $_POST['dosage']; $name = $_POST['name']; $query = "INSERT INTO patient_drug (nhs_id, priority, name, date_start...
true
f79fdd3a7e52277a522df4069414413bc647aa1a
PHP
threebenji/goldpalm
/src/goldpalm.php
UTF-8
12,737
2.765625
3
[ "MIT" ]
permissive
<?php namespace ThreeBenji\GoldPalm; /** * Created by PhpStorm. * User: yan * Date: 2017/3/1 * Time: 下午5:27 */ class GoldPalm { private $api_url = [ 'test' => "https://test-api.lyht.cn/ntsms-contract-api/service/ContractWebService?wsdl", 'production' => "https://api.lyht.cn/ntsms-contract-api/...
true
de98d52af22027c562cc74b605ecfc796a4365b3
PHP
MagnaFacta/zalt-loader
/test/Test1/Target1.php
UTF-8
882
2.515625
3
[ "BSD-3-Clause" ]
permissive
<?php /** * * @package Test1 * @subpackage Target1 * @author Matijs de Jong <mjong@magnafacta.nl> * @copyright Expression copyright is undefined on line 44, column 18 in Templates/Scripting/PHPClass.php. * @license No free license, do not copy */ namespace Test1; use Zalt\Loader\ProjectOverloader; ...
true
d7eb21be8be7185534f2d8c0c929efef6817ee0c
PHP
mithunmo/phpsample
/libraries/cli/command/logToConsole.class.php
UTF-8
2,174
2.96875
3
[]
no_license
<?php /** * cliCommandLogToConsole Class * * Stored in logToConsole.class.php * * @author Dave Redfern * @copyright Dave Redfern (c) 2007-2010 * @package scorpio * @subpackage cli * @category cliCommandLogToConsole * @version $Rev: 707 $ */ /** * cliCommandLogToConsole class * * Adds a systemLogWrite...
true
6830373c8c12a7d2ccd6c37fb127c45e55b3a426
PHP
projetos-avanco/avanco
/dashboard/database/functions/profile/data/indices.php
UTF-8
5,846
2.578125
3
[]
no_license
<?php /** * calcula o percentual avancino do colaborador em um período específico ou em uma data específica * @param - objeto com uma conexão aberta * @param - array com o modelo do colaborador * @param - array com a data inicial e data final de um período ou específica */ function calculaPercentualAvancino($obje...
true
dee804e90d578c54f4d7b94b1bfc59fe94f5b3a6
PHP
dalloglio/api-republica-online
/app/Http/Controllers/FormContactController.php
UTF-8
2,569
2.578125
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Domains\Form\FormRepository; use App\Mail\FormContactCreated; use Illuminate\Http\Request; use Mail; class FormContactController extends Controller { /** * @var FormRepository */ protected $repository; /** * FormContactController constructor. ...
true
c153d4acc73e4babc8c42afeda5d4bc9ad351f0d
PHP
vimac/currency-exchange-example
/src/BusinessImpl/CurrencyBusinessImpl.php
UTF-8
1,438
2.859375
3
[]
no_license
<?php namespace CurrencyExchangeExample\BusinessImpl; use CurrencyExchangeExample\Lib\Injectable; use PDO; class CurrencyBusinessImpl extends Injectable { public function getCurrencies($page) { $pageSize = 3; /** @var PDO $pdo */ $pdo = $this->getContainer()->get('db'); $st...
true
8ab4290d9b53dae008c9509f74368cc16894b640
PHP
osamarafa1994/School_project_in_codeigniter_frameWork
/application/views/users_admin/years_study.php
UTF-8
243
2.765625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php $years_study = ''; $years_study .= '<option value="">اختار الصف </option>'; foreach($years as $year){ $years_study .= '<option value="'. $year->id . '">'. $year->year_name . '</option>'; } echo $years_study; ?>
true
a72727fbacac5bb44d9615198b36ff4eead7204d
PHP
hxpzlm/oo
/frontend/models/Purchase.php
UTF-8
3,092
2.53125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace frontend\models; use Yii; /** * This is the model class for table "{{%purchase}}". * * @property integer $purchase_id * @property integer $store_id * @property string $store_name * @property integer $warehouse_id * @property string $warehouse_name * @property integer $create_time * @property...
true
c187c7365afb4134980817c9f9fb55b9cd3c2df4
PHP
nguyenthithuuyen/ALL_question
/Priority/PriorityQueue.php
UTF-8
819
3.34375
3
[]
no_license
<?php include_once "Patient.php"; class PriorityQueue { const MAX_SIZE = 10; protected $limit; protected $array; public function __construct() { $this->array = []; $this->limit = self::MAX_SIZE; } protected function enqueue($patent) { if ($this->isFull()) { ...
true
203f6d10c329b4357e4fd32d65ce724cc0653334
PHP
Yas-Elak/task_manager
/app/Email.php
UTF-8
3,714
2.546875
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Facades\Mail; class Email extends Model { /** * Send the email when a task is created/updated/deleted * * @param $data * @param $route * @param $subject */ public static function taskMail($data,...
true
881ecd1cd46c77354d24ab4d397f505f7e29b416
PHP
Xeviousbr/teletudo
/models/ExampleRepository.php
UTF-8
3,045
3.125
3
[]
no_license
<?php use Mgallegos\LaravelJqgrid\Repositories\RepositoryInterface; class ExampleRepository implements RepositoryInterface { /** * Calculate the number of rows. It's used for paging the result. * * @param array $filters * An array of filters, example: array(array('field'=>'column index/nam...
true
0c1d98b3b26cb706c958225cc753e5b0482744a2
PHP
jcwing77/bigproject
/iweb-m/php/order.php
UTF-8
1,148
2.71875
3
[]
no_license
<?php /* 生成订单 请求方法: POST 请求消息头部: Content-Type: application/json 响应消息主体数据形如: { "uid": 999, "price":1999, "data":[ {"cid":10, "count":3,"price":100}, {"cid":15, "count":1,"price":200} ] } 响应消息头部: Content-Type: application.json 响应消息主体数据形如: {"code":1} */ $postData...
true
1c1c2a1c71628bf172f973f7539248f33caf836c
PHP
elo-mkt/elo-api
/src/Elo/Api/Cmd/AddAgreementTermsToProvisionedUser.php
UTF-8
653
2.609375
3
[]
no_license
<?php namespace Elo\Api\Cmd; use Elo\Api\Cmd\VO\UserData; class AddAgreementTermsToProvisionedUser extends EloApiCMD { /** @var UserData */ private $userId; private $termId; public function __construct(string $userId, string $termId) { parent::__construct(); $this->userId = $us...
true
8673e47188dc66b62b37dd11cbe6b7e8ffda43cf
PHP
nanasess/eccube3-freee-plugin
/Entity/FreeeWallet.php
UTF-8
1,692
2.546875
3
[]
no_license
<?php namespace Plugin\FreeeLight\Entity; use Doctrine\ORM\Mapping as ORM; /** * FreeeWallet */ class FreeeWallet extends \Eccube\Entity\AbstractEntity { /** * @var integer */ private $id; /** * @var string */ private $name; /** * @var integer */ private $ban...
true
7862ae6bc06199afc4d77571742820819b3d2cda
PHP
RyotaMuramatsu/php-laravel-kadai
/php-laravel03.php
UTF-8
1,381
3.859375
4
[]
no_license
<?php //課題1$name にあなたの名前を代入し、 if文で $name があなたの名前だったら 「私は あなたの名前 です」 //   もし違ったら「あなたの名前ではありません」と表示するように実装してください。 $name = "Ryota"; //6行目にイコールが一つ足りなかった if ($name == "Ryota"){ echo "私は $name です"."\n"; }else { echo "あなたの名前ではありません"."\n"; } //課題2for文を使って、1から10000までの合計の値を表示してください。 //total=0 としていなかった $total = 0; for($i...
true
d014b273b03ace82e446e169e9471756f0f3f6a9
PHP
fiher/PHP-Fundamentals
/Arrays/IndexOfLetters.php
UTF-8
450
3.09375
3
[]
no_license
<?php $alphabet = "a b c d e f g h i j k l m n o p q r s t u v w x y z"; $alphabetArray = explode(' ',$alphabet); unset($alphabet); $input = fgets(STDIN); $input = trim(strtolower($input)); $last = ""; for ($i=0;$i<strlen($input)-1;$i++){ $index = array_search($input[$i],$alphabetArray); if($i==strlen($input)-2...
true
2c46ca8b8ca87c5f7e6ee4e5b9fdec2715471477
PHP
riking/alttp_vt_randomizer
/app/Region/LightWorld.php
UTF-8
18,358
2.5625
3
[ "MIT" ]
permissive
<?php namespace ALttP\Region; use ALttP\Item; use ALttP\Location; use ALttP\Region; use ALttP\Support\LocationCollection; use ALttP\World; /** * Light World Region and it's Locations contained within */ class LightWorld extends Region { protected $name = 'Light World'; /** * Create a new Light World Region and...
true
481653cb4906c9e6d85c9afc587ce3a71661f7b2
PHP
SuPair/Epreseller
/app/Http/Middleware/CheckUserStatus.php
UTF-8
954
2.640625
3
[]
no_license
<?php namespace App\Http\Middleware; use Carbon\Carbon; use Closure; class CheckUserStatus { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle($request, Closure $next) { ...
true
f50ebdd6f35fde4ea8000bc0c87b3c4dfd8d6f6e
PHP
HopStudios/Hop-Alerts-Fetch-Craft
/hopalertsfetch/helpers/Main_Helper.php
UTF-8
1,918
2.734375
3
[]
no_license
<?php namespace Craft; class Main_Helper { public static function createAlertEntry($sectionHandle, $author_id, $title, $type, $type_handle, $custom_id, $custom_id_handle, $content, $content_handle, $datetime = NULL) { $entry = new EntryModel(); $entry->sectionId = craft()->sections->getSectionByHandle($sectionH...
true
10ae57699e932c0e542ec55576093b02950e8399
PHP
nmiannay/leaf
/src/Leaf/Nodes/Tag/Doctype.class.php
UTF-8
338
2.734375
3
[]
no_license
<?php namespace Leaf\Nodes\Tag; class Doctype extends Common { protected $doctype; public function __construct($tagName, $textContent = null) { $this->doctype = 'html'; parent::__construct('doctype'); } public static function render(\Leaf\Node $Node) { return (sprintf("<!DOCTYPE %s>", $Node->...
true
ca99ab501f11890a2f2aa6cfcd42913938f6f82e
PHP
manuth/TemPHPlate
/System/Web/Forms/MenuItemGroup.php
UTF-8
1,007
2.796875
3
[ "Apache-2.0" ]
permissive
<?php /** * @author Manuel Thalmann <m@nuth.ch> * @license Apache-2.0 */ namespace System\Web\Forms; use System\Collections\{ ArrayList }; { /** * Represents a menu-item that contains a set of menu-items. * * @property-read ArrayList $Items ...
true
ec42157664325df378a188d508a876e774588e54
PHP
Deadheded/Extended-Ravencoin-Metadata-Specification
/Proof of Concept/ReadValidateTest.php
UTF-8
4,791
2.859375
3
[ "MIT" ]
permissive
<?php /* The following is an example of validating a set of Meta Data, using schema files (where applicable). Scenarios Normal operation: This test will validate all fields in metadata.json, without any errors, or indicate that some unknown fields were detected. Invalid Meta Data: When metadata.json is edited to ut...
true
ee0ec19c6be59db4894c978d5305ec2f5c93ef7b
PHP
podlove/podlove-subscribe-button-wp-plugin
/model/button.php
UTF-8
5,848
2.828125
3
[ "MIT" ]
permissive
<?php namespace PodloveSubscribeButton\Model; class Button extends Base { public static $properties = array( // $property => $default value 'size' => 'big', 'color' => '#599677', 'autowidth' => 'on', 'style' => 'filled', 'format' => 'rectangle', 'hide' => 'false' // Note: the fields 'language' and 'j...
true
35af08616f86ae984ef30dd16063638958c1bf78
PHP
Sistemas-2014-I/Miski
/MiskiCode/tests/traits/MakePisoTrait.php
UTF-8
1,100
2.671875
3
[ "MIT" ]
permissive
<?php use Faker\Factory as Faker; use App\Models\Piso; use App\Repositories\PisoRepository; trait MakePisoTrait { /** * Create fake instance of Piso and save it in database * * @param array $pisoFields * @return Piso */ public function makePiso($pisoFields = []) { /** @var...
true
4df60c28792849d6e5f238bdb48edbacf9d51650
PHP
narasingh/news-bot
/bot.php
UTF-8
2,176
2.609375
3
[]
no_license
<?php header('content-type: application/json; charset=utf-8'); header("Access-Control-Allow-Origin: *"); $postdata = json_decode(file_get_contents("php://input"), true); $action = ''; $data = $postdata['item']; $message = $data['message']['message']; $userName = $data['message']['from']['name']; $userId = $data['messag...
true
9fbee14beb2025563ad4cbca8014343981e772fc
PHP
KubqoA/sacharidovejednotky
/app/Http/Controllers/UserController.php
UTF-8
2,043
2.84375
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Entry; use App\Http\Requests\UpdateUser; use Auth; use Carbon\Carbon; use Carbon\CarbonInterval; use DatePeriod; class UserController extends Controller { /** * Show the form for editing the specified resource. * * @return \Illuminate\Http\Response ...
true
ce8a5803690ec71c3274000a37e40599e08343a0
PHP
ikhwan12/nihao-news-theme
/plugins/theia-post-slider/TpsNavigationBar.php
UTF-8
5,166
2.84375
3
[ "Apache-2.0" ]
permissive
<?php /* * Copyright 2012-2018, Theia Post Slider, WeCodePixels, http://wecodepixels.com */ class TpsNavigationBar { // Get HTML for a navigation bar. public static function get_navigation_bar( $options ) { global $post; $defaults = array( 'currentSlide' => null, 'totalSlides' => null, 'prevPostId'...
true
0766f12071aeea4cab1e0761a369ba37c71c6d5a
PHP
altairm/libs
/PHP/Conveyor/Condition/Permission1.php
UTF-8
773
2.609375
3
[]
no_license
<?php require_once dirname(__FILE__) . '/Abstract.php'; class Conveyor_Condition_Permission1 extends Conveyor_Condition_Abstract{ const CONVEYOR_CONDITION_PERMESSION1_CODE = 1; const CONVEYOR_CONDITION_PERMESSION1_MODIFIRE = "PERMISSION 1"; /** * @param Conveyor_Object_Abstract $object */ pub...
true
e11a1035bdda4220c06c2b576656a4eef1ca3eb9
PHP
jacekll/x-challenge
/src/AppBundle/Command/AppBenchmarkCommand.php
UTF-8
2,215
2.5625
3
[]
no_license
<?php namespace AppBundle\Command; use AppBundle\Benchmark\IncorrectUrlsException; use AppBundle\ConstraintViolationInvalidValueCollector; use AppBundle\Service\Benchmark; use Psr\Log\LoggerInterface; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; use Symfony\Compon...
true
830bbf7a04940a4fbbd8c4fcc32013158ebfca19
PHP
GregoryStrbt/M-I
/API/api.php
UTF-8
5,661
2.828125
3
[]
no_license
<?php header('Access-Control-Allow-Origin: *'); // // API Demo // // This script provides a RESTful API interface for a web application // // Input: // // $_GET['format'] = [ json | html | xml ] // $_GET['m'] = [] // // Output: A formatted HTTP response // // Author: Mark Roland // // History: // 11/13/2012 - Created /...
true
bcd9a618cea0971ce960f2d1c0ff9563ee7285d2
PHP
tayduivn/distribution-management-system
/database/migrations/2016_02_11_043504_stockmain.php
UTF-8
722
2.578125
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class Stockmain extends Migration { /** * Run the migrations. * * @return void */ public function up() { // Schema::create('stock_main', function(Blueprint $table){ ...
true
5b33b1d44f9669d5b8083b0668600abcff733b1a
PHP
devDandy/devdandy
/portfolio/phpFinal/admin/deleteSponsor.php
UTF-8
3,369
2.78125
3
[]
no_license
<?php session_cache_limiter('none'); //This prevents a Chrome error when using the back button to return to this page. session_start(); error_reporting(E_ERROR | E_PARSE); // Removes Notices and Warnings that would be visible to user. $message = ""; $sponsorId = $_GET['SponId']; $del...
true
37da4039b642dec5fceb371aed86595579323ee4
PHP
qidouhai/reindex
/src/ReIndex/Doc/Subscription.php
UTF-8
771
2.65625
3
[ "Apache-2.0" ]
permissive
<?php /** * @file Subscription.php * @brief This file contains the Subscription class. * @details * @author Filippo F. Fadda */ namespace ReIndex\Doc; use ToolBag\Helper; use EoC\Doc\Doc; /** * @brief This class is used to keep trace of a member's subscriptions. * @nosubgrouping */ class Subscription ex...
true
d07d6d54fb9bc6aa2c34b0dc334b33cf15c4185c
PHP
cybercog/geo-geometry
/src/LinearRing.php
UTF-8
1,118
2.953125
3
[ "MIT" ]
permissive
<?php namespace GeoIO\Geometry; use GeoIO\Geometry\Exception\InsufficientNumberOfGeometriesException; use GeoIO\Geometry\Exception\LinearRingNotClosedException; class LinearRing extends LineString { public function __construct($dimension, array $points = array(), $srid = null) { parent::__construct($...
true
1fe4712283b5806f6727f2680d77b2e7c219fa9a
PHP
kantorku015/kpknl
/backend/models/TiketSeksi.php
UTF-8
1,014
2.5625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace backend\models; use Yii; /** * This is the model class for table "tiket_seksi". * * @property string $ticket_code * @property string $tgl_terima * @property int $status * @property int $id_seksi */ class TiketSeksi extends \yii\db\ActiveRecord { /** * @inheritdoc */ public st...
true
ae6dc73fc5438eeca0fd520948ca1d8f85641190
PHP
secytunlp/centros_mvc
/classes/com/centros/action/unidadesTiposEstados/CambiarEstadoUnidadInitAction.Class.php
UTF-8
1,165
2.625
3
[]
no_license
<?php /** * Acción para inicializar el contexto * para cambiar el estado de una unidad * * @author Marcos * @since 11-10-2013 * */ class CambiarEstadoUnidadInitAction extends EditEntityInitAction { /** * (non-PHPdoc) * @see classes/com/gestion/action/entities/EditEntityInitAction::getNewFormInstance() ...
true
00f99b02721d7c59b7c2017403f6669717f61780
PHP
uberger500/WebProgramming
/cookies_sessions_storage/session_test.php
UTF-8
151
2.515625
3
[]
no_license
<?php session_start(); $_SESSION['name'] = 'Blinky'; echo "<h1>Hello " . $_SESSION['name'] . ". Your session ID is " . session_id() . "</h1>\n"; ?>
true
e113bf1180e95114505d77460370629eae812cce
PHP
erinmccauley/BiaBook
/src/api/userbyusername.php
UTF-8
588
2.65625
3
[]
no_license
<?php header("Access-Control-Allow-Origin: *"); header("Access-Control-Allow-Methods: GET, OPTIONS"); header("Content-Type:application/json"); /** * Returns the recipe details */ require 'conn.php'; $user = []; $username = $_GET['username']; $cr = 0; $sql= "SELECT id FROM Users WHERE username = '$username' LIMIT 1"; ...
true
5dfd467cf1c31bd4c328747a3a8eed03c9555107
PHP
etelyatn/HorseRacingSimulator
/www/src/Service/ParticipantCalculationService.php
UTF-8
2,568
3.03125
3
[]
no_license
<?php namespace App\Service; use App\Entity\Participant; use Doctrine\Common\Collections\ArrayCollection; /** * Class ParticipantCalculationService * @package App\Service */ class ParticipantCalculationService { /** @var int $distance */ private $distance; /** * ParticipantCalculationService co...
true
aca44e6b84ed1fafe47d02c6f60d2b4bc133c576
PHP
eggmatters/pmf_composer
/src/utilities/cache/DBCache.php
UTF-8
4,513
2.8125
3
[]
no_license
<?php namespace utilities\cache; use core\connectors\PDOConnector; /** * DBCache -- primary responsibility is to identify and map foreign key * relationships, caching the search patterns. The relationships shall be * modeled as a n-ary ADT tree. * * Each node of the tree shall contain a model namespace (if e...
true
cce80a5d808a74f0c9adf755eefa7bbce1b1199c
PHP
molbal/svcfitstat
/app/Exceptions/QuotaLimitException.php
UTF-8
89
2.5625
3
[]
no_license
<?php namespace App\Exceptions; class QuotaLimitException extends \Exception { }
true
06173dc9605be79acea0f1f2bcf7fbfdbdd35c80
PHP
italyfm/RubyGarage-1
/API/get_lists.php
UTF-8
1,883
2.65625
3
[]
no_license
<?php include 'connect.php'; if (!$mybd) { $sql = 'CREATE DATABASE task_manager'; if (mysql_query($sql, $connect)) { echo "Database task_manager created successfully\n"; $mybd = mysql_select_db('task_manager'); } else { echo 'Error creating database: ' . mysql_error() . "\n"; } } ...
true
005e67e0b8a98b3f92085cf5f99c6891bfe791ad
PHP
eunbeanie/bus465
/payment.php
UTF-8
1,615
2.578125
3
[]
no_license
<!-- Page Name: Admin Payment Confirm Page Page Description: Displays the payments to be confirmed Created By: Oliver --> <?php session_start(); //handles database connection include "db_connect.php"; ?> <!DOCTYPE html> <html lang=en> <head> <link rel="stylesheet" href="css/bootstrap.css"> <...
true
66c6b84ce7858062a0ffdaa5cc11699487b75fe1
PHP
Alancx/Flashcard
/Application/Home/Controller/HongController.class.php
UTF-8
4,782
2.578125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: xu * Date: 2017/11/30 * Time: 17:31 */ namespace Home\Controller; use Think\Controller; class HongController extends BaseController { public function _initialize() { parent::_initialize(); // TODO: Change the autogenerated stub } public function ge...
true
a04b6db5d2feb6e698a445d98633121ee5092613
PHP
CNAWebDevCP2420/labs-datkanz093
/Lab1/RoundedValues.php
UTF-8
637
3.453125
3
[]
no_license
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Rounded Values</title> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> </head> <body> <?php $Value = 56.6; echo "Initi...
true
a7fe6bcfdf879f2a61a68877ebcd640b7a6ef555
PHP
tallcoder/Datatable
/src/OpenSkill/Datatable/DatatableService.php
UTF-8
2,588
2.71875
3
[]
no_license
<?php namespace OpenSkill\Datatable; use OpenSkill\Datatable\Columns\ColumnConfiguration; use OpenSkill\Datatable\Providers\Provider; use OpenSkill\Datatable\Versions\Version; use OpenSkill\Datatable\Versions\VersionEngine; use OpenSkill\Datatable\Views\DatatableView; use Symfony\Component\HttpFoundation\RequestStack...
true
513ba9a44859c7a7ae20f2964774ea7d61525ebc
PHP
Blackbam/cistoolkit
/src/Color.php
UTF-8
16,744
3.25
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace CisTools; use JetBrains\PhpStorm\ArrayShape; use JetBrains\PhpStorm\Pure; /** * Class Color * @package CisTools * @author David Stöckl <admin@blackbam.at> * @todo Test some functions (especially hsl/hsla/hsb/hsv and add the correct required input types). This class is in...
true
9d198ae7072c21c67a951ebf406752cfc5aecba9
PHP
hperala/salakanto
/test/include/model/MarkupTest.php
UTF-8
5,518
3.015625
3
[]
no_license
<?php require_once 'include/model/Markup.php'; class MarkupTest extends PHPUnit_Framework_TestCase { function testEmpty() { $expected = ''; $m = new Markup(''); $this->assertEquals(Markup::OK, $m->error()); $this->assertEquals($expected, $m->html()); } function testPlai...
true
d920e92078c1347b2533d739d7f73b64da0e7e83
PHP
shivanshuit914/recipe-api
/src/Domain/Recipe/RecipeLister.php
UTF-8
1,100
3.1875
3
[]
no_license
<?php namespace Domain\Recipe; use Exception; class RecipeLister { /** * @var RecipeRepositoryInterface */ private $recipeRepository; /** * RecipeLister constructor. * @param RecipeRepositoryInterface $recipeRepository */ public function __construct(RecipeRepositoryInterface...
true
c9281cb01b96e74c2d6ab6ad5a9531b83874a976
PHP
loveblair520/backend
/app/Http/Controllers/ProductsController.php
UTF-8
5,330
2.65625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\ProductImg; use App\Products; use App\ProductTypes; use Illuminate\Support\Facades\File; use Illuminate\Http\Request; class ProductsController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ ...
true
0b9abb9b3722a333cdcf9576eadcbc2c0d9f80a7
PHP
manix/brat
/src/Components/Errors/Handler.php
UTF-8
619
2.65625
3
[]
no_license
<?php namespace Manix\Brat\Components\Errors; use Manix\Brat\Components\Controller; use Throwable; /** * The default error handler */ class Handler extends Controller { public $page = View::class; protected $throwable; public function __construct(Throwable $throwable) { $this->throwable = $throwable;...
true
92538c9fd64f05b60b9ddd4f83bdf5f1b1b02fca
PHP
duaraellen/mvc_nativoPHP
/conexion.php
UTF-8
562
2.796875
3
[]
no_license
<?php class Conexion { public function conectarBD() { // Conectando, seleccionando la base de datos $db_host="127.0.0.1"; $db_port="3306"; $db_name="exempel"; $db_user="root"; $db_pass=""; $conn = mysqli_connect($db_host.':'.$db_port...
true
3625fb75b32ed438176cf220de1af8e1a613b59c
PHP
valmat/rocksdbphp
/tests/t/005.phpt
UTF-8
501
2.515625
3
[ "BSD-3-Clause" ]
permissive
--TEST-- Test del --DESCRIPTION-- Testing $db->del() --FILEEOF-- <?php require dirname(__FILE__) . '/../include/inc.php'; # Test del var_export($db->set('test1', 'val1')); echo PHP_EOL; var_export($db->get('test1')); echo PHP_EOL; var_export($db->del('test1')); echo PHP_EOL; var_export($db->get('test1')); echo PHP_EO...
true
e6413d9448d86c3fa4b286aa6a7275539c6e7ae7
PHP
freelaxdeveloper/docker-dcms
/www/sys/plugins/classes/user.mess.php
UTF-8
753
2.609375
3
[]
no_license
<?php /** * Отправляем пользователю личное сообщение * Использовать как $user->mess(сообщение, [id отправителя. по умолчанию система]) * @param \user $user * @param array $args * @return boolean */ function user_mess($user, $args) { if (!$user->id) { return false; } $msg = $args[0]; $id_u...
true
de6cdf862c08edcb53a7523ed3c5fc7456cdd5f2
PHP
soaresrodrigo/Tomada-Zero
/app/Http/Controllers/Api/ActorController.php
UTF-8
2,092
2.609375
3
[]
no_license
<?php namespace App\Http\Controllers\Api; use App\Http\Controllers\MasterApiController; use Illuminate\Http\Request; use App\Models\Actor; use App\Models\Employee; class ActorController extends MasterApiController { protected $model; function __construct(Actor $ator, Request $request) { $this->m...
true
b7710062f561336f6f6431f992748b2ee87d42b5
PHP
sikimar/AutoMicrosite-Repository
/AutoMicrosite/UT/Hans/AutoMicrosite/RuleGenerator/RuleMlElement/AbstractContainer.php
UTF-8
1,259
2.90625
3
[]
no_license
<?php namespace UT\Hans\AutoMicrosite\RuleGenerator\RuleMlElement; use DOMDocument; /** * Abstract container element that can contain several child RuleML elements */ abstract class AbstractContainer extends AbstractRuleMl { /** * Child RuleML elements * * @var array */ protected $children = array(); /...
true
332bdf04e878589365777a125d3286fc98579412
PHP
macielbombonato/docker-chamilo
/1.11.2/chamilo-lms-1.11.2/src/Chamilo/CourseBundle/Component/CourseCopy/Resources/ForumPost.php
UTF-8
626
2.625
3
[ "GPL-3.0-or-later", "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php /* For licensing terms, see /license.txt */ namespace Chamilo\CourseBundle\Component\CourseCopy\Resources; /** * A forum-post * @author Bart Mollet <bart.mollet@hogent.be> * @package chamilo.backup */ class ForumPost extends Resource { /** * Create a new ForumPost */ public function __cons...
true
cebd658bc7afb88fa2d2d6c4eee9a9f180191154
PHP
fixmind/enum
/demo/index.php
UTF-8
1,599
3.4375
3
[ "MIT" ]
permissive
<?php namespace FixMind\Enum; include '..\src\EnumCore.php'; include '..\src\Enum.php'; // COLLECTOIN DEFINITION class Vertical extends Enum { const TOP = 'TOP'; const MIDDLE = 'MIDDLE'; const BOTTOM = 'BOTTOM'; } class Horizontal extends Enum { const VALUE = ['LEFT', 'CENTER', 'RIGHT']; } // STRICT USAGE cla...
true
4bf642891b26f4cf57229ebb530947d63452fc37
PHP
shoaibi/image-parser
/ThumbnailHtmlPageGenerator.php
UTF-8
1,354
3.21875
3
[]
no_license
<?php /** * Class ThumbnailHtmlPageGenerator * Utility class to generate an html page with given array of converted images */ abstract class ThumbnailHtmlPageGenerator { /** * Render a html page for converted images */ public static function renderHtml($thumbnails) { $content = ''; ...
true
ddc21fdb8b17cc884c7e1965c6ee1b846f5ccc3a
PHP
gitstashgithub/php-imap
/src/Attachment.php
UTF-8
9,102
2.6875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /* * File: Attachment.php * Category: - * Author: M. Goldenbaum * Created: 16.03.18 19:37 * Updated: - * * Description: * - */ namespace Webklex\PHPIMAP; use Illuminate\Support\Str; use Webklex\PHPIMAP\Exceptions\MaskNotFoundException; use Webklex\PHPIMAP\Exceptions\MethodNotFoundException; use Webklex...
true
256c6742f5f6fa1476c48f61019dae6253ef6dec
PHP
kardi31/ap
/application/modules/order/services/DeliveryType.php
UTF-8
3,625
2.5625
3
[]
no_license
<?php /** * Order_Service_DeliveryType * @author Andrzej Wilczyński <and.wilczynski@gmail.com> */ class Order_Service_DeliveryType extends MF_Service_ServiceAbstract { protected $deliveryTypeTable; public function init() { $this->deliveryTypeTable = Doctrine_Core::getTable('Order_Model_Doc...
true
b058dfb1b1e12b78bedaa5fd116b664e0dd89a44
PHP
paullewallencom/symfony-978-1-8471-9456-5
/_src/lib/model/MilkshakePeer.php
UTF-8
936
2.734375
3
[ "Apache-2.0" ]
permissive
<?php class MilkshakePeer extends BaseMilkshakePeer { /** * Get all milshakes * * @param Int $limit * @return Array Get all */ public static function getAllShakes($currentPage, $totalItems) { $pagerObj = DbFinder::from('Milkshake')->useCache(new sfMemcacheCache())->select(array('name'))->pagin...
true
20919c4dc155b6217d64c49c86be2ae7540fc659
PHP
Nabcellent/highschool-elections
/insert/vote_ins.php
UTF-8
1,106
2.609375
3
[]
no_license
<?php include_once "../functions.php"; $link = connect_to_db(); $voter_id = $_POST['voter_id']; $head_boy_id = $_POST['head_boy']; $head_girl_id = $_POST['head_girl']; $dh_capt_id = $_POST['dh_capt']; $games_capt_id = $_POST['games_capt']; $lib_capt_id = $_POST['lib_capt']; $form_capt_id = $_POST['form_capt'...
true
86f703dcb8a5204653b68af16d99f15edda9239d
PHP
NicholasZyl/chess
/features/bootstrap/Helper/InMemoryGames.php
UTF-8
769
2.859375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Helper; use NicholasZyl\Chess\Domain\Exception\GameNotFound; use NicholasZyl\Chess\Domain\Game; use NicholasZyl\Chess\Domain\GameId; use NicholasZyl\Chess\Domain\GamesRepository; class InMemoryGames implements GamesRepository { /** * @var Game[] */ private $...
true
b6e8a3b931add1aa7a0210d82f813f5369063d59
PHP
rtsantos/mais
/library/ZendT/Tool/Crud/Table.php
UTF-8
10,240
2.59375
3
[]
no_license
<?php /** * Classe para geração do arquivo Table do módulo * * @package ZendT * @subpackage Tool * @category Crud * @author rsantos */ class ZendT_Tool_Crud_Table { /** * Cria o modelo do crud na qual o desenvolvedor não coloca a mão * Esses dados são sempre substituído * * @param strin...
true
87fde8b2ef6cf90a87bb1da58c66623cd67cb118
PHP
rahulyhg/happy-giraffe
/site/common/behaviors/UrlBehavior.php
UTF-8
2,173
2.5625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: mikita * Date: 10/09/14 * Time: 14:58 */ namespace site\common\behaviors; class UrlBehavior extends \CActiveRecordBehavior { public $preparedUrl; public $route; public $params = array('id'); public $urlAttribute = 'url'; private $urlSaved = false; ...
true
3168a3ea83a126aea8d2eddbb190aadcbd2b30c0
PHP
thecodingmachine/metahydrator
/tests/Validator/EnumValidatorTest.php
UTF-8
828
2.609375
3
[ "MIT" ]
permissive
<?php namespace MetaHydratorTest\Validator; use MetaHydrator\Validator\EnumValidator; class EnumValidatorTest extends \PHPUnit_Framework_TestCase { private $validator; public function __construct($name = null, array $data = [], $dataName = '') { parent::__construct($name, $data, $dataName); ...
true
b419146ac77c90008612c732dd44ff604834cf70
PHP
dmanners/DavidAndVinai_PreferencesInfoCommand
/Model/Shell/Command/PreferencesInfo.php
UTF-8
2,768
2.65625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace DavidAndVinai\PreferencesInfoCommand\Model\Shell\Command; use Magento\Framework\ObjectManager\ConfigInterface as ObjectManagerConfig; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Compon...
true
3fc3b2ef9f74f9a8a223d91038a785484dd9468e
PHP
matzpersson/laravel-ladbrokes
/app/Http/Controllers/RaceController.php
UTF-8
2,688
2.625
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Race; use Illuminate\Http\Request; class RaceController extends Controller { /** * Reset race close. * * @return \Illuminate\Http\Response */ public function restart() { // -- For demonstration purposes only. // -- Re-see...
true
9f0afdc7d6940908330176e72d31cc41fcdd86d9
PHP
base10-at/util
/src/Email/SmtpConnectionConfig.php
UTF-8
2,050
2.90625
3
[]
no_license
<?php namespace Base10\Email; use Base10\Contract\EmailAddressInterface; use Base10\Mixin\CanInitialise; class SmtpConnectionConfig { use CanInitialise; /** * @var string */ private $_username; /** * @var string */ private $_password; /** * @var string */ ...
true
f22202a162ee91b42f5b54f7fb635a502d9f34c2
PHP
kiyonlin/knox
/app/Modules/User/User.php
UTF-8
2,016
2.515625
3
[]
no_license
<?php namespace App\Modules\User; use App\Modules\Module\Module; use App\Modules\Role\Role; use Illuminate\Notifications\Notifiable; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Support\Collection; use Parsidev\Entrust\Traits\EntrustUserTrait; class User extends Authenticatable { use No...
true
5da570204d49155075699ccec869bce1b3141630
PHP
KashyapBhat/Paper-Evaluation-using-AI-ML
/WebApp/uploadanswer.php
UTF-8
7,503
2.578125
3
[ "Apache-2.0", "CC-BY-4.0", "CC-BY-3.0" ]
permissive
<?php include('conect.php'); error_reporting(1); extract($_POST); $error=array(); //clear previos adds of images foreach($_POST as $nameaa => $content) { } $usn = $_POST['usnp']; if (!file_exists($usn) && !is_dir($usn)) { mkdir($usn, 0777, true); } $target...
true
170e4a955be7d422e5a48ec0d28f096430b998be
PHP
EmmanuelAmet/online-student-portal--core-php
/admin/result.php
UTF-8
19,311
2.578125
3
[]
no_license
<?php require '../dbConnection/connect.inc.php'; $myuser = $_GET['username']; $query = "SELECT * FROM students WHERE username = '{$myuser}' "; $result = mysqli_query($connection, $query); while ($row = mysqli_fetch_array($result)) { $firstname = $row['firstname']; $lastname = $row['lastname']; $ot...
true
66bfbf45216cc7b39b47a8d6d1653b6984d65025
PHP
redbastie/swift
/src/Components/ListGroupComponent.php
UTF-8
433
2.53125
3
[]
no_license
<?php namespace Redbastie\Swift\Components; class ListGroupComponent extends BaseComponent { protected $content; public function __construct($content) { parent::__construct(); $this->content = $content; } public function flush() { return $this->class('list-group-flus...
true
e0e4fea419d4ef0acb4d48cd457388e2514e2608
PHP
maclof/kubernetes-client
/tests/collections/DeploymentCollectionTest.php
UTF-8
573
2.515625
3
[ "MIT" ]
permissive
<?php use Maclof\Kubernetes\Collections\DeploymentCollection; class DeploymentCollectionTest extends TestCase { protected array $items = [ [], [], [], ]; protected function getDeploymentCollection(): DeploymentCollection { $deploymentCollection = new DeploymentCollection($this->items); return $deploym...
true
812330bd5dceedb32f96cf7b5edf24fb793fa948
PHP
kamilbiela/shop-backend
/src/model/ProductLang.php
UTF-8
1,845
2.625
3
[ "MIT" ]
permissive
<?php namespace Shop\Model; use Shop\Lib\Serializer\ArraySerializableInterface; /** * @Entity(repositoryClass="Shop\Repository\ProductLangRepository") * @HasLifecycleCallbacks */ class ProductLang implements ArraySerializableInterface { /** * @Column(type="integer") * @Id * @GeneratedValue ...
true
24e334a2ee5065fe8a19f0f3e733e180d014c2d5
PHP
cnzhaor/bike
/application/admin/controller/Category.php
UTF-8
3,160
2.546875
3
[ "Apache-2.0" ]
permissive
<?php namespace app\admin\controller; use think\Controller; use think\Request; use app\admin\model\Category as CatModel; class Category extends Common { /** * 显示栏目列表 * * @return \think\Response */ public function index() { $catModel = new CatModel(); $cats = $catModel-...
true
2587d3bfbb7e68b1c59e081cb487faba46b5fd45
PHP
xemuj/Slice-Library
/application/controllers/Test.php
UTF-8
1,381
2.9375
3
[ "MIT" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /** * This is a test class to show you how to work with Slice-Library! */ class Test extends CI_Controller { public function __construct() { parent::__construct(); // Load the Slice-Library as any CodeIgniter library $this->load->library(...
true