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
269d2ec970b68e9cc3be10f58655c3501f5b7789
PHP
GenesisBautista/atud_app
/libs/ImportExtended.php
UTF-8
6,772
2.640625
3
[]
no_license
<?php interface IImportPartser{ public function cleandata($sheetdata); public function notebuilder($array); } require 'libs/import/aci.php'; require 'libs/import/fte.php'; require 'libs/import/ftw.php'; require 'libs/import/mv.php'; require 'libs/import/natl.php'; require 'libs/import/trans.php'; require 'lib...
true
89f44ab898ee5824275e440e6dd620849b6af749
PHP
frop/pss
/pss/PSS.php
UTF-8
1,283
2.921875
3
[]
no_license
<?php class PSS{ private $_connection; private $_output; public function __construct($host, $port = 22, $hostkey = 'ssh-rsa'){ if (!function_exists("ssh2_connect")) die("function ssh2_connect doesn't exist"); if (!$this->_connection = ssh2_connect($host, $port, arr...
true
8760e2acd8da53e81e79145f59e29fd6248e5581
PHP
sheldonjuncker/dj-yii
/models/freud/WordNormalization.php
UTF-8
1,186
2.5625
3
[]
permissive
<?php namespace app\models\freud; use Yii; /** * This is the model class for table "freud.word_normalization". * * @property string|null $matched_word Word literal or regular expression to match. * @property int $is_regexp * @property int|null $word_id Word to substitute. Null means the word is to be ignored. ...
true
2551f79ad8936b75067cb915d110163cb7127f9d
PHP
acarlson99/piscine-php
/day01/ex09/ssap2.php
UTF-8
1,122
3.3125
3
[]
no_license
#! /usr/bin/php <?php function ft_split($str) { $str = explode(" ", preg_replace('/ +/', ' ', trim($str, " "))); return ($str); } function ischar($c) { return (($c >= 'a' && $c <= 'z') || ($c >= 'A' && $c <= 'Z')); } function isdigit($c) { return ($c >= '0' && $c <= '9'); } function rfturn($l, $v) { printf("%d ...
true
dbbfa091ec5c6c9402d21a9be3e8fca920c88c36
PHP
gheorghestrimtu/TW-SpeculAPP
/login.php
UTF-8
1,568
2.53125
3
[]
no_license
<?php session_start(); if(isset($_SESSION["logged"])){ header("Location: already_logged_in.php"); } ?> <!DOCTYPE html> <html> <head> <title>Login</title> <link rel="stylesheet" type="text/css" href="navbar.css" /> <link rel="stylesheet" type="text/css" href="login.css" /> </head> <body> <nav> <ul class="na...
true
8f0fb64e874a60445c901df618597a8f2c1c2fb4
PHP
lamkhanhhuyen03/web_project
/controller/LoginController.php
UTF-8
1,592
2.609375
3
[]
no_license
<?php require_once 'model/Account.php'; class LoginController extends Account { function __construct() { parent::__construct(); } function loginFunction($username,$password) { $acc = new Account; $result = $acc->getuserInf($username, $password); if($result['username'] == $username && $result['password'] ...
true
a13084c1b63d821680e7e71ec3239919f247ace3
PHP
De-Paris07/Event-Bundle
/src/Socket/SocketInterface.php
UTF-8
3,913
2.921875
3
[]
no_license
<?php namespace ClientEventBundle\Socket; use App\Services\SocketService; use React\EventLoop\LoopInterface; use React\Socket\ConnectionInterface; /** * Interface SocketInterface * * @package ClientEventBundle\Socket */ interface SocketInterface { /** * @param string|null $uri * @param array $optio...
true
d0684d6e6549322e828aab730508cf656fc6c9e0
PHP
mactiencong/SimplePHPDI
/tests/DITest.php
UTF-8
418
2.546875
3
[]
no_license
<?php namespace phpdisimple; class DITest extends TestCase { public function testDI() { $maticoDeveloper = DI::get('Developer', array('name'=>'matico')); $maticoInfo = $maticoDeveloper->info(); $congmtDeveloper = DI::get('Developer', array('name'=>'congmt')); $congmtInfo= $congmtDeveloper->info(); $this-...
true
07a12f31198519232df1bcda978b1f0d98a22dd6
PHP
Andryhsm/sem_larve
/app/Http/Controllers/Admin/StatusesController.php
UTF-8
3,841
2.53125
3
[]
no_license
<?php namespace App\Http\Controllers\Admin; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use App\Models\Statuses; use App\Repositories\TicketRepository; class StatusesController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate...
true
6954e5331cf1c38421914d9c4022c44c414a35f5
PHP
Bassproshops/hubble2
/Router.php
UTF-8
1,304
2.765625
3
[]
no_license
<?PHP namespace MVC; class Router { public $GETurl = []; public $POSTurl = []; public function get($url, $fn) { $this->GETurl[$url] = $fn; } public function post($url, $fn) { $this->POSTurl[$url] = $fn; } public function access() { $validUrl ...
true
784bd4fdd572ac95c014d7987572f203d86101ed
PHP
TsukishimaKaori/SistemaTiquetes
/control/AdministrarHistorialTiquetes.php
UTF-8
5,432
2.71875
3
[]
no_license
<?php function historialInfoTiquetes($historial, $tiquete) { $tamanio = count($historial); if ($tamanio == 0) { echo '<h2 class="col-md-12 " style = "color:black; text-align:center">No hay resultados que mostrar</h2> '; } else { echo ' <div class = "panel panel-info">' . ...
true
0cd27f090f2174bc0b82de53ccd3835febda2c77
PHP
hrvbid/snh
/Zotlabs/Widget/Photo.php
UTF-8
1,108
3.125
3
[ "MIT" ]
permissive
<?php namespace Zotlabs\Widget; class Photo { /** * @brief Widget to display a single photo. * * @param array $arr associative array with * * \e string \b src URL of photo; URL must be an http or https URL * * \e boolean \b zrl use zid in URL * * \e string \b style CSS string * * @return ...
true
16919bd9783dc5a97d0b31ca971f095cc7ec7c8a
PHP
qwantix/qx
/qx/Controller.php
UTF-8
1,983
2.890625
3
[]
no_license
<?php namespace qx; /** * @author Brice Dauzats */ class Controller extends Observable { static private $_Uses = array(); /** * Include cntroller from name * @param string $controller * @return string $controller name */ static public function UseController($controller) { if(!isset(self::$_Uses[$contro...
true
8d6e113a453fce2bdd7c75eb6c04d4d7e1c89562
PHP
Shticrina/PHP-exercices-with-correction
/DateTime/datetimeEx10_12.php
UTF-8
2,431
2.734375
3
[]
no_license
<meta charset="utf-8" /> <?php // Cristina Dinca - Date and Time, ex 10 - 11 - 12 date_default_timezone_set('Europe/Brussels'); $tabJour = array('dimanche', 'lundi', 'mardi', 'mercredi', 'jeudi', 'vendredi', 'samedi'); $tabMois = array('janvier','f&eacute;vrier','mars','avril','mai','juin','juillet', 'août',...
true
e891e5dfdc29f002f7bbc72da7a9717826fa19b9
PHP
PetarMaksimovic3217/CS324-DZ15-Petar-Maksimovic-3217
/Zadatak/app/Http/Controllers/PersonController.php
UTF-8
2,953
2.578125
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Person; use Illuminate\Support\Facades\DB; class PersonController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $person...
true
749d35bc18bdba63f97c7d02c833d71565eb4cbc
PHP
ivan1993spb/rate-analyzer
/src/CoinCorp/RateAnalyzer/CandleBatcher.php
UTF-8
4,754
2.84375
3
[]
no_license
<?php namespace CoinCorp\RateAnalyzer; use CoinCorp\RateAnalyzer\Exceptions\ZeroBatchSizeException; use DateInterval; /** * Class CandleBatcher * * @package CoinCorp\RateAnalyzer */ class CandleBatcher implements CandleEmitterInterface { /** * @var \CoinCorp\RateAnalyzer\CandleEmitterInterface */ ...
true
2c80acd013f3d90340c17b6ee389fff30428ca82
PHP
souzapsl/store
/class/Products.class.php
UTF-8
909
2.84375
3
[]
no_license
<?php /** * Class Products * Class responsible for store products * @copyright (c) 2016, Paulo Souza * @author PAULO */ class Products { public $product_list; var $ipd = ['sku'=>'ipd', 'name'=>'Super iPad', 'price'=>549.99, 'promotional'=>499.99]; var $mbp = ['sku'=>'mbp', 'name'=>'MacBook P...
true
8116b002773f0be5b8a152be600d3192cd01d977
PHP
renanabraham/corcini-website-laravel7
/app/Http/Controllers/Admin/ProfileController.php
UTF-8
1,115
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Admin; use App\Http\Controllers\Controller; use App\Profile; use Illuminate\Http\Request; class ProfileController extends Controller { public function edit($id) { $profile = Profile::where('id', $id)->first(); if (isset($profile)) { return view...
true
af8dcd869cab87f7e594787808f438fc9b065ae1
PHP
deadfaraday/inka-ncr-mobile
/database/seeds/JabatanSeeder.php
UTF-8
999
2.71875
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; use App\Jabatan; class JabatanSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $rows = Excel::selectSheetsByIndex(0)->load('/public/seeder_file/seeder_jabatan.xlsx', function($reader){ ...
true
f7008c56a19ad3d86aa9804a6050cfdc8e7bb700
PHP
RaphiOriginal/webecProject
/database/migrations/2015_06_02_090120_CreateUserTable.php
UTF-8
988
2.609375
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateUserTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('members', function(Blueprint $table) { $table->increments('id'); $table->st...
true
7d962fbf33fae1d7b2865d703bed00dfdeddebe5
PHP
svanderburg/php-sbdata
/src/SBData/Model/Field/RawTextField.php
UTF-8
788
3.15625
3
[ "Apache-2.0" ]
permissive
<?php namespace SBData\Model\Field; use SBData\Model\Value\Value; /** * Represents the structure of an individual data element containing arbitrary unformatted text. */ class RawTextField extends GenericTextField { /** * Constructs a new RawTextField instance * * @param $title Title of the field * @param $m...
true
8dfd7246f831bd744e6d6eb809bb0d4b781f824c
PHP
delvauxo/lelixirdessens
/www/fr/controller/PrixController.php
UTF-8
1,770
2.65625
3
[]
no_license
<?php class PrixController extends Controller{ /** * ADMIN ACTIONS **/ /** * Liste les différents articles **/ function admin_index(){ $this->loadModel('Pri'); $condition = array('online' => 1); $d['prix'] = $this->Pri->find(array( 'conditions' => $condition, 'fields' => 'Pri.id,Pri.online,...
true
7509a11dfddea7f060ae525d5b75bd2f338a7495
PHP
ezegyfa2/WebaPaint
/app/Models/ShapePropertyType.php
UTF-8
833
2.71875
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; /** * @property integer $id * @property integer $shape_type_id * @property string $name * @property string $created_at * @property string $updated_at * @property ShapeType $shapeType * @property ShapeProperty[] $shapeProperties */ class Shap...
true
8ce6f1babbef1c10e9498009e1aecf722717aaef
PHP
sukhoy94/leetcode
/two-sum/solutions/bruteforce.php
UTF-8
620
3.921875
4
[]
no_license
<?php declare(strict_types=1); class Solution { /** * @param Integer[] $nums * @param Integer $target * @return Integer[] */ public function twoSum(array $nums, int $target): array { for ($i = 0; $i < count($nums) - 1; $i++) { for ($j = $i + 1; $j < count($nu...
true
50760ee40510d51cf1f01651037e65cedc6d8667
PHP
joelinjatovo/wp-per-dim
/src/WpPerDim/WordPress/Rest/Api.php
UTF-8
971
2.578125
3
[]
no_license
<?php namespace WpPerDim\WordPress\Rest; use WpPerDim\Interfaces\HooksInterface; use WpPerDim\Controllers\ApiController; /** * Api * * @author JOELINJATOVO Haja * @version 1.0.0 * @since 1.0.0 */ class Api implements HooksInterface{ const END_POINT = 'WpPerDim/v1'; /** * @see WpPerDim\Interfa...
true
1fc7e6731784d351848d92183f2bcb773192ab9c
PHP
paulloft/gdn-core
/src/Config.php
UTF-8
3,794
2.890625
3
[ "MIT" ]
permissive
<?php namespace Garden; use Garden\Helpers\Arr; class Config { public static $cached = false; public static $defaultExtension = 'php'; /** * @var array The config data. */ protected static $data = []; protected static $coreConfig = GDN_SRC . '/conf'; /** * Return all of the...
true
5dd0814b4cbfe34d9e9183e6120c3f3fcc5a08fa
PHP
MikePap/xml_html
/XML/SimpleXML/get_name.php
UTF-8
1,836
3.046875
3
[]
no_license
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Nome elemento XML </title> <style type="text/css"> h1{ color: #00F; fo...
true
c6d37c4f4f0a41ca1fa6633a3acdfdeeb324f7c3
PHP
AmboaraKanto/zotra
/application/models/Trajet_Model.php
UTF-8
2,881
2.53125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php class Trajet_Model extends CI_MODEL{ private static $db; private static $load; public function __construct() { parent::__construct(); self::$db = &get_instance()->db; self::$load = &get_instance()->load; } public function addtrajet($data){ ...
true
5db0a7ca651b287961e3be3e5706399f1a397380
PHP
nuevecubica/newpoc
/dist/pocs/js/js-good-parts/index.php
UTF-8
4,056
2.84375
3
[ "MIT" ]
permissive
<?php $pagename = "Google Maps API Js"; include_once( '../../poc_header.php' ); ?> <div class="app-holder"> <article> <h2>Embed Google Maps API Multiple Markers</h2> <main> <div id="map"></div> </main> <div class="spacer"></div> <h2>Fun Functions</h2> <d...
true
816be55705fdbe46e6430b3d53372e579d8fca62
PHP
elecostey/Azabar-Web
/src/send-email.php
UTF-8
1,841
2.59375
3
[]
no_license
<?php if(isset($_POST['email'])) { // email addresses where the message will be sent $email_info = "info@azbar.hr"; $email_sales = "sales@azbar.hr"; $name = $_POST['name']; $email = $_POST['email']; $phone = $_POST['phone']; $company = $_POST['company']; $message = $_POST['message']; ...
true
daa4b38d67499f29062af548362f63fc2d893b26
PHP
model3/model3
/src/Model3/Db/Db.php
UTF-8
6,632
2.96875
3
[ "MIT" ]
permissive
<?php namespace Model3\Db; /** * Capa de datos, para el proyecto multinivel "VOIP Life" * * Esta clase especifica una capa de datos basada en MySQL Server 5.x * @package VoIP-Life * @subpackage General * @author Hector Benitez * @version 1.0 * @copyright 2008 Hector Benitez */ /** * FETCH_ASSOC - La fila es un arreg...
true
af13cb5dbc35a3ebc7f0146842a5893cec214838
PHP
akoimeexx/hacker-application
/code/php/validateCC.php
UTF-8
1,637
3.140625
3
[]
no_license
<?php function validateCCN($cc_number) { switch($cc_number) { case ((substr($cc_number, 0, 2) > 50) and (substr($cc_number, 0, 2) < 56) and (strlen($cc_number) == 16)): /* It's a Mastercard, validate thusly */ return checkLuhn($cc_number); case ((substr($cc_number, 0, 1) == 4) and ((strlen($cc_number) == 13...
true
0fe4e383ca4119b54dcff11cf669bb23699fa221
PHP
tralex/Patterns
/examples/strategy/plane.php
UTF-8
147
2.5625
3
[]
no_license
<? class plane implements Transport { public function setTransport($name) { return "Выбран транспорт ".$name; } } ?>
true
2202d0a079b79e364f00966086c32ab73e5a6d3b
PHP
luochaovg/oil-bundle
/Module/Bsw/Preview/Entity/Charm.php
UTF-8
1,843
2.84375
3
[ "MIT" ]
permissive
<?php namespace Leon\BswBundle\Module\Bsw\Preview\Entity; class Charm { /** * @var string */ protected $charm; /** * @var mixed */ protected $value; /** * @var bool */ protected $html = false; /** * @var array */ protected $var = []; /** ...
true
583cbb460aaf51565c53e72e672e30848a6f3a8b
PHP
aiddroid/laravel-starter-kit
/app/ArticleCategory.php
UTF-8
751
2.6875
3
[]
no_license
<?php namespace App; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; class ArticleCategory extends Model { use SoftDeletes; //fillable fields protected $fillable = ['label', 'slug', 'order']; protected $dates = ['created_at', 'updated_at', 'deleted_at']; /*...
true
ce34854c2ef5b432abbfbfd7b6fdff8cc672f205
PHP
EnzoRoselli/CinemApp
/Controllers/StatisticController.php
UTF-8
5,083
2.78125
3
[]
no_license
<?php namespace Controllers; use DAO\PurchasesDAO as PurchaseDAO; use DAO\CinemasDAO as CinemaDAO; use DAO\MoviesDAO as MoviesDAO; class StatisticController { private $purchaseDAO; private $cinemaDAO; private $movieDAO; public function __construct() { $this->purchaseDAO = new PurchaseD...
true
147eaeddc7b8005804414f84103a284f2bffca09
PHP
symfony/symfony
/src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Action/Element/Header.php
UTF-8
920
2.515625
3
[ "MIT" ]
permissive
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\MicrosoftTeams\Action\Element; /** *...
true
ad433baa1330b5f82135b14c6b491774ca22939f
PHP
ValeGian/Hardware-ECommerce-Website
/php&index/ajax/AjaxResponse.php
UTF-8
1,716
2.828125
3
[]
no_license
<?php class AjaxResponse{ public $responseCode; // 0 all ok - 1 some errors - -1 some warning public $message; public $data; function AjaxResponse($responseCode = 1, $message = "Somenthing went wrong! Please try later.", $data = null){ $this->responseCode = $responseCode; ...
true
e5070e796d84bfa97d006ec4472529cc0d22a86f
PHP
Gh05t-PL/simple-influxdb-client-bundle
/src/Client/Client.php
UTF-8
1,942
2.65625
3
[]
no_license
<?php namespace Gh05tPL\SimpleInfluxDbClientBundle\Client; use InfluxDB2\InvokableScriptsApi; use InfluxDB2\Model\HealthCheck; use InfluxDB2\QueryApi; use InfluxDB2\UdpWriter; use InfluxDB2\WriteApi; /** * @template T */ interface Client { /** * Write time series data into InfluxDB through the WriteApi. ...
true
4b49a831ce285543ba3b50a33658641a9594f518
PHP
filiplikavcan/krestaniaprotinenavisti
/src/Model/AbstractModel.php
UTF-8
969
3
3
[]
no_license
<?php namespace App\Model; use Doctrine\DBAL\Connection; use Doctrine\DBAL\DBALException; use Doctrine\DBAL\Driver\Statement; class AbstractModel { /** * @var Connection */ protected $connection; public function __construct(Connection $connection) { $this->connection = $connection;...
true
c4702d52f8e1df13bc244c85076a54be92e970f5
PHP
cubaguest/CubeCMS
/lib/token/token.class.php
UTF-8
1,918
2.75
3
[]
no_license
<?php /** * Třída token pro práci s tokeny, (ochrana před útoky) * * @copyright Copyright (c) 2008-2010 Jakub Matas * @version $Id: $ VVE 7.1 $Revision: $ * @author $Author: $ $Date: $ * @author cuba * $LastChangedBy: $ $LastChangedDate: $ * @abstract Třída */ class Toke...
true
16e614b7da7b12e1fb7d759bf0261a7ec4f05dfc
PHP
Kalaxia/portal
/src/RSS/Parser.php
UTF-8
1,709
3.15625
3
[]
no_license
<?php namespace App\RSS; class Parser { /** @var Template **/ protected $template; /** @var array **/ public $items = []; public function __construct(DefaultTemplate $template) { $this->template = $template; } /** * Feed method: parse rss from link and store result in c...
true
c19c2f1a525cb810e8f32c02d3c7336f099f78f8
PHP
assistunion/oxygen
/sql/builder/builder.class.php
UTF-8
4,834
2.90625
3
[]
no_license
<? class Oxygen_SQL_Builder extends Oxygen_Object { // function safeName($name) relies on the assumption // that nobody will use a dot (.) within column names. // Even in escaped form. Also we assume that there are // no escaped leading and trailing spaces. // (If it's the case for you - my regrets!) // ...
true
8bd7aa222cc488c3e7a3be76663134dc87a474a1
PHP
leaperdev/rsk
/themes/default/pages/products.php
UTF-8
5,199
2.53125
3
[]
no_license
<?php if (isset($_GET['sort'])){ parse_str($_GET['sort'], $GET); } //Get list inputs $pageNo = empty($_GET['page_no']) ? 1 : $_GET['page_no']; $limit = empty($_GET['limit']) ? 20 : $_GET['limit']; $offset = ($pageNo - 1) * $limit; $search = !empty($_GET['search']) ? $_GET['search'] : ''; $sort_by = isset($GET['sort...
true
9432f09bd3a8b4b658c98e4a59543c1684a81811
PHP
abelardolg/civitatis
/src/CivitatisSoftware/Activity/Application/ShowAllActivitiesUseCase.php
UTF-8
1,437
2.625
3
[]
no_license
<?php namespace App\CivitatisSoftware\Activity\Application; use App\CivitatisSoftware\Activity\Domain\Activity; use App\CivitatisSoftware\Activity\Domain\ActivityList; use App\CivitatisSoftware\Activity\Infrastructure\ActivityRepository; use App\CivitatisSoftware\Shared\ComputeHelper; use App\CivitatisSoftware\Shared...
true
0e740f1487f7ed6e44cfec1f2dd6ab7ad72a45bb
PHP
pa-de-solminihac/clementine-framework-module-users-scripts
/versions/1.15/upgrade.php
UTF-8
5,079
2.546875
3
[]
no_license
<?php /** * Script non interactif de mise à jour du module users depuis la version 1.14 vers la version 1.15 */ // deja appele par l'installer // $db->beginTransaction(); // creation des tables $sql = <<<SQL CREATE TABLE clementine_users_treepaths ( ancestor INT UNSIGNED NOT NULL, descendant I...
true
f3fc51c0b37e2024226af021ccea5ef09612bf2d
PHP
AkikoGoto/test
/action/container_smartphone.php
UTF-8
2,079
2.828125
3
[]
no_license
<?php /** ドライバーのステータスアップデート空車 データベースへ状況を入力 スマートフォンアプリからの入力 * ver2.2から追加 * 画面なし */ /** * 共通設定読み込み */ $keys=array(); $keys=array_merge($target_array); //テストデータ /* $_POST['latitude']=35.455892; $_POST['longitude']=139.592055; $_POST['target_id']=1234; $_POST['driver_id']=636; $_POST['address']="〒221-0835 横浜市神奈川区鶴屋...
true
3e5468e68aea2d3fcd4148dd6d4acfe91a0bf222
PHP
manasgokhale/watchit
/Scripts/connect.php
UTF-8
571
2.609375
3
[]
no_license
<?php $dbServername = "localhost"; $dbUsername = "root"; $dbPassword = ""; $dbName = "watchit"; $name=$_POST['name']; $contact_no=$_POST['contact_no']; $email_id=$_POST['email_id']; $password=$_POST['password']; $conn = mysqli_connect($dbServername, $dbUsername, $dbPassword, $dbName) or die("Connection...
true
ec0efef134c0716b4fcd8e170de52bdf56532b26
PHP
PanchoPuncho/GreenOrchardPhoto
/php/wedding_email_client.php
UTF-8
2,652
2.671875
3
[]
no_license
<?php // check if fields passed are empty if ( empty($_GET['numHours']) ) { echo "No numHours provided!"; return 400; } else if ( empty($_GET['numShooters']) ) { echo "No numShooters provided!"; return 400; } else if ( empty($_GET['numHard']) ) { echo "No numHard provided!"; ...
true
21fc3f6924c23e005aea561e165367bf268d5f77
PHP
rawphp/slicer
/src/Slicer/Command/BackupCommand.php
UTF-8
4,227
2.546875
3
[ "MIT" ]
permissive
<?php /** * This file is part of Slicer. * * Copyright (c) 2015 Tom Kaczocha <tom@rawphp.org> * * This Source Code is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, you can obtain one at http://mozilla.org/MPL/2.0/. * * PHP v...
true
c622d4ec3f8b7d8cec8ea4a4ee68a5858c5b7d7b
PHP
ivansamofal/strategyPHP
/php.php
UTF-8
123
2.5625
3
[]
no_license
<? class php implements Page{ function newFile($name){ return "this is new file with name: " . $name . ".php"; } }
true
b2d59cd1ba0fb0e93ae487fc4a0510f80605f41f
PHP
skydiablo/swiftmailer-extension-bundle
/Plugin/CSS2Inline/CSS2InlineProcessorInterface.php
UTF-8
359
2.546875
3
[]
no_license
<?php namespace SkyDiablo\SwiftmailerExtensionBundle\Plugin\CSS2Inline; /** * CSS to Inline Processor Interface * * @author Volker von Hoesslin <volker.von.hoesslin@empora.com> */ interface CSS2InlineProcessorInterface { /** * Fetch HTML CSS to inline and returned the result * @param string $html ...
true
aead738b685173dd2acb025ffd87c19edd5be0ba
PHP
voluntariness/private.code
/controller.php
UTF-8
3,873
2.578125
3
[]
no_license
<?php class device { public function index () { if ($kind = Input::get('search_kind')) { $query->whereIn('kind', $kind); } if ($user = Input::get('search_user')) { //$sql = "SELECT device_id AS id // FROM record // WHER...
true
52a102d9739d65176242cfb036159d375caad8a6
PHP
zizou86/laravel-keycloak-admin
/tests/UsersResourceTest.php
UTF-8
10,384
2.65625
3
[ "MIT" ]
permissive
<?php namespace Scito\Keycloak\Admin\Tests; use Scito\Keycloak\Admin\Representations\RepresentationCollectionInterface; use Scito\Keycloak\Admin\Representations\UserRepresentationBuilder; use Scito\Keycloak\Admin\Representations\UserRepresentationInterface; use Scito\Keycloak\Admin\Resources\UsersResourceInterface; u...
true
5f611aa25ad72d77ace73588a79399e521dcc93e
PHP
MartinMarx/symfony-boilerplate
/src/Domain/Logger/Model/Message.php
UTF-8
593
3.03125
3
[]
no_license
<?php namespace App\Domain\Logger\Model; class Message { private string $tag; private string $message; private ?Context $context; public function __construct(string $tag, string $message, ?Context $context = null) { $this->tag = $tag; $this->message = $message; $this->cont...
true
c1e160fcf0cc7af90b3931c984d52c4f2b2e03a1
PHP
PatrickJose00/GamingWebAPP
/MythicGaming/DAL/product_categoriesDAL.php
UTF-8
2,900
2.890625
3
[]
no_license
<?php require_once(dirname(__FILE__).'/../DataAbstraction/DB.php'); require_once(dirname(__FILE__).'/../BL/product_categories.php'); class product_CategoriesDAL { public static function create($product_categories) { $db=DB::getInstance(); //ligaçao a BD $query="INSERT INTO product_categories (nam...
true
621d8b53a4f2dc62017beee5521a5861caa6281f
PHP
ShinnnVu/SoftwareEngineering
/DB.php
UTF-8
1,864
2.640625
3
[]
no_license
<?php include 'config.php'; class Database { private $conn; public function __construct() { $this->conn=new config(); } public function insertAccount($user_name, $user_pass, $user_role,$user_email) { if ($this->checkUsername($user_name)>0) return 0; else { ...
true
2a67f11704b787fc06421c805ce96756c83e7687
PHP
realsokoley/module-quiz
/Model/Resolver/Result.php
UTF-8
3,142
2.546875
3
[]
no_license
<?php /** * @author Sokoley * @copyright 2021 Sokoley * @package Sokoley */ namespace Sokoley\Quiz\Model\Resolver; use Magento\Catalog\Api\ProductRepositoryInterface; use Magento\Framework\Exception\NoSuchEntityException; use Magento\Framework\GraphQl\Config\Element\Field; use Magento\Framework\GraphQl\Exception\G...
true
732288d9b91c269908cf5b39deb277ae4e9266be
PHP
wcpzzz/CV
/findlove/includes/login.inc.php
UTF-8
1,461
2.53125
3
[]
no_license
<?php session_start(); if (isset($_POST['submit'])) { include 'dbh.inc.php'; $phone=mysqli_real_escape_string($conn,$_POST['phone']); $pwd=mysqli_real_escape_string($conn,$_POST['pwd']); //Check if (empty($phone)||empty($pwd)) { header("Location:../index.php?login=empty");...
true
1d44f831e3d761f56b1350dd51bf42bc13a3e612
PHP
pjohny/icom-importer
/Model/Import/Source/Product.php
UTF-8
3,132
2.59375
3
[]
no_license
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\ImportExport\Model\Import\Source; /** * CSV import adapter */ class Product extends \Magento\ImportExport\Model\Import\Source\Csv { private $descriptions = [ "description1", "...
true
f2236d107e7b546be3f5c346b321da5696c41fe0
PHP
elgervb/imagemanipulation
/src/imagemanipulation/filter/ImageFilterRoundedCorners.php
UTF-8
2,082
3.03125
3
[]
no_license
<?php namespace imagemanipulation\filter; use imagemanipulation\ImageResource; use imagemanipulation\color\Color; use imagemanipulation\Args; /** * add rounded corners to the image */ class ImageFilterRoundedCorners implements IImageFilter { private $radius; private $color; public function __construct( $radius ...
true
a258267a8e684c18fae77695012987875ef45cc6
PHP
Ahmed-Badawy/JavaScript-Apis-Demos
/Canvas/php_controllers/download.php
UTF-8
549
2.59375
3
[]
no_license
<?php // $file = 'http://localhost/tests/canvas/'.$_GET['file']; // //tell php it's an image // header('Content-type: image/png'); // //tell php it's an attachment // header("Content-type: attachment;filename=canvasoutput.png"); // //spit out the file // readfile($file); $file_url = 'http://localhost/tests/canvas/'....
true
d91a59bfa3aef70338dc48334acf561ef2032ae9
PHP
pardo-c/OneEpicPlace-WebsiteSchedulingExtension
/f17-08/Current/register-to-database.php
UTF-8
1,898
2.765625
3
[]
no_license
<?php if (isset($_POST['RegisterButton'])) { include_once 'connect-to-database.php'; //Current fields being inserted into for current table $email = mysqli_real_escape_string($conn, $_POST['email']); $password = mysqli_real_escape_string($conn, $_POST['password']); $username = mysqli_real_escape_s...
true
ea575a1a9028c7b405d37ad4a843775ab556abf9
PHP
TazShetu/HR_Management
/database/seeds/BranchesTableSeeder.php
UTF-8
838
2.734375
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; use App\Branch; class BranchesTableSeeder extends Seeder { public function run() { $branches = ['Main', 'Dhaka', 'Khulna', 'Cryptograms', 'Sirajganj', 'Dinazpur', 'Rangpur']; foreach ($branches as $b){ App\Branch::create([ 'tit...
true
49c87e3fc0086b7c0e0d42f2ed796f54172a9a6f
PHP
QurTu/bank-php
/app/Funds.php
UTF-8
1,433
2.71875
3
[]
no_license
<?php namespace Main; use App\DB\MySQL; use App\DB\DataBase; class Funds { public static function add($id, $add) { if( $add > 0) { $data = new DataBase(); $old = $data->show($id); $old['balance'] = floatval( $old['balance']) +floatval($add); $data->update($id, $...
true
eb59bf0934b3d4c0f3019c656105187bdd166b1e
PHP
Wardell30/M8Reborn
/pdf.php
UTF-8
3,524
2.703125
3
[]
no_license
<?php include('session.php'); include('config.php'); require('vendor/php/fpdf.php'); class PDF extends FPDF { // Page header function Header(){ $this->SetFont('Arial','B',15); // Move to the right $this->Cell(80); // Title $t...
true
b53f51cbe355b6f79daa8bacb7bf8bc518aeb191
PHP
iamazhi/cqrs
/src/LiteCQRS/EventStore/OptimisticLocking/OptimisticLockingEventStore.php
UTF-8
2,154
2.609375
3
[ "MIT" ]
permissive
<?php namespace LiteCQRS\EventStore\OptimisticLocking; use Rhumsaa\Uuid\Uuid; use LiteCQRS\EventStore\EventStream; use LiteCQRS\EventStore\Transaction; use LiteCQRS\EventStore\EventStreamNotFoundException; use LiteCQRS\EventStore\EventStore; use LiteCQRS\Serializer\Serializer; class OptimisticLockingEventStore imple...
true
15069f98023d1e396e16f36c943b53c09cb1868c
PHP
maythit/winestore_purephp
/controller/sparklingwine_controller.php
UTF-8
1,109
2.703125
3
[]
no_license
<?php require_once '../model/sparklingwine_model.php'; if(isset($_POST['update'])) { $update = new SparklingWineController(); $update->update(); header("Location:../view/sparklingwine_view.php"); } class SparklingWineController { function __construct() { } // *** select datatable for sp...
true
9225ad5b1317d6e767a61e8e897d42e3d3cbcfcc
PHP
hazelcodes/php-helpers
/src/View/View.php
UTF-8
394
2.609375
3
[]
no_license
<?php namespace HazelCodes\View; use \HazelCodes\Delegation\Delegates; abstract class View { use Delegates; protected $context; abstract public function __toString() : string; public function __construct($context) { $this->context = $context; } static public function render($context) { $class...
true
af9fd5ffa1cb668f2c2933daeeecf5727daf203d
PHP
gabrielczr/php_mysql_final_exam
/Exercise4/index.php
UTF-8
776
3.203125
3
[]
no_license
<?php require_once "cat.php"; $cat1 = new Cat('Blackie', 2, 'black', 'male', 'persian'); $cat2 = new Cat('Louise', 5, 'white', 'female', 'common'); $cat3 = new Cat('Thomas', 1, 'grey', 'male', 'russian blue'); //var_dump($cat1); $cats = array($cat1, $cat2, $cat3); ?> <table border='1'> <thead> <tr> <th>...
true
bbc3cab045cfa55329338c914091a03981d9710e
PHP
lotar/zippo
/module/Application/src/Application/Document/User.php
UTF-8
4,415
2.71875
3
[]
no_license
<?php namespace Application\Document; use Doctrine\ORM\Mapping as ORM; use ZfcUser\Entity\UserInterface; // TODO: GOOGLE api for lat/long /** * @ORM\Table(name="users") * @ORM\Entity(repositoryClass="Application\Repository\User") * * Class User * @package Application\Document */ class User extends Base implem...
true
fe28ebbf34ddb6555c2e2fae845e26bc64d7af88
PHP
lordjack/easy-software-product-derivation
/admin/lib/adianti/base/AdiantiStandardListTrait.php
UTF-8
15,306
2.515625
3
[ "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-free-unknown", "MIT" ]
permissive
<?php namespace Adianti\Base; use Adianti\Core\AdiantiCoreTranslator; use Adianti\Widget\Base\TElement; use Adianti\Widget\Dialog\TMessage; use Adianti\Widget\Dialog\TQuestion; use Adianti\Control\TAction; use Adianti\Database\TTransaction; use Adianti\Database\TRepository; use Adianti\Database\TRecord; use Adianti\Da...
true
1f10aa5c62bcb3dce57ccefbc1b2e1cb509a55f0
PHP
FrederickPullen/Sfera-Dev-RC
/protected/controllers/webservice/PullRequestController.php
UTF-8
5,867
2.71875
3
[]
no_license
<?php /** * Pull Request API. Currently it supports only accept option. * * @author Rafayel A. <rafayel.arzumanyan@sferastudios.com> * @created at 2nd day of September 2015 */ class PullRequestController extends Controller { private $_userSession = NULL; /** * The method is being run when the cont...
true
48eeac4874093f0c9b5fb920c8eaae2726dbb674
PHP
AsuraProject/WebService
/backend/getAppsAPI.php
UTF-8
1,962
2.625
3
[ "Apache-2.0" ]
permissive
<?php /* Copyright 2017 Yuri Faria Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, s...
true
9f374a851082c56a7da1ce4e42faaf7f5d9c045e
PHP
FinalEnd/FE
/FinalEnd/class/objects/cls_AllianzComment.php
UTF-8
925
2.875
3
[]
no_license
<?php class AllianzComment extends ParseAbleObject { private $Id; private $Content; private $CreateUser; private $CreateDate; public function __construct($Id,$Content,User $CreateUser,$CreateDate) { $this->Id=$Id; $this->Content=$Content; $this->CreateDate=$CreateDate; $this->CreateUser=$CreateUser; }...
true
127f09c76547faa6bdf4acaafefec9bfe24d7ed6
PHP
levanvinh1503/PHP-Training
/Week3/SessionDB/SessionDB2/functionSessionDB2.php
UTF-8
660
2.765625
3
[]
no_license
<?php require_once __DIR__."/../classSession.php"; if (isset($_POST["idSessionDB2"])) { /** * SelectValueDB Select a value as a parameter in the database * * @param string $idSelect * * @return void */ function SelectValueDB($idSelect) { $idSec = $idSelect; $...
true
35ef24c49dac0280dbcc778a4cd2386e250179af
PHP
stefanneculai/ucmapp
/code/model/default.php
UTF-8
415
2.734375
3
[]
no_license
<?php /** * My custom base model. * * @package Examples * * @since 12.1 */ class SimpleModel extends JModelBase { /** * Get the content count. * * @return integer * * @since 12.1 * @throws RuntimeException on database error. */ public function getData() { try { return $conte...
true
bd9237a3d3894b2b70b1f88dea171c1a330642ac
PHP
mikhailtapang/awhcps.github.io
/class/Item.php
UTF-8
6,399
2.703125
3
[]
no_license
<?php require_once('../database/Database.php'); require_once('../interface/iItem.php'); class Item extends Database implements iItem{ public function __construct() { parent:: __construct(); } public function my_session_start() { if(session_status() == PHP_SESSION_NONE) { session_start();//s...
true
27f3aea39246861fa8eac43581babe935016c4dc
PHP
fsalazarsch/connectus-php
/test/connectus/MAIL/Models/Consumo.php
UTF-8
1,923
2.78125
3
[]
no_license
<?php require_once __DIR__."/Models.php"; class Consumo extends Models { public $id; public $cuenta_corriente; public $consumo_sms = 0; public $consumo_mail; public $valor; public function save() { $sql = "INSERT INTO consumo SET "; ...
true
1077a68ca6243f7c17fcb9155384f7a0aee982fd
PHP
sas03/ToCanaan
/app/Http/Repositories/MetiersRepository.php
UTF-8
10,425
2.828125
3
[]
no_license
<?php namespace App\Http\Repositories; use App\Metier; use Illuminate\Validation\Rule; use Validator; use Illuminate\Support\Facades\DB; /** * Repository class to communicate with data sources of different kinds */ class MetiersRepository implements RepositoryInterface { /** * Selectionne tous les métiers ...
true
8d3523cd8d7baaf0f6bd8d1c70a7b2925ceee201
PHP
yohei3/24_07_ShiraiYohei
/write.php
UTF-8
1,372
3.015625
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>出力結果</title> </head> <body> <?php $recipe_name = $_POST["recipe_name"]; $category = $_POST["category"];...
true
fadea28c5ce4c6f3198d09638655590330f0791e
PHP
Mohimenol-Islam-Munna/Laravel_Crash_Course_2020
/app/Http/Controllers/Auth/RegisterController.php
UTF-8
1,320
2.609375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Auth; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Hash; class RegisterController extends Controller { public function index(){ return view('auth.register'); } public func...
true
9f7317c7cb4ec1381ccc2b188a58cda64c869622
PHP
DevEduardo/creditos
/app/Company.php
UTF-8
1,852
2.53125
3
[]
no_license
<?php namespace App; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; class Company extends Model { use SoftDeletes; protected $dates = ['deleted_at']; protected $fillable = ['name', 'slug', 'profile_id']; public function profile () { return $this->belongsTo(Profi...
true
d7049aebc96189cb87d1e42a69eecbd472c37023
PHP
Reinicia/FundacionCope
/wp-content/plugins/advanced-custom-fields/core/controllers/field_group.php
UTF-8
11,772
2.578125
3
[]
no_license
<?php /* * Field Group * * @description: All the functionality for creating / editing a field group * @since 3.2.6 * @created: 23/06/12 */ class Field_group { var $parent, $data; /* * __construct * * @description: * @since 3.1.8 * @created: 23/06/12 */ function __construct($parent) { ...
true
d34f18bd64781ba5f2f94880708a94692a9789b8
PHP
janmarek/Neuron
/Model/Authenticator/DefaultAuthenticator.php
UTF-8
1,076
3.03125
3
[ "MIT" ]
permissive
<?php namespace Neuron\Model; use Nette\Security\Identity, Nette\Security\AuthenticationException; class DefaultAuthenticator implements \Nette\Security\IAuthenticator { /** @var \Model\User\Service */ private $userService; public function __construct($userService) { $this->userService = $userService; } ...
true
140996adf0e8dc14441a9917b9ffa6f5bbfa0de4
PHP
pato014/webappBNSEC22-1BNSEC22-2
/Lecture7/blog/admin/database/dbconnection.php
UTF-8
428
2.734375
3
[]
no_license
<?php $pdo_host = "localhost"; const pdo_user = "root"; const pdo_password = ""; $pdo_dbname = "isspdb"; try { $pdo = new PDO("mysql:host=$pdo_host; dbname=$pdo_dbname", pdo_user, pdo_password); $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); // echo "<p>Success...
true
f0d9a17107e06f16cf5f33d1e8806bf04cb8f732
PHP
ViniciusPereira311/Trabalho-do-Almir
/login.php
UTF-8
747
2.5625
3
[]
no_license
<?php $usuario = trim($_POST['usuario']); $senha = md5(trim($_POST['senha'])); if (!empty($usuario) && !empty($senha)){ include 'conexao.php'; $pdo = Conexao::conectar(); $pdo->setAttribute(PDO:: ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $sql = "SELECT * FROM usuarios WHERE usuario LIKE ?;"...
true
86b08d884d57bec07052b82f03682a2ba3f09d38
PHP
zhangx1023/wechat_service
/application/library/TZ/Validator.php
UTF-8
3,084
3
3
[]
no_license
<?php /** * 参数验证类 * * @author vincent <vincent@747.cn> * @final 2013-06-03 */ class TZ_Validator { /** * 验证方法,必须为空 * * @param string $name * @param string $type * @param array $rules */ static public function check($name, $type = 'get', $rules = false) { if (empty($name)) throw new Exceptio...
true
5a9e8e363375b19f0311a9ff8f6af7f763aab001
PHP
iluxa-com/fcoffice
/2012-02/alice/model/redis/DayTaskModel.php
UTF-8
754
2.5625
3
[]
no_license
<?php /** * 每日任务模型类(hash) * * @author xianlinli@gmail.com * @example $dayTaskModel = new DayTaskModel($userId);<br /> * $dayTaskModel->hIncrBy($itemId, $num);<br /> * $num = $dayTaskModel->hGet($itemId);<br /> * $dayTaskModel->hDel($itemId);<br /> * $dataArr = $dayTaskMod...
true
4964324d748d0d526e46a7fbca884ac0f3ca61e2
PHP
daikanto/oneline_bbs
/bbs.php
UTF-8
9,998
2.875
3
[]
no_license
<?php // ここにDBに登録する処理を記述する // 1.データベースに接続する $dsn = 'mysql:dbname=oneline_bbs;host=localhost'; $user = 'root'; $password = ''; $dbh = new PDO($dsn, $user, $password); $dbh->query('SET NAMES utf8'); //1:DB接続//リモートのDB /*$dsn = 'mysql:dbname=LAA0792964-onelinebbs;host=mysql103.phy.lolipop.lan'; $user = 'LAA07...
true
4131b3e1132ae6e2f1ec7c04fe65abdea47e85fd
PHP
imponeer/properties
/src/Types/ArrayType.php
UTF-8
1,548
2.953125
3
[ "MIT" ]
permissive
<?php namespace Imponeer\Properties\Types; use Imponeer\Properties\AbstractType; /** * Defines array type * * @package Imponeer\Properties\Types */ class ArrayType extends AbstractType { /** * @inheritDoc */ public function isDefined() { return !empty($this->value); } /** * @inheritDoc */ public ...
true
455d7bcafc2827f9152fdfc752a8490c85db646a
PHP
schoettl/sweng-projekt
/src/domain/Lock.php
UTF-8
1,915
3.109375
3
[]
no_license
<?php require_once 'LockConfig.php'; require_once __DIR__.'/../lib/DBAccess.php'; class Lock { private $lockId; private $config; function __construct($lockId) { $this->lockId = $lockId; $this->config = new LockConfig(); } function getLockId() { return $this->lockId; ...
true
fa697a228430e489be855c2164e50bf614181cbb
PHP
Jazz-Man/wp-option
/Option.php
UTF-8
21,178
2.8125
3
[]
no_license
<?php namespace JazzMan\OptionsPage; /** * Class Option. */ class Option { /** * @var array */ private $pages = []; /** * @var */ private $options; /** * FXFXS_Option constructor. */ public function __construct() { add_action('admin_menu', [$this, 'addPages']); add_action('admin_init', [$thi...
true
e7c5a1031d12608a7264a97f18b5c2b27a2c72c6
PHP
phpstan/phpstan-src
/tests/PHPStan/Rules/Methods/data/recursive-iterator-iterator.php
UTF-8
289
2.8125
3
[ "MIT" ]
permissive
<?php namespace RecursiveIteratorIteratorMixin; class Foo { public function doFoo(): void { $it = new \RecursiveDirectoryIterator(__DIR__); $it = new \RecursiveIteratorIterator($it); foreach ($it as $_) { echo $it->getSubPathname(); echo $it->getSubPathname(1); } } }
true
5c751f81508191839da1c75dbe5b612126904481
PHP
Manapyzz/vending-machine-mvc
/model/VendingMachine.php
UTF-8
358
3.25
3
[]
no_license
<?php class VendingMachine { private $money; private $capacity; public function __construct($money, $capacity) { $this->money = $money; $this->capacity = $capacity; } public function getMoney() { return $this->money; } public function getCapacity() { ...
true
8b70a5e236b4b53cc194f9d67f6f8cc392bbab86
PHP
Onalu/sherlock
/src/Sherlock/requests/UpdateDocumentRequest.php
UTF-8
1,764
2.6875
3
[ "MIT" ]
permissive
<?php /** * User: Umutcan Onal * Date: 22.05.2014 * Time: 17:22 */ namespace Sherlock\requests; use \Elasticsearch\Client; class UpdateDocumentRequest extends Request { public function __construct($esClient) { $this->params['index'] = null; $this->params['type'] = null; $this->p...
true
fe0022ebef045ab3ef3b285157629a6789152a00
PHP
LordPhoenix21/GiftManager
/Vue/formulaire_liste.php
UTF-8
960
2.8125
3
[]
no_license
<?php session_start() ?> <!DOCTYPE html> <html> <head> <meta charset = "utf-8"> <title>GiftManager</title> <link rel = "stylesheet" href = "css.css"> </head> <body> <?php if(isset($_SESSION["listeError"])){ if($_SESSION["listeError"]){ ...
true
2a02dea7d29c10d6c842c03e03cffe0c02cd7444
PHP
Sameh-R-Labib/complete_app_one
/how_web/isAmericanDatetime.php
UTF-8
2,500
2.953125
3
[]
no_license
<?php error_reporting(E_ALL); ini_set("display_errors", 1); require_once('../includes/login_funcs.php'); require_once('../includes/db_vars.php'); require_once('../includes/header_footer.php'); // User must be logged in and be someone special. if (!user_isloggedin() || !user_type_cookieIsSet()) { $host = $_SERVER['H...
true
8e32a415bd85713c605e427491c90aef1cdffd83
PHP
baturkacamak/chip-downloader
/utility/Chip.php
UTF-8
2,472
3.34375
3
[]
no_license
<?php namespace Utility; /** * Class Chip */ class Chip { /** * The Downloader instance. * * @var Downloader */ private $downloader; /** * Constructor. * * @param Downloader $downloader The Downloader instance. */ public function __construct(Downloader $downl...
true
41a99d8ce97717e5eb441f8ca23d071735951b3c
PHP
Zaggoware/Framework
/src/Zaggoware/SimpleWeb/Routing/RouteCollection.php
UTF-8
7,965
2.796875
3
[ "MIT" ]
permissive
<?php namespace Zaggoware\SimpleWeb\Routing { use Zaggoware\Exceptions\ArgumentNullException; use Zaggoware\Generic\ArrayList; use Zaggoware\Generic\Dictionary; use Zaggoware\Generic\ICollection; use Zaggoware\Generic\IDictionary; use Zaggoware\Generic\IList; use Zaggoware\SimpleWeb\Site; ...
true