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
cadd0ae9e60c322686924755cedba41af05a5a97
PHP
wavilap/php-course
/operators/arithmetic.php
UTF-8
93
3.015625
3
[]
no_license
<?php $a = 10; $b = 3; //$c = (int)($a / $b); $c = $a%$b; // modulo = residuo var_dump($c);
true
fe3b82413c22a82348b8d1497529eeea4afafe6c
PHP
zawiszaty/tutorials_tank
/symfony/src/Application/Command/User/ChangeAvatar/ChangeAvatarCommand.php
UTF-8
619
2.734375
3
[]
no_license
<?php namespace App\Application\Command\User\ChangeAvatar; use Symfony\Component\HttpFoundation\File\File; /** * Class ChangeAvatarCommand. */ class ChangeAvatarCommand { /** * @var string|null */ private $id; /** * @var File|null */ private $file; public function getId():...
true
c2880629a877048063893c4a2566e7b5f4294d94
PHP
amal-imz/produit
/database/migrations/2019_01_04_164320_create_cvs_table.php
UTF-8
921
2.59375
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateCvsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { /* Schema::create('cvs', function (B...
true
5b18e43389aeb603611542782489eaae5f7a22cd
PHP
milkcreation/presstify-bridge
/src/Contracts/Session/Store.php
UTF-8
2,843
2.828125
3
[]
no_license
<?php declare(strict_types=1); namespace tiFy\Contracts\Session; use Illuminate\Database\Query\Builder as DbBuilder; use tiFy\Contracts\Support\ParamsBag; interface Store extends ParamsBag { /** * @inheritDoc */ public function db(): DbBuilder; /** * Destruction de la session. * ...
true
6a724398d5215aa6f37ecd321be12615d01e51fa
PHP
ttseattle/info344-class-code
/php/test.php
UTF-8
1,227
3.96875
4
[]
no_license
Hey this is some content above the code <<<<<<< HEAD <?php $name = 'Tisha'; //declares a variable called name and assigns a value to it //like JS, PHP's variables are loosely typed $fullName = $name . 'Trongtham'; //concatenates String class Person { protected $name; //super in Java = parent in PHP publ...
true
4cc0999daaf7f6f6f2ddfd50657de1dd3d85fa33
PHP
wojtha/drupal_modules
/sync_user/plugins/SyncUserParser.inc
UTF-8
2,332
2.5625
3
[]
no_license
<?php /** * Parses a feed provided by PuSH User module. */ class SyncUserParser extends FeedsParser { /** * Implementation of FeedsParser::parse(). */ public function parse(FeedsImportBatch $batch, FeedsSource $source) { $xml = new SimpleXMLElement($batch->getRaw()); $xml->registerXPathNamespace('a...
true
e44b14175dc9cc8f02c5fe37c94e1a6187ac2f7a
PHP
kanneg881/Learning_PHP
/code/forms/forms-116.php
UTF-8
508
2.8125
3
[]
no_license
<?php print '<input type="checkbox" name="delivery" value="是"'; if ($defaults['delivery'] == '是') { print ' checked'; } print '>送出?'; /** @var array $checkboxOptions 複選框選項 */ $checkboxOptions = array( 'small' => '小', 'medium' => '中', 'large' => '大', ); foreach ($checkboxOptions as $value => $label) {...
true
20a858598dc5ef2d660b3867a758f4118a6543db
PHP
jlguenego/webocp
/server/ocp1/endpoint/start_all_quick.php
UTF-8
2,300
2.640625
3
[]
no_license
<?php define("SCRIPT_FILE", __FILE__); require_once(dirname(dirname(dirname(SCRIPT_FILE))) . '/include/header.inc'); $_REQUEST = array_merge($_GET, $_POST); if (isset($_REQUEST['node_qty'])) { $output = array(); try { $node_qty = intval($_REQUEST['node_qty']); $name = OCP::get_name_from_url($_SERVER['REQ...
true
f8dc9460773afc95e58c37f3829d7b892f0287c5
PHP
lovexqh/sns
/api/uc_client/model/course.php
UTF-8
1,464
2.53125
3
[]
no_license
<?php /** * @deprecated course课程表Model模块 * @author Ricker lhyfe@sohu.com * @version 1.0 * */ !defined('IN_UC') && exit('Access Denied'); class coursemodel { var $db; var $base; function __construct(&$base) { $this->_coursemodel($base); } function _coursemodel(&$base) { $this->base...
true
6c0ce68c6325e80e35a1de5649541fbda716febb
PHP
omniphx/forrest
/src/Omniphx/Forrest/Authentications/WebServer.php
UTF-8
5,249
2.578125
3
[ "MIT" ]
permissive
<?php namespace Omniphx\Forrest\Authentications; use GuzzleHttp\ClientInterface; use Omniphx\Forrest\Client; use Omniphx\Forrest\Exceptions\MissingKeyException; use Omniphx\Forrest\Interfaces\EventInterface; use Omniphx\Forrest\Interfaces\EncryptorInterface; use Omniphx\Forrest\Interfaces\InputInterface; use Omniphx\...
true
02bba5020a727fa14c068b07ef589d4119fd7820
PHP
coutojuli/CRMS
/views/register.php
UTF-8
6,774
2.921875
3
[]
no_license
<?php require_once 'header.php'; require_once '../DAL/ConnectionManager.php'; //Valiable Initialization $email = $password = $confirmPassword = $firstName = $lastName = $role = ""; $email_err = $password_err = $confirm_password_err = $firstName_err = $lastName_err = ""; //Form data when form is submitted if($_SERVER...
true
a9c563f6a4486b4eef7c740fdfa47e8960c911e3
PHP
vanguardkras/SoftMonitor
/classes/data/userGroups.php
UTF-8
1,134
2.90625
3
[ "Apache-2.0" ]
permissive
<?php /** * Class for managing user groups. * * @author shayan-ma */ class UserGroups extends Datachanger { /** * Table name that contains relevant information. * @var type */ protected $table = 'user_groups'; /** * Data base columns list. * @var string */ protec...
true
774e18f573295db0d1966a85105ee9675001c10e
PHP
volodymyr-volynets/frontend
/Components/Wizard/Numbers/Base.php
UTF-8
2,877
2.796875
3
[ "Apache-2.0" ]
permissive
<?php namespace Numbers\Frontend\Components\Wizard\Numbers; class Base implements \Numbers\Frontend\Components\Wizard\Interface2\Base { /** * see \HTML::wizard(); */ public static function wizard(array $options = []) : string { // if we have no options we render nothing if (empty($options['options'])) retur...
true
12955cf8ff827c61c7efa9b2e5412636e0e15209
PHP
HervalMata/LaraVueGestao
/app/Repository/BaseRepository.php
UTF-8
2,527
2.625
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: Herval * Date: 29/10/2018 * Time: 12:22 */ namespace App\Repository; use App\Exceptions\RepositoryException; use App\Repository\Traits\DeleteTrait; use App\Repository\Traits\GetTrait; use App\Repository\Traits\RestoreTrait; use App\Repository\Traits\UpdateTrait; use Illum...
true
d22a3fa4cb0bc7b816f63f63513b833487e0c040
PHP
dimplewraich/Assignment-2
/Assignment/cakephp/src/Controller/ContactController.php
UTF-8
1,268
2.5625
3
[]
no_license
<?php /** * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * For full copyright and license information, please see the LICENSE.txt * Redistributions of files must retain the above copyrig...
true
18f4295d218bad666a7a49447227bedbd04ba262
PHP
HeleneBoivin/PHP6_Les_parametres_URL
/exercice4/index.php
UTF-8
855
2.953125
3
[]
no_license
<!DOCTYPE HTML> <html> <head> <meta charset="utf-8"> <title>Exercice4</title> <h1>PHP - Partie 6 - Exercice 4</h1> </head> <body> <h3>Faire une page index.php. Tester sur cette page que tous les paramètres de cette URL existent et les afficher: index.php?language=PHP&server=LAMP</h3> <a href="index.php?langua...
true
a3047befdc52874743138db2c5a4979c88131ce2
PHP
BGCX261/zool-php-framework-svn-to-git
/branches/zool2/zool/management/AnnotationManager.php
UTF-8
1,390
2.890625
3
[]
no_license
<?php namespace zool\management; use zool\util\Strings; class AnnotationManager{ /** * @var AnnotationManager singleton instance */ private static $instance; /** * @return AnnotationManager instance */ public static function instance(){ if(null === ...
true
2b6954af36943518248171faefeb34a84b22dde8
PHP
siteraiser/Micro-MVC
/models/sitemap_model.php
UTF-8
639
2.8125
3
[]
no_license
<?php class sitemap_model extends requestHandler{ public function getURLS($table){ $links = array(); $stmt=$this->pdo->prepare("SELECT slug FROM $table"); $stmt->execute(array()); $rows = $stmt->fetchAll(PDO::FETCH_ASSOC); foreach($rows as $row) { $links[] = array('link'=>$row['slug'], 'priority'...
true
3589c6dba9f49951730773948beea676e6386b3d
PHP
StephaneBouret/AssoDcOd
/Controller/SecurityController.php
UTF-8
9,206
2.78125
3
[]
no_license
<?php include "Model/SecurityModel.php"; include "View/SecurityView.php"; class SecurityController extends Controller { public function __construct() { $this->view = new SecurityView(); $this->model = new SecurityModel(); } /** * Afficher le formulaire de Login * * @r...
true
bc4356beb64f2582371e71c7e6a2d992e62f79c8
PHP
restorer/deprecated-s-imple-php-framework
/simple/data/date.php
UTF-8
5,399
2.71875
3
[]
no_license
<?php /* * MIT License (http://www.opensource.org/licenses/mit-license.php) * * Copyright (c) 2007, Slava Tretyak (aka restorer) * Zame Software Development (http://zame-dev.org) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation file...
true
dcccc86d40f150d483b4534820508493fc781fd0
PHP
jasny/improved-php-iterable
/tests/IteratorPipeline/Traits/FilteringTraitTest.php
UTF-8
6,142
2.671875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Improved\Tests\IteratorPipeline\Traits; use Improved\IteratorPipeline\Pipeline; use PHPUnit\Framework\TestCase; /** * @covers \Improved\IteratorPipeline\Traits\FilteringTrait */ class FilteringTraitTest extends TestCase { public function testFilter() { $pipe...
true
2957dc35c9f9dd5505daf91f4a926afd173502e3
PHP
jgspires/restaurant-prototype
/Website Source/Model/Conta.php
UTF-8
2,742
2.890625
3
[ "MIT" ]
permissive
<?php require_once "Pedido.php"; require_once "ContaDAO.php"; class Conta { private $orders = array(); public function __construct() { } public function billTotal() { $total = 0; foreach ($this->orders as $order) { if($order->getState...
true
606932a4d2fd491f9127806c969054b31811af54
PHP
joelleemann/calendarapp
/application/controllers/Calendar.php
UTF-8
789
2.71875
3
[ "MIT" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Calendar extends CI_Controller { /** @var Events_model */ public $events_model; public function __construct() { parent::__construct(); $this->load->model('events_model'); $this->load->library('parser'); } public function index() ...
true
168518630dcfe0f0e2a110c47de2c05f36a1763d
PHP
ctrl-f5/ctrllib
/src/Ctrl/Permissions/RoleRegistry.php
UTF-8
1,101
2.546875
3
[]
no_license
<?php namespace Ctrl\Permissions; use Zend\Permissions\Acl\Role\Registry as BaseRegistry; use Zend\Permissions\Acl\Role\RoleInterface; use CtrlAuth\Domain\Role; class RoleRegistry extends BaseRegistry { /** * @param RoleInterface|Role $role * @param null $parents * @return Registry|\Zend\Permissio...
true
01f420a1b9730dffce71794a70901517f4a7d76a
PHP
joshcasino/ping-pong-php
/src/PingPongGenerator.php
UTF-8
460
3.375
3
[]
no_license
<?php class PingPongGenerator { function makePingPong($input_number) { if ($input_number % 15 == 0) { return "Ping-Pong"; } elseif ($input_number % 5 == 0) { return "Pong"; } elseif ($input_number % 3 == ...
true
ca3ed3c5937bfcd1cf16db27d3213bcbd368c794
PHP
caseyamcl/openapi-params
/src/Utility/UnpackCSV.php
UTF-8
2,337
3.015625
3
[ "MIT" ]
permissive
<?php /** * OpenApi-Params Library * * @license http://opensource.org/licenses/MIT * @link https://github.com/caseyamcl/openapi-params * * @author Casey McLaughlin <caseyamcl@gmail.com> * * For the full copyright and license information, please view the LICENSE.md * file that was distributed with this sourc...
true
2aa9a8b9af90b36daee41eeaed8c2c6a5f8338c9
PHP
lipsworld/enhavo
/src/Enhavo/Bundle/AppBundle/Filter/Filter.php
UTF-8
1,291
2.578125
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: gseidel * Date: 26.10.18 * Time: 22:40 */ namespace Enhavo\Bundle\AppBundle\Filter; use Symfony\Component\OptionsResolver\OptionsResolver; class Filter { /** * @var FilterInterface */ private $filter; /** * @var array */ private $opti...
true
867c7ee2ff4cdd1c997e5731786ea67e03f472f7
PHP
Vikum-Kule/WellCare_group16
/app/models/Cart.php
UTF-8
576
2.765625
3
[]
no_license
<?php class Cart { private $db; public function __construct() { $this->db = new Database; } public function getItem($id){ $this->db->query('SELECT medicineId,name,brand,description,price,subcategory,imageLocation FROM me...
true
014d3fd903df8f09dc27bb937aa46e33a125b857
PHP
szp043725449/tools_api
/src/ToolsServiceProvider.php
UTF-8
5,776
2.640625
3
[]
no_license
<?php namespace Tools\Api; use Illuminate\Support\ServiceProvider; use Tools\Api\ToolsService; use Tools\Api\Sign\SignService; use Tools\Api\Middleware\ApiSign; use Tools\Api\Console\GenerateAppIdCommand; use Validator; class ToolsServiceProvider extends ServiceProvider { /** * Boot service provider. ...
true
452e137f26296a63e82ebddf27cb391d758ede36
PHP
sumanjey/sample
/app/Http/Requests/Admin/UserUpdateRequest.php
UTF-8
1,133
2.578125
3
[]
no_license
<?php namespace App\Http\Requests\Admin; use Illuminate\Foundation\Http\FormRequest; use Illuminate\Validation\Rule; use Illuminate\Support\Facades\Auth; class UserUpdateRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ publ...
true
17f150d347ea6e4b821ada33a4ad2d8cfb312270
PHP
thorwalez/sepaXmlCreatorExample
/src/Collection/DataCollectionInterface.php
UTF-8
1,155
2.921875
3
[ "MIT" ]
permissive
<?php /** * Copyright (c) 2021. * Created By * @author Mike Hartl * @copyright 2021 Mike Hartl All rights reserved * @license The source code of this document is proprietary work, and is licensed for distribution or use. * @created 20.05.2021 * @version 0.0.0 */ namespace App\Collection; use App\Fil...
true
10e70ca8ab91aa87df7d42d36a184bd08de5a42f
PHP
GregDracoulis/VolunteerMatch
/myadmin/add_school.php
UTF-8
3,217
2.609375
3
[]
no_license
<?php error_reporting(5); $admin_schools_class = "class='selected_link'"; include "global.php"; include "sessions.php"; getsettings(); list($username,$password,$mtype) = check_session(); if ($_POST["doaction"] == "add_school") { $county = sql_safe($_POST["county"]); $district = sql_safe($_POST["district"]); $sc...
true
350999ad1c190decfe3f3ebbefd9e10b5b3b88cb
PHP
zeulus/vending-machine
/src/Entity/Coin.php
UTF-8
414
3.140625
3
[]
no_license
<?php declare(strict_types=1); namespace Zeulus\VendingMachine\Entity; class Coin { /** * @var int */ private $value; /** * Coin constructor. * * @param int $value */ public function __construct(int $value) { $this->value = $value; } /** * @retu...
true
99b2614e19254f285dacdb9da5a1acce68e0b2f7
PHP
angujo/Database-Objectifier
/factory/Extension.php
UTF-8
8,263
2.953125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Angujo Barrack * Date: 20-Oct-16 * Time: 7:26 AM */ class Extension { /** * @var Table */ private $table; /** * @var string */ private $objectName; /** * @var array */ private $constructorArgs; /** * @var string */ private $...
true
18224224b241c739b1c5da74f946306a38b86e64
PHP
kherge-archive/lib-accessor
/src/tests/Phine/Accessor/Tests/Type/FloatTypeTest.php
UTF-8
1,205
2.9375
3
[ "MIT" ]
permissive
<?php namespace Phine\Accessor\Tests\Type; use Phine\Accessor\Type\FloatType; use Phine\Test\Method; use PHPUnit_Framework_TestCase as TestCase; /** * Tests the methods in the {@link FloatType} class. * * @author Kevin Herrera <kevin@herrera.io> */ class FloatTypeTest extends TestCase { /** * The type i...
true
c080ff132ec2adfb01f884ae2266b926a15e4fac
PHP
yeganemehr/angel
/product.php
UTF-8
4,287
2.53125
3
[]
no_license
<?php include "init.php"; if (!isset($_GET['id'])) { include "404.php"; exit(); } // SELECT * from products where `id`=$_GET['id'] $db->where("id", $_GET['id']); $product = $db->getOne("products"); if (empty($product)) { include "404.php"; exit(); } // UPDATE products SET `views` = `views` + 1 WHERE `id` = $product...
true
476149c4f167e5f6bf0e1027ae85a6a1af78f3a6
PHP
dieterve/routes-oauth2-server
/src/HikingRoutes/Users/Controllers/User.php
UTF-8
1,554
2.734375
3
[]
no_license
<?php namespace HikingRoutes\Users\Controllers; use Silex\Application; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; class User { /** * Returns the detailed info of a user */ public function user(Application $app, $username) { $server = $app['oauth_server']; $response = $app['oauth_res...
true
7be9682568ae72b505cd9a208a1f2a32fdbbc3df
PHP
momorajr/cst352
/labs/practice/rps.php
UTF-8
302
2.53125
3
[]
no_license
<?php function getHand1(){ $hand1 = rand(1,3); return $hand1; } function getHand2(){ } ?> <!DOCTYPE html> <html> <head> <title>RPS </title> </head> <body> </body> </html>
true
5ddb1b05ab88ce52cff4485f620c1036d419ef64
PHP
MoeSadoon/Behat_Ecommerce_Demo_Framework
/features/bootstrap/LoginContext.php
UTF-8
1,007
2.75
3
[]
no_license
<?php use Behat\MinkExtension\Context\RawMinkContext; use Behat\Gherkin\Node\TableNode; use Page\LoginPage; class LoginContext extends RawMinkContext { private $loginPage; public function __construct(LoginPage $loginPage) { $this -> loginPage = $loginPage; } /** * @Given /^I enter de...
true
130041945da77f9db0cd456470acd8a06e7ffe06
PHP
danielalvarezpr/sici4997_test
/intro2.php
UTF-8
2,857
3
3
[]
no_license
<?php function hr(){echo '<hr>';}#<hr>-________________________________ function br(){echo '<br>';} function text_header1(){ #----------------------------------------------------------------- echo '<b>Hola SICI 4997 - version 2.0.0!</b>'; br(); echo '<b>Intro a PHP - 2</b>'; #--------...
true
7712e7ae3ec61e76d8ae6705266241190afac2cd
PHP
prabushitha/Teami
/phps/MemberRegistration.php
UTF-8
741
2.53125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: project * Date: 9/5/2015 * Time: 10:11 AM */ require_once "connect.php"; $username = $_POST['val1']; $email = $_POST['val2']; $password = $_POST['val3']; $gender = $_POST['val4']; $useravailable = mysql_query("SELECT * FROM member WHERE email='$emai...
true
6e83cc0769f87605c18bd83141d93ea73f65b60a
PHP
Urtred/api
/modules/sort/models/Book.php
UTF-8
1,440
2.640625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\modules\sort\models; use Yii; use yii\db\ActiveRecord; /** * Cliente is the model behind the cliente form. */ class Book extends ActiveRecord { /** * @return string the associated database table name */ public static function tableName() { return '{{book}}'; } ...
true
804d0ee13feddbd5dba2b05b1abe25069d7e41c9
PHP
Limonrana/Exo-United
/app/Http/Controllers/Admin/Post/PostCategoryController.php
UTF-8
3,446
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Admin\Post; use App\Http\Controllers\Controller; use App\Models\Admin\Postcategory; use App\Models\Admin\Postsubcategory; use Illuminate\Http\Request; class PostCategoryController extends Controller { /** * Create a new controller instance. * * @return void ...
true
ea96a1c7a3a045dd4f6bde8dd9ecea733d4d0167
PHP
zhb127/z-design-pattern-php-source-code
/Decorator/Finery.php
UTF-8
330
2.921875
3
[]
no_license
<?php namespace Decorator; /** * 服饰类 */ class Finery extends Person { private $_component; public function decorate(Person $component) { $this->_component = $component; } public function show() { if ($this->_component) { $this->_component->show(); } ...
true
b4bda42031e2f217ee91d59383f1ec566888bde0
PHP
deynerware/servicio-rest
/app/Http/Controllers/NoteController.php
UTF-8
1,982
2.609375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Models\Note; use App\Traits\ApiResponse; use Illuminate\Http\Request; use Illuminate\Http\Response; class NoteController extends Controller { use ApiResponse; /** * Create a new controller instance. * * @return void */ public function __c...
true
8e837371e777319587222e89bd530d54788640a0
PHP
lioneltn/sparkelit
/views/afficherType.php
UTF-8
701
2.5625
3
[]
no_license
<select class="form-control" name="type" id="typeSelect" onchange="typechange()"> <?php if(($_COOKIE['type']=="Homme") || (isset($_COOKIE['type'])==false)) { ?> <option value="Homme" selected="selected">Homme</option> <?php } else { ?> <option value="Homme">Homme</option> <?php } ?> <?php if($_COOK...
true
f5e860fcc162316751667403baa8550abde0db51
PHP
dennysaug/projeto-base
/app/Http/Controllers/Controle/HomeController.php
UTF-8
1,532
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Controle; use App\Http\Controllers\Controller; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\File; class HomeController extends Controller { public function index() { return view('controle.home.index'); } public function rota($nome) ...
true
5c10259fbb50fa3e7e672ba299b5742d01cf43a1
PHP
kiner00/calendar-event
/app/Http/Controllers/Api/EventController.php
UTF-8
2,943
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Api; use App\Event; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use App\Libraries\Constant; use DateTime; use Carbon\CarbonPeriod; class EventController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\...
true
be7a9ec82c1e6ad047003afb23627c0f55bd6382
PHP
Vincebml/PHPatterns
/tests/Structural/Bridge/BridgeTest.php
UTF-8
1,134
2.75
3
[ "MIT" ]
permissive
<?php namespace Test\Phpatterns\Structural\Bridge; use Phpatterns\Structural\Bridge; use Phpatterns\Structural\Bridge\Fighter; use Phpatterns\Structural\Bridge\Weapon; class BridgeTest extends \PHPUnit_Framework_TestCase { /** @var Bridge\AbstractFighter */ private $human; /** @var Bridge\AbstractFighte...
true
32632bf5b4edd08ce5fc593e0cec439f30468c27
PHP
hammockt/CS340_Project
/API/getMotherboards.php
UTF-8
2,475
2.59375
3
[]
no_license
<?php header("Access-Control-Allow-Origin: *"); header("Access-Control-Allow-Methods: GET"); header("Content-Type: application/json"); require_once 'phpUtilities.php'; require_once 'restUtilities.php'; require_once 'getUtilities.php'; require_once 'partNameBLL.php'; //make sure they are posting this endpoint $httpMet...
true
592c2368b89ad9323bc62b5a816cbd719c84e4cd
PHP
turkprogrammer/php-objects-patterns-practice-5-rus
/src/ch04/batch03/Runner.php
UTF-8
1,196
2.953125
3
[]
no_license
<?php declare(strict_types=1); namespace vitaliyviznyuk\popp5rus\ch04\batch03; use popp\ch04\batch02\ShopProduct; use popp\ch04\batch02\BookProduct; use popp\ch04\batch02\CdProduct; class Runner { /** * @return void */ public static function run(): void { // runner code here pri...
true
801351773a40bc6b9a0f631aad8c8f46c72843a6
PHP
growth-institute/circle.so-php
/src/Circle.php
UTF-8
17,273
3.0625
3
[]
no_license
<?php namespace CirclePHP; use Curl\Curl; class Circle { private $api_key; private $community_id; public function __construct(string $api_key) { $this->api_key = $api_key; $this->curl = new Curl(); $this->curl->setHeader('Authorization', "Token {$this->api_key}"); $this->baseUrl = 'https://ap...
true
2b2127d9fd580cab1785beea3cfa8c1f08226879
PHP
autumnzest/cloud
/hostlist.php
UTF-8
760
2.515625
3
[]
no_license
<?php $username = $_SESSION['user_name']; //包含数据库连接文件 include('conn.php'); //检测用户名及密码是否正确 $result = mysql_query("select * from host_list "); echo "<table border='1'> <tr> <th>host_id</th> <th>host_name</th> <th>available</th> <th>total</th> <th>used</th> </tr>"; echo '<a href="hostadd.html">hostregister</a>'; while(...
true
f123817a683685a76844736cfa4911dd68ccba8c
PHP
akshat2011gupta/azureapplication
/action_page.php
UTF-8
797
2.765625
3
[]
no_license
<?php try { $conn = new PDO("sqlsrv:server = tcp:exam123.database.windows.net,1433; Database = UniversityDB", "akshat", "9412629406aA@"); $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); } catch (PDOException $e) { print("Error connecting to SQL Server."); die(print_r($e)); } $id='17'; ...
true
bb64e048c396ba413d6b45a98c7e3d0fd7b55022
PHP
BrighterMyanmar/TMVC-Teaching
/app/configs/config.php
UTF-8
1,419
2.71875
3
[]
no_license
<?php session_start(); define("DB_HOST", "localhost"); define("DB_NAME", "bmmvc"); define("DB_USER", "root"); define("DB_PASS", ""); define("APPROOT", dirname(dirname(__FILE__))); define("URLROOT", "http://localhost/TMVC/"); define("UPLOAD_LOCATION", dirname(APPROOT) . "\assets\uploads\\"); function redirect($page) {...
true
bd81ffd1cf0d46157d1d0014bc8f87ee1b706ea9
PHP
GroupeTPJoaniOlivier/ProjetPHP
/autoload.php
UTF-8
3,841
3.15625
3
[]
no_license
<?php $cache_file = __DIR__ . DIRECTORY_SEPARATOR . "cache" . DIRECTORY_SEPARATOR . "cache.php"; // Including cache file include_once $cache_file; $autoloading_map = array(); /** * Autoloader - use, depending of state of the application, of a caching file, an autoload map or search for a class * file under the ap...
true
44bb9914e7e1c8b681c1fa7ed97853c326b3166f
PHP
priteshtripathi7/Online-Examination-System
/php/functions_studAccess.php
UTF-8
15,434
2.578125
3
[]
no_license
<?php // *************** STUDENT ACCESS PAGE FUNCTIONS ********************// // FUNCTION 1 : This function prints all the tests available to a student. function outputAvailableTests() { $con = mysqli_connect('localhost', 'root', '', 'online-examination-system'); if($con == false){ ...
true
9c72a9e9022932f4a70c228247a498d711d479b2
PHP
agathaemm/boravendermais-backoffice
/application/finders/MensagensFinder.php
UTF-8
2,283
2.625
3
[]
no_license
<?php require 'application/models/Mensagem.php'; class MensagensFinder extends MY_Model { // entidade public $entity = 'Mensagem'; // tabela public $table = 'Mensagens'; // chave primaria public $primaryKey = 'CodMensagem'; // labels public $labels = []; /** * __construct ...
true
f22e413a1a58c6d54ecada3e32efe23995d53ae3
PHP
Amadewe/partie9php
/exercice3/index.php
UTF-8
626
3.125
3
[]
no_license
<?php include ('../header.php'); // version anglaise : $today = date('l d F Y'); //version française : /* setlocale — Modifie les informations de localisation */ setlocale(LC_TIME, 'fr_FR.UTF8'); /* strftime — Formate une date/heure locale avec la configuration locale */ $todayFr = strftime("%A %d %B %Y"); ?> <h2>Exe...
true
b65408787c5d4cb778924bc1c51afef1704a0a20
PHP
kawaiidon/test-task
/source/db.php
UTF-8
946
2.6875
3
[]
no_license
<?php include("/../source/config.php"); // Пытаемся соединиться с сервером базы данных MySQL $db = @mysql_connect($db_loc,$db_user,$db_pass); //Проверяем, удачно ли прошло подключение if(!$db) { echo( '<center--><p><b>Невозможно подключиться к серверу базы данных !</b></p>'); exit(); } //Проверяем доступност...
true
1bb2f6857a4addee474bf3152011619be54f767d
PHP
katsujukou/php-simple-adt
/src/Internal/Types/Constructor.php
UTF-8
1,388
3.1875
3
[ "MIT" ]
permissive
<?php namespace SimpleADT\Internal\Types; class Constructor { /** @var TypeParameter[] */ private $templateTags; /** @var string */ private $extends; /** @var string */ private $name; /** @var Parameter[] */ private $parameters; /** @var bool */ private $isPublic; /**...
true
da0c03607df48ae1cf340cdd9f2f33cbc39c5b73
PHP
tomzx/graphp-visjs
/src/tomzx/Graphp/VisJs/VisJs.php
UTF-8
1,271
2.984375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace tomzx\Graphp\VisJs; use Fhaculty\Graph\Edge\Directed; use Fhaculty\Graph\Exporter\ExporterInterface; use Fhaculty\Graph\Graph; class VisJs implements ExporterInterface { /** * @param \Fhaculty\Graph\Graph $graph * @return string */ public function getOutput(Graph $graph) { $vertices = []; ...
true
15d8852b3ab1f8cfe098d90d40b320ad39543070
PHP
DKernested/dkernested56-academic.rrc.ca
/updatedeleteUser.php
UTF-8
1,937
2.859375
3
[]
no_license
<!-- Dillon Kernested Web Dev Final Project Update Delete review page ---> <?php require "connect.php"; if(isset($_POST['delete'])) { //Checks for the ReviewId of the post and sanatizes it. $UserId = filter_input(INPUT_POST, 'UserId', FILTER_SANITIZE_NUMBER_INT); //creates the query to d...
true
d1227bf2a18215a79fc26de6de1b6c7330144526
PHP
FatimaEzzahraBakir/Clicodrome-du-LEFFF
/pdp-clicodrome/prototypes/parser_txt.php
UTF-8
8,737
2.875
3
[]
no_license
<?php function writeInFile($category, $line) { if(isset($category) && !empty($category) ) { $file = fopen("data/". $category . ".txt", 'a'); fwrite($file, $line); } else { $file = fopen("data/error.txt", 'a'); fwrite($file, $line); } } function help() { ech...
true
08395f2c3a0984dbb8acfc656f2d7308428ced9a
PHP
Psyjoker/ProjektKFZ
/projekt/auftrag/aedit.php
UTF-8
3,140
2.53125
3
[]
no_license
<!DOCTYPE html><html lang="de"><head> <!-- Required meta tags --> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <!-- Bootstrap CSS --> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css" integrity="...
true
9ff34f9f56306b3c3e400d8d00be4c48797a9b77
PHP
qxw528/dic
/vendor/Icicle/Coroutine/Exception/GeneratorReturnedError.php
UTF-8
978
2.703125
3
[]
no_license
<?php /* * This file is part of Icicle, a library for writing asynchronous code in PHP using coroutines built with awaitables. * * @copyright 2014-2015 Aaron Piotrowski. All rights reserved. * @license MIT See the LICENSE file that was distributed with this source code for more information. */ namespace Icicle\C...
true
150825194357d56ebe2bfffded0d2aa7a52cf0c9
PHP
znorlando/Curso-php
/DIR/Lendo-manipulando-pastasdiretorios-com-PHP7.php
UTF-8
209
2.671875
3
[]
no_license
<?php $nome = "images"; if (!is_dir($nome)) { mkdir($nome); echo "Diretório $nome creido com sucesso"; } else { rmdir($nome); echo "já existe o diretório: $nome foi removido"; } ?>
true
5c8ac34392e825e075a6d6e92bc58bfb732a323c
PHP
nhankun/project_cellphone
/app/Repositories/Admins/Managers/CategoryRepository.php
UTF-8
2,912
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Repositories\Admins\Managers; use App\Models\Categories\Category; use App\Services\Uploads\handleUploadImage; class CategoryRepository { use handleUploadImage; CONST WIDTH_IMG = 500; CONST HEIGHT_IMG = 500; public function getAll($nbrPages, $parameters) { return Categ...
true
a9958ba0589b891f53b15b490197566d6023dc9a
PHP
brunocaramelo/jw-server-test
/app/Validators/UserValidator.php
UTF-8
1,575
2.921875
3
[]
no_license
<?php namespace App\Validators; use Validator; class UserValidator{ private $redirect = true; public function __construct($redirect = false ){ $this->redirect = $redirect; $this->setMessages(); } public function validateCreate( $fields ) { return $this->make( $fi...
true
7076a0779ef2ed99d915927f213c9ef82906911a
PHP
MFJLBeuzel/CLEVER_TECHIE_COURSE
/Example_002/index.php
UTF-8
837
2.71875
3
[]
no_license
<?php // 1)Create cURL resource $curl = curl_init(); $search_string = "movies 2017"; $url = "https://www.amazon.co.uk/s/field-keywords=$search_string"; // 2)Set cURL options curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); //htt...
true
f2086c3fcdb10a4282c0e6f1ce115cb69e28cbe2
PHP
AntonioEduardo-Dev/Projeto_Gerenciador_Biblioteca
/classes/Emprestimo.class.php
UTF-8
9,575
2.53125
3
[ "MIT" ]
permissive
<?php include_once('Connection.class.php'); class Emprestimo{ //função responsavel por cadastrar o emprestimo public function insertEmprestimo($idlivro,$matriculausu,$Dataemprestimo,$Dataemprestimofinal){ $con=new Connection(); $conn=$con->conexao(); //consulta de verificação de matricula de usuário ...
true
2cc28054db4886679d209d10e4023f1ffe9dc556
PHP
kwvanderlinde/uri-templates
/src/Template/ValueDispatcher.php
UTF-8
2,082
3.390625
3
[ "BSD-2-Clause" ]
permissive
<?php namespace Uri\Template; /** * Determines the type of a value, and permits dispatching on its type. * * Only three types of values are recognized: `null`; `string`; and `array`. * These map to the terms 'undefined' (For `null`), 'string' (For `string`), * 'list' (for sequential `array`s), and 'array' (for as...
true
ffc4172df979b41a1dca351d98c97d87937d5416
PHP
astrike/MyFramework
/app/controllers/Mail/Mail.php
UTF-8
738
2.703125
3
[ "MIT" ]
permissive
<?php namespace Controllers\Mail; class Mail { /** * Отправка письма для активации аккаунта. * @param string $to * @param string $message * @return mail */ public static function registerSendMail($to, $message) { //Метод в стадии разработки!!! $subject = "Activate your...
true
9d5ed1fee06ad0aa1bf0e7b0ecb2289d1559c80e
PHP
klapuch/Validation
/Tests/Unit/RangeRule.phpt
UTF-8
3,593
2.578125
3
[]
no_license
<?php declare(strict_types = 1); /** * @testCase * @phpVersion > 7.1 */ namespace Klapuch\Validation\Unit; use Klapuch\Validation; use Tester; use Tester\Assert; require __DIR__ . '/../bootstrap.php'; final class RangeRule extends Tester\TestCase { public function testSatisfyingRange(): void { [$from, $to, $...
true
53dd69921e5433c284c1c53416f39e53214e96f4
PHP
paulschneider/b247-api
/web/app/Apiv1/Validators/ApiValidator.php
UTF-8
744
2.890625
3
[ "MIT" ]
permissive
<?php namespace Apiv1\Validators; use Validator; Class ApiValidator { public $validator; protected $rules; protected $messages = []; public function setRules($rules) { $this->rules = $rules; } public function setMessages($messages) { $this->messages = $messages; } public function validate($input) {...
true
cd91b60660d7decf274897dd63bef44e7f941a31
PHP
JunaidQadirB/Twitter
/evaluation.php
UTF-8
1,481
2.734375
3
[]
no_license
<?php /** * evaluation * copyright (C) 2012 - 2013 @author liang - liang0816tw@gmail.com * written in PHP. * * * * 1 July 2013 */ $path = '/Applications/MAMP/htdocs/Library/'; set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once("Input/read_file.php"); require_once("Datab...
true
e08a9a3ca7470ba930c4a8503a16fa8050a83f8c
PHP
FarzanaTisha/User-LogIn
/index.php
UTF-8
1,516
2.921875
3
[]
no_license
<?php session_start(); $error = ''; if(isset($_POST['submit'])) { $username = $_POST['username']; $password = $_POST['password']; if($username == '' || $password == '') { $error = 'Fill all the fields'; }else { $myFile = fopen("data.txt", "r"); while(...
true
4e50cfa80c4c41055ff4662184db7cfa28f3056c
PHP
kesel65/progressAPI
/objects/milestones.php
UTF-8
1,808
2.765625
3
[]
no_license
<?php require("../config/Model.php"); class Milestones extends Model { private $tableName = 'Milestone'; public $userId; public $id; public $GoalId; public $KVITypeId; public $name; public $description; public $TargetKVI; public $CurrentKVI; public $TargetDate; public $Compl...
true
52972125392eb3a59c13adeea5fbe6463990aefb
PHP
Priya133/PHP-student-management-system-dashboard
/SMS/includes/process_login.php
UTF-8
1,242
2.6875
3
[]
no_license
<?php include_once 'db_connect.php'; include_once 'functions.php'; sec_session_start(); // Our custom secure way of starting a PHP session. if (isset($_POST['email'], $_POST['password'])) { $email = $_POST['email']; $password = $_POST['password']; // The hashed password. $url = (isset($_POST['url'])) ? $_P...
true
8bcf7778241c8e18ac466db8302dc3bd669e2e96
PHP
ruman-chowdhury/PHP-CRUD-with-Mysqli
/PHP-Crud with Mysqli/lib/Database.php
UTF-8
4,200
3.15625
3
[]
no_license
<?php class Database{ private $servername ="localhost"; private $db_user ="root"; private $db_pass =""; private $db_name = "db_user"; private $conn; private $error; public function __construct(){ $mysql_obj = new mysqli($this->servername, $this->db_user, $this->db_pass, $this->db_name); $this...
true
e68a8ea0bbe9ad62b92ae1c12e461c3709f6b0a8
PHP
ANDR00T/Test
/Zadanie_1.php
UTF-8
1,929
2.765625
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>Задание 1</title> </head> <body> <!-- Задание 1 --> <?php $text = 'С другой стороны рамки и мес...
true
2e4d638cd16e2b2f4f9ac496a5255ed3cd11ad38
PHP
Formaster-SeeYoo/magento2-payment
/Model/Instruction.php
UTF-8
6,998
2.59375
3
[]
no_license
<?php /** * NOTICE OF LICENSE. * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * * If you did not receive a copy of the ...
true
7201a37cf4cf31ea3930429852308f498a589461
PHP
gamemoney-ps/gamemoney-php-sdk
/src/Sign/SignerResolverInterface.php
UTF-8
270
2.734375
3
[ "MIT" ]
permissive
<?php namespace Gamemoney\Sign; /** * Interface SignerResolverInterface * @package Gamemoney\Sign */ interface SignerResolverInterface { /** * @param string|null $action * @return SignerInterface */ public function resolve($action = null); }
true
7ee43218f98c19ead7c49d040b9b53dc5419aff6
PHP
MartinProkop/BigBrother
/library/BB/Controller/Method/Abstract.php
UTF-8
5,807
2.765625
3
[]
no_license
<?php abstract class BB_Controller_Method_Abstract extends BB_Controller_Abstract { const STD_RESPONSE_PATH = "views/scripts/std_response.phtml"; /** * obsahuje data, nad kterymi se bude provadet operace * * @var BB_Db_Table_Data_Rowset */ private $_dataContainer; /** * obsahuje informace potrebne pr...
true
a7daf75a70cb9125a10305431c0204fe4111700e
PHP
ocpyosep78/crm
/core/private/lib/Snippet/lib/Handler_Commons.lib.php
UTF-8
6,939
2.515625
3
[]
no_license
<?php /** * DEPENDS ON: * * class Snippet_Layers * layer ajax * #display( string $msg , string $errType ) * layer error * #Error( string $msg ) * class Snippet_Handler_Source * #inject( string $snippet , string $code , array $params ) * #aquire() * ...
true
81fe553ba84d9be3319a12b32635971899105d4e
PHP
hostellerie/nexpro
/nexpro/system/system/classes/navbar.class.php
UTF-8
8,876
2.546875
3
[]
no_license
<?php /* Reminder: always indent with 4 spaces (no tabs). */ // +-------------------------------------------------------------------------+ // | Geeklog 1.3 | // +-------------------------------------------------------------------------+ // | navbar.class...
true
197c216113a38fc0ab8c1234d64b945211f357aa
PHP
AgabiYounes/IDNAP
/Admin/changepw.php
UTF-8
687
2.671875
3
[]
no_license
<?php require('session.php'); require('Model/Model.php'); $info=''; if (isset($_POST['newpassword']) && isset($_POST['oldpasseword'])) { $new=sha1(htmlspecialchars($_POST['newpassword'])); $old=sha1(htmlspecialchars($_POST['oldpasseword'])); $username=$_SESSION['admin']; $type='admin'; $check=checkO...
true
b1fa48ac929a3ff4cef31da3dafc24afe3b41e91
PHP
TopYar/easyproxy_bot
/hook.php
UTF-8
327
2.578125
3
[]
no_license
<?php $token = "xxxx"; // Данные базы данных $host ='localhost'; $user = 'xxxx'; $password = 'xxx'; $database = 'xxx'; $link = new mysqli("$host", "$user", "$password", "$database"); if ($link->connect_error) { die('Error : ('. $link->connect_errno .') '. $link->connect_error); }
true
a9fc49ebc0d5a632d1ed1463b9c593dbaa20f93a
PHP
whitelabelltd/proxyflare
/includes/modules/Cloudflare.php
UTF-8
4,218
2.828125
3
[]
no_license
<?php namespace PROXYFLARE; class Cloudflare { /** * Only load when the following plugins are not activate * * wp-rocket does only do it when their Cloudflare module is activated * @var array */ private $plugins = array( 'cloudflare/cloudflare.php' ); /** * Cloudflare constructor. */ public f...
true
0eaad226739a352a86f9bbccf36e36db04d1c73f
PHP
mattirau/kobrocms
/app/classes/Helper.php
UTF-8
454
3.140625
3
[ "MIT" ]
permissive
<?php /* * This class includes helper fuctions */ class Helper { /* * Escapes user input for displaying on page * @param string $input User input * @return string Escaped string */ public static function escapeForDisplay($input) { if (get_magic_quotes_gpc()) { $i...
true
511592548828297d922e9b41942fe158632e60a2
PHP
niknokseyer/formdev
/lib/FaciPerClassHandle.php
UTF-8
11,694
3
3
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php ######################################################## # FORMDEV Website v2.0 # # # # Formation and Development # # All Rights Reserved FORMDEV Copyright 2011 # #############################...
true
b1df1dc6886853b7ef63b03cd64d6af764d4629e
PHP
klaudiaRajs/staticCodeAnalyzer
/src/Analyzer/NameConventionAnalyzer.php
UTF-8
7,292
2.71875
3
[]
no_license
<?php namespace MyApp\Analyzer; use MyApp\Helpers\TokenHelper; use MyApp\Statistics\StatKeeper; class NameConventionAnalyzer{ private $individualTokenAnalyzer; private $tokenInContextAnalyzer; private $tokenHelper; private $tokens; public function __construct(IndividualTokenAnalyzer $analyzer,...
true
dc3972f90f640cf8f64467a9caacab63c9e0f749
PHP
UFOP-CSI477/2020-03-ple-atividades-icaroquintao
/Atividades/exercicios/exercicio-05/projeto/public/index.php
UTF-8
374
2.609375
3
[ "MIT" ]
permissive
<?php require '../vendor/autoload.php'; use App\Models\Estado; use App\Database\Connection; use App\Database\AdapterSQLite; $estado = new Estado(1, "Minas Gerais", "MG"); var_dump($estado); $connection = new Connection(new AdapterSQLite()); var_dump($connection); $connection->getAdapter()->open(); $connection->ge...
true
a9cc455cd29894d3b3bd14f14c76ace7f8f2b177
PHP
OzberyCrimea/app
/common/interfaces/ModuleInterface.php
UTF-8
405
2.859375
3
[ "MIT" ]
permissive
<?php namespace common\interfaces; /** * Interface ModuleInterface * @package common\models\interfaces */ interface ModuleInterface { /** * Initializes the module. */ public function init(); /** * Bootstrap method to be called during application bootstrap stage. * @param Application ...
true
b60aefbae4291779c4ecf5adf3bd7948dd345c6a
PHP
foowie/cron
/src/Foowie/Cron/Job/TimeIntervalJob.php
UTF-8
1,189
2.96875
3
[ "BSD-3-Clause" ]
permissive
<?php namespace Foowie\Cron\Job; use Foowie\Cron\Repository\IRepository; use Nette\SmartObject; use DateTime; /** * @author Daniel Robenek <daniel.robenek@me.com> */ class TimeIntervalJob implements IJob { use SmartObject; /** @var IJob */ protected $job; /** @var string */ protected $interval; /** @var s...
true
758e181ec2a0e43939996277dc9cb95b16af5d52
PHP
RedemptionCoder/weather-station-fullstack-prototype
/WSASEPP-Host/getApiResponse.php
UTF-8
2,562
2.921875
3
[]
no_license
<?php /** * This script retrieves the http response from a server attempting to avoid mechanisms that prevent * web scraping. It can be usefull in situations where interaction with a web api is required, especially * on the client side using JavaScript where normally the browser will produce CORS err...
true
41eca234a7789c8543b7ca77443443fe14058357
PHP
ateliee/php_lib
/src/func/func_header.php
UTF-8
5,510
2.8125
3
[ "MIT" ]
permissive
<?php //============================================ // func_header.php //============================================ //+++++++++++++++++++++++++++++ // BASIC認証 //+++++++++++++++++++++++++++++ function AuthenticateUser($auth_list, $realm = "Restricted Area", $failed_text = "認証に失敗しました") { if (isset($_SERVE...
true
88ac0fa07b467c5b2903013baad016179845a9b3
PHP
Jacoponigro/boolbnb-team2
/app/Http/Controllers/Admin/PropertyController.php
UTF-8
7,223
2.625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Admin; use Illuminate\Http\Request; //autenticazione use Illuminate\Support\Facades\Auth; //importo controller di base use App\Http\Controllers\Controller; //includo lo storage use Illuminate\Support\Facades\Storage; //importo i Model use App\Property; use App\Extra; use App\Messa...
true
c0b616b92011efe53ba85fb74185ab73b1ce7355
PHP
ctjsctjs/myBank
/resources/config.php
UTF-8
1,307
2.875
3
[]
no_license
<?php /** * Used to store website configuration information. * * @var string */ function config($key = '') { $config = [ 'name' => 'MyBank', 'db' => [ 'user' => 'host', 'password' => '', 'host' => 'localhost', 'database' => '' ], ...
true
12c767f6194b0ed1d52b76746bdd460edfb6c178
PHP
fenriz07/wpquiz
/app/Helpers/View.php
UTF-8
895
2.78125
3
[]
no_license
<?php namespace App\Helpers; class View { private static $partial = null; private static $vars = null; private static $HTML; public static function make($name, $data) { $path = LEVEL_PLACEMENT_DIR ."resources/views/{$name}.htm"; if (file_exists($path)) { self::$par...
true