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
e556693f33e1ba89a41a1f6c191676a1aff4ce62
PHP
PolaviejaLab/wexp
/src/AppBundle/Controller/ExperimentController.php
UTF-8
5,444
2.515625
3
[ "MIT" ]
permissive
<?php namespace AppBundle\Controller; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Response; use AppBundle\Entity\Experiment; use AppBundle\Entity\Player; use AppBundle\Entity\Session; use AppBundle\Entity\R...
true
70189a3e0ce2b580fcf554d483942006df43383c
PHP
Moskacz/ZaawansowaneTechnologieWebowe3
/chartDataInserter.php
UTF-8
800
2.796875
3
[ "MIT" ]
permissive
<?php $dbc = mysqli_connect('localhost', 'root', 'root', 'ZaawansowaneTechnologieWebowe3'); $points = $_POST['points']; $userName = $_POST['userName']; for ($i = 0; $i < count($points); $i++) { $xPointCoordinate = $i; $yPointCoordinate = $points[$i]; $query = "SELECT x FROM poin...
true
93d12ba3d0b93f571654adc6274f72c9e28b3da2
PHP
ArcherCraftStore/ArcherVMPeridot
/apps/joomla/htdocs/libraries/joomla/observer/mapper.php
UTF-8
2,564
2.625
3
[ "GPL-2.0-only", "GPL-2.0-or-later", "Apache-2.0", "MIT" ]
permissive
<?php /** * @package Joomla.Platform * @subpackage Observer * * @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE */ defined('JPATH_PLATFORM') or die; /** * Observer mapping pattern implementation...
true
21f38df64e926dcce80b3601100bcf5a6add9816
PHP
Ivan-dle/Software-Design-Webapp
/includes/profile.in.php
UTF-8
3,298
2.953125
3
[]
no_license
<?php require 'db.in.php'; // Require the config for the database to gain access //require 'db.in.php'; // If it is user's first time required to fill out everything! // Do error handlers to make sure all inputs were correct // If user clicked on the submit button on the profile page if (isset($_POST['...
true
ead6e5ba44e00b746b96e0c9684812ae06a88221
PHP
dlondero/strava-objects
/src/Objects/Zones.php
UTF-8
584
3.109375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace StravaObjects\Objects; class Zones { private ?HeartRateZoneRanges $heartRate; private ?PowerZoneRanges $power; private function __construct() { } public static function create(array $parameters): self { $instance = new self(); $in...
true
08044f862d40031c90488af19708d33c827f8ee7
PHP
SSpencer-Mcfad99/finalyearproject
/private/app/src/SQLQueries.php
UTF-8
33,758
2.890625
3
[]
no_license
<?php namespace votingSystemTutorial; /** * SQLQueries.php * * hosts all SQL queries to be used by the data models */ class SQLQueries { public function _construct(){} public function _destruct(){} /*****************************************************/ /* User Queries (including admin tools) ...
true
d66124d5c238ad2aa23a70b96eea88776295785d
PHP
maisuttiporn/REST
/index.php
UTF-8
1,063
3.109375
3
[]
no_license
<?php // process client request (VIA URL) header("Content-Type:application/json"); if(!empty($_GET["name"])) { // $name = $_GET["name"]; $price = get_price($name); if(empty($price)) { // book not found deliver_response(200,"book not found",NULL); } else { // reponse bo...
true
3eda94a2b2dd9f4f976eda7dc4b6cc4b6d26ef61
PHP
naka1205/qrhelper
/src/QrReader/ReaderException.php
UTF-8
757
2.765625
3
[ "MIT" ]
permissive
<?php namespace QrHelper\QrReader; use Exception; abstract class ReaderException extends Exception { // disable stack traces when not running inside test units //protected static $isStackTrace = System.getProperty("surefire.test.class.path") != null; protected static $isStackTrace = false; function Rea...
true
ad5e574e8e6e4aae5de327bf7ac5de6dd7ed4444
PHP
fabienInizan/WebKernel
/core/action/ActionResponse.php
UTF-8
1,391
2.984375
3
[ "MIT" ]
permissive
<?php interface ActionResponse { /** * Get target element * @param string $name name of the element * @return mixed target element */ public function getElement($name); /** * Get all elements * * @return array */ public function getElements(); /** * Get template identifier * @return string ...
true
7cfff83be683d6f5986e8e64676717052d02d961
PHP
GDoval/Programacion-III
/Practica_PHP/Parcial_1/clases/agregarLamparitaSinFoto.php
UTF-8
509
2.671875
3
[]
no_license
<?php error_reporting(E_ALL); ini_set("display_errors", "On"); print_r(error_get_last()); include_once "lamparita.php"; $lampara = new Lamparita($_POST['tipo'], $_POST['precio'], $_POST['color']); $lampara->Agregar(); $archivo = fopen("./archivos/lamparitas_sin_fotos.txt", "a+"); $fecha = date('l jS \of F Y h:i:s A')...
true
046440f8adc08a954e5cc8e22cf91be7edc3e096
PHP
LogiSpark/LeaveManager
/user/sendLeave.php
UTF-8
3,371
2.625
3
[]
no_license
<?php include("../functions.php"); if(!checkLogin()){ // check if user is logged in, if not redirect to login page redirect('../login.php'); } require_once('../libs/phpmailer/class.phpmailer.php'); require_once("../libs/phpmailer/class.smtp.php"); require ("../libs/phpmailer/PHPMailerAutoload.php"); requir...
true
43c60516959dbc69e68fbef33dfdff4714afb417
PHP
goncalor/SIBD
/Projeto/part2/patient_records.php
UTF-8
2,521
2.8125
3
[]
no_license
<html> <head> <title>Find patient's readings and settings</title> </head> <body> <?php include_once("credentials.php"); // what the file should include: // $user = "istXXXXX"; // $dbhost = "db.ist.utl.pt"; // $dbpass ="XXXXXX"; // $dbname = "istXXXXX"; $dsn = "mysql:host=$dbhost;dbname=$dbn...
true
b53eb6ce2c7136b205c8eb0096f909f2054df9cc
PHP
feechanz/SenatProject
/Dao/Book.php
UTF-8
1,158
3.1875
3
[]
no_license
<?php class Book { private $isbn; private $title; private $author; private $publisher; private $cover; private $publishYear; private $category; public function setIsbn($isbn) { $this -> isbn = $isbn; } public function getIsbn() { return $this -> isbn; } public function setTitle($title) ...
true
32bc43e5167e618a2d58878ba2c1b9b6f8c07b4a
PHP
yks118/AmountLanguage
/Lang/Ja.php
UTF-8
3,487
2.890625
3
[ "MIT" ]
permissive
<?php namespace AmountLanguage\Lang; use AmountLanguage\AmountLanguage; /** * Class Ko * * Japanese ( 日本語 / JPY ) * * @package AmountLanguage\Lang * * @method AmountLanguage setDecode(string $lang, string $type = 'kanji') * @method string getEncode(string $type = 'kanji') */ class Ja implements LangInterface...
true
3a6f0003af73c327dfe48837cc2f05e71e65dd90
PHP
GoranDimitrovski/alert-rest-api
/src/Infrastructure/Repository/MeasurementRepository.php
UTF-8
1,902
2.796875
3
[]
no_license
<?php namespace App\Infrastructure\Repository; use App\Domain\Entity\Measurement; use App\Domain\Entity\Sensor; use App\Domain\Interfaces\MeasurementRepositoryInterface; use DateTime; use Doctrine\ORM\QueryBuilder; use Ramsey\Uuid\UuidInterface; /** * Class MeasurementRepository * @package App\Infrastructure\Repos...
true
e3579bcc7fa7064928e7a08354f2273e75b42416
PHP
puchkovk/imp
/src/Exception/Http/FoundException.php
UTF-8
701
2.875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace TheImp\Exception\Http; use Exception as PhpException; use Throwable; /** 302 Found (Previously "Moved temporarily") */ class FoundException extends PhpException { /** * @var int */ protected $code = 302; protected string $url; /**...
true
c00c52dfcb5c900eac3893e2b55e9c2d54176b46
PHP
RichardG971/10I__TP-PHP
/Admin/traitementAdRes.php
UTF-8
2,899
2.59375
3
[]
no_license
<?php require_once('../Admin/Authentification/securite.php'); ?> <?php require_once('../Connexion.php'); if($connect) { // Pour changer le format des dates. function dateFormat($D) { $D = date('d-m-Y', strtotime($D)); return $D; } $sql = "SELECT * FROM reservation ORDER BY dateArr...
true
a8d60aff48a8bf2eedb4ed47b04617ff12ff652f
PHP
binthec/meister
/app/Device.php
UTF-8
3,956
2.578125
3
[]
no_license
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Device extends Model { public function user() { return $this->belongsTo('App\User'); } /** * デバイス分類 */ const NOTE_PC = '1'; const DESKTOP_PC = '2'; const TABLET = '20'; const DISPLAY = '40'; con...
true
f179239a3e3b9667ee04d62661926fa356ddfa56
PHP
lastivkagame/php_animal3
/head.php
UTF-8
1,463
2.625
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <link rel="stylesheet" href="css/bootstrap.min.css"> <link rel="stylesheet" href="css/style.css"> <title>Do...
true
ce5bcae4a8eb6b83213885105234c0fe1b854cd6
PHP
Nobasksio/rq.local
/src/Entity/TypeProduct.php
UTF-8
2,660
2.578125
3
[]
no_license
<?php namespace App\Entity; use App\Utility\EntityHelper; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass="App\Repository\TypeProductRepository") */ class TypeProduct extends EntityHelper { /** ...
true
a2fc963f04d0aa1422e25248d17c0c8270aae554
PHP
fyrkant/Login_1DV608
/src/model/LoginAttemptModel.php
UTF-8
1,427
3.21875
3
[]
no_license
<?php namespace model; class LoginAttemptModel { private $name; private $password; private $keep; private $isRemembered; /** * @param string $name * @param string $password * @param bool|false $keep * * @param $isRemembered * * @throws \exceptions\PasswordEmpt...
true
7bd7557d5bad6114dd231adb4efc104e20bf000b
PHP
estrategia/siicop_pdv
/puntoventa/models/CargueInfluenciaForm.php
UTF-8
928
2.84375
3
[]
no_license
<?php /** * LoginForm class. * LoginForm is the data structure for keeping * user login form data. It is used by the 'login' action of 'SiteController'. */ class CargueInfluenciaForm extends CFormModel { public $archivo; /** * Declares the validation rules. */ public function rules() { ...
true
7fee46ffdbd618f77c98b52dccb29a238ca0c137
PHP
JamieYnonan/maraquser
/app/src/Mu/Application/User/SingInHandler.php
UTF-8
493
2.65625
3
[ "MIT" ]
permissive
<?php namespace Mu\Application\User; use Mu\Domain\Model\User\Email; use Mu\Domain\Model\User\UserService; final class SingInHandler { private $userService; public function __construct(UserService $userService) { $this->userService = $userService; } public function handle(SingInCommand ...
true
9bf7055f5556d8fa8f5b14da7643123aede5950f
PHP
tetraset/myskillspro
/src/MyskillsBundle/DomainManager/Source/DictSourceManager.php
UTF-8
790
2.609375
3
[]
no_license
<?php namespace MyskillsBundle\DomainManager\Source; use MyskillsBundle\DomainManager\BaseDomainManager; use MyskillsBundle\Entity\DictSource; use MyskillsBundle\Repository\DictSourceRepository; use Doctrine\ORM\EntityManager; class DictSourceManager extends BaseDomainManager { /** * @var EntityManager ...
true
5cb485649e224ac29f22baa030721e7fa1efa92a
PHP
lukhazz/mdg.mpp
/form-send.php
UTF-8
3,047
2.765625
3
[]
no_license
<?php $error = false; if ($_SERVER['REQUEST_METHOD'] == 'POST' ) { // Pokud se zmáčkne tlačítko POST, udělej funkci if ( isset($_POST['project']) && // prázné políčko taky vezme isset, pro tuto kontrolu bychom musel použít empty //isset($_POST['produkt-1[]']) && isset($_POST['ean1']) ) {...
true
894c741e222b1cddf75aa070aaa68aa8f2f86c28
PHP
tinredd/cs633grp5
/app/views/JobView.php
UTF-8
10,916
2.5625
3
[]
no_license
<?php function js ($value1=0, $value2=0) { $returnStr=''; if (!is_numeric($value1)) $value1=0; if (!is_numeric($value2)) $value2=0; $returnStr.=' <script> $(function() { $("#years_experience_slider").slider({ min: 0, max: 25, step: 0.5, value: '.$value1.', slide: function(event, ui) { $("#years_expe...
true
6993019bafa4485430135ab28d028ed5616f2588
PHP
fauzanh12345/buku-tamu
/daftartamuklinik/assets/js/php-captcha/Model/Contact.php
UTF-8
687
2.78125
3
[]
no_license
<?php namespace Phppot; use Phppot\DataSource; class Contact { private $ds; function __construct() { require_once __DIR__ . './../lib/DataSource.php'; $this->ds = new DataSource(); } function addToContacts($userName, $userEmail, $subject, $content) { $insertQuery = "...
true
1b312ddfd258d978fc1d7c2f4ff25e16bdc8c289
PHP
baaane/image-optimizer
/src/Action/ImageOptimizer.php
UTF-8
5,632
2.75
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace Baaane\ImageOptimizer\Action; use Exception; use Illuminate\Http\Request; use Baaane\ImageOptimizer\Core\Upload; use Spatie\ImageOptimizer\OptimizerChainFactory; use Baaane\ImageOptimizer\Action\MobileImageSize; use Baaane\ImageOptimizer\Action\DesktopImageSize; use Baaane\ImageOptimizer\Action\Thumbn...
true
4bd317601c97a5e75f03df5e345e576f9143e565
PHP
dem1k/fotosvit
/system/application/models/admin/download_model.php
UTF-8
1,243
2.546875
3
[]
no_license
<?php /* * To change this template, choose Tools | Templates * and open the template in the editor. */ class Download_model extends Model { function get_all() { $this->db->select('*') ->from('download'); $q = $this->db->get(); return $q->result(); } func...
true
d8b3df9d4297e9917b6153f8113886b19a105b36
PHP
Pipiro/ProjetLOL
/Source/ajax/_returnDataTeam.php
UTF-8
2,001
2.71875
3
[]
no_license
<?php require '../required.php'; $am = new PdoApiKeyManager(); // Saison actuelle pour la recherche de données $actualSeason = "2016"; // Récupération des joueurs actifs de la team $pttm = new PdoPlayersToTeamManager(); $players = $pttm->getActivesPlayersByTeamId($_GET['idTeam']); // ...
true
0165c4f2da04d438fb5804f572e0700da2756425
PHP
secytunlp/cyt_mvc
/cyt_secure/manager/UserManager.Class.php
UTF-8
14,662
2.65625
3
[]
no_license
<?php /** * Manager para User * * @author Marcos * @since 10-11-2013 */ class UserManager extends EntityManager{ public function getDAO(){ return CYTSecureDAOFactory::getUserDAO(); } public function signup( User $oUser ){ //chequeamos el captcha. //TODO ver cómo mejorarlo. include("libs/cap...
true
266e38b83fdcf869790cd810c0059c636c281263
PHP
yoyoyachu/databaseAppInPhp
/autosWithPostRedirect/view.php
UTF-8
1,424
2.703125
3
[]
no_license
<?php session_start(); if ( ! isset($_SESSION['name']) ) { die('Not Logged In'); } $status_color = 'red'; require_once "pdo.php"; $autos = []; $all_autos = $pdo->query("SELECT * FROM autos"); while ( $row = $all_autos->fetch(PDO::FETCH_OBJ) ){ $autos[] = $row; } ?> <!DOCTYPE html> <html lang="en"> <he...
true
7ca819d25f66f494d5f75a092910f0d287277644
PHP
agpreynolds/cookbook
/public_html/php/classes/persistence/db.php
UTF-8
1,570
2.984375
3
[]
no_license
<?php class db extends mysqli { protected $config; private $connection; public function __construct() { $this->config = getConfig('db'); } private function setup() { $this->connection = parent::__construct( $this->config['host'], $this->config['...
true
708260bb8ba14fd7da9e9aa068c6a9e6ae4d3064
PHP
uriduran/Laravel-PHP-Learning
/02_OO_Bootcamp/04_Static_And_Constants/constant.php
UTF-8
306
3.109375
3
[]
no_license
<?php class BankAccount { const TAX = .09; } echo BankAccount::TAX; //const allows the TAX const to be accessed from outside the class unlike setting it to Private $Tax etc //Setting it to private still allows Tax to be changed from within the class. //const does not allow hanging to the variable.
true
1c509abf10c17db5bbdef254dd1313509d47e58d
PHP
sturple/fanferret
/Question/QuestionFactoryInterface.php
UTF-8
460
2.59375
3
[]
no_license
<?php namespace FanFerret\QuestionBundle\Question; /** * Provides an abstract mechanism for creating Question * objects from Question entities. */ interface QuestionFactoryInterface { /** * Creates a Question object for a Question * entity. * * @param $question * The Question entity. ...
true
2a7dd564e8c54438754a5d0fba3548803d16b5f2
PHP
arbi/MyCode
/backoffice/library/DDD/Domain/Apartment/Statistics/ForBasicDataReview.php
UTF-8
431
2.578125
3
[]
no_license
<?php namespace DDD\Domain\Apartment\Statistics; class ForBasicDataReview { protected $avg; protected $count; public function exchangeArray($data) { $this->avg = (isset($data['avg'])) ? $data['avg'] : null; $this->count = (isset($data['count'])) ? $data['count'] : null; } pu...
true
a2d86463c81a989c49dbe87efef79ee61569bc55
PHP
poxuan/mvcs
/src/Traits/Import.php
UTF-8
9,268
2.609375
3
[ "MIT" ]
permissive
<?php namespace Callmecsx\Mvcs\Traits; use Illuminate\Support\Facades\Artisan; use Illuminate\Support\Facades\Schema; /** * 此内容依赖laravel框架 * * @author chentengfei * @since */ trait Import { public $importTables = []; /** * 构建表结构 * * @author ctf <tengfei.chen@atommatrix.com> * @param ...
true
63d3d2af1fddcc7cdaf551b3b2cd48fb0fe8a56e
PHP
cash2one/gaiwang
/common/components/RedEnvelopeTool.php
UTF-8
17,949
2.640625
3
[]
no_license
<?php /** * 红包活动操作类 * Created by PhpStorm. * User: binbin.liao * Date: 2014/11/25 * Time: 20:03 */ class RedEnvelopeTool { /** @var $memberId 会员id */ public $memberId; public static $instance; public static function getInstance() { if (empty(self::$instance)) { self::$insta...
true
055b48a2ec9d4aef4fb7476d82fb671a6554baa6
PHP
Petervrancken/php2
/oef2.2/api/api.php
UTF-8
3,935
2.609375
3
[]
no_license
<?php $public_access = true; require_once '../lib/autoload.php'; //Allow access from outside (see CORS) //header("Access-Control-Allow-Origin: *"); header("Access-Control-Allow-Origin: 'https://gf.dev'"); header("Access-Control-Allow-Credentials 'true'"); //Allow GET, POST, PUT, DELETE, OPTIONS http methods header("A...
true
14737d70eee7543636720d88ffbc512836bd4972
PHP
goetas/mocked-client
/src/HandlerStackBuilder.php
UTF-8
3,712
2.640625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace MockedClient; use DateTime; use GuzzleHttp\Client; use GuzzleHttp\HandlerStack; use GuzzleHttp\Psr7\Response; use GuzzleHttp\Psr7\ServerRequest; use League\Route\Http\Exception\NotFoundException; use League\Route\Router; use MockedClient\Exception\RouteNotFound; use Psr\Http\...
true
0e34d41694db0bde9941384d3f96b16084476845
PHP
mybrainpal/DashboardBackend
/library/classes/BrainPal.php
UTF-8
11,376
3.140625
3
[]
no_license
<?php /** * The main class for the application. * * @author Nati */ class BrainPal { /** * The requested class. * * @var string */ private $class; /** * The requested method. * * @var string */ private $method; /** * The instance of the requested action. * ...
true
da8a6088421f4b572ad981c58926683541f0a148
PHP
fil-blue/avcms
/src/AVCMS/Bundles/FacebookConnect/Form/FacebookAccountForm.php
UTF-8
1,429
2.578125
3
[ "MIT" ]
permissive
<?php /** * User: Andy * Date: 12/01/15 * Time: 18:38 */ namespace AVCMS\Bundles\FacebookConnect\Form; use AV\Form\FormBlueprint; class FacebookAccountForm extends FormBlueprint { public function __construct($emailRequired = false) { $this->add('username', 'text', [ 'label' => 'Userna...
true
d6ad24ac502c6caea861c921030313f30de62443
PHP
Karina-Honcharova-dev/CV-1
/KED-better/example.php
UTF-8
9,059
3.09375
3
[]
no_license
<?php function everything_in_tags($string, $tagname) { // first regex: find title of the song in the title $pattern = "#<\s*?$tagname\b[^>]*>(.*?)</$tagname\b[^>]*>#s"; preg_match($pattern, $string, $matches); return $matches[1]; } $orig1 = preg_split( "/ (\n|' ') /", file_get_contents('file1.xml') ); ...
true
594956362adfaacc65d9fb8a7893ed10548c16b6
PHP
kevin16702/OOP
/Eindopdracht/classes/Pokemon.php
UTF-8
1,855
3.484375
3
[]
no_license
<?php class Pokemon{ public $name; public $hp; public $energytype; public $health; public $attacks; public $weakness; public $resistance; public $attackId; public $attackedPokemon; public static $count; public function __construct($name, $hp, $energytype, $attacks, $weakne...
true
126098a9bd5fbc5f472537c65c8afa6609cd27bd
PHP
alexanderlexis/Zeeslag
/databasevb.php
UTF-8
1,722
2.984375
3
[]
no_license
<?php session_start(); $servername = "localhost"; $username = "root"; $password = "root"; $db = "zeeslag"; $conn = new mysqli($servername, $username, $password, $db); ?> <!DOCTYPE HTML> <html> <head> <script> </script> </head> <body> <?php function downl...
true
ab5f9d27be609df222c807249f4d5ce678a4054d
PHP
AntoineCheminPro/filRouge
/correction/banquephp/model/model.php
UTF-8
231
2.765625
3
[ "MIT" ]
permissive
<?php // Model class to host a database connection as a PDO object require "connexion.php"; abstract class Model { protected PDO $db; public function __construct() { $this->db = Connexion::getPDOConnexion(); } } ?>
true
98b11a996c0ea0be74628167b888289698c6b08f
PHP
AracQuango/Upscale
/app/Modules/Products/Commands/CreateProduct.php
UTF-8
1,130
2.734375
3
[]
no_license
<?php namespace Upscale\Modules\Products\Commands; use Upscale\Modules\Products\Repositories\ProductRepository; use Illuminate\Http\Request; use Illuminate\Support\Facades\Response; use Prettus\Validator\Exceptions\ValidatorException; class CreateProduct { /** * Local instance of the `UserRepository` ...
true
4b4fe48d790e89824c9850e4bfcf28ea5c6b0c89
PHP
VIRRILIS/ghtweb5_last_version
/protected/models/Bonuses.php
UTF-8
2,226
2.578125
3
[]
no_license
<?php /** * This is the model class for table "{{bonuses}}". * * The followings are the available columns in table '{{bonuses}}': * @property string $id * @property string $title * @property string $date_end * @property integer $status * * @property BonusesItems[] $items * @property int $itemCount */ class ...
true
b504fa2b5861a3eac33ef601d9e7a3b2a76dbe41
PHP
rwindelz/smalldb-flupdo
/class/SelectBuilder.php
UTF-8
5,778
2.734375
3
[ "Apache-2.0", "DOC", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /* * Copyright (c) 2013, Josef Kufner <jk@frozen-doe.net> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless require...
true
c9ceda9e3bda0a26a7503735eb41de4464e13d9d
PHP
Dataservicios/ttauditBackend
/public/json/bayerJson.php
UTF-8
1,613
2.515625
3
[ "MIT" ]
permissive
<?php header('Access-Control-Allow-Origin: *'); header('Content-type: application/json'); $var = $_POST['company_id'] ; //echo $var ; if($var == 30) { // for ($i = 1; $i <= 5; $i++) { // //$cantidad = rand(1,100); // $competencias[] = [ // "nombre" => "Apronax" . $i, // ...
true
8c145f3a8ad7d172acecbda360b3449b608662ca
PHP
G-Ecole-Plus/yii2-notifications
/src/widgets/NotificationList.php
UTF-8
8,145
2.78125
3
[ "MIT" ]
permissive
<?php namespace dvamigos\Yii2\Notifications\widgets; use dvamigos\Yii2\Notifications\NotificationInterface; use dvamigos\Yii2\Notifications\NotificationManager; use Yii; use yii\di\Instance; use yii\helpers\ArrayHelper; /** * by Aleksandar Panic * Company: 2amigOS! * **/ class NotificationList extends \yii\base\...
true
d630099ec18ef2beacacbce4eef0def2ce104055
PHP
Kennyl/pixmicat_modules
/mod_userrepair/mod_userrepair.php
UTF-8
1,851
2.578125
3
[ "LicenseRef-scancode-public-domain" ]
permissive
<?php class mod_userrepair extends ModuleHelper { private $SELF; public function __construct($PMS) { parent::__construct($PMS); $this->SELF = $this->getModulePageURL(); } public function autoHookThreadFront(&$txt,$isReply){ if(!$isReply) $txt.='<div style="text-align: right">[<a href="'.$this->SELF.'" rel="...
true
a57862842e0dbc73ff35e377b6a1cca3215a9c1d
PHP
Stankman/bobba-axdr
/KERNEL-XDRCMS/SQL.mysqli.php
UTF-8
4,491
2.640625
3
[]
no_license
<?php const SQL_NUM = MYSQLI_NUM; const SQL_ASSOC = MYSQLI_ASSOC; const SQL_BOTH = MYSQLI_BOTH; class SQL { static $_mysqli; static $_info; public static $affected_rows; public static $insert_id; public static $error; public static $server_info; public static $QueryCount = 0; public static $Character; p...
true
190a2e5b39e90d51e269883cd094dc72b3db757d
PHP
ampproject/amp-toolbox-php
/src/Optimizer/Transformer/TransformedIdentifier.php
UTF-8
3,144
2.5625
3
[ "Apache-2.0" ]
permissive
<?php namespace AmpProject\Optimizer\Transformer; use AmpProject\Dom\Document; use AmpProject\Optimizer\Configuration\TransformedIdentifierConfiguration; use AmpProject\Optimizer\ErrorCollection; use AmpProject\Optimizer\Transformer; use AmpProject\Optimizer\TransformerConfiguration; use AmpProject\Validator\Spec\Css...
true
620784e5191eaf3bdeb8b98ea307f88fea65bf7f
PHP
graphen/ex-framework
/ExFramework/ExFramework/library/Mail/Mailer.class.php
UTF-8
48,237
2.609375
3
[]
no_license
<?php /** * @class Mailer * * @author Przemysław Szamraj [BORG] * @version 1 * @copyright Przemysław Szamraj * */ class Mailer implements IMailer { /** * Tablica z adresami adresatow * * @var array * */ protected $_mailTo = array(); /** * Tablica z adresatow do ktorych beda wyslane kopie ...
true
3c68658e3c5b07fab64ee8cc8eda23671caf2e24
PHP
StijnvdMade/Lets-scrum-d68761f1
/webhooks/index.php
UTF-8
4,500
2.53125
3
[]
no_license
<?php $bot_token = 'xoxb-870241712243-887497096337-SwnfT7ZRCblhfVysnwa1CnYU'; $message = 'HEYICANRESPOND!!!:)))'; $json = file_get_contents('php://input'); $json_object = json_decode($json); $channel = $json_object->event->channel; $api; if(!isMessageFromUser()) { return; } include 'api.php'; $api = new Api...
true
0cbd8790dc92ec0669c3658dd417676bffd542f7
PHP
patrykcode/oc_paczkomaty
/upload/admin/model/extension/shipping/paczkomaty.php
UTF-8
1,813
2.671875
3
[]
no_license
<?php class ModelExtensionShippingPaczkomaty extends Model { public function install() { $this->db->query('CREATE TABLE `pp_paczkomaty` ( `id` INT NOT NULL AUTO_INCREMENT , `province` VARCHAR(255) NOT NULL , `city` VARCHAR(255) NOT NULL , `machine`...
true
4d620c95f2f5ff10afd747c31b5a82e15a72366d
PHP
paolord/typo3_tdd_demo
/vendor/typo3fluid/fluid/examples/example_layoutless.php
UTF-8
759
2.5625
3
[ "GPL-2.0-only", "GPL-3.0-only", "GPL-1.0-or-later", "LGPL-2.1-or-later", "LGPL-3.0-only", "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php /* * EXAMPLE: Layout-less template file * * This example shows how to render template files * that have no layout. */ require __DIR__ . '/include/view_init.php'; // Assigning the template path and filename to be rendered. Doing this overrides // resolving normally done by the TemplatePaths and directly re...
true
1dbd684cff3c43022122b5a4bcec17ff9cff5b58
PHP
MCMatters/gitlab-api
/src/Resources/Traits/IssueBoardTrait.php
UTF-8
7,843
2.71875
3
[]
no_license
<?php declare(strict_types=1); namespace McMatters\GitlabApi\Resources\Traits; /** * Trait IssueBoardTrait * * @package McMatters\GitlabApi\Resources\Traits */ trait IssueBoardTrait { use HasAllTrait; /** * @param int|string $id * @param array $query * * @return array * * @...
true
4cec7738bed9abf56b83d416fe93e1da6b6b8f21
PHP
pimplesushant/Creator_Class_ERP
/application/New folder/models/designation_model.php
UTF-8
1,594
2.5625
3
[ "MIT" ]
permissive
<?php class Designation_Model extends CI_Model { private $tbl_person= 'designation'; public function __construct() { //$this->load->database(); } function list_all(){ $this->db->order_by('designation_id','asc'); return $this->db->get($tbl_person); } function count_all(){ return $this->db->count_a...
true
840e4d5ffa2e11696b1756d5180f16460b9986db
PHP
DikranHachikyan/php-programming-nuboyana-20160316
/scripts/page12.php
UTF-8
321
2.53125
3
[]
no_license
<?php require_once '../includes/site-heading-inc.php'; ?> <?php $tm = mktime(0/*час*/,0/*мин*/,0/*сек*/,3/*мес*/,0/*ден*/,2016/*год*/); echo $tm; ?> <hr> <pre> <?php print_r(getdate($tm)); ?> </pre> <?php include '../includes/site-footer-inc.php';
true
63c16e3722cf1b5eed8e3104c32717d50633cbc9
PHP
unusorin/pushbullet
/src/unusorin/PushBullet/DataProvider.php
UTF-8
1,453
2.953125
3
[]
no_license
<?php namespace unusorin\PushBullet; use Guzzle\Http\Client; /** * Class DataProvider * * @package unusorin\PushBullet * @since 0.1 */ class DataProvider { private $apiKey = ''; /** * @var Client */ private $client; /** * Constructor * * @param string $apiKey */...
true
2d48fdfbb79154b04d8fe908fc3fd75c93e91952
PHP
pranavtormal/inventory
/manufacture_op.php
UTF-8
703
2.6875
3
[]
no_license
<?php include_once("dbconn.php"); class Mannufature extends Db { private $arr = array(); public function addManufatureDetails($manName) { $out_data = array(); $check_sql = "select man_name from manufacture_details where man_name='$manName'"; $out = $this->checkMan($check_sql); if($out == 0) { $in_sql...
true
4c7418d5afe302e4cee99a65e0ec7dc209841776
PHP
red-digital-americas/Miele
/app/Http/Controllers/api/v1/Api.php
UTF-8
2,093
2.703125
3
[ "MIT" ]
permissive
<?php /** * Description of Apiv1 * * @author danielunag */ namespace App\Http\Controllers\api\v1; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use \App\Http\Controllers\Auth\AuthController; use Illuminate\Http\Response as IlluminateResponse; use Illuminate\Http\Exception\HttpResponseExceptio...
true
24122f82f13271e0cb515cecb376f28de12269aa
PHP
zhuangzhian/LH
/vendor/alibaba/newAliyunMNS/MNS-Sdk.php
UTF-8
2,867
2.59375
3
[]
no_license
<?php include 'aliyun-php-sdk-core/Config.php'; include_once 'Dysmsapi/Request/V20170525/SendSmsRequest.php'; include_once 'Dysmsapi/Request/V20170525/QuerySendDetailsRequest.php'; class NewAliyunDbMns { private $signName; //签名 private $appKey; //Key private $appSecret; //Secret private $region; ...
true
b6b19bbe572196a7b5ff99c7e72eea5e21bdfb7a
PHP
ivancas84/php-core
/function/array_unique_key.php
UTF-8
262
2.828125
3
[]
no_license
<?php function array_unique_key(array $values, $key){ /** * $values: array asociativo * $key: Llave del array asociativo que sera utilizada para combinar, debe ser unica */ return array_values(array_unique(array_column($values, $key))); }
true
cfd17bcecb813a81c5aa4b3f2164ab682540d2a8
PHP
koquipizzi/labnet
/models/User.php
UTF-8
2,750
2.6875
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use Yii; use yii\helpers\Url; /** * This is the model class for table "user". * * @property integer $id * @property string $username * @property string $auth_key * @property string $password_reset_token * @property string $email * @property integer $status * @property integer $cr...
true
6996a5bc70e30c8b79a3b1ffd19ac6f416d00c86
PHP
fanhanron/ajax
/application/home/validate/UserAdd.php
UTF-8
668
2.625
3
[ "Apache-2.0" ]
permissive
<?php namespace app\home\validate; use think\Validate; class UserAdd extends Validate { /** * 定义验证规则 * 格式:'字段名' => ['规则1','规则2'...] * * @var array */ protected $rule = [ 'name' => 'require|max:5|min:2', 'sex' => 'require|number|max:1', 'age' => 'require|number|max:3' ]; ...
true
063e8e0e72d244336b47ae393c46620fe75bc853
PHP
StevenElberger/HealthMateWeb
/account_settings.php
UTF-8
12,388
2.90625
3
[ "Apache-2.0" ]
permissive
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Account Settings</title> <!-- Bootstrap core CSS --> <link href="newcss/bootstrap.css" type="text/css" rel="stylesheet"> <!-- ...
true
1afa7d764a3e251f8ced5f0f1eb274e4ccb64b4e
PHP
xiguahome/bastpay
/Coupons.php
UTF-8
1,162
3.125
3
[]
no_license
<?php /* 卡券类,未继续 */ class Coupons { private $pass = ''; private $iv = ''; private $signKey = ''; /** * aes加密 * @param $text * @return string */ public function aesEncrypt($text): string { $ret = base64_encode(openssl_encrypt($text, 'AES-128-CBC', $this->pass, OPENSSL...
true
6b39c8b12a22779ccd4294ab4b8a87312a5e0276
PHP
marioagf/php501
/aula06/excecoes.php
UTF-8
773
3.65625
4
[]
no_license
<?php class MinhaExcecao extends Exception { public function __construct($mensagem, $code = 0, Exception $previous = null) { parent::__construct($mensagem, $code, $previous); } public function __toString() { return __CLASS__ . ": [{$this->code}]: {$this->message}"; } publi...
true
3eb327040d831c7edf2a7a74f9fa49ab3292e084
PHP
AnaOlmo/Blog-Laravel
/app/Http/Controllers/UserBoissonsController.php
UTF-8
1,752
2.703125
3
[]
no_license
<?php namespace App\Http\Controllers;//storage place// use Illuminate\Support\Facades\DB;// use App\Http\Controllers\Controller; use App\Boisson; use Illuminate\Http\Request; // class = nom de la page// Class UserBoissonsController extends Controller{ public function userListeBoissons() { //$maBoisson = DB::s...
true
546883d1505dcee32ea9c734e811221813370963
PHP
dejesusJulia/IT_3-2_GROUP9_WEBDEV
/app/models/Like.php
UTF-8
688
2.765625
3
[]
no_license
<?php class Like extends Model{ // NAME OF PROPERTIES public $colName; protected $columns = [ 'post_id', 'user_id' ]; protected $table = 'likes'; # SELECT LIKE OF A SPECIFIC POST // public function joinPostLikes(){ // $this->db->query("SELECT // p.post_id, ...
true
5893eb076db568553182341d82916495c1674d60
PHP
appzio/action-bootstrap2
/Controllers/BootstrapPreprocessor.php
UTF-8
2,700
2.9375
3
[ "Apache-2.0" ]
permissive
<?php class BootstrapPreprocessor { public $styles; public $gid; public $playid; public $mobileobj; public $playobj; /** * BootstrapPreprocessor constructor. */ public function __construct(){ } public function loadStyles(){ } /** * @param $data * @r...
true
583f59bbd3ad945412d835f6c80aed7de022c403
PHP
chrismatt55/project2
/public/invoice/create.php
UTF-8
1,879
2.765625
3
[]
no_license
<?php require_once("../../private/initialize.php"); require_login(); $page_title = "Invoices"; $current = "invoice"; include(SHARED_PATH . '/public_header.php'); // if form has been submitted get variables and calculate numbers then // set them to the array. if(is_post_request()) { // get post variables $rec...
true
fc0838d183e38e7e3ca9843ff2876ccd6f1f713b
PHP
Beneasy21/PhpMySQLResultPortal
/private/classes/nextTerm.class.php
UTF-8
1,133
3.109375
3
[]
no_license
<?php class Nextterm extends DatabaseObject{ static protected $tableName = "nextterm"; static protected $dbColumns = ['id','acadYr','vTerm','explanation']; public $id; public $acadYr; public $vTerm; public $explanation; public function __construct($args=[]){ $this->acadYr = $args['acadYr'] ?? ''; $th...
true
e72ec09bf03396eb6a2e2c399151390d78c4b309
PHP
Project-Aap/TheBattle
/OldMaps/thebattle-v2-milanmorris/admin-panel/admin-article/includes/create.inc.php
UTF-8
1,704
2.65625
3
[]
no_license
<?php require "../includes/classAutoloader.inc.php"; session_start(); if (isset($_POST["upload"])) { $title = $_POST["title"]; $description = $_POST["description"]; $fileName = $_FILES["file"]["name"]; $fileTmpName = $_FILES["file"]["tmp_name"]; $fileSize = $_FILES[...
true
87f79e13ed2a0fc3f6625297ff6a9f14baf6bf14
PHP
fubendong/bangzhufu
/src/console/Console/Modal/TableMigrate.php
UTF-8
6,840
2.71875
3
[]
no_license
<?php /** * @author QiangYu * * 数据迁移时候用于 复制表的数据 * * */ namespace Console\Modal; use Core\Helper\Utility\QueryBuilder; use Core\Modal\SqlMapper as DataMapper; class TableMigrate { private static $loggerSource = 'TableMigrate'; public $batchProcessCount = 1000; // 每次批处理得数量,防止数量过大搞死系统 /** * 清空...
true
1e3c6cea8e479249c86543219960d6c79d8f6140
PHP
NITHESHMS97/Education-Portal
/application/models/Student_marks_model.php
UTF-8
1,474
2.859375
3
[]
no_license
<?php class Student_marks_model extends CI_Model { /** * Index Page for this controller. * * Maps to the following URL * http://example.com/index.php/welcome * - or - * http://example.com/index.php/welcome/index * - or - * Since this controller is set as the default controller in *...
true
b5595c7fe112badb19e50a878352790a976fff29
PHP
johanquiroga/terra-quimbaya
/app/Models/NivelEstudios.php
UTF-8
868
2.53125
3
[]
no_license
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class NivelEstudios extends Model { /** * The database table used by the model. * * @var string */ protected $table = 'nivelEstudios'; /** * The attributes that are mass assignable. * * @var array ...
true
338bc2df16ff2be04e4dfb86836711ab00ed6191
PHP
melimisa/lp4-php-and-mysql
/phpdb/exemplo2.php
UTF-8
688
2.578125
3
[]
no_license
<?php //conexao com banco de dados $pdo = new PDO('mysql:host=localhost;dbname=phpdb', 'root', ''); /* parametros = :placa :marca_modelo :preco prepara a interface do comando para fazer inserção somente com parâmetros análise sintática e compilação (demorado) */ $stmt = $pdo->prepare('insert into automovel ...
true
e6dfbb6c219d01c9b5e970c9b14b061f9ae91984
PHP
Lukasz93P/classes-visibility
/src/Visibility/Visibilities/PublicVisibility.php
UTF-8
305
2.515625
3
[]
no_license
<?php declare(strict_types=1); namespace Lukasz93P\ClassVisibility\Visibility\Visibilities; use Lukasz93P\ClassVisibility\Visibility\ClassData\ClassName; class PublicVisibility extends AbstractVisibility { public function canBeUsedBy(ClassName $className): bool { return true; } }
true
3153858b93feb324f9d26adad9f20a98aa961747
PHP
martinsv/Caronte.js
/demos/php/index.php
UTF-8
776
2.59375
3
[ "MIT" ]
permissive
<?php $data = array(); if(isset($_FILES['files'])) { $error = false; $files = array(); $uploaddir = '../uploads/'; for($i=0; $i<count($_FILES['files']['name']); $i++) { $fileName = $_FILES['files']['name'][$i]; $fileTmpName = $_FILES['files']['tmp_name'][$i]; if(move_upl...
true
5088d756d49fdab6e460edbbd7df4db0f1dbc533
PHP
shoaibansari/mosque-donation-app
/public_html/app/Models/Repositories/Eloquent/RoleRepository.php
UTF-8
2,184
2.828125
3
[ "MIT" ]
permissive
<?php /** * Created by Muhammad Adnan * Created Time: 12/18/2017 12:47 PM */ namespace App\Models\Repositories\Eloquent; use App\Models\Permission; use App\Models\Repositories\RoleRepositoryInterface; use App\Models\Role; class RoleRepository extends AbstractRepository implements RoleRepositoryInterface { /** ...
true
7ac1a6168eceb5225ea9e6b9d6a904bca3b33d23
PHP
thilina-wishvekeerthi/SlimExample
/app/services/ValidationService.php
UTF-8
504
2.78125
3
[]
no_license
<?php require_once('../models/User.php'); class ValidationService{ private $user; // construct login service with request params function __construct() { $this ->user = User::createInstance(); } public function checkPasswordMatches($password, $repassword) { return st...
true
a7a5550582f15fd7cc916ad5fff70a9b3272d17d
PHP
kuzua001/okna
/frontend/components/AppHelper.php
UTF-8
3,031
2.734375
3
[ "BSD-3-Clause" ]
permissive
<?php /** * Created by PhpStorm. * User: ivan * Date: 6/8/17 * Time: 6:03 PM */ namespace frontend\components; use frontend\models\Texts; use yii; use yii\helpers\Html; class AppHelper { /** * Доступные языки */ const LANG_RU = 'ru-RU'; const LANG_EN = 'en-US'; private static $textsD...
true
e0a46baa462ee84fc2d87e502f869e0760380999
PHP
upovod/fl-ru-damp
/classes/Form/Element/BudgetExt.php
UTF-8
755
2.515625
3
[]
no_license
<?php require_once('FormElement.php'); class Form_Element_BudgetExt extends Form_Element { public function init() { global $js_file; $js_file['BudgetExt'] = 'form/BudgetExt.js'; $this->addValidator('Digits', true) ->addValidator('Between', true, array('max' => 999...
true
58d1e4ee2c8bd11dfc9781adfc50d04d8b9212f5
PHP
sjlu/divvycam
/web/api/copy_photo.php
UTF-8
1,626
2.578125
3
[ "Apache-2.0" ]
permissive
<?php include_once '../include/config.php'; function copy_photo($filename, $new_filename) { $s3 = new AmazonS3(); $response_photo = $s3->copy_object( array( 'bucket' => 'divvycam', 'filename' => $filename . '.jpg' ), array( 'bucket' => 'divvycam', 'filename' => $new_filename . '.jpg' ), arra...
true
ceaaeb7946690f1a9997fc0f92afd5d8d23caa0d
PHP
tinoweb/contadoramigo
/des.class.php
UTF-8
15,020
2.640625
3
[]
no_license
<?php class DES{ private $id_user; private $id_empresa; private $id; private $uf; private $municipio; private $prestados; private $tomados; private $outro_m; private $tipo; private $nome; private $abreviacao; private $link; private $tutorial; private $vencimento; private $criterio; ...
true
6a154802e8d38ae4792f209d66e1cb8d3cc23c4a
PHP
WebChemistry/redis-cache
/src/Connection/RedisConnection.php
UTF-8
923
2.984375
3
[]
no_license
<?php declare(strict_types = 1); namespace WebChemistry\RedisCache\Connection; use Redis; use RedisException; use WebChemistry\RedisCache\RedisCache; final class RedisConnection { /** @var RedisCache[] */ private array $connections = []; public function __construct( private string $host, private int $port, ...
true
f8feb0463171b2d17d1a13d8dfa8c0456010656c
PHP
studiowbe/slug
/tests/Conversion/RemoveAccentsTest.php
UTF-8
1,443
2.59375
3
[]
no_license
<?php namespace Studiow\Slug\Test\Conversion; use PHPUnit\Framework\TestCase; use Studiow\Slug\Conversion\RemoveAccentsConversion; class RemoveAccentsTest extends TestCase { public function testItRemovesGrave() { $conversion = new RemoveAccentsConversion(); $this->assertEquals('aeiou', $con...
true
e14348aa1b5038d8fdfb057080579b1fdce62101
PHP
developertres/kivi-angular8-example-app
/backend/admin/functions/status.inc
WINDOWS-1251
11,742
2.8125
3
[ "MIT" ]
permissive
<?php function status2 ($status, $last_kont) { // "" //echo $zay_view[16]."<br>";//! $data_m=explode('-', $last_kont); $d1=$data_m[2]; $m1=$data_m[1]; $y1=$data_m[0]; if ($d1>0 && $m1>0 && $y1>0) { $timestamp1=mktime(0, 0, 0, $m1, $d...
true
c6cbe7fb53459aff7aed4e663f59169647905c63
PHP
justangel/RobotSharpWeb
/src/System/Session.php
UTF-8
1,211
3.28125
3
[]
no_license
<?php namespace FFormula\RobotSharpWeb\System; /** * Class Session - Класс обёртка для работы с переменными сессии * @package FFormula\RobotSharpWeb\System */ class Session { /** * Session constructor. Запуск сессии */ public function __construct() { session_start(); } /** ...
true
8b1f5556a1a8cf7a3d3695d09320614b7be627d0
PHP
Igor-Nosatov/teagrocery
/app/Repositories/Blog/BlogRepository.php
UTF-8
351
2.625
3
[ "MIT" ]
permissive
<?php namespace App\Repositories\Blog; use App\Entity\Post; use App\Repositories\Blog\BlogRepositoryInterface; class BlogRepository implements BlogRepositoryInterface { public function showPost() { return Post::query(); } public function showPostByTitle($title) { return Post::wh...
true
4f1bd3dfbf8c2163651ca971dbbb2145aae3d8fb
PHP
hdphuocle/dcenvs
/thinkphp/tools/run.php
UTF-8
2,912
2.578125
3
[]
no_license
<?php $framework_json = file_get_contents('framework.json'); $think_json = file_get_contents('think.json'); $framework_list = json_decode($framework_json, 1); $think_list = json_decode($think_json, 1); $download = ''; $thinks = array(); $frameworks = array(); foreach($framework_list as $item){ $zipball_url = $item[...
true
7bf89c22746f88793bf2f73d40922770bf021ac2
PHP
ahmedabdelaziz11/Learning-Management-System
/app/Http/Livewire/BrowseCourses.php
UTF-8
826
2.578125
3
[]
no_license
<?php namespace App\Http\Livewire; use App\Models\Course; use Illuminate\Pagination\Paginator; use Livewire\Component; use Livewire\WithPagination; class BrowseCourses extends Component { use WithPagination; public $search = ''; public $currentPage = 1; public function render() { retu...
true
9931b06170ccd75ab9727272d55324e606ac5658
PHP
hundrex/SERS
/SERS/controller/ajax/report_b.php
UTF-8
2,344
2.75
3
[]
no_license
<?php require_once $_SERVER['DOCUMENT_ROOT'] . '/SERS/SERS/model/class/Serie.php'; require_once $_SERVER['DOCUMENT_ROOT'] . '/SERS/SERS/model/DAL/ModuleDAL.php'; require_once $_SERVER['DOCUMENT_ROOT'] . '/SERS/SERS/model/DAL/UserDAL.php'; $moduleId = filter_input(INPUT_GET, 'module_id', FILTER_SANITIZE_NUMBER_INT...
true
120c46e0e68886e9040417256b1f5f94a8d2f5cf
PHP
run100/phptest
/class/string.php
UTF-8
926
3.421875
3
[]
no_license
<?php class Strcls { var $str; public function __construct($str) { $this->str = $str; } public function __call($name, $arg) { $this->str = call_user_func($name, $this->str); return $this; } } /*$str = new Strcls('adsfa dsf'); $str->trim()->strlen(); echo $str->str;*/ class Test3 { pub...
true
f62c18921a442db5dc0ff4deaedbe438c757a0f5
PHP
ZanichelliEditore/health-check
/src/Http/Models/DatabaseChecker.php
UTF-8
892
2.578125
3
[ "MIT" ]
permissive
<?php namespace Zanichelli\HealthCheck\Http\Models; use Exception; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Log; use Zanichelli\HealthCheck\Http\Constants\Service; use Zanichelli\HealthCheck\Http\Models\Status; class DatabaseChecker implements CheckerInterface { private $connectionName; ...
true
15c82b63faa438f11dca2891f0f92f537fb94b89
PHP
winapiforphp/gui
/tests/Control/Frame/__construct.phpt
UTF-8
2,356
3
3
[]
no_license
--TEST-- Win\Gui\Control\Frame->__construct() method --SKIPIF-- <?php if(!extension_loaded('wingui')) die('skip - wingui extension not available'); ?> --FILE-- <?php use Win\Gui\Window; use Win\Gui\Control\Frame; $window = new Window; $frame = new Frame($window); $frame = new Frame($window, true); var_...
true