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
93266b113db7289130b716ceb27b70de0f40e450
PHP
duvholt/TDT4237
/src/webapp/controllers/PatentsController.php
UTF-8
6,519
2.65625
3
[]
no_license
<?php namespace tdt4237\webapp\controllers; use tdt4237\webapp\models\Patent; use tdt4237\webapp\controllers\UserController; use tdt4237\webapp\validation\PatentValidation; class PatentsController extends Controller { public function __construct() { parent::__construct(); } ...
true
6a926c9810d64011279125501ea1b8acc4bbe3ac
PHP
Django-Yu/dazong
/dzprj/application/common.php
UTF-8
39,041
2.640625
3
[ "Apache-2.0" ]
permissive
<?php /* * common.php * * Copyright Sichuan Great Wall Software Technology Co.,LTD. All Rights Reserved. * Author sakura 2016年7月5日下午3:51:31 */ ////////////////////////////////////////////////////// /** * 域名路由设置 */ use think\Route; use think\Session; use think\Config; Route::domain('admin','admin') ; Route::do...
true
ea84dbb247fa91b74d6fa37180e03b5a6320ff9a
PHP
fthedex/Route
/Ver2.0/Route Code/Route/parentForm.php
UTF-8
1,286
2.84375
3
[]
no_license
<?php require 'connection.php'; $db = Database::getConnection(); if($db->connect_errno) { echo "Failed to connect to MYSQL: (". $db->connect_errno .")" . $db->connect_error; } $sql = "CALL createParent(?, ?, ?, ?, ?, ?, @out);"; $Var1 = $_POST['firstname']; $Var2 = $_POST['lastname']; $Var3 = $_POST['gender']; ...
true
457870e8654b1dd6af8b5304c9f9a184ce78b93e
PHP
fysiki/chronopost_sdk
/src/Chronopost/StructType/TrackSkybillV2Response.php
UTF-8
1,378
2.671875
3
[]
no_license
<?php declare(strict_types=1); namespace Chronopost\StructType; use WsdlToPhp\PackageBase\AbstractStructBase; /** * This class stands for trackSkybillV2Response StructType * Meta information extracted from the WSDL * - type: tns:trackSkybillV2Response. */ class TrackSkybillV2Response extends AbstractStructBase ...
true
d6e06edc3647f88d9c8f11afdaaf35e6e0b3f38f
PHP
zepi/turbo-base
/Zepi/Web/General/src/Manager/MenuManager.php
UTF-8
11,240
2.796875
3
[ "MIT" ]
permissive
<?php /* * The MIT License (MIT) * * Copyright (c) 2015 zepi * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, c...
true
570b47ad773783238b2d83873e82bcc2e1a3b04c
PHP
bovisp/slim-starter
/app/Console/Commands/Migrate.php
UTF-8
1,047
2.703125
3
[]
no_license
<?php namespace App\Console\Commands; use App\Console\Command; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; class Migrate extends Command { /** * The com...
true
36cbed1fca623446d78597a6bdd29d7f8735211f
PHP
mkostelcev/va_afl
/models/Staff.php
UTF-8
2,296
2.703125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use Yii; /** * This is the model class for table "staff". * * @property integer $id * @property string $staff_position * @property string $name_ru * @property string $name_en * @property integer $vid */ class Staff extends \yii\db\ActiveRecord { /** * @param $id int ...
true
bffc1cfe6cd40fad56a9382228b5c6f79c90f6df
PHP
MaximStrutinskiy/Home-work-4.1
/Decoration.php
UTF-8
1,756
3.0625
3
[]
no_license
<?php class HtmlLinks { // методы для работы с любой HTML-ссылкой } class LogoutLink extends HtmlLinks { protected $_html; public function __construct() { $this->_html = "<a href="logout.php">Logout</a>"; } public function setHtml($html) { $this->_html = $html; } ...
true
b0c951a674079ffca183ef738e6c951c6282f581
PHP
lesserror-hxr/tp5_app
/application/api/controller/v1/AuthBase.php
UTF-8
1,535
2.65625
3
[ "Apache-2.0" ]
permissive
<?php namespace app\api\controller\v1; use app\api\controller\Commen; use app\common\lib\Aes; use app\common\lib\exception\ApiException; use app\common\model\User; /** * 客户端auth登录权限基础类库 * 1. 每个接口(需要登录 个人中心 点赞 评论) 都需要去继承 * 2. 判定 access_user_token 是否合法 * 3. 用户信息 -> user * Class AuthBase * * @package \app\api\c...
true
159f6a04e1cb1cbd302d7067ce4afef49723ade2
PHP
everton3x/html-object-model
/src/Element.php
UTF-8
904
3.109375
3
[ "MIT" ]
permissive
<?php namespace HtmlObjectModel; use UnexpectedValueException; /** * An entity of type Element represents an HTML element that does not support children, * such as HR or INPUT, for example. */ final class Element extends EntityAbstract { /** * HTML entity that does not support children. * * @co...
true
ab1712c6a44d4ee8fd2d53724708d1a6a8fd1690
PHP
agusgokasi/laravel-8-simple-CRUD-REST-API
/core/app/Models/Job.php
UTF-8
565
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Job extends Model { use HasFactory; protected $fillable = [ 'user_id', 'status', 'position', ]; /** * Get the identifier that will be stored in the subject c...
true
ef97668a2cad57fbbb33bdfafcadf775d9f26293
PHP
amcosta/design-patterns
/src/Imposto/ISS.php
UTF-8
229
3.015625
3
[]
no_license
<?php namespace DesignPatterns\Imposto; use DesignPatterns\Model\Orcamento; class ISS implements ImpostoInterface { public function calcular(Orcamento $orcamento) { return $orcamento->getValor() * 0.06; } }
true
602410a36d0db80c2e08ec5cd88b288c3b5dfddc
PHP
benjaminhansen/workday-wsdl
/src/StructType/Communication_Usage_Type_ReferenceType.php
UTF-8
3,596
2.984375
3
[]
no_license
<?php namespace WorkdayWsdl\\StructType; use \WsdlToPhp\PackageBase\AbstractStructBase; /** * This class stands for Communication_Usage_Type_ReferenceType StructType * Meta information extracted from the WSDL * - documentation: Invalid Communication Usage Type | Reference element representing a unique instance of...
true
2dc6040f07b21ed8dadf9c1b39adc9f4a588aac7
PHP
GutiRz/backend-fifafriends-tfg
/database/migrations/2020_07_15_170847_create_teams_table.php
UTF-8
599
2.546875
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateTeamsTable extends Migration { public function up() { Schema::create('teams', function (Blueprint $table) { $table->id(); $table->str...
true
9f20e4c6b1695972bd0417c788197c2cc3c9760a
PHP
iebuxw/advance
/console/controllers/HelloController.php
UTF-8
1,166
2.921875
3
[]
no_license
<?php namespace console\controllers; use Yii; use yii\console\Controller; /* * 参数是把值传给动作的形参 * 选项是把值传给声明的属性 */ class HelloController extends Controller { public $rev; // 定义选项 public function options($actionID) { return ['rev']; } // 选项别名 public function optionAliases() { ...
true
b27c8a48721093929a6c1e0bbf223d263587c047
PHP
abdiiwan1841/phprest-restfull
/src/Entity/DebugError.php
UTF-8
878
2.734375
3
[ "MIT" ]
permissive
<?php namespace Phprest\Entity; use Exception; use JMS\Serializer\Annotation as Serializer; class DebugError extends Error { /** * @Serializer\Type("string") */ protected string $fileName; /** * @Serializer\Type("integer") */ protected int $line; /** * @Serializer\Type(...
true
39a33cad7dd329a37e1137e4116f6e19a6ffa754
PHP
BackupTheBerlios/smart-svn
/modules/test/trunk/navigation/actions/class.action_navigation_get_tree.php
UTF-8
4,694
2.640625
3
[]
no_license
<?php // ---------------------------------------------------------------------- // Smart PHP Framework // Copyright (c) 2004 // by Armand Turpel < smart@open-publisher.net > // http://smart.open-publisher.net/ // ---------------------------------------------------------------------- // LICENSE GPL // To read th...
true
ac4057f0cea52ca3decef9bbda8c8cba7d737523
PHP
tisnamuliarta/SchoolCRM
/controller/diskonaction.php
UTF-8
3,412
2.59375
3
[]
no_license
<?php include '../connection.php'; include 'function.php'; $isSame = false; $output = []; if (isset($_POST['btn_action'])) { /** * ========================================== * Save data * ========================================== */ if ($_POST['btn_action'] == 'Add') { $isSame = false; $query = " IN...
true
c33dfefce6e373616e785b557f9359920d37b063
PHP
ltaverao95/acreditacion-um-react
/server/api/GetStackedChartDataByYearPeriodUniversityCode.php
UTF-8
574
2.546875
3
[]
no_license
<?php include_once("../Libraries/commonLibraries.php"); $responseDTO = new ResponseDTO(); try { $requestJson = file_get_contents("php://input"); if(!$requestJson){ return $responseDTO; } $requestData = json_decode($requestJson); $commonBLL = new CommonBLL(); $responseDT...
true
a656b10b4a810814db6e4cb9a61a5b4e81ba20fa
PHP
Worti54/Quete-nouveau-projet
/src/Controller/BlogController.php
UTF-8
984
2.75
3
[]
no_license
<?php // src/Controller/BlogController.php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\Routing\Annotation\Route; class BlogController extends AbstractController { /** * @Route("/blog/") */ public function index() { $...
true
0ec4056d7cfefd5ddde188fbabbced4f7e7e3b19
PHP
phpxiebin/Yii-Recruitment-System
/web/protected/modules/setting/controllers/SystemuserController.php
UTF-8
3,244
2.53125
3
[]
no_license
<?php /** * Class SystemuserController 系统用户 */ class SystemuserController extends Controller { public function filters() { return array('rights'); } /** * 默认列表 */ public function actionIndex() { $model = new SystemUser('search'); $model->unsetAttributes(); ...
true
de4e23320ae02c96af2b53f4066f64c9066589ba
PHP
droath/robo-command-builder
/src/CommandDefinition.php
UTF-8
4,354
2.703125
3
[]
no_license
<?php namespace Droath\RoboCommandBuilder; use Symfony\Component\Config\Definition\Builder\TreeBuilder; use Symfony\Component\Config\Definition\Processor; use Symfony\Component\Yaml\Yaml; /** * Define the command definition configuration. */ class CommandDefinition implements CommandDefinitionInterface { /** ...
true
87e6c543e8579989160397ddff62aadd20aee8ee
PHP
OzodAmin/mag
/admin/includes/productResponse.php
UTF-8
5,852
2.609375
3
[]
no_license
<?php session_start(); //include connection file require_once '../../params/config.php'; $extensions= array("jpeg","jpg","png"); $imagePath = "../img/"; $uniquesavename=time(); if (isset($_POST['requestType']) ) { switch ($_POST['requestType']) { //INSERT new product case 'insert': $image = $_FILES['image']['...
true
24dfd125b32b8ee8e41e9be6ba52958a9d95e320
PHP
Aquarmini/ml-demo-phalcon
/app/biz/SVC/Image.php
UTF-8
1,676
2.609375
3
[ "MIT" ]
permissive
<?php // +---------------------------------------------------------------------- // | Image.php [ WE CAN DO IT JUST THINK IT ] // +---------------------------------------------------------------------- // | Copyright (c) 2016-2017 limingxinleo All rights reserved. // +---------------------------------------------------...
true
29da33a2c879ef130419cb7e446ca196afc0e6b4
PHP
mihailefremov/wof-webbuzzer
/savethebuzz.php
UTF-8
939
2.765625
3
[]
no_license
<?php if(!isset($_SESSION)) { session_start(); } ?> <?php include('function.php'); ?> <?php try { $cn=makeconnection(); $s="insert into buzzers (Username) values ('" . strtolower($_SESSION["Username_WheelOfFortuneBuzzer"]) ."')"; $mysqliQueryErrorSuccess=''; if (mysqli_query($cn,$s)) { $mysqli...
true
3cb22940764e761be0f937e74e734ed0f616f7c5
PHP
tsorelle/aftm
/application/src/tops/sys/ConfigurationManager.php
UTF-8
2,001
2.953125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Terry * Date: 1/25/2017 * Time: 6:27 AM */ namespace Application\Tops\sys; /** * Class AftmConfiguration * @package Application\Aftm * * Handles access to configuration file config.ini, located in same directory as this class file. * For ini file documentation see h...
true
ee8a4eef18fc8799f865c1a4b9b8338bd79e276a
PHP
santii31/sisconf
/Models/User.php
UTF-8
1,076
3.203125
3
[]
no_license
<?php namespace Models; class User{ private $id; private $userName; private $password; private $name; private $lastName; private $isActive; public function getId(){ return $this->id; } public function getUserName(){ return $this->userName; } public funct...
true
b3892d133204d0512c93ec4a5605c0a47e5bcd0f
PHP
bunq/sdk_php
/src/Model/Generated/Endpoint/CardReplace.php
UTF-8
4,662
2.671875
3
[ "MIT" ]
permissive
<?php namespace bunq\Model\Generated\Endpoint; use bunq\Context\ApiContext; use bunq\Http\ApiClient; use bunq\Http\BunqResponse; use bunq\Model\Core\BunqModel; use bunq\Model\Generated\Object\CardPinAssignment; /** * It is possible to order a card replacement with the bunq * API.<br/><br/>You can order up to one fr...
true
0b6fd156180a13415c7876ebfb81449daef6c58a
PHP
yf358559551/test
/5-3.php
UTF-8
865
3.0625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: cxx * Date: 2018/2/5 * Time: 22:37 */ function bindParam(& $sql,$location,$var,$type){ //确定类型 switch ($type){ //字符串 default: //默认使用字符串类型 case 'STRING' : $var = addslashes($var); //转义 $var = "'".$var."'"; //加上...
true
70a608f900666f81e03d75ce95795d93a7d33c47
PHP
milandv/koeien
/functions.php
UTF-8
513
3.484375
3
[]
no_license
<?PHP function random_gen($length) { $random= ""; srand((double)microtime()*1000000); $char_list = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; $char_list .= "abcdefghijklmnopqrstuvwxyz"; $char_list .= "1234567890"; // Add the special characters to $char_list...
true
c79ae534fbabaef1ca39497343e2a03900446051
PHP
marcofarnezi/trident
/tests/Services/CsvServiceTest.php
UTF-8
3,233
2.6875
3
[]
no_license
<?php namespace Services; use App\Exports\ProductCounterExports; use App\Services\CsvService; use Illuminate\Database\Query\Builder; use Illuminate\Support\Collection; use Mockery\LegacyMockInterface; use Mockery\MockInterface; /** * Class CsvServiceTest * @package Services */ class CsvServiceTest extends \TestCas...
true
d00dba8009203bdc89403588c147e7d15e831e66
PHP
AminePrince/amine
/application/controllers/contacts.php
UTF-8
1,572
2.515625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Contacts extends CI_Controller { $this->load->model('etudiant','e'); } public function index() { $data = array(); $data['contacts']= $this->e->get_all(); $data['notice']=$this->_notice; $this->load->view('c...
true
677827d98cd4e18bf915a5e27aa6f92dbd546184
PHP
solostyle/learninghtml5
/235/dbfunc.php
UTF-8
3,720
3.078125
3
[]
no_license
<?php //---------------------------------------------------------------------------- // Business Database functions ----------------------------------------------- // --------------------------------------------------------------------------- // Connect to the database function select_db() { mysql_connect(DB_HO...
true
06a3e1b67d6b717482f02669101aff10a04b19e2
PHP
fntechgit/openstackid-resources
/app/Services/Model/ISummitBadgeTypeService.php
UTF-8
2,698
2.515625
3
[]
no_license
<?php namespace App\Services\Model; /** * Copyright 2019 OpenStack Foundation * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless require...
true
f2c5eb185d4e190d2f0971d9752a7ae78ee32cb5
PHP
flexsim/flexnet-operations
/flexnet/LicenseService/Type/CreatedChildLIFmtResponseDataType.php
UTF-8
1,649
2.640625
3
[ "MIT" ]
permissive
<?php namespace Flexnet\LicenseService\Type; class CreatedChildLIFmtResponseDataType { /** * @var \Flexnet\LicenseService\Type\CreatedChildLIFulfillmentDataType|array<\Flexnet\LicenseService\Type\CreatedChildLIFulfillmentDataType> */ private $fulfillment; /** * Constructor * * @p...
true
a54272b50e5f14e3713a17d433fbdc00fe0518a3
PHP
kopiaman/eaudit-mais
/output/web/inc_function.php
UTF-8
2,197
2.796875
3
[]
no_license
<?php function thumb($files){ $dcode=json_decode($files); $thumbs=$dcode[0]->thumbnail; return $thumbs; }; function full($files){ $dcode=json_decode($files); $full=$dcode[0]->name; return $full; }; function dates($date){ $dateNormal=date("d M Y", strtotime($date)); return $dateNormal; }; function trim_text($inpu...
true
442088c11df7d7ef0bb8b10353b6b6951fe84a95
PHP
RVA-ALT-Lab/vcu-altlab-online-chatbot
/interface/AWSWorkbench_Interface_Builder_Base.php
UTF-8
1,295
2.5625
3
[]
no_license
<?php if ( ! defined( 'ABSPATH' ) ) { die( '-1' ); } class AWSWorkbench_Interface_Base { public $MENU_PAGE_SLUG; public $MENU_PAGE_TYPE; public $MENU_PAGE_NAME; public function __construct ($MENU_PAGE_NAME, $MENU_PAGE_SLUG, $MENU_PAGE_TYPE, $HASH = null) { $this->MENU_PAGE_NAME = $MENU_PAGE_NAME; $th...
true
92026631f6601c73c5177ce82f52540cb5e70c1c
PHP
eoanodea/IADTY3PPClientMangementSystem
/app/Http/Controllers/Customer/CustomerController.php
UTF-8
3,849
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Customer; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use App\User; class CustomerController extends Controller { public function __construct() { $this->middleware('auth'); } /** * Display a listing of the resource by assignment...
true
d47cde1ab960153a957312161d2705791402f404
PHP
enterpi/craze_API
/application/libraries/Sentry.php
UTF-8
770
2.5625
3
[]
no_license
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); /** * CodeIgniter * * An open source application development framework for PHP 4.3.2 or newer * * Author: Pawan Rote Email Id: pawan_rote@neovasolutions.com */ class Sentry { function Sentry() { $CI =& get_instance(); $CI->load->mo...
true
212f72db2a86a02707e5549023ffe32129cf5902
PHP
baranozoglu/Zessenger
/app/Models/FavoriteUserCategory.php
UTF-8
744
2.6875
3
[]
no_license
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class FavoriteUserCategory extends Model { protected $table = 'favorite_user_categories'; private $user_id; private $name; protected $fillable = [ 'user_id', 'name', ]; /** * @return mixed */ public function getNa...
true
000870002dcb33c7084aa52433772159d3c0363d
PHP
Molekulo/minidj
/Application/Helper/Sessions.php
UTF-8
381
2.671875
3
[]
no_license
<?php namespace App\Helper; use App\Model\Users; /** * Class Sessions * @package App\Helper */ class Sessions { /** * @param Users $user * * @return void */ public static function set(Users $user) { $_SESSION["role_id"] = $user->role_id; $_SESSION["user"] = $user...
true
5bb2fbf4384f54036bbad64d40d603620dac3ca5
PHP
watoki/karma
/src/implementations/aggregates/GenericAggregateFactory.php
UTF-8
2,455
2.796875
3
[]
no_license
<?php namespace watoki\karma\implementations\aggregates; use watoki\karma\command\AggregateFactory; class GenericAggregateFactory implements AggregateFactory { const DEFAULT_IDENTIFIER = 'karma'; /** @var callable */ private $buildAggregateRootCallback; /** @var callable */ private $getAggregate...
true
828bcdac226324630d752bacc9f0cc29ce0aecb6
PHP
gaddieben/CS499-Sholem
/admin.php
UTF-8
2,466
2.703125
3
[]
no_license
<!-- File description: --> <?php //The following php file is needed for getters/setters of directories, running remote server commands, require "utility.php"; //Set the new path of the OCR files you want crowdsourced if ($_SERVER['REQUEST_METHOD'] == 'POST' && isset($_POST['ocrFilesPath'])){ //$ad...
true
1e7e520b14e73115c928b24d92680c6db3cd4465
PHP
nclundsten/ZfcUser
/src/ZfcUser/Model/Mapper/UserZendDb.php
UTF-8
2,597
2.625
3
[]
no_license
<?php namespace ZfcUser\Model\Mapper; use ZfcBase\Mapper\DbMapperAbstract, ZfcUser\Module as ZfcUser, ZfcUser\Model\User as UserModel, ZfcUser\Model\Mapper\User as UserMapper, ArrayObject; class UserZendDb extends DbMapperAbstract implements UserMapper { protected $tableName = 'user'; ...
true
c180517e4b4049246384fcb9259a5baba5c1d534
PHP
KarelWintersky/gatekeeper
/engine/Controllers/Page.php
UTF-8
651
2.59375
3
[]
no_license
<?php namespace Gatehouse\Controllers; use Gatehouse\Template; use Gatehouse\AbstractUnit; class Page { /** * @var string */ private $template_path; public function __construct() { $this->template_path = '$/templates/pages'; } public function page_welcome() { ...
true
e6944ee7c91ef5c9012cffd62d1febeed370e41f
PHP
massiveart/sulu
/src/Sulu/Bundle/SecurityBundle/Entity/User.php
UTF-8
3,806
2.609375
3
[ "MIT" ]
permissive
<?php namespace Sulu\Bundle\SecurityBundle\Entity; use Doctrine\Common\Collections\ArrayCollection; use JMS\Serializer\Annotation\ExclusionPolicy; use JMS\Serializer\Annotation\Expose; use JMS\Serializer\Annotation\SerializedName; use JMS\Serializer\Annotation\VirtualProperty; use Sulu\Bundle\ContactBundle\Entity\Con...
true
211998ff76e09fef8ce2bb763e70376312a44b00
PHP
henhanwan/itportal
/application/controllers/Admin/User.php
UTF-8
2,207
2.546875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class User extends CI_Controller { /** * Index Page for this controller. * * Maps to the following URL * http://example.com/index.php/welcome * - or - * http://example.com/index.php/welcome/index * - or - * Since this controlle...
true
94e6fd8e6a48684a2efc75a0916684ca79595f69
PHP
zandidn/OnlineSupport
/app/Models/Answer.php
UTF-8
758
2.546875
3
[]
no_license
<?php namespace App\Models; use App\Concerns\Relations\AnswerHasRelationTrait; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Factories\HasFactory; /** * @property integer $id * @property integer $question_id * @property integer $user_id * @property string $answer * @property string $c...
true
f766d7609006cb3622493b492513ba67d64fce4c
PHP
dihyat/Articles-ranking
/resultRank.php
UTF-8
186
2.515625
3
[]
no_license
<?php if(isset($_POST['submit'])){ $selected_val = $_POST['article']; // Storing Selected Value In Variable echo "You have selected :" .$selected_val; // Displaying Selected Value } ?>
true
96359a83ec62ce686b86885971f7ab85156df835
PHP
Dyr-El/advent_of_code_2017
/delda-php/src/AdventOfCode/Day13.php
UTF-8
1,503
3
3
[]
no_license
<?php namespace src\AdventOfCode; use SebastianBergmann\CodeCoverage\Report\PHP; class Day13 extends AbstractAdventOfCode { protected $class = 13; public function firstPart(): string { $firewall = $this->parser(); return $this->scannerMoves($firewall, 0, false); } public functi...
true
7c23a42a7245f130c52cb208c5d5dc43c033a139
PHP
anflorea/rush01
/game/Fire.class.php
UTF-8
588
2.625
3
[]
no_license
<?php trait Fire { function fire($colliders) { $this->_players[$this->_turn - 1]->fire(); for ($i = $this->$_SESSION['x']; $i < 150; $i++) { foreach ($colliders as $collider) { if ($collider['x'] == $i && ($collider['y'] >= $_SESSION['y'] - 1 && $...
true
d3d59954a92e1b8b2f109239da8da2abfeb7eb09
PHP
FrancoisNimpagaritse/P6SnowTricks
/src/DataFixtures/AppFixtures.php
UTF-8
3,854
2.609375
3
[]
no_license
<?php namespace App\DataFixtures; use Faker\Factory; use App\Entity\Role; use App\Entity\User; use App\Entity\Video; use App\Entity\Figure; use App\Entity\Message; use App\Entity\Picture; use App\Entity\Category; use Doctrine\Persistence\ObjectManager; use Doctrine\Bundle\FixturesBundle\Fixture; use Symfony\Component...
true
156ba76bb69c71fb8b209fb90e92482e561bab4c
PHP
harisinfo/www
/Mercury/Core/DBManager/dbManager.class.php
UTF-8
3,150
2.703125
3
[]
no_license
<?php /** * Class dbManager * @author: Hari Ramamurthy * @version: 1.0 */ include_once( __CORE_DIR . '/XMLManager/XMLManager.class.php'); class dbManager extends XMLManager { public $request; public function getResult(array $request) { $this->request = $request; return $this->buildQuery( $request ); } p...
true
f4011aaf401a4a5acb244d7a25a0c97dc64f3b2c
PHP
chrisulanowicz/book_reviews
/application/models/User.php
UTF-8
2,353
2.65625
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class User extends CI_Model { public function validate($post) { $this->load->library('form_validation'); $this->form_validation->set_rules('name','Name','trim|required'); $this->form_validation->set_rules('alias','Alias','trim|required|is_u...
true
3c74ecf23b4f927c12321f3b52812a08bfc9233d
PHP
majika-it/tarot
/application/models/setor_vida_model.php
UTF-8
1,228
2.515625
3
[]
no_license
<?php class Setor_Vida_model extends CI_Model { public $cod; public $nome; public function __construct($cod = null){ // construtor parent parent::__construct(); // carrega a library $this->load->database(); $this->cod = $cod; } p...
true
4108d7a0c5368f33e6ef950b11c2d508ddd97bdb
PHP
Miya-Chi/tubokotsu_work
/sales02/validation.php
UTF-8
309
2.703125
3
[]
no_license
<?php // $error = array(); class Validation { public function validate() { $price = "半角数字で入力してください"; if (!preg_match("/^[0-9]+$/", $_POST['Price'])) { # 半角数字以外が含まれていた場合、false return $price; } } }
true
573cbb66fee2ff35c4d390f12108e90a80720bf4
PHP
ricardogang/ide0
/cw/basicRunner.php
UTF-8
2,933
2.875
3
[]
no_license
<?php $pipes ; function executeCmd($cmd, &$stdout=null, &$stderr=null) { echo "COMMAND: ".$cmd."\n" ; $proc = proc_open($cmd,[ 1 => ['pipe','w'], 2 => ['pipe','w'], ],$cmdPipes); $stdout = stream_get_contents($cmdPipes[1]); fclose($cmdPipes[1]); $stderr = stream_get_contents($cm...
true
3747a78555a9368fdfda32f629515483dd001854
PHP
sandro-pasquali/Stringer
/editor/assemblies/classes/Authenticate.php
UTF-8
3,368
2.578125
3
[]
no_license
<?php class Authenticate extends Assembly { function __construct() { } function authenticate() { if($this->isAuthorized()) { return(true); } else { /* * failed credential check */ self::V()->append(self::M()->AUTH_FAILURE_NOT...
true
7be754f5978f8cc36b75d75048d73a25ae6cdc8b
PHP
Falguni065/Travelling-Website
/admin.php
UTF-8
1,730
2.640625
3
[ "MIT" ]
permissive
<html> <head> <link rel="stylesheet" type="text/css" href="table.css"> <a href="home6.php" id="sp">Home</a> <title>request</title> </head> <body class="bg"> <div id="nav3"> <h1 id="header">...REQUESTS...</h1> </div> <br><br> <?php $server_name = "localhost"; $user_name = "root"; $password = ""; $db...
true
9ded46e95090914074dbbd9f3b67996489d70413
PHP
JamesLiAndroid/server
/bike/application/admin/model/Cate.php
UTF-8
1,348
2.5625
3
[ "Apache-2.0" ]
permissive
<?php namespace app\admin\model; use think\Model; class Cate extends Model { public function getCate() { $cates = $this->order('sort desc')->select(); return $this->sortarr($cates); } public function sortarr($arr,$pid=0,$level=0) { $tree = []; foreach($arr as $v){ if($v['p...
true
6683b87950fe78754bcb809529f4127a3bd6c0dd
PHP
LaSoupBrain/UserBundle
/Entity/User.php
UTF-8
15,949
2.671875
3
[]
no_license
<?php namespace Dtw\UserBundle\Entity; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Security\Core\User\UserInterface; use Symfony\Component\Validator\Constraints as Assert; use Doctrine\Common\Collections\ArrayCollection; use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity; /** * User * * @OR...
true
a5aaf2c397a351de07c3762cc9185b31b4b388ba
PHP
eugene-sukhodolskiy/rating.engine
/fw/kernel/Log.php
UTF-8
2,306
2.671875
3
[]
no_license
<?php namespace Kernel; class Log{ // Variables private static $logs; // Methods public static function add($section, $text){ if(!isset(self::$logs[$section]) or !is_array(self::$logs[$section])) self::$logs[$section] = []; $date = ' AT '.date('Y.m.d G:i:s'); if(is...
true
504b225f48b8caef66943a24cb5114d46ad2e02d
PHP
filipe-ferraz/CeL
/instalacaoCEL/cel/aplicacao/coloca_links.php
ISO-8859-1
8,512
3.15625
3
[]
no_license
<?php // $id_lexico_atual = id do lexico atual, para que ele no crie um link para si mesmo // funcao que carrega o vetor com todos os titulos dos lexicos e seus sinonimos menos o titulo do // lxico passado na variavel $id_lexico_atual e seus sinonimos // Funo que carrega vetor com todos os titulos e sinonimos de lexi...
true
1808e4c18a1e554ce0a4c91374a62b274d0ba1b6
PHP
fchute/DoctorDoom
/State_Directory.php
UTF-8
2,592
2.515625
3
[]
no_license
<?php include './Includes/authenticate.php'; include './Includes/DB_Config.php'; include './Includes/Fetch_State_Info.php'; if($_SESSION["type"]!=="admin"){ header("Location: login.php"); exit(); } ?> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Doc</title> <link rel="stylesheet" hr...
true
9cc731b2ef00288c17392898fff7960aa7021405
PHP
TheusZer0/ctf-archives
/SPbCTF/2021/Quals/Alpha_Mail_Access/www/include/Db/!Base.php
UTF-8
3,232
3.015625
3
[ "MIT" ]
permissive
<?php abstract class Db { private static $instance = NULL; static function Instance() { if (self::$instance === NULL) { $dbClass = "Db_" . Db_Config::$driver; self::$instance = new $dbClass(Db_Config::$hostname, Db_Config::$user, Db_Config::$password, Db_Config::$db); ...
true
198c922645af38139be13c7569fd1ad25e801f02
PHP
LeonMarkes/php-bible-project
/bible.php
UTF-8
2,495
3.1875
3
[]
no_license
<?php include("init.php"); require_once('config.php'); class Bible { // public $connection; // function __construct() { // $this->open_db_connection(); // } // function open_db_connection() { // $this->connection = new mysqli(DB_HOST, DB_USER, DB_PASS, DB_NAME); // if ($thi...
true
916ab0e58f054f777786274d1db28396c3b024ea
PHP
WildCodeSchool/lyon_socks_contest
/src/control-id.php
UTF-8
1,162
2.53125
3
[]
no_license
<?php session_start(); require_once "bdd.php"; $last_name = htmlspecialchars(trim(strtolower($_POST['last_name']))); $name = htmlspecialchars(trim(strtolower($_POST['name']))); if ( (empty($last_name) === true) || (empty($name) === true)){ session_destroy(); header('Location:../login.php?error=2'); } $sql = "...
true
4d8c732caca4576cc9b387d17116446895a59e0b
PHP
stricoff92/freecodecamp-challenges
/php/Intermediate-Algorithm-Scripting/seekAndDestroy.php
UTF-8
578
3.875
4
[ "MIT" ]
permissive
<?php /* You will be provided with an initial array (the first argument in the destroyer function), followed by one or more arguments. Remove all elements from the initial array that are of the same value as these arguments. */ /* Note: values to remove are passed as a second array, NOT as an arbitrary number...
true
f82fba7546e6ea4f874a44776310f7365d5e06ee
PHP
xp-framework/imaging
/src/main/php/img/io/Segment.class.php
UTF-8
770
3.515625
4
[ "BSD-3-Clause" ]
permissive
<?php namespace img\io; /** * Image meta data segment * */ class Segment { public $marker= null; public $bytes= null; /** * Creates a segment instance * * @param string $marker * @param string $bytes */ public function __construct($marker, $bytes) { $this->marker= $marker; $this->by...
true
a4aade96d05753634d5601a2ba0b8593979542c3
PHP
theofanet/TFW
/Core/THtml/Table/Filter/Number.php
UTF-8
1,397
2.59375
3
[]
no_license
<?php /** * TFrameWork2 * * Created by Theo * Date: 15/02/2017 */ class THtml_Table_Filter_Number extends THtml_Table_Filter_Text{ protected $_operator = array('>', '<', '>=', '<=', '!='); const NUMBER_REGEX = '/[0-9]+/'; /** * @param string $value ...
true
47cc4fc079f902c1386d50263826d0f10842e881
PHP
RajeshZQZ/admin
/app/model/mock/base1.class.php
UTF-8
1,106
2.9375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: zengqingzhang * Date: 2018/9/6 * Time: 15:49 */ class model_base1 { /*创建数据库连接,关闭等功能 */ static $mysql_server = '47.98.188.59'; static $mysql_username = 'root'; static $mysql_password = 'pig123456'; static $db =NULL; static $_instance; public...
true
1c61f3df14c549f061f8fdf6e32674804c64cd0b
PHP
MJBrennan/InstaStats
/app/Classes/MainData.php
UTF-8
2,501
2.515625
3
[]
no_license
<?php namespace App\Classes; use Illuminate\Http\Request; session_start(); class MainData extends Curl{ public $token; public function __construct($token) { $this->token = $token; } public function profileInfo() { $uri = "https://api.instagram.com/v1/users/self/?access_token=". $this->token."...
true
5b0ec7c423fbe95a4c738716d836bb9f08ad3bee
PHP
ASKJR/firefly
/app/Vagalume/VagalumeInterface.php
UTF-8
267
2.796875
3
[]
no_license
<?php namespace App\Vagalume; interface VagalumeInterface { /** * searchSong in vagalume.com * @param string $art name of the singer * @param string $mus name of the song * @return string JSON */ public function searchSong($art = null, $mus = null); }
true
8d3688012108d231ea56c8000590a8c7787110b7
PHP
tarikmanoar/xenforo
/src/XF/Mvc/Entity/Repository.php
UTF-8
1,116
2.5625
3
[]
no_license
<?php namespace XF\Mvc\Entity; abstract class Repository { /** * @var Manager */ protected $em; protected $identifier; public function __construct(Manager $em, $identifier) { $this->em = $em; $this->identifier = $identifier; } /** * @return \XF\Db\AbstractAdapter */ public function db() { re...
true
ba9ca93823e263aa217a8bb5500963465e7b1664
PHP
dbojdo/shipment
/src/Vendor/VendorOption.php
UTF-8
2,286
2.796875
3
[ "MIT" ]
permissive
<?php /** * VendorOption.php * * @author dbojdo - Daniel Bojdo <daniel.bojdo@dxi.eu> * Created on Nov 21, 2014, 15:00 * Copyright (C) DXI Ltd */ namespace Webit\Shipment\Vendor; use Doctrine\Common\Collections\ArrayCollection; /** * Class VendorOption * @package Webit\Shipment\Vendor */ class VendorOption i...
true
e6b568e027c92bc50b567806db7ee5c694954d4a
PHP
silvadanilo/KbizeCli
/src/KbizeCli/Http/Response.php
UTF-8
732
2.625
3
[]
no_license
<?php namespace KbizeCli\Http; use Guzzle\Http\Message\Response as GuzzleResponse; class Response extends GuzzleResponse { private $rawResponse; public static function fromRawResponse(GuzzleResponse $rawResponse) { return new static( $rawResponse->getStatusCode(), $rawResp...
true
2ac03c996f9f3ebb4b21f2036b00e017346d7293
PHP
Town1201/PHP
/oop/hello.php
UTF-8
165
2.53125
3
[]
no_license
<?php /** * */ class Hello { public function sayHello(){ echo 'hello'; } } /** * */ class Desktop { public function work(){ echo "work"; } } ?>
true
ba3e1ff1d0f978ed6916b13bbd611b35fe62add5
PHP
erkineren/webservice-skeleton
/src/Controller/BaseController.php
UTF-8
879
2.859375
3
[]
no_license
<?php namespace App\Controller; use App\Response\ApiResponse; use Slim\Container; use Slim\Http\Request; abstract class BaseController { /** * @var Container */ protected $container; /** * @var Request */ protected $request; /** * @var ApiResponse */ protected...
true
e16d0682be9eb7724068b8d0910a6c0ded6dc497
PHP
apache/netbeans
/php/php.editor/test/unit/data/testfiles/overriding/overridden/overridden_01.php
UTF-8
1,907
2.609375
3
[ "Apache-2.0" ]
permissive
<?php /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License")...
true
574598431975055c6de3f1afbee4e1844dd88943
PHP
jefriR/webprog
/app/Http/Controllers/GenreController.php
UTF-8
1,950
2.578125
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Genre; use Illuminate\Http\Request; use Illuminate\Support\Facades\Validator; class GenreController extends Controller { public function index() { $genres = Genre::paginate(8); return view('genre.home', compact('genres')); } public functi...
true
22d580c47da3dead1843c93cd18f90e90c6bec7a
PHP
LuanTrindade95/Avaliacao
/Rh.Projetos/Classes/CargoRepositorio.Class.php
UTF-8
534
2.84375
3
[ "MIT" ]
permissive
<?php class CargoRepositorio { public function InserirCargo($idVaga, $idTecnologia) { $conn = getConnection(); $sql = "INSERT INTO cargo (id_vagas,id_tecnologias) VALUES (:idVaga,:idTecnologia)"; $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $stmt = $conn->prepare($sql); $stmt->bindValu...
true
3200ceb297885791f40018e7e32eebeecfcc5c7a
PHP
vladlu/the-guide
/src/class-columns.php
UTF-8
2,291
2.984375
3
[ "MIT" ]
permissive
<?php /** * Columns * * Adds new columns, edits/deletes the old columns (WP List Table for the-guide). * * @package The Guide * @since 0.1.3 */ // Exit if accessed directly. if ( ! defined( 'ABSPATH' ) ) { exit; } /** * Columns. * * @since 0.1.3 */ class The_Guide_Columns { /** * Settings object. *...
true
b55e5e7ba28b984fc373714c35985acaa1ec4f8c
PHP
Lehj14/movie-projects
/app/Http/Controllers/MoviesController.php
UTF-8
2,218
2.828125
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Helper\Helper; use App\ViewModels\MoviesViewModel; use App\ViewModels\MovieViewModel; use Illuminate\Support\Facades\Http; use Illuminate\View\View; class MoviesController extends Controller { private const POPULAR_MOVIES = '/movie/popular'; private const NOW_PLA...
true
1059c2615b7ac0409d6e89aaa78587ab74c860a9
PHP
VihangaParanahewa/Jewelry-shopping-website
/application/models/UserSearchModel.php
UTF-8
2,967
2.640625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php class UserSearchModel extends CI_Model{ public function getSearchRingData(){ $query = ""; switch ($this->input->post('category')) { case 'price': $price=$this->input->post('search'); if ($this->input->post('symbol')=="="){ $que...
true
b0391bdf56035ca0904d614f42922b95b343c97a
PHP
julio899/factura_ktux
/ktux/models/FacturaModel.php
UTF-8
574
2.640625
3
[]
no_license
<?php namespace ktux\models; class FacturaModel{ function __construct($datos) { $pdf=new PDF(); // [ Establesco Todos los datos que conendra la Factura ] $pdf->set_data($datos); $pdf->FPDF('P','mm','Letter'); // Esta funcion la uso cuando voy a imprimir al final el numero de la paguina $pdf->Ali...
true
ffd22d72d664c49e9c30bd11d6da8c8713f7a0a3
PHP
eamon-commercial-contracts/pl
/tests/Unit/FizzBuzzTest.php
UTF-8
873
2.859375
3
[ "MIT" ]
permissive
<?php namespace Tests\Unit; use Tests\TestCase; use App\Exceptions\IndivisbleByZeroException; use \App\Library\Divisible; class FizzBuzzTest extends TestCase { /** * @expectedException IndivisbleByZeroException; */ public function testThrowExceptionOnDividendTest() { $this->expectExcep...
true
e6a3ac4ce26c41a9f827068898f6cdd7dad23d86
PHP
Hatem-Ben-Hamza/FileUpload1
/src/AppBundle/Service/UploaderService.php
UTF-8
451
2.6875
3
[ "BSD-3-Clause", "MIT" ]
permissive
<?php namespace AppBundle\Service; use Symfony\Component\HttpFoundation\File\UploadedFile; /** * */ class UploaderService { /*private $targetDirectory; function __construct($targetDirectory) { $this->targetDirectory = $targetDirectory; }*/ public function upload(UploadedFile $file,$targetDirectory){ $fi...
true
60441ca3c1b5b31f1dd002814e4f7efeabb8e816
PHP
Shen14335/Web-app
/admin/includes/another_test.php
UTF-8
785
2.71875
3
[]
no_license
<?php include("includes/connection.php"); $sql = "SELECT COUNT(id) as total_available, bookTitle, bookIsbn,bookCategory,bookAuthor,book_status FROM tbl_books where book_status = 'Available' GROUP BY bookTitle ORDER BY id"; $result=mysqli_query($connect, $sql); //rs.open sql,con ...
true
fef5a00e97546821ded0e1e853659bee3ed964e0
PHP
clm79/hallenscan
/module/Application/src/IO/Bordero/Bordero512SatzD00.php
UTF-8
1,613
2.921875
3
[]
no_license
<?php namespace Application\IO\Bordero; /** * Sendungsposition-Satz (D00) * * @author cmartin */ class Bordero512SatzD00 extends Bordero512SatzBase { public const SATZART = "D00"; /* @var int */ private $sendungsPosition; /* @var int */ private $packstueckAnzahl; /* @var string */ ...
true
6462aee19ead9a1c658e16cae07df30f611bf78c
PHP
sauvabelin/netBS
/src/NetBS/CoreBundle/Model/Numberrange.php
UTF-8
723
2.84375
3
[ "MIT" ]
permissive
<?php namespace NetBS\CoreBundle\Model; class Numberrange { /** * @var double */ private $biggerThan = 0; /** * @var double */ private $lowerThan = 0; /** * @return float */ public function getBiggerThan() { return $this->biggerThan; } /** ...
true
5ec576dc7af75e5ffd70ef1164b9459c98dcbdc7
PHP
RitchieWhitemore/metric
/src/services/ApiMetricService.php
UTF-8
1,907
2.734375
3
[]
no_license
<?php namespace whitemore\metric\services; use yii\base\BaseObject; use yii\helpers\ArrayHelper; use yii\helpers\Json; class ApiMetricService extends BaseObject implements MetricInterface { /** * @var string */ protected $apiUrl; protected $client; public function __construct($apiUrl, $c...
true
05765e94c25ee21889c072fe2a09208a2ddb2055
PHP
itsgoingd/clockwork
/Clockwork/DataSource/EloquentDataSource.php
UTF-8
11,629
2.6875
3
[ "MIT" ]
permissive
<?php namespace Clockwork\DataSource; use Clockwork\Helpers\Serializer; use Clockwork\Helpers\StackTrace; use Clockwork\Request\Request; use Clockwork\Support\Laravel\Eloquent\ResolveModelLegacyScope; use Clockwork\Support\Laravel\Eloquent\ResolveModelScope; use Illuminate\Database\ConnectionResolverInterface; use Il...
true
f78b4ffafd2908810a3e9fadce1c6514e1a4739b
PHP
VratsaSoftware/php18
/04_PHP_OOP_and_MVC/01_oop_INTRO/Demos/index.php
UTF-8
468
2.671875
3
[]
no_license
<?php include 'User.php'; // $pesho = new User(); // $gosho = new User(); // // var_dump($pesho); // // var_dump($gosho); // // echo $pesho->role; // $pesho->username = 'Pesho'; // $gosho->role = 'Editor'; // // echo 'Pesho`s username is ' . $pesho->username; // $pesho->get_user_role(); // echo "<p></p>"; // $go...
true
3ea9a00ad65816976c989d234b1fd2a567332540
PHP
graphpql/graphpinator
/src/Typesystem/EnumItem/EnumItemSet.php
UTF-8
1,346
2.78125
3
[ "MIT" ]
permissive
<?php declare(strict_types = 1); namespace Graphpinator\Typesystem\EnumItem; /** * @method EnumItem current() : object * @method EnumItem offsetGet($offset) : object */ final class EnumItemSet extends \Infinityloop\Utils\ImplicitObjectMap { protected const INNER_CLASS = EnumItem::class; public function _...
true
4cb58e871e27be91957d26b53c62b301bfcba4ae
PHP
liu-jack/tcht
/logic/controls/userkeep.class.php
UTF-8
13,824
2.609375
3
[]
no_license
<?php /** * FileName: userkeep.class.php * Description:留存分析 * Author: xiaochengcheng,tanjianchengcc@gmail.com * Date:2013-5-18 14:20:29 * Version:1.00 */ class userkeep{ /** * 服务器IP * @var string */ public $ip; /** * 用户数据 * @var Array */ public $user; /** * 时间 * @var string */ privat...
true
dd59fd2dd42f64515a9c21511ab1015912226e2d
PHP
GallardoBrayan/phpform
/index.php
UTF-8
2,062
2.765625
3
[]
no_license
<?php $errors = []; $missing = []; if(isset($_POST['send'])) { $expected =['name', 'email', 'comments']; $required = ['name', 'comments']; $to = 'Brayan Gallardo <brgallar@uci.edu>'; $subject = 'Feedback from online form'; $headers = []; $headers[] = 'From: webmaster@example.com'; $headers[] = 'Cc: another@ex...
true
91b856c6368f923cb607326579697c27d9e1f8db
PHP
mazoo/VFSN
/www/plugins/Smarty_tags/plugins/function.set.php
UTF-8
2,036
3
3
[]
no_license
<?php /* * Smarty plugin * ------------------------------------------------------------- * File: function.set.php * Type: function * Name: set * Purpose: set a variable * ------------------------------------------------------------- */ function smarty_function_set($params, &$smarty) { // if an ...
true
8d8203d6bd6c492714c9299aa350a75888574266
PHP
biletnam/bxmigrate
/src/cli/SymphonyCreate.php
UTF-8
1,558
2.8125
3
[ "MIT" ]
permissive
<?php namespace marvin255\bxmigrate\cli; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; use marvin255\bxmigrate\repo\Files; use marvin255\bxmigrate\checker\HighL...
true
f18ff18982b7c510d3b3bc5255d4c0e121585bef
PHP
d2d25/spaceships-battle
/src/details.php
UTF-8
2,805
2.53125
3
[]
no_license
<?php session_start(); if (!empty($_SESSION['user_id'])) { // $user_id=$_SESSION['user_id']; // $user_login=$_SESSION['user_login']; } else { header('Location: index.php'); exit; } require_once('../includes/functions.php'); include_once('../includes/constants.php'); require_once('../includes/connect_in...
true
c6a1637fdd6521244b9163a534b831ddc022f2ab
PHP
DavidBadura/DoctrineBlending
/src/Handler/HandlerInterface.php
UTF-8
496
2.5625
3
[ "MIT" ]
permissive
<?php namespace DavidBadura\DoctrineBlending\Handler; /** * @author David Badura <d.a.badura@gmail.com> */ interface HandlerInterface { /** * @param mixed $value * @param array $options * @return mixed */ public function toDatabase($value, array $options = []); /** * @param mix...
true