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
3dd460b42def61786a82447cc0038e215e8809d5
PHP
DiegoClrX/DesarrolloPracticas
/Tema8/Practica de API/Ejercicio4/Models/CryptoDB.php
UTF-8
3,953
2.890625
3
[]
no_license
<?php namespace Monedas; use MongoDB\Client; use Monedas\ConexionDB; use \Exception; class CryptoDB { //Obtienes todas las monedas public static function getAll() { try { $conexion = ConexionDB::conectar("cryptoMonedas"); $cursor = $conexion->monedas->find(); $resu...
true
3c7237d1d6a7e412613d6a621a86d0dcf6e03835
PHP
headcruser/hotel_proyect
/controllers/usuario_rol.php
UTF-8
2,711
2.796875
3
[]
no_license
<?php /*** controllers/usuario_rol Gestiona los usuario_rols Clase: usuario_rol autor: Daniel version : 1.0 fecha : 2016-11-03 */ include('../hotel_class.php'); //Incluye a la clase class usuario_rol extends Chotel { /*********************************************************************************** METODO PA...
true
7d7edde5e6d3382795c56b7fcd08f210af79331a
PHP
agustinFeijoo/paginaUnla
/model/validacionCuenta.php
UTF-8
3,675
2.59375
3
[]
no_license
<?php class RegistrarCuenta{ private $contrasena; private $confirmacion; private $usuario; private static $conexion; public function __construct($usuario,$contrasena,$confirmacion){ $this->contrasena=$contrasena; $this->confirmacion=$confir...
true
4458f908bcae7f08d42ac52a74d72f42e2f89640
PHP
NikVogri/restaurant-cms-laravel
/app/Cart.php
UTF-8
1,485
2.5625
3
[ "MIT" ]
permissive
<?php namespace App; use App\Item; use App\User; use App\Coupon; use App\CartItem; use Illuminate\Database\Eloquent\Model; class Cart extends Model { protected $guarded = []; protected $with = ['items']; public function user() { return $this->belongsTo(User::class); } public funct...
true
d6a6dffbc4b55fec9b140f4c196f3887fe531fa7
PHP
trilbymedia/grav-plugin-login-oauth2-extras
/vendor/adam-paterson/oauth2-slack/src/Provider/SlackAuthorizedUser.php
UTF-8
1,226
2.765625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace AdamPaterson\OAuth2\Client\Provider; use League\OAuth2\Client\Provider\ResourceOwnerInterface; class SlackAuthorizedUser implements ResourceOwnerInterface { protected $response; /** * SlackAuthorizedUser constructor. * * @param $response */ public function __construc...
true
9954e46a31435c221acdbc0b59281ff79cad40c0
PHP
sanyasim/vehicle
/src/AppBundle/Traits/vehicle/CanFlyTrait.php
UTF-8
412
2.640625
3
[ "MIT" ]
permissive
<?php namespace AppBundle\Traits\vehicle; trait CanFlyTrait { public function fly() { $name = $this->getName(); echo "\n" . $name . ' flying'; } public function takeOff() { $name = $this->getName(); echo "\n" . $name . ' took off'; } public function landin...
true
77346c7386e1d206511c7b75e01dca40d58c03fa
PHP
akash130013/cannabis_laravel
/app/Http/Controllers/Api/User/UserController.php
UTF-8
14,337
2.609375
3
[]
no_license
<?php namespace App\Http\Controllers\Api\User; use App\Helpers\CommonHelper; use App\Http\Services\SmsService; use App\Http\Services\UserService; use App\Transformers\UserTransformer; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use Illuminate\Support\Facades\Hash; use Illuminate\Support\Facades\...
true
2d1889bb30dcb04e7dfb2fbaf0a03db4a2ce7e70
PHP
msyniuk/test1
/app.php
UTF-8
1,568
3.0625
3
[]
no_license
<?php include "lib.inc.php"; if ($_SERVER['REQUEST_METHOD'] == 'POST'){ $cols = abs((int) $_POST['cols']); $rows = abs((int) $_POST['rows']); $color = trim(strip_tags($_POST['color'])); } $cols = ($cols) ? $cols : 8; $rows = ($rows) ? $rows : 8; // Инициализация массива с типами, цветами и состояниями фигур...
true
8199d711ce05c17c2e363a4ae007a0ba8a7dd909
PHP
Ehyiah/projet5
/src/Subscriber/Form/EditElementCollectionTypeSubscriber.php
UTF-8
2,047
2.671875
3
[]
no_license
<?php namespace App\Subscriber\Form; use App\Domain\DTO\AddElementImageDTO; use App\Subscriber\Form\Interfaces\EditElementCollectionTypeSubscriberInterface; use Symfony\Component\EventDispatcher\EventSubscriberInterface; use Symfony\Component\Form\FormError; use Symfony\Component\Form\FormEvent; use Symfony\Componen...
true
db2ee0a55c713d624d899f3aa5a281191b9020c1
PHP
msahidurr/farm2homeweb
/covid19/src/vendor/kamruljpi/role/src/Http/Model/Role.php
UTF-8
723
2.53125
3
[ "MIT" ]
permissive
<?php namespace kamruljpi\Role\Http\Model; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; class Role extends Model { use SoftDeletes; protected $primaryKey = 'id_role'; protected $fillable = ['name','is_active']; // public static function list($paginate = null) { // if(...
true
867096dfc7158022552928dc83889b5741879db1
PHP
RadoslavNikolov/SoftUni
/Semester_3(Advanced Level - Front End)/PHP_Basics/Exams/Exam_2014_August_29_Morning/_04_Softuni_iTunes/SoftuniTunes.php
UTF-8
2,320
3.15625
3
[]
no_license
<?php $input = preg_split("/\\r?\\n/",$_GET['text'],-1,PREG_SPLIT_NO_EMPTY); $artistFilter = trim($_GET['artist']); $property = trim($_GET['property']); $order = trim($_GET['order']); //var_dump($property); $iTunes = []; $output = []; foreach($input as $line) { $lineArray = explode("|",$line); $name = trim($lin...
true
8e518478c31c8dd4fa6998207e505554ab8072a4
PHP
rafaelr/premi_hkt
/public/public/js/codeigniter-crud-login-register-master/codeigniter-crud-login-register-master/application/views/templates/header.php
UTF-8
610
2.6875
3
[]
no_license
<html> <head> <title>CodeIgniter Tutorial</title> </head> <body> <h1>Simple CRUD</h1> <p> <a href="<?php echo site_url('news'); ?>">Home</a> | <a href="<?php echo site_url('news/create'); ?>">Add News</a> | <?php if ($this->session->userdata('is_logged_in')) { echo '<b>Logged in as:</b> ' ...
true
33b584622bee31854580174997f88d4e590e7084
PHP
MarsFlyer/EnergyCharts
/Temperature-days-data.php
UTF-8
2,981
2.75
3
[]
no_license
<?php include 'amChartsData.php'; if (isset($_GET["date1"])) {$date1 = $_GET["date1"];} else {$date1 = "2009-06-20";} if (isset($_GET["days"])) {$days = $_GET["days"];} else {$days = 180;} $oChart = new amChartsData; $sTitle = "Temperature for ".$days." days up to ".$date1; for ($i=1; $i<=2; $i++) { switch ($i) {...
true
9e3416e1e95249a421ee359166c7278012b3b4ce
PHP
KonstantinKuklin/MuninClientWrapper
/src/Munin/Client.php
UTF-8
5,475
2.921875
3
[]
no_license
<?php namespace Munin; use Stream\Exceptions\ReadStreamException; use Stream\ReceiveMethod\StreamGetContentsMethod; use Stream\Stream; /** * @author KonstantinKuklin <konstantin.kuklin@gmail.com> */ class Client implements ClientInterface { private $stream = null; private $driver = null; private $plugi...
true
8073ba9ccbf1f6f717f0e8f718e9b0a0bb873f91
PHP
CordellWalker/PHP-MySQL-Course-1
/examples/08.working-with-forms/06.php-bad-input.php
UTF-8
1,054
2.84375
3
[]
no_license
<!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <title>HTML Форми</title> </head> <style> form{ font-size: 19px; border: 2px dotted blue; padding: 10px; margin:20px; } form > div { margin-bottom: 8px; } </style> <body> <?php if(isset($_GET["submit"])){ $username = $_GET[...
true
570b2e944219b806fbd2915e6e9364e6897249b8
PHP
Jbaumeff/DatabaseProject
/lib/cls/SightController.php
UTF-8
665
2.8125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: JeffBaum * Date: 3/19/15 * Time: 12:35 AM */ class SightController { private $name; private $description; private $createdOn; private $userId; private $sights; public function __construct(Site $site, $name, $description, $createdOn, $userId) { ...
true
a2de732b6206207acd2293b8103407f2b91f8c9e
PHP
KHIT93/cms3
/core/classes/DB.class.php
UTF-8
6,402
2.9375
3
[]
no_license
<?php /** * @file * Acts as a Database abstraction layer for PDO and implements easy to use functionality that has been customized for use with core classes and functions, as well as third party modules */ class DB { private static $_instance = null; private $_pdo, $_query, $_error = false, $_results, $_coun...
true
b31f6be7a4eb403628c2b961cf2134937847ab7e
PHP
MarconLuke11/ProgettoTecWeb
/PHP/post_login.php
UTF-8
1,132
2.5625
3
[]
no_license
<?php if (session_status() == PHP_SESSION_NONE) { session_start(); } require_once __DIR__ . DIRECTORY_SEPARATOR . "connection.php"; use DB\DBConnection; require_once __DIR__ . DIRECTORY_SEPARATOR . "validazione.php"; $connection = new DBConnection(); $dbOpen=$connection->openConnection(); if ($dbOpen){ if (isse...
true
ead6f3096a7fe6373a43e2e8ea6bd443500629d9
PHP
Gossteer/NailsMastersAdmin
/app/Http/CryptValue.php
UTF-8
541
2.640625
3
[]
no_license
<?php namespace App\Http; use Illuminate\Contracts\Encryption\DecryptException; use Illuminate\Support\Facades\Crypt; class CryptValue { /** * Show the application dashboard. * * @return \Illuminate\View\View */ static public function encrypting($value) { return Crypt::encry...
true
112dd23ec2bac0e26887671eb68260d8f6d5d024
PHP
EliteCodeGuy/Gertrud
/Core/Http/serverResponse.php
UTF-8
1,841
2.6875
3
[]
no_license
<?php namespace Core\Http { trait serverResponse { public function responseGetRequest() { $this->resolveResoponseObjectDirections(); $responseController = new $this->responseControllerDir; $responseMethodName = $this->responseMethodName; ...
true
d8d0bb2854bdf68e8ada5ff2038035ab5637f235
PHP
tPl0ch/event-store
/src/Malocher/EventStore/EventSourcing/EventSourcedObject.php
UTF-8
5,303
2.734375
3
[]
no_license
<?php /* * This file is part of the malocher/event-store package. * (c) Manfred Weber <crafics@php.net> and Alexander Miertsch <kontakt@codeliner.ws> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Malocher\EventStore\Even...
true
9e18ae6d18c7138d32e233290e8d1cef989382b0
PHP
Cirty-Kitagawa/EnviMVC3PHP
/libs/envi3/task/plugin/build/query.php
UTF-8
3,540
2.53125
3
[ "BSD-2-Clause" ]
permissive
<?php /** * キャッシュのクリアタスク * * * PHP versions 5 * * * @category MVC * @package Envi3 * @subpackage EnviMVCCore * @author Akito <akito-artisan@five-foxes.com> * @copyright 2011-2013 Artisan Project * @license http://opensource.org/licenses/BSD-2-Clause The BSD 2-Clause License * @version GIT:...
true
50041bbdb9d80b1b2df2c2a85ff8344e287ddf19
PHP
alimansoori/base-api
/app/Lib/Tables/Ajax.php
UTF-8
3,041
2.90625
3
[]
no_license
<?php namespace Lib\Tables; use Lib\Common\Strings; class Ajax implements AjaxInterface { /** @var Adapter */ protected $table; protected $data = []; public function __construct($table) { $this->table = $table; $this->data['name'] = $table->getName(); } public function ...
true
acaf1d08a18463c539e2eb3df5063d2b058ca7d5
PHP
HiroRey/TestBlog
/models/UploadImage.php
UTF-8
856
2.6875
3
[]
no_license
<?php namespace app\models; use Yii; use yii\web\UploadedFile; class UploadImage extends \yii\base\Model { public $image; public function rules() { return [ [['image'], 'image', 'skipOnEmpty' => false, 'extensions' => 'png, jpg'], ]; } public function upload(Uplo...
true
8a5ed99d0afcae94c25fd9d5de601e13b4e6b11b
PHP
yimmix/bluebonnet_mobile
/thumb-generator.php
UTF-8
1,037
2.578125
3
[]
no_license
<?php /** * You can made this file as a cron job or can run manually * whenever you add/edit or delete products * However its better to do manually instead of making it automatic * by scheduled jobs(cron jobs) * we are using this site as a reference http://bluebonnet.clientdemos.net * So if thi...
true
68d76a4d6d763ec452014e1303eebf87020a52c9
PHP
cego/request-insurance
/src/RequestInsurance/ViewComponents/PrettyPrint.php
UTF-8
2,046
3.0625
3
[ "MIT" ]
permissive
<?php namespace Cego\RequestInsurance\ViewComponents; use Exception; use Illuminate\View\View; use Illuminate\View\Component; use Illuminate\Contracts\View\Factory; class PrettyPrint extends Component { /** * Json string pretty printed * * @var string */ public $content; /** * C...
true
87226a4ffa0787f146bd617909152d738aeff401
PHP
Leoglme/my_meetic
/private/check_update.php
UTF-8
3,067
2.921875
3
[]
no_license
<?php session_start(); /*class verification formulaire modification de profil*/ class check_update { public $db; public $info = []; public $duplicateMail; public $securePwd; public $ClassFetch; function __construct() { $this->info = array("firstname" => "", "lastname" => "", "city" ...
true
88afe38da95de7b1e5b6bd39a4ea66cca4966381
PHP
Aya-Badawy/Task5
/app/Http/Controllers/loginController.php
UTF-8
925
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; class loginController extends Controller { /** * Handle an authentication attempt. * * @param \Illuminate\Http\Request $request * * @return Response */ public function authenticate(Request $r...
true
53873117db949f2b5677f4a7e641af57f3ad1968
PHP
ninetian/Heimdallr
/library/Script/SshHddSector.php
UTF-8
2,467
2.828125
3
[]
no_license
<?php /** * Die Datei enthält die Klasse "{@link Script_SshHddSector}" * * @category Heimdallr * @package Heimdallr * @subpackage Script * @copyright Copyright (c) 2012, Kjell Dießel * @author Kjell Dießel */ /** * Holt per SSH die Schreib-/Lese-Anzahl der HDD Sektoren * * @category Heimdallr * @package H...
true
1dee6a01aaeb94d11093b92cb80e5fc3953fd916
PHP
justim/access
/src/Clause/Filter/Filter.php
UTF-8
736
2.5625
3
[ "MIT" ]
permissive
<?php /* * This file is part of the Access package. * * (c) Tim <me@justim.net> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types=1); namespace Access\Clause\Filter; use Access\Clause\FilterInterface; use Acc...
true
91e8680428f0d633c3e031b46d60763ad4e08762
PHP
dimalikakos/Timestamp
/pages/edit_student_name_script.php
UTF-8
783
2.53125
3
[]
no_license
<?php include '../db.php'; if(isset($_POST['edit_student_name'])){ $errMsg = ''; $message = ''; $try_student_id = $_POST['select_student_id_for_edit_name']; $try_student_first_name = trim($_POST['edit_student_first_name']); $try_student_last_name = trim($_POST['edit_student_last_name']); ...
true
befc3ed1bd84d9f203f6d1ac40c6ea21e4c18f43
PHP
dev-softwarehouse/digitalprint
/backend/app/Models/Route/RouteView.php
UTF-8
803
2.84375
3
[]
no_license
<?php namespace DreamSoft\Models\Route; /** * Description of CategoryView * * @author Rafał */ use DreamSoft\Core\Model; class RouteView extends Model { /** * RouteView constructor. */ public function __construct() { parent::__construct(true); $this->setTableName('routeVie...
true
e1d2614ac3d2c8329375a70e805e3243a724e204
PHP
jfortunato/fortune
/src/Routing/SlimRouteGenerator.php
UTF-8
4,402
2.921875
3
[ "MIT" ]
permissive
<?php namespace Fortune\Routing; use Fortune\Configuration\Configuration; use Slim\Slim; use Fortune\Output\SlimOutput; use Fortune\Configuration\ResourceConfiguration; /** * Slim implementation for generating all resource routes. * * @package Fortune */ class SlimRouteGenerator extends BaseRouteGenerator { ...
true
f1f98f8ad77f6d1717a7b776cdafa03e3f623fbf
PHP
magnusjt/mongotd
/src/StorageMiddleware/CalculateDeltas.php
UTF-8
3,500
3.109375
3
[ "MIT" ]
permissive
<?php namespace Mongotd\StorageMiddleware; use Mongotd\Connection; use Mongotd\CounterValue; use Psr\Log\LoggerInterface; use MongoDate; /** * This class makes sure that every counter value that is * of incremental type is delta-calculated. * * The delta-calculation assumes that values are * always increasing. T...
true
dd420af9a134b5aa289b7b30b0bb18a162b98676
PHP
muhiqbalfn/Website-REST-Alodokter-CI
/laundry-enterprise/laundry/application/models/Employee_m.php
UTF-8
3,719
2.6875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Employee_m extends CI_Model { public function getData() { //untuk select column $this->db->select('*'); //untuk from table employee $this->db->from("employee"); //$get eksekusi fungsi select //hasil eksesusi = "select * from emp...
true
3650732bc3abf70161dff3be50e17f71cba7de3c
PHP
four-li/tools
/src/QrCode/ApiQrcode.php
UTF-8
7,739
2.9375
3
[]
no_license
<?php /** "; * date: 2019/8/3 * author: four-li */ namespace FourLi\Tools\QrCode; class ApiQrcode { private $appcode; public function __construct(string $appcode) { $this->appcode = $appcode; } private function base64EncodeI...
true
c80e2b0e8891ae98ff470576e5bf8f7f859bc29d
PHP
themaiby/scms-api
/app/Observers/ComponentObserver.php
UTF-8
1,917
2.765625
3
[]
no_license
<?php namespace App\Observers; use App\Models\Component; use App\Services\ComponentService; class ComponentObserver { /** * @var ComponentService */ protected $componentService; public function __construct(ComponentService $componentService) { $this->componentService = $componentSe...
true
0fd5c214d71615b9ab4dd26bda10909fddca2e0a
PHP
UKMNorge/UKMrapporter
/class/Framework/Rapport.php
UTF-8
8,167
2.671875
3
[]
no_license
<?php namespace UKMNorge\Rapporter\Framework; use UKMNorge\Arrangement\Arrangement; use UKMNorge\Rapporter\Framework\Word\Formatter; require_once('UKM/Autoloader.php'); abstract class Rapport { public $id; public $navn; public $kategori_id; public $beskrivelse; public $ikon; public $config;...
true
4ab353937137b53d8fe80ebd3145f4e09c22fa3d
PHP
Henky95/Project1
/sendemail.php
UTF-8
1,449
2.71875
3
[]
no_license
<?php include 'Shared/header.php';?> <?php $msg = ""; use PHPMailer\PHPMailer\PHPMailer; include_once "PHPMailer/PHPMailer.php"; include_once "PHPMailer/Exception.php"; include_once "PHPMailer/SMTP.php"; if (isset($_POST['submit'])) { $subject = $_POST['subject']; $email = $_POST['email']; $message = $...
true
25bb7fa1a2514e8a6b65e4d9065356155869741d
PHP
maicong/OpenAPI
/shell.php
UTF-8
2,365
2.734375
3
[ "MIT" ]
permissive
<?php function trim_backslash(&$code) { $rs = strpos($code, '\\') !== false; $code = preg_replace('/\\\\./', '', $code); return $rs; } function trim_string(&$code) { $rs = strpos($code, '"') !== false || strpos($code, "'") !== false; $code = preg_replace('/"[^"]*?"|'."'[^']*?'".'/', 'X', $code); ...
true
a62618e1b54b2709c8c88de3a40f0accd0903a78
PHP
bugreportuser/phive
/src/commands/remove/RemoveCommandConfig.php
UTF-8
943
2.59375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace PharIo\Phive; use PharIo\FileSystem\Directory; use PharIo\Phive\Cli; class RemoveCommandConfig { /** * @var Cli\Options */ private $cliOptions; /** * @var TargetDirectoryLocator */ private $targetDirectoryLocator; /** * @param Cli\Options $opt...
true
4befbe82304f6d3ebb34a5da0468ae295ff83ce7
PHP
tsound922/DMTmusic
/loginpages/password.php
UTF-8
2,655
2.546875
3
[]
no_license
<?php require 'connect.inc.php'; require 'core.inc.php'; if(isset($_POST['password'])&&isset($_POST['password_again'])){ $password = $_POST['password']; $password_again = $_POST['password_again']; if(!empty($password)&&!empty($password_again)){ if($password==$password_aga...
true
0dc12cb4b9ea619a62c02d4be5dbfc8f1ccf7530
PHP
rawray7/opensauce_elabftw
/inc/classes/Update.php
UTF-8
10,209
2.859375
3
[]
no_license
<?php /** * \Elabftw\Elabftw\Update * * @author Nicolas CARPi <nicolas.carpi@curie.fr> * @copyright 2012 Nicolas CARPi * @see http://www.elabftw.net Official website * @license AGPL-3.0 * @package elabftw */ namespace Elabftw\Elabftw; use \Exception; use \RecursiveDirectoryIterator; use \RecursiveIteratorItera...
true
4703d53b085b160109e65de29db458c3d512bd6f
PHP
cipriantepes/pluralsight
/fundamentals/arrays/unset.php
UTF-8
260
2.640625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: cippo * Date: 2/16/2016 * Time: 12:36 AM */ $authors = array( "Charles Dickens", "Jane Austin", "William Shakespeare" ); unset( $authors[1], $authors[0] ); // unset $authors --- remove all echo sizeof( $authors ); print_r( $authors );
true
9c9674ac8e43507f2d2a252a8d1e50eac7109cf9
PHP
GabrielMartorelli/PHPAULAS
/03.php
UTF-8
290
2.96875
3
[]
no_license
<html> <head> <title>Resultado</title> </head> <?php if(isset($_GET["num1"])) { $x = $_GET["num1"]; $y = $_GET["num2"]; $op = $_GET["operacao"]; if($op =="soma") { $z = $x+$y; echo "$x + $y = $z"; } } ?>
true
f9558eb98bc3933cb6cc69dc34d89976c3b7c13f
PHP
viczel/firsttest
/src/Credit.php
UTF-8
1,025
2.921875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: admin * Date: 08.02.2017 * Time: 12:17 */ namespace brainysoft\testmultibase; class Credit { const CREDIT_PERIOD_DAYS = 'DAYS'; const CREDIT_PERIOD_WEEKS = 'WEEKS'; public $amount = 0; // Сумма займа public $intRate = 0; // Процентная ст...
true
4d31c25622c235cb7eff61904d46b9b77db2bdf9
PHP
Radanovn/Weband
/blog/blog/categories.php
UTF-8
820
2.703125
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>Category</title> </head> <body> <?php require_once('db.php'); $sql = "SELECT...
true
6cbe28fc3f655782832aca3af8dd43e3707d4823
PHP
NeverMindNever/genPhone
/api.php
UTF-8
1,763
3.21875
3
[]
no_license
<?php require_once('/usr/bin/vendor/autoload.php'); require_once('countries.php'); use \libphonenumber\PhoneNumberType; function genPhoneNumberByCountry($country) { //Create an instance of libphoneNumberUtils $phoneUtil = \libphonenumber\PhoneNumberUtil::getInstance(); //Generate an example of the selected countr...
true
ef67ffc5b0188853add5b87c6e9477acf7d58f64
PHP
ssi-anik/laravel-restful-api
/app/Repositories/TagRepository.php
UTF-8
858
2.75
3
[ "MIT" ]
permissive
<?php namespace App\Repositories; use App\Models\Tag; use Carbon\Carbon; class TagRepository { private $tag; public function __construct (Tag $tag) { $this->tag = $tag; } public function storeUnavailableTags ($tagData, $userId) { $availableTags = $this->tag->whereIn('content', $tagData->toArray())->pluck('c...
true
51769d8169d1037e669ccfd4518067bff53e1b05
PHP
yszhao2016/ManageMp3
/mp.php
UTF-8
817
2.640625
3
[]
no_license
<?php require __DIR__ . '/vendor/autoload.php'; function changefile($filepath,$title) { $eyed3 = new \Stormiix\EyeD3\EyeD3($filepath); $tags = $eyed3->readMeta(); // $tags is an array that contains the following keys: // artist, title, album, comment(s), lyrics ..etc $meta = [ "artist" => $title, ...
true
da468769dd15327ba1b66813eca078e2f8ca563c
PHP
LordKahra/drfl-virtual
/src/view/page/MissingPage.php
UTF-8
463
2.90625
3
[]
no_license
<?php namespace drflvirtual\src\view\page; class MissingPage extends Page { protected $message; public function __construct(string $title, string $message) { parent::__construct($title, "error", "public"); $this->message = $message; } /** * @return string */ public fun...
true
9af36ea1e0ff4092e8fe6c6fab4e21bf17663d31
PHP
gartner/DB_DataObject_FormBuilder_Frontend
/DB/DataObject/FormBuilder/Frontend/Plugin/Xhtml.php
UTF-8
1,803
2.515625
3
[]
no_license
<?php /** * This plugin will remove the name and target-attributes from the * generated form, making it Xhtml-compatible. * * PHP version 5 * * @category DB * @package DB_DataObject_FormBuilder_Frontend * @author Mads Lie Jensen <mads@gartneriet.dk> * @copyright 2006-2009 Mads Lie Jensen * @license ht...
true
f9d3c19fd38520c472aad170755817f11ecd24f8
PHP
vsolomka/repo210228
/lesson08-hw.php
UTF-8
3,219
3.59375
4
[]
no_license
<pre> <?php class Data { private $pdo = null; private array $dbConfig = [ "host" => "localhost", "database" => "lesson08", "username" => "root", "password" => "root", ]; public function __construct() { try { $this->pdo = new PDO( ...
true
ec431cf06054b7b4d3b32da1ad01f264df10d948
PHP
okhachiai/ApplProject
/scripts/ajouterSujet.php
UTF-8
474
2.515625
3
[]
no_license
<?php if (isset($_POST['saveSubject'])){ require_once '../classes/MysqlDb.php'; require_once '../classes/Categorie.php'; require_once '../classes/Sujet.php'; $nom_subject = htmlentities(trim($_POST["subjectName"])); $id_categories = intval(htmlentities(trim($_POST["categoriesId"]))); $subject ...
true
8f26822dbdf9d3345eddd4e7eb2f10128c4a51e3
PHP
scriptnet/PROJECT_DRE_1
/panel/foreach.php
UTF-8
655
2.578125
3
[]
no_license
<?php require_once("config/class.Database.php"); $array = "[{'Nombres':'Erik','Apellidos':'Regalado Alva','Dni':78375004,'Carrera':'Prueba','Fecha':43588},{'Nombres':'Maria','Apellidos':'calva','Dni':65478521,'Carrera':'dasarrollo','Fecha':43589}]"; $array = [ 'otros', 'Senati', 'otros2', 'otros3', 'otros4' ]; fo...
true
1049f6b3fe3759c129a635e166194f018e9df527
PHP
tovanor/colorhackathon
/search.php
UTF-8
1,029
2.765625
3
[]
no_license
<?php $act = (isset($_GET['searchval']))? $_GET['searchval'] : ''; global $c_mysqli; // The search bar if(isset($_GET['searchval']) && $_GET['searchval'] == '') { // Redirect to the main page echo '<meta http-equiv="REFRESH" content="0;url=index.php">'; } if($act == '') { ?> <form action="search.php" method="GET"...
true
6b7abe442337148080e7ab7a32b7ba16d88c9108
PHP
PohurskyiArtem/admin_panel
/build/api/savePage.php
UTF-8
793
2.515625
3
[ "MIT" ]
permissive
<?php session_start(); if ( $_SESSION["auth"] != true ) { header("HTTP/1.0 403 Forbidden"); die; } $_POST = json_decode( file_get_contents("php://input"), true ); $file = $_POST["pageName"]; $newHTML = $_POST["html"]; if(!is_dir('../backups/')) { mkdir("../backups/"); } $backups = json_decode(file_get_con...
true
0cb62b94212cb0ac7b9587cb0d9287f8036ef4aa
PHP
sikhlana/cse370
/library/App/Template.php
UTF-8
3,691
2.65625
3
[]
no_license
<?php /** * This application was built for the project for the course CSE370 by the group Onegai Sensei. * * @author A M Saif Mahmud, Tanjida Sultana, Talha Ahmed, Abdul Mueez * @license <unlicensed> You are not allowed to edit/redistribute the source code under any circumstances and/or in any form. */ ...
true
764c69e730764801b55a11c087ef204ca621f591
PHP
GhostMaster1573/InfiniteUI
/src/GICore/command/TreeCommand.php
UTF-8
6,009
2.609375
3
[]
no_license
<?php declare(strict_types=1); namespace GICore\command; use pocketmine\command\Command; use pocketmine\command\CommandExecutor; use pocketmine\command\CommandSender; use pocketmine\item\Item; use pocketmine\item\ItemBlock; use pocketmine\item\ItemFactory; use pocketmine\Player; use GICore\GICore; class TreeComman...
true
7efa9499aef00340ea9b44fdbda4f27a44f005c1
PHP
GeeH/FAFS-Server-ZF2
/src/FAFSServer/Mapper/TableGatewayMapper.php
UTF-8
2,426
2.703125
3
[]
no_license
<?php /** * Gary Hockin * 23/04/2013 */ namespace FAFSServer\Mapper; use Zend\Db\Sql\Expression; use Zend\Db\Sql\Select; use Zend\Db\TableGateway\TableGateway; class TableGatewayMapper implements MapperInterface { /** * @var TableGateway */ protected $tableGateway; /** * @param TableGa...
true
417da7fa8b5f1dbf08b7910c714d4a9fe6f931c3
PHP
legiaquan/websitetintuc
/application/models/home/M_tin_tuc.php
UTF-8
6,809
2.609375
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php class M_tin_tuc extends CI_Model { //model tin tuc //@Author: Trần Quốc Danh //@Student Code: DH51500943 public function register($first_name,$last_name,$user,$email,$password){ $today = date("Y-m-d"); $data = array( 'first_name' => $first_name, 'last_name' => $last_name, 'username' => $user, ...
true
2a3a7e797946f1068119b0cd10c0677db368b2fa
PHP
jetwg/jet-php
/lib/JetAnalyzer.class.php
UTF-8
5,539
2.5625
3
[]
no_license
<?php require_once(JET_LIB_DIR . DIRECTORY_SEPARATOR . 'JetUtil.class.php'); class Jet_Analyzer { private static $packInfos = array(); private static $loaders = array(); /** * getPackInfos */ public static function getPackInfos() { return self::$packInfos; } /** * 增加一份...
true
4af4550518c8083903ed0f7eca85d0b49fdddc11
PHP
remyvhw/dirtiki
/app/Listeners/GeneratePageRedirections.php
UTF-8
935
2.734375
3
[]
no_license
<?php namespace App\Listeners; use App\Events\PageSaved; use App\Page; use App\PageRedirection; class GeneratePageRedirections { /** * Handle the event. * * @param PageSaved $event * @return void */ public function handle(PageSaved $event) { $page = $event->page; ...
true
748f3148b65ed873fad666e4c8b6258a231a8ac5
PHP
arzurchris/football-league
/src/Controller/Api/TeamController.php
UTF-8
3,358
2.515625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: arzurchris * Date: 08/09/2018 * Time: 16:07 */ namespace App\Controller\Api; use App\Entity\Team; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\JsonResponse; use Symfony\Component\HttpFoundation\Request; use Symfony\Compon...
true
9581899bb4ee86b33b6783cdb8777621622ddb1d
PHP
Naveenpranesh/task
/pract/gateway/task/ascbasics.php
UTF-8
2,778
2.53125
3
[]
no_license
<!DOCTYPE HTML> <html> <head> <meta charset="utf-8"> <title>ASSESMENT 1-3 SCORE</title> <script src="<?php echo APPLICATION_URL.'resources/js/jquery.min.js'; ?>"></script> <script src="<?php echo APPLICATION_URL.'resources/js/scripts.js'; ?>"></script> <script type="text/javascript"> var mtsoc_...
true
9ce676959529334bbb06515f0d118fafeb8a019f
PHP
tectonic/sso-awardforce-drupal
/includes/class_award_force_api.inc
UTF-8
2,125
2.71875
3
[]
no_license
<?php use GuzzleHttp\Client; class AwardForceAPIV2 { private $apiUrl = 'https://api.cr4ce.com'; private $apiKey; public function __construct() { $this->apiKey = variable_get('sso_awardforce_api_key', ''); } /** * Sends a GET request to the Award Force API * * @param ...
true
3a46cc24fd678ab8555f90fb02516e59c3e88579
PHP
RobertoM80/polls_app
/new_password.php
UTF-8
2,145
2.78125
3
[]
no_license
<?php include('inc/functions.php'); if ($_SERVER['REQUEST_METHOD'] == 'POST') { $password = password_hash(trim($_POST['password']), PASSWORD_BCRYPT); $confirm_password = $_POST['confirm_password']; if ($password == '' || $confirm_password == '') { $error_message = "Please, Fill in the required fields: name,...
true
872793ca235fb5ac78095c6e649b4066d571d4b5
PHP
EBMCentraleLille/fablab
/src/CentraleLille/NewsFeedBundle/Entity/Category.php
UTF-8
4,641
2.71875
3
[ "MIT" ]
permissive
<?php /** * Category.php File Doc * * Entité Category qui décrit les catégories de Projects * * PHP Version 5.6 * * @category File * @package CentraleLille:NewsFeedBundle * @subpackage Entity * @author Lechaptois Martin <martin.lechaptois@gmail.com> * @license http://www.gnu.org/copyleft/gpl.html...
true
a038b8e41a1ffc5ccc953a10588ec9b56701d401
PHP
PicupTechnologies/picup-php-api
/src/Objects/ParcelStatus.php
UTF-8
1,069
3.21875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace PicupTechnologies\PicupPHPApi\Objects; /** * Class ParcelStatus * * @package PicupTechnologies\PicupPHPApi\Objects */ final class ParcelStatus { /** * @var string */ private $reference; /** * @var string */ private $trackingNumber; ...
true
61707f414636f76890d3f1a53703bccebeff1d57
PHP
qqcodeq/hack
/app/Http/Controllers/API/UserController.php
UTF-8
2,640
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\API; use App\Http\Controllers\Controller; use App\Models\User; use Illuminate\Http\Request; class UserController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response * * @OA\Get( * path="/api/us...
true
e2f3472b9ef4131350f594b64b001e83f80683d8
PHP
hiveclick/flux
/api/webapp/modules/Default/actions/ConfirmedAction.php
UTF-8
3,435
2.59375
3
[]
no_license
<?php use Mojavi\Action\BasicRestAction; use Mojavi\Form\CommonForm; // +----------------------------------------------------------------------------+ // | This file is part of the Flux package. | // | | // | For the full copyright and license information, please view the LICENSE | // | file...
true
54eb9fe765bbe035390a37aff37bcdbd0dfa196a
PHP
Eelizabeth/practica7_p4
/ultima practica1/editar.php
UTF-8
987
2.53125
3
[]
no_license
<?php include ("conexion.php"); if(isset ($_GET['id'])){ $id = $_GET['id']; $SQL = "SELECT * FROM contacto WHERE id = '".$id."'"; $ejecutar_consulta = mysql_query($SQL,$conexion); $registro = mysql_fetch_array($ejecutar_consulta); } ?> <form method="POST" action="mod.php" > <input type="hidden" name="id" value...
true
66bba44342cd89207e6f57e3c8a92b7b015bcd42
PHP
cmcnamara87/moviesowl-laravel
/app/EventCinemas/EventCinemasMovieParser.php
UTF-8
1,247
2.703125
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: cmcnamara87 * Date: 2/01/2015 * Time: 4:03 PM */ namespace MoviesOwl\EventCinemas; use Illuminate\Support\Facades\Log; class EventCinemasMovieParser { protected $movieElement; function __construct($movieElement) { $this->movieElement = $movieElement...
true
adf210f8f6ec645365307c087a1b38b4240351d8
PHP
Faryshta/quiubas-php
/Quiubas/Base.php
UTF-8
1,453
2.6875
3
[ "MIT" ]
permissive
<?php namespace Quiubas; class Base { /** * @param array $params Parameters */ public static function action($params) { return Network::post(static::$base, $params); } /** * @param string $id ID */ public static function get($id = false, $params = array()) { ...
true
83adf65ea9247ca4fedbb60d4198aca9dc20cdf3
PHP
VVIkon/kmp-old
/protected/modules/searcherService/components/SearchHandlersFactory.php
UTF-8
2,463
2.78125
3
[ "MIT" ]
permissive
<?php /** * Class SearchHandlersFactory * Реализация фабрики классов обработчков поисковых команд */ class SearchHandlersFactory { const DEFAULT_OFFER_CLASS_NAME = 'SearchHandler'; const ACCOMMODATION_OFFER_TYPE = 1; const FLIGHT_OFFER_TYPE = 2; const TRANSFER_OFFER_TYPE = 3; const VISA_OFFER_T...
true
9b72f08fee7c747bcfa230a3580192d889ce8301
PHP
yadavankit/WriteRate
/compare_images.php
UTF-8
1,227
2.5625
3
[]
no_license
<?php session_start(); include 'comparer.php'; include 'resizer.php'; $comparador = new comparadorImg(8); $result_dif=array(); $result_sim=array(); for($i=1; $i<=5;$i++) { $al= "alphabet".$i; $alphabet=$_SESSION[$al]; $ideal = 'processed_ide...
true
a11abeffd24f53385c98c20859f63cdc4d6dcb9e
PHP
muzakisyahrul/pw2_tugas1
/fungsi.php
UTF-8
208
3.9375
4
[]
no_license
<?php function perkalian($angka1, $angka2) { return $angka1 * $angka2; } $hasil = perkalian(20, 3); echo "Perkalian 20 x 3 adalah $hasil"; echo "<br/>"; echo "Perkalian 9 x 2 adalah " . perkalian(9, 2);
true
ef37616fb45728f2801da65dd5284cae964e9c53
PHP
shlinkio/shlink-common
/src/Validation/OrderByValidator.php
UTF-8
1,556
2.765625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Shlinkio\Shlink\Common\Validation; use Laminas\Validator\AbstractValidator; use function count; use function Functional\contains; use function is_array; class OrderByValidator extends AbstractValidator { public const VALID_ORDER_DIRS = ['ASC', 'DESC']; private cons...
true
da0c73ce5e4557f458ab7f132621021a374f1dd5
PHP
codedokode/task-checker
/src/TextScanner/TokenArray.php
UTF-8
12,955
2.890625
3
[]
no_license
<?php namespace TaskChecker\TextScanner; class TokenArray implements \Countable { private $tokens; private $offsetList = array(); private $offsetStep = 5; public static function fromCode($code) { $self = new static(); $self->tokens = token_get_all($code); ret...
true
b43c2c5dc359fe8292a28c2fa588dde9d58529fc
PHP
usky105/baseshop1
/backend/libraries/Pdf.php
UTF-8
821
2.875
3
[ "BSD-3-Clause" ]
permissive
<?php namespace backend\libraries; use mPDF; class Pdf { protected $header = ''; protected $footer = ''; public function setHeader($header) { $this->header = $header; } public function setFooter($footer) { $this->footer = $footer; } public function Output($html_body = '') { //解决中文乱码问题 $mp...
true
98f105f8b74bea3db515d1c542ab3e9afc3c03d5
PHP
lrmaldo/inmobiliariavalladolid
/backend/models/Acerca.php
UTF-8
1,352
2.59375
3
[ "MIT", "BSD-3-Clause" ]
permissive
<?php namespace backend\models; use Yii; /** * This is the model class for table "acerca". * * @property integer $id_acerca * @property string $texto * @property string $direccion * @property integer $telefono * @property string $correo * @property string fb * @property string tw */ class Acerca extends \y...
true
d3f936fb08e241966f362852ee2168d735b9c4e0
PHP
JMRBDev/2DAW
/Desarrollo web en entorno Cliente/5 - Mecanismos de comunicación asíncrona/AJAX/Barra de búsqueda/getSugerencia.php
UTF-8
1,874
2.53125
3
[]
no_license
<?php //Array de nombres de ciudades $arr[] = "Casares"; $arr[] = "Barcelona"; $arr[] = "Alcorcón"; $arr[] = "Málaga"; $arr[] = "Fuengirola"; $arr[] = "Marbella"; $arr[] = "Río de Janeiro"; $arr[] = "Gijón"; $arr[] = "Oviedo"; $arr[] = "Cáceres"; $arr[] = "Mérida"; $arr[] = "Cádiz"; $arr[] = "Estepona"; ...
true
44c1f10307dd17fd605e51a40c5a6f7cc0d81188
PHP
tacoyaki-9/php-study
/test/loop_for.php
UTF-8
80
2.609375
3
[]
no_license
<?php for($i = 1;$i <= 10;$i++){ echo $i."回目の表示です!\n"; } ?>
true
fbcd94c6848cb31692da72df10f4784f32503797
PHP
dollarneworld/cursophp
/ejemplo_ambitos.php
UTF-8
275
2.84375
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> </head> <body> <?php $nombre="Jordi"; function dameNombre() { global $nombre; $nombre="El nombre es " . $nombre; } dameNombre(); echo $nombre; ?> </body> </html>
true
d1e9e1358f7b9f8e4ab72e7c05e406933a237764
PHP
ashryverrr/pettycash
/config/connection.php
UTF-8
370
2.65625
3
[]
no_license
<?php $hostname='localhost'; $username='root'; $password=''; $pdo = new PDO("mysql:host=$hostname; dbname=pettysystem", $username, $password); $pdo ->setAttribute(PDO::ATTR_EMULATE_PREPARES, false); $pdo ->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); if ($pdo) { #echo "CONNECTED."; } else { ...
true
228e91b264ad92a33c6fd6a394a98e4e4cc8a1cc
PHP
josespinoza/Ecutrips
/src/app/framework/Url.php
UTF-8
2,627
3.09375
3
[]
no_license
<?php namespace com\github\gooh\CVBacklog; class Url { protected $scheme; protected $host; protected $port; protected $user; protected $pass; protected $path; protected $query; protected $fragment; /** * @param string $url * @throws \InvalidArgumentException When $url is i...
true
bdabaed75df0d1e4101bcf299baf3d5852cbedc3
PHP
NigrumAquila/university_blog_laravel
/project/app/Http/Controllers/StudentsController.php
UTF-8
1,865
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Models\Services\StudentsService; use App\Models\Student; class StudentsController extends Controller { public function index() { return view('students.index', with(new StudentsService())->indexData()); } public functi...
true
9bee8a702d913be8296d17e44d462ccc35a7f0cd
PHP
kauffinger/onoffice-laravel-adapter
/src/Actions/ReadActions/ReadImprintAction.php
UTF-8
2,665
2.6875
3
[ "MIT" ]
permissive
<?php namespace Kauffinger\OnOfficeApi\Actions\ReadActions; use Kauffinger\OnOfficeApi\Actions\ActionInterface; use Kauffinger\OnOfficeApi\Actions\Traits\HasResourceId; use Kauffinger\OnOfficeApi\Enums\ActionType; use Kauffinger\OnOfficeApi\Enums\Language; use Kauffinger\OnOfficeApi\Enums\ReadResource; /** * Reads ...
true
688ad8e1bdc782e330aff22c8e9f239ae2a3e51d
PHP
jeethualex/core
/tests/Utils/UtteranceGenerator.php
UTF-8
3,801
2.796875
3
[ "Apache-2.0" ]
permissive
<?php namespace OpenDialogAi\Core\Tests\Utils; use Faker\Factory; use OpenDialogAi\Core\Utterances\Exceptions\FieldNotSupported; use OpenDialogAi\Core\Utterances\User; use OpenDialogAi\Core\Utterances\Webchat\WebchatButtonResponseUtterance; use OpenDialogAi\Core\Utterances\Webchat\WebchatChatOpenUtterance; use OpenDi...
true
923ebeda4c10b42ff394e81730a046d5d751cc96
PHP
Lukarrio1/Fenntech
/app/Http/Controllers/TeamController.php
UTF-8
4,439
2.609375
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Support\Facades\Storage; use App\Team; class TeamController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function __construct() { ...
true
865410a158a2c2b9ef4ac16d762d0000ce7fc091
PHP
dbenx/dome
/Config/Config.Function.php
UTF-8
20,282
2.6875
3
[]
no_license
<? /* *2011-1-14 * *From :YumDam * *E-mail:yumdam@yumdam.com * *QQ:992360020 * *http://www.yumdam.com/ * */ /* $sitelist = array( '1'=>array( 'site'=>'huiyang120.com', 'sname'=>'惠阳男科', ), ); */ function getip() { $ip = false; if (!empty($_SERVER["HTTP_CLIENT_IP"])) { $ip = $_SERVER["HTTP_C...
true
9283c20d306b48f103551ece3c5dfa900dce732f
PHP
caenHiro/Disenio_de_Interfaces
/src/php/insertaPromo.php
UTF-8
743
2.578125
3
[]
no_license
<?php $servername = "localhost"; $username = "fciencias"; $password = "elkfetal"; $dbname = "Kfetal"; $dia_inicio = $_POST["dia_inicio"]; $dia_termino = $_POST["dia_termino"]; $titulo = $_POST["titulo"]; $cuerpo = $_POST["cuerpo"]; $conn = new mysqli($servername, $username, $password, $dbname); if ($conn->connect_e...
true
0a67f67180facab5584a9f5be7f5a6a02f9ac44f
PHP
ko1eda/levelup-forum
/app/Events/ReplyPosted.php
UTF-8
1,057
2.609375
3
[]
no_license
<?php namespace App\Events; use Illuminate\Broadcasting\Channel; use Illuminate\Queue\SerializesModels; use Illuminate\Broadcasting\PrivateChannel; use Illuminate\Broadcasting\PresenceChannel; use Illuminate\Foundation\Events\Dispatchable; use App\Reply; use App\Thread; class ReplyPosted { use Dispatchable; ...
true
c08736bcf1f78827ad5dca7227fb042d3a2db7b5
PHP
snax4a/vlounge
/database/migrations/2018_07_03_162627_create-teams-table.php
UTF-8
932
2.59375
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateTeamsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('teams',function (...
true
a0eeeddda6890781c725dd441234c5b4c9b4ebab
PHP
hxhkings/refactored
/refactored/controllers/NewsManager.php
UTF-8
1,754
3.109375
3
[]
no_license
<?php /** * The NewsManager Controller * * PHP version 7 */ declare(strict_types = 1); namespace App\Controllers; require("../vendor/autoload.php"); use \App\Interfaces\Manager; /** * Holds the functions * that manipulate the news table */ class NewsManager implements Manager { use \App\Traits\ModelAdap...
true
77157c9200e5145cb285659d060ceaab1ed2e2b2
PHP
kobusbeets/api
/application/helpers/password_helper.php
UTF-8
656
3.40625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /* * A function to calulate the best cost for a password and returns the encrypted password. */ if(!function_exists('encrypt_password')) { function encrypt_password($password) { $time_target = 0.05; // 50 milliseconds //calculate the best cost to use for this password $cost = 8; ...
true
e950cf996f21abdee6caca21000451031530e270
PHP
IbraheemLanre/backendphp
/model/Database.php
UTF-8
617
3.234375
3
[]
no_license
<?php class Database{ protected $connection = null; private $DB_HOST = "localhost"; private $DB_USERNAME = "root"; private $DB_PASSWORD = ""; private $DB_NAME = "productdb"; public function getDB(){ try{ $this->connection = new mysqli($this->DB_HOST, $this->DB_USERNAME, $thi...
true
2a4517ec896ecbde73a958a100c191174da59bca
PHP
peter-roden/mendix
/functions/menus.php
UTF-8
4,101
2.828125
3
[]
no_license
<?php /* Declare Nav Menu Areas */ if ( function_exists( 'register_nav_menus' ) ) { register_nav_menus( array( 'main-menu' => 'Main Menu', 'footer-menu' => 'Footer Menu', 'evaluation-guide' => 'Evaluation Guide' ) ); } /* * Add vertical menu class and submenu data attribute to sub menus */ class MX_T...
true
e71d79f67658f71729e1347d68753e7c448f0c96
PHP
antonia-k/T-Project
/Ny mappe/phpMyAdmin-4.8.5-all-languages/newPHP/php-7.3.5/ext/intl/tests/calendar_clear_variation1.phpt
UTF-8
809
2.6875
3
[ "BSD-4-Clause-UC", "BSD-3-Clause", "LicenseRef-scancode-other-permissive", "TCL", "ISC", "Zlib", "LicenseRef-scancode-public-domain", "BSD-2-Clause", "blessing" ]
permissive
--TEST-- IntlCalendar::clear() 1 arg variation --INI-- date.timezone=Atlantic/Azores --SKIPIF-- <?php if (!extension_loaded('intl')) die('skip intl extension not enabled'); --FILE-- <?php ini_set("intl.error_level", E_WARNING); ini_set("intl.default_locale", "nl"); $intlcal = IntlCalendar::createInstance...
true
498dedceb790a4c2b73f98d22e89ce2c74d1aaca
PHP
EricHindle/lms
/lms_php/scheduled/email-functions.php
UTF-8
3,065
2.546875
3
[]
no_license
<?php /* * HINDLEWARE * Copyright (C) 2020-21 Eric Hindle. All rights reserved. */ $myPath = '/home/lastmanl/public_html/'; // $myPath = "../"; require $myPath . 'includes/mail-util.php'; function sendemailusingtemplate($templatename, $playerid, $gameid, $teamid, $values, $checkflag) { global $myP...
true