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
461f1e1400b14ac21d1758052bf7c49e68f20c84
PHP
AdamKyle/flare
/app/Game/Exploration/Middleware/IsCharacterExploring.php
UTF-8
1,508
2.578125
3
[ "MIT", "LicenseRef-scancode-free-unknown" ]
permissive
<?php namespace App\Game\Exploration\Middleware; use App\Flare\Values\AutomationType; use App\Game\Messages\Events\ServerMessageEvent; use Closure; class IsCharacterExploring { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @p...
true
aa1ef9fa69feec0e63aec734a7f7a5b840288a3f
PHP
Aidan-McErLEAN/To-Do-List
/app/Http/Controllers/TaskController.php
UTF-8
3,812
2.796875
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Models\Tasks; use App\Models\Comments; use App\Models\Notepad; class TaskController extends Controller { public function task($id) { //GETS ALL TASKS, COMMENTS WITH NOTEPADID $tasks = Tasks::where('NotepadID', $id)->get()...
true
74ee98c07dfb52f9cbbb3df1d4d8e3e08e99bb4f
PHP
ipsilanty/VITLProject
/vitl/application/models/Names.php
UTF-8
1,010
2.765625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /** * Created by PhpStorm. * User: Dragos * Date: 10/09/2018 * Time: 14:49 */ class Names extends CI_Model { public function __construct() { parent::__construct(); } /** * * get_names: * * @param string ...
true
f380f6664989568d2856577d4a9e739d9c715db7
PHP
david-campos/app4refs
/API/class/gateways/gtmysqli/MysqliPeriodsGateway.php
UTF-8
6,954
3.078125
3
[ "Apache-2.0" ]
permissive
<?php /** * @author David Campos Rodríguez <david.campos.r96@gmail.com> */ namespace gateways\gtmysqli; use exceptions\DatabaseInternalException; use exceptions\InvalidParamInBodyException; use exceptions\InvalidValueInBodyException; use gateways\IPeriodsGateway; use Period; class MysqliPeriodsGateway implements ...
true
2dc42af2e06b717245fe8d181d7662cfcb7f4835
PHP
snuze/snuze
/src/Persistence/MySQL/AccountMapper.php
UTF-8
13,629
2.734375
3
[ "Apache-2.0" ]
permissive
<?php declare(strict_types=1); namespace snuze\Persistence\MySQL; use snuze\{ Persistence\Interfaces\AccountMapperInterface, Persistence\Interfaces\StorageProviderInterface, Persistence\MySQL\StorageProvider, Reddit\Thing\Account\Account, Reddit\Thing\Account\MyAccount, Reddit\Thing\Account\U...
true
62b2b8660e5456e1da149730a6e6f84448978797
PHP
kevinwebtest/Distance-Sensor-Monitoring
/ultrasonic/ultrasonic.php
UTF-8
648
2.671875
3
[]
no_license
<?php class hcsr04{ public $link=''; function __construct($distance){ $this->connect(); $this->storeInDB($distance); } function connect(){ $this->link = mysqli_connect("localhost", "id17043007_smsultrasonic", "dE)qQfwdP2/h4xs") or die('Cannot connect to the DB'); mysqli_select_db($this->link,"id...
true
33cc80ccd7827526241d9a6eb3783d89664952d0
PHP
cxc222/voyager
/src/Http/Controllers/Traits/DatabaseQueryBuilder.php
UTF-8
5,360
2.703125
3
[ "MIT" ]
permissive
<?php namespace TCG\Voyager\Http\Controllers\Traits; use Illuminate\Database\Schema\Blueprint; use Illuminate\Http\Request; use Illuminate\Support\Collection; use Illuminate\Support\Facades\DB; trait DatabaseQueryBuilder { /** * These column types cannot be updated. A custom SQL query is necessary to make t...
true
c5de9214e1911ebdb653b292f73a44d0e6ba87f0
PHP
mahmods/gadwa3
/app/Repositories/RolesRepository.php
UTF-8
2,096
2.671875
3
[ "MIT" ]
permissive
<?php namespace App\Repositories; use App\SidebarItems; use App\SidebarMenus; use App\UserRoles; /** * Class RolesRepository * @package App\Repositories */ class RolesRepository extends BaseRepository { /** * RolesRepository constructor. */ protected $role; /** * @var SidebarItems *...
true
ced26c6483899b22922af37b099ea9b9dc5aec07
PHP
imjoehaines/Gilded-Rose-Kata-in-PHP
/src/Item.php
UTF-8
253
3.109375
3
[]
no_license
<?php namespace App; interface Item { public function __construct(int $quality, int $sellIn); public function tick(); public function getName() : string; public function getQuality() : int; public function getSellIn() : int; }
true
09bad04687a09264ad6755671ca4269a5407bb0c
PHP
javiersuarezmartin/DAW_ENTORNOS_SERV_UD5_CASO2
/php/temporada.php
UTF-8
2,204
3.265625
3
[]
no_license
<!DOCTYPE html> <html lang="es"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Temporada</title> <link rel="stylesheet" href="../css/styles.css" type="text/css"> </head> <body> <div class="container"> <?php // I...
true
9f096e7a103a2d636ece8bd0954850d20e5444f0
PHP
yafithekid/internship-exercise2
/app/views/car.php
UTF-8
1,159
2.53125
3
[ "MIT" ]
permissive
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Fuel Calculator</title> <?= HTML::style('css/bootstrap.min.css'); ?> </head> <body> <div class='container'> <h1>Liters per 1...
true
31dc29c4824add332488ad73907460b37a7d5fb3
PHP
VINAYAANDREWS/invoice_generation
/helpers/gallery_helper.php
UTF-8
691
2.59375
3
[]
no_license
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); function echo_gallery_categories($institute,$select = false, $print = true) { $CI = & get_instance(); $echo = ''; $CI->load->model('model_gallery'); $categories = $CI->model_gallery->get_gallery_categories($institute); foreac...
true
5ae6e352ab71eef671555edb36b6c8b3f6325378
PHP
leguminosa/srot-kp
/daftar.php
UTF-8
5,790
2.546875
3
[]
no_license
<?php include "includes/config.php"; ?> <?php // $query = "SELECT * FROM provinsi"; // $query = mysqli_query($connection, $query); // if(mysqli_num_rows($query) > 0) { // $result = array(); // while($row = mysqli_fetch_array($query)) { // $content ...
true
4b0863966311e0a7842f87fe8f4bba5579004d4f
PHP
TeamofdevelopingTCU/TurriPlantas
/Business/OrganizationBusiness.php
UTF-8
359
2.78125
3
[]
no_license
<?php include './Data/OrganizationData.php'; class OrganizationBusiness { public $organizationData; public function OrganizationBusiness(){ $this->organizationData = new OrganizationData(); } public function getOrganization(){ return $this->organizat...
true
14629e5c86404825148a975885d9af9f9576f858
PHP
royiyi/php_basics
/ConectionBDD/SQL_injection/prepared_queries/2e_insert/2.php
UTF-8
1,577
2.703125
3
[]
no_license
<?php // ALL VARIABLERS $title=$_GET["title"]; $start_d=$_GET["start_d"]; $priority=$_GET["priority"]; $describe=$_GET["Describe"]; require ("../datos_conexion.php"); //the connection consumes records on our server ...
true
6bc20ba839455afedbc9a84762d200fa14bb6673
PHP
eborges78/symfony
/src/Symfony/Bridge/Twig/Mime/Renderer.php
UTF-8
2,790
2.6875
3
[ "MIT" ]
permissive
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Bridge\Twig\Mime; use League\HTMLToMarkdown\HtmlConverter; use ...
true
eea51d91cafd9ed706d8ab6a998b3ba61c1736cc
PHP
israelitalo/alunos-uninassau-ads
/app/core/Model.php
UTF-8
213
2.609375
3
[]
no_license
<?php namespace app\core; abstract class Model{ protected $database; public function __construct() { $this->database = new \PDO("mysql:dbname=".BANCO.";host=".SERVIDOR,USUARIO,SENHA); } }
true
8498728e9e8fabe6941647acbc8b0a7a2cf27d5e
PHP
silverstripe-europe-meetup/website-2017
/mysite/src/Block/PageSectionGroup.php
UTF-8
1,531
2.609375
3
[]
no_license
<?php namespace mysite\Block; use zauberfisch\PageBuilder\Model\Block\Group; /** * @author zauberfisch * @method string getMenuTitle * @method $this setMenuTitle(string $nchor) * @method string getBackgroundColor * @method $this setBackgroundColor(string $color) */ class PageSectionGroup extends Group { priva...
true
938d1db29861d12f726af834ad04a56aba8ea78a
PHP
rachelmills/rentalPHP
/register.php
UTF-8
2,667
3.125
3
[]
no_license
<?php class Register { private $db; // Constructor - open DB connection function __construct() { $this->db = new mysqli('localhost', 'test', 'test', 'renteasy'); $this->db->autocommit(FALSE); } // Destructor - close DB connection function __destruct() { $this->db->close(); } funct...
true
2739992e050a6b91985c58a1ba139cdea644317b
PHP
ivanmincione/laravel-base-crud
/app/Http/Controllers/ProductController.php
UTF-8
3,183
2.734375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Product; class ProductController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $data = [ 'products' => Prod...
true
a93b592e6bc6f48a6c327f907730e6ca047092c9
PHP
whary11/lessons-laravel
/app/Http/Controllers/Authentication/LoginController.php
UTF-8
855
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Authentication; use App\Http\Controllers\Controller; use App\Http\Requests\Authentication\LoginRequest; use App\Traits\ResponseTrait; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; class LoginController extends Controller { use ResponseTrait; public fun...
true
d80c8d41f82041c71871c80f7882fe6506b68350
PHP
gnieark/BackgroundPHPtasks
/test/BackGroundPHPTasksTest.php
UTF-8
10,709
2.703125
3
[]
no_license
<?php use PHPUnit\Framework\TestCase; class BackGroundPHPTasksTest extends TestCase { private $testScript = '<?php while( 1 == 1){ if(isset($argv[1])) { foreach ($argv as $arg) { echo strrev("$arg"); } }else{ echo date("Y-m...
true
dd378a53de467d295490963e1e3c361c1a67a7f2
PHP
mychael29/WebProjectGT
/golterra_v1/json/AllJugadores_Evento.php
UTF-8
1,020
2.71875
3
[]
no_license
<?php //error_reporting(E_ALL); include('../config.php') ; try{ $conexion = new PDO($host,$usernameserver,$passwordserver); $conexion -> setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $conexion -> exec("SET CHARACTER SET UTF8"); }catch(Exception $e){ die("Error " . $e->getMessage()); echo...
true
d8d0764ac0b7fa0ed0d81a30e114fcf5f63f957d
PHP
jerryjazzz/leaderboardC2
/app/inc/Cryptme.php
UTF-8
3,431
3.046875
3
[ "MIT" ]
permissive
<?php /** * * The MIT License (MIT) * * Copyright (c) 2015 henry.tejera * * 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 ...
true
d115bd1a1302c3ca66ef50de6d5b7190872be7c1
PHP
Icepique/iceLibsPlugin
/lib/routing/IceRequestHistory.class.php
UTF-8
1,947
2.71875
3
[]
no_license
<?php class IceRequestHistory { public static function getHistory() { return sfContext::getInstance()->getUser()->getAttribute('request_history', '', 'IceRequestHistory'); } public static function getCurrentRequestKey() { return sfContext::getInstance()->getUser()->getAttribute('current_request_key'...
true
88c6001ceadbbee9eba621f6b30532370176463d
PHP
Fax/OS.js
/lib/ServerUser.class.php
UTF-8
3,833
3.03125
3
[ "BSD-2-Clause", "BSD-3-Clause" ]
permissive
<?php /*! * @file * OS.js - JavaScript Operating System - Contains ServerUser Class * * Copyright (c) 2011-2012, Anders Evenrud <andersevenrud@gmail.com> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following condi...
true
8c7540db86d5df41d7bca3881dc86361d8657927
PHP
weatheredwatcher/li3_attachable
/extensions/data/behavior/Attachable.php
UTF-8
5,396
2.578125
3
[]
no_license
<?php /** * li3_attachable: the most rad li3 file uploader. * * @copyright Copyright 2012, Tobias Sandelius (http://sandelius.org) * @license http://opensource.org/licenses/bsd-license.php The BSD License */ namespace li3_attachable\extensions\data\behavior; use RuntimeException; use lithium\util\Infle...
true
7c9e81feddabc3a74da2265037b72e569e7e16ab
PHP
aufspalten/transit
/src/Transit/Transformer/Image/ExifTransformer.php
UTF-8
2,542
2.6875
3
[ "MIT" ]
permissive
<?php /** * @copyright 2006-2013, Miles Johnson - http://milesj.me * @license http://opensource.org/licenses/mit-license.php * @link http://milesj.me/code/php/transit */ namespace Transit\Transformer\Image; use Transit\File; /** * Rotates, flips and fixes an images orientation based on exif data. ...
true
70a832156536aaa639aa1b114821245d2c656125
PHP
santik/tickets.test
/endpoints/create.php
UTF-8
1,771
2.671875
3
[]
no_license
<?php declare(strict_types=1); require_once dirname(__FILE__) . "/../vendor/autoload.php"; use MicroDB\Database; use Santik\Tickets\Application\ListingService; use Santik\Tickets\Application\UserService; use Santik\Tickets\Domain\Validator\ListingValidator; use Santik\Tickets\Infrastructure\MicroDbBasedUserRepositor...
true
5cf2153bd2b82de1d0a5bdd0778daef33accefd6
PHP
runamurakami/Camp-Challenge
/challenge_3/php3_kiso2.php
UTF-8
132
3.28125
3
[]
no_license
<?php function number($num){ if($num%2 == 0){ echo "偶数"; }else{ echo"奇数"; } } number(30); ?>
true
7f63638913b0101abf68c2b2b5bc58e3ee27dad4
PHP
bh4cxj/jieqi
/source/modules/forum/include/funforum.php
GB18030
9,464
2.59375
3
[]
no_license
<?php /** * ̳ݸֵغ * * ̳ݸֵغ * * ģ壺 * * @category jieqicms * @package forum * @copyright Copyright (c) Hangzhou Jieqi Network Technology Co.,Ltd. (http://www.jieqi.com) * @author $Author: juny $ * @version $Id: topiclist.php 286 2008-12-23 03:04:17Z juny $ */ /** * ̳ʵ󣬷ʺģ帳ֵ̳Ϣ * * @param ...
true
1376de9322333164fe3e6506e1bb3e9bfea76bd7
PHP
ITNT-Dev/www.partserve.co.za
/online/include/restrict_access.php
UTF-8
2,622
2.515625
3
[]
no_license
<?php //session_set_cookie_params(0); session_start(); //on the $pages0 array insert all the pages that a user can not access unless they are logged in to the site. $pages0 = array ('forgot','league_manager','user_manager','results_manager','scores_manager','group_results','advert_manager','league_settings','eventsLo...
true
e3d367f00bbbaae0a803e9edf046b0f351501eef
PHP
xxz291917/mycode
/application/models/debate_posts_model.php
UTF-8
2,011
2.5625
3
[]
no_license
<?php class Debate_posts_model extends MY_Model { function __construct() { parent::__construct(); $this->table='debate_posts'; $this->id='post_id'; } /** * 检查当前用户是否发表过自己的观点。 * @param type $topic_id */ public function check_is_posted($topic_id) ...
true
42964aeabf769d3f6ac5c8318638f3ea19f83f77
PHP
ahmedragab96/A-PHP-CRUD-APP
/functions.php
UTF-8
4,327
2.828125
3
[]
no_license
<?php function validatedata(){ if ( strlen($_POST['first_name']) == 0 || strlen($_POST['last_name']) == 0 || strlen($_POST['email']) == 0|| strlen($_POST['headline']) == 0 || strlen($_POST['summary']) == 0) { return "All values are required"; } ...
true
0610a20714b4a2726eaa5c22e264af0cd58421c9
PHP
viviniko/book
/src/Enums/TopicStatus.php
UTF-8
268
2.75
3
[]
no_license
<?php namespace Viviniko\Book\Enums; class TopicStatus { const DRAFT = 0; const PUBLISHED = 1; public static function values() { return [ static::DRAFT => 'Draft', static::PUBLISHED => 'Published', ]; } }
true
955bc2f8a4eb8efb1619983496bdebbab7acbbba
PHP
Rusack/OauthWebsite
/ToDoListApi/Application/Classes/Model/ToDoListModel.php
UTF-8
3,166
3.078125
3
[]
no_license
<?php namespace Model; class ToDoListModel { public $idToDoList; public $idUser; public $name; public function __construct($idToDoList ,$idUser, $name){ $this->idToDoList = $idToDoList; $this->idUser = $idUser; $this->name = $name; } public static function findToDoListByUserId($id){ $db = Db::...
true
2a38e57d70a7c0f301a4d6d72f299b71d7e23fd6
PHP
PriyaVPatel/Web-Development
/Student ID & Fav song check/sendToTxt.php
UTF-8
1,886
3.109375
3
[]
no_license
<!DOCTYPE html> <html lang="EN"> <?php // Priya Patel // IS 448 HW 2 php code June 4, 2020 // Takes user input from favsong.html and copies it into a text file // f write is used to propery format the text file // After user inouts thier info, it aknowladges inpout and provides // redirect link to ma...
true
5770db6d8f9c434d792983679f68d3612dc29d3a
PHP
cvannak/filament
/packages/forms/src/Components/Concerns/BelongsToModel.php
UTF-8
828
2.59375
3
[ "MIT" ]
permissive
<?php namespace Filament\Forms\Components\Concerns; use Illuminate\Database\Eloquent\Model; trait BelongsToModel { protected $model = null; public function model(Model | string | callable | null $model = null): static { $this->model = $model; return $this; } public function sav...
true
594e893ffb5e92ef700e26d952ba42b20aa3acfc
PHP
dennismozart1994/ManageTeamSystem
/myuser.php
UTF-8
18,020
2.5625
3
[ "Apache-2.0" ]
permissive
<?php session_start(); require_once('classes/userf.php'); require_once('classes/project.php'); require_once('classes/parameters.php'); $user = new user; $project = new projects; $params = new parameters; // ACCESS WITHOUT LOGIN if(!isset($_SESSION['login'])) { header('Location: index.php'); } // LOGOUT if(isset($_...
true
19da3e3fbef5a13c049f30af5d525b12fc2afc43
PHP
moyses-oliveira/flipbox
/app/Lib/Validation/Rules/CPF.php
UTF-8
912
2.6875
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: moyses-oliveira * Date: 22/02/19 * Time: 08:36 */ namespace App\Lib\Validation\Rules; use Illuminate\Contracts\Validation\Rule; class CPF implements Rule { public function passes($attribute, $value) { if(empty($value)) return true; $...
true
7fd0ec681f49f38f9067d42674a78e5b3a5afd88
PHP
php-lsys/loger
/src/common/classes/LSYS/Loger/Handler/Syslog.php
UTF-8
4,612
2.578125
3
[]
no_license
<?php /** * lsys core * @author Lonely <shan.liu@msn.com> * @copyright (c) 2017 Lonely <shan.liu@msn.com> * @license http://www.apache.org/licenses/LICENSE-2.0 */ namespace LSYS\Loger\Handler; use LSYS\Loger\Handler; use LSYS\Loger; use LSYS\Loger\Format; use LSYS\Exception; class Syslog implem...
true
3a11a2da351054dcd6e7ee7260e34ead15bd573c
PHP
JHernandez1898/idsprocesos
/IDSMaritimo/new 1.php
UTF-8
683
3.21875
3
[]
no_license
<?php //[code]// fecha_a es la primera fecha $fecha_a= "1980/10/28"; // fecha_b en este caso es la fecha actual $fecha_b= date("Y/m/d"); function dias_transcurridos($fecha_i,$fecha_f) { $dias = (strtotime($fecha_i)-strtotime($fecha_f))/86400; $dias = abs($dias); $dias = floor($dias); return $dias; } // fecha_a es la ...
true
ebe2aba1dc56da90d449db75f686308a370bd383
PHP
hidechy/BrainLog
/app/Console/Commands/ArtInfoGet.php
UTF-8
3,866
2.734375
3
[ "MIT" ]
permissive
<?php namespace App\Console\Commands; use Illuminate\Console\Command; use DB; class ArtInfoGet extends Command { protected $signature = 'ArtInfoGet'; protected $description = 'Command description'; public function handle() { $url = 'https://artscape.jp/mdb/mdb.php'; $content = f...
true
987c865d598584e3ccac152f331c8b1f7f61141b
PHP
Catfeeds/che_oa
/modules/oa_v1/logic/EmployeeLogic.php
UTF-8
2,500
2.59375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\modules\oa_v1\logic; use app\models\Role; use app\logic\server\QuanXianServer; class EmployeeLogic extends BaseLogic { /** * 修改权限系统用户 * @param app\models\Employee $employee * @return array */ public function editQxEmp($employee) { if(empty($employee) || !$em...
true
6d095b9e4f1782e6d62b95bc7075a44e426131ef
PHP
fuca/fbcmohelnice
/app/model/Entities/Event.php
UTF-8
1,097
2.84375
3
[ "MIT" ]
permissive
<?php namespace florbalMohelnice\Entities; /** * Description of Event * * @author Michal Fučík <michal.fuca.fucik@gmail.com> * @package florbalMohelnice */ class Event extends \DibiRow { const PARTIC_NOMINATION = 'nom'; const PARTIC_VOLUNTARY = 'vol'; const PARTIC_COMPULSORY = 'com'; const VISIBILITY_GROUP =...
true
d82cff8ced147b0f5fac690711d528144558f5cc
PHP
avanderbergh/sync-services
/app/Console/Commands/SchoologyReport.php
UTF-8
4,842
2.640625
3
[]
no_license
<?php namespace App\Console\Commands; use Illuminate\Console\Command; use Avanderbergh\Schoology\SchoologyApi; use Illuminate\Support\Facades\Storage; class SchoologyReport extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 're...
true
e7f676361b5577e33848b07a586730327414f4ba
PHP
xuanhoa88/zend_quiz
/application/modules/admin/libraries/DataGrid/Student.php
UTF-8
3,056
2.578125
3
[]
no_license
<?php class Admin_DataGrid_Student extends Lumia_DataGrid { protected $_viewScript = 'student/datagrid.phtml'; /** * Constructor */ public function __construct() { $this->setPrimaryKey('student_id'); parent::__construct(); } /** * Prepare data source * ...
true
f823c34bf75e4de8f59efec6d07a1a2384fe99dd
PHP
kjcx/ckp_game
/Application/Protobuf/Result/TypeCountStaff.php
UTF-8
550
2.671875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: dongkai * Date: 2018/5/11 * Time: 下午4:04 */ namespace App\Protobuf\Result; /** * 招聘抽奖次数时间建成 * Class TypeCountStaff * @package App\Protobuf\Result */ class TypeCountStaff { public static function encode($data) { $TypeCountStaff = new \AutoMsg\TypeCountS...
true
911976626a2e9da95323ce772a552927294eb7c6
PHP
airtonGit/pousada-casagrande
/wp-content/themes/parallelus-vellum/data-types/checkbox-type.php
UTF-8
9,006
2.71875
3
[]
no_license
<?php class Checkbox_type extends Data_Type { public $type = 'checkbox-type'; public static $type_slug = 'checkbox-type'; public $label = 'Checkbox List'; public function render_content( $vals = null ) { do_action( self::$type_slug . '_before_render_content', $this ); if ( $vals != null ) { $this->field ...
true
1d5d4f78bad236d4182ed94efbddc8e392822572
PHP
CrazyBobik/4J
/engine/dao/db.php
UTF-8
2,431
3.265625
3
[]
no_license
<?php /** * Class DB_DB главный клас для соединения с базой */ class DAO_DB{ /** * @var PDO екземпляр */ protected $db; /** * @var null или екземпляр себя */ private static $init = null; /** * DAO_DB constructor. * Подключаемся к базе с помощью PDO */ private function __construct(){ $str = 'my...
true
6233a4f59c88597c33d757d135c85becb893c35e
PHP
lucques/mycms
/library/controllers/RecentPostsController.php
UTF-8
3,893
2.5625
3
[ "Apache-2.0", "MIT" ]
permissive
<?php /** * This Controller is used if the user wants to get the recent posts. The posts will be retrieved by a model and * then put into the Response object. If no posts exist, the request will be dispatched to a NotFoundController * object. */ class RecentPostsController extends Controller { public funct...
true
0b9889b82710459a67ffcdb78164e5119329c751
PHP
FS-NulL/IoFo
/postreply.php
UTF-8
1,070
2.703125
3
[]
no_license
<?php // IoFo // Post Reply Page session_start(); require($_SERVER["DOCUMENT_ROOT"] . "/iofo/config/db_config.php"); $connection = mysql_connect( $db_host, $db_user, $db_pass) or die(mysql_error()); mysql_selectdb( $db_data ); if ($_SESSION['loggedin'] != "true") { echo '<meta http...
true
a67a44f28b7ea0e24ae151e922b78b12126df30a
PHP
minniev/ctf
/level1.php
UTF-8
2,845
2.515625
3
[]
no_license
<?php error_reporting ( E_ALL ); ini_set ( 'display_errors', 1 ); define ( 'CTF_WEB_PAGE_TO_ROOT', dirname ( dirname ( __FILE__ ) ) ); require_once (CTF_WEB_PAGE_TO_ROOT . '/ctf/includes/ctf.inc.php'); if (! ctfIsLoggedIn ()) { header ( "location:home.php" ); die (); }else{ $user_name = ctfCurrentUser(); $user_id ...
true
a61e54b2902ff4a31b3cef1cf4a7095e90333a80
PHP
php/pecl-database-pdo_ibm
/tests/fvt_018_QuoteString.phpt
UTF-8
1,789
2.921875
3
[ "Apache-2.0" ]
permissive
--TEST-- pdo_ibm: Quote a string. --SKIPIF-- <?php require_once('skipif.inc'); ?> --FILE-- <?php require_once('fvt.inc'); class Test extends FVTTest { public function runTest() { $this->connect(); print "Connection succeeded.\n"; $string = 'Nice'; print "Unquoted string: $string\n"; print "Quoted ...
true
88ee5017bf7bc5e457df004649ac1d7a088659fa
PHP
CodifyLLC/solid-trust-pay-php
/src/CodifyLLC/SolidTrustPay/StpButton.php
UTF-8
3,057
2.875
3
[]
no_license
<?php namespace CodifyLLC\SolidTrustPay; class StpButton { /** Setup Private Vars */ private $api_url; private $params; /** * The constructor function */ public function __construct() { $this->api_url = 'https://solidtrustpay.com/handle.php'; $this->params = array(...
true
99b9db9e607e01191218c37fd2b90e7583804cc1
PHP
leehongtuck/tpmBookstore
/vieweditRewardlist.php
UTF-8
1,580
2.546875
3
[]
no_license
<?php $title = "Manage Rewards"; require_once "inc/managerHeader.php"; $query = "SELECT * FROM reward "; $result = mysqli_query($conn, $query); $count = mysqli_num_rows($result); ?> <div class="tableHeader"> <h1>Manage Rewards</h1> </div> <form method="POST" action="updateRewardlist.php"> <table> <tr> ...
true
0f56d04c25aa0f143c51df140c9d33ca2f1f8560
PHP
yurij-kurleev/CourseManagementSystem
/protected/controllers/UserController.php
UTF-8
4,302
2.609375
3
[]
no_license
<?php class UserController{ private $userService; public function __construct() { $this->userService = UserService::getInstance(); } public function registerUserAction(){ $data = [ 'name' => strip_tags(trim($_POST['name'])), 'email' => strip_tags(trim($_POST...
true
2d0c2d0b2ec9ea4e317e15346a5b6fc121da8111
PHP
nghian/z
/common/behaviors/LayoutsBehavior.php
UTF-8
956
2.765625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace common\behaviors; use yii\base\ActionFilter; /** * Class LayoutsBehavior * @package common\behaviors * * Example * */ class LayoutsBehavior extends ActionFilter { /** * @var array * [ * 'column2'=>['edit','delete'], * 'column1'=>['view','print'] * ] *...
true
d02628cdf207580656fba43338f1ad4b1980ca72
PHP
samuditha99/IoT-IMS
/admin/ajax/load-diameter-using-companyname.php
UTF-8
490
2.546875
3
[]
no_license
<?php include "../../user/connection.php"; $companyName = $_GET['companyname']; $sql = "SELECT DISTINCT diameter FROM tire_info WHERE companyname='$companyName'"; $res = mysqli_query($conn, $sql); ?> <select class="span11" name="diameter" onchange="select_diameter(this.value, '<?php echo $companyName; ?>')"> <option>Se...
true
a2718913013ad27d3baa5d95e76be5fa82b15157
PHP
tomraian/ED-Learning
/admin/editclass.php
UTF-8
10,321
2.578125
3
[]
no_license
<?php $title = "Sửa thông tin lớp học"; include './inc/sidebar.php'; include '../classes/courses.php'; include '../classes/class.php'; ?> <?php $class = new classOfCourse(); if(!isset($_GET['classId']) || $_GET['classId'] == NULL) { echo "<script>window.location = 'listclass.p...
true
499c14507c42a6043e590949473bdcee2a214c86
PHP
Reed-Jacob/cs313-php
/web/mymusicratings/login.php
UTF-8
971
2.625
3
[]
no_license
<?php require ('model/database.php'); // Form data $username = $_POST['username']; $password = $_POST['password']; // Get hashed password $query0 = $db->prepare("SELECT password FROM public.user WHERE username = '$username'"); $query0->execute(); // Check password if ($query0) { $result0 = $query0->fetch(); $has...
true
8e963754a8ad266284e03ea5a4cbdfa1efb9af9b
PHP
ricojesus/GoldFightPlanner
/vendor/local/classes/Model/Aeroporto.php
UTF-8
1,003
2.65625
3
[ "Unlicense" ]
permissive
<?php namespace GoldFlightPlanner\Model; require_once 'vendor/autoload.php'; use GoldFlightPlanner\DB\Sql; use GoldFlightPlanner\Model; class Aeroporto extends Model { const SESSION = "Aeroporto"; protected $fields = [ "Icao", "Nome", "Metar" ]; public function __construct(){ $this->setIcao(null); $th...
true
a7bdc165b4d4b10f415bd7b01d296c64806f7b5c
PHP
RArielVillalobos/dxbDos
/models/Usuario.php
UTF-8
3,153
2.78125
3
[]
permissive
<?php namespace app\models; use Yii; /** * This is the model class for table "usuario". * * @property int $idUsuario * @property string $nombre * @property string $clave * @property string $telegram * @property int $idRol * * @property Tiempo[] $tiempos * @property Rol $idRol0 * @property UsuarioEvento[] ...
true
1cb80be5a47895ff30327790997b743c753a6624
PHP
lucasroman/tutorial
/tests/Feature/RealTimeBackTest.php
UTF-8
919
2.515625
3
[]
no_license
<?php namespace Tests\Feature; use Illuminate\Foundation\Testing\RefreshDatabase; use Illuminate\Foundation\Testing\WithFaker; use Tests\TestCase; class RealTimeBackTest extends TestCase { use RefreshDatabase; /** * A basic feature test example. * * @return void */ public function te...
true
ffff91ab5c650cfc81aa3ba0eced9a7d6999207b
PHP
jivres/frenchselect
/src/B2bBundle/Form/DateTimeTransformer.php
UTF-8
944
2.671875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: sowipheur * Date: 04/12/2017 * Time: 13:43 */ namespace B2bBundle\Form; use DateTime; use Symfony\Component\Form\DataTransformerInterface; class DateTimeTransformer implements DataTransformerInterface { /** * Transforms an object (DateTime) to a string. * ...
true
7aad16ef506d6967b09468504d4be133411e9b92
PHP
benoitdavidfr/geom2d
/bbox.inc.php
UTF-8
9,791
3.25
3
[]
no_license
<?php /*PhpDoc: name: bbox.inc.php title: bbox.inc.php - définition d'une boite englobante (BBox) functions: classes: doc: | Fonctions de gestion des boites englobants doc: | journal: | 25/6/2016 - ajout de asPolygon - ajout de la possibilité de créer un BBox à partir de 2 points 8/6/2016 - m...
true
e77ab5096b3ef30b5d8c0207a4f1c7bbbf48228d
PHP
HalaAlmomanii/Laravel-Package
/tests/Feature/FileParseTest.php
UTF-8
2,247
2.875
3
[]
no_license
<?php namespace hala\Press\Tests; use Carbon\Carbon; use hala\Press\FileParser; class FileParseTest extends TestCase { /** @test */ public function the_head_and_body_split() { $file = (new FileParser(__DIR__ . '/../files/testfile.md')); $data = $file->getRawData(); $this->assert...
true
2145e850bd86358acaa766040ffad09dcf0c1db0
PHP
furbyus/Sips
/src/Traits/ReadOnly.php
UTF-8
1,231
2.953125
3
[]
no_license
<?php namespace Furbyus\Sips\Traits; trait ReadOnly { public function __get($name) { //Metodo para cojer las variables mediante $suministro->variable if (isset($this->{"_$name"})) { $requested = $this->getReflectedProperty("_$name", $this); } else { if (isset($this->{"$...
true
c190b4cec682d40e5fc19018d90ae573c8587a68
PHP
fengshiyou/api-popo-blog
/app/Http/Controllers/comment/CommentController.php
UTF-8
5,543
2.59375
3
[]
no_license
<?php namespace App\Http\Controllers\Comment; use App\model\BlogList; use App\Model\Comment; use Illuminate\Http\Request; use App\Http\Controllers\Controller; class CommentController extends Controller { /** * @api {post} /api/comment/add 01-添加评论 * @apiDescription 添加评论-需要登陆验证 * @apiGroup 04-commen...
true
43e70fb8434f62e2bd67159e7042cc790e892ea1
PHP
JusMReid/EverydayArt
/adjDTO.php
UTF-8
583
2.796875
3
[]
no_license
<?php public class adjDTO { protected $adj_id; protected $aresult; protected $atag; public function __construct($adj_id, $aresult, $atag) { $this->adj_id = $adj_id; $this->aresult = $aresult; $this->atag = $atag; } public function setadjId($adj_id) { $this->adj_id = $adj_id; } public function getadjId() { ret...
true
d0deadcfdad444cf1f69bd55dafe50bf2fecc297
PHP
gmeyer1/CMPUT391
/edit_group.php
UTF-8
8,936
2.765625
3
[]
no_license
<?php /* * CMPUT 391 Project Group 6 * Written by Glenn Meyer and Dylan Stankievech * November 26, 2014 * * */ require_once("helper.php"); session_start(); if (!$_SESSION['username']) { // If user hasn't started a session, redirect to login page redirect('login.php'); } else if (!isset($_POST['group_id'...
true
6d2570b24bd9a88bc5bc597749cf4d5d147099ce
PHP
tjgazel/scs-game
/database/migrations/2018_05_23_104250_create_distributors_table.php
UTF-8
972
2.515625
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateDistributorsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('distributo...
true
9f4c06c4ea816ed5d5909ea2b8e0d4f7c837fcb2
PHP
SubN3o/HackatonOpenFoodFacts
/search.php
UTF-8
4,257
2.53125
3
[]
no_license
<?php $position = 'search'; include 'bdd.php'; include 'header.php'; include 'navbar.php'; $error = 0; if(isset($_GET['search'])){ $search = $_GET['search']; if(strlen($search)==13&&is_numeric($search)){ header('Location: produit.php?id='.$search); exit; } $search = str_replace(' ', '+',...
true
f298f5f23b65ab4d6f5dbfa45c634758056ce9a7
PHP
csdetschjr/slc
/class/ajax/POSTNewIssue.php
UTF-8
1,979
2.625
3
[]
no_license
<?php class POSTNewIssue extends AJAX { private $_table = "slc_visit_issue_index"; public function execute() { if ( !isset($_REQUEST['visit_id']) ) { $this->addResult("msg", "No Visit ID Supplied"); throw new Exception('Missing visit ID.'); return; } if ( !isset($_REQUEST['problem_id']) ) { ...
true
a5049fec6842cb45e6afe8dc3785c43dd294a72c
PHP
rahulyhg/vedicshadi
/oops/factorial.php
UTF-8
1,116
4
4
[]
no_license
<html> <body> <title>Factorial Program in PHP</title> <!-- form post method --> <form action="" method="post"> <label>Enter Number to calculate Factorial</label> <input type="text" name="number" /> <input type="submit" value="Get Factorial"> </form> </body> </html> <?php //check for post value if there then a...
true
777f5cb355c268c1cf11ec0767199ca82dd4c48d
PHP
nguyentuan2k1/backend_week9
/database/migrations/2021_06_07_021857_create_trainer_table.php
UTF-8
1,014
2.515625
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateTrainerTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('trainer', funct...
true
ddad24651e1d19b5ad88a9955de7c81879f99f92
PHP
posytive/lunr
/src/Lunr/Vortex/APNS.php
UTF-8
6,622
2.71875
3
[ "MIT" ]
permissive
<?php /** * This file contains the class APNS which stands for Apple Push Notifications * System. This class allows to send push notifications to Apple devices and * manage the list of devices which are recorded. * * PHP Version 5.3 * * @category Libraries * @package Vortex * @subpackage Libraries * @au...
true
35bdf406b2dce5dbe49c52d8435777fff3adb910
PHP
vishalmuns/sqlscripter
/ajax.php
UTF-8
1,563
2.671875
3
[ "MIT" ]
permissive
<?php if($_POST["type"] == "save") { $myfile = fopen("doclineSQL.txt", "w+") or die("Unable to open file!"); $txt = $_POST["text"]; fwrite($myfile, $txt); fclose($myfile); echo "Success saving!"; } else if($_POST["type"] == "load") { $file = file_get_contents('doclineSQL.txt', FILE_USE_INCLUD...
true
aef4e283809cbda9e60675d168a158f565283c36
PHP
phug-php/phug
/tests/Phug/Lexer/Scanner/EachScannerTest.php
UTF-8
3,910
2.828125
3
[ "MIT" ]
permissive
<?php namespace Phug\Test\Lexer\Scanner; use Phug\Lexer\Token\EachToken; use Phug\Lexer\Token\ExpansionToken; use Phug\Lexer\Token\TagToken; use Phug\Lexer\Token\TextToken; use Phug\Test\AbstractLexerTest; /** * @coversDefaultClass \Phug\Lexer\Scanner\EachScanner */ class EachScannerTest extends AbstractLexerTest ...
true
c28e784ed95d617b072b4b792af93e587b21047b
PHP
GNELEZIE/token
/class/Likes.class.php
UTF-8
2,037
2.890625
3
[]
no_license
<?php class Likes { public function __construct(){ $this->bdd = bdd(); } //Cerate public function addLikes($dateLikes,$userId,$pubId){ $query = "INSERT INTO likes(date_likes, user_id, pub_id) VALUES (:dateLikes, :userId, :pubId)"; $rs = $this->bdd->prepare($query);...
true
4fd59d3a63461530b915d87a177772206bc4886b
PHP
olegbaturin/yii2-linker-behavior
/src/updaters/BaseUpdater.php
UTF-8
1,721
2.65625
3
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
<?php namespace voskobovich\linker\updaters; use voskobovich\linker\interfaces\LinkerBehaviorInterface; use voskobovich\linker\interfaces\UpdaterInterface; use yii\base\Behavior; use yii\base\BaseObject; use yii\db\ActiveQuery; /** * Class BaseUpdater. */ abstract class BaseUpdater extends BaseObject implements Up...
true
55d2698157aad04bfcf8fdf554ead800aa77bed5
PHP
fritids/pronamic-theme-updater-server
/pronamic-theme-updater-server.php
UTF-8
5,977
2.84375
3
[]
no_license
<?php // Get the server $theme_server = new Pronamic_Theme_Updater_Server(); // Configuration $theme_server ->set_url( 'http://themes.pronamic.nl/index.php' ) ->set_user_agent( 'PronamicWordpressThemeUpdate' ); // Add a theme $theme_server ->add_theme( 'emg', 'flyingDolphin', array( 'file' => 'themes/emg....
true
79e9d24d2767c6745f83fe876129f9f4ff4a144b
PHP
nadavkav/RTL-BIDI-Hebrew-Moodle-Plugins
/mod/studynotes/db/upgrade.php
UTF-8
13,646
2.65625
3
[]
no_license
<?php //$Id: upgrade.php,v 1.6 2009/07/03 13:10:27 fabiangebert Exp $ // This file keeps track of upgrades to // the studynotes module // // Sometimes, changes between versions involve // alterations to database structures and other // major things that may break installations. // // The upgrade function in this file ...
true
f147d1bd79e8235f765b6a79265b89f33b0e04d5
PHP
montenigger/images
/images/AniGifsProcessor.php
UTF-8
30,992
2.609375
3
[]
no_license
<?php namespace montenigger\images; class AniGifsProcessor { // http://www.phpclasses.org/package/7353-PHP-Resize-animations-in-files-of-the-GIF-format.html public static $temp_dir; private $pointer = 0; private $index = 0; private $globaldata = array(); private $imagedata = array(); privat...
true
ca5885f83433a879ffe1506b6fd2f33847d2610f
PHP
senselab/CodeSensor
/HomeworkInspector_php/forgot_pwd.php
UTF-8
891
2.859375
3
[ "BSD-2-Clause" ]
permissive
<HTML> <HEAD> <title>Password Retrieval</title> </HEAD> <BODY> <h2> </h2><br/> <?php include_once ("config.php"); ?> <hr> <?php include_once ("account.php"); $id = $_POST["userid"]; $name = $_POST["username"]; if (array_key_exists($id, $users)==false) { echo "<font size=5 color=red>Account does not exist !</font>...
true
9d45e288e76f32d01cafa3dd18bffd973f3fcc7c
PHP
lamfeng/Laravel-Challenge-API-Voice
/VoiceController.php
UTF-8
1,992
2.546875
3
[]
no_license
<?php namespace App\Http\Controllers\Voice; use Illuminate\Http\Request; use App\Models\Question; use App\Models\Voice; use App\Http\Controllers\Controller; use App\Http\Requests\VoiceRequest; use Exception; class VoiceController extends Controller { public function voice(VoiceRequest $request) { tr...
true
a291753f89c2cf353b9c3161374bd57c5e307db8
PHP
papyrusdo/tomnomnom.com
/public/index.php
UTF-8
2,548
2.53125
3
[]
no_license
<?php header("Content-type: text/html; charset=utf-8"); date_default_timezone_set('UTC'); // Hacky but functional define('IN_PRODUCTION', (bool) ($_SERVER['SERVER_NAME'] === 'tomnomnom.com')); if (!IN_PRODUCTION){ error_reporting(-1); ini_set('display_errors', 'on'); ini_set('html_errors', 'on'); } define('ROOT_...
true
8a0453d7d4ef51546893c0c2dae6653f4fa002eb
PHP
mqasim0012/Innoventions19
/registrations/gateway.php
UTF-8
1,604
2.609375
3
[]
no_license
<?php if (isset($_POST['submitInstitution'])) { $institutionName = $_POST['institutionName']; $institutionContact = $_POST['institutionContact']; $institutionEmail = $_POST['institutionEmail']; $accomodations = $_POST['accomodations']; if (empty($institutionName)) { echo "Institution's na...
true
a01d7e86b39ba174c0c4604e266cebd5ef91924b
PHP
blankqwq/php_reforword_to_sae
/index.php
UTF-8
3,239
2.546875
3
[]
no_license
<?php header('Content-type: application/json'); function getRequestHeader($name = '') { $header = []; if (function_exists('apache_request_headers') && $result = apache_request_headers()) { $header = $result; } else { foreach ($_SERVER as $key => $val) { if (0 === strpos($key, 'H...
true
28abcd03a66027e3c723f49ffe1d0f14a86c49ab
PHP
janinemarie/web182
/ch09_ex1/index.php
UTF-8
2,997
3.234375
3
[]
no_license
<?php //set default values $name = ''; $email = ''; $phone = ''; $message = 'Enter some data and click on the Submit button.'; //process $action = filter_input(INPUT_POST, 'action'); switch ($action) { case 'process_data': $name = ucwords(filter_input(INPUT_POST, 'name')); $email = filter_input(IN...
true
b4d163971c6fd14a19404abeb930b580b2f210e0
PHP
chadyred/demandeTravaux
/src/MairieVoreppe/DemandeTravauxBundle/Entity/MOEPersonneMorale.php
UTF-8
3,375
2.734375
3
[ "BSD-3-Clause", "MIT" ]
permissive
<?php namespace MairieVoreppe\DemandeTravauxBundle\Entity; use Doctrine\ORM\Mapping as ORM; use MairieVoreppe\DemandeTravauxBundle\Model\MaitreOeuvre; /** * MOAPersonneMorale * * @ORM\Table() * @ORM\Entity(repositoryClass="MairieVoreppe\DemandeTravauxBundle\Entity\MOEPersonneMoraleRepository") */ class MOEPerso...
true
88187b4c3fe7ced797d7deb2aba76c257335a608
PHP
eiman-kased/starbulls
/forms/review.form.php
UTF-8
4,049
3.109375
3
[]
no_license
<?php //display errors so we know if there is a problem ini_set('display_errors', 1); // we need the User and Review classes require_once 'src/User.php'; require_once 'src/Review.php'; // initialize empty variables $comment = ''; $score = ''; $userEmail = ''; $userId = 0; // set an empty error array $error = array()...
true
4b31dc6cc32387ca48fe8bb5622f3b651adfaaf8
PHP
Swampy821/PublIRC
/commands/currency/currency.php
UTF-8
2,673
2.8125
3
[]
no_license
<?php ////////////////// // Currency Plugin for PublIRC // // Version: 0.1: // Initial Creation // ////////////////// include_once('currency_plugin.php'); class currency extends currency_plugin implements IRCScript { public function __construct($bot) { $this->bot = $bot; } publi...
true
d7c7458cf9f81ab6eff704e7679f41a9eac23033
PHP
Tiagoksio/estudandoPHP
/cursoEmVideo/php_POO/ex06_relacionamentoEntreClasses/Luta.php
UTF-8
2,848
3.59375
4
[]
no_license
<?php require_once "Lutador.php"; class Luta { //Atrobutos private $desafiado; private $desafiante; private $rounds; private $aprovada; //Métodos public function marcarLuta($l1, $l2) { if ($l1 -> getCategoria() == $l2 -> getCategoria()) { echo "<p>Categorias de peso difer...
true
ed4a888dd18167a7ed1a88279e0dbd20afbc9b33
PHP
aamgoulart/final-work-back
/api/objects/accounts.php
UTF-8
822
3.03125
3
[]
no_license
<?php class Accounts { // database connection and table name private $conn; // object properties public $user_id; public $nickname; public $email; public $password; public function __construct($db){ $this->conn = $db; } function verify($email, $password){ ...
true
ff50b4ae83cb36038a08bfb388fe1bd1ddbb0f05
PHP
open-serializer/open-serializer
/tests/Stub/BooleansTyped.php
UTF-8
341
2.515625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace OpenSerializer\Tests\Stub; final class BooleansTyped { private bool $boolean; private ?bool $nullableBoolean; public function __construct(bool $boolean, ?bool $nullableBoolean) { $this->boolean = $boolean; $this->nullableBoolean = $null...
true
029a8de2d0c55e72309eae31e234c01181d21e84
PHP
reinaldoguth/segauto
/php/conn.php
UTF-8
3,533
2.609375
3
[]
no_license
<?php error_reporting(E_ERROR); $jsRtn = Array( code => 0, data => [], mensagem => "Faltam parâmetros" ); $acao = $_REQUEST['acao']; $id = $_REQUEST['id']; $doc = $_REQUEST['doc']; $data = $_REQUEST['data']; ...
true
5ae453d29800d9dc313d64d154881ba38c7aed17
PHP
dbruila/shop-online
/Shop/edycjaKonta_action.php
UTF-8
1,682
2.59375
3
[]
no_license
<?php if (isset($_POST['imie']) && isset($_POST['nazwisko']) && isset($_POST['email']) && isset($_POST['telefon'])) { $imie = filter_var(trim($_POST['imie']), FILTER_SANITIZE_STRING); $nazwisko = filter_var(trim($_POST['nazwisko']), FILTER_SANITIZE_STRING); $email = filter_var(trim($_POST['email']), FILTER_...
true
43b3f5c541ccc229bde779f7d90164376754fc04
PHP
fearnoevil7/LAMP
/OOP_Advanced/Animal/Dragon.php
UTF-8
645
4.03125
4
[]
no_license
<?php require('Animal.php'); class Dragon extends Animal { public function __construct($nombre) { $this->Name = $nombre; $this->Health = 170; } public function fly() { echo "<br>" . $this->Name . " is flying!!!!!!!"; $th...
true
fabb4014a6a76f6cc797cdcc389b3aa8ebb08c04
PHP
php-library-league/demo
/core/numericals/Temperature.php
UTF-8
973
2.96875
3
[ "MIT" ]
permissive
<?php /** * Temperature * * Working with temperature conversions * * @package PHP_Library * @subpackage Core * @category Numericals * @author Zlatan Stajić <contact@zlatanstajic.com> */ require_once __DIR__ . '/../../../vendor/autoload.php'; use PHP_Library\Core\Numericals\Temperature; use PH...
true