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
f47f20678d3eb80fde6b950e3d2b818c892f9017
PHP
luciegarciaweb/Minichat
/minichat_post.php
UTF-8
797
2.828125
3
[]
no_license
<?php session_start(); ?> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> </head> <body> <p> <?php $bdd = new PDO('mysql:host=localhost;dbname=minichat', 'root', '', array(PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION)); //récu...
true
f3c33d52f852ed4e046aab0a0c45be2fb3da26cc
PHP
dim2k2006/form_oop
/inc/form.validate.class.php
UTF-8
873
2.9375
3
[]
no_license
<?php Class FormValidate { public $outPut = array (); public $error = array (); /** *Проверяет поле по шаблону *@param string $name *@param string $rule *@param string $errorMsg */ public function validField ($name, $rule = '', $errorMsg = 'Ошибка') { if ($rule != '') { $nameRegExp = preg_match($rule, $...
true
f63aeaa257f47342e2006fb77768baf15ae3e951
PHP
azjezz/open-api-generator
/src/Model/Path/Input/SimpleInput.php
UTF-8
887
2.734375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Speicher210\OpenApiGenerator\Model\Path\Input; use Speicher210\OpenApiGenerator\Model\Path\IOField; use Speicher210\OpenApiGenerator\Model\Type; /** * @todo rename class, give it a better name */ class SimpleInput extends BaseInput { /** @var IOField[] */ private a...
true
06b12e8b501b7ef0fe86e5d2b96c2020ac37806a
PHP
IbrahemAyyed/FinalEvaluation
/PHP/3.session_cookies/3.2-session/session1.php
UTF-8
817
2.796875
3
[]
no_license
<?php session_start(); #the function session_start() allows us to initialize a session. If no file created before, it will do it automatically # Use of the superglobal $_SESSION $_SESSION['firstname'] = 'Miroslav'; $_SESSION['lastname'] = 'Nedeljkovic'; /* The session is a link between a temporary file saved on a s...
true
4e724271463334978918fca66d4037f88d7f1db4
PHP
freezpl/php_home1
/app/Controllers/HomesController.php
UTF-8
1,083
2.78125
3
[]
no_license
<?php namespace App\Controllers; use \App\Core\Controller; use \App\Core\View; use \App\Core\Services\CalendarService; use \DateTime; class HomesController extends Controller { public function index($id = null) : View { return new View('homes/1/part1'); } public function cal...
true
619948f98d61ec42130ead6d87bc8c7b8a6fc2c2
PHP
sagar-gavhane/smart-admin
/application/models/Job_model.php
UTF-8
3,296
2.78125
3
[]
no_license
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Job_model extends CI_Model { function insert_job($data = '') { if($data !== ''){ $query = $this->db->insert('jobs_tb', $data); return $query; } } ...
true
3bf3434039109fab662d2ba3860e8f2649280dd6
PHP
thiennguyen93/locknlock
/model/price.model.php
UTF-8
311
2.796875
3
[]
no_license
<?php class default_model { private $db; function __construct() { $this->db = new database(); } public function getPostById($id) { $sql = 'SELECT * FROM posts A WHERE A.id=' . $id . ' LIMIT 1'; $this->db->execute($sql); return $this->db->getData(); } }
true
25ef4f497e0314afa785bcedb16b1b00a86bc64e
PHP
qiaoyungang/baiyio_course
/application/admin/controller/Team.php
UTF-8
3,337
2.578125
3
[ "Apache-2.0" ]
permissive
<?php namespace app\admin\controller; use app\admin\model\Team as TeamModel; use think\Db; /** * 栏目管理 * Class Category * @package app\admin\controller */ class Team extends AdminBase { protected $team_model; protected function _initialize() { parent::_initialize(); $this->team_model ...
true
bee612b4509778a9177dd492f2c83df4a7540df2
PHP
samhol/foobar
/samiholck/classes/Contact/Mailer.php
UTF-8
2,887
2.859375
3
[ "MIT" ]
permissive
<?php /** * SPHPlayground Framework (http://playgound.samiholck.com/) * * @link https://github.com/samhol/SPHP-framework for the source repository * @copyright Copyright (c) 2007-2019 Sami Holck <sami.holck@gmail.com> * @license https://opensource.org/licenses/MIT The MIT License */ namespace Sphp\Samiho...
true
b6a2ba6ba912e5c94e7e694fa6865cad6a28f919
PHP
zeggriim2/APILOL
/src/LolApi/API/ItemApi.php
UTF-8
677
2.765625
3
[]
no_license
<?php namespace Zeggriim\LolApi\API; class ItemApi extends BaseApi { const API_ITEMS_URL = "http://ddragon.leagueoflegends.com/cdn/{version}/data/{lang}/item.json"; public function getAllItems() { $params = [ "version" => $this->apiClient->getVersion(), "lang" =>...
true
64d88ec61d6692542024b224641a1abae3b02c75
PHP
isiasromero/UDC
/app/Models/User.php
UTF-8
4,336
2.53125
3
[]
no_license
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; use Illuminate\Auth\UserInterface; use Illuminate\Auth\Reminders\RemindableInterface; use Laracasts\Presenter\PresentableTrait; class User extends Model implements UserInterface, RemindableInterface { use PresentableTrait; protected $prese...
true
784876f383a965dfb6bba34fb9eb81699a1a9970
PHP
DasLampe/impeesa2
/core/controller/resource.controller.php
UTF-8
2,523
2.796875
3
[]
no_license
<?php // +----------------------------------------------------------------------+ // | Copyright (c) 2010 DasLampe <andre@lano-crew.org> | // | Encoding: UTF-8 | // +----------------------------------------------------------------------+ class resourceController { public function __construct(Array $file) { $path2f...
true
5808e5475ff2129f1337430994f034a542fef89b
PHP
mjburgess/IncludeTree
/IncludeTree/Parser/RegexStrategy.php
UTF-8
1,353
3.09375
3
[]
no_license
<?php /** * RegexStrategy is a functor (invokable object) for Path\Walker * Produces an array of matches filtered by a reduction function passed to the constructor * * @package IncludeTree * @subpackage Parser * @author Michael Burgess <michael@mjburgess.co.uk> */ namespace IncludeTree\Parser; use Closure; us...
true
fca87c07d949d536b6dab952c0b9b6cd5b0655c8
PHP
alex-patterson-webdev/domino-game
/src/DominoGameFactory.php
UTF-8
1,573
3.0625
3
[]
no_license
<?php declare(strict_types=1); namespace Arp\DominoGame; use Arp\DominoGame\Exception\DominoGameException; use Arp\DominoGame\Value\Player; use Arp\DominoGame\Value\PlayerCollection; use Laminas\Log\Formatter\Simple; use Laminas\Log\Logger; use Laminas\Log\PsrLoggerAdapter; use Laminas\Log\Writer\Stream; use Psr\Log...
true
5d9aa2a910249864658e43fb225d75720047a442
PHP
mtblueocean/nexgen_config
/nexgen_config/app/controllers/ProductController.php
UTF-8
3,652
2.78125
3
[ "MIT" ]
permissive
<?php class ProductController extends \BaseController { /** * Display a listing of the resource. * * @return Response */ public function index() { $products = Product::all(); foreach ($products as $key => $value) { $product = $value; $product['linked_product'] = unserialize($value['linked_product...
true
7ca5ece313fb1b8726314ca371a910d0b795b2c1
PHP
nicosomb/wallabag-carbondate-bundle
/Helper/CarbonDate.php
UTF-8
1,000
2.78125
3
[ "MIT" ]
permissive
<?php namespace Nicosomb\WallabagCarbondateBundle\Helper; use Psr\Log\LoggerInterface; use GuzzleHttp\Client; class CarbonDate { private $server; private $client; private $logger; public function __construct($server, Client $client, LoggerInterface $logger) { $this->server = $server; ...
true
1b0edf2dca2cdccbbbf47a10052d09a89062c988
PHP
nayanjyotionline/wallet
/application/models/Users_model.php
UTF-8
22,125
2.671875
3
[ "MIT" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Users_model extends CI_Model { /** * @vars */ private $_db; /** * Constructor */ function __construct() { parent::__construct(); // define primary table $this->_db = 'users'; ...
true
fe5e2560c7af9294937ed6ea1cff813e2574c236
PHP
Rodrigmen/proyectoTema3
/core/misFunciones.php
UTF-8
1,318
3.375
3
[]
no_license
<?php require_once '201020libreriaValidacion.php'; function comprobarColorHexadecimal($cadena, $obligatorio = 0){ $patron_texto = "((#)[0-9a-fA-F]{6})"; $mensajeError = null; //Si es olbigatorio se comprueba si está vacío, si no es obligatorio, no es necesario if ($ob...
true
637c2429946f9def7873162e65d9c6bb934d2696
PHP
WebDmitryPetrov/IRSIORT
/www/sdt/models/Message/Message.php
UTF-8
1,476
2.65625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: m.kulebyakin * Date: 19.03.2015 * Time: 18:30 */ class Message extends Model { protected $_table = 'ms_message'; public $id; public $thread_id; public $sender_key; public $body; public $created_at; public function setFields() { $...
true
9b6ef10f7522e2c4d5acadff3eed8bd7750218f0
PHP
Volmak/PHP-excercises
/PostOffice/People/Names.php
UTF-8
1,635
2.875
3
[]
no_license
<?php namespace People; class Names { public static $arrayOfFirstNames = ['Иван', 'Петкан', 'Георги', 'Петър', 'Пламен', 'Атанас', 'Павел', 'Исмаил', 'Кирил', 'Методи', 'Симеон', 'Борис', 'Асен', 'Явор', 'Ясен', 'Крум', 'Кубрат', 'Аспарух','Александър', 'Томи', 'Генади', 'Дончо', 'Добри', 'Тервел', 'Христо', '...
true
f28267ab8706a7518758b65b25cafd1f5f950072
PHP
khanhert/Nhom2SangT4ChieuT7
/bookstore/app/Http/Controllers/API/SachController.php
UTF-8
1,576
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\API; use App\Http\Controllers\Controller; use App\Models\Sach; use Illuminate\Http\Request; class SachController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { ...
true
99f46e1ac21682f5eb48e030a2148436d9a50307
PHP
clemferreol/supinternet_exam0429
/Exo01/Model/Allumette.php
UTF-8
255
3.140625
3
[]
no_license
<?php class Allumette{ private $number; public function __construct($number){ $this->number = []; $number = range(1,13); $this->number = $number; } public function getNumber(){ return $this->number; } }
true
f7abe098fd50df2d17ba4ef139b0a15c43649448
PHP
deawx/WebUIMonitor
/vendor/php-websocket/server/lib/WebSocket/Application/StatusApplication.php
UTF-8
1,013
2.984375
3
[ "MIT" ]
permissive
<?php /** * Displays server-status. Connected clients, e.g. * * @author Simon Samtleben <web@lemmingzshadow.net> */ namespace WebSocket\Application; class StatusApplication extends Application { private $clients = array(); public function onConnect($client) { $this->clients[] = $client; ...
true
4a7b84f3d0ce9eb4d2aa1e4b5e6f1230f88c0902
PHP
camohub/tatrytec.eu
/app/Http/Controllers/User/LoginController.php
UTF-8
1,308
2.578125
3
[]
no_license
<?php namespace App\Http\Controllers\User; use App\Http\Controllers\BaseController; use App\Models\User; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; class LoginController extends BaseController { /** * Handle an authentication attempt. */ public function authenticate(Request $request) ...
true
9d900b2e99033a4ecb0e3227005a2c87fb104fdb
PHP
nzy521/8.23
/mvc/application/admin/index.class.php
UTF-8
1,974
2.53125
3
[]
no_license
<?php if (!defined("MVC")) { die("非法入侵"); } use \libs\smarty; use \libs\db; class index { function int() { // $smarty = new Smarty(); // $smarty->setTemplateDir(TPL_PATH); // $smarty->setCompileDir(COMPILE_PATH); // $smarty->setCacheDir(CACHE_PATH); // $smarty->display("...
true
7fc37d4d621f71ca70c98a1ff999481998b66082
PHP
molimood/praktikum_web
/110533430588/praktikum2/__.php/php_html_switch1.php
UTF-8
479
3.671875
4
[]
no_license
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en":> <head> <title>seleksi switch</title> </head> <body> <?php $i = 0; if($i == 0) { echo "i equals 0"; } elseif($i==1){ echo 'i equals 1'; }elseif($i==2) { echo 'i equals 2'; } //equivalenm d...
true
3be42b41e42f49fe47b57f929128ea0902caba3e
PHP
transitiv/ninja
/application/models/contact.php
UTF-8
1,280
2.71875
3
[ "BSD-3-Clause" ]
permissive
<?php defined('SYSPATH') OR die('No direct access allowed.'); /** * Handle contact data */ class Contact_Model extends Model { /** * Fetch contact information */ public function get_contact($id = false, $username=false) { $sql = false; $db = Database::instance(); if (empty($id) && empty($username)) { $...
true
4b064048935fc89fd34bdc9a5824b2f0231bded9
PHP
flavioribeirojr/slim-boilerplate
/src/Support/Contracts/CRouter.php
UTF-8
379
2.578125
3
[]
no_license
<?php namespace Support\Contracts; interface CRouter { public function get(string $path, $handler); public function post(string $path, $handler); public function put(string $path, $handler); public function delete(string $path, $handler); public function patch(string $path, $handler); ...
true
eac1571f990057b5d2c9ca744147f126270ae3ef
PHP
caiminfang/Learning
/test/1332. 删除回文子序列/index.php
UTF-8
1,718
3.765625
4
[]
no_license
<?php /** 给你一个字符串 s,它仅由字母 'a' 和 'b' 组成。每一次删除操作都可以从 s 中删除一个回文 子序列。 返回删除给定字符串中所有字符(字符串为空)的最小删除次数。 「子序列」定义:如果一个字符串可以通过删除原字符串某些字符而不改变原字符顺序得到,那么这个字符串就是原字符串的一个子序列。 「回文」定义:如果一个字符串向后和向前读是一致的,那么这个字符串就是一个回文。   示例 1: 输入:s = "ababa" 输出:1 解释:字符串本身就是回文序列,只需要删除一次。 示例 2: 输入:s = "abb" 输出:2 解释:"abb" -> "bb" -> "". 先删除回文子序列 "a",然后...
true
1b5bcf15bf2bb496a1be6347f59a46034eb9dfd0
PHP
JhoanSt/TiendaClarita
/controladores/finanzas.controlador.php
UTF-8
6,691
2.609375
3
[]
no_license
<?php class ControladorFinanzas { /*============================================= CREAR Egreso =============================================*/ public static function ctrCrearFinanzas() { if (isset($_POST["nuevoEgreso"])) { if (preg_match('/^[a-zA-Z0-9ñÑáéíóúÁÉÍÓÚ ]+$/', $_PO...
true
9f0913f1840748b12a60d0e9894718bc2e9b3d0e
PHP
tico88612/init.engineer
/app/Services/Socials/Cards/CardsContract.php
UTF-8
281
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Services\Socials\Cards; use App\Models\Auth\User; use App\Models\Social\Cards; /** * Interface CardsContract. */ interface CardsContract { public function publish(Cards $cards); public function destory(User $user, Cards $cards, array $options); }
true
92cc62ada6c3195a6c41112f9e0bb9b6454fbe78
PHP
Pattedejaguar/php-partie-3
/ex4p3/index.php
UTF-8
1,398
2.515625
3
[]
no_license
<!DOCTYPE html> <html lang="fr"> <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"> <link rel="stylesheet" href="assets/css/bootstrap.min.css"> <link rel="stylesheet" href="assets/css/style.css"> <script ...
true
456133ab8c2aa288246cdaab79d126885443f34c
PHP
PureLuck3/VolleyballTeamProj
/PFI_Web/DOMAINLOGIC/album.dom.php
UTF-8
400
2.765625
3
[]
no_license
<?php include "../CLASSES/ALBUM/album.php"; function display_Albums() { $array = array(); $albums = ALBUM::get_all_album_by_userID($_SESSION["userID"]); foreach($albums as $a) { array_push($array, $a); } foreach($array as $elems) ...
true
b73d6c45fd4892aa93232d286725b199278743dd
PHP
delgont/auth
/src/Http/Middleware/RoleMiddleware.php
UTF-8
874
2.75
3
[]
no_license
<?php namespace Delgont\Auth\Http\Middleware; use Closure; use Illuminate\Support\Facades\Auth; use Delgont\Auth\Exceptions\UnauthorizedException; class RoleMiddleware { public function handle($request, Closure $next, $role, $guard = null) { $authGuard = Auth::guard($guard); if ($authGuard-...
true
fb29483cc216551924bd40517992fcef6e2793a2
PHP
thollar13/testing
/php/1.2.2/searchTeams.php
UTF-8
4,061
2.625
3
[]
no_license
<?php ob_start(); $host="192.168.2.7"; // Host name $username="TallyRecWebUser"; // mysqli username $password="webt00l"; // mysqli password $db_name="tallyrec"; // Database name $tbl_name="searchteams"; // Table name // Connect to server and select databse. mysqli_connect("$host", "$username", "$pass...
true
448d5a4449305a0c44f4cde241d499808f954c87
PHP
alberto56/api_contract
/examples/plurals/common/src/EnvSettings.php
UTF-8
1,353
2.96875
3
[]
no_license
<?php /** * @file * EnvEnvSettings class code. */ /** * Interface to fetch settings stored in a settings file for a project. */ class EnvSettings { /** * Fetches one setting for a project * * @param $project * The project name, for example 'frontend', or 'backend' * * @param $param * Th...
true
8779cf21974ccc62ed5ae8db875b3d499858f031
PHP
hinathan/bplangen
/lib/Buzz.php
UTF-8
654
3.4375
3
[]
no_license
<?php class Buzz { public function __construct($n,$v,$a) { $this->nouns = explode("\n",trim(file_get_contents($n))); $this->verbs = explode("\n",trim(file_get_contents($v))); $this->adjectives = explode("\n",trim(file_get_contents($a))); } public function pick($set) { return $set[rand(0,count($set)-1)]; } ...
true
d1731569ec66e561cedf64b55fb0555677c012af
PHP
sultonmuhajir/bazovy
/index.php
UTF-8
2,913
2.796875
3
[]
no_license
<?php session_start(); require "functions.php"; if(!isset($_SESSION["login"])) { header("Location: login.php"); exit; } $limit = 2; $result = $conn -> query("SELECT * FROM mahasiswa"); $data = $result -> num_rows; $page = ceil($data / $limit); $aktif = (isset($_GET["p"]...
true
bc58924221392a68253fc341b8480150859608a5
PHP
samhol/_RVS_
/sphp/php/Sphp/I18n/TranslatorInterface.php
UTF-8
2,327
3.109375
3
[]
no_license
<?php /** * TranslatorInterface.php (UTF-8) * Copyright (c) 2016 Sami Holck <sami.holck@gmail.com> */ namespace Sphp\I18n; /** * Defines properties for natural language translator * * * @author Sami Holck <sami.holck@gmail.com> * @since 2016-05-12 * @license http://www.gnu.org/licenses/gpl-3.0.html GPLv3...
true
fcce32cf266ce6ddfba60f0ddb16611fd1206ea2
PHP
zeroabe/atol-kkm-client
/src/Subscribers/DeserializeEventSubscriber.php
UTF-8
1,008
2.53125
3
[]
no_license
<?php namespace KKMClient\Subscribers; use JMS\Serializer\EventDispatcher\EventSubscriberInterface; use JMS\Serializer\EventDispatcher\ObjectEvent; use JMS\Serializer\EventDispatcher\PreDeserializeEvent; class DeserializeEventSubscriber implements EventSubscriberInterface { public static function getSubscribedEv...
true
1b5870a919c985f53cb376e87ae56ebb756ad207
PHP
jeff-morrissette/subby
/app/DBTransactions/StoreTeacherHandler.php
UTF-8
843
2.625
3
[ "MIT" ]
permissive
<?php namespace App\DBTransactions; use App\User; use App\SchoolTeacher; class StoreTeacherHandler { public function execute(Array $request) { $TEACHER_ROLE_ID = 5; $new_user = new User; $new_user->name = $request['name']; $new_user->email = $request['email']; $new_user->...
true
1f2b52159426c51bb9c75a92376d30d082aed6e8
PHP
bigin/IM-UserManager
/useradmin/View.php
UTF-8
7,115
2.84375
3
[]
no_license
<?php namespace UserAdministrator; /** * Class View * @package UserAdministrator * * The View is the part of the user management script * where the HTML is generated and displayed. * */ class View { /** * @var object Processor|null */ private $processor = null; /** * @var object Temp...
true
41a7712b566ac2489b38347324703b8ebe0f103e
PHP
openpear/svn.openpear.org
/Mobile_Profile/trunk/Mobile/Profile/Softbank/Spec.php
UTF-8
4,142
2.71875
3
[]
no_license
<?php require_once 'Mobile/Profile/Softbank/Abstract.php'; require_once 'HTTP/Request2.php'; class Mobile_Profile_Softbank_Spec extends Mobile_Profile_Softbank_Abstract { protected $options = array(); public function collect() { $csv = self::_getDeviceSpecList(); $csv = mb_convert_en...
true
9246a203a7fc338918a47628ac782456567b7716
PHP
WSULib/quicksearch
/inc/login/index.php
UTF-8
3,584
2.796875
3
[]
no_license
<?php include("password_protect.php"); ?> <?php INCLUDE "meta.php"; ?> <?php //grunt work, can be before rendering... //conntection to database $hostname = "mysqlphp.grahamhukill.com"; // eg. mysql.yourdomain.com (unique) $username = "ghukill"; // the username specified when setting-up the database $password...
true
b0476ffe44b5afa52131c5da12f39767c0b5500b
PHP
atalatlae/tee
/tests/Session_002.phpt
UTF-8
230
2.5625
3
[]
no_license
--TEST-- Session_002: Test setVar() method: success --FILE-- <?php include ('model/Session.php'); $session = new Session(); $session->setVar('id', 123456); var_dump($_SESSION); ?> --EXPECT-- array(1) { ["id"]=> int(123456) }
true
c4a29d38c31c151cc09936defa3e2dc2ae659245
PHP
ondrej-bouda/ivory
/src/Ivory/Value/Date.php
UTF-8
10,722
3.125
3
[ "BSD-3-Clause" ]
permissive
<?php declare(strict_types=1); namespace Ivory\Value; use Ivory\Value\Alg\IDiscreteStepper; /** * Representation of a date according to the * {@link https://en.wikipedia.org/wiki/Proleptic_Gregorian_calendar proleptic} Gregorian calendar. * * As in PostgreSQL, there are two special dates, `-infinity` and `infinit...
true
06cd2b9405f55fceb10f37c395eeecd84c314101
PHP
tegars/LearnBasicPHPWebProgramming
/PHPDatabase/pdo/index.php
UTF-8
1,567
2.578125
3
[]
no_license
<!DOCTYPE html> <html> <head> <title>CRUD PDO</title> <link rel="stylesheet" type="text/css" href="css/bootstrap.min.css"> <script type="text/javascript" src="js/jquery.min.js"></script> <script type="text/javascript" src="js/bootstrap.min.js"></script> </head> <body> <div class="container"> <h2>Data Diri Siswa</h...
true
4de0bfdfb6a501f0d2d6a0248e57a6017e03c414
PHP
cryptobuks/prodern-leads-nova
/app/Nova/Actions/ChangeStatus.php
UTF-8
1,199
2.5625
3
[]
no_license
<?php namespace App\Nova\Actions; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Queue\InteractsWithQueue; use Illuminate\Queue\SerializesModels; use Illuminate\Support\Collection; use Laravel\Nova\Actions\Action; use Laravel\Nova\Fields\ActionFields; use Laravel\Nova\Fields\...
true
bd41093b9d4f6899c8149c5ec4aaf77cf262bbfb
PHP
aptenex/upp
/src/Calculation/ChangeoverCalculator.php
UTF-8
1,350
2.703125
3
[]
no_license
<?php namespace Aptenex\Upp\Calculation; use Aptenex\Upp\Parser\Structure\ControlItemInterface; use Aptenex\Upp\Parser\Structure\Period; use Aptenex\Upp\Parser\Structure\Rate; class ChangeoverCalculator { public function getArrivalDays(ControlItemInterface $controlItem): array { /** @var Period $con...
true
df7ac63d91c1129729c4e0649dfd241f8ae0bfbd
PHP
Alejandro3101/Innova
/pos/modelos/usuarios.modelo.php
UTF-8
6,399
2.921875
3
[]
no_license
<?php require_once "conexion.php"; class ModeloUsuarios{ /*============================================= MOSTRAR USUARIOS =============================================*/ static public function mdlMostrarUsuarios($tabla, $item, $valor){ if($item != null){ $stmt = Conexion::conectar()->pr...
true
bfabc25702b78de26893bfea3fa9f59b43e22b4a
PHP
YiddamQuiriarte/MoneyTracking
/libs/Validations.php
UTF-8
1,955
3.40625
3
[]
no_license
<?php /** * Clase para validar filtro de datos * * Colección de funciones para validar filtro de datos, rangos y valores * @author Cristian Bernal <crisbera@gmail.com> */ class Validations { /** * Método isInt * * Método que sirve para derminar si un numero es valido, opcionalmente dentro de...
true
a50c16a2cd84f7103edb891ce97d4436c247e4c7
PHP
jerome-Dh/dhyno
/tests/devs/CreateRouteXML.php
UTF-8
895
2.953125
3
[ "MIT" ]
permissive
<?php namespace Tests; //============================================================================== // // Trait de création du fichier de routes.xml pour les tests // // @date 05-08-2019 11:27 // // @author Jerome Dh // //============================================================================= Trait Crea...
true
956205dcbbd04f1109e6d6450ab3c8efd411a525
PHP
jingjunlu2001/resume_registry
/js_profiles/delete.php
UTF-8
1,572
2.890625
3
[]
no_license
<?php session_start(); if ( ! isset($_SESSION['name']) ) { die("ACCESS DENIED"); } // If the user requested logout go back to index.php if ( isset($_POST['cancel']) ) { header('Location: index.php'); return; } require_once "pdo.php"; if (isset($_REQUEST['profile_id'])) { $profile_...
true
9b16cf81b51d718e1c02c0c21f6515af78fec642
PHP
skyblue777/Yii-project
/public_html/protected/components/NetReader.php
UTF-8
6,559
2.921875
3
[]
no_license
<?php /** * @desc Class NetReader, read an URL and save to file or xml document * Hung Nguyen * */ class NetReader { protected $url; public function __construct($url) { $this->url = $url; } public function readRaw() { $ch = curl_init($this->url); $header[0] = ...
true
3b1efd94f1d156ae7b046855736df6ffc51e695a
PHP
Cayo-GM/Aps_Amaury
/Aps-Cayo/tests/Fazer_Test.php
UTF-8
621
2.609375
3
[]
no_license
<?php use PHPUnit\Framework\TestCase ; include_once((__DIR__ ).'../../classes/Student.class.php'); class Fazer_Test extends TestCase { public function testcadastro(){ $cadastroObj = new Student(); $cadastroObj->setName('leandro'); $retorno = $cadastroObj->getName(); $this->asser...
true
fbf393e53cb8d34acec18c10cf85850093bf0d72
PHP
pkiyingi/School-Database-management
/common/models/land/LandForSalePayment.php
UTF-8
1,133
2.515625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace common\models; use Yii; /** * This is the model class for table "trans_landforsale_payment". * * @property integer $landpayment_id * @property string $payment_date * @property string $amount_paid * @property integer $paid_by * @property integer $plotsold_id */ class LandForSalePayment extends...
true
7f5ccacf61a68d0db347f0aa88e1ee61b38093bd
PHP
MateuszBochen/EbayWsdl
/Classes/GetPictureManagerDetailsRequestType.php
UTF-8
2,856
2.84375
3
[]
no_license
<?php namespace EbayWsdl\Classes; class GetPictureManagerDetailsRequestType extends AbstractRequestType { /** * @var int $FolderID */ protected $FolderID = null; /** * @var string $PictureURL */ protected $PictureURL = null; /** * @var PictureManagerDetailLevelCodeType ...
true
b1550d477fbc6b25d9533bc6ec0e3d11f252c896
PHP
kloudltd/WHMCS-7.8.0-decoded
/vendor/aws/aws-sdk-php/src/Api/Serializer/RestXmlSerializer.php
UTF-8
941
2.5625
3
[ "Apache-2.0", "MIT" ]
permissive
<?php /* * @ PHP 5.6 * @ Decoder version : 1.0.0.1 * @ Release on : 24.03.2018 * @ Website : http://EasyToYou.eu */ namespace Aws\Api\Serializer; use Aws\Api\StructureShape; use Aws\Api\Service; /** * @internal */ class RestXmlSerializer extends RestSerializer { /** @var XmlBody */ private $xmlBody;...
true
29718f1446327912be3bdb68aa9768cf71b3c6a8
PHP
yusureabc/yusure_frame
/php100Demo/Desription2.php
UTF-8
4,306
3.21875
3
[]
no_license
上集说到控制器, 现在我来看看视图基类 [php] <?php class View { protected $vars = array(); protected function assign() { } protected function display() { } } ?> [/php] 是不是很熟悉这两个方法, 呵呵, 用来给模板设置变量和显示模板的. 和smarty一样, $vars属性是用来保持模板变量的数组, 我来写完它. 先看看assign方法 [php] <?php public function assign($var, $value)...
true
1a0da53d567c013e3f3b3a5ddb7114b0effdd5e8
PHP
itzArtha/exam-php
/pengarang/190030509-update.php
UTF-8
1,995
2.59375
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <!-- Import script dari sweetalert --> <script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script> </head> </html> <?php require "koneksi.php"; // Get data id dari method GET $id = $_GET['id']; // Get data nama dari method POST $nama = $_POST['...
true
3b7a816784a5ef4bf75620555785ee8807f357b2
PHP
moolex/ons-php
/src/Contract/Transfer/Queue.php
UTF-8
802
2.53125
3
[]
no_license
<?php /** * Transfer queue API * User: moyo * Date: 16/03/2017 * Time: 4:36 PM */ namespace ONS\Contract\Transfer; use ONS\Contract\Message; interface Queue { /** * @return void */ public function prepareWorks(); /** * @param $data * @param callable $resultProcessor */ ...
true
8fed0a4d2dd7555f8c4dd9d5e108f675dcb604eb
PHP
googleshokry/Glib
/src/Models/Feature.php
UTF-8
667
2.59375
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: EngShokry * Date: 6/4/18 * Time: 12:20 PM */ namespace Glib\Models; class Feature extends BaseModel { protected $table = "featureAble"; public static function makeFeature(BaseModel $model) { self::upsart(["model" => $model->getTable(), "model_id" => ...
true
7551e2d7e6770d75d742d5e8ac4ca9ed390662e6
PHP
Zezhong98/ProfileManager
/delete.php
UTF-8
1,806
2.859375
3
[]
no_license
<?php require_once 'lib/pdo.php'; require_once 'lib/ref.php'; require_once 'lib/util.php'; session_start(); unset($_SESSION['profile_id']); accountCheck(); if (!isset($_GET['profile_id'])) { // check profile selection die('Profile_id is required.'); } $stmt = $pdo->prepare('SELECT * FROM pr...
true
97662a89a949865fa5fdf1aafd831649bfbf8bea
PHP
rensamatar/nb
/app/Http/Controllers/AuthController.php
UTF-8
5,198
2.640625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Contracts\Auth\Guard; use Illuminate\Contracts\Auth\PasswordBroker; use Illuminate\Foundation\Auth\ResetsPasswords; use Auth; use User; use Mail; use Role; class AuthController extends BaseController { protected $signInRules = array( ...
true
e7dca1eaa75b4f4ada3532f97772616c3501ac53
PHP
timjoke/dacaipu_ds
/trunk/app/business/busOrderds.php
UTF-8
5,259
2.515625
3
[ "MIT" ]
permissive
<?php namespace Business; /** * 电商下单相关业务 * @作者 roy */ class busOrderds { /** * * @param type $result * $result->order_id 订单id; * $result->reason 订单拒绝原因; * @return type */ public function order_status_notice($result) { $bs = new busSms(); $order = \Order::...
true
b0e0ec6cddb404bca42a701a68a08fddca5964bb
PHP
robertmoss/homecare
/classes/templates.php
UTF-8
861
2.78125
3
[]
no_license
<?php class Template { public static function getTemplate($entity,$key) { $template=""; switch ($entity) { case "patient": if ($key=="compact") { $template = "<p>{{firstName}} {{middleName}} {{lastName}}</p>"; } ...
true
2be7513783384878d0638d19403f52cb15ed0eec
PHP
charlesportwoodii/yii2-api-rest-components
/actions/RegisterAction.php
UTF-8
685
2.578125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace yrc\actions; use common\forms\Registration; use yrc\rest\Action as RestAction; use yii\web\HttpException; use Yii; /** * Handles user registration * @class RegisterAction */ class RegisterAction extends RestAction { /** * Handles registration of users * @return mixed */ pub...
true
130d65747093a6536469f9af0603b273a1237043
PHP
mnuhell/ximdex-test
/app/src/Operation.php
UTF-8
883
3.859375
4
[]
no_license
<?php namespace App; class Operation { protected string $operator; protected float $number; protected string $operation; /** * Operation constructor. * @param string $operator * @param float $number * @param string $operation */ public function __construct(string $opera...
true
50f2cc755853cc5dffd077b6c8d07a733bfa5c2f
PHP
gurjeet/Lychee
/php/check.php
UTF-8
2,583
2.59375
3
[ "MIT" ]
permissive
<?php define('LYCHEE', true); // Declare $error = ''; // Include require('config.php'); // PHP Version if (floatval(phpversion())<5.2) $error .= ('Error 100: Please upgrade to PHP 5.2 or higher!<br>\n'); // Extensions if (!extension_loaded('exif')) $error .= ('Error 200: PHP exif extension not activated.<...
true
29859d2d09cc2314cc065d32560c3529bf9ef135
PHP
adeynes/PM84
/src/adeynes/PM84/functions/BulbFlower.php
UTF-8
970
2.765625
3
[]
no_license
<?php declare(strict_types=1); namespace adeynes\PM84\functions; use pocketmine\math\Vector3; class BulbFlower implements PM84Function { /** @return float[] */ public function getXDomainBounds(): array { return [-2, 2]; } /** @return float[] */ public function getYDomainBounds(): ar...
true
41edf56f40535d6e10755170c742c6db5a57aab8
PHP
CS3389/Project
/EditUser.php
UTF-8
1,631
2.625
3
[]
no_license
<?php //edit user by id(Edit button) $connString = "mysql:host=localhost;dbname=TaylorU"; $user ="root"; $pass ="root"; $pdo = new PDO($connString, $user, $pass); $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $UserID = $_GET['edit...
true
0e8d725132e43065780155ac8a71593c89165efb
PHP
jesus-son-coder/laravel_2021_october
/laravel-learning-october-2021/app/Services/UserService.php
UTF-8
442
2.765625
3
[ "MIT" ]
permissive
<?php namespace App\Services; use App\Exceptions\UserNotfoundException; use App\Models\User; use Illuminate\Database\Eloquent\ModelNotFoundException; class UserService { public function findByUsername($username) { $user = User::where('username', $username)->first(); if(! $user) { ...
true
96b476cd42399967ce6b13c0351a2b0ac4ec223b
PHP
ToyDragon/Graph-Cannon
/backup.php
UTF-8
16,993
2.734375
3
[]
no_license
<?php // Set up connection to local mysql database $con=mysqli_connect("localhost","root","","itpr"); // Check connection if (mysqli_connect_errno()){ echo "Failed to connect to MySQL: " . mysqli_connect_error(); } //used to get array data from the mysql server function resultToArray($result) { $rows = arr...
true
ebec3879cd3e807560c3e21e85b201f861ecfb25
PHP
seahouse/hyerp_nyfz
/database/migrations/2019_07_23_103655_create_poheadattachments_table.php
UTF-8
982
2.59375
3
[ "Apache-2.0" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreatePoheadattachmentsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('pohea...
true
cd9d4dc4a277ec3975f11305b4b06303184f31d6
PHP
cfmiami/cf-wp-series
/Series.php
UTF-8
11,313
2.640625
3
[]
no_license
<?php class Series { public function __construct() { add_menu_page('CF Series Settings', 'CF Series', 'administrator', __FILE__, array($this, 'settings'), '', 25); $hook = add_submenu_page(__FILE__, 'Series', 'Add New Series', 'administrator', __FILE__ . '_series', a...
true
9dc38e721ea3602e7adbb9ec4963827ba7a5d92f
PHP
tdeuling/TYPO3.NEOS.CodingMs.DownloadManager
/CodingMs.DownloadManager/Classes/CodingMs/DownloadManager/Controller/DownloadController.php
UTF-8
1,789
2.515625
3
[]
no_license
<?php namespace CodingMs\DownloadManager\Controller; /* * * This script belongs to the TYPO3 Flow package "CodingMs.DownloadManager".* * * * ...
true
c574d3281ab2affaba1024958dfa6a88b9b335ec
PHP
MeryembentalebEJ/php-exo4
/exo3.php
UTF-8
447
3.078125
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Exo 3 PARTIE 5</title> </head> <body> <?php if($_GET['age'] > 18 && $_GET['age'] < 130){ echo $_GET['nom...
true
f4d5b34391724e9c3fd5d0e022a4040251dcf138
PHP
Mistrfilda/ofce-auto
/app/model/facade/RoleModel.php
UTF-8
2,450
2.640625
3
[ "MIT" ]
permissive
<?php declare(strict_types = 1); namespace App\Model\Facade; use App\Model\Database\Entity\Entity; use App\Model\Database\Entity\Role; use App\Model\Database\Entity\User; use App\Model\Database\Repository\RightRepository; use App\Model\Database\Repository\RoleRepository; use Doctrine\Common\Collections\ArrayCollect...
true
622cbb548c158a73b938543de8bfbe36cc4a52db
PHP
Imavia-dev/FacetProfileBundle
/Entity/Scale.php
UTF-8
1,699
2.578125
3
[]
no_license
<?php /** * Imavia Bundle Object Scale * * @author Jerome Varini <jerome.varini@imavia.fr> * @author Fricker Sebastien <sebastien.fricker@imavia.fr> * @link http://www.imavia.fr Site web Imavia * */ namespace Imavia\FacetProfileBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * Represente les echell...
true
0e6f59b94e6151a43efb77c42d2fcb53f7f033e2
PHP
tyurderi/cms
/ext/system/PluginManager/Controllers/Api/PluginController.php
UTF-8
2,646
2.53125
3
[]
no_license
<?php namespace CMS\Controllers\Api; use CMS\Components\Controller; use CMS\Components\Plugin\Manager; use Exception; class PluginController extends Controller { public function listAction() { $manager = new Manager(); $manager->synchronize(); $plugins = $manager->list(...
true
6c420c0b57558512d1d2bfcdc7b86a6a31fd39c1
PHP
mangtomas/thesis-payroll
/system/core/database/db.php
UTF-8
3,751
2.546875
3
[]
no_license
<?php if(!defined('APPS')) exit ('No direct access allowed'); /** * database acccess */ class db extends dbAccess{ private $instance; private $conf = array(); /* * db_array - all database support drivers */ private $db_array = array( 'mysqli','pdo_mysql'); public function __construct(){ $a =...
true
3f247eb937f9e55b4150e1f04453b0d1d9d2f03a
PHP
jincon/RXThinkCMF_TP5.1_PLUS
/application/admin/common.php
UTF-8
5,421
2.859375
3
[ "Apache-2.0" ]
permissive
<?php // +---------------------------------------------------------------------- // | RXThinkCMF框架 [ RXThinkCMF ] // +---------------------------------------------------------------------- // | 版权所有 2017~2020 南京RXThinkCMF研发中心 // +---------------------------------------------------------------------- // | 官方网站: http://w...
true
7bac61f3f86607e7fdb0b61780ec023d5bec8b55
PHP
lakshya/website
/www/application/views/library/donateBook.php
UTF-8
5,590
2.53125
3
[]
no_license
<?php for($i = 1; $i <=31; $i++) $dates[str_pad((string)$i,2,"0",STR_PAD_LEFT)] = $i; $months = array( '01' => "January", '02' => "February", '03' => "March", '04' => "April", '05' => "May", '06' => "June", '07' => "July", '08' => "August", '09' => "September", '10' => "October", '11' => "November", '12' =...
true
d8e05503b109ed359bceae070ceefeed53c8a2c2
PHP
feixiang/Push
/classes/Message.class.php
UTF-8
6,202
2.828125
3
[]
no_license
<?php /** * 消息中心 -> 对应 push_message表和apns_messages表 * 1 user -> n device * 1 device -> n message * @author Administrator */ class Message { /** * 设备注册需要需要字段,对应数据库字段 * @var type */ //数据库连接 private $db; /** * 构造函数建立数据库连接 */ function __construct() { $this -> db = M(); } ...
true
e9638808bee8e487a101c07c50a38df8c2a77e5e
PHP
RCHARLES0287/OCProject4.0
/lib/OCFram/Managers.php
UTF-8
727
2.828125
3
[]
no_license
<?php namespace OCFram; use InvalidArgumentException; use Model\DatabaseConnection; class Managers { protected $db = null; protected $managers = []; public function __construct() { $this->db = DatabaseConnection::dbConnect(); } public function getManagerOf($module) { if ...
true
bf2fb08f4a2307702bd1e147728c860bcdd92f9a
PHP
zedmaster/phpdayserpro
/application/views/helpers/ListaInscritos.php
UTF-8
1,031
2.53125
3
[]
no_license
<?php class App_View_Helper_ListaInscritos extends Zend_View_Helper_Abstract { public function listaInscritos() { $html = ""; $table = new Application_Model_DbTable_Minicurso(); $db = $table->getAdapter(); $stmt = $db->query(' SELECT a....
true
ea79487fd01b86e292f9237758e1ff175624c7d9
PHP
gilbert777us/PHP1
/clases/Croupier.php
UTF-8
432
3.34375
3
[]
no_license
<?php class Croupier { // Atributos var $nCroupier; var $categoria; // Constructor function Croupier ($crou,$ca) { $this->nCroupier=$crou; $this->categoria=$ca; echo "Cliente ".$this->nCroupier." de categoría ".$this->categoria; } // Metodos function empezarJugada() { return "Empezamos la jugada"; } function reso...
true
9da1236f4bf2bbb3a461b69f7f6274d5112edba2
PHP
rafaelleme/bc-hiring
/src/Application/Product/Service/UpdateProductService.php
UTF-8
892
2.71875
3
[]
no_license
<?php namespace App\Application\Product\Service; use App\Application\Product\Request\ProductRequest; use App\Domain\Product\Product; use App\Domain\Shared\Vo\Id; use App\Infrastructure\Product\Repository\DoctrineProductRepository; /** * @property DoctrineProductRepository repository */ class UpdateProductService {...
true
f61801fa19a10fb9a0c2df26f96dc3e1bb3ea047
PHP
HabibDi/Cine-TchiTcha
/API-ciné/src/Entity/Salle.php
UTF-8
2,036
2.6875
3
[]
no_license
<?php namespace App\Entity; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass="App\Repository\SalleRepository") */ class Salle { /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column(typ...
true
4e18b376e47bdca788be62a34a9176413eaa28c1
PHP
ToribioMatiasRaulAlberto/disor
/cifrado/web/codigo/PHP/vendor/pradosoft/prado/framework/Web/UI/WebControls/TJavascriptLogger.php
UTF-8
2,852
2.546875
3
[ "BSD-3-Clause" ]
permissive
<?php /** * TJavascriptLogger class file. * * @author Wei Zhuo <weizhuo[at]gmail[dot]com> * @link https://github.com/pradosoft/prado * @copyright Copyright &copy; 2005-2016 The PRADO Group * @license https://github.com/pradosoft/prado/blob/master/COPYRIGHT * @package System.Web.UI.WebControls */ /** * TJavasc...
true
e4a31061e8f9ff5b575c8ae674187282188b6b63
PHP
Akshit42-hue/E-learn
/AxitE-learn/insert.php
UTF-8
1,510
2.578125
3
[]
no_license
<?php include 'Stud_connect.php'; if(isset($_POST['index'])) { $name=$_POST['name']; $email=$_POST['Email']; $password=$_POST['password']; //echo $email,$name,$contact,$desig,$dept,$gender,$pwd; // if((!empty($name)) && (!empty($email)) && (!empty($contact)) && (!empty($designation)) && (...
true
11749307d012e5d9cdd24515ad2432ad87a432a8
PHP
Amos98/HCI
/carts/index.php
UTF-8
3,183
2.5625
3
[ "MIT" ]
permissive
<?php // Initialize shopping cart class include_once 'cart.php'; $cart = new Cart; // Include the database config file require_once 'dbConfig.php'; ?> <!DOCTYPE html> <html lang="en"> <head> <title>PHP Shopping Cart</title> <meta charset="utf-8"> <!-- Bootstrap core CSS --> <link href="css/bootstrap.min.css" ...
true
6a9b4cef5c86ababe75f4858891c23be17edfad9
PHP
predis/predis
/src/Command/RawCommand.php
UTF-8
2,641
2.796875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /* * This file is part of the Predis package. * * (c) 2009-2020 Daniele Alessandri * (c) 2021-2023 Till Krüss * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Predis\Command; /** * Class representing a generic R...
true
71b0898325ebfbdf6d71462d73f1b2c6aa2763b8
PHP
nylbrian/form_builder
/api/classes/questions/QuestionsHandler.php
UTF-8
1,710
2.953125
3
[]
no_license
<?php class QuestionsHandler { private $dao; public function __construct() { $this->dao = new QuestionsDAO(); } public function getTableView($page = 1, $itemsPerPage = 10, $sortBy = 'id', $sortOrder = 'asc', $search = '') { try { $data = $this->dao->getTableView($page, $itemsPerPage, $sortBy, $...
true
8d1db894dae4fef7f3a4b95658157482c9d75d34
PHP
nahiyan762/E-Commerce-Website
/online Shopping/controlar/product.php
UTF-8
2,836
2.609375
3
[]
no_license
<?php require_once("/../dataAccessLayer/dalSession.php"); session::checkA(); require_once("/../dataAccessLayer/dalProduct.php"); require_once("/../dataAccessLayer/dalSub-Category.php"); require_once("/../dataAccessLayer/dalSize.php"); ?> <!DOCTYPE html> <html> <head> <title>untitled</title> </head> <body> ...
true
b23cf1bbb438273121fedae2ee85d12cea806cdd
PHP
okamosy/Lumeon-test
/src/AppBundle/Repository/PatientRepository.php
UTF-8
805
2.640625
3
[]
no_license
<?php namespace AppBundle\Repository; use AppBundle\Entity\Patient; use Doctrine\ORM\EntityRepository; class PatientRepository extends EntityRepository implements RepositoryInterface { /** * @param $id * * @return bool|Patient */ public function selectById( $id ) { $result = $...
true
b4342a40eba63ae809f1eaa4552ae970d4c1b835
PHP
paunin/yiiboilerplate
/protected/validators/TimeLimitValidator.php
UTF-8
646
2.734375
3
[]
no_license
<?php class TimeLimitValidator extends CValidator { public $timeField = 'created_at'; /** @var null|int time limit, 0 - no limits */ public $timeLimit = null; /** * @param CModel $object * @param string $attribute */ protected function validateAttribute($object, $attribute) { ...
true
fada59aa058dcc031fdbeac5adab197a7da736d7
PHP
jeraldfeller/cyberlink-thesis
/ecommerce/ajax/customer/function.php
UTF-8
976
2.609375
3
[]
no_license
<?php require '../../Model/Init.php'; require '../../Model/Customer.php'; $action = $_GET['action']; $customerClass = new Customer(); switch($action){ case 'register': $email = $_POST['email']; $password = $_POST['password']; $firstName = $_POST['firstName']; $lastName = $_POST['la...
true
c174a98115f8db761f14e6dc6b71a41535e26d42
PHP
kelvinroqueto/kanban
/app/Repositories/Contracts/CardRepositoryInterface.php
UTF-8
298
2.578125
3
[]
no_license
<?php namespace App\Repositories\Contracts; use App\Models\Card; interface CardRepositoryInterface { public function allCards(): Array; public function getCardById(int $idCard): Card; public function getCards(array $data): Array; public function listClasses(array $courses); }
true
8981df1ccba3555fbd5968a957d103bdb6ba89a8
PHP
phuhieuh/democi
/application/controllers/main.php
UTF-8
10,492
2.53125
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); date_default_timezone_set('Asia/Ho_Chi_Minh'); class Main extends CI_Controller { private $cost = 12; public function __construct() { Parent::__construct(); $this->load->model('main_model'); } public function index() { if($this->session...
true