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
c9934a0c99cd5b1a8159610588c0122b882ddaa1
PHP
vov459/Dentistry
/model/HourReception.php
UTF-8
2,163
3.125
3
[]
no_license
<?php namespace Model; use DateTime; class HourReception { public static function fromAssocArray($arr) : HourReception{ $res = new HourReception(null,null,null,null,null); foreach ($arr as $key=>$item){ if($key == "hour" || $key == "date"){ $res->$key = new D...
true
c9ae7ecefd1ed9922e4d068a5d5b00b244458f15
PHP
P79N6A/cts-project
/Lib/Comm/Swift/Classes/Plugin.php
UTF-8
348
2.515625
3
[]
no_license
<?php /** * 插件基类 * * @package Swift * @copyright copyright(2011) weibo.com all rights reserved * @author weibo.com php team */ abstract class Swift_Plugin { public $is_cli_enable; public function get_name(){ return substr(strtolower(get_class($this)), 7); } abstract publi...
true
7d89c6c7453a0ce13bc10c1c58448e5b5f6a4c8e
PHP
valentinvarbanov/web_programming
/web-project/shared.php
UTF-8
4,551
2.609375
3
[]
no_license
#!/usr/bin/env php <?php require_once("./websockets.php"); const db_server = "127.0.0.1"; const db_username = "root"; const db_password = ""; const db_name = "sheets"; function get_db_connection() { // Create connection $conn = new mysqli(db_server, db_username, db_password, db_name); // Check connection...
true
c35305e01c0fb171df11f6c0667a3bce9abbdab7
PHP
jorgefprietol/reservasy
/lib/Common/ErrorMessages.php
UTF-8
1,967
2.515625
3
[]
no_license
<?php /** Copyright 2020 Prieto Linares, Jorge Fidel This file is part of Agenda Capacitaciones Yanbal is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any late...
true
5d2c7568660f58a6416f0e28d32d7b39529c22f9
PHP
umerhassan/seng401_lab4
/app/Http/Controllers/UserController.php
UTF-8
878
2.703125
3
[]
no_license
<?php namespace App\Http\Controllers; use App\User; use Illuminate\Http\Request; use Illuminate\Routing\Redirector; class UserController extends Controller { /** * Change the role of a specific user * * @param \Illuminate\Http\Request $request * @return \Illuminate\Contracts\Support\Renderable */ ...
true
4c9b0302f805faadaa16a49f2291c11e920124f9
PHP
drdplusinfo/races
/src/Dwarfs/Dwarf.php
UTF-8
601
2.890625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace DrdPlus\Races\Dwarfs; use DrdPlus\Codes\RaceCode; use DrdPlus\Codes\SubRaceCode; use DrdPlus\Races\Race; abstract class Dwarf extends Race { public const DWARF = RaceCode::DWARF; /** * @param SubRaceCode $subRaceCode * @return Dwarf|Race */ protect...
true
2be280219b2e9c2dd2555618491aa855338dc4e4
PHP
cmeehan1991/MeehanWoodWorking
/includes/widgets/SocialMediaWidget.php
UTF-8
1,530
2.8125
3
[]
no_license
<?php class Social_Media_Widget extends WP_Widget{ /** * Sets up the widgets name etc */ public function __construct() { $widget_ops = array( 'classname' => 'my_widget', 'description' => 'My Widget is awesome', ); parent::__construct( 'social_media_widget', 'Social Media', $widget_ops ); } /** ...
true
b7caf78beac65020bfc6788d49fb0399b26c96db
PHP
doctrine/DoctrineModule
/tests/Authentication/Adapter/TestAsset/IdentityObject.php
UTF-8
686
2.515625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace DoctrineModuleTest\Authentication\Adapter\TestAsset; /** * Simple mock object for authentication adapter test */ class IdentityObject { protected string|null $username = null; protected string|null $password = null; public function setPassword(mixed $password)...
true
6044b13fb8de1341131c809c9da9163c87dcd183
PHP
200202iqbal/ServerSideProgramming
/lesson5/search.php
UTF-8
885
2.609375
3
[]
no_license
<?php //検索キーワード $keyword = ""; //空欄でなければ$keyword にいれる if(!empty($_GET["q"])) { $keyword = $_GET["q"]; } ?> <!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"> <tit...
true
ac175613e8ff8207e6a11b446e6b831f19430f56
PHP
AndManowar/geocoder-service
/App/Models/Managers/MetroManager.php
UTF-8
7,932
2.875
3
[]
no_license
<?php namespace App\Models\Managers; use App\Exceptions\ObjectNotFoundException; use App\Interfaces\CrudObjectManagerInterface; use App\Models\DB\MetroKeywordModel; use App\Models\DB\MetroModel; use App\Validators\MetroValidator; use Phalcon\Mvc\Model; /** * Менеджер модели метро * * Class MetroManager * @packag...
true
185b1ea6f49eef19d4cdc53b4156e97e4c59abfc
PHP
narek725/Laravel-Vue-Nova
/app/Services/Api/CategoryService.php
UTF-8
427
2.765625
3
[]
no_license
<?php namespace App\Services\Api; use App\Models\Category; class CategoryService { private $model; /** * BusinessService constructor. * @param Category $model */ public function __construct(Category $model) { $this->model = $model; } /** * @param $uuid * @re...
true
8c995d2c60a5a1df4df988b85d90e8ff87f86fcf
PHP
hcdisat/payment
/src/Payment/Core/Requests/RestTokenRequest.php
UTF-8
1,569
2.75
3
[]
no_license
<?php namespace HcDisat\Payment\Core\Requests; use HcDisat\Payment\Core\Contracts\RequestContract; use HcDisat\Payment\Responses\RestResponse; class RestTokenRequest extends AbstractRestRequest implements RequestContract { /** * Send the request with specified data * * @param mixed $data The data...
true
ef94d0dbecea925643f445993edd3c80a671e79e
PHP
Asderek/WEB-Sistema_de_Gerenciamento
/professor/modes/mode_listaaudiencias.php
UTF-8
3,395
3.1875
3
[]
no_license
<?php $sqlAudiencias = "SELECT * FROM audiencias WHERE matricula = $matricula ORDER BY ano, mes, dia"; $queryAudiencias = $conexao->query($sqlAudiencias); if ($queryAudiencias == false) return; $resultAudiencias = $queryAudiencias->fetchAll(PDO::FETCH_ASSOC); echo "<table class=\"table table-bordered\">"...
true
64fdbf052c93274cff01277a0675725c1ffd22c7
PHP
Danack/TierJigDocs
/bin/parseColorSchemes.php
UTF-8
12,960
2.65625
3
[]
no_license
<?php require __DIR__.'/../vendor/autoload.php'; function normalizeColor($value) { // if (strlen($value) == 3) { // $value = sprintf("%'.06d", $value); // } if (strlen($value)) { $value = sprintf("%'.06s", $value); } return $value; } class CSSInfo { public $foreground; ...
true
7e5f7f291b69a00c3bf8a6f64f97c62210da8bf8
PHP
QuangLeMinh99/Project___SV
/Login/log_POP.php
UTF-8
1,169
2.921875
3
[]
no_license
<?php // Initial $host="localhost"; // Host name $my_user='root'; // Mysql username $my_pass=''; // Mysql password $my_db='sv'; // Database name $table='login'; // Table name // Connect to server and select databse. $link=mysqli_connect($host, $my_user, $my_pass, $my_db)or die('connection fail'); //mysqli_select...
true
124fe9dc3d3248e6ac44f029f5364cfe6c9c85ab
PHP
zhexiaoyang/meiquan
/app/Console/Commands/CalculateOnlineShopStatistic.php
UTF-8
1,521
2.734375
3
[ "MIT" ]
permissive
<?php namespace App\Console\Commands; use App\Models\OnlineShop; use App\Models\OnlineShopLog; use Illuminate\Console\Command; class CalculateOnlineShopStatistic extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'calculate-onl...
true
9504453437cbf8adf59b70863d427676d09d84ec
PHP
Freddy-Crawford/data-design1
/php/classes/user.php
UTF-8
14,132
3.25
3
[ "Apache-2.0" ]
permissive
<?php namespace Edu\Cnm\fcrawford\DataDesign; require_once("autoload.php"); require_once(dirname(__DIR__, 2) . "/vendor/autoload.php"); use Ramsey\Uuid\Uuid; /** * Small Cross Section of a user profile * * This user can be considered a small example of what services like Medium store when messages are sent and *...
true
75890b7806ca528e310028967bc08a6462aad852
PHP
marscore/hhvm
/hphp/test/slow/ext_process/php5_pcntl_003.php
UTF-8
842
2.5625
3
[ "Zend-2.0", "PHP-3.01", "MIT" ]
permissive
<?php // This is more or less a copy of zend/bad/ext/pcntl/tests/003.php. // 003.php.skipif is overly-cautious, so it would skip that test. This test // also makes less assumptions about what the blocked signal set looks like // coming into the test. <<__EntryPoint>> function main() { pcntl_sigprocmask(SIG_SETMASK, a...
true
92bd43a27858ba6f302ec76263d3c3aeba60f033
PHP
stanislav-web/PHPSync-replication
/src/Sync/Mappers/Frontend/BrandMapper.php
UTF-8
1,050
2.84375
3
[]
no_license
<?php namespace Sync\Mappers\Frontend; use Sync\Aware\MapperAbstract; use Sync\Exceptions\DbException; /** * Class BrandMapper. Brand Mapper * * @package Sync\Mappers\Frontend * @subpackage Sync * @since PHP >=5.5 * @version 1.0 * @author Stanislav WEB | <stanisov@gmail.com> * @filesource /Sync/Mappers/Fronte...
true
77369c495f0eca5f3f5452e12b9e244a341d859f
PHP
KremenVal/Camagru
/application/function/CheckLike.php
UTF-8
543
2.875
3
[]
no_license
<?php function CheckLikes(string $user, int $id, $DB_DSN_CREATED, $DB_USER, $DB_PASSWORD) { $pdo = new PDO($DB_DSN_CREATED, $DB_USER, $DB_PASSWORD); $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $result= $pdo->prepare("SELECT imageId FROM `like` WHERE isLiked=:isLiked"); $result->execute(arr...
true
8323cb9b4c7f68f4c82c337d1a4b033e954cd976
PHP
sergeherman/cse341
/web/mydbtest/product.php
UTF-8
515
2.84375
3
[]
no_license
<?php include_once 'mydbtest/dbh.mydbtest.php'; ?> <!DOCTYPE html> <html> <head> <tytle></tytle> </head> <body> <?php $sql = "select productName 'productName', productPrice 'productPrice' from product order by productName;"; $result = mysqli_query($conn, $sql); $resultCheck = mysqli_num_rows($result); echo " Prod...
true
690a914895bb613e1928e5772464ddb7c6d61020
PHP
gabrielespanhol/TCC_Senac
/projeto/registrar-entrada.php
UTF-8
9,581
2.515625
3
[]
no_license
<?php include_once('inc/classes.php'); // estanciar obj $objVeiculos = new Veiculos(); $objVagas = new Vaga(); $objEntradaSaida = new EntradaSaida(); $objUsuario = new Usuario(); //verificar se o usuario está logado $objUsuario->logado(); //EXECUTAR METODOS // REGISTRAR A ENTRADA DO VEIC...
true
85deabdd434e26a6221f90304ca54e4fff4b8a0b
PHP
joannesperret/AP_Creation
/entities/Categorie.php
UTF-8
700
3.453125
3
[]
no_license
<?php /* * Categorie.php */ /** * Description of Categorie * * @author joann */ class Categorie { // Propriétés private $idCategorie; private $categorie; public function __construct($idCategorie="", $categorie="") { $this->idCategorie = $idCategorie; $this->categorie = ...
true
b2de2e0b403c740724bf6b9b1efe90ea332723f5
PHP
optionalg/php-password-store
/login.php
UTF-8
1,277
2.53125
3
[]
no_license
<?php require 'config.php'; include 'sanitychecks.php'; include 'session.php'; include 'class.db.php'; $loginerror = false; $valid = false; if ( array_key_exists('username', $_POST) && array_key_exists('password', $_POST) && !( array_key_exists('loginuser', $_SESSION) && pwsdbh($dbDSN)->userExists($_SESSION['l...
true
2d12aaff52b7217fcf2e3a830119b769ae8cc58f
PHP
yadavajitkumar/Hello-programmer
/oop.php
UTF-8
402
3.109375
3
[]
no_license
<?php class employee { public $name; public $sallary; public $company; function showdata() { $this->name="Mr. Yadav Ajitkumar Ashokkumar"; $this->sallary=25000; $this->company="WIPRO TECHNOLOGY "; echo "<b>The name is </b> $this->name <br> The Sallary is $this->sallary <br> The employee work in...
true
d0634a7e2080fe5c3b8de16b1ad27956c2f54356
PHP
mrshiam/socket-programming-php
/client.php
UTF-8
1,472
2.59375
3
[]
no_license
<html> <body> <div align="center"> <form method="POST"> <table> <tr> <td> <label>Enter Your Message✍</label> <input type="text" name="textMessage"> <inp...
true
ba61ff774556c86af1686955fa693b3c01d079d0
PHP
stephanyramos/PHP
/Aula6/vetor-frutra2/index.php
UTF-8
779
2.75
3
[]
no_license
<?php $frutas =[ "Maça", "Banan", "Melão", "Uva", ]; //Imprimindo uym vetor na tela $frutas[]="DevOps"; $frutas[]="Caju"; $frutas[]="laranja"; $frutas[]=" kiwi "; $frutas[]="Manga"; // //adicionando um elemento no vetor // print_r($cargos); //excluido a posição do vetor unset($frutas[]) die; } el...
true
c91817515039c48868d8ff8394aad0ff6768a132
PHP
bsdtrhodes/ndoutils-web
/service_status.php
UTF-8
3,576
2.765625
3
[ "BSD-2-Clause" ]
permissive
<?php /* * XXXTR: Document more here. */ include("credentials.inc"); include("functions.php"); /* * Verify we have data. We must get a host and/or service. */ if ((!isset($_POST['host'])) || (!isset($_POST['service'])) || (!isset($_POST['format']))) { print "You must submit a request type\n"; e...
true
0da739b9df01ad6259829f5e2c68120b94fa3516
PHP
tanjiancheng/devtools-docgen
/src/Outer/MarkDown/MarkDown.php
UTF-8
5,302
2.765625
3
[]
no_license
<?php namespace Devtools\Docgen\Outer\MarkDown; use Devtools\Docgen\Entity\Api; use Devtools\Docgen\Outer\Base; class MarkDown extends Base { private $config; public function __construct(array $config = []) { $this->config = $config; } public function out() { ...
true
8b00fa7ad615bf9d12d69d75f06e0cd30b39a524
PHP
PWA-GouldA/C4Prog-JS-SQL-2019-S1
/wk-12/contacts-create-table.php
UTF-8
1,550
3.109375
3
[]
no_license
<?php /** * Create the database tables * * Using the connection to the database, we will create the * tables for this database: contacts, countries and cities * * @author Adrian Gould <Adrian.Gould@tafe.wa.edu.au> * @file contacts-create-table.php * @project C4Prog-JS-SQL-2019-S1 * @v...
true
9b543891184c81c85f831dc3cc0d3802a63d10cf
PHP
Lulitus85/Practica_Laravel
/app/Http/Controllers/ActorController.php
UTF-8
2,448
2.875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Actor; use App\Movie; class ActorsController extends Controller { /* protected $actors = [ 0 => [ "name" => "Jorge Porcel", "awards" => 0, "best_movie" => null ], 1 => [ ...
true
0964c8f0dafe811866e36dfcd02b1e94264e502a
PHP
magento-russia/2
/app/code/local/Df/Core/Model/Format/Html/Tag.php
UTF-8
4,654
2.875
3
[]
no_license
<?php class Df_Core_Model_Format_Html_Tag extends Df_Core_Model_Abstract { /** @return string */ private function _render() { return strtr( !$this->content() && $this->isShortTagAllowed() ? '<{tag-and-attributes}{after-attributes}/>' : '<{tag-and-attributes}{after-attributes}>{content}</{tag}>' ,array( ...
true
199057166ea56d76578f7ea7e8bb25fc0382eee2
PHP
andri000me/SiZakat-LAZISBA-Semarang
/component/file/transaksi_harian/import/form_stg_penerimaan_modal.php
UTF-8
6,227
2.640625
3
[]
no_license
<?php //=======> CAUTION: THIS FILE IS NOT USED YET <================ //=======> For experimental purpose only... $showForm = true; $requestErrors = array(); $trxData = null; if (!isset($_POST['id'])) { $requestErrors[] = "Argument expected."; } else { $idStage = intval($_POST['id']); $queryGetRecord = s...
true
6c5896b61342a7438c275cb01b94b50d0949e5e6
PHP
typos-r-us/W3Jar-Implementations
/2. PHP Loops/whileloop.php
UTF-8
199
3.53125
4
[]
no_license
<!DOCTYPE html> <head> <title></title> </head> <body> <h1>This is a while loop outputting </h1> <hr> <?php $wife=18; while ($wife<=27){ echo "Happy Husband! <br>"; $wife++; } ?> </body>
true
7726a3c7d44ee39ad0a96e60a6f6e6c06cce68e7
PHP
jwtann/LaravelVideo_admin
/database/migrations/2018_06_20_202104_create_lessons_table.php
UTF-8
981
2.625
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateLessonsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('lessons', funct...
true
29190749652e79d692400ec78b5da87e672e1461
PHP
izabelvidal/Distribuidora-de-Gas
/app/Validator/FuncionarioValidator.php
UTF-8
432
2.640625
3
[ "MIT" ]
permissive
<?php namespace App\Validator; Use App\Models\Funcionario; class FuncionarioValidator{ public static function validate($data){ $validator = \Validator::make($data, \App\Models\Funcionario::$rules, \App\Models\Funcionario::$messages); if(!$validator -> errors() -> isEmpty ()) thro...
true
b40ac962bd16ac4481a5b2a9c258c7e5106160a4
PHP
tony-bryant/PHP
/php-programmar/07class/MyClass1.php
UTF-8
328
3.203125
3
[]
no_license
<?php class MyClass1 extends ParentClass { function __construct() { parent::__construct(); echo "<br>MyClass1 constructor<br>"; } function __destruct() { // parent::__destruct(); //不能在析构函数中抛出异常 print "Destroying " . __CLASS__ . "\n"; } }
true
f9f924a53784e172952d1175e79a8bcdce2012d6
PHP
Geryones/eventCal
/index.php
UTF-8
1,736
2.84375
3
[]
no_license
<?php include'includes/overall/header.php'; /** * die hauptseite und einstiegspunkt * alle kommende events werden hier dargestellt * */ ?> <h1>Home</h1> <?php if(Session::exists('success')){ echo '<h3>'. Session::flash('success').'</h3>'; } $db=DB::getInstance(); $organizer = new EventOrganizer(); //hier we...
true
21b3f5642d76f6038a7f40e48ba820da12b3e82d
PHP
alex-kalanis/kw_connect
/php-src/search/Row.php
UTF-8
728
2.734375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace kalanis\kw_connect\search; use kalanis\kw_mapper\Records\ARecord; use kalanis\kw_connect\core\Interfaces\IRow; /** * Class Row * @package kalanis\kw_connect\search */ class Row implements IRow { /** @var ARecord */ protected $record; public function __construct(ARecord $record) ...
true
ca432da13c831a6973e0c16b7fc83f8717bfa166
PHP
rmvanda/zero.core
/Application.fat.php
UTF-8
9,721
2.703125
3
[]
no_license
<?php /** * not sure why I kept this... */ Namespace Zero\Core; class Application { public function __construct($opts=null){ // usually an array. // if($_SERVER['SERVER_NAME'] == 'localhost'){ define("DEVMODE",true); define("LOG_FILE", ZERO_ROOT."app.log"); inclu...
true
19f2249cf2032aff58a967a06bff3fc5b0d764e5
PHP
quoclaptk/website_and_software
/109/app/models/Leagues.php
UTF-8
1,916
2.59375
3
[]
no_license
<?php namespace Modules\Models; use Phalcon\Mvc\Model; use Phalcon\Mvc\Model\Validator\Uniqueness; class Leagues extends Model { /** * * @var integer */ public $id; /** * * @var string */ public $name; /** * * @var string */ public $slug; /*...
true
2979f20ff9dffc336d0218587695bbbcc8453dc4
PHP
despreston/linkvee
/index.php
UTF-8
5,856
2.578125
3
[]
no_license
<?php //CONNECT.PHP IS USED TO HOUSE FUNCTIONS FOR CHECKING PASSWORD TO DATABASE, AS WELL AS CONNECTING TO THE DATABASE error_reporting(0); require("connect.php"); session_start(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xm...
true
98279f8808305b2e5d3d391097d22482099010bf
PHP
newsn/jsxc.nextcloud
/lib/Db/IQRoster.php
UTF-8
1,299
2.609375
3
[ "MIT" ]
permissive
<?php namespace OCA\OJSXC\Db; use Sabre\Xml\Reader; use Sabre\Xml\Writer; use Sabre\Xml\XmlDeserializable; use Sabre\Xml\XmlSerializable; /** * This is an entity used by the IqHandler, but not stored/mapped in the database. * Class IQRoster * * @package OCA\OJSXC\Db * @method void setType(string $type) * @meth...
true
9761baa34be2cb2a91a498b93c9edf0cf50a1001
PHP
FolhaSP/PhpMetrics
/src/Hal/Component/Token/Token.php
UTF-8
1,447
3.328125
3
[ "MIT" ]
permissive
<?php /* * (c) Jean-François Lépine <https://twitter.com/Halleck45> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Hal\Component\Token; /** * Representation of Token * * @author Jean-François Lépine <https://twitter....
true
ebdebabd4dc4f27daccb63750634fb4288ce75c7
PHP
ksanderpugin/fiteat
/account/getAnswerList.php
UTF-8
1,026
2.515625
3
[]
no_license
<?php include_once $_SERVER['DOCUMENT_ROOT'] . '/php/config.php'; include_once $_SERVER['DOCUMENT_ROOT'] . '/php/sql.php'; include_once $_SERVER['DOCUMENT_ROOT'] . '/php/user.php'; header("Content-Type: application/json"); $key = array_key_exists('word', $_GET) ? $_GET['word'] : printDefAndExit(); $words = explode(...
true
63918dd3522a373dac003bc2ed8b3e3c1541629b
PHP
phan/phan
/src/Phan/Plugin/Internal/PhantasmPlugin.php
UTF-8
5,665
2.546875
3
[ "Apache-2.0", "ISC", "BSD-3-Clause", "MIT" ]
permissive
<?php declare(strict_types=1); namespace Phan\Plugin\Internal; use AssertionError; use ast\Node; use Error; use Microsoft\PhpParser; use Microsoft\PhpParser\Node\SourceFileNode; use Microsoft\PhpParser\Token; use Phan\CLI; use Phan\CodeBase; use Phan\Language\Context; use Phan\Library\FileCache; use Phan\Library\Pat...
true
cb1c51013299bd033cf7e888377bd484850ed017
PHP
hvc4/OpenIB
/log.php
UTF-8
938
2.53125
3
[ "MIT", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
<?php include 'inc/functions.php'; include 'inc/mod/pages.php'; function outputError($errCode, $errString) { http_response_code($errCode); error ($errString); return 0; } if (!isset($_GET['board'])){ outputError(400, 'No input.'); } if (!preg_match("/{$config['board_regex']}/u", $_GET['board'])) { outputEr...
true
2d0bbc8f36ec9cf4bd17fa1dc3880ac278ce9965
PHP
ucantseeme/p1
/webAPI/jsonxml.php
UTF-8
1,887
2.828125
3
[]
no_license
<?php include("../config/config.php"); include("../config/autoloadapi.php"); $book = new Book(); if (isset($_GET['data_format'])) { $data_format = strtolower($_GET['data_format']); if ($data_format != 'json' && $data_format != 'xml') { echo "You must select either 'xml' or 'json' as data encoding format"; }...
true
c075fe16fd9e60c91660b9deaafefc33dc274a1e
PHP
AbdelzaherMuhammed/Gallery-System
/admin/includes/user.php
UTF-8
4,242
2.78125
3
[]
no_license
<?php class User extends DbObject { protected static $dbTable = 'users'; protected static $dbTableFields = ['username', 'password', 'first_name', 'last_name' , 'image']; public $id; public $username; public $password; public $first_name; public $last_name; public $image; public $tmp...
true
4a7051e49acbedf0df8f0682958ffbba5b8f7d2f
PHP
BroJenuel-Box/lumen-with-MongoDB-samples
/app/Http/Controllers/CozLesson/CozLessonsController.php
UTF-8
1,166
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\CozLesson; use App\Models\CozLesson\CozLesson; use App\Models\CozLesson\CozLessonChanges; use Illuminate\Http\Request; use App\Http\Controllers\Controller; class CozLessonsController extends Controller { /** * Sample controller instance. * * @return void *...
true
7f677780e8b6b553e176c88d9db416947bf137a0
PHP
doubbz/heroku-sf-stock-app
/src/AppBundle/EventSubscriber/AddProductStockSubscriber.php
UTF-8
1,406
2.734375
3
[]
no_license
<?php namespace AppBundle\EventSubscriber; use AppBundle\Entity\Product; use AppBundle\Event\AddProductStockEvent; use AppBundle\Events; use Doctrine\ORM\EntityManagerInterface; use Doctrine\ORM\EntityRepository; use Symfony\Component\EventDispatcher\EventSubscriberInterface; /** * Subscriber for addProductStockEVe...
true
d9147f249e0144b199917ce2ac2bddfa7a3243b9
PHP
AnandPilania/amazon-inventory-stats
/amazon-inventory-src/spark/src/Repositories/NotificationRepository.php
UTF-8
2,534
2.546875
3
[ "MIT" ]
permissive
<?php namespace Laravel\Spark\Repositories; use Ramsey\Uuid\Uuid; use Illuminate\Support\Arr; use Laravel\Spark\Notification; use Laravel\Spark\Events\NotificationCreated; use Laravel\Spark\Contracts\Repositories\NotificationRepository as NotificationRepositoryContract; class NotificationRepository implements Notifi...
true
0a9b4eb09e81de521d2de982ad30e490632283f4
PHP
SaxonViper/treasureMaps
/app/Components/MapDrawer.php
UTF-8
416
2.5625
3
[]
no_license
<?php namespace App\Components; use App\TreasureFieldMap as Map; use App\TreasureFieldMapCell as Cell; class MapDrawer { private $map; private $cellData; public function __construct(Map $map) { $this->map = $map; } public function build() { $this->map->fillCellTable(); ...
true
df8eb9a7e0674e625e9b8bb8f87a129cfec7c9e8
PHP
BafHS/Poolcontroller
/html/public/temphistory.php
UTF-8
1,669
2.734375
3
[]
no_license
<?php $con = mysql_connect("localhost","pool_select","poolselect"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("knappe") or die("Could not select database"); setlocale (LC_ALL, 'de_DE'); /* $result = mysql_query("SELECT temperaturedate,vorlauf,ruecklauf,outdoor,solar,outdoor, automati...
true
54b200aab2a1883e0d834228da084b5aa51aa5dd
PHP
userVadim/project1
/core/App.php
UTF-8
1,301
2.578125
3
[]
no_license
<?php use app\core\DB as DB; use app\core\Site as Site; class App { public function begin() { $this->getPaths(); $this->getCoreFiles(); $this->start(); } private function getPaths() { require 'config/paths.php'; } private function getCoreFiles...
true
5ee7b35a1d863aee371d6c44e0431df523073177
PHP
mesilov/bitrix24-php-sdk
/src/Services/AbstractServiceBuilder.php
UTF-8
1,268
2.796875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Bitrix24\SDK\Services; use Bitrix24\SDK\Core\Contracts\BatchInterface; use Bitrix24\SDK\Core\Contracts\BulkItemsReaderInterface; use Bitrix24\SDK\Core\Contracts\CoreInterface; use Psr\Log\LoggerInterface; /** * Class AbstractServiceBuilder * * @package Bitrix24\SDK\Servi...
true
86225217ceeac03cace2f6fc6854e6c5541526f5
PHP
kimu/FeedBundle
/Loader/RssLoader.php
UTF-8
3,592
2.96875
3
[ "MIT" ]
permissive
<?php namespace Nekland\Bundle\FeedBundle\Loader; use Nekland\Bundle\FeedBundle\Feed; use Nekland\Bundle\FeedBundle\Item\GenericItem; /** * Loads RSS-XML and build a Feed object * * @throws \InvalidArgumentException * @author Yohan Giarelli <yohan@giarelli.org> * @author Nek' <nek.dev+github@gmail.com> */ clas...
true
d2f71462507cce3a5d57576b6d01c6a443234d06
PHP
Sywooch/old_c
/models/Search.php
UTF-8
1,072
2.59375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use Yii; /** * This is the model class for table "search". * * @property integer $id * @property string $search_string * @property double $counter_id * @property string $created_at * @property string $type */ class Search extends \yii\db\ActiveRecord { public $label; publi...
true
6578a72251ef9bc5c518ca2c9a189dba5d75df32
PHP
midnitekiller/apache-axis-soap-rest-php-documentation
/post.php
UTF-8
646
2.625
3
[]
no_license
<?php //--- Set the parameters --------------// $url = "http://www.google.nl/"; $apikey = "ab5bdb5d0b48cda6702e7bd80cad94a5ed2c26ef8ad1"; $width = 640; //--- Make the call -------------------// $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://api.thumbnail.ws/api/' . $apikey . '/thumbnail/get'); curl_setop...
true
be1235bcc5b326177115b5ea3b4ec15561a38484
PHP
smulholland2/zf-admin-console
/module/CorporateManager/src/Controller/Plugin/LicensesPlugin.php
UTF-8
1,833
2.5625
3
[]
no_license
<?php namespace CorporateManager\Controller\Plugin; use Zend\Mvc\Controller\Plugin\AbstractPlugin; use CorporateManager\Entity\License; // Plugin class class LicensesPlugin extends AbstractPlugin { public function checkForExistingLicenses($data, $entityManager) { $exists = false; $queryBuil...
true
14fb3215db7761ae4d76d8b0d7e591afc47f2773
PHP
mohamadihsan/ProjectRahasia
/fungsi/promosi/index.php
UTF-8
3,015
2.53125
3
[]
no_license
<?php /*========================= TAMBAH DATA PRODUK ========================*/ function TambahDataPromosi() { include '../../koneksi/koneksi.php'; //inisialisasi $gambar_promosi = $_FILES["gambar_promosi"]["name"]; $file_basename = substr($gambar_promosi, 0, strripos($gambar_promosi, '.')); // get ekste...
true
a748ab8733220fda8ac7d32924506aa3f141bcf4
PHP
Erebot/Buildenv
/get_version.php
UTF-8
5,045
2.703125
3
[]
no_license
#!/usr/bin/env php <?php /** * This program displays various information * about the current component. */ function usage($prog) { echo "Usage: $prog [options] [path/to/git/repository/]" . PHP_EOL; echo "Options:" . PHP_EOL; echo "-C, --composer" . PHP_EOL; echo " Displays the component's name in...
true
0b4e434facc499adca45e607d0204b4bd5b67e5a
PHP
AlphaStaxLLC/opensimulatorapi
/api/Model/Regions.php
UTF-8
1,889
2.859375
3
[]
no_license
<?php class Model_Regions { /** * * @var Lib_Db */ private $db = null; public function __construct() { $this->db = Lib_Registry::get('db'); } public function getRegion($id, $fields) { $region = $this->db->fetchRow( "SELECT * FROM regi...
true
e362c5d2053a2d34a37b620d8d0e56c7bf5e91f6
PHP
bonk007/laravel-pipe
/src/Http/Controllers/StackController.php
UTF-8
2,252
2.53125
3
[]
no_license
<?php namespace Fikrimi\Pipe\Http\Controllers; use Fikrimi\Pipe\Models\Stack; use Illuminate\Http\Request; class StackController extends BaseController { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { return view('pi...
true
87e71927b2f41d033961a642ffd751adbb67b624
PHP
betheluniversity/sciencelabs
/src/Bethel/EntityBundle/Form/Handler/SessionCommentFormHandler.php
UTF-8
1,150
2.5625
3
[ "MIT", "BSD-3-Clause" ]
permissive
<?php namespace Bethel\EntityBundle\Form\Handler; use Bethel\EntityBundle\Entity\TutorSession; use Doctrine\ORM\EntityManager; use Symfony\Component\Form\Form; use Symfony\Component\HttpFoundation\RequestStack; class SessionCommentFormHandler { protected $em; protected $requestStack; public function __c...
true
82fd9bff06fab4d7b48ab468e121b6449b08c391
PHP
consultnn/yii2-custom-grid
/plugins/RowsPerPage.php
UTF-8
2,260
2.578125
3
[ "MIT" ]
permissive
<?php namespace consultnn\grid\plugins; use consultnn\grid\GridView; /** * Class RowsPerPage * @package consultnn\grid\plugins */ class RowsPerPage extends AbstractPlugin { /** * Available number rows for select * * @var array $numberRows */ public $numberRows = [20, 50, 100]; /**...
true
95d960a2c5ce4c91a659de77beee8be5780b1178
PHP
marsh69/dPlanet
/backend/src/Security/NotificationVoter.php
UTF-8
1,646
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\Security; use App\Entity\Notification; use Symfony\Component\Security\Core\Authentication\Token\TokenInterface; use Symfony\Component\Security\Core\Authorization\AccessDecisionManagerInterface; use Symfony\Component\Security\Core\Authorization\Voter\Voter; class NotificationVoter extends Voter { ...
true
98a5993539cc41f391cfef3b07ab4f0fda36385e
PHP
kristispelman/Vorgurakendused-I
/TTanava praktikumid/loeng07 (PHP sisessejuhatus)/vigane.php
UTF-8
248
2.796875
3
[ "MIT" ]
permissive
<?php echo "See muutuja '$asi' ei eksisteeri!"; $i=0; while ($i<10){ echo "tere!"; $i++; } ?> <hr/> <?php $asi = "olemas!"; if (isset($asi)){ echo "See muutuja '$asi' ei eksisteeri!"; $i=0; while ($i<10){ echo "tere!"; $i++; } } ?>
true
fe83a92a3ab2543bfecd49394af776f5291dcda9
PHP
chkdsk11/project
/serve/models/shopmodel/BaiyangSmsRelationship.php
UTF-8
2,175
2.546875
3
[]
no_license
<?php namespace Shop\Models; /** * BaiyangSmsRelationship * * @package Shop\Models * @autogenerated by Phalcon Developer Tools * @date 2016-12-19, 09:16:52 */ class BaiyangSmsRelationship extends BaseModel { /** * * @var integer * @Primary * @Identity * @Column(type="integer", len...
true
f12b542f7cd59ba41f7a54da6c6ef0ee1af0c2b1
PHP
viniciusmf39/php
/php intermediario/entendendoFuncoesNativasECriandoFuncoes.php
UTF-8
729
4.46875
4
[]
no_license
<?php /* Exemplo: Função calculadoraSimples */ echo "<h1 style=\"text-align: center;\">Exemplo: Função calculadora simples</h1>"; function calculadoraSimples($n1, $op, $n2) { switch ($op) { case '+': echo "$n1 + $n2 = ".$n1 + $n2; break; case ...
true
9e9566c795f89b89f2d056354c522c3005b2930a
PHP
mahbubme/PHP
/14.triple-equals/index.php
UTF-8
126
3.515625
4
[]
no_license
<?php // Triple Equals $num1 = '1'; $num2 = 1; if ($num1 === $num2) { echo 'Equal'; }else { echo 'Not equal'; } ?>
true
55a4a24dc71c9149ae56399156d2ee0d1041b32a
PHP
yangzhen7915/liangjie
/php-4/music-static/delete.php
UTF-8
1,027
2.8125
3
[]
no_license
<?php //删除操作 //1 在list页面设置a的操作 //2 接收id参数,并检测 if(isset($_GET['id'])){ $id = $_GET['id']; //3 获取json文件内的数据并进行处理 $datas_arr = json_decode(file_get_contents('./storage.json'), true); print_r($datas_arr); //4 根据id检测需要删除的数据 // 肯定不能根据id-1的方式删除元素 foreach($datas_arr as $key => $value){ //$value是每一个实际...
true
92d533b1e819d849b9c27cae5c6aa9b1e02f786e
PHP
mmdahir/JSPHPSQLProject
/register.php
UTF-8
1,943
2.578125
3
[]
no_license
<?php ini_set('display_errors', '1'); error_reporting(E_ALL); // Connect to the Database $dsn = 'mysql:host=cssgate.insttech.washington.edu;dbname=mmdahir'; $username = 'mmdahir'; $password = 'PydGeu'; $addUser = $_GET['username']; $addPass = $_GET['password']; $addLName = $_GET...
true
e2398b86389e4c8dfbcb77198285403d8f0a3747
PHP
caylaXu/data_log_center
/application/models/dal/User_dal.php
UTF-8
1,209
2.609375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Peter * Date: 2016/1/7 * Time: 11:35 */ class User_dal extends My_Model { public function __construct() { parent::__construct('UserDef'); } public function add_user_type($system_id, $name, $mark) { if(!$name || !$mark |...
true
6f0fa3a9d91b00ead72a3adaae98a2ba02e1a662
PHP
Kharitone/Lessons
/phplesson/strings.php
UTF-8
177
3.078125
3
[]
no_license
<?php $name = "Alex"; $number = 5; $notNumber= "5"; echo is_string($name)."<br>"; echo is_string($number)."<br>"; echo is_string($notNumber)."<br>"; echo $number + $notNumber;
true
eeef5dffad3720bc34ccc43effeeb9e672550044
PHP
rsukhar/clru
/templates/elements/clru-calculator.php
UTF-8
3,041
2.890625
3
[]
no_license
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' ); /** * Output a single calculator element. * * @var $basic_rate * @var $required_skills array * @var $required_skills ['title'] * @var $required_skills ['help'] * @var $skills array * @var $skills ['title'] * @var $skills ['rate']...
true
9504a15c719ff0247b3bd8538e3893279dce3ced
PHP
mlades/ca-homeworks
/Homework34/hw02/script_object.php
UTF-8
1,395
4.3125
4
[]
no_license
<?php // create class Person class Person { // Create properties $name,$job and $age public $name; public $job; public $age; // Create a constructor that will accept $name,$job and $age variables and put them in class properties function __construct($name, $job, $age) { $this->name = $...
true
2683176f0d7bd1e57d4a14761605b2f47ddaaded
PHP
plaso9/facebookSysAg
/utils/db_connector.php
UTF-8
1,458
3.28125
3
[]
no_license
<?php class DatabaseConnection{ static $_DB_HOST = "localhost"; static $_DB_USER = "root"; static $_DB_PASSWORD = ""; static $_DB_NAME = "sistemiagenti_db"; private static $_CONNECTION; function __construct() { self::connect(); } static function connect(){ try { self::$_CONNECTION = new...
true
3e27f785b943870d8fc97ed7bd526c02ae12c9ef
PHP
tousif-99/WEB_TECH_39407
/WEB MID PROJECT/WEB Lab 04/login.php
UTF-8
2,469
2.953125
3
[]
no_license
<!DOCTYPE html> <html> <head> <title></title> </head> <body> <style> .error {color: #FF0000;} </style> <?php session_start(); if (isset($_SESSION['user_name'])){header("location:welcome.php");} else { require 'header.php'; } $username = "Tousif Islam"; $userpassword = "tousif@1"; if (isset($...
true
77e177b5e343afaaef1cc63d213b4646c21caad5
PHP
Swedbank-SPP/swedbank-payment-portal
/src/Transaction/TransactionRepositoryFactory.php
UTF-8
1,135
2.71875
3
[ "MIT" ]
permissive
<?php namespace SwedbankPaymentPortal\Transaction; use Doctrine\Common\Cache\Cache; use SwedbankPaymentPortal\Serializer; class TransactionRepositoryFactory implements TransactionRepositoryFactoryInterface { private $TRANSACTION_TIMEOUT_INTERVAL = 30; /** * @var TransactionRepository[] */ pri...
true
eea7d7f6b6184b84939848befcaa7c423d341752
PHP
HendricksK/signlanguagegame
/alphabet_class.php
UTF-8
764
2.984375
3
[]
no_license
<?php require('game_class.php'); class alphabet_game implements game{ public $game_id; public $game_type; public function save($game_type){ //printf ("New Record has id %d.\n", $mysqli->insert_id); // will get the id of the saved object which we will need to turn add to the object and session it echo "co...
true
09da323141c5938d028599d3a88c0dfcc01c53ce
PHP
orzy/p3
/src/functions.php
UTF-8
1,923
3.0625
3
[ "MIT" ]
permissive
<?php /** * グローバル関数 * * require * * spl_autoload_register (PHP 5.1.2+) * * P3_Abstract * * @version 3.1.1 * @see https://github.com/orzy/p3 * @license The MIT license (http://www.opensource.org/licenses/mit-license.php) */ /** * ClassのautoloadにPEAR形式のClass名を登録 */ spl_autoload_register( ...
true
1955bfc1c1ee08f981546ff8e5b939914f06d5eb
PHP
jdrich08/CIT-31300
/ex1/index.php
UTF-8
472
2.671875
3
[]
no_license
<?php include 'includes/config.php'; include 'includes/header.inc.php'; ?> <?php $myinfo = array("Jeremy Rich", "Green", "Pulp Fiction", "A Game of Thrones", "google"); $arrlength = count($myinfo); echo "<h1>" . $myinfo[0] . "</h1>"; function getMyInfo() { global $myinfo, $arrlength; echo "<ul>"; for($x = ...
true
89f22607bd30d6f8784d492c836bccb9cd551e64
PHP
HarzSR/basic-e-commerce
/app/Exports/SubscribersExport.php
UTF-8
932
2.71875
3
[ "MIT" ]
permissive
<?php namespace App\Exports; use App\NewsletterSubscriber; use Maatwebsite\Excel\Concerns\FromCollection; use Maatwebsite\Excel\Concerns\WithHeadings; class SubscribersExport implements FromCollection, WithHeadings { /** * @return \Illuminate\Support\Collection */ public function collection() { ...
true
d40f15ffd69617988228f39a458a60c26fd2a6cf
PHP
jasonraimondi/command-query
/domain/src/Infrastructure/Template/Twig/Extensions/TwigMarkdownExtension.php
UTF-8
881
2.625
3
[ "MIT" ]
permissive
<?php namespace Jmondi\Gut\Infrastructure\Template\Twig\Extensions; use Jmondi\Gut\Infrastructure\Template\LeagueCommonMark\MarkdownParserInterface; use Twig_Extension; use Twig_SimpleFilter; class TwigMarkdownExtension extends Twig_Extension { private $markdownParser; public function __construct(MarkdownPar...
true
b1bba711dad35d4cb314d34d18888b2e52613aa4
PHP
aedart/model
/src/Traits/Strings/BrandTrait.php
UTF-8
1,648
3.078125
3
[ "BSD-3-Clause" ]
permissive
<?php declare(strict_types=1); namespace Aedart\Model\Traits\Strings; /** * <h1>Brand Trait</h1> * * @see \Aedart\Model\Contracts\Strings\BrandAware * * @author Alin Eugen Deac <aedart@gmail.com> * @package Aedart\Model\Traits\Strings */ trait BrandTrait { /** * Name or identifier of a brand that is a...
true
8c4ef5f5bc683dadf6578c3c7b0de6afd940d02b
PHP
J3Cs/examenSistemas
/Modelo/usuarioModel.php
UTF-8
1,314
3
3
[]
no_license
<?php header("Access-Control-Allow-Origin: *"); class Usuario { private $usuarios; private $roles; private $rol; private $bd; //Constructor public function __construct() { $this->bd = new PDO('mysql:host=localhost;dbname=usuarios', 'root', 'Rockheavymetal123@'); $this->u...
true
6b1bb90af56052d9d32abb60213b381a964b9449
PHP
Gerfey/mapper
/src/Rule/RuleMapperInterface.php
UTF-8
295
2.5625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace Gerfey\Mapper\Rule; interface RuleMapperInterface { /** * @return string */ public function getName(): string; /** * @param $value * @param mixed $params * @return mixed */ public function validation($value, $params = []): bool; }
true
976d4e94f30716e79b809adfdb502d23a59c94d4
PHP
ShaliniPurohit01/College_Portal_Minor
/College-Portal-Minor/event.php
UTF-8
421
2.59375
3
[ "MIT", "CC-BY-3.0" ]
permissive
<table border=1 align=center width=60% height=70%> <?php mysql_connect("localhost","root",""); mysql_select_db("college"); $sql="select * from event"; $rs=mysql_query($sql); while($row=mysql_fetch_array($rs)) { $id=$row[0]; $event=$row[1]; $desp=$row[2]; echo"<tr align='center'>"; ...
true
c4bb4f632acc362636fff1b6508903772239f01f
PHP
Shaunathanz/Scheduler
/public_html/pages/tutor-register.php
UTF-8
3,155
2.78125
3
[]
no_license
<!DOCTYPE html> <html> <head> <link rel="stylesheet" type="text/css" href="../styles/style.css?<?php echo time();?>" media="screen" /> <script src="../scripts/script.js"></script> <meta charset="utf-8"/> <title id="tab_name">Profile Registration</title> </head> <body> <!--Logo--> <?php require ...
true
32a1cb8863438fe8ee7e85fd206ffa88085ceada
PHP
Zhalizhal/template_dashboard_CI3
/application/controllers/Auth.php
UTF-8
5,594
2.578125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Auth extends CI_Controller { public function __construct() { parent::__construct(); $this->load->library('form_validation'); } public function goToDefaultPage() { if ($this->session->userdata('role_id') == 1) { ...
true
6bf2442e2f7e5bdc1e4de672dc74dfa6dd7ae269
PHP
RaphaelDiasc21/routes
/core/routes.php
UTF-8
447
2.671875
3
[]
no_license
<?php class router{ static private $routes; public static function define($routes){ self::$routes = $routes; } public static function get($uri){ $request = trim($uri, "/"); if(array_key_exists($request, self::$routes)){ ...
true
b8949c1e5bfeaba7cb04ad0b33deea0bb1b87263
PHP
natalia-cevallos/laravel
/app/Http/Controllers/PeliculasController.php
UTF-8
3,180
2.6875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Movie; class PeliculasController extends Controller { private $peliculas = [ 1 => "Toy Story", 2 => "Bucando a Nemo", 3 => "Avatar", 4 => "Star Wars: Espisodio V", 5 => "Up", 6 => "Mary and ...
true
6e39d16694a7efeac654c3ca98447ca3aa027646
PHP
rgen3/yii2-user-microservice
/exceptions/user/NotUniqueCredentialsException.php
UTF-8
319
2.53125
3
[ "BSD-3-Clause" ]
permissive
<?php declare(strict_types = 1); namespace app\exceptions\user; use app\exceptions\BaseException; class NotUniqueCredentialsException extends BaseException { protected $message = 'User name or email has already been taken'; protected $code = BaseException::ERROR_USERNAME_OR_EMAIL_ALREADY_TAKEN; }
true
0e0899590aae5394d576bed2c262f56f4f410e25
PHP
ua09108/PHP_Demo
/56_string_strtr.php
UTF-8
239
2.734375
3
[]
no_license
<? $oriStr = "先生,歡迎來到大飯店"; $tarStr = array("先生" => "小姐","大飯店"=> "小飯店"); echo "原始的字串 => ".$oriStr."<br>"; echo "更新後的字串 => "; echo strtr($oriStr,$tarStr); ?>
true
0f707966cc3513172c4a45eb1c4caafd65b8eff0
PHP
tomir/q
/engine/libraries/Enp/Filter/Podatek.php
UTF-8
245
2.546875
3
[]
no_license
<?php namespace Enp\Filter; class Podatek implements \Zend_Filter_Interface { public function filter($value) { $nettoFilter = new Netto(); $netto = $nettoFilter->filter($value); return round($value - $netto,2); } }
true
48e893127fc6fc4a49f76bdc5335e4bb770f5293
PHP
NatalieDakova/hra
/hra/tridy.php
UTF-8
2,012
3.515625
4
[]
no_license
<?php Class Properties { public $name; public $surname; public $age; public $sex; public $health; public $stamina; public $strength; public $wisdon; public $inteligence; public $charisma; public $dexerity; public function __construct($race, $name, $surname, $age, $se...
true
354c84da41ebbc7521e15ab59af25d1580f8a7d9
PHP
abhinavk9757/acegallery
/minigallery.php
UTF-8
1,873
2.828125
3
[]
no_license
<?php //include the database link file include "link.php"; //query to take in all the gallery names $query ="select distinct postname from pics;"; $queryresult = mysqli_query($link,$query); //table starts echo "<table border='0'>"; //1st row of table showing the heading --subsequent rows to be generated in loop ech...
true
8feb35cb856ca3e97a0e9f4946d71e51ee0556f6
PHP
robert-vo/Bowling-Score-Tracking-System
/public_html/runUpdateProfile.php
UTF-8
4,180
2.90625
3
[]
no_license
<?php session_start(); if (!isset($_SESSION["sess_user"])) { header("location:loginForm.php"); } else { ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Update Profile</title> <link rel="stylesheet" type="text/css" href="index.css"> <link rel=...
true
cdda97b0c79fe2a0870e6acdb3520ae294cd1c46
PHP
malinjr07/Yuri-Vue
/api/tasks.php
UTF-8
4,697
2.609375
3
[]
no_license
<?php require_once 'config/config.php'; // ensure user is authenticated require_once 'auth/verify-jwt.php'; // required headers header("Access-Control-Allow-Origin: *"); header("Content-Type: application/json; charset=UTF-8"); header("Access-Control-Allow-Methods: GET, POST"); header("Access-Control-A...
true