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
c8eab8314483dafb01c365a275517b2c19ff0f1c
PHP
BabosSrc/BroadcastUI-Source-Code-
/src/MulkiAqi192/BroadCast/Main.php
UTF-8
1,812
2.78125
3
[]
no_license
<?php namespace MulkiAqi192\BC; use pocketmine\Server; use pocketmine\Player; use pocketmine\plugin\PluginBase; use pocketmine\command\Command; use pocketmine\command\CommandSender; use pocketmine\event\Listener; class main extends PluginBase implements Listener { public function onEnable(){ ...
true
d250193d4fc19a88c08f55b18ba3ea192ed75b95
PHP
satodev/sChat
/classes/Controller.class.php
UTF-8
3,797
3.0625
3
[]
no_license
<?php class Controller { public function __construct() { //load classes $this->loadAllClasses(); //routes init $this->router(); } /* * if folder_name && class_name set -> include the specific file [TODO] * if folder_name || class_name set -> all folder || the specific class if founded [TODO] * load...
true
9799388bb62f07f948a924bd4c7c6fb03539b527
PHP
msoruco31/php-rest-poo
/config/routes.php
UTF-8
1,941
2.53125
3
[]
no_license
<?php include_once ("global.php"); $config = Config::singleton(); include_once ($config->get("basePath").$config->get("controllerPath")."FrontController.php"); include_once ($config->get("basePath").$config->get("controllerPath")."UserController.php"); $dispatcher = FastRoute\simpleDispatch...
true
7c8d163f2ad560ddad2395ced08e4a48cec9610a
PHP
azimsai/cms-dev
/application/controllers/admin/article.php
UTF-8
1,541
2.546875
3
[]
no_license
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Article extends Admin_Controller { public function __construct() { parent::__construct(); $this->load->library('session'); $this->load->model('article_m'); } public function index() { //Fetch all articles $this->data['ar...
true
aba497239ed2767dd1f796c2d22865e224ebf5f1
PHP
xck438200/0000
/000000/php/day1/demo/function.php
UTF-8
78
2.96875
3
[]
no_license
<?php $num = foo(2,4); function foo($a,$b) { return $a + $b; } echo $num;
true
5a5967814bbe33d66fccbd74fe1c44f931c1cf80
PHP
vanessa2808/pizzaDelicious
/app/Models/Main.php
UTF-8
4,142
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Carbon\Carbon; use Illuminate\Database\Eloquent\Model; class Main extends Model { protected $table = 'main'; protected $fillable = ['title','description','image1','image2','image3','created_at','updated_at']; protected const RETURN_NUM_ZERO = 0; protected const RETURN_N...
true
e962d44372587c3b9917fa6c9ee9b72da6799c40
PHP
SemKoolen/PHP-MySQL-opdrachten
/H8/exersice.php
UTF-8
1,203
3.03125
3
[]
no_license
<!DOCTYPE html> <head> <title>Medicijnen</title> <link rel="stylesheet" type="text/css" href="style.css"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head> <body> <?php include("dbConnect.php"); $query = $db->prepare("SELECT * FROM medici...
true
d00bf485be566d4d960c2c67e6fa2f723b733c9f
PHP
zanvd/tpo3
/app/Models/Employee.php
UTF-8
807
2.6875
3
[]
no_license
<?php namespace App\Models; class Employee extends Model { protected $table = 'Employee'; protected $primaryKey = 'employee_id'; /** * One Employee belongs to one Person. * * @return \Illuminate\Database\Eloquent\Relations\BelongsTo */ public function person () { return $this->belongsTo( 'App\Model...
true
bcc6c5374b326669fd2b313eb4a2ad9c175918af
PHP
MrX456/Linguagens-Diversas
/PHP/10-Laço For/Pares.php
UTF-8
289
3.828125
4
[]
no_license
<?php //Exibir todos os pares de 1 a 30 e mostrar o total $totPar = 0; for($i = 1; $i <= 30; $i++) { if($i % 2 == 0) { echo "$i <br/>"; $totPar++; } } echo "Foram encontrados $totPar pares no intervalo de 1 a 30"; ?>
true
52a060df8adafe15c22e9ed30904be4bc4cda537
PHP
skphp-ls/demo
/sys3/wx/WxCryptClass.php
UTF-8
1,289
2.609375
3
[]
no_license
<?php /** * 加密消息 */ include_once "crypt/wxBizMsgCrypt.php"; class WxCrypt { // 解密 public static function decryptMsg($from_xml) { $msg_xml = ''; $arr_data = AppIdConf::$arr_signature; //save_log("arr_data.txt", 'arr_data:' . json_encode($arr_data) . "\n");y if($arr_data['encrypt_type'] == 'aes') { $co...
true
c906d9d2ce323ee323819e457a261afc7aafaaef
PHP
nvieirafelipe/graviola-project
/plugins/ckWebServicePlugin/lib/vendor/ckWsdlGenerator/xsd/ckXsdType.class.php
UTF-8
4,689
2.984375
3
[ "MIT" ]
permissive
<?php /** * This file is part of the ckWsdlGenerator * * @package ckWsdlGenerator * @author Christian Kerl <christian-kerl@web.de> * @copyright Copyright (c) 2008, Christian Kerl * @license http://www.opensource.org/licenses/mit-license.php MIT License * @version SVN: $Id: ckXsdType.class.php 12...
true
3c04a95bc53e9fba6d57108e8e99a5f726666d73
PHP
Fat-bear/rpc
/kernel/autoload.php
UTF-8
1,620
2.65625
3
[]
no_license
<?php /** * * 类自动加载实现 * * TODO 实际业务中建议用composer的autoload * * 如果想自己实现加载,可以把下面内容复制到自己业务代码中并再次加工 * * 保留$namespace中现有部分,但要注意$root中dirname()的次数,最终指向站点根目录 * 所谓站点根目录,一般是指[composer install]后生成的vendor路径的上一层 * * 修改原有定义: * $namespace = [ * 'laocc\\gds\\' => "{$root}/vendor/laocc/gds/kernel/", * ]; ...
true
d52f8110b8672663dac28b5678b498fa6dea3dbd
PHP
agungdhewe/fgtacloud4u
/apps/fgta/framework/crontab/cli/readsvg.php
UTF-8
347
2.53125
3
[ "BSD-3-Clause" ]
permissive
<?php $svgFile = __DIR__ . '/test_icon.svg'; $svgDoc = new DOMDocument(); $svgDoc->load($svgFile); $pagecolor=""; $svgEl = $svgDoc->documentElement; foreach ($svgEl->childNodes as $el) { // echo $el->nodeName . "\r\n"; if ($el->nodeName=='sodipodi:namedview') { $pagecolor = $el->getAttribute('pagecolor'); break...
true
371fd725152132f2a0b0f93ab3baa33c22b19989
PHP
primephp/framework
/Html/Base/HTMLDiv.php
UTF-8
346
2.765625
3
[ "MIT" ]
permissive
<?php namespace Prime\Html\Base; /** * Descrição da Classe HTMLDiv * * @author Elton Luiz */ class HTMLDiv extends HTMLElement { public function __construct($nameId = null) { parent::__construct('div'); if (!is_null($nameId)) { $this->id = $nameId; $this->name = ...
true
42594d5e96d6f9976410c49e3d943f9fe7ddbc80
PHP
josefnpat/dotfiles
/scripts/eve.php
UTF-8
639
2.5625
3
[]
no_license
#!/usr/bin/php <?php $api_url = "https://api.eveonline.com/server/ServerStatus.xml.aspx"; $gmt = -5; while(1){ $xml = file_get_contents($api_url); if($xml !== FALSE){ $status = new SimpleXMLElement($xml); $local = time()-$gmt*60*60; $eve = strtotime($status->cachedUntil); $cache = $eve-$local; ...
true
4efade4f06e8625b2d9a5032f3837651f0056461
PHP
AkshayGogeri/Hostel-DB
/Update Queries/Manager_U.php
UTF-8
1,437
2.59375
3
[]
no_license
<html> <head> <title>Add New Record in MySQL Database Manager Table</title> <link href="css/bootstrap.min.css" rel="stylesheet"> </head> <body> <?php if(isset($_POST['add'])) { $servername="localhost"; $username="root"; $password=""; $conn=mysqli_connect($servername, $username, $password); if(!$conn) die("Con...
true
1398474361f87450146e1bacde502dfc86c77477
PHP
AreenaTejani/A-Database-Based-Network-Game
/Fourthpage.php
UTF-8
3,406
2.640625
3
[]
no_license
<html style='background-image:url(beach2.png);' > <center> <p style="margin-top:200px;font-size:50px;font-weight:bold;font-family:AR CHRISTY;">IDENTIFICATION ZONE</p> <form method=GET action=Fourthpage.php> <input style="width:200;height:40px;font-size:20px;" type=text name=ame maxlength="10" / ><br><br> <...
true
ab5165ccd655e464ad788d67273299c5fec532fb
PHP
debymarciano/Music
/music/conexao/model/conteudo.php
UTF-8
2,115
3.109375
3
[]
no_license
<?php include '../../conexao/Conexao.php'; class Conteudo extends Conexao{ private $song; private $album; private $execution; private $artist; function getSong() { return $this->song; } function getAlbum() { return $this->album; } function getEx...
true
84d8ac22883da17e91e13dc27fb56c26383eaeba
PHP
pablososa/cqvweb
/app/Controller/IvrLlamadaEntrantesController.php
UTF-8
3,265
2.53125
3
[]
no_license
<?php App::uses('AppController', 'Controller'); /** * IvrLlamadaEntrantes Controller * * @property IvrLlamadaEntrante $IvrLlamadaEntrante * @property PaginatorComponent $Paginator */ class IvrLlamadaEntrantesController extends AppController { /** * Components * * @var array */ public $components = array('Pag...
true
2e98aeba6929c6f0462313d73590e2c4a37b8e97
PHP
MegaRob/elevation-
/testers.php
UTF-8
743
2.640625
3
[]
no_license
<?php require_once 'header.php'; if (!$loggedin) die(); $sql = "SELECT grade, person, color FROM leadRoutes WHERE grade = "?"; $stmt = $mysqli->prepare($sql); $stmt -> bind_param("s" $_GET['q']); $stmt -> execute(); $stmt -> store_result(); $stmt -> bind_result($name, $grade, $person, $date, $color)...
true
7a9f84b08f1153969be9a33b3f04f0556cfa11d7
PHP
like-share-v2/app-server
/app/Kernel/functions.php
UTF-8
1,458
2.6875
3
[]
no_license
<?php /** * @copyright * @version 1.0.0 * @link */ if (!function_exists('di')) { /** * di * * @param string $id * @return mixed */ function di(string $id) { return \Hyperf\Utils\ApplicationContext::getContainer()->get($id); } } if (!function_exists('toTree')) { ...
true
43e4cde806e089c1cb4c1fbdeda5220eb97a57cb
PHP
whb2100/ffc1
/code/report/data/ReportContentFunction.php
UTF-8
44,686
2.65625
3
[]
no_license
<?php namespace report\data; class ReportContentFunction { public static function getHeaderContent($project, $currency_type, $type = 0) { $date = date('Y-m-d', time()); $time = date('H:i:s', time()); @$language = $_SESSION['language']; $logo = "../../images/logo-$language.png"; if ($currency...
true
76f8cfbe3a218d52fbea42cfa5b13e19f0e1c9b4
PHP
victorbrodsky/order-lab
/orderflex/src/App/UserdirectoryBundle/Controller/TelephonyController.php
UTF-8
32,912
2.5625
3
[ "BSD-3-Clause", "CC0-1.0", "Apache-2.0", "MIT" ]
permissive
<?php namespace App\UserdirectoryBundle\Controller; use App\UserdirectoryBundle\Controller\OrderAbstractController; use App\UserdirectoryBundle\Entity\AccessRequest; use App\UserdirectoryBundle\Entity\UserRequest; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Annotation\Route; use Symfo...
true
f110c1ee8eeee2692a095a3d08ed5c95d832960f
PHP
julisana/gop-inventory
/app/helpers/common.php
UTF-8
1,189
2.84375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: lisa * Date: 2019-01-08 * Time: 17:01 */ if ( !function_exists( 'redirect' ) ) { /** * Redirect the user to a specific location. * * @param $location */ function redirect( $location ) { header( 'Location: ' . $location ); ex...
true
10ff188cb46f052be1d8d96b8725b3609364332e
PHP
SandipanDGit/PHP-authentication-and-CRUD
/update.php
UTF-8
944
2.6875
3
[]
no_license
<?php include("functions.php");?> <?php list($validity, $con) = update(); if($validity === 0){ $result = $con; //error } else{ $result = mysqli_affected_rows($con) . " row(s) affected"; } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport...
true
4fb719a913162a32d8ec423b30b876c0ab0f1992
PHP
SickAssApp/crawler
/app/Library/Services/CrawlFunc.php
UTF-8
3,513
2.71875
3
[]
no_license
<?php namespace App\Library\Services; use Illuminate\Http\Request; use Symfony\Component\DomCrawler\Crawler; use GuzzleHttp\Exception\GuzzleException; use GuzzleHttp\Client; use Exception; use App\Page; class CrawlFunc { public function __construct() { $this->client = new Client([ 'tim...
true
f41ea04a209c7e47b6865167d25e5990867e354a
PHP
syahirahshamshudin/dfp50193_latihan_CRUD
/simpan.php
UTF-8
438
2.59375
3
[]
no_license
<?php require 'conn.php'; $name = $_POST['name']; $ic = $_POST['ic']; $sql = "INSERT INTO senarai (name, ic) VALUES (?, ?)"; $stmt = $conn->prepare($sql); $stmt->bind_param('ss', $name, $ic); $stmt->execute(); if ($mysqli->error) { ?> <script> alert('Maaf! Nama tersebut sudah wujud dalam senarai'); ...
true
0a30ec22e3386e071862d3dd6c39da55b6322e39
PHP
MichaelTzach/Coupons-Server
/views/signup_form.php
UTF-8
3,744
2.75
3
[ "Apache-2.0" ]
permissive
<?php function print_signup_form() { global $firstname_err, $lastname_err, $email_err, $phonenumber_err, $date_of_birth_err, $username_err, $password_err, $gender_err; global $firstname, $lastname, $email, $phonenumber, $date_of_birth, $username, $password, $interests, $gender; echo '<form role="form" action=...
true
9f4b8e7f502cac5e20498730eeb575d7aa819117
PHP
d8vjork/fjord
/src/Crud/CrudIndexTable.php
UTF-8
5,841
2.578125
3
[ "MIT" ]
permissive
<?php namespace Fjord\Crud; use Closure; use Fjord\Support\VueProp; use Illuminate\Support\Arr; use Fjord\Vue\Crud\CrudTable; use Illuminate\Database\Eloquent\Builder; class CrudIndexTable extends VueProp { /** * Crud index table attributes. * * @var array */ protected $attributes = []; ...
true
9cfd0cb85900c758cc6826340cdc7d455a3e573b
PHP
McCrack/audi
/www/core/wordlist.php
UTF-8
1,390
2.84375
3
[]
no_license
<?php class Wordlist{ public $dictionary=array(); public function __construct($wordlist="", $lang=USER_LANG){ if(is_array($wordlist)){ foreach($wordlist as $file){ if(file_exists("localization/".$file.".json")){ $subwl = JSON::load("localization/".$file.".json"); $this->dictionary = array...
true
2a117d6cd8bde8eb229e3ed358400e5ff4e7568a
PHP
Sorgor/yapf
/Http/Upload.php
UTF-8
873
2.84375
3
[]
no_license
<?php class yapf_Http_Upload { var $file; var $tmp_name; var $name; var $extension; var $type; var $fileName; var $uploadPath; public function __construct($name) { if(isset($_FILES[$name])){ foreach($_FILES[$name] as $key => $value) { $this...
true
3a31258c4983b42cbac64a83b1f27296ad6f2159
PHP
johnsonj561/Sharpcut
/php/upload-article.php
UTF-8
2,123
2.9375
3
[]
no_license
<?php require_once('connect.php'); //variable to detect a successful image upload $image_success = 1; //extract testimonial data $date = strip_tags($_POST['date']); $title = strip_tags($_POST['title']); $title = mysqli_real_escape_string($link, $title); $article = strip_tags($_POST['article']); $article = mysqli_real_e...
true
13ad45344fcdf984ac4fecb1b801f1dc1d6df2e0
PHP
ezesaf/trip-builder
/app/Repositories/EloquentAirportRepository.php
UTF-8
1,116
3.09375
3
[ "MIT" ]
permissive
<?php namespace App\Repositories; use App\Models\Airport; use App\Contracts\Repositories\AirportRepository; class EloquentAirportRepository implements AirportRepository { /** * The Airport model. * * @var Airport */ protected $model; /** * EloquentAirportRepository constructor....
true
55d7f7c122b458645e4f4fa7259b1a6702dcb02f
PHP
andersonfantw/bs4_iii
/libs/uploadimage.class.php
UTF-8
1,481
2.625
3
[]
no_license
<?php require_once LIBS_PATH.'/class.upload/class.upload.php'; class uploadimage extends upload { private $file_upload_path = null; public function __construct($file,$path='') { parent::upload($file,'zh_TW'); if(!empty($path)){ $this->file_upload_path = $path; } } private function _create...
true
c5481bd4ae1f4978d60106ee5b24f336a82baf72
PHP
inlm/schema-generator
/src/Utils/PhpClassFinder.php
UTF-8
909
3.0625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace Inlm\SchemaGenerator\Utils; class PhpClassFinder { /** @var string[] */ private $directories; /** * @param string[] $directories */ public function __construct(array $directories) { $this->directories = $directories; } /** * @return PhpClasses */ public function ...
true
903d4386b2eec1bc5248d96ab1b0e148a084b2f3
PHP
julibo/msfoole-kernel
/app/Service/BaseService.php
UTF-8
1,610
2.578125
3
[ "Apache-2.0" ]
permissive
<?php namespace App\Service; use Julibo\Msfoole\Facade\Config; use Julibo\Msfoole\Facade\Log; use Julibo\Msfoole\Helper; use Julibo\Msfoole\HttpClient; use Julibo\Msfoole\HttpRequest; use Julibo\Msfoole\Exception; abstract class BaseService { /** * @var */ protected $request; /** * BaseS...
true
7a90a46df3302e154c548c84afa4d4384e26e842
PHP
nwebapp/codeigniter-nicedit-uploader
/controllers/wysiwyg.php
UTF-8
7,331
2.75
3
[]
no_license
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /** * NicEdit - Micro Inline WYSIWYG * Copyright 2007-2009 Brian Kirchoff * * NicEdit is distributed under the terms of the MIT license * For more information visit http://nicedit.com/ * Do not remove this copyright message * * nicUpload Reci...
true
2682adc49025b6fbca7465d750e45b491495d7bb
PHP
kkazmi/image-chain
/register.php
UTF-8
9,935
2.53125
3
[ "MIT" ]
permissive
<?php include_once('common.php'); $allowed = array(".", "-", "_"); $email_id = ""; $password = ""; $confirmpassword = ""; $spendingpassword = ""; $confirmspendingpassword = ""; $error = array(); if(isset($_POST['btnsignup'])) { // var_dump($_POST); $email_id = $_POST['txtEmailID']; $password = $_POST['signuppassw...
true
f583c16257fe5128382ef8eed93de163fcc71732
PHP
BulletDigitalSolutions/Gunshot
/src/Builders/ImageResizerBuilder.php
UTF-8
1,854
2.96875
3
[ "MIT" ]
permissive
<?php // Based on AWS Imagekit - https://www.youtube.com/watch?v=uVk-ffHeV7c namespace BulletDigitalSolutions\Gunshot\Builders; use BulletDigitalSolutions\Gunshot\Contracts\ResizerEngineContract; class ImageResizerBuilder { /** * @var string */ protected string $path; /** * @var Resizer...
true
dde0793776d09f02d057b9348071a7b7d87be463
PHP
3DaVinci/b2b-connector-example-php
/src/Connector/Gateway/Entity/B2bGatewayEntity.php
UTF-8
936
2.921875
3
[ "MIT" ]
permissive
<?php /** * @copyright Copyright (c) 2011 ООО «ТриДаВинчи» * @author Andrey Morozov */ namespace Connector\Gateway\Entity; /** * Class B2bGatewayEntity * @package Connector\Gateway\Entity */ abstract class B2bGatewayEntity { /** * Sets the attribute values in a massive way. * @param array $values ...
true
388905972019ba6d68d500923d8f397039e90452
PHP
icatholic/weixin
/lib/Weixin/Wx/Manager/Mall.php
UTF-8
1,551
2.84375
3
[ "MIT" ]
permissive
<?php namespace Weixin\Wx\Manager; use Weixin\Client; use Weixin\Wx\Manager\Mall\ImportOrder; use Weixin\Wx\Manager\Mall\ShoppingList; /** * 购物单是微信提供的小程序购物车和订单管理工具。小程序接入购物单后,购物车和订单商品将同步至购物单的“想买清单”和“已购订单”,同时也可以被微信用户搜索到。 * * 开发者可通过以下接口接入购物单: * * a. 导入“想买清单”:将用户在开发者小程序内的购物车信息导入“想买清单”; * * b. 导入“已购订单”:将用户在开发者小程序内完...
true
3b9ce126c2973cde54381bf7fe5a51d8e1a2513e
PHP
azeaujulien/SoftiaTest
/softiaTest/app/Http/Controllers/StudentPageController.php
UTF-8
825
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Model\Certificate; use App\Model\Convention; use App\Model\Student; use Illuminate\Http\Request; class StudentPageController extends Controller { public function OpenPage() { return view('student')->with('allConventions', Convention::all()); } pu...
true
a5bca73f43b1bd6aba4cd1d780ece15dfd464ebf
PHP
ekarincodizm/lovepet
/connect/connect.php
UTF-8
413
2.609375
3
[]
no_license
<?php $host = "db"; $db = "pet_db"; $u = "root"; $p = "1234"; $conn = new mysqli($host, $u, $p, $db); if (!$conn) { echo "Error: Unable to connect to MySQL." . PHP_EOL; echo "Debugging errno: " . mysqli_connect_errno() . PHP_EOL; echo "Debugging error: " . mysqli_connect_error() . PHP_EOL; e...
true
acc28cfb1f69d2af044b59f38c310999b6831616
PHP
mouaadBenAllal/todoapp
/todoproject/controllers/Todos.php
UTF-8
1,768
2.6875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: mouaad * Date: 08/10/2017 * Time: 14:13 */ class Todos extends Controller { /** * todos controller returned view die bij todomodel hoort. */ protected function all() { $viewmodel = new TodoModel(); $this->returnView($viewmodel->all(),t...
true
20826a2d8076a763a86e7f8fad785657537a7ce3
PHP
xiangzhanyou/eleme-openapi-php-sdk
/src/ElemeOpenApi/Api/RecruitmentService.php
UTF-8
1,032
2.59375
3
[ "MIT" ]
permissive
<?php namespace ElemeOpenApi\Api; /** * 招聘市场服务 */ class RecruitmentService extends RpcService { /** 简历回传 * @param $resume 简历信息 * @return mixed */ public function upload_resume($resume) { return $this->client->call("eleme.recruitment.uploadResume", array("resume" => $resume)); ...
true
34ca3b188ef5d56d888954864206ef5e4e1cad3f
PHP
pobrejuanito/lfl
/administrator/components/com_ariquiz/kernel/Web/Page/class.PageHelper.php
UTF-8
484
2.5625
3
[]
no_license
<?php defined('ARI_FRAMEWORK_LOADED') or die('Direct Access to this location is not allowed.'); class AriPageHelper extends AriObject { var $currentPage; function &getInstance() { static $instance = null; if (is_null($instance)) { $instance = new AriPageHelper(); } return $ins...
true
84ae860844cc5ce0828e9b45a575c9ddcc3ddc4f
PHP
ltarasiewicz/Battleship
/src/Battleship/Player.php
UTF-8
786
3.046875
3
[]
no_license
<?php namespace Battleship; use Battleship\Definitions\PlayingBoard; use Battleship\Definitions\Battleship; use Battleship\Helpers\ShipBuilder; class Player { private $playerNo; public $shipBuilder; public $playingBoard; public function __construct($playerNo, ShipBuilder $shipBuilder) ...
true
e3a9feb2148d47fe06b9bdf9b961eeca70b6e968
PHP
cboulanger/bibliograph
/src/server/lib/cql/NaturalLanguageQuery.php
UTF-8
17,665
2.5625
3
[]
no_license
<?php /* ************************************************************************ Bibliograph: Collaborative Online Reference Management http://www.bibliograph.org Copyright: 2004-2015 Christian Boulanger License: LGPL: http://www.gnu.org/licenses/lgpl.html EPL: http://www.eclipse.org/org...
true
6a52e3d5c76bb818f7a107a27a2ae9ef7b41dffa
PHP
marcosbarbosadev/SolaScriptura
/app/Commands/ReferenceCommand.php
UTF-8
5,062
2.609375
3
[]
no_license
<?php namespace App\Commands; use App\Verses; use Illuminate\Support\Facades\Log; use Telegram; use Telegram\Bot\Actions; use Telegram\Bot\Exceptions\TelegramOtherException; class ReferenceCommand extends AbstractCommand { /** * @var string Command Name */ protected $name = "ref"; /** * @...
true
4284b362c54d1bdab6c51b66b9b61f956977bef1
PHP
EarthlingInteractive/fssk-laravel
/server/app/Http/Controllers/ResetPasswordController.php
UTF-8
2,262
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\User; use Illuminate\Support\Facades\Password; use Illuminate\Foundation\Auth\ResetsPasswords; use Illuminate\Http\Request; class ResetPasswordController extends Controller { use ResetsPasswords; /** * Takes token, validates it * @param string $token * @return ...
true
0712a260aa4cfc1129f5ee9d249bf711b2485416
PHP
ilivanoff/www
/postupayu.ru/www/resources/folded/forms/TzEditForm/TzEditForm.php
UTF-8
766
2.53125
3
[]
no_license
<?php /** * Форма смены временной зоны * */ class FORM_TzEditForm extends BaseAjaxForm { const BUTTON_SAVE = 'Сохранить'; public function getAuthType() { return AuthManager::AUTH_TYPE_AUTHORIZED; } protected function processImpl(PostArrayAdapter $adapter, $button) { $tzName = $ada...
true
5717cc070d31f5d45b6307615c6963a1fad9890a
PHP
Akd0v/salva
/ProyPruebas/PHP/aula7/index.php
UTF-8
704
2.84375
3
[]
no_license
<?php $arquivo = 'logs/registro.log'; $fh = fopen($arquivo, 'r'); echo fgets($fh) . '<hr>'; while ($linha = fgets($fh)) { echo $linha .'<br>'; } fclose($fh); /* $nome = array( array( 'nome' => "Italo", 'idade' => 18 ), array( 'nome' => "Paulo", 'idade' => 20 ), array( '...
true
869fa88353288173d3f8d392e5dfaf9ea6391932
PHP
hachiblue/ag168th
/private/src/Main/AppConfig.php
UTF-8
398
2.515625
3
[]
no_license
<?php namespace Main; use Main\Helper\ArrayHelper; Class AppConfig { static public $setting = null; public static function get ($name) { if (is_null(self::$setting)) { self::$setting = include(__DIR__."/../../../private/AppConfig.php"); self::$setting = ArrayHelper::ArrayGet...
true
5e76d43d7587d6dc2a0bb74d436e731017fbc32e
PHP
superhalb/ObjMan
/app/Http/Controllers/ObjectController.php
UTF-8
4,728
2.625
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Object; use App\Relation; class ObjectController extends Controller { private $path = 'object/'; /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { ...
true
5b78902a12c4cafebbb3abde036df67d79dd71c1
PHP
XiaoMiYuLe/ywf
/ZeedFramework/library/Zeed/Storage/Adapter/Disk.php
UTF-8
3,283
2.640625
3
[]
no_license
<?php /** * Zeed Platform Project * Based on Zeed Framework & Zend Framework. * * BTS - Billing Transaction Service * CAS - Central Authentication Service * * LICENSE * http://www.zeed.com.cn/license/ * * @category Zeed * @package Zeed_Benchmark * @copyright Copyright (c) 2010 Zeed Technologies PRC In...
true
7533a12e03411706ef36800bf741a81283be4b74
PHP
zblogcn/zblogphp
/zb_users/plugin/Totoro/inc/build_conhxw.php
UTF-8
1,902
2.515625
3
[ "MIT" ]
permissive
<?php return 'conhxw'; function conhxw(&$content) { //全角转半角(可能和下面放一起更合适吧) $str_sbc = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890abcdefghijklmnopqrstuvwxyz[];'/.,<>?":|+_\=-)(*&^%$@! ̄'; $str_ori = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890abcdefghijklmnopqrstuvwxyz[];\'/.,<>?":|+_\=-)(*&^%$@!~'; for ($i = 0; $i ...
true
e455fac4d16b96ea549af8ffd1cefce8343a2bd4
PHP
tooncesproject/toonces_core
/toonces_library/php/test/TestEnumeration.php
UTF-8
1,229
2.875
3
[]
no_license
<?php // Unit test for Enumeration / EnumInputTypes classes // Paul Anderson, 2016-10-09 include 'config.php'; require_once LIBPATH.'php/toonces.php'; $stringValue = 'text'; $ordinalValue = 19; // test getOrdinal method echo 'getOrdinal'.PHP_EOL; echo Enumeration::getOrdinal($stringValue, 'EnumInputTypes').PHP_EOL;...
true
651070f7beccc76b89fad8b11c81249914d9f9e2
PHP
Melenium2/social_network
/upload_test.php
UTF-8
660
2.734375
3
[]
no_license
<?php session_start(); // Check to see if the user is logged in. If they are not, then redirect them to the index/login page. if(!(isset($_SESSION['user']))){ header("Location: index.php"); } // Include the common PHP file include_once("common.php"); $db = getDatabaseHandle(); $id = getUserId($db); // C...
true
435b0b711e343c397cdf3235199bd29ee98e496e
PHP
ThomasAK/MyWebSite
/School/CE07/topic.php
UTF-8
2,517
2.59375
3
[]
no_license
<!DOCTYPE html> <?php session_start(); require_once 'DataBaseConnection.php'; include 'header.php'; $topicID = $_GET['top']; echo '<div class="col-md-offset-1 col-md-10">'; if ($_SERVER['REQUEST_METHOD'] != 'GET') { //someone is calling the file directly, which we don't want echo 'This file cannot be called d...
true
d802947d3726a2e791300b8bb130eba61440e7e8
PHP
yagogomesc/estoque
/src/controller/Comedouro/ComedouroController.php
UTF-8
2,264
2.609375
3
[]
no_license
<?php class ComedouroController extends DefaultController{ public $loadModels = ["ComedouroModel"]; public function index(){ $comedouros = $this->ComedouroModel->getComedouros(); $this->set("comedouros", $comedouros); } public function adicionar(){ if(isset($_POST['addComedou...
true
542c78e942a18781a5ed7709322e92959567b2a0
PHP
DannyYo/snh
/app/Http/Controllers/test/User2Controller.php
UTF-8
4,796
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Type; use Carbon\Carbon; use Illuminate\Http\Request; use App\Http\Requests; use App\User; use Illuminate\Support\Facades\Validator; class User2Controller extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Respon...
true
164f7c955f15ca759f113e9385cd13b9ecb1dbcb
PHP
epicschool/epicschool.io-backend
/app/User.php
UTF-8
3,293
2.921875
3
[]
no_license
<?php namespace App; use Illuminate\Auth\Authenticatable; use Laravel\Lumen\Auth\Authorizable; use Illuminate\Database\Eloquent\Model; use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract; use Illuminate\Contracts\Auth\Access\Authorizable as AuthorizableContract; use App\PasswordReset; class Use...
true
747f89a1dcf8eb62c9444623fe4c9fe306363d80
PHP
wj354/beacon-tool
/support/DelaySelect.php
UTF-8
1,286
2.515625
3
[ "Apache-2.0" ]
permissive
<?php namespace tool\support; use beacon\core\Form; use beacon\widget\Select; use beacon\widget\Text; #[Form(title: '动态下拉框设置', template: 'form/field_support.tpl')] class DelaySelect { #[Text( label: '选项头(文本)', prompt: '下拉框的选项头', attrs: [ 'style' => 'width:120px;' ] ...
true
3d0abfff1ace1a856c56fe2894f12e8a08e377e9
PHP
Koroleva3/Koroleva3
/add.php
UTF-8
586
2.578125
3
[]
no_license
<html> <head> <meta charset="utf-8"> </head> <body> <pre><?php print_r($_POST) ?></pre> <?php $mysqli=new mysqli("localhost", "koroleva3", "", "Personal"); $query = "insert into Pers (id, name, call) values (null, '".$_POST['name']."', '".$_POST['telephone']."')"; $mysql...
true
ca3f0c1dbba303b7c430abdc5cb328c79542817a
PHP
hsyngkby/gettext_test_copy
/src/Hsyngkby/gettext/gettext.php
UTF-8
4,056
2.828125
3
[]
no_license
<?php namespace Hsyngkby\gettext; use Config; use Session; use File; class gettext { /** * variable holds the current locale * * @var string */ protected $locale = null; /** * variable holds the current encoding * * @var string */ protected $encoding = null; ...
true
06819b1c2ab46dbf186477112a7ea8e8f479c84a
PHP
alanshortanjungkapal/Rapor-Digital
/application/models/dao/RaporAdminSettingDAO.class.php
UTF-8
1,728
2.609375
3
[ "MIT" ]
permissive
<?php /** * Intreface DAO * * @author: http://phpdao.com * @date: 2021-03-25 11:46 */ interface RaporAdminSettingDAO{ /** * Get Domain object by primry key * * @param String $id primary key * @Return RaporAdminSetting */ public function load($id); /** * Get all records from table */ public fun...
true
e0b52675a066382703807c1abc642b0583d303a4
PHP
fbrogers/ucf-fye-link
/admin/session-add.php
UTF-8
9,735
2.65625
3
[]
no_license
<?php if(!isset($_REQUEST['event']) or !is_numeric($_REQUEST['event'])){ die('Event is necessary.'); } $title = 'Add Session'; $event = $_REQUEST['event']; if(is_post()){ $start_time = $_POST['syear'].'-'.$_POST['smonth'].'-'.$_POST['sday'].' '.$_POST['stime1'].':'.$_POST['stime2'].':00.0000000'; $end_ti...
true
24af74a4c75cc2260e01317d8684dbe16c9d0d46
PHP
satriabagusi/WEB-APP-KLINIK-MUTIARAOPTIK
/assets/php/functions.php
UTF-8
3,236
2.765625
3
[]
no_license
<?php $conn = mysqli_connect("localhost","root","","mo"); function query($query){ global $conn; $result = mysqli_query($conn, $query); $rows = []; while ($row = mysqli_fetch_assoc($result)) { $rows[] = $row; } return $rows; } function register($data){ global $conn; $username = strtolower(...
true
4c06b045e1526a64fa962cc83de7fa83d7659368
PHP
Javenlin/Starway-Fundraising-platform
/user.php
UTF-8
32,470
2.546875
3
[]
no_license
<?php ob_start(); session_start(); // phpinfo(); // 查出upload_max_filesize最大限制為2M //如果已登出 if(!isset($_SESSION["memId"])){ //若在會員中心登出,轉跳到首頁 header("location:starway.php"); } //如果已登入 else{ $memNo = $_SESSION["memNo"]; $errMsg = ""; try { require_once("Star_Way_Database.php"); // 會員資料 // -- -- -- -- -- -...
true
0f44ac3d0f740433bd61e42ea99d055c35c91b7b
PHP
UniBO-PRISMLab/eLearning-SQL
/creaDatabase2.php
UTF-8
5,907
2.890625
3
[]
no_license
<!-- Page that allows the teacher to create a new database --> <?php session_start(); if(!isset($_SESSION['username']) || empty($_SESSION['username'])) { header('location: index.php'); } else { $link = mysqli_connect($_SESSION['servername'], $_SESSION['usertype'], $_SESSION['psw'], $_SESSION['DBname']); ...
true
f84af5d770f44b0e032f689109b09ee8ffed008b
PHP
dimad3/thesis
/public/editprofile.php
UTF-8
2,389
2.6875
3
[]
no_license
<?php require_once __DIR__ . '/../includes/init.php'; $user = new User; // $user parameter is NOT provided (see constructor) if ($user->isLoggedIn()) { // Input::isSubmited() - check whether the form was submited (see forum) // Returns TRUE if it was and FALSE if it was NOT $form_submited = Input::isSu...
true
894d48a06e9922b4027683073f4a90353bce657d
PHP
robjuz/futtertrog
/app/MealProviders/AbstractMealProvider.php
UTF-8
2,335
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\MealProviders; use App\Meal; use App\Order; use Exception; use Illuminate\Console\Scheduling\Schedule; use Illuminate\Contracts\Foundation\Application; use Illuminate\Support\Carbon; use Illuminate\Support\Collection; abstract class AbstractMealProvider { public static function register(Appli...
true
7b53d45ca26bcfc56cc6b501fdde5c7bccb3d3c6
PHP
jiujiude/jipushop
/Application/Home/Controller/FavController.class.php
UTF-8
1,204
2.65625
3
[]
no_license
<?php /** * 前台收藏控制器 * @version 2014100714 * @author Max.Yu <max@jipu.com> */ namespace Home\Controller; class FavController extends HomeController { public function _initialize(){ parent::_initialize(); //用户登录验证 parent::login(); //实例化收藏模型 $this->Fav = D('Fav'); } /** * 加入收藏 * @...
true
55be6d6eccd505162865e3b6436f67d50e82fd95
PHP
paponkoushik/app.scflbd.com
/src/Model/Traits/CacheTraits.php
UTF-8
495
2.703125
3
[ "MIT" ]
permissive
<?php namespace SCFL\App\Model\Traits; use Psr\SimpleCache\CacheInterface; /** * Trait CacheTraits * @package SCFL\App\Model\Traits */ trait CacheTraits { /** * @var CacheInterface */ protected $cache; /** * @param CacheInterface $cache */ public function setCache(CacheInterfa...
true
b0fbbeb5f865ffc28f68c05a41bbc4ac289ad624
PHP
HRyii/gulu
/core/model/User.php
UTF-8
3,892
2.640625
3
[ "Apache-2.0" ]
permissive
<?php namespace core\model; // use think\Model; use think\Cache; use traits\model\SoftDelete; class User extends Model { //use SoftDelete; protected $deleteTime = 'deleted_at'; public function roles() { return $this->belongsToMany('Role', 'gulu_user_role', 'role_id', 'user_id'); } ...
true
1e15fa64b34a6475c884952a56829d8e4eb10999
PHP
rcoliveira2016/ced-cmcxs
/php/Solicitacoes.php
UTF-8
1,129
2.96875
3
[]
no_license
<?php class Solicitacoes { private $id, $user, $espaco, $categoria, $solicitante, $data, $h_inicial, $h_final, $assunto, $desc, $cor,$size, $div, $interno, $mostrar; function __construct($id, $user, $espaco, $categoria, $solicitante, $data, $h_inicial, $h_final, $assunto, $desc, $interno) { $this->us...
true
1582d6cfd93de8298c173e02bc642fb91910bf6b
PHP
daxingyou/developtest
/cgc_qd_majiang_server/class/hufuns/BaseHu.php
UTF-8
1,181
2.859375
3
[]
no_license
<?php /** * 胡牌顶级类 * User: zmliu1 * Date: 17/3/30 * Time: 15:56 */ class BaseHu{ /** 将牌集合 */ public $_258Vals = array(2,5,8,11,14,17,20,23,26); public $_258Len = 9; /* @var vo_MajiangGame */ public $game; public $ispao = false; /** * 胡牌 */ public function hu($mjList,$chiL...
true
c3b3bfc27317241491c2143da54bf8f27cda1145
PHP
MedicalTrends/servidor-terminologico
/SemantikosClientesWS/clientePHP/src/Semantikos/ClientBundle/API/RespuestaConceptosPorRefSet.php
UTF-8
1,517
2.78125
3
[]
no_license
<?php namespace Semantikos\ClientBundle\API; class RespuestaConceptosPorRefSet { /** * @var RefSet $refSet */ protected $refSet = null; /** * @var Paginacion $paginacion */ protected $paginacion = null; /** * @var conceptos $conceptos */ protected $conceptos = ...
true
64355d92f134dc63d9dc52783915634743849b6c
PHP
bernardinigianluca/Corso_PHP
/PHP6_APACHE_MYSQL/CAP02_CREARE_PAGINE_PHP_CON_PHP6/02_1_movie1.php
UTF-8
1,138
2.8125
3
[]
no_license
<?php //setcookie('username','Joe', time() + 60); session_start(); $_SESSION['username']= $_POST['user']; $_SESSION['userpass']= $_POST['pass']; $_SESSION['authuser']= 0; //verifica le informazione relative a password e username if (($_SESSION['username'] == 'Joe') and ($_SESSION['userpass'] == '12345')){ $_SESSIO...
true
3d051634596f7c0376f7c4db840ce987b30af961
PHP
kiuru/kiekkoliiga
/objects/PlayoffsStanding.php
UTF-8
569
3.171875
3
[ "MIT" ]
permissive
<?php class PlayoffsStanding { private $team1; private $team2; private $team1Wins; private $team2Wins; private $matches = array(); /*public function __construct($team1, $team2, $team1Wins, $team2Wins, $matches) { $this->__set('team1', $team1); $this->__set('team2', $team2); $this->__set('team1W...
true
fbf3859ef164207c92a6d9b0a70301dadc5361af
PHP
andri000me/logistik
/application/models/M_category.php
UTF-8
3,382
2.546875
3
[]
no_license
<?php class M_category extends CI_Model { private $_table = 'tbl_kategori'; public function list() { $this->db->select('tbl_kategori.tbl_kategori_id, tbl_kategori.jenis_id, tbl_kategori.name as kategori, tbl_jenis_logistik.name as type, ...
true
e7fb9f77f28d9e216250b1dc25b8794cb6880578
PHP
NanzyGc/Practica1
/TestUsuario.php
UTF-8
2,606
2.640625
3
[]
no_license
<?php require ('ConexionBD.php'); require ('Alumno.php'); require ('Head.php'); $usuario =new Usuario(); if(isset($_POST['submit'])){ switch($_POST['submit']){ case "Alta": echo "<br>Bot&oacute;n: ".$_POST['submit']; $usuario->createUsuario(".$_POST[nombre].",".$_POST[apellidop]....
true
24567db2029c7833c874b9d69d159b593cd73284
PHP
CPHCloud/fragWP
/fragWP.php
UTF-8
7,297
2.921875
3
[]
no_license
<?php /* Plugin Name: fragWP Description: Utility plugin for fragment caching Author: @supertroels Version: 1.0 */ /** * ************ * fragWP class * ************ * * This plugin provides a framework for fragment caching. * It handles both functions and files as the source of the * fragments which makes it useful fo...
true
7ca55be1752679142dbcc8eeddd4a1c8e6c3624e
PHP
GustGimenez/FormulaTG-BE
/src/app/Repositories/CompetitorRepository.php
UTF-8
1,160
2.75
3
[]
no_license
<?php namespace FormulaTG\Repositories; use Exception; use FormulaTG\Models\Competitor; class CompetitorRepository extends GenericRepository { public function getCompetitorsInRace(int $raceId, array $carsIds): array { $where = ['race_id' => ['=', $raceId]]; $competitors = $this->get('competit...
true
2e5753f00b3fd03c5e65035e2c5f5da09964d2ed
PHP
caleeli/xsd2php
/src/Bpmn/Model/TStandardLoopCharacteristicsType.php
UTF-8
1,762
2.734375
3
[]
no_license
<?php namespace Bpmn\Model; /** * Class representing TStandardLoopCharacteristicsType * * * XSD Type: tStandardLoopCharacteristics */ class TStandardLoopCharacteristicsType extends TLoopCharacteristicsType { /** * @property boolean $testBefore */ private $testBefore = null; /** * @pr...
true
febfd56ceffa3dcc42ffce4a4ae494ab65c3c42f
PHP
gregfmatthews/ssotest
/app/Http/Middleware/SamlAuthenticateFake.php
UTF-8
591
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Middleware; use App\Events\FakeSamlEvent; use Closure; use Illuminate\Support\Facades\Auth; class SamlAuthenticateFake { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @param string|null $guard ...
true
20f3551641ae12d355523559788dedb9dbfea5b5
PHP
allblue-pl/php_espada_ecore
/CSV/classes/CCSV.php
UTF-8
7,688
2.953125
3
[ "MIT" ]
permissive
<?php namespace EC\CSV; defined('_ESPADA') or die(NO_ACCESS); use E, EC; class CCSV { private $separators = [ ';', ',' ]; private $charset = ''; private $hasQuotedRows = true; private $separator = ''; private $file = null; private $textArr = null; private $textArr_Current = 0; priv...
true
64ef0675e05b5c454d4e798cf9de7d58b3168613
PHP
murariwalake/nullTrolley
/includes/leftbar.php
UTF-8
2,751
2.609375
3
[]
no_license
<div class="contents"> <div class="container-fluid"> <div class="col-md-2"> <?php $selected_brands = ''; if(isset($_POST['submitfilter'])){ $filter_price =(isset($_POST['filter_price'])?$_POST['filter_price']:''); $total_brands=$db->query("SELECT COUNT(id) FROM brand")->fetch_as...
true
68b457d892ece0098c28857d3ecc9f6abf36bdc8
PHP
CRISTOPHER2002/TDS
/bucles/fibonacci.php
UTF-8
321
4.28125
4
[]
no_license
<?php echo "<h1>los numeros fibonacci</h1>"; function fibonacci($numero) { $numeros=[0,1]; for ($i = 2; $i < $numero; $i++) { $numeros[$i] = $numeros[$i - 2] + $numeros[$i - 1]; } return $numeros; } $resultado=fibonacci(10); echo join(" , ", $resultado);...
true
0b3821a32050652079721b8e4f65587a82d72d60
PHP
Bob93/CodeFest2016
/inloggen.php
UTF-8
1,443
2.546875
3
[]
no_license
<?php session_start(); // sessie starten, moet op elke nieuwe pagina $gebruikersnaam = $_POST['gebruikersnaam']; // de variable gebruikersnaam is gelijk aan de post variable gebruikersnaam in de postconditie van de form. $wachtwoord = $_POST['wachtwoord']; include 'connector.php'; // function generateHash($wachtwoord...
true
6d1c01d866b53d19e71a6dae63388dd827d8618a
PHP
sankalpau3/AdoraWebAppFinaliez
/application/models/Notification_model.php
UTF-8
2,358
2.765625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php class Notification_model extends CI_Model { /** * Function used to retrieve number of registered users * inputs a perios * outputs the number in the particular period */ public function getRegisteredUsers($period) { if($period == "week") { $query = $this->db->query("SELECT * FROM Registered_Users WHERE Da...
true
05348759982ba5d56be4ac055fd017a82d65c5b1
PHP
bbene/provider-exchange-network-client
/src/Soap/Objects/GetQuoteResponse.php
UTF-8
773
2.828125
3
[]
no_license
<?php namespace ProviderExchangeNetwork\Soap\Objects; class GetQuoteResponse { /** * @var DSIGetQuoteResponse $GetQuoteResult */ protected $GetQuoteResult = null; /** * @param DSIGetQuoteResponse $GetQuoteResult */ public function __construct($GetQuoteResult) { $this->G...
true
f81bb13136123fc3462a7eb26564ba10e872cd1b
PHP
pihh/mariana-framework
/mariana-framework/view.php
UTF-8
1,304
2.703125
3
[]
no_license
<?php namespace Mariana\Framework; /** * Created by PhpStorm. * User: filipe_2 * Date: 12/18/2015 * Time: 10:00 PM */ class View { private $data = array(); private $scope = array(); protected static $variable; protected static $block; protected static $settings; protected static $block...
true
81c0d60c2fb7fbec8c55227fef8ecb3b5c96ef37
PHP
KeeperJerry/L-Shop-remade
/app/Handlers/Admin/Users/Edit/CartHandler.php
UTF-8
1,754
2.65625
3
[]
no_license
<?php declare(strict_types = 1); namespace app\Handlers\Admin\Users\Edit; use app\DataTransferObjects\Admin\Users\Edit\CartResult; use app\DataTransferObjects\Admin\Users\Edit\PaginationList; use app\Exceptions\InvalidArgumentException; use app\Repository\Distribution\DistributionRepository; use app\Services\Auth\Aut...
true
7d4b9fa3994cc71c80faf041054c90bbf44fa034
PHP
sivarajankumar/storycards
/pdo/session.php
UTF-8
820
2.890625
3
[]
no_license
<?php /** * Created by IntelliJ IDEA. * User: kbatchelor * Date: 10/21/13 * Time: 1:59 PM */ class Session { public $id; public $username; public $datecreated; public $token; public $createcard; public $voteforcard; public $loadcards; function __construct($id =...
true
2a1a4d96b3631d2d1d1d9ab8015e256b427bcff7
PHP
vyouzhis/phpdbi
/PPL/bin/upload.php
UTF-8
1,779
2.8125
3
[]
no_license
<?php if (!defined('M5CPL'))exit; class upload { private $name; private $type; private $allowType = array('txt','html','php','js','css','image/jpeg','image/jpg','image/gif','image/png','doc','swf','rar','zip'); private $tmp; private $size; private $maxSize = 10000000; private $path; private $error...
true
f803a5f367a8dc89609e61cfafb1e86eadb3292f
PHP
vipontes/gym-api
/app/v1/DAO/TrainingDAO.php
UTF-8
1,182
3.0625
3
[]
no_license
<?php namespace App\v1\DAO; use App\v1\Models\TrainingModel; use PDOException; class TrainingDAO extends Connection { private $lastError = ''; public function __construct() { parent::__construct(); } /** * Get the value of lastError */ public function getLastError() { ...
true
d5809ae313486f691a33f615396e6e370c6bb231
PHP
gitter-badger/framework-18
/src/Viserio/Http/Response/HtmlResponse.php
UTF-8
1,802
2.984375
3
[ "MIT" ]
permissive
<?php namespace Viserio\Http\Response; use InvalidArgumentException; use Psr\Http\Message\StreamInterface; use Viserio\Http\{ Response, Stream }; use Viserio\Http\Response\Traits\InjectContentTypeTrait; class HtmlResponse extends Response { use InjectContentTypeTrait; /** * Create an HTML respon...
true
a1c86a4be5866292b81db55390e6c6f81357961c
PHP
buer0/laravel-oauth
/src/Servers/Github.php
UTF-8
1,310
2.734375
3
[]
no_license
<?php namespace Buerxiaojie\Servers; /** * */ class Github extends AbstractServer { protected $authorizeAPI = 'https://github.com/login/oauth/authorize?'; protected $tokenAPI ='https://github.com/login/oauth/access_token'; protected $openIdAPI = ''; protected $userInfoAPI = 'https://api.github.com/user?'; ...
true
93791ca75c9080a9501affc7f3f828c48946dce5
PHP
emilhdiaz/webics
/php/interface/.svn/text-base/DatabaseResult.php.svn-base
UTF-8
2,416
3.125
3
[]
no_license
<?php define("FETCH_OBJ", 1); define("FETCH_ARRAY", 2); define("FETCH_VALUES", 3); interface DatabaseResult { /* * numOfRows() * * Returns the number of rows in the result set * @param void * @return (int) */ public function numOfRows(); /* * numOfFields() * * Returns the number of fields in...
true