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
0ba51ddda595a248f5ddc0b7b5b515c10c9e12d8
PHP
rsanchez/github_addon_installer
/system/expressionengine/third_party/github_addon_installer/src/Application.php
UTF-8
2,414
2.84375
3
[]
no_license
<?php namespace eecli\GithubAddonInstaller; use eecli\GithubAddonInstaller\Installer\Installer; use eecli\GithubAddonInstaller\Api; use eecli\GithubAddonInstaller\Repo; class Application { protected $installer; protected $api; protected $manifest; protected $output; protected $progress; ...
true
f28f79d18ef30aa86fe9c8b7baacaf762f2992c8
PHP
aayachit/IdeaFlare
/includes/profile-edit-experience.inc.php
UTF-8
3,830
2.703125
3
[]
no_license
<?php // error_reporting(E_ERROR | E_PARSE); include 'connect.inc.php'; $id = ""; $duration = ""; $ongoing = ""; $location = ""; $postion = ""; $responsibilities = ""; $experience_count = ""; $error = 0; // echo "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; if(isset($_POST['update']))...
true
84136be5829727b5db8e9560f51359b063f2ec5c
PHP
mhetreramesh/php-clean-code-api
/web/core/Usecase/GetAllRecipesUsecase.php
UTF-8
547
2.703125
3
[]
no_license
<?php declare(strict_types = 1); namespace Core\Usecase; use Core\Adapter\RecipeRepositoryInterface; class GetAllRecipesUsecase { protected $recipeRepository; public function __construct(RecipeRepositoryInterface $recipeRepository) { $this->recipeRepository = $recipeRepository; } public...
true
3b8b26044ba5a3ca00ee346cf59b94bb0a9990c7
PHP
vinodkumar1991/vinod_pt
/protected/controllers/Mobile/SelfDrive/SelfDriveController.php
UTF-8
7,517
2.578125
3
[]
no_license
<?php /** * @author Digital Today * @access public * @ignore It will handle mechanics operations */ class SelfDriveController extends Controller { public function actionVehicles() { $arrResponse = array(); if (Yii::app()->request->isPostRequest) { $arrInput = $_POST; if...
true
1c9cd573e59b5b34ec80a2b912234f4a98bd43fc
PHP
HansSchouten/PHPageBuilder
/src/Core/DB.php
UTF-8
2,706
3.3125
3
[ "MIT" ]
permissive
<?php namespace PHPageBuilder\Core; use PDO; /** * Class DB * * A basic shell around PDO. * * @package PHPageBuilder\Core */ class DB { /** * @var PDO $pdo */ protected $pdo; /** * DB constructor. * * @param array $config */ public function __construct(array $conf...
true
58fdba377907c39cc4575848d6f957b6293c43fb
PHP
aplus-framework/routing
/src/Route.php
UTF-8
12,756
3.078125
3
[ "MIT" ]
permissive
<?php /* * This file is part of Aplus Framework Routing Library. * * (c) Natan Felles <natanfelles@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Framework\Routing; use Closure; use Framework\HTTP\Response; u...
true
55886db2803742679f9101ec423551322afa75e2
PHP
zhangcf1/zhangcf
/DmsAdmin/Lib/DMS/tle.class.php
UTF-8
50,207
2.734375
3
[]
no_license
<?php /* *此文件为奖金表模块,奖金表内部会含有若干prize_xxx的奖金模块 * * */ class tle extends stru { /*结算周期 s:秒结 d:日结 w:周结 m:月结 y:年结 r:审核日期间隔 */ public $tleMode = 'd'; /*发放日 此属性配合tleMode使用 如果为周结.则$tleDay设置为1-7,分别表示周一到周日 ...
true
862c74fd2ea79831d4d1e184d4f47a4ba5f91583
PHP
hakynseyer/hlymboo1.0.0
/portal/hacer/php/realiza/realiza_tarea.inc.php
UTF-8
6,888
2.6875
3
[]
no_license
<?php namespace realiza_tarea; require_once 'validaciones_generales.inc.php'; class tarea extends \v_generales{ protected $usar = 'crud_tarea'; private $blog; private $e_blog; private $planeacion; private $e_planeacion; private $descripcion; private $e_descripcion; private $programada; private $p_dia;...
true
95876f3496f5a4b2d2d1e1834fb26889daee0d9c
PHP
idrunk/dce-php
/drunk/debug/output/DebugStorable.php
UTF-8
5,027
2.90625
3
[ "LicenseRef-scancode-mulanpsl-2.0-en" ]
permissive
<?php /** * Author: Drunk (drunkce.com; idrunk.net) * Date: 2019/6/10 15:41 */ namespace drunk\debug\output; use dce\log\MatrixOutput; use drunk\debug\DebugMatrix; abstract class DebugStorable extends DebugMatrix { /** @var string 填充符 */ private static string $fillerChar = ' '; protected MatrixOutput...
true
70b98e7ab7fc2ca1ebb95a003b584aaec1bee2ce
PHP
rdarcy1/midiparser
/src/Event/MetaEventType.php
UTF-8
2,873
2.890625
3
[ "WTFPL" ]
permissive
<?php /** * \Tmont\Midi\Event\MetaEventType * * @package Midi * @subpackage Event * @copyright � 2009 Tommy Montgomery <http://phpmidiparser.com/> * @since 1.0 */ namespace Tmont\Midi\Event; /** * Collection of constants representing the different * meta event types * * @package ...
true
25cb230ead4fb9c3fe769b51b0043af7c625f5c6
PHP
shijanstha/valuation-api
/gallery/update.php
UTF-8
2,002
2.65625
3
[]
no_license
<?php // required headers header("Access-Control-Allow-Origin: *"); header("Content-Type: application/json; charset=UTF-8"); header("Access-Control-Allow-Methods: POST"); header("Access-Control-Max-Age: 3600"); header("Access-Control-Allow-Headers: Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-...
true
ca3be3294fbc0a29ad8cd1bfddaf09e67a2fae02
PHP
Unlimited23/ComissionFeesCalculator
/src/Entities/OperationEntity.php
UTF-8
1,661
3.03125
3
[]
no_license
<?php namespace App\Entities; use App\Services\BaseService; use App\Services\ConverterService; use App\Services\ValidatorService; /** * Operation Entity. * * @author Petyo Ruzhin */ abstract class OperationEntity { /** * @var string */ private $date; /** * @var int */ private ...
true
633185419a3e1ef4f3fdc02edb083a17e45b67d7
PHP
azerthe/mojudze
/commentaire.php
UTF-8
6,756
2.859375
3
[]
no_license
<?php require_once 'settings/bdd.inc.php'; require_once 'settings/init.inc.php'; include_once 'includes/header.inc.php'; session_start(); //récupération de l'id de l'article dans l'url $id = $_GET['id']; //$article_commentaire =$bdd->prepare("SELECT articles.id,articles.titre, articles.texte,articles.date,...
true
92ae64d08e2e7c3a8a47a035570dd470249b6912
PHP
jojo1981/json-schema-asg
/src/Retriever/PreProcessSchemaRetrieverDecorator.php
UTF-8
2,089
2.765625
3
[ "MIT" ]
permissive
<?php /* * This file is part of the jojo1981/json-schema-asg package * * Copyright (c) 2019 Joost Nijhuis <jnijhuis81@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed in the root of the source code */ declare(strict_types=1); namespace Jojo1981\J...
true
820c0c5d7b05920de5bb84ea56c9f8b5cf28d9aa
PHP
jolioo/api-library-php
/src/Response/StaticFile/Upload.php
UTF-8
481
2.5625
3
[]
no_license
<?php namespace JoliooAPI\Response\StaticFile; use JoliooAPI\Response\StaticFile\Item\StaticFile; use JoliooAPI\ResponseAbstract; /** * Class Upload * @package JoliooAPI\Response\Shop * @property-read bool $success * @property-read StaticFile $static_file */ class Upload extends ResponseAbstract { /** *...
true
b55452af59069bb80877da223bbfea787de827af
PHP
Eric0808/21xiehou
/libraries/Auth_user.php
UTF-8
4,144
2.65625
3
[]
no_license
<?php final class Auth_user { Static $session_prefix = ''; static $cookie_life = 2592000; var $userinfo = array(); private $lifetime = 30; function __construct() { if( ! isset($_SESSION) ){ if( ! headers_sent() ){ session_start(); }else{ exit('session has sent'); } } } /** * 检查是否在线 ...
true
15c29d66feda4dec8b3a8109c82818455e6500fe
PHP
D-Lux/RUMCPantry
/ap_ao2.php
UTF-8
3,482
2.703125
3
[]
no_license
<?php // © 2018 Daniel Luxa ALL RIGHTS RESERVED $pageRestriction = 99; include 'php/checkLogin.php'; include 'php/header.php'; include 'php/backButton.php'; ?> <style> #addTimeSlot { float: left; height: 33px; width: 140px; font-size: 1.1rem; border-radius: 25px; border: solid 2px #AAA; ...
true
45bcdb8cc438728f2e76f0c308c93cb15241a104
PHP
gudoy/PHPGasus-Mu
/libs/PHPGasus/templating/TemplateEngine.php
UTF-8
1,680
2.734375
3
[ "MIT" ]
permissive
<?php // class TemplateEngine { public $engine = null; public $engineInstance = null; public $options = array(); // __construct() ==> default: no engine public function __construct($engineName) { $method = 'init' . ucfirst($engineName); if ( method_exists($this, $method) ){ call_user_method($me...
true
9a1955fde0d7c940b281e23d3e8d88bdd24214d0
PHP
sahiljain/PHP_Student_Election
/secretary.php
UTF-8
1,238
2.625
3
[]
no_license
<?php session_start(); include "connectionfile.php"; $vicepresident_vote = $_POST['vicepresident']; $_SESSION['vicepresident'] = $vicepresident_vote; $user = $_SESSION['username']; $query = "SELECT * FROM votes WHERE student_id = ".$user; $result=mysql_query($query); if ($result){ $count=mysql_num_rows($result); if($co...
true
3929c1299ffc894714d3b5a105f3dc771f9f74b4
PHP
Patryk27/mmai-ancestor
/app/Grid/Schema/GridSchemaFieldType.php
UTF-8
1,170
3
3
[]
no_license
<?php namespace App\Grid\Schema; final class GridSchemaFieldType { public const TYPE_ASSOCIATION = 'association', TYPE_DATETIME = 'datetime', TYPE_ENUM = 'enum', TYPE_INTEGER = 'integer', TYPE_STRING = 'string'; /** @var string */ private $type; private funct...
true
99b4927811fbf4964cd3b148408a9ebe9dc5fe82
PHP
mauricio-gamboa/greaterhoustondefense
/api/shortcode/Testimonials_Carousel_Shortcode.php
UTF-8
2,945
2.546875
3
[]
no_license
<?php class Testimonials_Carousel_Shortcode extends Abstract_Finesse_Shortcode implements Shortcode_Designer { static $POST_IDENTIFIER_ATTR = 'post_identifier'; function render($attr, $inner_content = null, $code = '') { extract(shortcode_atts(array( Testimonials_Carousel_Shortcode::$...
true
e8df402137e86209e0437f9c621c8b435471c54a
PHP
sandirr/WEB-BLOG-APP
/application/controllers/Blog.php
UTF-8
8,049
2.578125
3
[]
no_license
<?php class Blog extends CI_Controller { public function __construct() { parent::__construct(); $this->load->helper('url'); $this->load->model('Blog_model'); $this->load->library('session'); $this->load->library('pagination'); } public function index($offset = 0) { $_GET['judul'] = ...
true
4b150a4493b14b3dd718a8e329af82d24a65f935
PHP
y2kwill2000/hoyacmlphp
/src/Cml/Controller.php
UTF-8
3,579
2.71875
3
[ "Apache-2.0" ]
permissive
<?php /* * ********************************************************* * [cmlphp] (C)2012 - 3000 http://cmlphp.com * @Author linhecheng<linhechengbush@live.com> * @Date: 14-2-8 下午3:07 * @version @see \Cml\Cml::VERSION * cmlphp框架 系統默認控制器類 * *********************************************************** */ namespace ...
true
7983360400332d00ee7be36769b0b42bda87f374
PHP
CenterPage/Socios
/app/Socio.php
UTF-8
800
2.625
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Socio extends Model { protected $guarded = []; public function getRouteKeyName() { return 'url'; } public static function create(array $attributes = []) { $socio = static::query()->create($attributes); $u...
true
0c052906027ef663613dc18188f3a5174788fbe6
PHP
Clm-Roig/decibels
/back/controllers/BandController.php
UTF-8
1,143
2.703125
3
[]
no_license
<?php require('models/band.php'); class BandController { private $Band; private $params; function __construct($params = null) { $this->Band = new band(); if($params != null) { $this->params = $params; } } // ==== Simple requests ==== // function getAllBands...
true
5239bf714be6b082344f1234351309acf96e4c1b
PHP
shigebeyond/kohana-ext
/classes/Validation.php
UTF-8
2,683
2.953125
3
[]
no_license
<?php defined('SYSPATH') OR die('No direct script access.'); /** * 有缓存结果的校验器 * 主要是针对这样的情况:两次调用Validation::check()之间发生了一些改变校验结果的事情 * 如在保存上传文件前进行一次Upload::not_empty()的校验,在保存之后再进行一次Upload::not_empty()的校验,则两次结果可能是不一致的,因为在保存上传文件时,$file['tmp_name']被移动到新的位置,因此可能出现第一次校验成功,第二次校验失败 * * @Package * @category val...
true
2c23dd15046f20b6e70a34a236bda6526e4d07b8
PHP
maciejczyzewski/bottomline
/tests/__/Collections/MapValuesTest.php
UTF-8
4,110
2.609375
3
[ "MIT" ]
permissive
<?php namespace __\Test\Collections; use __; use ArrayIterator; use PHPUnit\Framework\TestCase; class MapValuesTest extends TestCase { public static function provideMapValuesCases() { return [ [ 'source' => [ 'name1' => [ 'name' ...
true
69a7e4feea57320c28b13bb31d477bdbff376517
PHP
rudolfcms/rudolf
/src/module/Galleries/One/Parser.php
UTF-8
3,726
2.828125
3
[ "MIT" ]
permissive
<?php namespace Rudolf\Modules\Galleries\One; use Rudolf\Component\Hooks; use Rudolf\Component\Images\Image; use Rudolf\Component\Modules\Module; class Parser { private $allowedExtension = [ 'jpg', 'JPG', 'jpeg', 'JPEG', 'png', 'PNG', 'gif', 'GIF', ]; /** * @var array */ private $c...
true
c6db48ab4dfa74ec3dca2d93c3936f36f986f299
PHP
palicao/redis-orm
/src/DataTransformer/TimestampToDatetimeTransformer.php
UTF-8
581
2.71875
3
[ "LicenseRef-scancode-warranty-disclaimer", "MIT" ]
permissive
<?php namespace Tystr\RedisOrm\DataTransformer; use DateTimeImmutable; use DateTimeInterface; /** * @author Tyler Stroud <tyler@tylerstroud.com> */ class TimestampToDatetimeTransformer { /** * @param mixed $value * @return DateTimeInterface */ public function transform($value): DateTimeInter...
true
7d16bcc46ceddfe9d80141ca7f768c762017f7e4
PHP
gaoqin31/pattern
/1_factory/abstractFactory.php
UTF-8
1,742
3.15625
3
[]
no_license
<?php /** * 抽像工厂模式 */ interface IDB{ public function connect(); public function query(); } interface ICache{ public function connect(); public function get(); } interface IFactory{ public function creatDB(); public function createCache(); } class Mysql implements IDB{ public function con...
true
2a0cadf4099aea8a02c27422a94ace899b586f7d
PHP
intpro/feedback
/src/Creation/FeedbackItemFactory.php
UTF-8
1,592
2.71875
3
[ "MIT" ]
permissive
<?php namespace Interpro\Feedback\Creation; use Interpro\Core\Contracts\Ref\ARef; use Interpro\Core\Taxonomy\Enum\TypeRank; use Interpro\Extractor\Contracts\Creation\CollectionFactory; use Interpro\Extractor\Items\BlockItem; use Interpro\Extractor\Items\GroupItem; use Interpro\Feedback\Exception\FeedbackException; c...
true
599ea072b47607af5aaeb1748bb498511ef88b38
PHP
aklesky/blog-test-work
/app/code/controllers/Users.php
UTF-8
3,464
2.609375
3
[ "MIT" ]
permissive
<?php namespace App\Code\Controllers; use app\code\Controller; use app\code\User; /** * Class Users * * @package App\Code\Controllers * @route /user */ class Users extends Controller { /** * @route /register * @request post * @disallow session */ public function add() { ...
true
83cf658a22a8776d4252b7a84b13c35b1c1fa59d
PHP
prairiewest/php-shapefile
/src/dbfModel.php
UTF-8
4,806
3.25
3
[ "MIT" ]
permissive
<?php class DbfModel { //@see http://php.net/manual/ru/intro.dbase.php - fields types const MEMO_TYPE = 'M'; // n/a const DATE_TYPE = 'D'; // YYYYMMDD const DATETIME_TYPE = 'T'; // YYYYMMDDhhmmss.uuu const NUMBER_TYPE = 'N'; // integer const FLOAT_TYPE = 'F'; // float const STRING_TYPE = 'C...
true
7f455092982b5ba12ac1927e85928e563427eed8
PHP
lbc2247117/test
/project/oa/upload/imageUp.php
UTF-8
864
2.5625
3
[]
no_license
<?php use Common\UMEditor\Uploader; require '../application.php'; require '../loader-api.php'; execute_request(HttpRequestMethod::Post, function() { //上传配置 $config = array( "savePath" => "upload/", //存储文件夹 "maxSize" => 1000, //允许的文件最大尺寸,单位KB "allowFiles" => array(".gif", "...
true
dc81b3b26457fe27072023363435981cdb500a74
PHP
jdestefx/lineup
/php/classes/Utils.php
UTF-8
325
2.984375
3
[]
no_license
<?php function arrayFindByObjKeyProp(&$arr, $key, $prop) { for ($i=0;$i<sizeof($arr);$i++) if ($arr[$i]->{$key}==$prop) return $arr[$i]; return null; } function getTodayDateObj() { $d = date_create(null, new DateTimeZone("America/New_York")); $d->setTime(0,0,0); return $d; }...
true
25e6aec42b96018d1b1fbdb22443246f7e243657
PHP
843379451/conn
/src/api/gwc.php
UTF-8
1,256
2.734375
3
[]
no_license
<?php /* 点击加入购物车,先查询订单表,然后更新订单表 get: gid:商品id num:商品数量 返回: 订单表的所有数量 */ //加入购物车,把数据写入订单表 include 'conn.php'; $num=isset($_GET['amount']) ? $_GET['amount'] : ''; $gid=isset($_GET['id']) ? $_GET['id'] : ''; //查询订单表是否有该gid商品 $sql="SELECT am...
true
3f0e0179170126f092b20f8161a2562e6991d2d5
PHP
janborg/contao-h4a_gamestats
/src/H4aEventGamestats.php
UTF-8
6,677
2.65625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Janborg\H4aGamestats; use Contao\CalendarEventsModel; use Contao\Input; use Contao\Template; use Janborg\H4aGamestats\Model\H4aPlayerscoresModel; use Janborg\H4aGamestats\Model\H4aTimelineModel; class H4aEventGamestats { /** * Adds stats for Home Team Players and Of...
true
5d56b11801faa3209385f49c9d084535a5b8ceb3
PHP
MarioLegenda/blue-dot
/tests/Test/Unit/FailingTest.php
UTF-8
1,366
2.515625
3
[ "MIT" ]
permissive
<?php namespace Test\Unit; use BlueDot\BlueDot; use BlueDot\Exception\ConfigurationException; use PHPUnit\Framework\TestCase; class FailingTest extends TestCase { public function test_invalid_config_file() { $nonExistentConfig = 'non/existing/file.yml'; $exceptionEntered = false; $...
true
6e124fc94fa5e6c3c93a6c13eb9f9006d4db2ac6
PHP
ch-ricardor/nada
/vendor/solarium/solarium/src/QueryType/Stream/Query.php
UTF-8
2,373
2.65625
3
[ "BSD-2-Clause-Views", "MIT" ]
permissive
<?php /* * This file is part of the Solarium package. * * For the full copyright and license information, please view the COPYING * file that was distributed with this source code. */ namespace Solarium\QueryType\Stream; use Solarium\Core\Client\Client; use Solarium\Core\Query\AbstractQuery; use Solarium\Core\Q...
true
f78560edc5e7ff1f654a88a0a20974d0f245c7f4
PHP
macintoshplus/pdf-edit
/Specification/ArrayNotEmptySpecification.php
UTF-8
385
2.578125
3
[ "MIT" ]
permissive
<?php /** * This file is part of Pdf-Edit Library * @author Macintoshplus <jb@nahan.fr> * @licence MIT */ namespace Jbnahan\PdfEdit\Specification; class ArrayNotEmptySpecification extends CompositeSpecification { public function __construct() { } public function isSatisfiedBy($object) { if (!is_array($o...
true
4e96aaa90461b07308f7ed7cc20f28a8bbd79298
PHP
pingxiayu/php
/文件和路径操作/open.php
UTF-8
2,886
3.359375
3
[]
no_license
<?php //文件 /*//打开文件 fopen(); 接受两个参数:文件名,文件模式 //w:只写模式 如果文件已经有了,则删除文件里的内容,没有,则自行创建 //fopen('test.txt','w'); //fopen返回资源类型的resource,也称为句柄 $fp=fopen('test.txt','w'); //向文件里写入 $into="something"; //fwrite() fwrite($fp,$into,strlen($into)); //直接写入 fwrite($fp,"something"); //关闭文件 fclose($fp);...
true
2cbdf0ee32274b3004556e5cf5f33f18e68f3cc6
PHP
nicolaslopezj/laravel-angular-cms
/app/Cms/Events/Crud/PublicViewsEventHandler.php
UTF-8
1,040
2.65625
3
[]
no_license
<?php namespace Cms\Events\Crud; class PublicViewsEventHandler { public function onCreate($public_view) { $coder = new \Cms\Library\Helpers\Coder\ViewsCoder; $coder->codeView($public_view); } public function onUpdate($public_view) { $coder = new \Cms\Library\Helpers\Coder\...
true
7371aa3ffdfce8c11a2437342c3ebe9970fd17a2
PHP
slickframework/cqrs-tools
/src/Domain/Event/EventStoreListener.php
UTF-8
1,057
2.59375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /** * This file is part of slick/cqrs-tools * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Slick\CQRSTools\Domain\Event; use League\Event\EventInterface; use Slick\CQRSTools\Event; use Slick\CQRSTools\Event\Abstra...
true
34a575b7eb88104b928061366f0ad1058fd5699b
PHP
javidhsueh/jjhelpbuy
/utils/DB.php
UTF-8
1,187
2.859375
3
[]
no_license
<?php require_once("_private/db_connect_info.php"); class DB { var $_dbConn = 0; var $_queryResource = 0; function DB() { $db_info = new MySqlInfo(); $host = $db_info->host; $user = $db_info->user; $pwd = $db_info->pwd; $dbConn = mysql_connect($host, $use...
true
0233a86a36cc320cf30a074a744b5bbf055246a5
PHP
UbookStoree/UbookStoree
/booksproject/src/booksBundle/Controller/LivreOccasionController.php
UTF-8
2,095
2.625
3
[ "BSD-3-Clause", "MIT" ]
permissive
<?php namespace booksBundle\Controller; use booksBundle\booksBundle; use booksBundle\Entity\LivreOccasion; use booksBundle\Form\LivreOccasionType; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Request; class LivreOccasionController extends Controller { public func...
true
3a65c4ba209d0c2d872c94afc8fc724849cee818
PHP
ManabuMarcusYano/hdk2016
/mock_store/app/controllers/UserController.php
UTF-8
2,963
2.578125
3
[ "MIT" ]
permissive
<?php class UserController extends BaseController{ public function register(){ $error = ""; Input::flash(); if( Input::has('username') && Input::has('company') && Input::has('role') && Input::has('mail_address') && Input::has('domain') ) { $username = Input::get('username'); $company = Input...
true
144d02bdf423297ee644f04c05874d9db95a8acc
PHP
ThiagoMS50/php501
/Aula6/minhasExcecoes.php
UTF-8
809
3.484375
3
[]
no_license
<?php class MinhaExcessao extends Exception { public function __construct($mensagem,$code = 0, Exception $previous = null){ parent::__construct($mensagem,$code,$previous); } public function __toString(){ return __CLASS____.":[{$this->code}]:{$this->message}\n"; } public function c...
true
da64d980af6309537db8e38cb4aa78033b5207b9
PHP
Parterdev/Webmarket
/ajax/editar_categoria.php
UTF-8
2,244
2.78125
3
[]
no_license
<?php include('is_logged.php'); //Verificación del logueo de usuario para poder acceder a la ruta o URL. //Validaciónes iniciales if(empty($_POST['mod_id'])) { $errors[] = "El campo (ID) se encuentra vacío"; }else if(empty($_POST['mod_nombre'])) { $erros[] = "El campo nombre se encuentr...
true
1ed6731a39e788a7e89aee98f5b84f93f79a2036
PHP
JanMaria/HMBD
/src/Entity/Article.php
UTF-8
3,398
2.546875
3
[]
no_license
<?php declare(strict_types=1); namespace App\Entity; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Validator\Constraints as Assert; use Symfony\Component\Security\Core\Security; /** * @ORM\Entity(repositoryClass="App\Repository\ArticleRepository") * @ORM\HasLifecycleCallbacks */ class Article { private...
true
08cd03af940ba84e863c7d670cbef5d501711272
PHP
ewendu/duschewen.com
/contactsubmit.php
UTF-8
6,888
2.859375
3
[]
no_license
<?php /* ******************************************************************************************** INITIALISATION ******************************************************************************************** */ $template = 'contact'; $destination = 'duschewen.contact@gmail.com'; $showonwin=""; $showonfail...
true
bf63283cf6e4d59716f5d988f1d8119680215f67
PHP
ach411/PoManager
/src/Ach/PoManagerBundle/UploadElifesheet/AchUploadElifesheet.php
UTF-8
8,699
2.640625
3
[ "MIT" ]
permissive
<?php namespace Ach\PoManagerBundle\UploadElifesheet; use Doctrine\ORM\EntityManager; use Ach\PoManagerBundle\ConnectProdDatabase\AchConnectProdDatabase; use Ach\PoManagerBundle\Entity\ShipmentBatch; use Ach\PoManagerBundle\Entity\SerialNumber; class AchUploadElifesheet { protected $em; protected $connectProdD...
true
5275c7a745c3b361db8bef57582fc5042c7954ba
PHP
duongtruong175/Shop
/application/models/cart.php
UTF-8
3,053
2.78125
3
[]
no_license
<?php class Cart extends Model { public $productModel; public function __construct() { parent::__construct(); $this->productModel = new Product; } // lấy danh sách sản phẩm trong giỏ hàng của người dùng public function getCartByAccountId($account_id) { $sql = "SELE...
true
57bedddc2815bc49e7f9f65dd7e70ba5a96acaf1
PHP
Ryan-Fernandes/PHP-Blog
/search.php
UTF-8
3,511
2.53125
3
[]
no_license
<!--SEARCH.php--> <!DOCTYPE html> <html lang="en"> <?php $title="Study Link | Search"; include_once('includes/header.php'); include_once('includes/db.php'); ?> <body> <!-- Navigation --> <?php include_once("includes/navigation.php"); ?> <!-- Page Content --> <div class="container...
true
7a09832bd6f1d5cd527dac014d3dfea81fb39233
PHP
luisperezgarcia27/luma
/app/Http/Controllers/ApiController.php
UTF-8
480
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Student; class ApiController extends Controller { public function create(Request $request){ $students = new Student(); $students->name = $request->input('name'); $students->lastname = $request->input('lastname'); $students->e...
true
4fd32ef191d27a7f0cfced1cb0f0c1b5e3198d6b
PHP
ericksonreyes/cqrs-order-fulfillment-api
/src/Fulfillment/Domain/Model/Order/Order.php
UTF-8
9,446
2.515625
3
[ "MIT" ]
permissive
<?php namespace Fulfillment\Domain\Model\Order; use DateTimeImmutable; use DateTimeInterface; use EricksonReyes\DomainDrivenDesign\EventSourcedEntity; use Exception; use Fulfillment\Domain\Model\Order\Event\OrderWasAccepted; use Fulfillment\Domain\Model\Order\Event\OrderWasCancelled; use Fulfillment\Domain\Model\Orde...
true
0b88882279eee42e6c0d876197bef221d902f38b
PHP
danilpanshin/oop_php
/OOP2/task2.php
UTF-8
1,521
3.53125
4
[]
no_license
<?php namespace farm; require 'animals.php'; use animals as pet; class Farm { protected $animals = []; public function addAnimal(pet\Animal $animal) { $this->animals[] = $animal; } public function rollCall() { shuffle($this->animals); foreach ($this->animals as $creature) { $creature->say(); } }...
true
5913726c2c5bd1e3d88c60ef1f5e169aaa73537a
PHP
tkaneda0078/reserved-WebAPI
/api.php
UTF-8
4,036
3.265625
3
[]
no_license
<?php /* * APIクラス * * @access public * @package Controller */ class Api { private $dbh; const DSN = 'mysql:host=localhost;dbname=webapi'; const USER = 'root'; const PASS = ''; /* * DB接続 * * @access public */ public function __construct() { try ...
true
5b60d70817a023fc65d62f315a5a045644f58531
PHP
Olivier-Chat/dateTime
/index.php
UTF-8
662
3.375
3
[]
no_license
<?php $presentTime = new DateTime(); $destinationTime = new DateTime('2021-03-01 9:00'); var_dump($destinationTime); echo $presentTime->format('M d Y A h i ' ).PHP_EOL; echo $destinationTime->format('M d Y A h i ' ).PHP_EOL; $diff = $presentTime->diff($destinationTime); $diffFormated = $diff->format('%y ans, %m mois, ...
true
dea2823ea1e01829d8729f8f3a3f4e5f9bfd473a
PHP
Lawondyss/PhpStruct
/src/OnlyReadStruct.php
UTF-8
335
2.75
3
[]
no_license
<?php /** * @author Ladislav Vondráček <lad.von@gmail.com> */ namespace Lawondyss\PhpStruct; use Lawondyss\PhpStruct\Exception\AccessException; abstract class OnlyReadStruct extends Struct { public function __set(string $name, $value): void { throw new AccessException(sprintf('Property %s::$%s is only for ...
true
cf09afb72488bed595c92719f121cd77399887e4
PHP
damov87/1712
/2019-01-21/1.php
UTF-8
1,205
3.75
4
[]
no_license
<?php function myPrintR($data, int $level = 1): void { switch (true) { case is_null($data): echo ''; break; case is_bool($data): echo $data ? '1' : ''; break; case is_string($data): case is_int($data): case is_float($data): ec...
true
623f2cfc43dca0dda0f0c38c7a130e700d87c333
PHP
shiv24/Internet-Computing-CP476
/a6_gupt1820/start/listInfo.php
UTF-8
1,421
2.625
3
[]
no_license
<?php include 'include/config.php'; $conn = new mysqli($dbServer,$user, $pass, $db) or die("Unable to connect"); $sql = "SELECT * FROM Artists;"; $result = mysqli_query($conn,$sql); $resultCheck = mysqli_num_rows($result); $data = array(); if ($resultCheck > 0){ while ($row = mysqli_fetch_assoc($resu...
true
74574b83cfc35954bf530bc64f10c1f1ff73a758
PHP
zushiK/LineBotTest
/src/src/ZPDO.php
UTF-8
982
2.828125
3
[]
no_license
<?php require '../../vendor/autoload.php'; $dotenv = Dotenv\Dotenv::createImmutable(__DIR__."/../../"); $dotenv->load(__DIR__ . '/../../'); class ZPDO extends PDO{ var $save_last_id = ""; public function __construct() { parent::__construct( getenv('ZPDO_SERVER'), getenv(...
true
c1f9734a0db288b46f116cf32d27654def8699c2
PHP
alexzer0/inkatours
/mkt/admin/com/upgrades/20081215/create_user_activitylog_userid_viewed_idx.php
UTF-8
1,006
2.734375
3
[]
no_license
<?php /** * This file is part of the upgrade process. * * @package SendStudio */ /** * Do a sanity check to make sure the upgrade api has been included. */ if (!class_exists('Upgrade_API', false)) { exit; } /** * create_user_activitylog_userid_viewed_idx * * Create an index on user_activitylog table on user...
true
d076e8e6d86ffeef3913d6c3eba6230e43bb829c
PHP
se2/cis600-angular-webpack-es6
/src/public/data/getUsers.php
UTF-8
689
2.5625
3
[]
no_license
<?php header('Access-Control-Allow-Origin: *'); header("Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept"); header('Access-Control-Allow-Methods: GET, POST, PUT'); // debug // error_reporting(E_ALL); // ini_set('display_errors', 1); require('php/JSON.php'); $json = new Ser...
true
9f8fff00b9b6ce731807632a49b130ee1c5f583b
PHP
toyo-uch/members_20201022
/index.php
UTF-8
1,145
2.609375
3
[]
no_license
<html> <head> <meta charset="UTF-8"> <link rel="stylesheet" href="css/style.css" type="text/css"> <!-- <script src="js/jquery-3.4.1.min.js"></script> <script src="js/script.js"></script> --> <title>title</title> </head> <body> <table> <tr> <th>id</th> <th>名前</th> <th>グループ</th> <t...
true
71d39bfae8ab909b485ac5e37945589cdd80d185
PHP
repouniverse/tut
/frontend/modules/sigi/models/forms/lecturas.php
UTF-8
568
2.59375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace frontend\modules\sigi\models\forms; class lecturas extends \yii\base\Model{ public $flectura; public $mes; public $mesconsumo; public function rules() { return [ //['username', 'filter', 'filter' => 'trim'], [['flectura', 'mes', 'mesconsumo'], 'required'], ...
true
b28cffb2f8b5541cbd480e0375b95907cf605813
PHP
antwebstudio/yii2-web
/src/helpers/GoogleMap.php
UTF-8
320
2.65625
3
[ "MIT" ]
permissive
<?php namespace ant\helpers; class GoogleMap { public static function coordinateUrl($latitude, $longitude) { return 'http://www.google.com/maps/place/'.$latitude.','.$longitude; } public static function addressUrl($streetAddress) { return 'http://www.google.com/maps/search/'.urlencode($streetAddress); } }
true
3a27058eafd88d7dbad115e756d2e06a1edd4784
PHP
jhonq22/vensalud22102021
/app/Http/Controllers/EquipoController.php
UTF-8
1,335
2.5625
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Equipo; use Illuminate\Http\Request; use Illuminate\Support\Facades\DB; class EquipoController extends Controller { public function index() { $equipos =Equipo::get(); echo json_encode($equipos); } public function equiposRegistrada($...
true
13ebcbad26d9f5e5ac3cd3e24b5f0369d4094d80
PHP
malihatmalam/Vegan-Store
/app/Product.php
UTF-8
1,342
2.75
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Str; class Product extends Model { protected $guarded = []; // Category - Product (One to Many) public function category() { return $this->belongsTo(Category::class); } // Product - Order Detail (One...
true
87f1e31f56eebdd9f078b15404530daa9986f6a8
PHP
haelaidi/app_web_pfe
/config/connection.php
UTF-8
2,014
2.921875
3
[]
no_license
<?php require 'query.php'; class _DbCnx extends PDO { const PARAM_host = 'localhost'; const PARAM_port = '3306'; const PARAM_db_name = 'dbpfe'; const PARAM_user = 'root'; const PARAM_db_pass = ''; public function __construct($options = null) { parent::__construct('mysql:host=' . _...
true
50161ebbef8175a6926f7c422825d3486a432976
PHP
prakashthakuri/IS667
/Assignment 2/code25.php
UTF-8
98
2.984375
3
[]
no_license
<?php $string = '000245123.24'; echo $string. "<br/> "; echo "Output: " .ltrim($string, '0');
true
70e940e33a8dfbcbc39c27bad4547e868d2f855a
PHP
yx-github/yxit-phptools
/src/ArrayHandle.php
UTF-8
3,320
2.875
3
[]
no_license
<?php namespace YxTools; class ArrayHandle { /** * 按类型通用二位数组快速排序 * * @param array $data * @param string $key * @param string $type * @return void */ public static function sortt($data = [], $key = 'score', $type = 'asc') { if (count($data) <= 1) { ret...
true
4c509ab28dc3d37c7858d46d3d0feb34af50cc81
PHP
stephenheron/image
/app/models/User.php
UTF-8
2,466
2.84375
3
[]
no_license
<?php use Illuminate\Auth\UserInterface; use Illuminate\Auth\Reminders\RemindableInterface; class User extends Eloquent implements UserInterface, RemindableInterface { /** * The database table used by the model. * * @var string */ protected $table = 'users'; /** * The attributes excluded from the model...
true
124276b4d46f25618858393e96e98842ef2d28d9
PHP
gcramarossa/AATDemoWithArduino
/api/ottieniLed.php
UTF-8
160
2.703125
3
[]
no_license
<?php $led = "0"; if (file_exists("led.txt")) { $led = file_get_contents("led.txt"); unlink("led.txt"); } echo $led; ?>
true
830c743c9699a0f4d75d6c6552b053a36543f323
PHP
Mdesmon/sigip
/includes/bas_niveau.php
UTF-8
5,784
3.109375
3
[]
no_license
<?php function generatePassword($len = 8) { if($len > 53) { $len = 53; } return substr(password_hash(uniqid(), PASSWORD_BCRYPT), 7, $len); } function generateUniqueFolderName($prefix = "") { $folderName = formatString($prefix) . str_replace(' ','',microtime()); return $folderName; } function getExtension(...
true
57fea60befa632ea259964f4ed0cad3ce3070766
PHP
zhangfengjin/shiling
/app/Http/Controllers/Home/MeetController.php
UTF-8
3,956
2.609375
3
[]
no_license
<?php namespace App\Http\Controllers\Home; use App\Http\Services\AreaService; use App\Http\Services\DictService; use App\Http\Services\MeetService; use App\Http\Services\UploadService; use App\Utils\DataStandard; use Illuminate\Http\Request; use App\Http\Controllers\Controller; class MeetController extends HomeContr...
true
efd05ea51f096dd226ab1758ea9fd7f0072bb6fd
PHP
hijarian/mailout
/code/Recipient.php
UTF-8
941
3.03125
3
[]
no_license
<?php class Recipient { private $id; private $gid; private $email; private $mailout_visits; private $homepage_visits; private $catalog_visits; private $is_unsubscribed; public function __construct($id, $gid, $email, $opened = 0, $homepage = 0, $catalog = 0, $unsubscribed = 0) { $this->id = $id; $this->gi...
true
db62d32b3d7f856fc5f0a23c6f7cbc0a0959177d
PHP
dvsa/olcs-backend
/module/Api/src/Domain/CommandHandler/TaskAlphaSplit/DeleteList.php
UTF-8
940
2.53125
3
[ "MIT" ]
permissive
<?php namespace Dvsa\Olcs\Api\Domain\CommandHandler\TaskAlphaSplit; use Dvsa\Olcs\Api\Domain\CommandHandler\AbstractCommandHandler; use Dvsa\Olcs\Api\Domain\CommandHandler\TransactionedInterface; use Dvsa\Olcs\Transfer\Command\CommandInterface; /** * DeleteList of TaskAlphaSplit * * @author Mat Evans <mat.evans@v...
true
1bbfe49e09fdb74c3c3c3410f1297fb64e3c8272
PHP
Zindokar/P4-Ejercicios
/Web/4.- Práctica 2 parte 2 (Javascript)/persistence/BebidaDB.php
UTF-8
2,560
2.90625
3
[]
no_license
<?php include_once('Connection.php'); class BebidaDB { public static function getAllDrinks() { $connection = new Connection("./datos.db"); try { $connectionLink = $connection->connect(); $connectionLink->exec("PRAGMA encoding='UTF-8';"); $connectionLink-...
true
37b045e2a89f9ae0fce41e23f5f1142ba21dedce
PHP
573000126/wms-4
/Dddml.Wms.HttpServices.PhpClient/Dddml/Wms/Domain/UserLoginStateEventId.php
UTF-8
1,933
2.71875
3
[]
no_license
<?php namespace Dddml\Wms\Domain; use JMS\Serializer\Annotation\Type; use Dddml\Serializer\Type\Long; use Dddml\StringIdInterface; class UserLoginStateEventId implements StringIdInterface { /** * @Type("string") */ private $userId; /** * @return string */ public function getUserI...
true
454491b17809c3aa1944fd6fd048ff87c02c7f0e
PHP
Xand3rxx/FixMaster-v.1.0
/app/PaymentProcessor/PaystackPayment.php
UTF-8
4,751
2.53125
3
[]
no_license
<?php namespace App\PaymentProcessor; use App\Models\Payment; use Illuminate\Support\Facades\Http; use Illuminate\Database\Eloquent\ModelNotFoundException; class PaystackPayment { /** * Paystack API base Url * @var string */ protected $baseUrl; /** * Secret Key for Paystack Request...
true
ef675ed760536bf8c0697b0fb6da45f822707b1c
PHP
Grmanbradra/FinalProject
/final/process/WebAPI.php
UTF-8
5,750
3.203125
3
[]
no_license
<?php class WebAPI { private $conn; private $book; private $words; private $scoreDegree; private $scoreSubCate; private $output; /** * WebAPI constructor. * @param PDO $conn * @param $book */ public function __construct(PDO $conn, $book) { $this->conn = ...
true
1b6db7415337df77cada010029763bd7951cb01e
PHP
force-boot/Socialnetworking
/application/common/controller/ThirdLoginController.php
UTF-8
2,389
2.59375
3
[ "Apache-2.0" ]
permissive
<?php namespace app\common\controller; use anerg\OAuth2\OAuth; use app\lib\exception\BaseException; use think\facade\Cache; /** * 第三方登录类 * @package app\common\controller * @author XieJiaWei<print_f@hotmail.com> * @version 1.0.0 */ class ThirdLoginController { /** * @var OAuth|Object 第三方登录扩展类对象 */ ...
true
67f974b889d47b2c42c418d8651698bcfa032ca6
PHP
LaiFany/PixAlbums4U
/PixAlbums4U/editphotopage.php
UTF-8
4,440
2.640625
3
[]
no_license
<?php session_start(); ?> <!DOCTYPE html> <html> <head> <?php include 'common.php'?> <title>Edit Photo - PixAlbums4U</title> <style> body { padding-top: 60px; background-size: cover; transition: background 2s ease-out; } @media (max-width: 767px) { ...
true
b90190ef72c186e0d58ab8492298cbdc0297b117
PHP
payeverworldwide/sdk-php
/lib/Payever/ExternalIntegration/Payments/Http/RequestEntity/ShippingGoodsPaymentRequest.php
UTF-8
3,512
2.71875
3
[ "MIT" ]
permissive
<?php /** * PHP version 5.4 and 8 * * @category RequestEntity * @package Payever\Payments * @author payever GmbH <service@payever.de> * @copyright 2017-2021 payever GmbH * @license MIT <https://opensource.org/licenses/MIT> * @link https://docs.payever.org/shopsystems/api/getting-started */ names...
true
b3062dbdce59dfba3b9b4dfe13ae1f1e734bfe59
PHP
josephdeeb/SENG300
/viewAll.php
UTF-8
9,185
2.75
3
[]
no_license
<!-- viewAll.php ---------------------------------------------------------------------------------------------------------------------------------------------------- This page is for reviewers to view the journals that they have been assigned to review. The reviewer is given the option to view their comments on the ...
true
4d5c15786b62fb14acf12f9a30c6192c337e5811
PHP
oscarmagedon/races
/models/protracks.php
UTF-8
3,761
2.65625
3
[]
no_license
<?php App::Import('Model','Apidata'); App::Import('Helper','Time'); class Protracks extends Apidata { var $name = 'Protracks', $tracksFields = [ 'dayEvening', 'country', 'postTime', 'trackId', 'trackName', 'currentRace' ]; public fun...
true
7998d50f352d212f4350e5d820a4f6eaf8deaa1e
PHP
NandoKstroNet/mycms
/public_html/includes/CmsWidget.php
UTF-8
498
2.65625
3
[]
no_license
<?php require_once('CmsBase.php'); class CmsWidget extends CmsBase { var $widgetPath=''; var $widgetName=''; function setWidgetPath($widgetName) { $this->widgetPath="widgets" . $widgetName . "/"; $this->widgetName=$widgetName; } function getWidgetPath() { return $this->widgetPath; } function display(...
true
50bb6fa363d9d0fd507b68f4326a60a02b254bf6
PHP
Submitty/Submitty
/site/app/models/NavButton.php
UTF-8
417
2.59375
3
[ "BSD-3-Clause", "MIT" ]
permissive
<?php declare(strict_types=1); namespace app\models; use app\libraries\Core; class NavButton extends Button { public function __construct(Core $core, array $details) { $details['class'] = 'nav-row'; if (!isset($details['id'])) { $details['id'] = 'nav-sidebar-' . str_replace(' ', '-',...
true
c64f06f46f8e378c35b86002ea4898862ae06fc7
PHP
seannimmo/week9-captains
/app/Http/Controllers/CaptainController.php
UTF-8
1,085
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; class CaptainController extends Controller { // public function show($captain_slug) { $captain = \App\Captain::where('slug', $captain_slug)->first(); if (!$captain) { abort(404, 'Captain not found'); }...
true
57636accd45a1baa272084c2f00ab42b24051b29
PHP
ivan-matthews/demo
/core/controllers/pages/forms/add_post.php
UTF-8
5,634
2.53125
3
[]
no_license
<?php /* -------GET------- $form = new \Core\Controllers\Pages\Forms\Simple('form'); $form->generateFieldsList(); fx_die($form->getFieldsList()); -------GET------- -------POST------- $form = new \Core\Controllers\Pages\Forms\Simple(); $form->setRequest(Request::getInstance()); $form->checkFi...
true
e785a19922018a395a91c499691ab42b73c8bc81
PHP
peintune/TestManagementSystem
/vendor/laravel/framework/src/Illuminate/Foundation/Artisan.php
UTF-8
1,217
2.796875
3
[ "MIT" ]
permissive
<?php namespace Illuminate\Foundation; use Illuminate\Console\Application as ConsoleApplication; class Artisan { /** * The application instance. * * @var \Illuminate\Foundation\Application */ protected $app; /** * The Artisan console instance. * * @var \Illuminate\Console\Applicati...
true
a5707de651fbb254f6a5cd1328444bcaa1b38102
PHP
ahmadkybora/laravel_project_5_send_email
/app/Http/Requests/UserRequest.php
UTF-8
1,807
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class UserRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** * Get the v...
true
6f4dbefe13ccdf7190bbff4b2ceb9bc9cfeb0a54
PHP
Muskan1909/connect2life1
/patient login/insert-sign-up.php
ISO-8859-1
947
2.6875
3
[]
no_license
<html> <body> <?php // Create connection $conn = new mysqli('localhost','root',''); // Check connection if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } echo "DB Connected successfully"; // this will select the Database sample_db mysqli_select_db($conn,"patient_signup"); echo "\...
true
4b522476d200671a4564b35fcac64c53cb9bbf37
PHP
lebavuongquyen/idoc
/app/Models/Attributes/User.php
UTF-8
2,656
2.515625
3
[]
no_license
<?php namespace IDoc\Models\Attributes; // /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * Description of User * * @author TDM01 */ trait User { /** * List rout...
true
0a565e95a3ecf50a638d94739dfb223acf180961
PHP
Qais17/dvd
/application/views/dvd/index.php
UTF-8
205
2.78125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php foreach ($dvd as $dvd_item): ?> <h3><?php echo $dvd_item['auteur']; ?></h3> <div class="main"> <?php echo $dvd_item['titre']; ?> </div> <?php endforeach; ?>
true
cf1f37368db2547c4e8b3ccbf29b314872aa876b
PHP
jonassuncao/Cazulo
/Models/HomeModel.php
UTF-8
2,219
2.796875
3
[]
no_license
<?php /** * Gerencia os dados do Home * * * @author Jonathas Assunção * @version 0.0.1 * * ================================================================= * date - 02/10/2018 - @version 0.0.1 * description: Versão inicial do arquivo, * Gerencia os dados dos Home * Baixa o nome...
true
664d325cfbc2ec9bb5595dc3b25812c9b74eb40c
PHP
halojoy/ActivateLoginSession
/includes/class.KMMailer.php
UTF-8
16,246
2.8125
3
[ "MIT" ]
permissive
<?php /** * KM_Mailer is a SMTP Class for PHP, Version 1.5 * created by KidMoses (Howard Walsh) * * This is a smiple SMTP class that supports secure login * through TLS or SSL connections. Can be used to send email * through GMail for example. * * Email can be sent as either plain text, html text or a * combi...
true
f6822914a09f5dcad2e2700bd75260020736d78e
PHP
videouri/videouri
/app/Console/Commands/UpdateCustomId.php
UTF-8
1,970
2.625
3
[ "MIT" ]
permissive
<?php namespace App\Console\Commands; use Illuminate\Console\Command; use App\Entities\Video; /** * Class UpdateCustomId * @package App\Console\Commands */ class UpdateCustomId extends Command { /** * The name and signature of the console command. * * @var string */ protected $signatur...
true
23c8f2491d966a5cca8d450cf2f55b584aeb0798
PHP
Thetamine/Openweather
/includes/weather.php
UTF-8
3,005
2.71875
3
[]
no_license
<?php if(isset($_GET['cityWeather'])) { // store the location submitted in a variable $location = $_GET['cityWeather']; // store the API key, for formatting purposes $appId = "fd031db11dc02956a02a1d1fd2980ebc"; // create the URL $getWeatherAPI = "http://api.openweathermap.org/data/2.5...
true