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
ed609191cb834b7cd3e5c5ce8a93a0bdfc0666d3
PHP
rodrigoncalves/syscantina
/conexao.php
UTF-8
517
2.578125
3
[]
no_license
<?php $url = parse_url(getenv("CLEARDB_DATABASE_URL")); if (isset($url["host"])) { $server = $url["host"]; $username = $url["user"]; $password = $url["pass"]; $db = substr($url["path"], 1); } else { $server = "localhost"; $username = "root"; $password = ""; $db = "cantina_kids"; } ...
true
b7fe9f6b32f10b6657e3dd1cc7abec5a57a75ed5
PHP
UrielSDM/entrevista
/app/Http/Controllers/ClientesController.php
UTF-8
3,734
2.640625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Models\Cliente; class ClientesController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $clientes = Cliente::all(); //S...
true
bcddea7620c8cbcb26ac81b6e06afe39dc1ff2e0
PHP
sellastica/entity
/src/Entity/AbstractEntity.php
UTF-8
4,423
2.5625
3
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
<?php namespace Sellastica\Entity\Entity; abstract class AbstractEntity implements IEntity { /** @var array */ public $onSave = []; /** @var array */ public $onRemove = []; /** @var mixed|null */ protected $id; /** @var \Sellastica\Entity\Relation\IEntityRelations|null */ protected $relationService; /** @var...
true
f76bf7e56c08ac72a3a8689b5033b0d1bf50d97c
PHP
AddAndrei/Gamehelper
/app/Services/CreateGameService.php
UTF-8
1,682
2.765625
3
[ "MIT" ]
permissive
<?php namespace App\Services; use App\Repositories\AllObjectsRepository; use App\Repositories\GamesRepository; use App\Repositories\MapsRepository; use App\Repositories\QuestsRepository; use App\Repositories\RolesRepository; use App\Repositories\TeamsRepository; class CreateGameService { private $game; priv...
true
3e9d809afc08ee5f9e595b4dd5774ad9eb264aac
PHP
GameConnect/sourcebansv1
/web_upload/includes/CUpdate.php
UTF-8
2,659
2.703125
3
[]
no_license
<?php /** * ============================================================================= * Updater Class * * @author SteamFriends Development Team * @version 1.2.0 * @copyright SourceBans (C)2007 SteamFriends.com. All rights reserved. * @package SourceBans * @link http://www.sourcebans.net * * ...
true
88494bf01855f71382babb9247534897c4dd4d56
PHP
vorrarit/global_sourcing
/app/Model/Product.php
UTF-8
3,911
2.53125
3
[]
no_license
<?php App::uses('AppModel', 'Model'); /** * Product Model * * @property Division $Division * @property Department $Department * @property Currency $Currency * @property Unit $Unit * @property Manufacturer $Manufacturer * @property Klass $Klass * @property SubKlass $SubKlass * @property FileDocument $FileDocum...
true
84d635bf5085d5bc2981abb61608b330c1de1f4a
PHP
AlecDivito/cards-and-chat-website
/app/Http/Controllers/UserController.php
UTF-8
1,352
2.6875
3
[]
no_license
<?php namespace App\Http\Controllers; use App\User; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\URL; class UserController extends Controller { public function login(Request $request) { $auth = false; $credentials = $request->only('email', ...
true
672e4da4fad7388a75359cc9dd0e43fdc2ac2898
PHP
ynphp/weimokuai-
/模块解压/猪八戒推广中心3.4.3/lonaking_taskcenter/class/biz/GiftOrderService.php
UTF-8
2,454
2.625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: leon * Date: 15/9/5 * Time: 下午2:04 */ require_once 'CommonService.php'; class GiftOrderService extends CommonService { /** * GiftOrderService constructor. */ public function __construct() { $this->table_name = 'lonaking_supertask_gift_order'...
true
fa35673393d36d568f7a99742450989bb59bf79f
PHP
MadimetjaShika/WiCS
/app/Helpers/MessageHelpers/InformativeMessages.php
UTF-8
1,029
2.703125
3
[ "Apache-2.0" ]
permissive
<?php namespace WiCS\Helpers\GenericHelpers; /** * Defines and houses ALL informative messages used throughout the application. */ class InformativeMessages{ /******************************************** ********************************************* ********** ----------------------- ********** ***************...
true
c343590968bdfeb34b3e826195a08a73fe7ca24d
PHP
piola-frameworks/piola-php
/piola/patterns/repository/GenericRepository.php
UTF-8
2,129
3
3
[ "Apache-2.0" ]
permissive
<?php namespace piola\patterns\repository; use piola\db as db; use piola\patterns as patterns; abstract class GenericRepository implements IRepository { /** * * @var db\CPDO */ private $_pdo; /** * * @return db\CPDO */ public function getPDO() { return $thi...
true
429ad68ad98cc4ac27da7ce57e1171ff5127147b
PHP
wujonathan/Geotagged-Map
/addPicture.php
UTF-8
939
2.625
3
[]
no_license
<?php /*Adds a picture to the database after getting the post variables from the ajax request.*/ header("Content-Type: application/json"); require 'database.php'; require 'user_agent_test.php'; $path=$mysqli->real_escape_string($_POST['path']); $lat=$mysqli->real_escape_string($_POST['lat']); $lng=$mysqli->real_escape...
true
689512ca26d98a9ff03e5759e735d3f621b04134
PHP
CbAqvq191/EPET-n20
/ProyectoBiblioteca2019/Categorias/categoria.php
UTF-8
3,650
2.875
3
[]
no_license
<?php require_once 'categoria.entidad.php'; require_once 'categoria.model.php'; //creo los objetos con sus atributos y sus metodos $cat = new Categoria (); $model = new CategoriaModel(); //isset pregunta si llega esta variable a este archivo al cargar if(isset($_POST['operacion'])){ //cambiar ...
true
fa859d7e71f0e5824506a90a0f042d4187746afd
PHP
eiwuert/Myrepo
/condor_www_root/cronjobs/www/report.weekly.state-counts.php
UTF-8
3,541
2.53125
3
[]
no_license
<?php /*** report.weekly.state-counts.php -- runs monday morning and checks BB submits from the last week, creating a tally of what states the customers reside in ***/ // Include/Define // ===================================================== require_once('mysql.3.php'); require_once('de...
true
05e6f7882c75c8f11de8bb5422bbce1944b011d7
PHP
Stanislas-Web/projetphp
/face1 - Copie/societe/classes/Annonces.class.php
UTF-8
13,707
2.828125
3
[]
no_license
<?php Class Annonces { private $Id; private $Titre; private $Description; private $Image; private $DateA; private $Temps; public function getId() { return $this->Id; } public function getTitre() { return $this->Titre; } public function getDescription() { ret...
true
135520f9dca9b3f9d9744429740e7149b3d6776c
PHP
spwashi/SmPHP
/src/Sm/Core/SmEntity/Traits/Is_StdSchematicizedSmEntityTrait.php
UTF-8
983
2.734375
3
[]
no_license
<?php namespace Sm\Core\SmEntity\Traits; use Sm\Core\Schema\Schematicized; use Sm\Core\SmEntity\SmEntitySchema; /** * Trait StdSchematicizedSmEntity * * For SmEntities that we would identify as being Schematicized (schema,schematic, */ trait Is_StdSchematicizedSmEntityTrait { protected $effectiveSchematic; ...
true
6e37c34261ed11ef1b83dbed9e2657f936ef1db5
PHP
andycheg/oracle-repo-fetcher
/FileHooker.php
UTF-8
954
2.875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: andy * Date: 10/01/14 * Time: 02:20 */ require_once("Hooker.php"); require_once("ProgressBar.php"); use Cli\ProgressBar; class FileHooker implements \Curl\Hooker { private $_label; private $_fileName; private $_fd; /** * @var ProgressBar */ private $_bar; fun...
true
ad6ebd3c0b20ffe09a45127361a9bd68ba7bbc94
PHP
Molajo/Resource
/Source/ClassMap/Aggregate.php
UTF-8
3,292
2.703125
3
[ "MIT" ]
permissive
<?php /** * Class Map Item Aggregation * * @package Molajo * @copyright 2014-2015 Amy Stephen. All rights reserved. * @license http://www.opensource.org/licenses/mit-license.html MIT License */ namespace Molajo\Resource\ClassMap; /** * Class Map Item Aggregation * * @package Molajo * @copyright 20...
true
1a1ab6e28c7131f3cf6d2a89650eb4fe554e03ae
PHP
augudaum/siscomceres
/app/models/participante/pessoa/RG.php
UTF-8
933
3.046875
3
[]
no_license
<?php /** * Classe responsável por modelar o RG de um usuário * @author Marcelo Augusto */ namespace app\models\participante\pessoa; class RG { private $numero; private $orgao; private $uf; private $dataExpedicao; public function __construct($numero...
true
0182cddc6560896ded3d43097fcc7f3f590da289
PHP
xmhafiz/phptraining
/examples/mysql_with_functions/edit_form.php
UTF-8
699
2.609375
3
[]
no_license
<?php // include file require('database_functions.php'); $connection = connect(); $product_id = $_GET['id']; // do query $query = 'SELECT * FROM products WHERE id = ' . $product_id; $result = mysqli_query($connection, $query); $row = mysqli_fetch_assoc($result); ?> <a href="mysql2.php">Show list</a> <br><br> <fo...
true
f61c99141094c6ceec975393f1210bdce237fe27
PHP
Warmold/clubEmployeBO
/src/Menu/MenuBuilder.php
UTF-8
1,226
2.703125
3
[]
no_license
<?php namespace App\Menu; use Knp\Menu\FactoryInterface; use Knp\Menu\ItemInterface; use Symfony\Component\HttpFoundation\RequestStack; use Symfony\Contracts\Translation\TranslatorInterface; /** * Class MenuBuilder */ class MenuBuilder { /** * @var FactoryInterface */ private $factory; /** ...
true
662ca4978c171c9082f4e43f0f23df2d95c78bf8
PHP
OlgaRunge/php1
/lesson4/mysite/lib/functions.php
UTF-8
3,696
3.109375
3
[]
no_license
<?php //Константы ошибок define('ERROR_NOT_FOUND', 1); define('ERROR_TEMPLATE_EMPTY', 2); /* Функция формирования навигационного меню * @return string */ function renderNavMenu() { global $NAVMENU; $navMenu = '<ul>'; foreach ($NAVMENU as $menuitem => $menuaction) { $navMenu .= '<li><a href="?rou...
true
ceb2e2cff352bef42cc5eff62a4de9ee728b3fa1
PHP
zelenin/value-object
/Domain/Model/DateTime/Interval/DateTimeOfDayInterval.php
UTF-8
1,655
2.90625
3
[ "MIT" ]
permissive
<?php namespace Zelenin\Ddd\ValueObject\Domain\Model\DateTime\Interval; use Zelenin\Ddd\Core\Domain\Exception\NotMatchTypeException; use Zelenin\Ddd\ValueObject\Domain\Model\DateTime\Duration\Duration; use Zelenin\Ddd\ValueObject\Domain\Model\DateTime\Point\Calendar\CalendarDate; use Zelenin\Ddd\ValueObject\Domain\Mo...
true
a5175450f522a3c5a0bff8045889e52f81032008
PHP
uWayLu/phpmyhelper
/src/Helper.php
UTF-8
2,531
2.65625
3
[]
no_license
<?php namespace WebbLu; class Helper { public static function getNow($format = 'YmdHis', $timezone = 'Asia/Taipei') { $dateTime = new \DateTime('now', new \DateTimeZone($timezone)); return $dateTime->format($format); } public static function getServerIp() { return $_SERVER[...
true
c700a2e42f012f22f0b7705229ea6ffc128aae9b
PHP
winson-young/sp
/System/Core/Cache/RedisDb.php
UTF-8
2,168
3.078125
3
[]
no_license
<?php namespace Core\Cache; use Core\Interfaces\CacheInterface as CacheInterface; use \Redis; class RedisDb implements CacheInterface { /** * redis资源 * * @var resource */ private $Redis; /** * 是否已成功连接 * * @var bool */ private $connected = false; public fu...
true
28265a77c397fba7219a05848738df591b35543e
PHP
bandunglh/yii_api
/backend/modules/admin/models/Admin.php
UTF-8
4,591
2.515625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace backend\modules\admin\models; use Yii; use yii\base\NotSupportedException; /** * This is the model class for table "pre_admin". * * @property integer $id * @property string $username * @property string $mobile * @property string $auth_key * @property string $access_token * @property string $p...
true
3d55e84ef964d6e0088684ea40a8183046140c13
PHP
emsifa/evo
/src/Dto.php
UTF-8
1,490
2.609375
3
[ "MIT" ]
permissive
<?php namespace Emsifa\Evo; use DateTime; use Emsifa\Evo\Casters\ArrayCaster; use Emsifa\Evo\Casters\BoolCaster; use Emsifa\Evo\Casters\CollectionCaster; use Emsifa\Evo\Casters\DateTimeCaster; use Emsifa\Evo\Casters\FloatCaster; use Emsifa\Evo\Casters\IntCaster; use Emsifa\Evo\Casters\StringCaster; use Emsifa\Evo\Dto...
true
675fdc1074d4de0c2beb96a4d2330f2c7c4acc1a
PHP
devlabs91/travelgate-notify
/src/Models/Ota/DiscountType.php
UTF-8
3,678
2.609375
3
[ "MIT" ]
permissive
<?php namespace Devlabs91\TravelgateNotify\Models\Ota; /** * Class representing DiscountType * * Identifies and provides details about the discount. * XSD Type: DiscountType */ class DiscountType extends TotalType { /** * @property bool $taxInclusive */ private $taxInclusive = null; /** ...
true
4cfb9bc566ae7627fc480f30af8c0e437c9ce7ef
PHP
rm77/libvirt-web
/libs/libvirt.xml.php
UTF-8
2,534
2.8125
3
[ "MIT" ]
permissive
<?php /* MIT License Copyright (c) 2019 Jonathan Barda Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, pu...
true
f838bd7fc089293be5835c172dcd4581dbde9e55
PHP
ferreira1987/agenda
/_app/Conn/Conn.class.php
UTF-8
974
3.109375
3
[]
no_license
<?php /** * Classe responsável por conexao no banco de dados * * @copyright (c) 2016, Adão Ferreira */ class Conn { private static $Host = 'localhost'; private static $DBsa = 'calendario'; private static $User = 'root'; private static $Pass = ''; /** @var PDO */ private static $Conne...
true
3bd68bc5f3457c4807ecb16674af1d966fcfa177
PHP
AnnijaSve/Articles_for_auth_users_only
/app/Services/RegisterService/RegisterNewUserRegisterService.php
UTF-8
614
2.53125
3
[]
no_license
<?php namespace App\Services\RegisterService; use App\Models\User; use App\Repositories\UserRepository; class RegisterNewUserRegisterService { public function register(array $data, string $email) { $messages= (new AuthorizeNewUserRegisterService())->authorizeNewUser($email); $user = User::c...
true
2f8e63c950b23973210c37f9d2794bcba3e05b5e
PHP
noemi-salaun/project-euler-php
/functional/reduce.php
UTF-8
436
3.25
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); /** * Iteratively reduce the iterator to a single value using a callback function. * * @param iterable $iterator * @param callable $function * @param mixed $initial * * @return mixed */ function iterable_reduce(iterable $iterator, callable $function, $initial = null) { $ac...
true
651b09b3fd6b4582fbe984b2ad75cf603e1d8a17
PHP
lentrix/school
/app/Http/Controllers/StudentController.php
UTF-8
2,932
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Student; class StudentController extends Controller { public function index(Request $request) { $students=Student::orderBy('id','desc')->paginate(20); return view('students.index', compact('students')); } public...
true
626095990c6931f95b921e241ed22894fd52637a
PHP
Burgov/PredisWrapper
/src/Burgov/PredisWrapper/TypeFactory.php
UTF-8
3,804
2.921875
3
[ "MIT" ]
permissive
<?php namespace Burgov\PredisWrapper; class TypeFactory { private $instances = array(); private $client; public function __construct(Client $client) { $this->client = $client; } /** * @param string $key * @param string $default if the type does not exist, what should be ma...
true
f2f0b5669b7eb41f860a12023ba79904a731cf1a
PHP
phkolarov/PHP-Basics
/Exam Preparation/29.08.14 Exam/Article Parser/ArticleParser.php
UTF-8
864
2.84375
3
[]
no_license
<?php date_default_timezone_set ( 'UTC' ); $text = $_GET['text']; preg_match_all('/\s*([A-Za-z\s\-]+)%\s*([A-Za-z\s\-\.]+);\s*(\d{2}-\d{2}-\d{4})-(.*)/',$text,$splitedElements,PREG_SET_ORDER); var_dump($text); foreach ($splitedElements as $arrays) { $trimedArr = array_map('trim',$arrays); unset($trimedArr...
true
c82519dd5001d518583224372ef7643f92e0fe46
PHP
RafaelSdm/Curso-de-php
/exercicios/htdocs/php_iniciante/somador.php
UTF-8
457
3.578125
4
[ "MIT" ]
permissive
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> </head> <body> <?php $n1 = $_GET["a"]; $n2 = $_GET["b"]; $soma = $n1 +$n2; echo "<h1> numeros fornecidos: $n1, $n2</h1> <br/>"; echo "a soma de $n2 + $n1 é $soma <br/>"; echo "a sub é de ".($n1-$n2)."<br/>"; echo "a divisao vale =...
true
cd2901f7759745d19c06e04bbcef0e8353d08314
PHP
HananChehaitly/Bootcamp
/Hanan-e-commerce project/backend_clienthome.php
UTF-8
692
2.765625
3
[]
no_license
<?php session_start(); include "connection.php"; //Make necessary changes in db from purchase. //So I add row pivot table. //rember we have $_session["client_id"] since the user logged in. $client = $_SESSION["client_id"]; $item = $_GET["item"]; //$item = $_POST["product"]; $query3 = "INSERT INTO `items_boughtby_cli...
true
1049c59537240927792ded9fbbbfe7a3f77525f1
PHP
iceorb-com-ua/btree
/src/Exception/InvalidIndexClassException.php
UTF-8
375
2.59375
3
[ "MIT" ]
permissive
<?php namespace Btree\Exception; use Exception; /** * Class InvalidIndexClassException * * @package assassin215k/btree */ class InvalidIndexClassException extends Exception { protected $message = "Specified invalid class"; /** * @param string $indexKey */ public function __construct() ...
true
b4483f0ef03279c7eaef0e4776ffcf83309df4ce
PHP
LeniM/apiGenericBundle
/Controller/CrudAbstract.php
UTF-8
3,660
2.5625
3
[ "MIT" ]
permissive
<?php /* * This file is part of the lenim/api-generic-bundle package. * * (c) LeniM <https://github.com/lenim/> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace LeniM\ApiGenericBundle\Controller; use Symfony\Bundle\Fram...
true
e074a596cf0a8540a1e22750ef86cbf099348d6a
PHP
wm222au/1dv610-ws1-a
/Translator.php
UTF-8
1,341
3.515625
4
[]
no_license
<?php class Translator { private $inputText; private $resultText; private $translationType; private $consonants = array("b", "c", "d", "f", "g", "h", "j", "k", "l", "m", "n", "p" , "q" , "r" , "s" , "t" , "v" , "x" , "z"); public function setText(string $input) { // Add whatever verifications you want ...
true
ddf080a8e697b1a8ca1ce7b43abb923d1eed551d
PHP
juanurgiles/8a
/application/views/actual/cuenta_socio_u.php
ISO-8859-1
5,441
2.640625
3
[ "Unlicense" ]
permissive
<?php require_once('../Connections/cooperativa.php'); ?> <?php if (!function_exists("GetSQLValueString")) { function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { if (PHP_VERSION < 6) { $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue; } $t...
true
f0b512942a4a77bb9c3a696b1d5f9e5679cf0c68
PHP
WeihuaGu/pwyc
/src/Pwyc.php
UTF-8
659
2.890625
3
[ "MIT" ]
permissive
<?php /** * Pwyc(PHP伪原创) * Author: guojikai * Last Modified: 2010-11-28 17:14 * version 1.0 */ class Pwyc { private $replaced = array(); private $synonyms = array(); //construct function __construct() { $this->synonyms = require(dirname(__FILE__).'/dict.php'); } //replace ...
true
5f15ac235dd9d1ddd13c91abdccbbe5f23ae26e1
PHP
Phetiche/Phetiche
/phetiche/Phetiche.php
UTF-8
11,439
2.6875
3
[]
no_license
<?php /** * Phetiche core * * @file Phetiche.php * @description Phetiche core component and handler. * This class/file is the only file included in the index.php page, it * takes care of instantiating everything which is needed. * @author Stefan Aichholzer <play@analogbird.com> * @package Pheti...
true
00e9a58b1e5318eaee9fe9e49c76c1ae2e947e6b
PHP
norse-blue/php-value-objects
/src/SingleValueObject.php
UTF-8
395
2.65625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace NorseBlue\ValueObjects; use NorseBlue\ValueObjects\Contracts\SingleValueObject as SingleValueObjectContract; use NorseBlue\ValueObjects\Traits\SingleValueObjectBehavior; /** * Defines a single value object. * * @property mixed $value */ abstract class SingleValueObject i...
true
67fadbc33e6d900042d6286d5a4428706f7da75b
PHP
Papakillyou/KinderGarden
/CodeIgniter-3.1.10/application/models/StudentPayModel.php
UTF-8
709
2.703125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php class StudentPayModel extends CI_Model { public function __construct() { parent::__construct(); $this->load->database(); } public function show($table){ # typel类型: 全部,教师,其他。 $data=$this->db->get($table); $query=$data->result_array(); return $query; } public function find($table,$id){ $this->db...
true
869bc3e95608cd3fdefd8042bc10d3a061b67eba
PHP
Lisa20170107/GeekJob_2018
/CampChallenge_PHP/013.DB操作/error_4.php
UTF-8
1,216
3.25
3
[]
no_license
<?php // DBの接続処理をエラーハンドリング try { // 接続文字列生成 $dns = 'mysql:host=localhost;'; $dns .= 'dbname=Challenge_db;'; $dns .= 'charset=utf8'; // データベースへ接続 $pdo_obj = new PDO($dns, 'bm20170107', '****'); // エラーモード設定 $pdo_obj->setAttribute(PDO::ATTR_ERRMODE, PDO:...
true
d4685d9ac2c7e8ef4f4e0961bb9425bb70f56beb
PHP
chris-reed/DormManagementExercise
/application/Core/Parents/Model.php
UTF-8
1,039
3.015625
3
[]
no_license
<?php namespace Core\Parents; use Core\DB; /** * Parent class for Models * */ class Model { /** * instance of the database Class * @var \Core\DB */ public $db; /** * Class constructor * * loads the db variable */ public function __construct() { $this->db = new...
true
fb5c0ba1bf72aad4140829489eac0e9c51009b3f
PHP
Stealth177/AI_kurs
/verification_company.php
UTF-8
5,051
2.6875
3
[]
no_license
<?php include_once("bd.php"); if (isset($_POST['submit'])) { if (empty($_POST['login'])) { echo '<br><font color="red"><img border="0" src="error.gif" align="middle" alt="Введите логин!"> Введите логин! </font>'; } elseif (!preg_match("/^\w{3,}$/", $_POST['login'])) { echo '<br><font c...
true
bed4cc32e0a0a25a7b862d9bc73ca402942c1ed6
PHP
fredericia/web
/themes/custom/bellcom/include/helpers.inc
UTF-8
6,975
2.734375
3
[]
no_license
<?php /* * Seperated dates * Heavily inspired by drupals format_date() function. */ function _bellcom_seperated_dates($timestamp) { $seperated_dates = array(); // Use the advanced drupal_static() pattern, since this is called very often. static $drupal_static_fast; if (!isset($drupal_static_fast)) { $d...
true
359f74352f3832a38e21942f4e9e62d55e925bfe
PHP
stk2k/charcoalphp2
/module/db/create/from_model/CreateFromModelCommandTask.class.php
UTF-8
1,309
2.640625
3
[ "MIT" ]
permissive
<?php /** * タスク * * PHP version 5 * * @package renderers * @author stk2k <stk2k@sazysoft.com> * @copyright 2008 stk2k, sazysoft */ class CreateFromModelCommandTask extends Charcoal_Task { const DIR_MODE = '666'; /** * イベントを処理する * * @param Charcoal_IEventContext $context * ...
true
eebf974411e96c5de53fd81a2aa4c4e3e9f27df5
PHP
WalkingBlackBear/CLFC
/public_html/classes/mi.class.php
UTF-8
17,907
2.546875
3
[]
no_license
<?php require_once("formvalidator.class.php"); class memberInterface { var $member; var $producer; function memberInterface() { $this->member = TABLE_MEMBER; $this->producer = TABLE_PRODUCER; return true; } function mainMenu() { global $content_membe...
true
f279620ccc2b5e94737ae395edb199d3b3f8fcaa
PHP
SidLee/php-flow-manager
/src/SidLee/FlowManager/ResolvedNavigationResponse.php
UTF-8
831
2.765625
3
[ "MIT" ]
permissive
<?php namespace SidLee\FlowManager; class ResolvedNavigationResponse extends NavigationResponse { public function __construct(NavigationDirection $navigationDirection = null, $targetStepName = null, $wasDirect = false) { parent::__construct($navigationDirection, $targetStepName); $this->wasDire...
true
d09c74b6bbe8b18cbb8c69358c0a110111668071
PHP
nikitansk/devschool
/plugins/wplms-dashboard/wplms-dashboard/includes/widgets/instructor/break.php
UTF-8
1,440
2.65625
3
[]
no_license
<?php add_action( 'widgets_init', 'wplms_line_break_widget' ); function wplms_line_break_widget() { register_widget('wplms_line_break'); } class wplms_line_break extends WP_Widget { /** constructor -- name this the same as the class above */ function __construct() { $widget_ops = array( 'classname' ...
true
e8be63eaba818701de1f4e791736d270aa9f3e35
PHP
vladis1981/vladis
/www/pagos.php
UTF-8
898
3.140625
3
[]
no_license
<html> <head> </head> <body> <table> <?php $mensualidad=1; $importe=$_POST["textbox3"]; $resta=$_POST["textbox1"] * $_POST["textbox2"]; echo "<tr font bgcolor='blue' color='white'>"; echo "<td><font color='white'>Numero</font></td>"; echo "<td><font color='white'>Mensualidad</font></td>"; echo "<td><font color='white...
true
ab8a5850e4e3294e2f96a8b3cde969eac342ead7
PHP
dieche1227/blog
/public/s9/js/ueditor/php/stronger.php
UTF-8
26,052
2.625
3
[ "MIT" ]
permissive
<?php //utils.php function Qiniu_Encode($str) // URLSafeBase64Encode { $find = array('+', '/'); $replace = array('-', '_'); return str_replace($find, $replace, base64_encode($str)); } function Qiniu_Decode($str) { $find = array('-', '_'); $replace = array('+', '/'); return base64_decode(str_replac...
true
a916757e36ff87e822ec684256515d8c06229841
PHP
vragosta/vincentragosta
/plugins/image-captions/includes/widgets/class-news-and-updates.php
UTF-8
6,165
2.90625
3
[]
no_license
<?php /** * Builds 'News & Updates' Widget. * * @package Image Captions - Twenty Sixteen * @since 0.1.0 */ # Blocking direct access to this file. defined( 'ABSPATH' ) || exit; # Set widget specific defines. define( 'BOOTSTRAP_GRID_COL_MAX', 12 ); define( 'POSTS_PER_PAGE', 3 ); define( 'POST_TYPE', 'post' ); /**...
true
69572f18ccb25f3b51dce9a393d9867ebb7cbbb6
PHP
muzzzko/UrlManager
/src/Controllers/UrlController.php
UTF-8
4,342
2.515625
3
[]
no_license
<?php namespace UrlManager\Controllers; use UrlManager\Services\UserService; use UrlManager\Services\UrlService; use UrlManager\Services\TransitionService; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\JsonResponse; class Ur...
true
f549139497c92cea7612e438649305a0e194b7e5
PHP
mxk1011/nem-php
/tests/SDK/NIS/DTO/DTOMosaicAttachmentTest.php
UTF-8
3,445
2.53125
3
[ "MIT" ]
permissive
<?php /** * Part of the evias/nem-php package. * * NOTICE OF LICENSE * * Licensed under MIT License. * * This source file is subject to the MIT License that is * bundled with this package in the LICENSE file. * * @package evias/nem-php * @version 1.0.0 * @author Grégory Saive <greg@evias.be> * @l...
true
915b4e284b477840535d0b5ce196508c76b5d13a
PHP
hoiast/AluraDownloader
/src/HttpClient.php
UTF-8
3,251
2.828125
3
[ "MIT" ]
permissive
<?php namespace Hoiast\AluraDownloader; use GuzzleHttp\Client; use GuzzleHttp\Promise\Utils as PromiseUtils; use GuzzleHttp\Promise\PromiseInterface; use Psr\Http\Message\ResponseInterface; use GuzzleHttp\Exception\RequestException; class HttpClient { private string $username; private string $password; p...
true
88dd6efc5a8279cc4382d838ea9ba9d37bdd734c
PHP
sass-team/sass-app
/public_html/app/models/CourseFetcher.class.php
UTF-8
10,647
2.6875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /** * The MIT License (MIT) * * Copyright (c) <year> <copyright holders> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the r...
true
2a5f722a9de2ca40418fa2e3b22563f10a71d0d2
PHP
DonMul/Botchka
/src/Command/Quit.php
UTF-8
900
3.21875
3
[]
no_license
<?php namespace Botchka\Command; use \Botchka\Command; /** * Class Quit * @author Joost Mul <joost@jmul.net> * * Disconnects the user from the server. * * Defined in RFC 1459 */ final class Quit extends Command { /** * @var string */ protected $message = ''; /** * @param $message ...
true
dc547c5694475f748652efafab2ad8059f0a8671
PHP
tifferderer/SDEV305
/portfolioproject/includes/guestFunctions.php
UTF-8
491
2.875
3
[]
no_license
<?php //echo "<p> Loaded </p>"; function validInfo($info) { return !empty($info) //&& ctype_alpha($name) ; } //Validate greetings: array of greetings function validGreet($selectedGreeting) { $validGreetings = array("new", "hiring", "meetup", "other"); //check each greeting and retu...
true
f95d243be7ff098dca7db6d587d0c76d37723611
PHP
rwincewicz/php_listeners
/Derivatives.php
UTF-8
16,058
2.625
3
[ "Apache-2.0" ]
permissive
<?php /** * Class to create derivatives and ingets them into Fedora * * @author Richard Wincewicz */ include_once 'PREMIS.php'; class Derivative { function __construct($fedora_object, $incoming_dsid, $extension = NULL, $log, $created_datastream) { include_once 'message.php'; include_once 'fedoraConnec...
true
66159e05c41a2fdcef24d4476d761b0ed38df260
PHP
axmedbek/userify_api
/src/Repository/Impl/UserRepositoryImpl.php
UTF-8
335
2.6875
3
[]
no_license
<?php namespace Src\Repository\Impl; use Src\Entity\UserEntity; interface UserRepositoryImpl { public function fetchAllUsers(int $pagination = 10): array; public function createUser(UserEntity $user): void; public function updateUser(int $id, UserEntity $user): void; public function deleteUser(in...
true
d1e7a8f9bf6afc6a130b5169dc43511218ca8774
PHP
Subsession/Serializers-JSON
/src/Json.php
UTF-8
676
2.515625
3
[ "MIT" ]
permissive
<?php /** * PHP Version 7 * * LICENSE: * See the LICENSE file that was provided with the software. * * Copyright (c) 2019 - present Subsession * * @author Cristian Moraru <cristian@subsession.org> */ namespace Subsession\Serializers\Json; use Subsession\Serializers\Json\Adapters\{ NativeAdapter, }; /**...
true
85ca80158fc3304b87f847d9e11ff44fb78a0ee3
PHP
TyumenBonaventura/Mr.ProPr
/lab4/SaveResult.php
UTF-8
474
2.765625
3
[]
no_license
<?php function SaveJson($responseData) { $filename='lab_4.json'; $url=$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; $answer=array(); $answer[]=array( 'url' => $url, 'response' => $responseData, 'method' => $_SERVER['REQUEST_METHOD'],); $jsonResponse = json_encode($answer, JSON_UNESCAPED_UNICODE |...
true
efcf715dfeed5dbeef08713fa43f081d3934e91c
PHP
huuba1122/lesson-12-md2
/selection-sort.php
UTF-8
573
3.765625
4
[]
no_license
<?php /** swap-position */ function swapPosition($arr, $left, $right){ $temp = $arr[$right]; $arr[$right] = $arr[$left]; $arr[$left] = $temp; return $arr; } /** selection sort */ function selectionSort($arr){ for ($i = 0; $i < count($arr); $i++){ $min = $i; for ($j = $i + 1;...
true
2ecef24316bd115f26b632c688cb6c97e06334d4
PHP
djinorm/djin
/tests/Model/ModelTest.php
UTF-8
1,613
2.53125
3
[ "BSD-3-Clause" ]
permissive
<?php /** * @author Timur Kasumov (aka XAKEPEHOK) * Datetime: 20.06.2017 20:02 */ namespace DjinORM\Djin\Model; use DjinORM\Djin\Id\Id; use DjinORM\Djin\Mock\TestModel; use PHPUnit\Framework\TestCase; class ModelTest extends TestCase { public function testEmptyModelConstruct() { $model = new Tes...
true
54661f70b441027824a70614272790908cc20b20
PHP
F-lorian/android-project
/server/functions.php
UTF-8
35,692
2.546875
3
[]
no_license
<?php require_once('notification.php'); define("SUCCESS", "success"); define("ERROR", "error"); define("DENIED", "denied"); /*function sendNotification($registrationIds, $message){ $regIDs = null; if($registrationIds == null || count($registrationIds) == 0){ $regIDs = getAllUsersGCMID(); if($...
true
73263b1ca3dfcb5ce0b2b8ca4f8fcff2496e14eb
PHP
AlexanderVasiliev23/codeigniterUrlShortener
/application/controllers/AddShortLinkController.php
UTF-8
1,515
2.84375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class AddShortLinkController extends CI_Controller { /** * AddShortLinkController constructor. */ public function __construct() { parent::__construct(); $this->load->model('ShortLinkModel'); } /** ...
true
93e752773567bdd0e3fd6c4b4a653b6e855b4623
PHP
LucasDavion/AppSlamOrauxV2
/admin_selection_periode_oraux.php
UTF-8
9,956
2.765625
3
[]
no_license
<?php include "assets_haut_admin.php"; ?> <?php // connaître toutes les dates entre deux dates function getDatesBetween($debut, $fin){ if($debut>$fin){ return false; } // définir la date de début et date de fin $debDate=strtotime($debut); $finDate=strtotime($fin); ...
true
410bc6107583f62ff9360a368d17dcde699f97d9
PHP
alanwess/botfalesobretudo
/setSearchNews.php
UTF-8
1,753
2.890625
3
[]
no_license
<?php include("class/class_DomDocumentParser.php"); include("class/class_SearchNews.php"); $url = "https://trends24.in/brazil/"; $apikey = 'c58e9513efdgtfdgfdgg13c324f32fdd4'; //'8fa76b2a8sdasdasfsdfcfc1e129dac4'; function setSearchNews($apikey, $query){ $searchNews = new searchNews(); $result_ok = $sea...
true
b9315ea9b4a2ce97f6dac54f21a4d51d50a05a47
PHP
gabix/vidiomas
/proc/p_registro.php
UTF-8
2,364
2.59375
3
[]
no_license
<?php require_once '..' . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'init.php'; Debuguie::AddMsg("p_registro", "", "fInit"); $err = true; if (isset($_POST['inp_apodo']) && isset($_POST['inp_r_email'])) { $apodo = strip_tags($_POST['inp_apodo']); $email = strip_tags($_POST['inp_r_email']); D...
true
b6a3acd3656496de7e9f841caad80451f153da76
PHP
computerundsound/curserver
/src/Service/Config/SystemConfig.php
UTF-8
2,573
2.671875
3
[]
no_license
<?php declare(strict_types=1); namespace App\Service\Config; use App\Kernel; class SystemConfig { protected string $xamppDir; protected string $hostFilePath; protected string $mysqlFileUrlFromRoot; protected string $vhostRepositoryFromAppRoot; protected string $vhostDir; protected string $st...
true
bdb2ff713531b0ef593fcef115f16f556d3ecc8a
PHP
nnamnguyen/dotb_ims_new
/custom/clients/base/api/Ucm6202.php
UTF-8
2,420
2.625
3
[]
no_license
<?php class Ucm6202 { /* * Host name or IP of PBX */ private $host; /* * API port. Default 8443 */ private $port; /* * User name for access to API. Default 'cdrapi' */ private $user; /* * User password for access to API. Default 'cdrapi123' */ priv...
true
f8fc8429535e9321a5ab060cb411ea76b5880db5
PHP
adeline64/exercice
/Rhuma_Sug/code/php/class/ManagerLivraison.class.php
UTF-8
2,836
3.046875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Adeline * Date: 23/02/2019 * Time: 09:45 */ class ManagerLivraison extends Manager{ public function construct($mode='prod') { parent::__construct( $mode ); } public function read($id){ echo '<br>[debug]Dans "'.__FUNCTION__.'" [/debug]'; $req = $this->db->prepare...
true
1aa316ae9742a003a89c59793b77722c9e5d0c65
PHP
challenger2k/challenger2k.github.io
/showloc.php
UTF-8
2,233
2.59375
3
[]
no_license
<?php $food = empty($_GET['f']) ? '' : $_GET['f']; $url = './db/data.json'; $str = file_get_contents($url); // decode json $data = json_decode($str, false); $resinfo = $data->restaurant; $location = array(); foreach ($resinfo as $info) { foreach ($info->food as $f){ if(strtolower($f->name) == $food) { ...
true
6076882474145457ba3164dfb008ab5e3a466806
PHP
jordi-adame/platform
/src/Oro/Bundle/ApiBundle/Request/ExceptionTextExtractor.php
UTF-8
2,623
2.53125
3
[ "MIT" ]
permissive
<?php namespace Oro\Bundle\ApiBundle\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpKernel\Exception\HttpExceptionInterface; use Symfony\Component\Security\Core\Exception\AccessDeniedException; use Oro\Bundle\ApiBundle\Util\ExceptionUtil; use Oro\Bundle\ApiBundle\Util\ValueNormaliz...
true
d36b38a51f69c93d454ff9b174bcf19772fc66c0
PHP
K0rINf/prs3
/api/src/Parser/Modifier/Condition/Node/ConditionInterface.php
UTF-8
819
2.875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace App\Parser\Modifier\Condition\Node; /** * @api */ interface ConditionInterface extends NodeInterface { /** * Retrieve the value key identifier to compare * * @return string */ public function getValueIdentifier(): string; /** * Set the ...
true
80f9a0cfc0cc420907e0d7dadc014bcf59df0301
PHP
sahdoio/doctor
/database/migrations/2018_07_07_195306_create_schedules_table.php
UTF-8
1,267
2.578125
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateSchedulesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('schedules...
true
47857f48c88c37223733cd30eef610cf27261dbe
PHP
pooza/carrot
/lib/carrot/service/nicovideo/BSNicovideoLiveService.class.php
UTF-8
1,585
2.796875
3
[]
no_license
<?php /** * @package jp.co.b-shock.carrot * @subpackage service.nicovideo */ /** * YouTubeクライアント * * @author 小石達也 <tkoishi@b-shock.co.jp> */ class BSNicovideoLiveService extends BSCurlHTTP { private $useragent; const DEFAULT_HOST = 'live.nicovideo.jp'; /** * @access public * @param BSHost $host ホスト * ...
true
8aee23405d4e0d548118d23274a0bb71fc2fa8b3
PHP
muhAlantabli/yii2-practical
/models/User.php
UTF-8
4,274
2.5625
3
[]
no_license
<?php namespace app\models; use Yii; use yii\base\NotSupportedException; use yii\web\IdentityInterface; /** * This is the model class for table "user". * * @property int $id * @property string $first_name * @property string $last_name * @property string $username * @property string $email * @property string ...
true
5c8fb2fc4c8473c7aca89aa9ce36ace81ba0c185
PHP
anaesross/tarefas
/AulaPOO-01/tarefas/classes/index.php
UTF-8
534
2.828125
3
[]
no_license
<?php require_once 'Cliente.php'; $cliente = new Cliente('Anaê'); echo $cliente->getNome(); echo '<br>'; echo 'Saldo Corrente: ' . $cliente->getCorrente()->consultar(); echo '<br>'; $cliente->getCorrente()->depositar(5000); echo 'Saldo Corrente: ' . $cliente->getCorrente()->consultar(); echo '<br>'; $cliente->getCo...
true
ad7fa7065e75730cc61a48eac26e67028f51abb0
PHP
2Ju0/Library-Management-System
/check.php
UTF-8
6,440
2.515625
3
[]
no_license
<?php /* 자동 반납 처리 및 예약한 도서에 대해 대출 가능 이메일을 받은 사용자가 다음 날까지 도서를 반납하지 않은 경우 예약 취소 처리 이때, 모든 경우에 이메일 전송 */ // CHECK에 필요한 파일 include include "config.php"; include "mail.php"; include "process.php"; /* 1. 반납 기일이 도래한 도서에 대하여 자동 반납 처리 */ //EBOOK 테이블에서 현재 대출 중인 도서에 대한 정보를 조회하는 쿼리 $stmt = $conn -> prepare("SELECT ISBN, DATEDUE,...
true
7554c1f241effa77f67a0b0a0faf3542ad5d4b2c
PHP
olexiyk/maker-addons
/src/Actions/FacebookMessage.php
UTF-8
967
2.8125
3
[]
no_license
<?php namespace Olek\Ifttt\Actions; class FacebookMessage implements ActionRunnerInterface { /** @var \GuzzleHttp\Client */ private $httpClient; /** * FacebookMessage constructor. * * @param \GuzzleHttp\Client $httpClient */ public function __construct(\GuzzleHttp\Client $httpClien...
true
2f0aa7442efe60365d743946808390ead7168fdd
PHP
nurdinuzakov/scrapping
/app/Helpers/helpers.php
UTF-8
2,966
2.640625
3
[ "MIT" ]
permissive
<?php if (!function_exists('getURL')) { function getURL($url,$fields=null,$method=null,$file=null){ // author = Ighor Toth <igtoth@gmail.com> // required: // url = include http or https // optionals: // fields = must be array (e.g.: 'field1' => $field1, ...)...
true
1a72c82006d8aa18b7fa4e14a0e2d3b0881681d6
PHP
RichardManques/php_intro
/controllers/controladorsaludar.php
UTF-8
852
3.359375
3
[]
no_license
<?php namespace controllers; class Controlador{ public $nombre; public $edad; public function __construct() { //rescatar los nombre del formulario y asociarlos a las variables de arriba $this->nombre = $_POST['nombre']; $this->edad = $_POST['edad']; } public function s...
true
6424faeeef85fb91b192aa922f922b93bfac12f1
PHP
UpStreamPay/payment-plugin-magento-public
/Core/Api/Data/PaymentMethodInterface.php
UTF-8
2,340
2.625
3
[ "BSD-3-Clause" ]
permissive
<?php /** * UpStream Pay * * Copyright (c) 2023 UpStream Pay. * This file is open source and available under the BSD 3 license. * See the LICENSE file for more info. * * Author: Claranet France <info@fr.clara.net> */ namespace UpStreamPay\Core\Api\Data; use Magento\Framework\Api\ExtensibleDataInterface; /** ...
true
1c7bbcd837b3a4c136b5db4c6687d6dd2923633e
PHP
UNAH-IS/IS410-I2018-IUnidad
/UnidadII/9gag/class/class-usuario.php
UTF-8
1,286
3.578125
4
[]
no_license
<?php class Usuario{ private $codigoUsuario; private $nombreUsuario; private $genero; private $edad; private $correo; public static $atributoEstatico; public function __construct($codigoUsuario,$nombreUsuario,$genero,$edad,$correo){ $this->codigoUsuario=$codigoUsuario; $this->nombreUsuario=$nombr...
true
81f6170b1c6757b849809fd21adb16c5318b31f6
PHP
CraigChilds94/Steel
/FileReader.php
UTF-8
1,114
3.671875
4
[]
no_license
<?php /** * Handles file inclusion and iteration * * @author craig */ class FileReader { public $file; private $_dir, $_filename; /** * Construct a new file reader object * @param {String} $dir Directory of file * @param {String} $filename The name of the file */ public...
true
82c4492257cf4495033a2823ad992f9762da8ba8
PHP
t-initi/CI
/function.inc.php
UTF-8
2,977
2.734375
3
[]
no_license
<?php //Function to connect to the database function connect_to_db($serveur,$utilisateur,$mdp,$bd){ $co = new mysqli($serveur,$utilisateur,$mdp,$bd); if($co->connect_error){ die("Erreur de connexion !" ); } return $co; } //Function for a direct connection to the database function connect_me(){ $serveur=...
true
899a3f7b3361687393d77743c3e7828fcd3f68eb
PHP
yorio-dev/PHP-Dasar
/pertemuan7/latihan1.php
UTF-8
933
2.8125
3
[]
no_license
<?php // $_GET $mahasiswa = [ [ "nama" => "You Rio", "nrp" => "0987465390", "email" => "yorio.co@gmail.com", "jurusan" => "Teknik Informatika", "gambar" => "yorioo.jpg" ], [ "nama" => "Yoyo Rio", "nrp" => "098742580", "email" => "yoyorio.c...
true
391c95ea3accfda17ac79aca40b041a9c7eb5bd3
PHP
sebastianfeldmann/git
/tests/git/Command/Status/Porcelain/PathListTest.php
UTF-8
1,803
2.53125
3
[ "MIT" ]
permissive
<?php /** * This file is part of SebastianFeldmann\Git. * * (c) Sebastian Feldmann <sf@sebastian-feldmann.info> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace SebastianFeldmann\Git\Command\Status\Porcelain; use PHPUni...
true
9f351b8e881f3125774f9ebe45b7b55b26412a90
PHP
jshyrax/alextest
/alexapp/src/routes.php
UTF-8
2,733
2.84375
3
[]
no_license
<?php // Routes $app->get('/', function ($request, $response, $args) { // Sample log message // $this->logger->info("Slim-Skeleton '/' route"); // Render index view return $this->renderer->render($response, 'index.phtml', $args); }); //book routes $app->get('/books', function($req, $res, $args){ ...
true
9e43657c025b2d86f76fe33f9cb3417318922351
PHP
eok8177/forms
/app/Group.php
UTF-8
1,431
2.875
3
[]
no_license
<?php /** * Description: * Model (based on MVC architecture) for group definitions * * Copyright: Rural Workforce Agency, Victoria (RWAV) * Contact email: rwavsupport@rwav.com.au * * Authors: * Sergey Markov | SergeyM@rwav.com.au * * List of methods: * - empty() | is this group used for any form or user? * - managers...
true
2ae31e751766f1ce36200084b9dabe100942e80d
PHP
Axeman77/PHP-2
/interfaces/IDbModel.php
UTF-8
236
2.515625
3
[]
no_license
<?php namespace app\interfaces; interface IDbModel { public static function getOne($id); public static function getAll(); public static function getTableName(); public function delete(); public function save(); }
true
8c0c714d15770dd8cffe7665c89a123382fb58fe
PHP
kateryna93/homeworks
/arrays_loops_tasks/2.php
UTF-8
296
3.84375
4
[]
no_license
<?php $numbers = [1, 20, 15, 17, 24, 35]; $lastArrayElement = $numbers[count($numbers)-1]; $result = 0; foreach ($numbers as $number) { if ($number == $lastArrayElement) { echo $number . ' = '; } else { echo $number . ' + '; } $result += $number; } echo $result;
true
89fcc8f79caac7c98174e67887d89333aaba7ecc
PHP
nobunobuta/xoopscube_NBFrame
/xoops_trust_path/libs/NBFrame/class/NBFramePageNav.class.php
UTF-8
2,854
2.90625
3
[]
no_license
<?php class NBFramePageNav { /**#@+ * @access private */ var $mTotal; var $mPerpage; var $mCurrent; var $mName; var $mBaseUrl; /**#@-*/ /** * Constructor * * @param int $total_items Total number of items * @param int $items_...
true
7fe5deb7887adad1de65c8d468ab9d199d3c81da
PHP
skcyber00/slim-sandwich
/src/control/middleware/AuthController.php
UTF-8
2,862
2.671875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: yann * Date: 11/01/18 * Time: 10:31 */ namespace lbs\control\middleware; use Firebase\JWT\JWT; use Illuminate\Database\Eloquent\ModelNotFoundException; use lbs\model\Card; use \Psr\Http\Message\ServerRequestInterface as Request; use \Psr\Http\Message\ResponseInterface as R...
true
0e03347f74709e0a16f8a1c3394a69124aea39db
PHP
rohit-j-17/ecommerce
/api/user/UserDatabase.php
UTF-8
6,292
2.59375
3
[]
no_license
<?php include_once '../../config/Database.php'; include_once '../../config/Host.php'; include_once '../../utility/DateTimeHelper.php'; include_once '../../utility/OtpUtility.php'; include_once '../../enum/EUserRole.php'; include_once '../../enum/EUserVerification.php'; include_once '../../email/EmailSender.php'; includ...
true
6e30182748bf0ca1c5f75505bb9812266515ddbf
PHP
ponlawat-w/ng-tutorial-toh
/server/add.php
UTF-8
1,276
2.84375
3
[]
no_license
<?php header('Access-Control-Allow-Origin: *'); header('Access-Control-Allow-Methods: POST'); header('Access-Control-Allow-Headers: Content-Type'); if ($_SERVER['REQUEST_METHOD'] != 'POST') { exit; } $input = file_get_contents('php://input'); if (!$input) { echo 'NO DATA SENT'; http_response_code(500); ...
true