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
832fcb9250137148759691f60156ee14df47f662
PHP
irhamumam17/techcomfest2021_sediatech
/Scevtect_BackEnd/app/Http/Controllers/Admin/LevelSchoolController.php
UTF-8
1,450
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Admin; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use App\Models\LevelSchool; class LevelSchoolController extends Controller { /** * route: /api/admin/school/level * method: get * params: null * description: * this metho...
true
ef7b827f2bbcd58f30921e3fd6352eddebcff614
PHP
Polar-Youth/Country-API
/app/Support.php
UTF-8
1,045
2.546875
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; /** * Class Support * * @package App */ class Support extends Model { /** * Mass-assign fields for the database. * * @var array */ protected $fillable = ['author_id', 'title', 'post']; /** * Get the status for the ...
true
24c7d44abe084895d3c88bb3e2a1559e92bda952
PHP
hh207d/msbattle
/src/Helper/Orientation.php
UTF-8
132
2.546875
3
[]
no_license
<?php namespace App\Helper; abstract class Orientation { const VERTICAL = 'VERTICAL'; const HORIZONTAL = 'HORIZONTAL'; }
true
31d11558ec2fe9c44331a18d5c6ddaad33945c41
PHP
chkir/flipsite
/src/Assets/Options/HexOption.php
UTF-8
723
2.84375
3
[ "Apache-2.0" ]
permissive
<?php declare(strict_types=1); namespace Flipsite\Assets\Options; final class HexOption extends AbstractImageOption { public function getEncoded(?float $scale = null) : ?string { return null === $this->value ? null : $this->prefix.str_replace('#', '', $this->value); } public function getValu...
true
272cf453dc40b86e8a603b18eb2ac6653be2f0f9
PHP
ngannpk/Frontend
/data/save-data.php
UTF-8
1,150
2.578125
3
[]
no_license
<?php $name=$_POST['User']['name']; //1 $id=$_POST['User']['id']; //2 $dob=$_POST['User']['dob']; //3 $password=md5($_POST['User']['password']); //4 $gender=$_POST['User']['gender']; //5 $region=$_POST['User']['region']; //6 if(!isset($_POST['User']['hobbies'])){ //7 $hobbies=''; } else{ $hobbies=$_POST['User']...
true
7890af7dc42845fb701da448315a7b12fe02bd34
PHP
apolinux/cime
/inc/admpag.php
UTF-8
5,209
2.625
3
[ "MIT" ]
permissive
<?php $_accion= isset($_GET['_accion']) ? $_GET['_accion'] : ''; if (isset($_REQUEST['paginax']) ) $paginax=$_REQUEST['paginax']; else $paginax=0; $cod_tarea= isset($_REQUEST['cod_tarea']) ? $_REQUEST['cod_tarea'] : ''; $pagina_nueva=isset($_REQUEST['pagina_nueva']) ? $_REQUEST['pagina_nueva'] : ''; ...
true
24216e49708d6434531cf7aa955722c25d25f50c
PHP
adoy/php-src
/ext/shmop/tests/002.phpt
UTF-8
2,400
2.625
3
[ "PHP-3.01", "IJG", "Zlib", "OLDAP-2.8", "BSD-4-Clause-UC", "ISC", "BSD-3-Clause", "LicenseRef-scancode-other-permissive", "LicenseRef-scancode-public-domain", "TCL", "BSD-2-Clause", "GD" ]
permissive
--TEST-- shmop extension error messages --CREDITS-- edgarsandi - <edgar.r.sandi@gmail.com> --EXTENSIONS-- shmop --FILE-- <?php echo PHP_EOL, '## shmop_open function tests ##', PHP_EOL; // Invalid flag when the flags length != 1 try { shmop_open(1338, '', 0644, 1024); } catch (ValueError $exception) { echo $ex...
true
07c6004c0497b90703bb7ab1297ae2195492acda
PHP
Mansourkira/pi3a37
/src/Entity/Ordonnance.php
UTF-8
1,027
2.578125
3
[]
no_license
<?php namespace App\Entity; use App\Repository\OrdonnanceRepository; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass=OrdonnanceRepository::class) */ class Ordonnance { /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $nOrdonnance; /** ...
true
44d9f52d357ea923ac90dcba2abbd20d444af184
PHP
Mateus17/tuto_oc_php_mysql
/tests/tp2/exo_tp/minichat_post.php
UTF-8
855
2.890625
3
[]
no_license
<?php // Creeation d'un cookie avec le pseudo setcookie('pseudonyme', $_POST['pseudo'], time() + 365*24*3600, null, null, false, true); // On verifie que les 2 champs envoyés ne sont pas vides (j'ai essauyé avec isset mais cela ne marche pas! if (!empty($_POST['pseudo']) AND !empty($_POST['message'])) { // Connexi...
true
948a32cafc1425c5a62e12807bbf3c804df52740
PHP
bereznii/booking-api
/app/Console/Commands/UpdateUniqueTestsTableCommand.php
UTF-8
2,916
2.6875
3
[ "MIT" ]
permissive
<?php namespace App\Console\Commands; use App\Models\Center; use App\Models\UniqueTests; use App\Services\LogService; use Illuminate\Console\Command; /** * Class UpdateUniqueTestsTableCommand * @package App\Console\Commands */ class UpdateUniqueTestsTableCommand extends Command { /** * The name and signa...
true
1347ae909b677d47c97b81d38e55478eb6354215
PHP
ipeevski/SPHP
/blog/index.php
UTF-8
2,707
2.671875
3
[]
no_license
<?php require_once('config.php');?> <html> <head> <title><?php echo $title; ?></title> <style type="text/css"> .border {boder-style: solid; border-color: #006600; border-width: thin;} </style> </head> <body> <?php include('functions.php'); if (isset($_POST['passwd']) && $_POST['passwd'] == $p...
true
00caa727eed4061e858ea0f7b2c1c430d213ab5e
PHP
brandon14/unit-test-examples
/src/Services/Status/Providers/PdoProvider.php
UTF-8
3,407
2.671875
3
[ "MIT" ]
permissive
<?php /** * This file is part of the brandon14/unit-test-examples package. * * MIT License * * Copyright (c) 2018-2021 Brandon Clothier * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Soft...
true
fd881259f2bdcf3e39d630499684e687ca196c4a
PHP
chrisdlarosa/server3
/scripts/database.php
UTF-8
2,211
2.84375
3
[]
no_license
<?php class Database { private $PDOLocal; private $user = "root"; private $password = ""; private $server ="mysql:host=localhost; dbname=server"; function conectarBD() { try{ $this->PDOLocal = new PDO($this->server,$this->user,$this->password); } catch(PDOException $e){ echo $e->getMessage(); } } ...
true
edf1132363399a5575ffdfd7be73eff35b5b984f
PHP
cakephp/cakephp
/src/Command/CacheClearCommand.php
UTF-8
2,957
2.75
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); /** * CakePHP(tm) : Rapid Development Framework (https://cakephp.org) * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org) * * Licensed under The MIT License * For full copyright and license information, please see the LICENSE.txt * Redistributions of files m...
true
76b3396abc33e0397bc5437a00966b9ce1b39800
PHP
cass-project/cass
/src/backend/src/Domain/bundles/Subscribe/src/Repository/SubscribeRepository.php
UTF-8
7,334
2.59375
3
[]
no_license
<?php namespace CASS\Domain\Bundles\Subscribe\Repository; use CASS\Domain\Bundles\Collection\Entity\Collection; use CASS\Domain\Bundles\Community\Entity\Community; use CASS\Domain\Bundles\Profile\Entity\Profile; use CASS\Domain\Bundles\Subscribe\Entity\Subscribe; use CASS\Domain\Bundles\Subscribe\Exception\ConflictSub...
true
f02c0c5c1e33863282e556727fd9c6b6b3768742
PHP
oooWezom/wezom-cms-landing
/Wezom/Modules/Orders/Models/OrdersItems.php
UTF-8
2,060
2.515625
3
[]
no_license
<?php namespace Wezom\Modules\Orders\Models; use Core\QB\DB; use Core\Arr; use Core\Message; use Core\Route; class OrdersItems extends \Core\Common { public static $table = 'orders_items'; public static $rules = []; public static function getRows($order_id) { ...
true
1222180fdbdb2761bd9bde7f3e92d4aa1c5dc76c
PHP
MasDeny/LearningApps
/application/controllers/api/Auth.php
UTF-8
8,076
2.578125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php defined('BASEPATH') or exit('No direct script access allowed'); // use chriskacerguis\RestServer\RestController; use Rakit\Validation\Validator; require APPPATH . '/libraries/REST_Controller.php'; class Auth extends REST_Controller { public function __construct() { parent::__con...
true
ca7f59b4f3f58db3550866f2597824140a1c04c9
PHP
jin123456bat/home
/system/core/webApplication.php
UTF-8
4,158
2.609375
3
[]
no_license
<?php namespace system\core; /** * 应用程序类 * * @author 程晨 */ class webApplication extends base { private $_config; function __construct($config) { $this->_config = $config; parent::__construct(); date_default_timezone_set($this->_config['timezone']); } /** * 入口点 */ function ...
true
001e19d0767cb7c912208c8b5c5310737aab7724
PHP
maciejkosiarski/xml-finder
/src/Condition/Feature/FeatureFactory.php
UTF-8
799
2.84375
3
[]
no_license
<?php namespace MaciejKosiarski\XmlFinder\Condition\Feature; use MaciejKosiarski\XmlFinder\Condition\BasicCondition; use MaciejKosiarski\XmlFinder\Condition\ConditionFeature; /** * Class FeatureFactory * @package MaciejKosiarski\XmlFinder\Condition\Feature * @author Maciej Kosiarski <mks@moleo.pl> */ class Feat...
true
01b94713857e43abe4d55e4a5899ef626c23cc56
PHP
nowelium/Hermit
/src/Queue/HermitQueueFilter.php
UTF-8
1,713
2.875
3
[ "Apache-2.0" ]
permissive
<?php /** * @author nowelium */ class HermitQueueFilter implements Iterator { // // FilterIterator だと、fetchしている時に // queue::currentの値がずれてしまうため、Iterator で全て実装する // const QUEUE_FOUND = '1'; const QUEUE_NOT_FOUND = '0'; protected $queue; protected $logger; public function _...
true
5b9298698d53041ff8524276d19ef6f9ad2e41d7
PHP
shadowster/mephex
/trunk/aggregator/AggItem.php
UTF-8
1,836
2.90625
3
[]
no_license
<?php require_once 'path.php'; require_once PATH_LIB . 'com/mephex/core/Date.php'; class AggItem { protected $title; protected $link; protected $description; protected $author; protected $guid; protected $guidPermaLink; protected $pubDate; public function __construct() { ...
true
5d1ecd048e930480924efb70e32ce5a4d24ff98b
PHP
AnnaHsu1/UMarkt
/Front Store/php/checkout.php
UTF-8
1,421
2.71875
3
[]
no_license
<?php $xml = new DOMDocument(); // initialize a DOM document $xml->load("../../Database.xml"); // load the xml database // register_user($xml); $order = $_SESSION["cart"]; foreach($order as $item){ } function register_user(&$xml) { $xml->validateOnParse = true; $xml->loadHTMLFile("../../Database.xml", LIBXML...
true
7b1a60d25fbd0143418c77d77e57f03c9eec63e8
PHP
axelrcas/hospicioapp
/app/Http/Controllers/Auth/LoginController.php
UTF-8
844
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Auth; use App\Http\Controllers\Controller; use Illuminate\Support\Facades\Auth; class LoginController extends Controller { public function mostrarLoginForm() { return view('login'); } public function login() { // Validacion de campos y declaracion ...
true
e087f6a57900e7b52556f878670efcf94190eecc
PHP
d4c5/kata-base-php
/test/SequenceHandlerTest.php
UTF-8
1,673
2.640625
3
[]
no_license
<?php namespace Kata\Test\SequenceHandler; use Kata\SequenceHandler; class SequenceHandlerTest extends \PHPUnit_Framework_TestCase { const MIN_VALUE = 0; const MAX_VALUE = 1; const NUM_VALUE = 2; const AVG_VALUE = 3; /** * @dataProvider providerSequence */ public function testMinimumValue(...
true
e582c6e1c102382979859511f06848191189eab6
PHP
seans888/H-Iris
/advanced/apps/customer/models/CustomerLogin.php
UTF-8
2,278
2.65625
3
[ "BSD-3-Clause" ]
permissive
<?php defined('MW_PATH') || exit('No direct script access allowed'); class CustomerLogin extends Customer { public $remember_me = true; /** * @return array validation rules for model attributes. */ public function rules() { $hooks = Yii::app()->hooks; $apps = Yii::app()-...
true
a4fce0a057a1a9da5ef6e914c4439ef6957bda9f
PHP
Manbec/MoviePost
/laravel/app/Http/Controllers/Auth/MoviePostLoginController.php
UTF-8
2,128
2.6875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Auth; use Auth; use App\User; use App\Http\Controllers\Controller; use Illuminate\Support\Facades\Input; use Illuminate\Http\Request; use Illuminate\Http\Response; use Illuminate\Routing\Route; use Illuminate\Support\Facades\Validator; use \Firebase\JWT\JWT; class MoviePostLoginC...
true
9230db1f4275be9fe664e71915d7f1c79df02354
PHP
MacBoyPro98/ChapelScan
/www/chapelScan/function/example.php
UTF-8
390
3.25
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: nteeter * Date: 9/20/2017 * Time: 4:23 PM */ class example { var $name; //constructor function __construct($persons_name) { $this->name = $persons_name; } //setter function set_name($new_name) { $this->name = $new_name; } ...
true
8f09abf0a2919809af57f9582674f28439d18756
PHP
secytunlp/cyt_mvc
/cyt_secure/view/gridModel/model/GridRendicionObservacionesValueFormat.Class.php
UTF-8
691
2.53125
3
[]
no_license
<?php /** * Formato para renderizar una observacion en las grillas * * @author Marcos * @since 08-06-2016 * */ class GridRendicionObservacionesValueFormat extends GridValueFormat { public function __construct() { parent::__construct(); } public function format($value, $item=null) { $oCriteria = new Cdt...
true
200723937c1fb20d3b7042e73e07f3cd4f4a95fb
PHP
voidabhi/php-scripts
/Redis.php
UTF-8
3,812
3.046875
3
[ "Apache-2.0", "MIT" ]
permissive
<?php class Redis { const CRLF = "\r\n"; private $connection; /** * Create a new instance of the class. * * @param string $server Redis server * @param integer $port Redis port * @param string $auth Redis auth */ public function __construct($server, $port = 6379, $auth = null) { $...
true
0c293145d2234d94dac54632f295ec76f435c0ec
PHP
sanjoyksaha/simpleblog
/app/controllers/Posts.php
UTF-8
8,605
3.1875
3
[]
no_license
<?php class Posts extends Controller { private $postModel; private $userModel; public function __construct() { if(!isLoggedIn()) { redirect('users/login'); } $this->postModel = $this->model('Post'); $this->userModel =...
true
a76bcdaa879089421020f18af3067a8883ebbc44
PHP
VilemR/hon_hackathlon_2019_rpaserver
/database/MultipleParms.php
UTF-8
944
2.921875
3
[]
no_license
<?php class MultipleParms { private $args = null; public function __construct(...$args) { $this->args = $args; if (count ( $args ) < 1) { throw new Exception ( "Incorrect input to procees with prepred statement" ); } } public function getNumberOfArguments() { return count ( $this->args ); } public func...
true
60a84c4b71305095b5b0800ac6b513286a3e5e02
PHP
miyakeylab/freetime_php
/laravel/database/seeds/GroupsTableSeeder.php
UTF-8
561
2.515625
3
[]
no_license
<?php use Illuminate\Database\Seeder; class GroupsTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $faker = Faker\Factory::create('ja_JP'); for($n = 0;$n < 20;$n++) { App\Group::create([ 'group_n...
true
105ce8dbc98c618c89aff0b0c823e0dd5b7f778b
PHP
overtrue/easy-sms
/src/Gateways/ModuyunGateway.php
UTF-8
2,800
2.625
3
[ "MIT" ]
permissive
<?php /* * This file is part of the overtrue/easy-sms. * * (c) overtrue <i@overtrue.me> * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace Overtrue\EasySms\Gateways; use Overtrue\EasySms\Contracts\MessageInterface; use Overtrue\EasySms\...
true
cf48906ba2d1a36e4043d1093d0af92085190eea
PHP
Lucie98765/visite360
/php/enregistrer.php
UTF-8
1,305
2.5625
3
[]
no_license
<?php // headers header("Content-Type: application/text; charset=UTF-8"); session_start(); if (!isset($_SESSION['id_user'])){ echo 'User non connecté'; http_response_code(422); exit(); } // check HTTP method $method = strtolower($_SERVER['REQUEST_METHOD']); if ($method !== 'post') { http_response_code(405); echo...
true
a2d8838fc1f2be9432dbbf3be5b88a5f047a21cb
PHP
AiPacino/dev-server
/system/module/order2/model/table/order2_similar_address_table.class.php
UTF-8
576
2.546875
3
[]
no_license
<?php /** * 订单地址相似 记录表 */ class order2_similar_address_table extends table { protected $fields =[ 'id', 'order_id', 'user_id', 'order_no', 'percent', ]; protected $pk ="id"; /** * 根据userID获取 * @param int $user_id 用户ID * @return mi...
true
c5bd8a6f25ea6d84af77189196e1a26833c11259
PHP
flamato/hms
/app/Model/Behavior/NatwestCSVBehavior.php
UTF-8
7,101
2.734375
3
[]
no_license
<?php /** * * PHP 5 * * Copyright (C) HMS Team * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @copyright HMS Team * @package app.Model.Behavior * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ App::use...
true
114fc82e94498eb9367da3e14a7faa83d53f2491
PHP
fuhyo/kakomon
/index.php
UTF-8
975
3.34375
3
[]
no_license
<?php /* git hub https://github.com/fuhyo/kakomon git init git remote add origin https://github.com/fuhyo/kakomon git add filename git commit -m "add new file" git push origin master git status git add [filename] git commit */ /* 出題モードを設定して、実行すると過去問が1題づつ出題される 選べる項目 ・難易度 ・分野 ・年度 ・出題問題数 ・形式(4択、ox) ・時間制限あ...
true
a3b3c2c3bef725baf17cba3ecca9f9cdbeb92686
PHP
igorkrysov/TicTacToe
/app/Http/Games/Storage.php
UTF-8
1,498
2.96875
3
[]
no_license
<?php namespace App\Http\Games; interface Storage { /** * @param int $unique may be session or mail * * Method return user_id */ public function get_id_user($unique); /** * @param int $user_id * * Method create new game and return game_id */ public function n...
true
6f076842337d5c7016285b8b1a6a0f4dd45be0e6
PHP
ekarincodizm/ulibm
/ULIB/inc/tmq_num_rows.php
UTF-8
465
2.5625
3
[]
no_license
<?php // พ function tmq_num_rows($t) { global $dbmode; //echo "[$dbmode]"; /*if ($tmp == null) { return 0; }*/ if ($dbmode=="mysql") { return mysql_num_rows($t); } if ($dbmode=="mysqli") { if (is_array($t)) { //echo "array"; return count($t); } $tmp=mysqli_num_rows($t); if ($tmp == false) { ...
true
24f6e18ae4c7f3e2a0c028d384555b4b75a5d242
PHP
itav/bank-statement
/src/ImportParser.php
UTF-8
5,522
2.703125
3
[]
no_license
<?php namespace App\Finance\Bank; class ImportParser { const SOURCE_CA = 'ca'; const SOURCE_IDEA = 'idea'; /** * * @param array $data * @return \App\Finance\Bank\Record */ public static function parseIdea($data) { if (!self::validateIdea($data)) { return ...
true
a6b5ebc24b23bca024a640405c08931e870f4561
PHP
jenesepas/ej_php
/ut03/p1.php
UTF-8
1,970
3.21875
3
[]
no_license
<!DOCTYPE html> <!-- To change this license header, choose License Headers in Project Properties. To change this template file, choose Tools | Templates and open the template in the editor. --> <html> <head> <meta charset="UTF-8"> <title></title> </head> <body> <h3>Prueba de conexion...
true
721921b6cae329eb6579721921e50cfabc9ab35c
PHP
new-Vegas/proyecto
/app/Http/Livewire/UtypeTable.php
UTF-8
1,885
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Livewire; use Livewire\Component; use Livewire\WithPagination; use App\Models\UserType; class UtypeTable extends Component { use WithPagination; public $isOpen = 0, $name, $nameES, $descENG, $descES, $utype_id; public function render() { return view('livewire.utyp...
true
4fa136c125b0c7dd9b58977c9a3f7d0031e6b04e
PHP
spbreality/spbreality
/src/Spb/RealityBundle/Entity/Search/CommercialSearch.php
UTF-8
1,606
2.515625
3
[ "MIT" ]
permissive
<?php namespace Spb\RealityBundle\Entity\Search; use Symfony\Component\Validator\Constraints as Assert; /** * Spb\RealityBundle\Entity\Search\Commercial * */ class CommercialSearch extends RealtySearch { /** * мин. площадь * * @var decimal $min_s * @Assert\Type(type="float") * ...
true
10d6d0ca1869248fdc30aeababa16380230139cc
PHP
kaetojn/web
/PFW/Desktop/PBS/PBS 11-17-2016/index.php
UTF-8
2,311
2.546875
3
[]
no_license
<?php include("db/sessions/config.php"); session_start(); if($_SERVER["REQUEST_METHOD"] == "POST") { // tgi and password sent from form $mytgi = mysqli_real_escape_string($db,$_POST['tgi']); $mypassword = mysqli_real_escape_string($db,$_POST['password']); $word = cry...
true
45be511143f5605c84906e89b28695709ec4b606
PHP
defender-11/php-src
/ext/gd/tests/colormatch.phpt
UTF-8
445
2.984375
3
[ "GD", "IJG", "Zlib", "LicenseRef-scancode-other-permissive", "TCL", "BSD-3-Clause", "BSD-4-Clause-UC", "OLDAP-2.8", "ISC", "LicenseRef-scancode-public-domain", "BSD-2-Clause", "PHP-3.01", "Apache-2.0" ]
permissive
--TEST-- imagecolormatch --SKIPIF-- <?php if (!function_exists('imagecolormatch')) die("skip gd extension not available\n"); ?> --FILE-- <?php $im = imagecreatetruecolor(5,5); $im2 = imagecreate(5,5); try { imagecolormatch($im, $im2); } catch (ValueError $exception) { echo $exception->getMessage() . "...
true
ba29aa1a5e42d749fef3950a0ff41568ca315c0e
PHP
404-html/Pop-Rock-PHP
/functions/get_albumMBArt.php
UTF-8
1,899
2.546875
3
[]
no_license
<?php require '../secrets/auth.php'; require_once '../rockdb.php'; require_once '../functions/albums.php'; require '../functions/artists.php'; require '../data_text/artists_arrays.php'; $session = new SpotifyWebAPI\Session($myClientID, $myClientSecret); $session->requestCredentialsToken(); $accessToken = ...
true
943a582ce773ccefa1888a1ec2f9df5ae247567f
PHP
agurchand/drupal8_examples
/cat_api/src/Service/CatApiClientInterface.php
UTF-8
361
2.546875
3
[]
no_license
<?php namespace Drupal\cat_api\Service; /** * Interface CatApiClientInterface. * * @package Drupal\cat_api\Service */ interface CatApiClientInterface { /** * Retrieve data from the cat api. * * @param string $endpoint * @param array $query * * @return array */ public function get(string ...
true
2216c63e00d5486276a8b0c398d7cd323d33a5f5
PHP
bigwhoop/trumpet
/src/Config/Params/AuthorsParam.php
UTF-8
4,426
3
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Bigwhoop\Trumpet\Config\Params; use Bigwhoop\Trumpet\Config\Author; use Bigwhoop\Trumpet\Config\ConfigException; use Bigwhoop\Trumpet\Config\Presentation; final class AuthorsParam implements Param { /** * {@inheritdoc} */ public function parse($value, Presen...
true
85dfe4ba6bf5eb36476f70585772b4618fd094af
PHP
antoniobec/palencia
/app/Http/Controllers/LocalidadesController.php
UTF-8
6,232
2.59375
3
[ "MIT" ]
permissive
<?php namespace Palencia\Http\Controllers; use Illuminate\Http\Request; use Palencia\Entities\Localidades; use Palencia\Entities\Paises; use Palencia\Http\Requests; use Palencia\Http\Requests\ValidateRulesLocalidades; //Validación class LocalidadesController extends Controller { /** * Display a listing of...
true
d5d79cabb6f38d88cb97793d33fa12e1617821e6
PHP
alexbushansky/just-shipping.dek
/app/Repositories/UserRepository.php
UTF-8
2,345
2.890625
3
[]
no_license
<?php namespace App\Repositories; use App\Models\Customer; use App\Models\Driver; use App\Models\User; use App\Repositories\Interfaces\UserRepositoryInterface; use App\Services\Interfaces\AvatarServiceInterface; use Illuminate\Http\Request; use Illuminate\Support\Facades\Hash; class UserRepository implements User...
true
e97a3d2dbda2e3a5f9b37c3dcffb47ada6033167
PHP
luciojb/iot_sensors
/sensor_iot/resources/project_resources/raspberry_and_server/gtw/database.php
UTF-8
1,806
3.109375
3
[]
no_license
<?php define('DB_SERVER', 'localhost'); define('DB_NAME', 'sensor_db'); define('DB_USERNAME', 'root'); define('DB_PASSWORD', ''); class Connection { var $db, $conn, $count = 0, $success = false; public function connect() { while (!$this->success && $this->count < 5) { try { if ($this->conn = mysqli_connec...
true
177a7cc88628e50fa696e1f695bcf5ed1352a99f
PHP
SanderBrijer/HaarlemFestival
/Model/customer.php
UTF-8
3,123
2.96875
3
[]
no_license
<?php require_once ("sqlModel.php"); require_once ("account.php"); class customer extends sqlModel { private int $id; private string $firstName; private string $lastname; private string $email; private ?account $account; protected const sqlTableName = "customer"; protected const sqlFields...
true
502b4bafa1fb9e74e1e8c9ab23a09a83031412c5
PHP
djefersonpreis/desenvolvimento-web-ii
/atividade_aula_01/lib/TFoot.class.php
UTF-8
562
3.4375
3
[]
no_license
<?php class TFoot { private $classes; private $trs; /** * TFoot constructor. * @param $classes * @param $trs */ public function __construct($classes, array $trs) { $this->classes = $classes; $this->trs = $trs; } function addTr($tr) { $this->trs[] = $tr; } public function __toString() { $htm...
true
4b85180069ea2e7981b90b36af2c494af5ab2ae7
PHP
tobeorla/PushApi
/PushApi/Controllers/SubscriptionController.php
UTF-8
2,598
2.734375
3
[ "MIT" ]
permissive
<?php namespace PushApi\Controllers; use \PushApi\PushApi; use \PushApi\PushApiException; use \PushApi\Models\Subscription; /** * @author Eloi Ballarà Madrid <eloi@tviso.com> * @copyright 2015 Eloi Ballarà Madrid <eloi@tviso.com> * @license http://www.opensource.org/licenses/mit-license.php The MIT License * Doc...
true
bfa584a23a9ad70af3a11d65faf9b1ca02d13f6d
PHP
shuber/phuby
/lib/phuby/environment.php
UTF-8
1,106
2.53125
3
[ "MIT" ]
permissive
<?php namespace Phuby; class Environment { static function append_include_path($path) { $include_path = get_include_path(); $include_path .= PATH_SEPARATOR.$path; return set_include_path($include_path); } static function autoload($class) { $filename = self::filename($clas...
true
6942012a294b5ca0086f281154436ebd47eafbd1
PHP
ccwrc/design_patterns_practice
/ExperimentalFolder/Other/SendEmailInterface.php
UTF-8
619
2.65625
3
[]
no_license
<?php declare(strict_types=1); namespace Patterns\ExperimentalFolder\Other; interface SendEmailInterface { /** * @param string $subject * @param string $content * @param string $emailAddress * * @throws \Exception */ public static function sendMail(string $subject, string $conte...
true
a8962238d63d843dba14d895a1cb251dbd03e084
PHP
turahe/boilerplate
/app/Services/Token/PasswordGenerators/NumericPasswordGenerator.php
UTF-8
1,311
3.234375
3
[ "MIT" ]
permissive
<?php /* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @modified 2/18/21, 7:01 PM * @author Nur Wachid * @copyright Copyright (c) 2021. */ namespace App\Services\Token\PasswordGenerators; use App\Services\Token\...
true
2e41a88ebb7adfdfcd2b6a8bec98e0aed7ea804a
PHP
larakit/lk
/src/Larakit/Page/Page.php
UTF-8
11,942
2.578125
3
[ "MIT" ]
permissive
<?php namespace Larakit\Page; use Illuminate\Support\Arr; use Illuminate\Support\Str; use Larakit\Event\Event; use Larakit\Html\Base; use Larakit\Html\Body; use Larakit\Html\LHtml; use Larakit\Route\Route; use Larakit\Widget\WidgetBreadcrumbs; use Larakit\Widget\WidgetH1; class Page { protected $t...
true
538f9138d90d4ea0eb09c973edd2093d26256ab3
PHP
jayendrajog/bruintime
/php/getProfessors.php
UTF-8
751
2.703125
3
[]
no_license
<?php require_once '../database.php'; $connection = new mysqli($db_hostname, $db_username, $db_password, $db_database); if($connection->connect_error) die ($connection->connect_error); $theclass = $_POST["theclass"]; $sub = $_POST["subject"]; $query = 'SELECT DISTINCT Professor FROM gradelist WHERE Subject ...
true
25acaa8a61b79e06139dc713f8750bc250556b67
PHP
gaetano1984/laravel-quake
/app/Services/quakeService.php
UTF-8
3,785
2.625
3
[ "MIT" ]
permissive
<?php namespace App\Services; use GuzzleHttp\Client; use App\Model\Earthquake; use App\Services\userService; use App\Services\locationService; use App\Repositories\quakeRepository; class quakeService { public $quakeRepository; public $userService; public $locationService; public function __construct(...
true
392905db92312adb7b969b269d605590b43f8f96
PHP
IT-490-Team7/Trial-error
/Rabbit_2/registered.php
UTF-8
1,680
2.625
3
[]
no_license
<?php session_start(); require_once __DIR__ . '/vendor/autoload.php'; use PhpAmqpLib\Connection\AMQPStreamConnection; use PhpAmqpLib\Message\AMQPMessage; include ('functions.php'); include "account.php"; $db = mysqli_connect($dbIP, $dbLogin, $dbPass, $dbName); if (empty($_POST['name'])){ echo "Forgot to enter yo...
true
89c7b50be966f354b0bf4cdcced097bebafb09e1
PHP
antrampa/UploadMultipleFileByJQyeryAndPhp
/ajaxupl/upload.php
UTF-8
1,928
2.578125
3
[]
no_license
<?php $uplfr = $_POST['uplfr']; //$files = $_FILES['file']; //fileselect $files = $_FILES['fileselect']; //die(print_r($files)); if(!is_dir($uplfr)) { if (!mkdir($uplfr, 7777, true)) { die('Failed to create folders...'); } } foreach ($files['error'] as $id => $err) { if ($err == UPLOAD_ERR_OK) ...
true
a7ddd7d1b8efafb1dd9a93dd3493f5632c36dda9
PHP
rguedes/Wot-Replay-to-Json-PHP
/phpickle/phpickle_unpickle.php
UTF-8
1,626
2.53125
3
[]
no_license
<?php require_once "phpickle_stack.php"; require_once "phpickle_memo.php"; require_once "phpickle_stream.php"; require_once "phpickle_gen_read_ops.php"; require_once "phpickle_op_mapper.php"; class phpickle_unpickle { private $debug = false; public function set_debug($onoff) { $this->debug = $onoff; } /** unp...
true
b949719d74921e44d1a9ff86d44594d0c2ba80b8
PHP
yusronarif/laravel-git-hooks
/tests/Git/LogTest.php
UTF-8
919
2.625
3
[ "MIT" ]
permissive
<?php namespace Butschster\GitHooks\Tests\Git; use Butschster\GitHooks\Git\Log; use Butschster\GitHooks\Tests\TestCase; class LogTest extends TestCase { function test_parse_log_from_console() { $log = new Log(<<<EOL commit bfdc6c406626223bf3cbb65b8d269f7b65ca0570 (HEAD -> feature/1, origin/feature/1)...
true
d2e30bc7ea1a391967c6a7d11aea7e29afe985e1
PHP
selective-php/validation
/tests/Encoder/JsonEncoderTest.php
UTF-8
1,148
2.5625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace Selective\Validation\Test\Encoder; use PHPUnit\Framework\TestCase; use Selective\Validation\Encoder\JsonEncoder; use UnexpectedValueException; /** * Tests. * * @coversDefaultClass \Selective\Validation\Encoder\JsonEncoder */ class JsonEncoderTest extends TestCase { /** * Test. * ...
true
b8694b1d612989ec0e2cd8ee72bacab3daf6d25c
PHP
Mouhamed-B/Printpencil
/functions.php
UTF-8
312
2.625
3
[]
no_license
<?php function nav_stacked_menu(array $table) { $active = " class=\"active\" "; echo "<ul class=\" nav nav-stacked nav-pills col-md-2 menu\">\n"; foreach ($table as $key => $item) { echo "<li$active><a href=\"#$key\" data-toggle=\"tab\">$item</a></li>\n"; $active=null; } echo "</ul>"; } ?>
true
8ae4525c725833a56dcef32fde9b29136b44ed6c
PHP
hiro14/ndatlas
/comp/nachtzug.php
UTF-8
422
2.5625
3
[ "MIT" ]
permissive
<!-- Function module for database connection. --> <?php $servername = "localhost"; $username = "root"; $password = ""; $database = "ndatlas_new"; // create connection $conn = new mysqli($servername, $username, $password); // connection check if ($conn->connect_error) { die("Failed: " . $conn->connect_error); } ...
true
978dabb6d0d76a8a5096962345db62adc7233f7b
PHP
nramenta/dabble
/tests/Dabble/ResultTest.php
UTF-8
9,253
2.71875
3
[ "MIT" ]
permissive
<?php use Dabble\Database; use Dabble\Result; /** * @requires extension mysqli */ class ResultTest extends Dabble_TestCase { public function testResult() { $result = $this->db->query('SELECT * FROM `post` ORDER BY `id` ASC'); $this->assertTrue($result instanceof Result); return $resu...
true
ea486e8d8b0d86b24e109d422fcf908d42e4086c
PHP
adamwulf/aurora
/avalancheWithGraphics/includes/include.visitormanager.php
UTF-8
3,696
2.984375
3
[]
no_license
<? //be sure to leave no white space before and after the php portion of this file //headers must remain open after this file is included ////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////// //////////////////////////////...
true
39d41c41d96f4609b0c58cfd43018efeaaaca2cb
PHP
anavrublevska/gallery_si
/app/src/Repository/GalleryRepository.php
UTF-8
2,278
2.5625
3
[]
no_license
<?php /** * Gallery Repository. */ namespace App\Repository; use App\Entity\Gallery; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Doctrine\ORM\OptimisticLockException; use Doctrine\ORM\ORMException; use Doctrine\Persistence\ManagerRegistry; use Doctrine\ORM\QueryBuilder; /** * @method...
true
a23626b2c8dcc1f5e44d6759df94af2e868e0c44
PHP
pear/PHP_Compat
/tests/function/array_intersect_key.phpt
UTF-8
534
3.046875
3
[]
no_license
--TEST-- Function -- array_intersect_key --FILE-- <?php require_once 'PHP/Compat/Function/array_intersect_key.php'; $array1 = array('blue' => 1, 'red' => 2, 'green' => 3, 'purple' => 4); $array2 = array('green' => 5, 'blue' => 6, 'yellow' => 7, 'cyan' => 8); print_r(php_compat_array_intersect_key($array1, $array...
true
fc7a8d5d0b54b24171be7c7be9a5ed348a4e96e4
PHP
vadimlvov71/rest
/rubric_menu.php
UTF-8
667
2.59375
3
[]
no_license
<?php function rubricMenu($menu, $page){ $class = ""; ?> <section class="white" > <h1 class="text-class text-center">Надпись1</h1> <div class="container"> <ul class="nav nav-tabs"> <?php foreach($menu as $name => $url){ if($page == $url){ $class = "active"; $class_div = ""; /...
true
5b6e7930aeea14d08af12664a091c44669142a1e
PHP
designfrontier/BookNotes
/Application/app/Data/Publisher.php
UTF-8
500
2.734375
3
[]
no_license
<?php namespace App\Data; class Publisher extends ValueObjectWithIdAndName { protected function initializeDataAttribute() { return array_merge(parent::initializeDataAttribute(), array('books' => array())); } protected function getRestrictedAttributesArray() { return array_merge(parent::getRestrictedAttribut...
true
2f8bec0361df4cacd329f42980085f27953fde65
PHP
krasnopyorovalex/krasber
/app/Page.php
UTF-8
1,652
2.609375
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; /** * App\Page * * @property int $id * @property string $template * @property int $image_id * @property string $name * @property string $slogan * @property string $title * @property string $description * @property string $text * @property string...
true
ac85d3e5581e9a73aad5e0d863f17f6ef2bda2f3
PHP
vietchinh/Project-Cinema7
/modules/reserveMovies.php
UTF-8
1,370
2.765625
3
[]
no_license
<?php // Section 1 - Intialize data from database and post // Date Creation: 18-03-2017 | Date Modification: 23-03-2017 $movieId = $_POST["filmId"]; $_SESSION["availableReservations"] = readShowdata($pdo, $movieId); $availableReservations = $_SESSION["availableReservations"]; $hallId = rea...
true
30c3c53f78c317e0612c8633f47e2ba45698c00d
PHP
officiallans/laveralangular
/app/BaseModel.php
UTF-8
722
2.59375
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Support\Facades\Auth; use Illuminate\Database\Eloquent\Model; abstract class BaseModel extends Model { public function __construct(array $attributes = array()) { if (Auth::user()) { $this->setRawAttributes(array( 'author_id' => Auth::user...
true
5bf3da1bbd3df630a9185c7e821134502748b82e
PHP
Ice-Productionz/Value-middleware
/tests/unit/Factory/ValueTest.php
UTF-8
3,007
2.625
3
[ "MIT" ]
permissive
<?php namespace IceProductionzTests\ValueMiddleware\Unit\Factory; use IceProductionz\Value\Identifier\Uuid; use IceProductionz\Value\Number\Integer; use IceProductionz\Value\Text\Short; use IceProductionz\Value\Uri\Url; use IceProductionz\ValueMiddleware\Exception\InvalidType; use IceProductionz\ValueMiddleware\Excep...
true
bcb0e800b03543cdf11888a60f9e644fdfbacccd
PHP
francielee/algoritmos
/idadeemdias.php
UTF-8
247
3.203125
3
[]
no_license
<?php /* Algoritmo que lê a idade de uma pessoa expressa em anos, meses e dias e mostre-a expressa apenas em dias */ $ano = $_GET["a"]; $meses = $_GET["m"]; $dias = $_GET ["d"]; echo $resultado = ($ano * 365 + $meses * 30 + $dias); ?>
true
cc86883833e2582b7134f08565951b6270dd2e26
PHP
rilwanfit/url-shortener
/api/src/Controller/GenerateController.php
UTF-8
2,607
2.515625
3
[]
no_license
<?php declare(strict_types=1); namespace App\Controller; use App\UrlGeneration\Application\UnvalidatedUrlRequest; use App\UrlGeneration\Application\UrlGeneration; use App\UrlGeneration\Domain\ShorteningUrlRequest; use Psr\Log\LoggerInterface; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symf...
true
8aa3b1b2da0f854f7873d871567b6f3d9a615391
PHP
Jacekmti/tdd-katas
/tests/CarpaccioTest.php
UTF-8
3,048
2.890625
3
[]
no_license
<?php declare(strict_types=1); namespace Test; use App\Carpaccio\Exception\WrongPriceException; use App\Carpaccio\Exception\WrongQuantityException; use App\Carpaccio\Order; use PHPUnit\Framework\TestCase; use TypeError; /** * Class CarpaccioTest * * @package Test */ class CarpaccioTest extends TestCase { /...
true
c672bb3e0e1da6a9de8bdee5801a494d376949c5
PHP
saundefined/codewars
/src/RGBToHexConversion.php
UTF-8
427
3.359375
3
[]
no_license
<?php /** * @link https://www.codewars.com/kata/rgb-to-hex-conversion/ */ namespace Saundefined\CodeWars; class RGBToHexConversion { public static function solution(int $r, int $g, int $b): string { return strtoupper(implode(array_map(static function ($item) { $item = min(255, max(0, $i...
true
fb92ef870821a6f3d61310086e07176b6bc4aa98
PHP
hgsk/punie
/punie/app/controllers/GreetingController.php
UTF-8
413
2.625
3
[]
no_license
<?php class GreetingController{ public function hello(){ /* * ideal caller * * $user = User.find(1); * $users = User.findByAge('>25'); * $users = User.findByNameIncludes('Nick'); * $courses = CourseAndSubject.findByOwnerId('1'); * */ ...
true
61faab1e20e005a4af583bad810dadbbe2860fca
PHP
brightonguni/fortunate_collections
/app/Model/Stores/Hour.php
UTF-8
530
2.65625
3
[ "MIT" ]
permissive
<?php namespace App\Model\Stores; use App\Model\Permissions\RoleUser; use Illuminate\Database\Eloquent\Model; class Hour extends Model { /**Category StoreHour * The table associated with the model. * * @var string */ protected $table = 'hours'; /** * The attributes that are mass...
true
2ae0308802b72a155ab60384d65fbcdfffb4ba52
PHP
JulietaAtanasova/phpFlowControl
/06_ModifyString.php
UTF-8
1,820
3.34375
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Modify String</title> </head> <body> <form action="<?php $_PHP_SELF ?>" method="POST"> <input type="text" name="string"> <input id ="check-palindrome" type="radio" name="mode" value="check_palindrome"/> <label for="check-palindrome...
true
a990908718a4741b454bceaefc51de87a2152d35
PHP
unijeje/ProyectoDAW
/servidor/gestionPersona/altaPersona.php
UTF-8
892
2.5625
3
[]
no_license
<?php include_once("../bbdd.php"); $oDatos=json_decode($_POST['datos']); $nombre=$oDatos->nombre; $nacionalidad=$oDatos->nacionalidad; $desc=$oDatos->desc; $genero=$oDatos->genero; $enlace=$oDatos->enlace; try { $miconexion=connectDB(); $sql="insert into personas(NOMBRE, NACIONALIDAD, GENERO, DESCRIPCION, ...
true
69364506726c1c25c0617557e7dae59a9c14c2cf
PHP
tokushima/rhaco3
/src/org/rhaco/net/xml/atom/Entry.php
UTF-8
3,091
2.65625
3
[]
no_license
<?php namespace org\rhaco\net\xml\atom; /** * Atomのentryモデル * @author tokushima * @var timestamp $published * @var timestamp $updated * @var timestamp $issued * @var Content $content * @var Summary $summary * @var org.rhaco.net.xml.atom.Link[] $link * @var org.rhaco.net.xml.atom.Author[] $author */ class Entr...
true
1d725731ad7fce104cda3334983c5572bd2d296e
PHP
degami/sitebase
/app/site/commands/Config/Edit.php
UTF-8
2,369
2.703125
3
[ "GPL-1.0-or-later", "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php /** * SiteBase * PHP Version 8.0 * * @category CMS / Framework * @package Degami\Sitebase * @author Mirko De Grandis <degami@github.com> * @license MIT https://opensource.org/licenses/mit-license.php * @link https://github.com/degami/sitebase */ namespace App\Site\Commands\Config; use App\Base...
true
5895b71221b3a4c3359c3aa3829aca8e13c38a2e
PHP
ProtonMail/bitcoin-php
/src/Transaction/SignatureHash/Hasher.php
UTF-8
1,550
2.828125
3
[ "Unlicense", "LicenseRef-scancode-free-unknown" ]
permissive
<?php declare(strict_types=1); namespace BitWasp\Bitcoin\Transaction\SignatureHash; use BitWasp\Bitcoin\Crypto\Hash; use BitWasp\Bitcoin\Script\ScriptInterface; use BitWasp\Buffertools\Buffer; use BitWasp\Buffertools\BufferInterface; class Hasher extends SigHash { /** * Calculate the hash of the current tr...
true
1f89062e533460a42bcbd11bb9f95f7b81511871
PHP
timotheJeannot/stage
/src/DataFixtures/AppFixtures.php
UTF-8
4,170
2.796875
3
[]
no_license
<?php namespace App\DataFixtures; use App\Entity\Utilisateur; use Doctrine\Bundle\FixturesBundle\Fixture; use Doctrine\Common\Persistence\ObjectManager; use Symfony\Component\Security\Core\Encoder\UserPasswordEncoderInterface; class AppFixtures extends Fixture { private $passwordEncoder; public function __...
true
3cd2aeb3bf3f5acc64c9ad4bf4049aa2294a2b8d
PHP
fcblittle/canben
/merchant/tags/0.1.0/application/Module/Common/Resource/views/default/scripts.tpl.php
UTF-8
985
2.53125
3
[]
no_license
<!--SCRIPT START--> <script type="text/javascript"> // This function is called from the pop-up menus to transfer to // a different page. Ignore if the value returned is a null string: function goPage (newURL) { // if url is empty, skip the menu dividers and reset the menu selection to default ...
true
0a711343b8221834cb05048b3add6dec343c0b30
PHP
Zyrey/sas-tracking
/app/Http/Controllers/StepDefaultController.php
UTF-8
4,817
2.609375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\EnrolledCourse; use App\Enrollment; use App\Form; use App\StepDefault; use App\Student; use App\Tracking; use App\TrackingStep; use Illuminate\Http\Request; use Illuminate\Support\Facades\Storage; class StepDefaultController extends Controller { public function creat...
true
d1b4549f9fab4163abb643c3a2a0ad23067cb3bb
PHP
SergioMadness/payment-laravel
/src/models/PayServiceOption.php
UTF-8
1,746
2.953125
3
[ "MIT" ]
permissive
<?php namespace professionalweb\payment\models; use professionalweb\payment\contracts\PayServiceOption as IPayServiceOption; class PayServiceOption implements IPayServiceOption { /** * @var string */ private $alias; /** * @var string */ private $label; /** * @var string ...
true
071810078ce8ae910c70704ff7ab1675d3af038e
PHP
jlinn/stripe-api-php
/src/Request/ListRequest.php
UTF-8
2,405
3.046875
3
[ "MIT" ]
permissive
<?php /** * User: Joe Linn * Date: 1/27/2015 * Time: 5:56 PM */ namespace Stripe\Request; class ListRequest { /** * @var int|Created */ protected $created; /** * @var string */ protected $endingBefore; /** * @var integer */ protected $limit; /** *...
true
03d5ccea7eb8f87aecfbfa67a7fc7a93d8c38e44
PHP
Duppie97/ITRW324_Group20_Project
/Fase 3/api.php
UTF-8
2,765
2.90625
3
[]
no_license
<?php // get the HTTP method, path and body of the request $method = $_SERVER['REQUEST_METHOD']; $request = explode('/', trim($_SERVER['PATH_INFO'],'/')); $txt = file_get_contents('php://input'); $arrParam = explode('&', $txt); $input = json_decode($arrParam[0],true); if ( ! isset($arrParam[1])) { $arrParam[1] = ...
true
1112ed99eff0bc62a86013a6361fea7c04413917
PHP
jolicode/slack-php-api
/generated/Model/ObjsSubteamPrefs.php
UTF-8
1,358
2.609375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); /* * This file is part of JoliCode's Slack PHP API project. * * (c) JoliCode <coucou@jolicode.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace JoliCode\Slack\Api\Model; class ObjsSub...
true
718c0b698f1fd9a3d4c10d9e4e98d5d7a1a1c894
PHP
241357/maccms
/apps/maccms/common.php
UTF-8
17,617
2.65625
3
[]
no_license
<?php /*-------------------本地参数调用API接口-------------------------------*/ /** * 按系统分类ID获取API数据列表第N页 * @param int $id 分类ID * @param int $page 页码 * @return array 数据列表 */ function apiTermId($id, $page=1){ $term = categoryId($id); $term['term_api_pg'] = $page; $term = apiTerm($term); return $term['item']...
true
02300207d9cc5db1a8c2a2ffe52597288ffeedcd
PHP
tiborizsak/phpallinone
/jelszoell2.0.php
UTF-8
2,939
3.046875
3
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> </head> <body> <form action="jelszoell2.0.php" method="get"> Ide írd a jelszót:<input type="text" name="jelszo"> (a jelszónak tartalmazni kell a magyar ábécé betűíből 2 kisbetűt 2 nagybetűt ...
true
85a08c760e074b7f09e5c6289058a8d3583e5231
PHP
diogoand1/AttwFramework
/Libraries/Attw/DB/Storage/PDOStorage.php
UTF-8
7,267
2.75
3
[ "MIT" ]
permissive
<?php /** * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribu...
true
b80ede840207b4746dd11965c335fe8a7983d376
PHP
SheriffEllis/StudentLogger
/pages/data_representation/create_function_page.php
UTF-8
4,999
2.6875
3
[]
no_license
<?php session_start(); if(isset($_POST['_ID'])){ $title = 'Edit Function'; $Function_ID = $_POST['_ID']; } else{ $title = 'Create Function'; } $web_section = 'data_representation'; $current_path = getenv('CURRENT_PATH'); $conn = new mysqli(getenv('HTTP_HOST'), getenv('HTTP_USER'), getenv('H...
true
de9961551523c2358766b65817a40b9e8b9f4366
PHP
projectsprep/tamizhistore
/models/DeliveryBoysModel.php
UTF-8
2,221
2.78125
3
[]
no_license
<?php namespace app\models; use app\models\DB; class DeliveryBoysModel { private $conn; private $table = "rider"; public function __construct() { $this->conn = new DB(); $this->conn = $this->conn->conn(); } public function __destruct() { $this->conn->close(); ...
true