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
c1bb7e61db6af9d2ff6eff06bc35892239726fb8
PHP
aleef/tes
/logic/rev.php
UTF-8
258
3.09375
3
[]
no_license
<?php $s = 'abcdefghijklm'; for($i=strlen($s)-1, $j=0; $j<$i; $i--, $j++) { list($s[$j], $s[$i]) = array($s[$i], $s[$j]); } echo $s; $string = 'Basant Kumar'; $length = strlen($string); for($i=$length-1;$i >=0;$i--){ echo $string[$i]; } ?>
true
ec19d1d86ae4d7c27dbd00275ff2ecb62a949dfc
PHP
nhlm/bloom
/src/ContentFactory.php
UTF-8
5,560
2.765625
3
[ "MIT" ]
permissive
<?php /** * This file is part of the BLOOM Project. * * (c)2017 Matthias Kaschubowski * * This code is licensed under the MIT license, * a copy of the license is stored at the project root. */ namespace Bloom; use Bloom\Aggregators\MetafreeContentAggregator; use Bloom\Exceptions\BloomException; use PipeChain\...
true
cd83309d1c8bc5330ff9c6b382df58f6e4f9ce0f
PHP
mstysk/tickets-modeling
/app/src/Domain/Plan/AbstractPlanFactory.php
UTF-8
1,632
2.78125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace App\Domain\Plan; use App\Domain\Plan\ValueObjects\PlanName; use App\Domain\Element\Element; abstract class AbstractPlanFactory { abstract protected static function getPrice(string $key): int; abstract protected static function getElement(): Element; abstract pr...
true
40e04064eaf75ce170e88871c16f84ed17c4db00
PHP
alitak/webfejlesztes
/mysql_orm/04.php
UTF-8
316
2.53125
3
[ "MIT" ]
permissive
<?php // @todo change to const // @todo include file // @todo create db managing class $sql_l = mysqli_connect('localhost', 'root', 'a', 'webfejlesztes'); $sql = mysqli_query($sql_l, 'SELECT * FROM users'); while ($row = $sql->fetch_object()) { echo $row->id . chr(13) . $row->name; } mysqli_close($sql_l);
true
fc7d56e78b7540697b7118f457f8907840a481f9
PHP
ashiqISS/deals
/protected/models/MerchantPayoutHistory.php
UTF-8
4,314
2.53125
3
[]
no_license
<?php /** * This is the model class for table "merchant_payout_history". * * The followings are the available columns in table 'merchant_payout_history': * @property integer $id * @property integer $merchant_id * @property double $available_balance * @property double $requested_amount * @property integer $paym...
true
81a46bddc468ff8d525ff3d575d4945d8bd72517
PHP
concrete5-community/acme
/src/Crypto/Hash.php
UTF-8
1,287
3.171875
3
[ "MIT" ]
permissive
<?php namespace Acme\Crypto; use Acme\Exception\NotImplementedException; use phpseclib\Crypt\Hash as Hash2; use phpseclib3\Crypt\Hash as Hash3; final class Hash { /** * @var int */ private $engineID; /** * @var \phpseclib\Crypt\Hash|\phpseclib3\Crypt\Hash */ private $value; ...
true
bb92a50957ee749669c89106e21f5c1051a203ac
PHP
WohligTechnology/accessback
/application/models/currency_model.php
UTF-8
2,785
2.578125
3
[]
no_license
<?php if ( !defined( 'BASEPATH' ) ) exit( 'No direct script access allowed' ); class Currency_model extends CI_Model { //currency public function createcurrency($name,$isdefault,$conversionrate,$country) { $data = array( 'name' => $name, 'isdefault' => $isdefault, 'conversionrate' => $conversionrate, ...
true
f84342a6e4b32e09b4f778008d188e53d15c2029
PHP
schoolSystemTeam/PHPfolder
/settingRestTime/settingRestTime_model.inc
UTF-8
20,740
3.0625
3
[]
no_license
<?php /** * ===================================================================================== プログラム名 : 勤怠管理システム(Web版) プログラム説明:社員の勤怠情報を管理するシステムです。 管理者はカレンダーを使用して視覚的に勤怠の登録、削除、変更 を行えるほか各社員の勤怠情報の閲覧、休日、休憩時間の設定 機能を使用することができます。 勤怠情報とカレンダー部分はPDF,EXCEL出力することが可能です。 作成者 : 鈴木一紘 作成日 :...
true
783e6aa470d14db08d799d54bb53d4db27ba449d
PHP
PHPComponent/DI
/src/IMethodCall.php
UTF-8
633
2.578125
3
[ "BSD-3-Clause" ]
permissive
<?php /* * This file is part of PHPComponent/DI. * * Copyright (c) 2016 František Šitner <frantisek.sitner@gmail.com> * * For the full copyright and license information, please view the "LICENSE.md" * file that was distributed with this source code. */ namespace PHPComponent\DI; use PHPComponent\DI\Reference\I...
true
93715f4c9c371c88a9e48cb548af7a9e2cb86dd3
PHP
marcela4m/NVCH-S.A
/111/pacientes.php
ISO-8859-1
1,452
2.53125
3
[]
no_license
<html> <head> <title>Problema</title> </head> <body> <?php session_start(); echo "Bienvenido(a)"; echo '<b>'.$_SESSION['k_username'].'</b>.'; $user=$_SESSION['k_username']; echo '<br>A continuacion se muestra la lista de todos los pacientes actualmente vinculados al sistema:'; $conexion=mysql_connect("lo...
true
8876646c151825d5711e144321c3bb3eef9fcb53
PHP
crissesoto/Shopping-List
/additem.php
UTF-8
4,141
3.09375
3
[ "MIT" ]
permissive
<?php include "templates/header.php";?> <?php // connect to the data base using MysqlI or PDO // $var_to_store_data = mysqli_connect("host","user","passw","name database"); $connection = mysqli_connect("localhost","crisse","Serimi03","Shopping_List"); // check connection if(!$connection){ echo "connection failed: ...
true
e6450e540fc5083a2bae51e3f2b76d7a2f8b80bf
PHP
krakphp/hmac
/src/HmacConfig.php
UTF-8
1,329
2.609375
3
[ "MIT" ]
permissive
<?php namespace Krak\Hmac; class HmacConfig { public $scheme; public $hasher; public $hs_gen; public $time_gen; public $time_header; public $auth_header; public function __construct( $scheme, HmacHasher $hasher, $hs_gen, $time_gen, $time_header, ...
true
e232ee7cdcae8aa31f236a13902847cac8558607
PHP
mohamed-atef/laravel-todolist
/app/tests/GSD/Entities/TodoListTest.php
UTF-8
3,471
2.546875
3
[ "MIT" ]
permissive
<?php /** * */ class TodoListTest extends TestCase { public function setup() { App::bind('GSD\Repositories\TodoRepositoryInterface', function(){ return Mockery::mock('GSD\Repositories\TodoRepositoryInterface'); }); App::bind('GSD\Entities\TaskCollectionInterface', function(){ return Mockery::mock('GSD\E...
true
a440d19adebbe5a3c426b1ffdeff2f5fc10f2b98
PHP
sobir0990/medo_backend_dev
/console/migrations/m190227_050458_create_chat_table.php
UTF-8
1,670
2.546875
3
[ "BSD-3-Clause" ]
permissive
<?php use yii\db\Migration; /** * Handles the creation of tables `chat` and `chat_user`. */ class m190227_050458_create_chat_table extends Migration { /** * {@inheritdoc} */ public function safeUp() { $this->createTable('chat', [ 'id' => $this->primaryKey(), 'name' => $this->string(128), 'company_...
true
f3bbfe58eac73d5c795c559d531af79fa83e0f58
PHP
xSevithx/Clover-API
/token.php
UTF-8
4,542
2.59375
3
[]
no_license
<?php /*-------- We making authorization of clover account in sandbox environment. For sandbox account the urls are- 1)https://sandbox.dev.clover.com/oauth/authorize - This is use to authorize. 2)https://sandbox.dev.clover.com/oauth/token - This is used to get token. For Production account - 1)https://www....
true
2c557321f216cae5b8b6729ce20835760b10b970
PHP
langhoangtien/crm
/application/libraries/Crontabs.php
UTF-8
2,451
3.296875
3
[]
no_license
<?php /* CRONTABS * Manage cron jobs , create, remove jobs * @dir /application/libraries/Crontabs.php * */ class Crontabs { /* CONVERT STRING JOBS TO ARRAY JOBS * * @param string $job * @return array: converted string */ private static function string_to_array($jobs = '') { $array = explode ("\r\n",...
true
b4e2365389da3efe23551f8b4a07e3ff14998556
PHP
whilegit/php-study
/src/Tree/GongpaiYTB/GongpaiTree.php
UTF-8
8,999
3.171875
3
[]
no_license
<?php namespace Whilegit\Tree\GongpaiYTB; class GongpaiTree{ /** * 公排类型,二二公排时 $type为2, 三三公排时 $type为3 * @desc <pre> * 用于找出新用户在公排中的位置(positionUser和findPosition函数) * 用于检验公排树的完整性(validate函数), * 不用于output打印函数不涉及$type,任何树的类型都可以打印 * </pre> */ ...
true
d0550be94d368761d8527bc79adfb55e897354cc
PHP
solleer/MVC
/src/Model/Form/DeleteFile.php
UTF-8
969
2.578125
3
[ "MIT" ]
permissive
<?php namespace MVC\Model\Form; class DeleteFile implements \MVC\Model\Form { private $deleter; private $data; private $filesystem; public $successful = false; public $submitted = false; public function __construct(Delete $deleter, \League\Flysystem\Filesystem $filesystem) { $this->dele...
true
41efe5e501e916c99e87f5dee42ac08d89296e2a
PHP
itkg/consumer
/src/Itkg/Consumer/Cache/ServiceCacheQueueReaderInterface.php
UTF-8
660
2.5625
3
[]
no_license
<?php namespace Itkg\Consumer\Cache; use Itkg\Core\Cache\CacheableData; use Itkg\Core\CacheableInterface; /** * interface ServiceCacheQueueReaderInterface */ interface ServiceCacheQueueReaderInterface { /** * @param string $status * * @return mixed */ public function getFirstItem($statu...
true
219378b9242012b1fc99bb0b1f6308b8ef46e320
PHP
Shivadharp/FP
/Controller/Todo.php
UTF-8
4,641
2.671875
3
[]
no_license
<?php namespace TestProject\Controller; class Todo { const MAX_POSTS = 5; protected $oUtil, $oModel; private $_iId; public function __construct() { // Enable PHP Session if (empty($_SESSION)) @session_start(); $this->oUtil = new \TestProject\Engine\Util; ...
true
042f8edd10bfd30dd05a9fb8736b47f71c85b9f2
PHP
angeldm/chartjs
/src/Iterator/ArrayAccessIterator.php
UTF-8
3,075
3.125
3
[]
no_license
<?php namespace Angeldm\ChartJS\Iterator; use Angeldm\ChartJS\Collection\ArrayAccess; /** * Class Iterator * @package Halfpastfour\Collection\Collection */ class ArrayAccessIterator implements \Iterator, \Countable { /** * @var ArrayAccess */ protected $collection; /** * The current ...
true
6da16f9417371f64d883dd6b44dc9bcf0fcf77b4
PHP
Bharath722/admaruqee
/sendmail.php
UTF-8
732
3.0625
3
[]
no_license
<?php /* Set e-mail recipient */ $myemail = "anirbanguha81@gmail.com"; $name = check_input($_POST['name'], "Enter your name"); $subject = check_input($_POST['subject'], "Enter a subject"); $email = check_input($_POST['email']); $message = check_input($_POST['message'], "Write your message"); $message = " Name: $name ...
true
52d92c5a092323b02db61668bdad145266357240
PHP
esveraldo/dev-project
/app/Models/Admin.php
UTF-8
1,003
2.515625
3
[]
no_license
<?php namespace App\Models; use Illuminate\Notifications\Notifiable; use Illuminate\Foundation\Auth\User as Authenticatable; class Admin extends Authenticatable { use Notifiable; protected $fillable = [ 'name', 'email', 'password', 'status' ]; protected $hidden = [ 'password', 'reme...
true
8dbfaa219948412485ae04065b85b13eb749f36b
PHP
aledic85/php-oop-plain
/index.php
UTF-8
1,469
3.53125
4
[]
no_license
<?php class Pagamento { public $id; public $status; public $price; function __construct($id, $status, $price){ $this->id = $id; $this->status = $status; $this->price = $price; } function printMe() { echo $this->id . " " . $this->status . ": " . $this->price . "$" . "<br>"; } } $ser...
true
90bfd9b21039f9aca8c5afaf3b550a7b8d4c4862
PHP
webofficeit/aptitude_exams
/database/migrations/2017_06_29_082404_create_questions_table.php
UTF-8
1,317
2.609375
3
[]
no_license
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateQuestionsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('questions', function (Blueprint $table) { ...
true
33ba8efaae63069694f1ca99e369de91a617cec1
PHP
w0dm4n/rush_00_php
/includes/class/product.php
UTF-8
9,254
2.90625
3
[]
no_license
<?php class Product { public function AddNewProduct() { if (isset($_POST["add_product"])) { if (!empty($_POST["product_name"]) && !empty($_POST["product_category"]) && !empty($_POST["product_img"]) && !empty($_POST["product_price"]) && !empty($_POST["product_stock"])) { $database = new Database(); $...
true
efeebb4837a7ae29e3ea4e91a3acda7077d71ff6
PHP
KeeperJerry/L-Shop-remade
/app/Handlers/Admin/Users/Permissions/UpdateHandler.php
UTF-8
1,250
2.90625
3
[]
no_license
<?php declare(strict_types = 1); namespace app\Handlers\Admin\Users\Permissions; use app\Exceptions\Permission\PermissionAlreadyExistsException; use app\Exceptions\Permission\PermissionNotFoundException; use app\Repository\Permission\PermissionRepository; class UpdateHandler { /** * @var PermissionRepositor...
true
1c7ae89ccf6fb55671bc97e7bbb692c43af5e8c1
PHP
Noktec/CS312
/nameFetch.php
UTF-8
885
2.765625
3
[]
no_license
<?php /* Information on the PHP Document : This document makes the request to the MySQL database to retrieve the name of the doctor. */ include_once "core/connect.php"; //This look up the name of your Doctor if(isset($_POST['queryString'])) { $queryString = $_POST['queryString']; if(strlen($queryS...
true
a1ca2b16cb886b61cbc0a043de28ff57972cf3fe
PHP
yendor/softlayer
/ips_by_server.php
UTF-8
1,654
2.71875
3
[]
no_license
<?php /** * Get a list of all the public ips per server for each server in an account. * This does not include portable ips which are instead routed to a vlan rather than a server **/ require_once(dirname(__FILE__).'/common.php'); $client = SoftLayer_SoapClient::getClient('SoftLayer_Account', null, Config::USERNAME,...
true
77c7074770d0afd384bcd2b558a0f027890192c3
PHP
oldcodger/email-spam-filter
/phpLib/MailAccount.class.php
UTF-8
1,014
2.9375
3
[ "Unlicense" ]
permissive
<?php /** * Class : MailAccount * Description : * */ class MailAccount { protected $server; protected $type; protected $port; protected $user; protected $password; protected $imap; public function __construct($mb) { $this->server = $mb['server']; $this->type = $mb['type']; $this->...
true
ed2c8b001ee7429110f57b9fe6d5a22571a5ca90
PHP
afridash/projects
/afridash/public/registration.php
UTF-8
5,852
2.5625
3
[]
no_license
<?php ob_start()?> <?php require_once("../includes/session.php"); require_once("../includes/functions.php"); require_once("../includes/validation.php"); require_once("../includes/db.php"); $errors = array(); $message = ""; if(isset($_POST["register"])){ //form was submitted $first_name = htmlentities(isset($_POST["fi...
true
d24496762f3ae3de1b73ccd60706ae3961ba9e03
PHP
LXTechnic/yup-tool
/cfm/classes/Terminal/Arguments.php
UTF-8
2,598
3.109375
3
[ "MIT" ]
permissive
<?php namespace Terminal; /** * 命令行参数解析器 * * * @author andares */ class Arguments { public $master = []; public $option = []; public $pipe; public $repeat; protected $current = ''; protected $cursor = []; public function __construct($argv = [], $pipe = [], $repeat = []) { ...
true
6eeb0fd5a3e73e06af919c7ca26d56f5e350a133
PHP
MFoenko/QRAssassin
/html/createGame.php
UTF-8
1,728
2.546875
3
[]
no_license
<?php session_start(); require("../php/connect_to_database.php"); if (!isset($_SESSION['user'])) //TODO redirect to index header("/"); ?> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script> <link rel="stylesheet" type="text/css" href="../css/stylesheet.css"> ...
true
4f42e999081c614957277413259c00ce852d92f9
PHP
Eliepse/argile-framework
/src/View/Loaders/ViewStaticLoader.php
UTF-8
1,216
2.625
3
[ "MIT" ]
permissive
<?php namespace Eliepse\Argile\View\Loaders; use League\Flysystem\Filesystem; use Symfony\Component\Templating\Loader\Loader; use Symfony\Component\Templating\Storage\FileStorage; use Symfony\Component\Templating\Storage\Storage; use Symfony\Component\Templating\TemplateReferenceInterface; final class ViewStaticLoad...
true
b6736d7c254e8f1514d5a1cb7f8f06ab4e179425
PHP
divinechess/ObjectOrientatedTraining
/Understanding interfaces.php
UTF-8
713
3.453125
3
[]
no_license
<?php interface Shape { public function draw(); public function colour(); } class Square implements Shape { public function draw(){} public function colour (){} } class Triangle implements Shape { public function draw(){} public function colour (){} } class Circle implements Shape { publ...
true
a0c7ca3e9e80812a7275c5e34d85ad0eaac91466
PHP
BCITTeamSolo/VolunteerWebsite
/application/controllers/UserProfile.php
UTF-8
8,835
2.828125
3
[]
no_license
<?php /** * This is the UserProfile controller - it contains all funtions required * gather data for and display a user's profile. * * controllers/UserProfile.php * * @author Matthew Banman * * ------------------------------------------------------------------------ */ class Userprofile extends Application {...
true
b99338c049c2cdd752a8d0b8876bf7fb1a61e978
PHP
jmpantoja/britannia
/api/src/Britannia/Domain/Service/Payment/PaymentBreakdownService.php
UTF-8
3,781
2.625
3
[ "MIT" ]
permissive
<?php /** * This file is part of the planb project. * * (c) jmpantoja <jmpantoja@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types=1); namespace Britannia\Domain\Service\Payment; use Britannia\Dom...
true
e46b85f11702bd063cbacd268e8a1ae9c8a4f75d
PHP
tahq69/competition-manager
/app/Http/Requests/Message/Store.php
UTF-8
779
2.53125
3
[]
no_license
<?php namespace App\Http\Requests\Message; use App\Http\Requests\FormRequest; use Illuminate\Validation\Rule; /** * Class Store * * @package App\Http\Requests\Message */ class Store extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ ...
true
4baeba202d788f55450726eebecd9025dee5c30b
PHP
nguoicodon95/demo
/app/Libraries/helper.php
UTF-8
979
2.71875
3
[ "MIT" ]
permissive
<?php function nameRand() { $s = strtoupper(md5(uniqid(rand(),true))); $guidText = substr($s,0,8) . '-' . substr($s,8,4) . '-' . substr($s,12,4). '-' . substr($s,16,4). '-' . substr($s,20); return $guidText; } if (! function_exists('_formatPrice')) { function _formatPrice($price) { ...
true
5b2cdabfec8ccd2ea1a433750438df84b91c4a40
PHP
yanakend/chef-php
/html/memcache.php
UTF-8
460
2.90625
3
[]
no_license
<?php class MemcacheManage { private static $memcache = NULL; public static function connect() { if (is_null(self::$memcache)) { self::$memcache = new Memcached(); self::$memcache->addServer("localhost", 11211); } } public static function get($key) { self::connect(); return self::$memcache->get...
true
ab371595f44e5f1dad9055bfc2e026bfc3b0868f
PHP
kherop/EjemplosLaravel
/ejemplo/app/Http/Controllers/miControlador.php
UTF-8
971
3
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Clases\Persona; class miControlador extends Controller { public function recoger(Request $req){ $nom = $req->get('nombre'); //El get directamente obtiene los datos dle formulario. Si en el formulario son //datos in...
true
50a51af2f94b2aa5c824ecda2f9a00363b19d9ac
PHP
zahaton01/steam-market
/src/Application/Util/TextUtil.php
UTF-8
599
3.046875
3
[]
no_license
<?php namespace App\Application\Util; /** * @author Anton Zakharuk <zahaton01@gmail.com> */ class TextUtil { /** * @param string $string * @param string $replacer * * @return string */ public static function replaceCommas(string $string, string $replacer = '.') { return...
true
aae06a43e7e473d62d43269ca7c0e55de2471b1d
PHP
gymdb/flexzeit
/app/Console/Commands/RoomOccupationsCommand.php
UTF-8
1,103
2.8125
3
[]
no_license
<?php namespace App\Console\Commands; use App\Services\RoomService; use Exception; use Illuminate\Console\Command; use Illuminate\Support\Facades\Log; class RoomOccupationsCommand extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'untis:...
true
56dd9acc19d29465fdad49415cfb24f12ec131d2
PHP
rubenlm25/jepsen-brite
/login.php
UTF-8
1,454
2.640625
3
[]
no_license
<?php if(!empty($_POST) && !empty($_POST['username']) && !empty($_POST['password'])){ require_once './include/bdb.php'; require_once './include/functions.php'; $requete = $pdo->prepare('SELECT * FROM users WHERE (username = :username OR email = :username ) AND confirmed_at IS NOT NULL'); $requete->exec...
true
3f78ef3d6b013e983f011f53a855ef0d9e690209
PHP
phpstan/phpstan-src
/tests/PHPStan/Rules/Classes/data/impossible-instanceof-not-phpdoc.php
UTF-8
523
2.890625
3
[ "MIT" ]
permissive
<?php namespace ImpossibleInstanceofNotPhpDoc; class Foo { public function doFoo( \stdClass $std ) { if ($std instanceof \stdClass) { } if ($std instanceof \Exception) { } } /** * @param \DateTimeImmutable $date */ public function doBar( \DateTimeInterface $date ) { if ($date instanceof ...
true
c9018cb121730a3517f628cae9005f021f7330d0
PHP
joangavelan/Master-en-PHP
/aprendiendo-php/20-ficheros/index.php
UTF-8
678
3.375
3
[]
no_license
<?php /* // Abrir archivo $archivo = fopen("fichero.txt", "a+"); //Leer coontenido while (!feof($archivo)) { $contenido = fgets($archivo); echo $contenido . '<br>'; } // Escribir en el archivo fwrite($archivo, 'Soy un texto añadido desde PHP'); //Cerrar archivo fclose($archivo); */ // Copiar cop...
true
08a4c92adced7da85e2a1c57bec4926b41b2b276
PHP
arnaldovitor/central-do-pet-8
/central-do-pet/app/Validator/vacinaValidator.php
UTF-8
430
2.671875
3
[ "Apache-2.0", "MIT" ]
permissive
<?php namespace App\Validator; use Illuminate\Support\Facades\Validator; class vacinaValidator extends \Exception { public function validate($data) { $validator = Validator::make($data, \App\Models\vacina::$rules, \App\Models\vacina::$messages); if(!$validator->errors()->isEmpty()) thr...
true
5a52e21b06a900f0cdb1358c54cdd15fbf0f3723
PHP
emanuele45/Dialogo
/sources/ElkArte/XmlArray.php
UTF-8
19,567
3.46875
3
[ "BSD-3-Clause" ]
permissive
<?php /** * The XmlArray class is an xml parser. * * @package ElkArte Forum * @copyright ElkArte Forum contributors * @license BSD http://opensource.org/licenses/BSD-3-Clause (see accompanying LICENSE.txt file) * * This file contains code covered by: * copyright: 2011 Simple Machines (http://www.simplemach...
true
354e5018f99ab909b2242954cb6ac9910d68c830
PHP
GajdosGabriel/cirkev
/app/Filters/PostFilters.php
UTF-8
443
2.5625
3
[]
no_license
<?php namespace App\Filters; use Illuminate\Http\Request; class PostFilters extends Filters { protected $filters = ['search']; /** * @param $searchWord * @return mixed */ protected function search($searchWord) { return $this->builder->where('title', 'LIKE', '%' . $searchWord...
true
ff75224f1da42cfceb3b7d0b04768eb6e5e8269a
PHP
kaktus-yazilim/kaktus-blog
/app/Models/Map/Post.php
UTF-8
2,615
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Models\Map; use App\Models\DB; use App\Models\Entity; use App\Models\Helper\Date; class Post extends Base { /** * @param DB\Post $post * @return Entity\Post */ public static function map(DB\Post $post) { $entityPost = new Entity\Post(); foreach (Entity\...
true
f57ac1569a200ac2a574e32738429d7fbdc5990d
PHP
saputroandi/tugasakhir
/app/Http/Middleware/ValidPaymentMiddleware.php
UTF-8
760
2.625
3
[]
no_license
<?php namespace App\Http\Middleware; use Closure; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; class ValidPaymentMiddleware { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public...
true
e8f7a5e5c7667fdffbdbb6ced4006768270e8042
PHP
manjuladangalla/Assignment
/assignment/database/seeds/ClassMastersSeeder.php
UTF-8
389
2.734375
3
[ "MIT" ]
permissive
<?php use App\ClassMaster; use Illuminate\Database\Seeder; class ClassMastersSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { for ($x = 1; $x <= 10; $x++) { ClassMaster::create([ 'name' => 'Class '.$x...
true
3b618cbb7e474c69c5f55fa4c7323e8473c9f3f6
PHP
phongtmitbka/social_book
/app/Repositories/Eloquent/UserBookRepository.php
UTF-8
564
2.515625
3
[]
no_license
<?php namespace App\Repositories\Eloquent; use App\Models\UserBook; use App\Repositories\Contracts\UserBookRepositoryInterface; class UserBookRepository extends BaseRepository implements UserBookRepositoryInterface { public function model() { return UserBook::class; } public function favorit...
true
4b27350df722fe5b4cc4e47f4dcbcc19be29376b
PHP
Carolea/webforce3
/PHP/10-EXERCICES/ajout_contact.php
UTF-8
4,619
3.03125
3
[]
no_license
<?php /* 1- Créer une base de données "contacts" avec une table "contact" : id_contact PK AI INT(3) nom VARCHAR(20) prenom VARCHAR(20) telephone VARCHAR(10) annee_rencontre (YEAR) email VARCHAR(255) type_contact ENUM('ami', 'famille', 'professionnel', 'autre') 2- Créer un formulaire H...
true
1f29083dc59b59833927d2c24fc1b5555c013092
PHP
adrialcr1994/paco_garden
/vistas/vista_formulario_borrar.php
UTF-8
1,829
2.671875
3
[]
no_license
<?php include_once "../controladores/controlador_borrar_tarea.php"; include_once '../modelo/conexion.php'; if(isset($_GET['del'])){ $id=$_GET['del']; } ?> <html> <head> <title>Formulario de entrada del datos</title> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap...
true
78627b680d3da960e738d7f9b98edd614155907b
PHP
hostnet/dead
/src/tree/FileTreeFactory.php
UTF-8
1,622
3.109375
3
[ "MIT" ]
permissive
<?php /** * @copyright 2018 Hostnet B.V. */ declare(strict_types=1); class FileTreeFactory extends AbstractTreeFactoryInterface { /** * @var Node[] */ private $functions = []; /** * @param $path string * @param $extension string * @return self */ public function scan($p...
true
9f95cc2ebb768eb0dcb2b3cf92efa992dadaa674
PHP
laminas/laminas-hydrator
/src/Aggregate/HydratorListener.php
UTF-8
1,571
2.6875
3
[]
permissive
<?php declare(strict_types=1); namespace Laminas\Hydrator\Aggregate; use Laminas\EventManager\AbstractListenerAggregate; use Laminas\EventManager\EventManagerInterface; use Laminas\Hydrator\HydratorInterface; /** * Aggregate listener wrapping around a hydrator. * * Listens to {@see HydrateEvent::EVENT_HYDRATE} a...
true
90e05653b696f1c8c593e86cf8902401dc03a865
PHP
boxun1009/weipan_qihuo
/dbhelp.class.php
UTF-8
1,452
2.796875
3
[]
no_license
<?php class DBHelper{ private $serverName; private $userName; private $userPwd; private $dbName; private $link; function __construct(){ $this->serverName="127.0.0.1"; $this->userName="root"; $this->userPwd="tu-*BnGR"; $this->dbName="ces"; } function Con...
true
2f34b2e6b26364889948452036b5fb127e48331c
PHP
JCassio1/Rest-API-with-token-authentication
/model/taskTest.php
UTF-8
399
2.65625
3
[]
no_license
<!-- This is used to test task <?php require_once('task.php'); try{ $task = new Task(1, "Title goes here", "description goes here", "15/09/2019 11:40", "N"); header('Content-type: application/json;charset=UTF-8'); //client should know what content will be received echo json_encode($task->returnTaskAsArray())...
true
0fe5ae0e99d98ee4f8408d65755bb82d2890f85c
PHP
autaut03/laravel-api-docs-generator
/src/AlexWells/ApiDocsGenerator/Parsers/FormRequestRulesParser.php
UTF-8
6,422
2.71875
3
[ "MIT" ]
permissive
<?php namespace AlexWells\ApiDocsGenerator\Parsers; use ReflectionClass; use Illuminate\Foundation\Http\FormRequest; use Illuminate\Contracts\Validation\ValidatesWhenResolved; use Illuminate\Contracts\Validation\Factory as ValidationFactory; class FormRequestRulesParser { /** * Form request class name strin...
true
bc945f897d1baef2574e23e5af0146b8c2ec695b
PHP
valmayaki/qio
/src/File/Asset/State.php
UTF-8
6,380
2.640625
3
[ "MIT" ]
permissive
<?php namespace qio\File\Asset { use qtil; class State implements \qio\Asset\State { use qtil\Factory; /** * Stores local state cache * @var \qio\Directory\Cache */ protected $cache; /** * Default file asset constructor ...
true
9a5c6552cae874b03b499ca510f299d3cb5e8acc
PHP
bhuvism/online-voting
/admin.php
UTF-8
1,937
2.8125
3
[]
no_license
<?php $password = trim($_POST['password']); $password_err = ""; require_once "config.php"; if($_SERVER["REQUEST_METHOD"] == "POST"){ $sql = "SELECT password FROM admin"; $stmt = mysqli_prepare($link,$sql); mysqli_stmt_execute($stmt); $result = mysqli_stmt_get_result($stmt); $array = mysqli_fetch_ass...
true
4f1689842a9b2c88b15a14af707fc042f2559964
PHP
Nadeemkhattak/wordpress
/wp-content/plugins/learnpress/inc/curds/class-lp-section-curd.php
UTF-8
16,082
2.78125
3
[ "LicenseRef-scancode-unknown-license-reference", "GPL-1.0-or-later", "GPL-2.0-only", "GPL-2.0-or-later" ]
permissive
<?php /** * Class LP_Section_CURD * * @since 3.0.0 */ class LP_Section_CURD extends LP_Object_Data_CURD implements LP_Interface_CURD { /** * @var int * * @since 3.0.0 */ private $course_id = null; /** * LP_Section_CURD constructor. * * @param $course_id * * @since 3.0.0 */ public function ...
true
bd24d9d5daade7a5e9f3d14f3d7585a186989c25
PHP
jonkiky/ken
/template/api.php
UTF-8
1,379
2.921875
3
[]
no_license
<?php /** * API class * @author Rob * @version 2015-06-22 */ class api { private $db; /** * Constructor - open DB connection * * @param none * @return database */ function __construct() { $conf = json_decode(file_get_contents('configuration.json'), TRUE); $this->db = new mysqli($conf["host"],...
true
481c6b3dd908d7c8bffcaedcb0ead7c6926b764a
PHP
H-zakaria/MyRep
/tableau_employes/modification.php
UTF-8
2,524
3.109375
3
[]
no_license
<?php $in = file_get_contents("personnes.txt"); echo "contenu actuel: ".$in; echo "<br>"; echo "<hr>"; echo "à modifier:\n "; $newLine =""; //recuperer la ligne à modifier = $newLine; if (isset($_POST["id"]) && isset($_POST["nom"]) && isset($_POST["prenom"]) && isset($_POST["email"]) &&...
true
ee8ba0eba2f4957d4eed534eabb0b964586ceca1
PHP
ss-vv/hy
/api/tianjipay/pay_php/doRefundOrder.php
UTF-8
1,443
2.53125
3
[]
no_license
<?php /* * * 功能:退款处理文件 * 版本:1.0 * 日期:2012-03-26 * 说明: * 以下代码只是为了方便商户测试而提供的样例代码。 */ require_once("lib/pay.Config.php"); require_once("lib/Pay.class.php"); // 请求数据赋值 $data = ""; // 商户APINAME,支付退款申请 $data['service'] = $APINAME_REFUND; // 商户API版本 $data['version'] = $API_VERSION; // 商户在支付的平台号 $data['merId'] = $MERCH...
true
b8d85e74f19315c0b6a0a9d302eb1601ad2c1ade
PHP
phelippe/codedelivery
/app/Transformers/ProductTransformer.php
UTF-8
497
2.609375
3
[ "MIT" ]
permissive
<?php namespace CodeDelivery\Transformers; use CodeDelivery\Models\Product; use League\Fractal\TransformerAbstract; /** * Class OrderItemTransformer * @package namespace CodeDelivery\Transformers; */ class ProductTransformer extends TransformerAbstract { public function transform(Product $model) { ...
true
89ead91ab2e0c2ce84f810db29041416bf7a89d6
PHP
hishamhadraoui/forum
/inc____/class.friend.php
UTF-8
7,080
2.609375
3
[]
no_license
<?php require_once 'class.database.php'; require_once("__func.php"); class friend { public $u1; public $u2; public function requiest_friend($u1){ global $gets, $agets, $dbc , $me, $topic_row , $fr_request_on; $u2 = $me; $frstmt = $dbc->runQuery("SELECT * FROM ".prx."friends"); $frstmt->execute(...
true
b8e5080a8ccb5dd090c8a263490ad2d9b4532b09
PHP
mnajafy/dr_m_barber_shop
/core/db/conditions/ConjunctionConditionBuilder.php
UTF-8
1,191
2.8125
3
[]
no_license
<?php namespace core\db\conditions; use core\db\ExpressionBuilderInterface; use core\db\ExpressionInterface; class ConjunctionConditionBuilder extends ConditionBuilder implements ExpressionBuilderInterface { public function build(ExpressionInterface $condition, array &$params = []) { $parts = $this->buildEx...
true
5a523b27734720b326909df11ea8616715dbf85d
PHP
ShanoFE/PHP-ADVANCED
/1-Arrays/taak01/index.php
UTF-8
1,060
2.921875
3
[]
no_license
<?php $student1["voornaam"] ="Piet"; $student1["achternaam"] ="Pieterson"; $student1["leeftijd"] ="23"; $student1["klas"] ="9a"; echo "Mijn voornaam is " . $student1["voornaam"]. "<br>"; echo "Mijn achternaam is " . $student1["achternaam"]. "<br>"; echo "Ik ben " . $student1["leeftijd"]. "<br>"; echo "Ik zit in klas "...
true
4d189ba2336b3c4b85958272bdf7c2a1256b70e8
PHP
Florian-ude/wetterstation
/location.class.php
UTF-8
1,023
3.21875
3
[]
no_license
<?php class Location { protected $name; protected $latitude; protected $longitude; protected $weather; public function __construct($name, $latitude,$longitude) { $this->name = $name; $this->latitude = $latitude; $this->longitude = $longitude; $ch = curl_init();...
true
dcc06ce1c81c10c9b72a959bc48c90ccb1c35d76
PHP
OliveStudio/olivemenus
/src/services/OlivemenuItemsService.php
UTF-8
14,110
2.59375
3
[ "MIT" ]
permissive
<?php /** * Olivemenus plugin for Craft CMS 4.x * * OliveStudio menu * * @link http://www.olivestudio.net/ * @copyright Copyright (c) 2018 Olivestudio */ namespace olivestudio\olivemenus\services; use olivestudio\olivemenus\models\OlivemenusItemsModel; use olivestudio\olivemenus\Olivemenus; use olivestudi...
true
80729321a88c7a39363077c20fb429d51b811fe6
PHP
geraldyne/sofiah
/app/Transformers/Operative/SpecialfeedetailsTransformer.php
UTF-8
1,475
2.515625
3
[ "MIT" ]
permissive
<?php /** * @package SOFIAH.App.Transformers.Operative * * @author Idepixel. <idepixel@gmail.com>. * @copyright Todos los derechos reservados. SOFIAH. 2017. * * @since Versión 1.0, revisión 09-10-2017. * @version 1.0 * * @final */ /** * Incluye la implement...
true
bd1f4531b886129dab666b0888894db65953101d
PHP
viniciusmf39/php
/phpOrientadoAObjetos/namespaceEUseKeywords_Class1.php
UTF-8
329
3.5
4
[]
no_license
<?php // namespace --> serve para dividir nossas classes em sessões namespace Sessao1; use Sessao2\Class2; // Dessa forma posso remover a \Sessao2\ de new \Sessao2\Class2() class Class1 { function __construct() { echo "Classe 1 instânciada!<br/>"; new Class2; } ...
true
7adad023dc593913bfed139fcbc35d8921db3bda
PHP
work-time-logger/WorkTimeLogger
/WorkTimeLoggerServer/app/Domain/Employee/Events/EmployeeCreated.php
UTF-8
427
2.875
3
[]
no_license
<?php namespace App\Domain\Employee\Events; use Spatie\EventProjector\ShouldBeStored; class EmployeeCreated implements ShouldBeStored { /** * @var string */ public $first_name; /** * @var string */ public $last_name; public function __construct(string $first_name, string...
true
7bafb846a42c36196a25def6fd247ea154b1e1b7
PHP
rivix666/rme_plugin
/includes/utils/download_m3u.php
UTF-8
1,507
2.625
3
[]
no_license
<?php // Include this file only if we are on SUBS_ENDPOINT if (basename(parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)) == SUBS_ENDPOINT) { include_once "global.php"; function downloadM3u() { try { $uuid = $_GET['uuid']; $sub_id = $_GET['id']; $content...
true
3dff96536dfc10ea6859df7c55b2c4b17c234a4e
PHP
aansubarkah/Pemeriksa
/app/Controller/SimplecategorytreeviewsController.php
UTF-8
4,442
2.515625
3
[]
no_license
<?php App::uses('AppController', 'Controller'); /** * Simplecategorytreeviews Controller * * @property Simplecategorytreeview $Simplecategorytreeview * @property PaginatorComponent $Paginator */ class SimplecategorytreeviewsController extends AppController { /** * Components * * @var array ...
true
8eae2bfddffa91349720064f2d9f7517fbf828df
PHP
recbin/Quick-WordPress-Customizer
/qwc/controls/button/control.class.php
UTF-8
1,094
2.640625
3
[]
no_license
<?php qwc_register_control( 'button', 'Qwc_Control_Button' ); function qwc_register_control_button( $wp_customize ){ class Qwc_Control_Button extends WP_Customize_Control { public $type = 'button'; public $args = array(); public function __construct( $manager, $id, $args = array() ) { $this->args = $args; ...
true
1bf07bcba6d419816382d45b50952169ef9cb17c
PHP
namexd/we
/app/Models/Upload.php
UTF-8
2,040
2.703125
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Exception; use Illuminate\Database\Eloquent\Model; use OSS\Core\OssException; use Storage; class Upload extends Model { protected $fillable = ['uniqid', 'user_id', 'app', 'action', 'unit_id', 'filename', 'url', 'ext', 'type', 'note']; public function upload($file, $user_id, $...
true
22fb3c012c0ec0ea39503e5c391fdbeec04c0b93
PHP
irit24/rekweb2020_183040013_phpmvc
/app/models/Mahasiswa_model.php
UTF-8
3,044
2.8125
3
[]
no_license
<?php class Mahasiswa_model{ private $table ='mahasiswa'; private $db; public function __construct() { $this->db = new Database; # code... } // db handler // private $dbh; // private $stmt; // public function __construct(){ // //data source name // $d...
true
1c85d6e960386ef05a6c211346156d07c3cd5968
PHP
masterflash-ru/admin
/src/Service/Admin/JqGrid/Plugin/GetAdminUrls.php
UTF-8
2,105
2.546875
3
[]
no_license
<?php namespace Admin\Service\Admin\JqGrid\Plugin; use Admin\Service\JqGrid\Plugin\AbstractPlugin; class GetAdminUrls extends AbstractPlugin { protected $controllers_descriptions; public function __construct($controllers_descriptions) { $this->controllers_descriptions=$controllers_descrip...
true
2d4a468917936a8bc799fc9e602abdb9bcedaf92
PHP
kefirzhang/pookyAdmin
/site/app/Http/Controllers/BookController.php
UTF-8
3,203
2.671875
3
[ "Apache-2.0" ]
permissive
<?php /** * @desc 示例流程 Controller Model view curd */ namespace App\Http\Controllers; use App\Model\Chapter; use Illuminate\Http\Request; use App\Model\Book; class BookController extends Controller { /** * Create a new controller instance. * * @return void */ public function __construct()...
true
48689a6798f272b934903910b7cad9da65edef9a
PHP
jojoe77777/BlockSniper
/src/BlockHorizons/BlockSniper/revert/RevertStore.php
UTF-8
2,929
2.75
3
[ "Apache-2.0" ]
permissive
<?php declare(strict_types=1); namespace BlockHorizons\BlockSniper\revert; use BlockHorizons\BlockSniper\revert\async\AsyncRevert; use BlockHorizons\BlockSniper\revert\sync\SyncRevert; class RevertStore{ /** @var IUndo[] */ private $undoStack = []; /** @var int */ private $maxRevertStores = 15; /** @var IRedo...
true
3f9bd05a2ffd3ba9c12f6df171cb1a036fd1d486
PHP
vaboliss/BlogWebsite
/api/models/User.php
UTF-8
2,258
3.1875
3
[]
no_license
<?php class User { //DB stuff private $conn; private $table = 'users'; //Post proterties public $id; public $firstName; public $lastName; public $email; public $password; public $privileges; //Constructor public function __construct($db) { $this->conn = $db;...
true
b3954e81a74f803440dbc0a2cb4a8d564083c72c
PHP
lokilaufeyson98/signup_login
/Code/login.php
UTF-8
665
2.640625
3
[]
no_license
<?php session_start(); if (isset($_POST['login_btn'])) { $username = $_POST['username']; $password = $_POST['password']; $_SESSION["username"] = $username; $contact = new mysqli("localhost","root","","db_demo"); $statment = $contact->prepare("SELECT * FROM user WHERE username=? AND ...
true
7a7f6a1ea734600c3d477aae21b60f374aa94187
PHP
prashantverma123/cms-mhc
/lib/functions.php
UTF-8
15,777
2.953125
3
[]
no_license
<?php //Define all functions here function __autoload($className){ if(file_exists(DOCUMENTROOT.'/classes/class.'.$className.'.php')){ include_once(DOCUMENTROOT.'/classes/class.'.$className.'.php'); } } /* Function to take sentences on word boundary's Starts */ function str_stop($string, $max_length){ if...
true
88734765476d8f8780ecdabd0b52916127558d5c
PHP
byliumingjie/admin
/admin/application/extends/pb_proto_test.php
UTF-8
3,693
2.9375
3
[]
no_license
<?php /** * Auto generated from test.proto at 2016-04-19 16:28:14 */ /** * PhoneNumber enum */ final class PhoneNumber { const MOBILE = 0; const HOME = 1; const WORK = 2; /** * Returns defined enum values * * @return int[] */ public function getEnumValues() { re...
true
5389cf3b83f6310c44ccb64c452709f715d65522
PHP
Apinartist/silverstripe-sunny-side-up-general
/sharethis/trunk/code/model/SocialNetworkingLinksDataObject.php
UTF-8
2,452
2.6875
3
[]
no_license
<?php /** * *@author nicolaas[at]sunnysideup.co.nz *@description: creates a list of places where people can follow you (e.g. twitter, your blog, etc...) * */ class SocialNetworkingLinksDataObject extends DataObject { static $db = array( 'URL' => 'Varchar(255)', 'Title' => 'Varchar(255)', 'Sor...
true
886b0e75424d3d4b5991f295ac8ebf5d152ae268
PHP
LeonColt/redmotor
/action/SubmitSelling.php
UTF-8
3,556
2.84375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: LC * Date: 17/07/2017 * Time: 17:43 */ require_once standart_path.'core/MySQLAccess.php'; require_once standart_path.'core/Random.php'; require_once standart_path.'dataobject/Penjualan.php'; require_once standart_path.'dataobject/Pemesanan.php'; require_once standart_path....
true
9a900af7af414264578ccd4e0fd946a1f8ab1d13
PHP
huyefork/opentype-1
/src/File/CollectionHeader.php
UTF-8
3,335
3.09375
3
[ "MIT" ]
permissive
<?php namespace PhpFont\OpenType\File; use PhpFont\OpenType\StreamInterface; /** * An OpenType font collection file header. */ class CollectionHeader { const TTCF_ID = 0x74746366; /** * TrueType Collection ID string: 'ttcf' * * @var int */ private $tag; /** * Version of t...
true
8e4d32adf5c104e73dfa3af7c6f8fec8ef8c3e68
PHP
PerfilovStanislav/InvestmentMarketplace
/App/Helpers/Arrays.php
UTF-8
708
2.875
3
[]
no_license
<?php namespace App\Helpers; class Arrays { public static function groupBy(array $array, array $cols): array { $newArray = []; foreach ($array as $a) { $t = &$newArray; foreach ($cols as $col) { $t = &$t[$a[$col]]; } $t = array_filter...
true
042d26c94a703a0983c4f032474962864258c778
PHP
berejant/kneu-portfolio
/app/Console/Commands/KneuApiImport.php
UTF-8
3,412
2.6875
3
[]
no_license
<?php namespace Kneu\Portfolio\Console\Commands; use Illuminate\Console\Command; use \Kneu\Api; use Carbon\Carbon; use Kneu\Portfolio\Department; use Kneu\Portfolio\Faculty; use Kneu\Portfolio\Teacher; class KneuApiImport extends Command { /** * The name and signature of the console command. * * @...
true
d45e4c1f08a3e639316852ec972c8106ba4a4154
PHP
guillesgc/pos1
/controladores/ccuerpo.controlador.php
UTF-8
4,956
2.515625
3
[]
no_license
<?php class ControladorCcuerpo{ /*============================================= CREAR CUARTEL CUERPO =============================================*/ static public function ctrCrearCcuerpo(){ if(isset($_POST["nuevoCcuerpo"])){ if(preg_match('/^[a-zA-Z0-9ñÑáéíóúÁÉÍÓÚ\- ]+$/', $_POST["nuevoCcuerpo"])){...
true
889442084306231531236e86517db2e6b4c6728d
PHP
tylerm7676/Laravel
/app/Driver.php
UTF-8
789
2.75
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Driver extends Model { /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'username', 'email', 'address_id', 'sponsoring_org' ]; /** * Get system user associated ...
true
2b158d543ed862de4245a7f79bf9d617523a2aca
PHP
Stolz/php-stubs
/res/php/pcntl/functions/pcntl-wexitstatus.php
UTF-8
201
2.609375
3
[ "Apache-2.0", "CC-BY-3.0" ]
permissive
<?php /** * Returns the return code of a terminated child * * @phpstub * * @param int $status * * @return int Returns the return code, as an integer. */ function pcntl_wexitstatus($status) { }
true
2599fdcd0995534445a0ab88cb49b958144bc408
PHP
fduch2k/yii-sms-manager
/src/TSAtomparkGateway.php
UTF-8
4,901
2.671875
3
[ "MIT" ]
permissive
<?php /** * SMS ePochta v2 api gateway * * @link https://github.com/fduch2k/yii-sms-manager * @author Alexander Hramov <alexander.hramov@gmail.com> * @author Victor Tyurin * @copyright Copyright (c) 2012-2014, TagShake Ltd. * @license http://opensource.org/licenses/MIT */ class TSAtomParkGateway extends TSSms...
true
f60eea518be6a200041ea95978c44b78fe6a6a07
PHP
KIZI/EasyMiner-EasyMinerCenter
/app/model/preprocessing/entities/PpTask.php
UTF-8
2,014
3
3
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
<?php namespace EasyMinerCenter\Model\Preprocessing\Entities; use Nette\Utils\Strings; /** * Class PpTask * @package EasyMinerCenter\Model\Preprocessing\Entities * @author Stanislav Vojíř * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0 * * @property string $taskId * @property ...
true
5aab78adf5ac81b96fe20806fdb8946b3eeac344
PHP
amey-SN/passwrdmanager
/newentry.php
UTF-8
1,246
2.78125
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>New</title> </head> <body> <center> <form action="./newentry.php" method="post"> <label for="">Enter ...
true
f5b6fc7178bca24dd70bfdd68f86b4753987ead4
PHP
vismaramatteo/virtualcoaching
/approva.php
UTF-8
2,966
2.53125
3
[]
no_license
<?php session_start(); //stabilisco connessione col server $connection=mysqli_connect("localhost","root",""); mysqli_select_db($connection,"my_virtualcoaching") or die ("Error"); $user=$_SESSION['login_user']; //salvo in 3 variabili ciò che passo nella funzione $IDEsercizio=$_GET["IDEsercizio"]; $...
true
6064874b858351397f6a4a5f58261a057feb258d
PHP
ajowsentry/sqltark-7
/SqlTark/Query/Traits/Condition.php
UTF-8
7,070
2.65625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace SqlTark\Query\Traits; use SqlTark\Component\LikeType; trait Condition { use BaseCondition; public function orCompare($left, string $operator, $right) { return $this->or()->compare($left, $operator, $right); } public function equals($left, $right...
true