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
c749523b5f653e59890dcc51ffba5c324c27dae4
PHP
codions-forks/bbb-mp4
/src/FFMpeg.php
UTF-8
2,794
2.6875
3
[]
no_license
<?php namespace ProfIT\Bbb; use Runn\Core\Collection; use Runn\Core\Std; /** * Class FFMpeg * @package ProfIT\Bbb */ class FFMpeg { /** @var Collection $sources */ public $sources; /** @var Collection $filters */ public $filters; public function __construct() { $this->sources = ne...
true
de4c13f01e7a6eac02ec7ec9cda59f947da4dcef
PHP
Liyak/medicalshop
/admin/New folder/log.php
UTF-8
2,134
2.828125
3
[ "MIT" ]
permissive
<?php // If form submitted, insert values into the database. if (isset($_POST['Login'])){ // removes backslashes $username = stripslashes($_POST['uname']); //escapes special characters in a string $username = mysqli_real_escape_string($conn,$username); $password = stripslashes($_POST['psw']); ...
true
a7814d3fb4dab55be88642021cf8fc1ea30b5c20
PHP
locsama3/healthypower
/app/core/ProcessImage.php
UTF-8
2,296
2.84375
3
[]
no_license
<?php class ProcessImage { static function checkImage($file = [], $uploadPath) { if(!empty($file['name']) && !empty($file['tmp_name']) && !empty($file['size'])){ //Kiem tra hình ảnh và lấy hình ảnh cho vào folder upload $permited = array('jpg', 'jpeg', 'png', 'gif'); ...
true
f80ff1d75abf0ecdce75d07b738e4ae9c275910c
PHP
janmarek/Neuron
/Model/User/Service.php
UTF-8
582
2.640625
3
[ "MIT" ]
permissive
<?php namespace Neuron\Model\User; /** * User service * * @author Jan Marek */ class Service extends \Neuron\Model\Service { public function __construct($em) { parent::__construct($em, __NAMESPACE__ . "\User"); } public function findOneByUsername($username) { return $this->getFinder()->whereUsername($...
true
79b33092f2b377be240cbf8071637de3317a7ed7
PHP
cordoval/phpspec2
/src/PHPSpec2/Runner.php
UTF-8
505
2.59375
3
[]
no_license
<?php namespace PHPSpec2; use Symfony\Component\EventDispatcher\EventDispatcherInterface; class Runner { private $eventDispatcher; public function __construct(EventDispatcherInterface $dispatcher = null) { $this->eventDispatcher = $dispatcher; } public function setEventDispatcher(EventD...
true
3be3e68353b16dc7bba04b35858f2d964e765a97
PHP
iwantmadaxe/hongjiuback
/database/factories/ModelFactory.php
UTF-8
2,002
2.515625
3
[ "MIT" ]
permissive
<?php /* |-------------------------------------------------------------------------- | Model Factories |-------------------------------------------------------------------------- | | Here you may define all of your model factories. Model factories give | you a convenient way to create models for testing and seeding yo...
true
3d63ef2eb052df2ff23c6956482dce58e9c0ab07
PHP
BillGates98/personnal-management-api
/app/Http/Controllers/DivisionController.php
UTF-8
4,213
2.640625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Division; use App\APIError; use Illuminate\Support\Str; class DivisionController extends Controller { public function create (Request $request){ $this->validate($request->all(), [ 'name' => 'required|unique:divisions...
true
94bbfb7ee4131448859fd57e10b44ca4c5b70093
PHP
BTaxiB/eCommerce---Laravel
/app/Http/Controllers/ProductController.php
UTF-8
5,556
2.578125
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Models\Product; use App\Models\StoreCircuit; use App\Models\Url; use App\Models\Store; use Illuminate\Http\Request; class ProductController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ ...
true
0956343e27ee920f5d4174d2b67c31dc2efef03d
PHP
Dheia/OctoberCMS-oc-v0
/plugins/laminsanneh/fantasticfaq/models/FaqGroup.php
UTF-8
1,028
2.515625
3
[ "MIT" ]
permissive
<?php namespace LaminSanneh\FantasticFaq\Models; use Model; /** * FaqGroup Model */ class FaqGroup extends Model { /** * @var string The database table used by the model. */ public $table = 'laminsanneh_fantasticfaq_faq_groups'; /** * @var array Guarded fields */ protected $gua...
true
2990cbb84db55d875fe8670d4ff7a866f591c414
PHP
jul-pro/My-First-WordPress-Plugin
/includes/models/admin/menu/MFWGuestBookSubMenuModel.php
UTF-8
2,102
2.59375
3
[]
no_license
<?php namespace includes\models\admin\menu; class MFWGuestBookSubMenuModel { const MFW_TABLE_NAME = 'mfw_guest_book'; static public function getTableName() { global $wpdb; return $wpdb->prefix.static::MFW_TABLE_NAME; } static public function createTable() { global $wp...
true
74042ca6c49444e04d21516c279f7f04dc7536d8
PHP
dmwsdq/kuis-barisan
/xxxx/kblog.php
UTF-8
1,216
2.59375
3
[]
no_license
<?php header('Access-Control-Allow-Origin: *'); // just to be on the safe side this have to be replaced to like header('Access-Control-Allow-Origin: www.domain.com'); // edit below $host = ""; $user = ""; $pass = ""; $db = ""; // ^ edit these part $n = $s = $sql = $ip = ""; if ($_SERVER["REQUEST_METHOD"] == "POST")...
true
0ea844e890e715286fa939ccd829999c28b3b11a
PHP
Yardan/test
/tests/unit/UserTest.php
UTF-8
2,101
2.703125
3
[]
no_license
<?php namespace tests\unit; use app\models\User; use Codeception\Specify; class UserTest extends \Codeception\TestCase\Test { use Specify; /** * @var \UnitTester */ protected $tester; private $user; protected function _before() { $this->user = new User(); } protect...
true
fa2e5b2bf0842e937ec93d253d234d1d46336a35
PHP
mermetbt/Biome
/src/Biome/Core/View/NodeLoader.php
UTF-8
1,720
2.703125
3
[ "MIT" ]
permissive
<?php namespace Biome\Core\View; use Sabre\Xml\Element; use Sabre\Xml\Reader; use Sabre\Xml\Writer; use Biome\Core\Logger\Logger; class NodeLoader implements Element { /** * * Component loading and tree construction. * */ public static function xmlDeserialize(Reader $reader) { $class_name = get_called...
true
2d52bf4e4adef59284e1e43afce00dfe3bc84e47
PHP
makehappen/autominifier
/src/Environment.php
UTF-8
3,214
3.1875
3
[ "MIT" ]
permissive
<?php namespace makehappen\autominifier; /** * Class Environment * @package Makehappen\AutoMinifier */ class Environment { /** * Environment file */ const ENV_FILE = 'env.json'; /** * Configuration file */ const CONFIG_FILE = 'config.json'; /** * Signature file for ca...
true
07c79638329304db4c0689b017c127d036ca662c
PHP
sharonmalio/UberMatatu_WebApp
/models/Routes.php
UTF-8
1,278
2.828125
3
[]
no_license
<?php class Routes { function __construct(){ } function getRoute($route_id){ $route = query("SELECT * FROM `tbl_routes` WHERE `route_id` = ?", $route_id)[0]; return $route; } function getRoutesWithStage($stop_id){ //TODO: set max bus_stops $routes_stops_ids = query("SELECT `route_id` FROM `tb...
true
95605a97f5b507c068d4b36c8a98a7520865074a
PHP
leonardothibes/Tbs
/src/Tbs/ZfComponents/V1/Cache/CacheAbstraction.php
UTF-8
2,144
2.703125
3
[ "MIT" ]
permissive
<?php /** * @package Tbs\ZfComponents\V1\Cache * @author Leonardo Thibes <eu@leonardothibes.com> * @copyright Copyright (c) The Authors */ namespace Tbs\ZfComponents\V1\Cache; use \Tbs\Cache\Interfaces\CacheableInterface; /** * Abstract class for all models implements some cache. * * @package Tbs\ZfComponents...
true
614d72b523418d8e6e12a817cee60fdeabf0a1cd
PHP
tduck/cs462
/application/controllers/lab5.php
UTF-8
10,768
2.59375
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Lab5 extends CI_Controller { /** * 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 co...
true
e88529b28eb39593b9dff2a832436a0c110ccc6e
PHP
Sminth/ji_event
/api/index.php
UTF-8
887
2.734375
3
[]
no_license
<?php require '../config/database.php'; $request_method = $_SERVER["REQUEST_METHOD"]; switch($request_method) { case 'GET': getEtudiants(); break; default: // Requête invalide header("HTTP/1.0 405 Method Not Allowed"); break; } function getEtudiants() { ...
true
5c17138f4cd2c54457fcf632a0a357020f36ec43
PHP
Mrlaozhou/manage
/app/Support/Unique.php
UTF-8
1,250
2.65625
3
[]
no_license
<?php namespace App\Support; use Illuminate\Support\Facades\Hash; use Illuminate\Support\Traits\Macroable; class Unique { use Macroable; public static function basis() { return uniqid(mt_rand(),true); } public static function UUID($upper=true) { return $upper ? strtoupper( md...
true
d90dfe6af54910b5175c2a280640ce12150c20dc
PHP
TrigenSoftware/gulp-progressive-css
/example/dist/loader.php
UTF-8
768
2.71875
3
[ "MIT" ]
permissive
<?php if (!isset($_GET['file'])) { exit(); } header("Content-type: text/css"); $lastModified_unix = filemtime($_GET['file']); $lastModified = gmdate("D, d M Y H:i:s \G\M\T", $lastModified_unix); $ifModifiedSince = false; if (isset($_ENV['HTTP_IF_MODIFIED_SINCE'])) { $ifModifiedSince = strtotime(substr($_ENV['H...
true
a34257e4977b3e324f1c18f232ed7b1621341d4f
PHP
Clawson-Patrick/Object-Oriented-Programming
/OOP_Php_Teacher/Object Iteration/index.php
UTF-8
696
4.21875
4
[]
no_license
<?php class People{ public $person1 = 'Mike'; public $person2 = 'Shelly'; public $person3 = 'Jeff'; public $person4 = 'john'; private $person5 = 'Jen'; /* function iterateObject(){ //this => is a key/value pair operator so it is separating the key from the value in php foreach($this as $key => ...
true
e99ad16f96eabf4eac088a24db44c652997eb47a
PHP
Ibrahim779/my-framework
/app/models/AbstractModel.php
UTF-8
2,662
2.90625
3
[]
no_license
<?php namespace PHPMVC\Models; use PHPMVC\database\AbstractDB; class AbstractModel extends AbstractDB implements ModelInterface { private static $instance; /** * AbstractModel constructor. */ public static function tableName() { $table = explode('\\' ,get_called_class()); $...
true
48e90a05e0a1be1e49ddee2c593e40a2e584a943
PHP
MaudyMeilisa/Codingan-Maudy
/karyawan.php
UTF-8
534
2.96875
3
[]
no_license
<?php if ($_POST['jam']<=48) { $nama=$_POST['nama']; $jam=$_POST['jam']; $gaji=$jam*2000; echo "Nama Karyawan : ".$nama."<br>"; echo "Gaji Karyawan : ".$gaji."<br>"; echo "Upah Lembur : <br>"; echo "Total Gaji : ".$gaji."<br>"; } else if ($_POST['jam']>48) { $nama=$_POST['nama']; $jam=$_POST['jam']; $jamsisa=$jam-48; ...
true
2575443bfed7137181580db9afde27cb1bf61522
PHP
andrederoos/kraken-client
/src/KrakenClient.php
UTF-8
2,403
2.796875
3
[ "MIT" ]
permissive
<?php namespace KrakenClient; use GuzzleHttp\Client; use GuzzleHttp\Psr7\Request; use GuzzleHttp\Psr7\Response; class KrakenClient { /** * Client url and headers. */ private const URL_API = 'https://api.kraken.com'; private const HEADER_API_KEY = 'API-Key'; private const HEADER_API_SIGN = 'A...
true
6db085717e37f70ddb9d1312609a8af8cbf0aa85
PHP
minthy123/dockerPHP
/src/restclient/ContainerClient.php
UTF-8
3,669
2.65625
3
[]
no_license
<?php require_once(__DIR__.'/../model/Container.php'); require_once('DockerClient.php'); class ContainerClient { const STOP_CONTAINER_COMMAND = '/containers/%s/stop'; const START_CONTAINER_COMMAND = '/containers/%s/start'; const RESTART_CONTAINER_COMMAND = '/containers/%s/restart?t=...
true
75f00576ad41db71c99bc56c1c6e13b9540cc1cb
PHP
doespresso/leroy
/app/models/Page.php
UTF-8
382
2.578125
3
[ "MIT" ]
permissive
<?php class Page extends \Eloquent { // Add your validation rules here public static $rules = [ // 'title' => 'required' ]; // Don't forget to fill this array protected $fillable = []; public function gallery(){ return $this->belongsTo('Gallery'); } // public function photos(){ // ...
true
2b2af4df771a90359817a8259aea5c7f4528169e
PHP
WyriHaximus/dead
/src/tree/FileTreeFactory.php
UTF-8
1,229
3.1875
3
[]
no_license
<?php class FileTreeFactory extends AbstractTreeFactory { private $files = array(); /** * * @param $path string * @param $extension string * @return void */ public function scan($path, $extension = 'php') { try { $directory_itera...
true
bd6085b44faa2efd98dc68e17d4e38890f8ada0e
PHP
natsuhikok/php-login-app
/src/php/db/connect.php
UTF-8
402
2.609375
3
[]
no_license
<?php function connect() { // get config require('db/secret.php'); // connect database $db = new mysqli( $config['host'], $config['user'], $config['pass'], $config['name'] ); // Add session message if Error if ($db -> connect_error) { $_SESSION['message'] = $...
true
067daafb765afcc1dd39d9d088e82c1c621b99d5
PHP
npmcdn-to-unpkg-bot/media-apis
/app/Http/Controllers/ProjectController.php
UTF-8
5,095
2.640625
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Http\Requests; use App\Project; use App\User; use App\Customer; class ProjectController extends Controller { /** * Create a new controller instance. * * @return void */ public function __construct() { ...
true
5bbeeb0d599c0d59174b02fd42ead5e686366799
PHP
zero2603/social
/boitoan/boitoan.php
UTF-8
4,135
2.8125
3
[ "MIT" ]
permissive
<?php //guide //tuong sinh tuong khac: https://www.hvdong.com/2016/12/nguyen-tac-tinh-tam-hop-ngu-hanh-xung-khac.html //example: https://phongthuyso.vn or http://vansu.net/xem-tuoi-vo-chong-kq.html require 'convertlunaryear.php'; Class BoiToan{ static function get_year($date){ $date = new DateTime($date); $date...
true
7ec09ebd9fd91dac0721298c6ae71a73d705e994
PHP
gygy1993/dc
/Application/Site/Model/ShopTableModel.class.php
UTF-8
493
2.65625
3
[]
no_license
<?php /** * 店铺桌号 * User: hgh * Date: 2015/10/9 * Time: 11:12 */ namespace Site\Model; use Common\Model\BaseModel; class ShopTableModel extends BaseModel { /** * @var string 店铺桌号表 */ protected $_table = 'shop_table'; /** * @param int $table_id * @param int $shop_id * @return bool */ public functi...
true
2a273c93dba8917ba75a4eae4ee80d03fe3e83f6
PHP
shadow6786/apf2
/cg/template_new.php
UTF-8
932
2.515625
3
[]
no_license
<?php if(isset($_POST["n"])) { $handle = fopen("templates/".$_POST["n"].".php", "w"); $x = $_POST["f"]."\n".$_POST["p"]."\n". $_POST["t"]; fwrite($handle, $x); fclose($handle); header("Location:index.php"); } ?><form id="form1" name="form1" method="post" action=""> <p>Nombre del Template<br /> ...
true
6d7c75d1c4a75e1664a55988117a9c88f00aca46
PHP
ruch798/Fantasy-Football
/Home.php
UTF-8
11,718
2.5625
3
[]
no_license
<?php session_start(); $server="localhost"; $username="root"; $password=""; $db="football"; $_SESSION['logged'] = false; $_SESSION['admin']=false; $conn = mysqli_connect($server,$username,$password,$db); if(!$conn){ die("Connection failed".mysqli_connect_error()); } ob_start(); if($_SESSION['logged'...
true
e632a11f6d370ea5d0de52b70cb71dcf418bd893
PHP
dmitrijivanenko/hotrod-cli
/src/Jobs/Xml/AddRoute.php
UTF-8
2,019
2.828125
3
[ "MIT" ]
permissive
<?php namespace HotRodCli\Jobs\Xml; use Symfony\Component\Filesystem\Filesystem; class AddRoute { protected $filesystem; public function __construct(Filesystem $filesystem) { $this->filesystem = $filesystem; } public function handle(string $xmlFile, array $addition) { if (!$...
true
3b9b1ff2088a7e84eb8ca59a7df264d8def2647d
PHP
tomkidumbuyo/AKEB-Database
/application/controllers/Admin.php
UTF-8
3,025
2.515625
3
[ "MIT" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Admin extends Admin_Controller { /** * 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 contr...
true
eabbc70fe61231e05cecab159ea3a4be22f3f9c6
PHP
steel-pot/sendmsg
/protected/model/LoginModel.php
UTF-8
2,660
2.515625
3
[]
no_license
<?php class LoginModel extends model{ var $table_name='admin_user'; function editPass($oldpass,$newpass) { $userinfo=session('userinfo'); $password=md5(md5($oldpass)); $row=$this->find(array('username'=>$userinfo['username'],'password'=>$password)); if(!$row) { return '旧密码错误'; } $this->update(arr...
true
30658e370593b8fa0e498e66e148323ad1f52b92
PHP
greicicp/cursophp7-dao
/class/Sql.php
UTF-8
991
3.609375
4
[]
no_license
<?php class Sql extends PDO { // tudo que o PDO (que é nativo do PHP) já faz, esta classe consegue fazer: bindParameter, execute, prepare, porque são métodos públicos private $conn; public function __construct() { $this->conn = new PDO("mysql:host=localhost;dbname=dbphp7", "root", ""); // quando ...
true
40fb13132350a73e76f6c6e7407085f9b2e9214d
PHP
blackh00/zhts_chaxun
/App/Home/Lib/Action/PostCodeAction.class.php
UTF-8
4,270
2.546875
3
[]
no_license
<?php /** * * 邮编搜索对应控制器 * @copyright (C)2013 ZHTS Inc. * @project CHAXUNLE.COM * @author Yumao <815227173@qq.com> * @CreateDate: 2013-5-22 下午5:31:46 * @version 1.0 */ class PostCodeAction extends Action{ /** * * 邮编搜索首页对应方法 * @author Yumao <815227173@qq.com> * @CreateDate: 2013-5-22 下午5:33:01 */ ...
true
38a5fe0ff50f2efdedb752315891e73380950d25
PHP
Jakkkub/Atk14Skelet
/app/forms/admin/users/users_form.php
UTF-8
721
2.734375
3
[]
no_license
<?php class UsersForm extends AdminForm{ function set_up(){ $this->add_field("firstname", new CharField(array( "label" => _("Firstname"), "max_length" => 255, ))); $this->add_field("lastname", new CharField(array( "label" => _("Lastname"), "max_length" => 255, ))); $this->add_field("email",new...
true
7fedafe791ed1f221f5000ecdeda1ae14bf169e7
PHP
bsmcgillis/ta-application
/app/Http/Controllers/Auth/AuthController.php
UTF-8
3,794
2.6875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Auth; use App\Http\Controllers\Controller; use Illuminate\Contracts\Auth\Guard; use Illuminate\Contracts\Auth\Registrar; use Illuminate\Foundation\Auth\AuthenticatesAndRegistersUsers; use Illuminate\Http\Request; use Response; use Auth; use App\Role; class AuthController extends ...
true
28dd7d944ddfd0d7215a0cb20a451fc9cbc9f714
PHP
agejku/se
/public/php/Users.php
UTF-8
1,739
2.921875
3
[]
no_license
<?php /** * Created by JetBrains PhpStorm. * User: emanuelbohm * Date: 06.01.14 * Time: 16:58 * To change this template use File | Settings | File Templates. */ class Users { private $db; public function __construct(){ $this->db=mysqli_connect('localhost','root', 'root', 'mydb', '8889'); } ...
true
171dae12c9b29cab48126784c8750182e6f177aa
PHP
enigmoes/CakeBlog
/src/Model/Entity/User.php
UTF-8
426
2.625
3
[ "MIT" ]
permissive
<?php namespace App\Model\Entity; use Cake\Auth\DefaultPasswordHasher; use Cake\ORM\Entity; class User extends Entity { //Campos accesibles del modelo protected $_accessible = ['*' => true]; protected function _setPassword($password) { if (strlen($password) > 0) { $password...
true
05a7e7eefa9a4b81c8acec734a407a3b8374b2a0
PHP
WPPlugins/apptivo-business-site
/inc/apptivo_services/documentDetails.php
UTF-8
1,508
3.1875
3
[]
no_license
<?php class documentDetails { /** * * @var string $caption * @access public */ public $caption; /** * * @var string $description * @access public */ public $description; /** * * @var string $documentKey * @access public */ public $documentKey; /** * * @va...
true
257a0f0e8d96754a7e826d648e3d5912332454b4
PHP
chan4phi/finalatweb
/Web/application/helpers/autoid_helper.php
UTF-8
629
2.5625
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); function getid($fields, $table, $inisial) { $CI =& get_instance(); $leng_inisial = strlen($inisial); $query = $CI->db->select('MAX('.$fields.') as max') ->from($table)->get(); $result = $query->row(); $number ...
true
2c9d3268e7e4016caa91586143ca3a55978e996d
PHP
mzulhilmi/payme_server_side
/manage-data.php
UTF-8
7,292
3.28125
3
[]
no_license
<?php header('Access-Control-Allow-Origin: *'); // Define database connection parameters $hn = 'localhost'; $un = 'izzad_izzad'; $pwd = 'izzad123'; $db = 'izzad_izzad'; $cs = 'utf8'; // Set up the PDO parameters $dsn = "mysql:host=" . $hn . ";port=3306;db...
true
920b26b9716c1f34701dc353ad514cc07fd0cd73
PHP
dukem1/edu
/src/DS/Queue/QueueInterface.php
UTF-8
183
2.859375
3
[]
no_license
<?php namespace DS\Queue; interface QueueInterface { public function isEmpty(); public function peek(); public function enqueue($data); public function dequeue(); }
true
3672cbb23857acda0ed0bfc3378fce62d934b012
PHP
anishansari/Simple-CRUD
/edit.php
UTF-8
1,874
2.9375
3
[]
no_license
<?php include_once("connect.php"); if(isset($_POST['update'])) { $id = mysqli_real_escape_string($con, $_POST['id']); $name = mysqli_real_escape_string($con, $_POST['name']); $type = mysqli_real_escape_string($con, $_POST['type']); $duration = mysqli_real_escape_string($con, $_POST['duration']); $price = my...
true
b5d30d70fd22340fb1f74a514759f244367317ae
PHP
prashantsri/test
/application/controllers/Collabarator.php
UTF-8
3,011
2.71875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /******************************************************************* * @discription API for Collabarator ********************************************************************/ header('Access-Control-Allow-Origin: *'); header("Access-Control-Allow-Headers: Authorization"); include "C:/xampp/htdocs/php_CodeIgnit...
true
cf60fc69e2b88d46490b1a60bb153a347346925c
PHP
bigwing/nest-starter-theme
/assets/utilities/quick-edit-links.php
UTF-8
1,098
2.5625
3
[]
no_license
<?php /* WordPress - Add Edit Link to Options-Reading Pages */ class nest_reader_edit { public function __construct() { add_action( 'admin_head-options-reading.php', array( $this, 'init' ) ); } public function init() { add_filter( 'wp_dropdown_pages', array( 'nest_reader_edit', 'add_edit_links' ) ); } public s...
true
94f722fb3382874892cf91ac5426ee25e4441709
PHP
NiKoT1Na/Valerie
/scripts/reviewscript.php
UTF-8
1,195
2.65625
3
[]
no_license
<?php error_reporting (E_ALL ^ E_NOTICE); session_start(); require "functions.php"; exit_if_user_not_loggedin(); include("conex.php"); $reviewtext = $_POST['reviewtext']; $USER = $_SESSION['USERID']; $PRODID = $_POST['PRODID']; $FECHA = date('Y-m-d H:i:s'); $RATING = intval($_POST['RATING']); if ($RATING === 0...
true
31f481fc43184aab7929de2ab753152bc1120c8a
PHP
alzerid/Arbitrage
/framework/form/elements/CBaseFormElement.class.php
UTF-8
3,014
2.921875
3
[]
no_license
<? namespace Framework\Form\Elements; class CBaseFormElement implements \Framework\Interfaces\IFormElement { protected $_attributes; protected $_value; protected $_id; public function __construct($id, $value, $attributes=array()) { $this->_attributes = $attributes; $this->_id = $id; //Set name att...
true
42a4b8b50307f642a709f6c4b53621e2ae670d5e
PHP
KingFrank/Yii2-
/framework/base/Module.php
UTF-8
10,592
2.765625
3
[]
no_license
<?php namespace yii\base; use Yii; use yii\di\ServiceLocator; /** * 所有应用的父类 * 被Application 继承 */ class Module extends ServiceLocator { const EVENT_BEFORE_ACTION = 'beforeAction'; const EVENT_AFTER_ACTION = 'afterAction'; /** * 自定义的模块元素 */ public $params = []; /** * 模块的唯一表示符 ...
true
da2f3f6ead95789f86f92935fd17fe00d9c41e78
PHP
plussoftjo/moon-world-server
/app/Http/Controllers/Api/AuthController.php
UTF-8
1,427
2.71875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Api; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use App\User; use Auth; use Validator; class AuthController extends Controller { /** This is for auth the user with the api */ public function register(Request $request) { $input = $request->a...
true
73213c37511e17d73cd2da1c7efa8561da727f42
PHP
toretto460/quanta
/engine/modules/core/shadow/shadow.qtags.inc
UTF-8
1,376
2.71875
3
[ "Apache-2.0" ]
permissive
<?php /** * Implements qtag SHADOW. * * Renders a Shadow (An overlay input form) * * @param Environment $env * The Environment. * * @param mixed $target * The Shadow attribute to show. * * @param array $attributes * Attributes of the tag. * * @return string * The rendered Shadow. */ function qta...
true
959db941006097e3f4731ab7403e37bd48e1a391
PHP
darling-kefan/material
/_inc/funcs/sendmail.func.php
UTF-8
1,504
2.78125
3
[]
no_license
<?php /** * 该文件定义了phpmailer发送邮件函数 */ if(!defined('MATERIAL')){ exit('Include Permission Denied!'); } /** * 使用phpmailer发送邮件 * @param strint $sendto_email email地址 * @param string $subject 邮件标题 * @param string $body 邮件内容 * @return bool */ function sendmail( $sendto_email, $subject, $...
true
f02d12ba2504a79f2331f7f6e695846acac99d02
PHP
andparsons/mage-app-start
/app/code/Magento/CompanyCredit/Model/CreditCheckoutData.php
UTF-8
7,650
2.671875
3
[]
no_license
<?php namespace Magento\CompanyCredit\Model; use Magento\Authorization\Model\UserContextInterface; use Magento\Customer\Api\CustomerRepositoryInterface; use Magento\CompanyCredit\Api\CreditDataProviderInterface; use Magento\Framework\Pricing\PriceCurrencyInterface; use Magento\Company\Api\CompanyRepositoryInterface; ...
true
8955de6c0e5cc34f7838bd1c0d8f41af5128a31f
PHP
qvbit/MovieDB-Project
/www/Browsing.php
UTF-8
4,324
2.515625
3
[]
no_license
<?php include('nav.php') ?> <div class="container"> <h3><b>Search</b></h3><hr> <form method="GET" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>"> <div class="form-group"> <?php if(!$_GET["keys"]) { $Err_flag = 1; ...
true
b2f5aa5aa12d5cf3892006817161d4ce75efa944
PHP
SergeyBel/nicecrypto
/src/Cipher/Cipher.php
UTF-8
2,652
3.140625
3
[]
no_license
<?php namespace NiceCrypto\Cipher; use NiceCrypto\Encoder\EncoderInterface; use NiceCrypto\Encoder\Hex; use NiceCrypto\Exception\CipherException; class Cipher { private $algorithm; private $mode; private $encoder; public function __construct(string $algorithm, string $mode) { $this->algo...
true
8f1094c0c4a69dfdced061269bbde21e01daf1ab
PHP
ReutLeib/KeePet
/index.php
UTF-8
2,472
2.65625
3
[]
no_license
<?php include 'db.php'; include 'config.php'; session_start(); if(!empty($_POST["username"])){ //if form was submitted $query = "SELECT * FROM passwords_227 WHERE userName='" . $_POST["username"] . "' and password = '" . $_POST["password"] . "'"; $result ...
true
6dbc1b01ba9365c0c27df0aaf018f05def2789a4
PHP
LendLord/Yii-CRUD
/basic/models/LocationSearch.php
UTF-8
1,165
2.5625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use Yii; use yii\data\ActiveDataProvider; class LocationSearch extends Location { public $country; public $city; public $region; /** * @return array */ public function rules() { return [ [['country', 'city', 'region'], 'safe'] ];...
true
293e20cae85d899696193fb1fc5662492848b580
PHP
Kaishiyoku/animexx-api
/src/helpers.php
UTF-8
2,050
3
3
[ "MIT" ]
permissive
<?php if (!function_exists('filterInt')) { /** * @param string|null $str * @return int */ function filterInt($str) { preg_match("/-?[0-9]+/", $str, $matches); if (count($matches) == 0) { return null; } return $matches[0]; } } if (!function_e...
true
1956a18bdb4a42c29b09fcdd23801e62e01443f3
PHP
orkestra/orkestra-common
/lib/Orkestra/Common/DbalType/AbstractEnumType.php
UTF-8
1,761
2.8125
3
[ "MIT" ]
permissive
<?php /* * This file is part of the Orkestra Common package. * * Copyright (c) Orkestra Community * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. */ namespace Orkestra\Common\DbalType; use Doctrine\DBAL\Types\StringType, Doctri...
true
a957d399674947d84baf42a9fca2c0421580802e
PHP
TamilarasiR/-TamilR-AES
/eer.php
UTF-8
1,818
2.984375
3
[]
no_license
<?php include 'enc.php'; if(isset($_POST['submit'])) { $blockSize = 192; $inputKey = "My text to encrypt"; $allowedExts = array("jpg", "jpeg", "gif", "png", "mp3", "mp4", "wma", "txt", "TXT", "doc", "DOC", "docx", "DOCX"); $fileName = $_FILES['file']['name']; $extension = substr($fileName, str...
true
02c52fc99028d376ab8bffd647f9bdc80d54a35e
PHP
electblake/Coordino-Media
/app/Controller/Component/MarkdownifyComponent.php
UTF-8
915
2.796875
3
[ "MIT" ]
permissive
<? class MarkdownifyComponent extends Component { /** * Define the Markdownify varaible. */ public $markdownify; public $controller; public function __construct(ComponentCollection $collection, $settings = array()) { parent::__construct($collection, $settings); } /** * Import the Markdowni...
true
58ffdbb01498af0c7241b207f1b8afb008cf8027
PHP
KratorD/Segmentation
/lib/Segmentation/Form/Handler/Admin/EditMail.php
UTF-8
3,000
2.609375
3
[]
no_license
<?php /** * Segmentation * * @license GNU/LGPLv3 (or at your option, any later version). */ class Segmentation_Form_Handler_Admin_EditMail extends Zikula_Form_AbstractHandler { /** * mail id. * * When set this handler is in edit mode. * * @var integer */ private $id; /**...
true
6170ced1dddc7ff2112374c68bd31eb19179e00b
PHP
VandJ/ISP-parsers
/parsers/sites/ozerich/cityobuv_ru.php
UTF-8
6,137
2.53125
3
[]
no_license
<?php require_once PARSERS_BASE_DIR . '/parsers/baseClasses/ozerich.php'; class ISP_cityobuv_ru extends ItemsSiteParser_Ozerich { protected $shopBaseUrl = "http://www.cityobuv.ru/"; public function __construct($savePath) { parent::__construct($savePath); // $this->httpClient->setReques...
true
6f5a24a2b10d70637949d9d8814ffeb26e549d85
PHP
HueJack/logicasoft.cashback
/lib/messagenotifyhandler.php
UTF-8
4,424
2.515625
3
[ "MIT" ]
permissive
<?php /** * Created by: Nikolay Mesherinov * Email: mnikolayw@gmail.com **/ namespace Logicasoft\Cashback; use Bitrix\Main\Application; use Bitrix\Main\Config\Option; use Bitrix\Main\Mail\Event; use Bitrix\Main\ORM\Query\Query; use Bitrix\Main\SiteTable; use Bitrix\Main\UserPhoneAuthTable; use Bitrix\MessageServic...
true
a646317790d81808a9507108d120be13bc5d325e
PHP
widibaka/Koreksubs-Makina
/assets/plugins/google-api-php-client-2.4.0/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/Resource/SitesDomains.php
UTF-8
4,130
2.546875
3
[ "MIT", "Apache-2.0", "LicenseRef-scancode-generic-cla" ]
permissive
<?php /* * Copyright 2014 Google Inc. * * 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 required by applicable law or agreed t...
true
dc8b6935d391c57f4defdf9934361a501157d93b
PHP
Twisted578/Projet-3-OC
/INC/lastComments.php
UTF-8
271
2.6875
3
[]
no_license
<?php $comments=$DB->query("SELECT id,texte from comments ORDER BY created_at LIMIT 5"); ?> <h3>Derniers commentaires</h3> <?php foreach ($comments as $comments): ?> <p><?php echo Texte::limit($comments->texte,150); ?></p> <?php endforeach ?>
true
47725efa1bae195af6edbba8dd942f4bf1958b9a
PHP
muten86/CRClanStats
/CRClanStats/GetCompleteWarData.php
UTF-8
1,117
2.8125
3
[]
no_license
<?php include "config.php"; $conn = new PDO("mysql:host=$servername;dbname=$dbname", $username, $password); // set the PDO error mode to exception $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); echo "ID;Spieler Tag;Sammelphase gespielt;Sammelphase gewonnen;...
true
ce3d672b5ded377486a50dc952eb6b61fdeeeb07
PHP
akoblitskiy/biblio
/src/Model/User.php
UTF-8
435
2.578125
3
[]
no_license
<?php namespace Src\Model; use Core\Model; class User extends Model { protected static $tableName = 'user'; protected static $primaryKeys = ['id']; protected static $relations = null; /** @var int */ protected $id; /** @var string */ protected $name; /** @var string */ protected...
true
5c6dfb79d72b0ea47018c773601c67e8e23d082b
PHP
sfuent95/equiposchile
/modelos/modeloequiposchile.php
UTF-8
3,112
2.796875
3
[]
no_license
<?php error_reporting(E_ALL); ini_set('display_errors', '1'); require_once '../config/config.php'; class ModelEquiposChile{ private $pdo; public function __CONSTRUCT() { try{ $this->pdo=new PDO('mysql:host='.HOST.';dbname='.DB,USERDB,PASSDB); $this->pdo->setAttribute(PDO::ATTR_ERRMODE,PDO::ERRMODE_EXCEPTION...
true
296737f90469c9f57ea96a4834a95b4aac0c6537
PHP
MiquelMarinoEspinosa/php-console
/src/Application/UseCase/User/CreateUserRequest.php
UTF-8
302
2.796875
3
[]
no_license
<?php namespace Php\Console\Application\UseCase\User; class CreateUserRequest { /** @var string */ private $name; public function __construct( string $name ) { $this->name = $name; } public function getName(): string { return $this->name; } }
true
dd81b8e567b9920c2cbaa0719076db2f04f67781
PHP
ifpb/exercises
/src/pages/exercises/array-roman-number/_codes/php/response/print/roman-number.print.php
UTF-8
1,126
3.4375
3
[]
no_license
<?php require __DIR__ . '/../src/roman-number.php'; // Roman Number // converting 1 var_dump(toRoman(1)); var_dump('I'); // converting 2 var_dump(toRoman(2)); var_dump('II'); // converting 3 var_dump(toRoman(3)); var_dump('III'); // converting 4 var_dump(toRoman(4)); var_dump('IV'); // converting 5 var_dump(toRom...
true
ed2be3a2e52af1b6b9eb26e5990b0c852ad81cb2
PHP
michaeljoyner/goodgifts
/app/Analytics/FakeAnalyticsData.php
UTF-8
612
2.671875
3
[ "MIT" ]
permissive
<?php namespace App\Analytics; use Carbon\Carbon; class FakeAnalyticsData extends AnalyticsData { public function visitorsAndPageViews() { $pageViews = [200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200]; $visitors = [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100]; ...
true
d5323ab748812eb62f5c0fe405d76182db32b7ff
PHP
Nogrod/ebay-sdk-php
/src/Trading/RefundOptionsCodeType.php
UTF-8
3,096
2.78125
3
[ "MIT" ]
permissive
<?php namespace Nogrod\eBaySDK\Trading; /** * Class representing RefundOptionsCodeType * * This enumerated type contains the possible refund, exchange, or store credit options that a * seller may offer the buyer as part of the return policy. * XSD Type: RefundOptionsCodeType */ class RefundOptionsCodeType { ...
true
8873cf2b6a356b0140e726aba37f679d3e7fc096
PHP
Koenster/DNSHelper
/src/Feeder/PHPFeeder.php
UTF-8
1,150
2.828125
3
[]
no_license
<?php namespace koenster\DNSChecker\Feeder; use koenster\DNSChecker\Contract\DNSFeederContract; use koenster\DNSChecker\DNSCollection; class PHPFeeder implements DNSFeederContract { /** * {@inheritdoc} */ public function feed($domainName) { $DNSCollection = new DNSCollection(); ...
true
d1737ab948a98aaaecc8877ffa0f08d9ebdd8abd
PHP
uaoleg/icpc.org.ua
/common/ext/Message/Source.php
UTF-8
1,053
2.796875
3
[ "MIT" ]
permissive
<?php namespace common\ext\Message; /** * Translation message source */ class Source extends \CMessageSource { /** * Loads the message translation for the specified language and category * * @param string $category * @param string $language * @return array */ protected functio...
true
5adc3edf667ab31988edeb9ad72faadfe482fff3
PHP
Zekdar/EasySaisie
/src/C2J/EasySaisieBundle/Entity/Subject.php
UTF-8
1,575
2.78125
3
[ "MIT" ]
permissive
<?php // src/EasySaisieBundle/Subject.php namespace C2J\EasySaisieBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Table() * @ORM\Entity(repositoryClass="C2J\EasySaisieBundle\Entity\SubjectRepository") */ class Subject { /** * @var integer $id * * @ORM\Column(name="id", type="integer") * @...
true
cbf6b7aafb01d2a675f06ca0adea2d2a7c255523
PHP
marcusdmartins/thorin_sm_painel
/services/funcoes.php
UTF-8
3,872
2.875
3
[]
no_license
<?php function formata_padrao_data($data){ $data_edit = explode("-","$data"); $ano = $data_edit[0]; $mes = $data_edit[1]; $dia = $data_edit[2]; $data_final = "$dia/$mes/$ano"; return $data_final; } function formata_padrao_data_bd($data){ $data_edit = explode("/","$data"); $ano = $data_edit[2]; $mes = $data_edit[...
true
4e10ef7fa494dcb2ee33db28597ab1a44e76dd29
PHP
camfindlay/silverstripe-blog
/code/model/BlogCategory.php
UTF-8
3,176
2.765625
3
[ "BSD-2-Clause" ]
permissive
<?php /** * A blog category for generalising blog posts. * * @package silverstripe * @subpackage blog * * @method Blog Blog() * * @property string $URLSegment * @property int $BlogID */ class BlogCategory extends DataObject implements CategorisationObject { /** * @var array */ private stati...
true
5ce2d9d9d0899955c93ef469169162978a336eba
PHP
katsana/katsana-sdk-php
/src/One/Fleets/Drivers.php
UTF-8
2,033
2.609375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace Katsana\Sdk\One\Fleets; use Katsana\Sdk\One\Request; use Katsana\Sdk\Query; use Laravie\Codex\Concerns\Request\Json; use Laravie\Codex\Contracts\Response; class Drivers extends Request { use Json; /** * List drivers for a fleet. * * @param int $fleetId ...
true
97987bc7d7e08b214924bb46a576533e77034ab8
PHP
itsromack/lvcccpc
/classes/score/ScoreDAO.php
UTF-8
1,928
2.78125
3
[]
no_license
<?php class ScoreDAO { public static function getScores() { global $db; $sql = "SELECT t.id, t.name, t.username, (SELECT COUNT(id) FROM team_answers WHERE question_id=1 AND status='Code Accepted' AND team_id=t.id) AS q1, (SELECT COUNT(id) FROM team_answers WHERE ques...
true
735f531def1df58edbb1dbb9709c6c608d450501
PHP
Delgesu2/blog
/src/Controller/AccessAdminController.php
UTF-8
1,296
2.765625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: ronsard * Date: 03/10/17 * Time: 22:44 */ namespace Framework\Controller; use Framework\Manager\UserManager; class AccessAdminController { private $userManager; public function __construct() { $this->userManager = new UserManager(); } publi...
true
8d5b7088c59439bf4909ee148fd0df6d39dd4611
PHP
giik0n/GooglePlay
/app/Models/Apps.php
UTF-8
1,522
2.75
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Eloquent as Model; use Illuminate\Database\Eloquent\SoftDeletes; /** * Class Apps * @package App\Models * @version April 26, 2018, 6:25 am UTC * * @property string title * @property mediumText description * @property integer user_id * @property string user_email * @property i...
true
d1a5b27a641225fae4b06b84dfc97ae4b1b1c124
PHP
kubabialy/mindento
/app/ValueObjects/ID.php
UTF-8
355
3.359375
3
[]
no_license
<?php namespace App\ValueObjects; final class ID { private string $value; public function __construct(string $value) { $this->value = $value; } public function value(): string { return $this->value; } public function equals(ID $id): bool { return $this-...
true
2d979fba9509dba12bd087475c78588fc9c9759b
PHP
swow/swow
/ext/tests/swow_coroutine/exception_handler.phpt
UTF-8
1,302
2.546875
3
[ "Apache-2.0", "ISC", "BSL-1.0", "MIT", "BSD-2-Clause" ]
permissive
--TEST-- swow_coroutine: exception handler on coroutine --SKIPIF-- <?php require __DIR__ . '/../include/skipif.php'; ?> --INI-- display_errors=0 --FILE-- <?php require __DIR__ . '/../include/bootstrap.php'; use Swow\Coroutine; set_exception_handler(static function (Throwable $e): void { echo 'outer handler ' . $e...
true
fa6db225675fe45d2c14e22f2d466908677af967
PHP
subhinlee/fellowme
/api/globalFunction.php
UTF-8
673
2.921875
3
[]
no_license
<?php session_start(); // function to connect to database function connection() { $dbhost= "localhost"; $dbuser= "root"; $dbpass= ""; $dbname= "db_fellowme"; $dbh = new PDO("mysql:host=$dbhost;dbname=$dbname;charset=utf8", $dbuser, $dbpass); $dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXC...
true
4cd5bb07713fea5e89a83af4c93c63beb0c33ed1
PHP
ilyasse406/ilyasse_el_haddad_labs
/app/Http/Controllers/NavbarController.php
UTF-8
3,283
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Models\Navbar; use Illuminate\Http\Request; use Illuminate\Support\Facades\Storage; class NavbarController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { ...
true
c7fc226f59409f50eaf030d7ec832f7a848ac998
PHP
Biodru/PHPPrzykladowe
/classes.php
UTF-8
1,158
3.0625
3
[]
no_license
<?php //Klasa łączenia z bazą danych class DB { protected $connection; public function __construct() { $this->connection = new mysqli('192.168.64.2','root','','waluty'); } } //Klasa do metod związacnych z kursami(pobiera dane i tworzy tabelę) class kursy extends DB { public funct...
true
57756c344f945b1fba96bea86284a4dfd87dc477
PHP
pandigresik/easyHRIS
/database/migrations/2021_08_06_225434_create_menu_permissions_table.php
UTF-8
948
2.515625
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateMenuPermissionsTable extends Migration { /** * Run the migrations. */ public function up() { Schema::create('menu_permissions', functio...
true
40e1e50d3f4b199451cf893f646e6b600dab24e4
PHP
cdanihb/examen
/database/migrations/2019_09_28_111503_create_staff_table.php
UTF-8
1,114
2.640625
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateStaffTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('staff', function ...
true
b3698c339100642c812fb961074b8768c30e79b1
PHP
furqansiddiqui/bitcoin-php
/src/Transactions/SerializedTransaction.php
UTF-8
1,084
2.59375
3
[ "MIT" ]
permissive
<?php /* * This file is a part of "furqansiddiqui/bitcoin-php" package. * https://github.com/furqansiddiqui/bitcoin-php * * Copyright (c) Furqan A. Siddiqui <hello@furqansiddiqui.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code or...
true
3a9b15ec9b2bb83e73c756c966476fc0c707f7c9
PHP
Grga-Pitic/callibri-api-class
/test-task-guzzle/src/Callibri.php
UTF-8
5,154
3.015625
3
[]
no_license
<?php namespace App; use PDO; use DateTime; use GuzzleHttp\Client; use UnderflowException; use RuntimeException; use Exception; class Callibri { private const REQUEST_DELAY = 1000000; private const HTTP_CLIENT_TIMEOUT = 10; private $url; private $login; private $token; private $db; ...
true
9106eef5a46464750fa0787a0648e807a2f3bb3a
PHP
lj2000hjy/kyphp3
/safe/app/controller/public/url.php
WINDOWS-1252
1,366
2.546875
3
[]
no_license
<?php class ControllerPublicUrl extends Controller{ public function index() { // Ӿ̬ if($this->config->get('PATH_KEY')==5){ $this->url->addRewrite($this); } // if (isset($this->request->get['_k_'])) { $parts = explode('/', $this->request->get['_k_']); if(strstr($this->request->get['_k...
true
efa0caed2500ca943f69b2abb4a40e0e84afd64e
PHP
Shalsh33/toddys
/app/controller/images.controller.php
UTF-8
2,337
2.59375
3
[]
no_license
<?php require_once 'app/controller/controller.php'; require_once 'app/model/model.imagenes.php'; require_once 'app/view/admin.view.php'; class images_controller extends controller{ private $model; private $view; function __construct(){ $this->model = new model_imagenes(); $this->view = n...
true
b453e7c5f0077e76294fbbec0ba274e65922f68e
PHP
uploadcare/uploadcare-php
/tests/VideoEncoding/VideoEncodingRequestTest.php
UTF-8
7,589
2.625
3
[]
no_license
<?php declare(strict_types=1); namespace Tests\VideoEncoding; use PHPUnit\Framework\TestCase; use Uploadcare\Conversion\VideoEncodingRequest; use Uploadcare\Exception\InvalidArgumentException; use Uploadcare\Interfaces\Conversion\VideoEncodingRequestInterface; class VideoEncodingRequestTest extends TestCase { pu...
true
3e6dc77bffb3fb0fe905d32cdbc66fda5af665bd
PHP
sylapi/omnipay-inbank
/src/Traits/ApiTrait.php
UTF-8
1,835
2.578125
3
[]
no_license
<?php namespace Omnipay\InBank\Traits; trait ApiTrait { public function getApiKey(): ?string { return $this->getParameter('apiKey'); } public function setApiKey(string $value) { return $this->setParameter('apiKey', $value); } public function getShopUidd(): ?string { ...
true
63a571ea617f7a4cb83a6a26243dbce7b47a6204
PHP
amocrm/amocrm-api-php
/src/AmoCRM/Models/CustomFieldsValues/ValueModels/FileCustomFieldValueModel.php
UTF-8
3,403
2.8125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace AmoCRM\Models\CustomFieldsValues\ValueModels; /** * @since Release Spring 2022 */ class FileCustomFieldValueModel extends BaseCustomFieldValueModel { /** @var null|string */ private $fileUuid; /** @var null|string */ private $versionUuid; /** @var null|s...
true
77388fe82a4a4f4512c49bcf891ff6dec10775f0
PHP
honwei189/fw
/src/Fw.php
UTF-8
20,525
2.515625
3
[ "MIT" ]
permissive
<?php /* * @creator : Gordon Lim <honwei189@gmail.com> * @created : 12/05/2019 22:03:39 * @last modified : 22/03/2020 22:10:17 * @last modified by : Gordon Lim <honwei189@gmail.com> */ namespace honwei189; use honwei189\Flayer as flayer; use honwei189\Flayer\Config as config; /** * * ...
true