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
2d609433bde8728a0385edc22e4dc8862df792a6
PHP
soulhez/kvwebme
/ww.plugins/products/frontend/submit_review.php
UTF-8
1,343
2.625
3
[]
no_license
<?php /** * Inserts a review into the database * * PHP Version 5 * * Checks that the values are valid first * * @category WebworksWebme * @package WebworksWebme * @subpackage Products_Plugin * @author Belinda Hamilton <bhamilton@webworks.ie> * @license GPL Version 2 * @link www...
true
686899b1021c5f1723222ecd8c685c80c1d8e970
PHP
gitcarrie/dollies
/getphotos.php
UTF-8
1,253
2.625
3
[]
no_license
<? // Starts with $decade and $year then finds corresponding content // Creates the follow variables: $photo1[], $photocaptions[], $photo2[] $fp = fopen('photocontent.txt','r'); if (!$fp){ echo 'ERROR: Unable to open file. photocontent.txt </table></body></html>'; exit; } $count = 0; $photos = ...
true
7ad6750f3ddfeae0590bc990cd3b41ec1aea5472
PHP
macwilly/Netbeans_Projects
/function/util.php
UTF-8
1,082
2.84375
3
[ "MIT" ]
permissive
<?php function activeTextConvert($act){ if($act == 1){ $text = "Active"; }else{ $text = "Inactive"; } return $text; } function finshTextConvert($fish){ if($fish == 1){ $text = "Finished"; }else{ $text = "Not Finished"; } return $text; }...
true
58383708ba29414099467d4a2e6a5dd3e357a2fd
PHP
porcarimaxim/ProjectCmb
/database/seeds/CallsTableSeeder.php
UTF-8
727
2.625
3
[ "MIT" ]
permissive
<?php use App\Library\Models\User; use App\Library\Models\Company; use App\Library\Models\Call; use Illuminate\Database\Seeder; use Faker\Factory as Faker; class CallsTableSeeder extends Seeder { public function run() { $faker = Faker::create(); $companyIds = Company::lists('id')->all(); $u...
true
8f7b1af2e1b430dd506fd6c7730028caf08bae4c
PHP
Indradwi22/rpkbulog-service
/application/libraries/Libarraytext.php
UTF-8
430
2.53125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); class Libarraytext { function __construct() { $CI = & get_instance(); log_message('Debug', 'Jasper Client class is loaded.'); } function arrayDisplay($input){ return implode( ', ', array_map( function (...
true
599f035e9598f098f2cc8a794af418259f2168f7
PHP
frainzy1477/alpha-vantage-api
/src/Api/ForeignExchange.php
UTF-8
3,248
2.71875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace AlphaVantage\Api; class ForeignExchange extends AbstractApi { public const OUTPUT_TYPE_COMPACT = 'compact'; public const OUTPUT_TYPE_FULL = 'full'; public const INTERVAL_1 = '1min'; public const INTERVAL_5 = '5min'; public const INTERVAL_15 = '15min'; ...
true
6facd24d35348e591cb19d93737224396fcce892
PHP
Invincible9/php_web
/php/exercise/Exercises/OOP/OldestFamilyMember/Main.php
UTF-8
1,660
4.0625
4
[ "MIT" ]
permissive
<?php //require_once "Person.php"; //require_once "Family.php"; class Person { /** * @var string */ private $name; /** * @var int */ private $age; /** * Person constructor. * @param string $name * @param int $age */ public function __construct(string ...
true
ea9bcc491084f2ba52c41c25e17ca4ed611ab502
PHP
Pierozi/Crudy
/src/Server/Kit.php
UTF-8
3,191
2.65625
3
[]
no_license
<?php namespace Crudy\Server; use Crudy\Server\JsonApi\Exception; use Crudy\Server\JsonApi\Resource; use Crudy\Server\JsonApi\View; use Hoa\Router; /** * Class Resource * @package Crudy\Server */ abstract class Kit extends \Hoa\Dispatcher\Kit { const RESOURCE_TYPE_ACCEPTED = 'queue-jobs'; /** * @var ...
true
23c31636652176b3b7c6e21a07b5d1b393f9a43e
PHP
akamk87/userboard
/application/libraries/Otd_authenticate.php
UTF-8
4,077
2.5625
3
[]
no_license
<?php if(!defined('BASEPATH')) exit('No direct script access allowed'); class Otd_authenticate { public $CI; public function __construct() { $this->CI =& get_instance(); // load libraries $this->CI->load->library('encrypt'); } /** * 로그인 유지 쿠키값 가져오기 * * 로그인 유지가 설정된 계정의 쿠키값(이메일)을 반환한다...
true
af0ea9626e15478996a2c60b4829d849a8289127
PHP
sventendo/advent-of-code-2019
/tests/Unit/Day14Test.php
UTF-8
649
2.796875
3
[]
no_license
<?php namespace Sventendo\AdventOfCode2019\Tests\Unit; use Sventendo\AdventOfCode2019\Day14; class Day14Test extends TestCase { public function setUp() { $this->subject = $this->container->make(Day14::class); $this->input = file_get_contents(__DIR__ . '/../../resources/day14.txt'); } ...
true
0e461c92d8b118c990d8eeb9cb6f30e650125110
PHP
hajime-matsumoto/seaf-log
/src/Log/Logger.php
UTF-8
1,123
2.765625
3
[]
no_license
<?php /** * Seaf: Simple Easy Acceptable micro-framework. * * クラスを定義する * * @author HAjime MATSUMOTO <mail@hazime.org> * @copyright Copyright (c) 2014, Seaf * @license MIT, http://seaf.hazime.org */ namespace Seaf\Log; /** * ロガーハンドラクラス * * LoggerHandler::register */ class Logger { /** * @var Lo...
true
533da8a84d26ac6256311c188d7bca2afd786c4d
PHP
bmxpiku/PWI
/action_search.php
UTF-8
832
2.609375
3
[]
no_license
<?php include("config.php"); ?> <?php include("clean_input.php"); ?> <?php include("dbconn.php"); ?> <?php session_start(); $dbc = dbc::instance(); $name = !empty($_POST['name']) ? "%" . $_POST['name'] . "%" : "%%"; $author = !empty($_POST['author']) ? "%" . $_POST['author'] . "%" : "%%"; $result = $dbc->pre...
true
d59e65da91cc87d3ffb964db5afaf7e0b9e6cd9e
PHP
MartinElizbaryan/Public
/index.php
UTF-8
1,590
3.0625
3
[]
no_license
<form method="post" action="index.php" enctype="multipart/form-data"> <input type="text" name="name" placeholder="name"> <input type="text" name="surname" placeholder="surname"> <input type="number" name="age" placeholder="Age"> <input type="file" name="file"> <input type="submit" value="save"> </fo...
true
c689471cdc20280e6e172e63989c9262217ef5a7
PHP
wangying713/algo
/37_greed/Bag.php
UTF-8
1,256
3.171875
3
[]
no_license
<?php function getMax($arr) { $product = $arr; // 计算单价 foreach ($product as &$val) { $singlePrice = bcdiv($val['price'], $val['weight'], 2); $val['singlePrice'] = bcmul($singlePrice, 100, 0); } rsort($product); $total = 0; $result = []; foreach ($product as $val) { ...
true
269b1f09aa0435b326284202d86c7b4f6303d0a7
PHP
portalgas/neo.portalgas
/src/Model/Entity/ProdGasPromotion.php
UTF-8
1,712
2.546875
3
[]
no_license
<?php namespace App\Model\Entity; use Cake\ORM\Entity; /** * ProdGasPromotion Entity * * @property int $id * @property int $organization_id * @property string|null $name * @property string|null $img1 * @property \Cake\I18n\FrozenDate $data_inizio * @property \Cake\I18n\FrozenDate $data_fine * @property float...
true
f923fd70a869d1eabf02f6a3bf520992c6cbed5e
PHP
asaelx/artifice
/app/Http/Controllers/CurrencyController.php
UTF-8
2,515
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Http\Requests\CurrencyRequest; use App\Currency; class CurrencyController extends Controller { /** * Create a new controller instance. * * @return void */ public function __construct() { $this->middlewa...
true
e2352b1012c33840a82b80f3ff691fcbbb524e1b
PHP
ObadaAbdelkareem/syliusBack
/vendor/coduo/php-matcher/src/Matcher/ArrayMatcher.php
UTF-8
8,436
2.796875
3
[ "MIT" ]
permissive
<?php namespace Coduo\PHPMatcher\Matcher; use Coduo\PHPMatcher\Exception\Exception; use Coduo\PHPMatcher\Parser; use Coduo\ToString\StringConverter; use Symfony\Component\PropertyAccess\PropertyAccess; use Symfony\Component\PropertyAccess\PropertyAccessor; use Symfony\Component\PropertyAccess\PropertyPath; final cla...
true
9473405abe9b457bfe9f1cb6570fe709860cdf86
PHP
bqhoang301/CSCI-487-Cashier-App
/View_Total.php
UTF-8
2,309
2.578125
3
[]
no_license
<?php require_once("session.php"); require_once("functions.php"); require_once("database.php"); verify_login(); verify_owner(); $mysqli = Database::dbConnect(); $mysqli -> setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $stmt = $mysqli -> prepare("Select * from Owner Union Select * from Employee"); $stmt -> ...
true
b0b76759e373dd77da696db597e0fc739dce3082
PHP
deb8192/TiendaTablets
/api/get/usuarios.php
UTF-8
2,691
2.875
3
[]
no_license
<?php // FICHERO: api/get/usuarios.php // PETICIONES GET ADMITIDAS: // api/usuarios/{LOGIN} -> devuelve true o false en función de si el login está disponible o no, respectivamente. // ================================================================================= // INCLUSION DE LA CONEXION A LA BD // ===========...
true
8f495d3449b567f2328ca93452f8bb25556717ba
PHP
sivaramakrishnansr/SENSS
/UI_client_server/Client/api.php
UTF-8
26,071
2.53125
3
[]
no_license
<?php function display_threshold($int_threshold) { $zeros = log($int_threshold) / log(10); if ($zeros >= 12) { return round($int_threshold / pow(10, 12),2)." TBps"; } else if ($zeros >= 9) { return round($int_threshold / pow(10, 9),2)." GBps"; } else if ($...
true
0ee1f929834ee06e9226b3eb5b5fd7666bc2e6a2
PHP
mayoita/CMV-Site
/sites/all/themes/bootstrap_subtheme/templates/node--bootstrap_carousel.tpl.php
UTF-8
2,375
2.59375
3
[]
no_license
<?php /** * @file * Template for bootstrap carousel */ ?> <div id="carousel-bootstrap" class="carousel slide carousel-fade"> <?php $node = entity_metadata_wrapper('node', $node); $control_options = $node->field_control_options->value(); $carousel_items = $node->field_slides->value(); ?> <?php if...
true
d199261266e1c719085faa1f75fcaaccf7a5fe8e
PHP
rsgzs/shoop
/server/lib/receiveImg.func.php
GB18030
1,187
2.515625
3
[]
no_license
<?php function receiveImg(){ $imgPaths=array(); foreach($_FILES as $img){ $imgTemp=$img['tmp_name']; $imgName=$img['name']; $imgSize=$img['size']; $imgError=$img['error']; $imgType=$img['type']; if ($imgError > 0) { switch ($imgError) { case 1 : ...
true
8335eb24425e99af626c08b99e002ffe80d4e8a5
PHP
geminscs/Ticket
/add_ticket.php
UTF-8
982
2.9375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: admin * Date: 2/22/17 * Time: 10:32 PM */ require_once "DBManager.php"; if(is_array($_GET)){ if(isset($_GET["user_id"]) and isset($_GET["event_id"])){ $user_id = $_GET["user_id"]; $event_id = $_GET["event_id"]; $conn = DBManager::getInstance()->...
true
3517955fc23958c32652707e3f915d9b9cc6432b
PHP
keviny2013/masterclass-examples
/src/Controller/Story.php
UTF-8
1,433
2.625
3
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
<?php namespace Masterclass\Controller; use Aura\View\View; use Aura\Web\Request; use Aura\Web\Response; use Masterclass\Form\StoryForm; use Masterclass\Model\Comment; use Masterclass\Model\Story as StoryModel; use Masterclass\Service\CreateStoryService; class Story { /** * @var StoryModel */ prot...
true
7dc8f4af0496dc012c78e325b6b808a696cfe598
PHP
lotharthesavior/command
/examples/HelloWorld.php
UTF-8
465
3
3
[ "MIT" ]
permissive
<?php namespace Tarsana\Command\Examples; use Tarsana\Command\Command; class HelloWorld extends Command { protected function init () { $this->name('Hello World') ->version('1.0.0-alpha') ->description('Shows a "Hello World" message'); } protected function execute() ...
true
141735d89bd71d876298504fe6f0c66bc904cf85
PHP
rodchyn/elephant-lang
/src/Parser/Builder.php
UTF-8
3,736
2.734375
3
[ "MIT" ]
permissive
<?php /** * Created by JetBrains PhpStorm. * User: Yura Rodchyn (rodchyn) rodchyn@gmail.com * Date: 7/15/13 * Time: 7:56 PM * To change this template use File | Settings | File Templates. */ namespace Rodchyn\ElephantLang\Parser; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Consol...
true
650c56eac0486c30f5ea3d9115f218e962c45364
PHP
wilsonxp/sparrowgrove.com
/christopher.sparrowgrove.com/dynamic_pages.php
UTF-8
2,085
3.09375
3
[]
no_license
<?php /* * -----------------INFORMATION & LICENSING----------------- * * ORIGINAL AUTHOR: PHP Academy * AUTHOR: Christopher Sparrowgrove * COMPANY: PHP Maintenance * WEBSITE: http://PHPAcademy.org * NAME: Dynamic Page * DATE: January 2012 * ...
true
9c4cd6f9562068c4a3d1478b684a74cc99aa83c2
PHP
B-Programmer/Project-2016
/ComputerScienceForum01/administrator/app/controllers/ajaxrequest.php
UTF-8
526
2.640625
3
[]
no_license
<?php require_once '../../vendor/autoload.php'; require_once '../database/connection.php'; class AjaxRequest { public function getTopics($id) { echo json_encode(Topic::findAll($id)); } public function getPosts($id) { echo json_encode(Post::findAll($id)); } } //Get The REQUEST if (i...
true
7dd3ba0c211cf4cb12a010ff63012448b4713a6c
PHP
gpcosta/thats-it
/src/Security/CSRFToken.php
UTF-8
2,445
3.078125
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: Costa * Date: 26/04/2020 * Time: 15:54 */ namespace ThatsIt\Security; use ThatsIt\Request\HttpRequest; use ThatsIt\Response\Cookie; use ThatsIt\Response\HttpResponse; use ThatsIt\Session\IDGenerator; /** * Class CSRFToken * @package ThatsIt\Session * * CSRF stands fo...
true
4746645f862096803b75e45fbc4f4b419a5c81d8
PHP
sethbattin/datafestivus
/notweb/src/RTCStore/Adapter/AdapterInterface.php
UTF-8
432
2.640625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: seth * Date: 1/2/16 * Time: 6:58 PM */ namespace DataFestivus\RTCStore\Adapter; use DataFestivus\RTCStore\Connection; interface AdapterInterface { public function save(Connection $connection); /** * Retrieve an RTC connection with the specified name ...
true
15b3160da9568c607e64e5384ffd81ed9f9ecedd
PHP
teepluss/laravel-theme
/src/Theme.php
UTF-8
28,678
2.578125
3
[ "MIT" ]
permissive
<?php namespace Teepluss\Theme; use Closure; use ReflectionClass; use Illuminate\Http\Response; use Illuminate\View\Factory; use Illuminate\Config\Repository; use Illuminate\Events\Dispatcher; use Illuminate\Filesystem\Filesystem; use Teepluss\Theme\Compilers\TwigCompiler; use Illuminate\View\Compilers\BladeCompiler; ...
true
9bc7610bd58ea749c6d77b53d35e71ea1071cc65
PHP
LukeMcClelland/Calendar
/displayEvents.php
UTF-8
1,231
2.96875
3
[]
no_license
<?php ini_set("session.cooke_httponly", 1); header("Content-Type: application/json"); $name_array= array(); $date_array= array(); session_start(); require('database.php'); // Since we are sending a JSON response here (not an HTML document), set the MIME Type to application/json //Because you are posting the data via ...
true
1c9cf0a1ae134130d01773a08882c454b06e9610
PHP
Pixelcheck/WCF
/wcfsetup/install/files/lib/system/form/element/LabelFormElement.class.php
UTF-8
1,141
2.953125
3
[]
no_license
<?php namespace wcf\system\form\element; use wcf\system\util\StringUtil; /** * Provides a label form element. * * @author Alexander Ebert * @copyright 2001-2011 WoltLab GmbH * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php> * @package com.woltlab.wcf * @su...
true
871171ad5db6da85a6779c6780069395a59db706
PHP
lihongsheng/customer
/customer/Lib/WebSocket.php
UTF-8
2,542
2.78125
3
[]
no_license
<?php /** * WebSocket.php * websocket 协议 * 作者: 李红生 (549940183@qq.com) * 创建日期: 17/2/5 下午3:25 * 修改记录: * * $Id$ */ namespace customer\Lib; use customer\Lib\SocketSelect; class WebSocket extends SocketSelect { /* *发送WS协议,建立WS协议链接 *@param string WS发送的请求协议内容 */ public static function handshake...
true
ed7f72e168b8e315e737b899f510ff68614eab6b
PHP
Arnab-Prosad-Roy/pepManagements
/Classes/fileaccess.php
UTF-8
8,339
2.921875
3
[]
no_license
<?php include_once "../lib/Database.php"; ?> <?php include_once "../helpers/Format.php"; ?> <?php include_once "../lib/Session.php"; ?> <?php /** * File Class */ class Files { private $db; private $fm; public function __construct(){ $this->db = new Database(); $this->fm =...
true
d8b4ae4ed2c6ce1a98ab5ac5b960d9765abeb830
PHP
xuanhoa88/massive-first-codes
/app/plugins/admin/models/page.php
UTF-8
1,443
2.75
3
[]
no_license
<?php class Page extends AdminAppModel { public $name = 'Page'; public $validate = array( 'key' => array( 'minLengthRule' => array( 'rule' => array('minLength', 3) ), 'maxLengthRule' => array( 'rule' => array('maxLength', 128) ), 'formatRule' => array( 'rule' => '/^[-_a-zA-Z0-9]...
true
206eb56fec7c4f991448c8a690b6998090249ad0
PHP
avsixto/TSW
/fasvery/controller/MainController.php
UTF-8
690
2.625
3
[]
no_license
<?php require_once(__DIR__."/../core/ViewManager.php"); require_once(__DIR__."/../controller/BaseController.php"); /** * Class MainController * * Controller to make a CRUDL of main entities * */ class MainController extends BaseController { /** * Reference to the PostMapper to interact * with the database * @var...
true
a19fc44418074e742199079f230e59e830ab4a27
PHP
bnqtoan/Sodium
/src/Sodium/Export/ExportAbstract.php
UTF-8
442
2.53125
3
[ "MIT" ]
permissive
<?php namespace Sodium\Export; use Sodium\Sodium; abstract class ExportAbstract extends \Sodium\Export implements ExportInterface { protected $_is_exportable = TRUE; protected $_sodium_obj; protected $_options = array(); public function __construct(Sodium $sodium_obj, $options = array()) { ...
true
7ea296340a30dabe4f06941d2889e2242932126b
PHP
PET-EC-Sobral/BusTrackerAPI
/application/controllers/Routes.php
UTF-8
15,073
2.53125
3
[ "MIT" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); //require APPPATH . '/libraries/REST_Controller.php'; require APPPATH.'/libraries/Jsv4/Validator.php'; require APPPATH.'/libraries/Jsv4/ValidationException.php'; include( APPPATH.'controllers/Authentication.php' ); /** * @apiDefine tokenParam * @a...
true
8c09cb3251f34e55e7d4c0a763e01b7f1dfb01b9
PHP
vjerandubrovic/php_oop
/L16_animal.php
UTF-8
338
3.890625
4
[]
no_license
<?php interface Animal{ function makeSound(); } class Dog implements Animal{ function makeSound(){ echo "Vau Vau <br>"; } } class Cat implements Animal{ function makeSound(){ echo "Miau Miau <br>"; } } $dog = new Dog(); $cat = new Cat(); $dog->makeSound(); $cat...
true
e91e8f93308783fc83d5f9dc0f67d4ddbc23833c
PHP
CPS-IT/t3events
/Classes/Command/CleanUpCommandController.php
UTF-8
6,000
2.609375
3
[]
no_license
<?php namespace DWenzel\T3events\Command; use TYPO3\CMS\Extbase\Mvc\Controller\CommandController; use DWenzel\T3events\Controller\EventDemandFactoryTrait; use DWenzel\T3events\Controller\EventRepositoryTrait; use DWenzel\T3events\Controller\PerformanceDemandFactoryTrait; use DWenzel\T3events\Controller\PerformanceRepo...
true
79652008b130b721bd59169754b2c39db6d07e8e
PHP
damanic/ls1-module-shop
/shipping_types/shop_purolatorshipping.php
UTF-8
14,665
2.546875
3
[]
no_license
<? class Shop_PurolatorShipping extends Shop_ShippingType { const TEST_URL = "https://devwebservices.purolator.com/PWS/V1/Estimating/EstimatingService.asmx"; const LIVE_URL = "https://webservices.purolator.com/PWS/V1/Estimating/EstimatingService.asmx"; private $host; /** * Returns information about the...
true
3184821cc7844c4bb2c87b42d1686f8645464707
PHP
corowne/lorekeeper
/app/Console/Commands/ClearDeletedCharacterAttachments.php
UTF-8
1,615
2.671875
3
[ "MIT" ]
permissive
<?php namespace App\Console\Commands; use Illuminate\Console\Command; use DB; use App\Models\Character\Character; use App\Models\Character\CharacterCurrency; use App\Models\Character\CharacterFeature; use App\Models\Character\CharacterImage; class ClearDeletedCharacterAttachments extends Command { /** * T...
true
d1dade591ac41a5f90093d3a4924c939e3f3a69b
PHP
juliocesardiaz/Dealership
/app/app.php
UTF-8
1,959
2.703125
3
[]
no_license
<?php require_once __DIR__."/../vendor/autoload.php"; require_once __DIR__."/../src/car.php"; session_start(); if(empty($_SESSION['list_of_cars'])) { $firstCar = new Car("Tesla X", 100000, 0, "pictures/tesla.jpg"); $secondCar = new Car("Honda Accord", 10000, 50000, "pictures/honda.jpg")...
true
da6a694bf016a8523d1572cee8f25db780cfbc20
PHP
adityapadhye1507/ecommerce-php
/web/login.php
UTF-8
1,680
2.84375
3
[]
no_license
<?php require_once("DB.class.php"); session_start(); if($_SERVER["REQUEST_METHOD"] == "POST") { // username and password sent from form $user = $_POST['username']; $pass = $_POST['password']; $db = new DB(); $validUser = $db->isValidUser($user,$pass); if($v...
true
a9a26a3160332ee0eec130dc77cdcc7d7d8cf2dd
PHP
orchestral/control
/src/Processors/Role.php
UTF-8
5,368
2.546875
3
[ "MIT" ]
permissive
<?php namespace Orchestra\Control\Processors; use Exception; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Event; use Orchestra\Contracts\Foundation\Foundation; use Orchestra\Control\Http\Presenters\Role as RolePresenter; use Orchestra\Control\Validations\Role as RoleValidator; use Orchestra\Model...
true
f62f9f7a213619663b558ffb35dc09eea6c084d7
PHP
lannguyen1234abc/aptech-php-15-Lan
/php/2018-10-22/lan.php
UTF-8
118
3.15625
3
[]
no_license
<h1> PHP </h1> <?php $ten = "Lan"; $tuoi = 21; echo "<h1 style='color:red;'>Hello $ten </h1>"; echo "Tuoi $tuoi"; ?>
true
d648a42b68c17c4fea00faa11df8b82d0b7593c8
PHP
gerardtoko/wsf
/p2019-mt-exam/src/controllers/AdminController.php
UTF-8
308
2.5625
3
[ "Apache-2.0" ]
permissive
<?php class AdminController extends BaseController { public function index($req, $res){ //Test si l'utilisateur est logged $this->isLogged(array("redirect" => "/admin/login")); $film = new Film(); $rows = $film->find(); $res->html("admin/index.php", array("films" => $rows)); } }
true
3d86217b81ebd9aa9b255dad50e2fb31a5d3ca5a
PHP
jeremypbeasley/rest_fundaday
/app/Http/Controllers/Admin/DayController.php
UTF-8
3,536
2.640625
3
[]
no_license
<?php namespace App\Http\Controllers\Admin; use App\Http\Requests; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use Day, Session; class DayController extends Controller { // login public function login(){ return view('admin/login'); } public function postLogin(Request $request){ $inpu...
true
5d46412177846e2f73162e93b05a15f84e795c2d
PHP
favdev111/delivrd-cakePHP-angularJS
/delivrd/View/Helper/ImageHelper.php
UTF-8
5,908
2.859375
3
[]
no_license
<?php /** * Image Helper class file. * * Simplifies the construction of Image elements. * * @link http://cakephp.org CakePHP(tm) Project * @package Cake.View.Helper * @since CakePHP(tm) v 0.9.1 * @license http://www.opensource.org/licenses/mit-license.php MIT License */ /** * Html...
true
762abc3d0ac63c8467fcdad22ccbca58156e7d28
PHP
Linyugui/js
/pack.php
UTF-8
2,282
3.703125
4
[]
no_license
<?php function countx($x) { // 传入一个x值,计算从1到x的和 $sum = 0; for ($i = 0; $i <= $x ; $i++) { $sum += $i; } echo $sum."<br>"; } function primeIn($x) { // 传入一个x值,输出打印小于等于x的所有质数 if($x < 2) echo "null"; else { for ($i = 2; $i <= $x ; $i++) { $flag = true; for ($j = 2; $j <= $i/2 ; $j++) { # code......
true
48095c17200e353ef4634da7722169b5290e47c9
PHP
nsns0101/React_Board
/app/helpers.php
UTF-8
967
2.828125
3
[ "MIT" ]
permissive
<?php //도우미 함수를 사용하기 위해 composer.json 등록해야함 //autoload에 "files": ["app/helpers"] 선언 후 //composer dump-autoload --optimize function attachments_path($path = null) { //DIRECTORY_SEPARATOR는 해당 운영체제의 '/'나 '\' 기호를 '/'로 나타내줌 return public_path('files'.($path ? DIRECTORY_SEPARATOR.$path : $path)); } //파일 사이즈 형식 ...
true
5e7c061ebedd21baeb5ffa331e65baf29d0c9b08
PHP
firebirdluo/first
/src/First/Log.php
UTF-8
487
2.578125
3
[]
no_license
<?php /* * This file is part of the Monolog package. * * (c) Jordi Boggiano <j.boggiano@seld.be> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace First; /** * Monolog log channel * * It contains a stack of Handlers ...
true
547384843271cd294ce92d8a5ce0ef7518f136f8
PHP
sunixzs/mysql_dump_zip_mail_new_records
/Classes/Mailer.php
UTF-8
2,422
2.8125
3
[]
no_license
<?php if (!defined('MODE') || MODE != 'INDEX') { die('Direct access denied!'); } /** * @author sunixzs */ class Mailer { /** * Sends a mail with a file attachement. * * @param string $to * @param string $subject * @param string $from * @param string $returnPath * @param st...
true
6f865763397aa2c7ac440f92e328bd57dc7314f9
PHP
studiomatrix/technical-test
/app/Contract/AvailabilityInterface.php
UTF-8
219
2.640625
3
[ "MIT" ]
permissive
<?php namespace App\Contract; /** * @todo complete this * * Interface AvailabilityInterface * @package App\Contract */ interface AvailabilityInterface { public function getId(); public function getDay(); }
true
97392b7a586f53d8c608e5849be503e01bf93c88
PHP
MilkZoft/Documentacion-ZanPHP
/sections/helpers/router_helper.php
UTF-8
3,294
2.671875
3
[]
no_license
<?php if(isset($_GET["lang"]) and $_GET["lang"] === "es") { $lang = "es"; } else { $lang = "en"; } ?> <div id="Ubication"> <a href="index.php?lang=<?php print $lang; ?>" title="<?php print __("Home"); ?>"><?php print __("Home"); ?></a> &raquo; <a href="index.php?lang=<?php print $lang; ?>&section=...
true
0f1d62d412d1f73d6537abdb0836b5f4ec25e468
PHP
Symela/TED_exercise_ebay_website
/ebay-new/backend/api/lsh.php
UTF-8
882
2.53125
3
[]
no_license
<?php require 'connect.php'; $data =[]; $_POST = json_decode(file_get_contents('php://input'), true); if(isset($_POST) && !empty($_POST)) { $lid = htmlspecialchars($_POST['id']); $sql = "SELECT product.description as description, user.username as username, product.name as name from product, auction, user...
true
39087e7fc31b92afaf8e9e614125f66e3102dbf0
PHP
SSShinorina/university_management
/finalproject/Src/Admin/viewCourses/viewCourses.php
UTF-8
858
2.78125
3
[ "MIT" ]
permissive
<?php namespace App\Admin\viewCourses; use PDO; class viewCourses { public $code; public $dept_name; public function setData($data=''){ if(array_key_exists('code',$data)){ $this->code=$data['code']; } if(array_key_exists('dept_name',$data)){ $this->dept_nam...
true
c0f2c8314849a5e12523804d327e989758bd34c4
PHP
Deserve-040900/FDEV-D0002
/bai_tap_mang_2.php
UTF-8
2,879
2.625
3
[]
no_license
<?php $ho = ''; $chu_lot = ''; $ten = ''; if(isset($_POST['ho_ten'])){ $mang_ten = explode(' ', $_POST['ho_ten']); //echo '<pre>',print_r($mang_ten),'</pre>'; $ho = $mang_ten[0]; $ten = $mang_ten[count($mang_ten) - 1]; array_pop($mang_ten); //$mang_ten[0] = ''; unset($mang_ten[0]); $chu...
true
77781372a2e943344c03ce2579235c7647b40baa
PHP
DRDIO/TXM
/library/Helper/Sort.php
UTF-8
1,653
2.890625
3
[]
no_license
<?php class Helper_Sort { protected $_sortList; protected $_view; public static function factory($view, $sortList, $sortKey = null, $dirKey = null, $sortDefault = null) { return new self($view, $sortList, $sortKey, $dirKey, $sortDefault); } public function __construct($view, $...
true
cffe6b2ee36ccc8ce5d66ab0761450d76e68dafb
PHP
asheensingh/Communicator
/development/PHPScripts/PHPWebProject1/bbdcom/scripts/db/NomineeScript.php
UTF-8
7,022
2.859375
3
[ "MIT" ]
permissive
<?php //is nominated function isNominee($id_user, $category) { //connect to the server $conn = connectToDB(); //check if nominee is nominated $selectQuery = "SELECT ? FROM [Nominee] WHERE User_id_user = ?"; $selectStatement = sqlsrv_query($conn,$selectQuery,array($category, $id_user)...
true
65c374acb997841825d22bcabb997d72d7c84173
PHP
abobadilla02/instructivosweb
/7 - Introducción a PHP/1 - Ejemplos PHP/array.php
UTF-8
412
3.53125
4
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Arrays en PHP</title> </head> <body> <p> <?php $languages = array("HTML/CSS", "PHP", "Python", "Javascript", "Java"); foreach ($languages as $lang) { print "<p>$lang</p>"; } print "==========" unset($languages[3]); ...
true
d5c9abafbdadacda5720a36019cc911ce0f38bec
PHP
jorissae/resume
/src/Entity/Skill.php
UTF-8
2,181
2.6875
3
[]
no_license
<?php namespace App\Entity; use Doctrine\ORM\Mapping as ORM; /** * * @ORM\Entity(repositoryClass="App\Repository\SkillRepository") */ class Skill { /** * * @var int|null * * @ORM\Id * @ORM\Column(type="integer") * @ORM\GeneratedValue(strategy="AUTO") */ private $id; ...
true
c99efc91d18888718851d89f30708a3b9274f042
PHP
Us3rname/cf-backend
/src/AppBundle/EventListener/OAuthListener.php
UTF-8
730
2.671875
3
[]
no_license
<?php namespace AppBundle\EventListener; use FOS\OAuthServerBundle\Model\ClientManagerInterface; class OAuthListener { /** @var ClientManagerInterface $clientManager */ private $clientManager; /** * UserRightsListener constructor. * @param $clientManager */ public function __constru...
true
ef98869c1f6e5e554099ab018800a4ef466375fc
PHP
xp-framework/xp-framework
/core/src/main/php/text/csv/processors/lookup/GetDataSet.class.php
UTF-8
1,240
2.703125
3
[ "BSD-3-Clause" ]
permissive
<?php /* This class is part of the XP framework * * $Id: GetDataSet.class.php 11512 2009-09-15 18:13:54Z friebe $ */ uses('text.csv.CellProcessor', 'rdbms.finder.FinderMethod'); /** * Returns cell values as a DataSet * * @test xp://net.xp_framework.unittest.text.csv.DataSetCellProcessorTest * @s...
true
4c36f015c84e9eb96754edd9ab95dd07ef4b32b5
PHP
steve-kent/ddgc-app
/public_html/calendar.php
UTF-8
2,858
2.65625
3
[]
no_license
<?php require("page.php"); require_once("../lib/AuthHelper.php"); require_once("../lib/EventHelper.php"); require_once("components/card.php"); //Start session and update timeout my_session_start(); // Set description and title $desc = "Calendar of Events for the DeBary Disc Golf Club and other local clubs"; $title = "...
true
ab9108b1b59fb9dd662645c29447af75442405cd
PHP
izzudin16/Ation
/profile/edit.php
UTF-8
4,135
2.6875
3
[]
no_license
<?php session_start(); if(!isset($_SESSION["username"])) { header("Location: ../index.php"); } //Database Connection $conn = mysqli_connect("localhost","root",""); $db = mysqli_select_db($conn,"registration"); if(isset($_POST['update'])) { $fid = $_POST['id']; $fname=$_POST['name']; $fIC=$_P...
true
5331f4c41a52304da2d0c84278b137fe2e6e4842
PHP
isilnieks/codelex
/Tasks/registry/app/Repositories/Persons/MySQLPersonsRepository.php
UTF-8
2,146
2.921875
3
[]
no_license
<?php namespace App\Repositories\Persons; use App\Models\Person; use Medoo\Medoo; class MySQLPersonsRepository implements PersonRepository { private Medoo $database; public function __construct() { $this->database = new Medoo([ 'database_type' => 'mysql', '...
true
f217cf358e2ae9187308b4c27829cfd2c8310199
PHP
marscore/hhvm
/hphp/test/slow/dom_document/1679.php
UTF-8
397
2.734375
3
[ "Zend-2.0", "PHP-3.01", "MIT" ]
permissive
<?php <<__EntryPoint>> function main_1679() { $dom = new DOMDocument(); $dom->loadXML('<a><b><c /></b></a>'); $remove = array(); foreach ($dom->getElementsByTagName('b') as $data) { foreach ($data->childNodes as $element) { if ($element instanceof DOMElement) { $remove[] = $element; } } } foreach ($...
true
03cd0bf5cca644e933f3b9a836343c9b0bad7074
PHP
FelipeAveM/Managemet-Services
/MGFuntional/MS/app/solicitud.inc.php
UTF-8
3,143
3.03125
3
[]
no_license
<?php class Solicitud { private $id_solicitud; private $detalle; private $prioridad; private $estado; private $fecha_registro; private $fecha_cierre; private $nombre_usuario; private $area_locativa; private $tienda; private $detalle_cierre; private $calificacion; privat...
true
1bd79cfef6e3f71c98d19246375fe4e40a706c8e
PHP
towergit/delivery
/protected/components/ActiveRecord.php
UTF-8
681
2.765625
3
[]
no_license
<?php /** * Модель * * @category Module * @package Modules * @author Timkovsky Alexandr <timkovsky.alexandr@gmail.com> */ class ActiveRecord extends CActiveRecord { /** * Индивидуальные описания атрибутов * @return array */ public function attributeDescriptions() { return ar...
true
a288a383774be1bae902e62bded127818478db7b
PHP
mattheo56/ISCC-2020-mydevblog
/articles.php
UTF-8
1,260
2.703125
3
[]
no_license
<html lang="fr"> <head> <title>Le beatmaking l'art du temps</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="vitrine.css"> </head> <body> <div style="width: 1000px;margin:0 auto; padding-top:10px; padding-bottom:10px;paddi...
true
f03efc3248bc6c0bcd4bf56de6c52a4deec3f289
PHP
marcusmendes/desafio_rpg
/api/src/Migrations/Version20191113223922.php
UTF-8
1,906
2.625
3
[]
no_license
<?php declare(strict_types=1); namespace DoctrineMigrations; use Doctrine\DBAL\Schema\Schema; use Doctrine\Migrations\AbstractMigration; /** * Auto-generated Migration: Please modify to your needs! */ final class Version20191113223922 extends AbstractMigration { public function getDescription() : string {...
true
d1f845d1c1cdb743d29912242303d5fa7cff81e4
PHP
VPopchev/Social-Network
/src/AppBundle/Service/FileUploader.php
UTF-8
600
2.703125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Viktor * Date: 29.1.2018 г. * Time: 10:17 ч. */ namespace AppBundle\Service; use Symfony\Component\HttpFoundation\File\UploadedFile; class FileUploader { private $targetDir; public function __construct($targetDir) { $this->targetDir = $targetDir; ...
true
7932f721c6fd60a8919c933304b03f41a724ac49
PHP
ArkadiuszGIT/Framework
/App/Controllers/Showbalancecurrentyear.php
UTF-8
2,084
2.53125
3
[]
no_license
<?php namespace App\Controllers; use \Core\View; use \App\Models\BalanceCurrentYear; use \App\Flash; /** * Items controller (example) * * PHP version 7.0 */ //class Items extends \Core\Controller class Showbalancecurrentyear extends Authenticated { protected function before() { parent::before(); $thi...
true
6f63fc52827fafea71b2637387ef80776674c911
PHP
DieselPower200/geoservice-laravel
/src/ADiesel82/GeoService/ComposerScripts.php
UTF-8
4,340
2.546875
3
[ "MIT" ]
permissive
<?php namespace ADiesel82\GeoService; use Composer\Script\Event; class ComposerScripts { protected static $event; /** * Handle the post-install Composer event. * * @param \Composer\Script\Event $event * @return void */ public static function postInstall(Event $event) { ...
true
bfe9c92a6a5d24681b9f6f263663b220e92ef1e9
PHP
tamnvfoodbook/FOODBOOK_CMS_2018
/backend/models/Dmdeliverypartner.php
UTF-8
1,215
2.609375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace backend\models; use Yii; /** * This is the model class for table "DM_DELIVERY_PARTNER". * * @property string $ID * @property string $NAME * @property string $URL * @property string $CONFIG_JSON * @property integer $ACTIVE */ class Dmdeliverypartner extends \yii\db\ActiveRecord { /** ...
true
b2e7601865e1f3986cc89d091e063377ad1e6925
PHP
leonvanrooijen/Schedbot
/app/classes/class.actionhandler.php
UTF-8
662
3.09375
3
[]
no_license
<?php /** * The ActionHandler class provides an intergration for all the chat commands */ class ActionHandler { public static function validate($options, $message) { $originalMessage = $message; $matches = 0; foreach ($options as $option) { $arguments = explode('|', $option); foreach ($arguments...
true
9811d884c0ab7f68229cbc80357f44b6e220f8aa
PHP
MonkeyTime/technofutur-formation
/master/technofutur-formation/C# (basis)/php/formv3AdvancedQCM/index.php
UTF-8
6,944
2.8125
3
[]
no_license
<?php /** * ~bad "coding style" compared to the best practices for "coding style" with PHP * @see https://github.com/php-fig/fig-standards/tree/master/accepted/fr * @see http://www.phptherightway.com/ * * Only here for easy learning and builded with only things we have seen in the classroom courses * * Al...
true
2094137f35745ce1bfe7e0a8680a89fe98f9bd7b
PHP
sinkdb/homestead
/class/HousingApplicationCancelView.php
UTF-8
1,515
2.53125
3
[]
no_license
<?php class HousingApplicationCancelView extends hms\View { private $application; private $student; private $assignment; public function __construct(Student $student, HousingApplication $application, HMS_Assignment $assignment = null){ $this->application = $application; $this-...
true
f513c82b004fe59ffbdb05c9c632f9952b314045
PHP
mix6s/ice
/src/Domain/UseCase/SavePlayOffUseCase.php
UTF-8
1,488
2.765625
3
[ "MIT" ]
permissive
<?php namespace Domain\UseCase; use Domain\DTO\Request\SavePlayOffRequest; use Domain\DTO\Response\CreatePlayOffResponse; use Domain\Entity\PlayOff; use Domain\Exception\EntityNotFoundException; use DomainException; class SavePlayOffUseCase { use UseCaseTrait; public function execute(SavePlayOffRequest $request)...
true
8192f957e6f0eb868a51f83731b6912d3d6d5624
PHP
yjuyjuy/showroom-web
/app/EndDepartment.php
UTF-8
742
2.625
3
[]
no_license
<?php namespace App; use Illuminate\Database\Eloquent\Model; class EndDepartment extends Model { /** * The connection name for the model. * * @var string */ protected $connection = 'end'; /** * The table associated with the model. * * @var string */ protected $table = 'departments'; /** * Indi...
true
a4626a09f9b0bb27a5968a5c095a4d0f6725ed72
PHP
Suryanand/jasper
/admin/new-news.php
UTF-8
12,785
2.5625
3
[]
no_license
<?php include("session.php"); /*Check for session is set or not if not redirect to login page */ include("config.php"); /* Connection String*/ include('get-user.php'); /* Geting logged in user details*/ include("functions.php"); if($userType!=1) /* This page only for admin - if normal user redirect to index page */ ...
true
e5099f8298eb5d307498dbb55057ba76ae22896d
PHP
koenreiniers/sf-platform
/src-raw/Component/OAuth2/Security/Authentication/OAuth2Token.php
UTF-8
446
2.546875
3
[]
no_license
<?php namespace Raw\Component\OAuth2\Security\Authentication; use Symfony\Component\Security\Core\Authentication\Token\AbstractToken; class OAuth2Token extends AbstractToken { /** * @var string */ public $accessTokenValue; /** * @return string */ public function getAccessTokenValu...
true
bc158b86b78ca4cf5480292df8aa7420e8c27902
PHP
peteb5893/admin-system-blog
/register.php
UTF-8
10,957
2.625
3
[]
no_license
<?php require("config.php"); if(!empty($_POST)) { // Ensure that the user fills out fields if(empty($_POST['username'])) { die("Please enter a username."); } if(empty($_POST['password'])) { die("Please enter a password."); } if(!filter_var($_P...
true
e280abb539028c0be201af52291949465462d671
PHP
lhermsen/htdocs
/application/helpers/MY_date_helper.php
UTF-8
519
2.671875
3
[]
no_license
<?php function nederlandse_datumnotatie($sDatum) { $aDatum = explode("-",$sDatum); return $aDatum['2'].'-'.$aDatum['1'].'-'.$aDatum['0']; } function is_standaard_datumnotatie($sDatum) { // Check of de datum in de gestandaardiseerde datumnotatie staat if(empty($sDatum)) return false; ...
true
5211bb7e0156732173af3c86c2ea053b893b4528
PHP
kyobaka1/ptit-train-web-vul
/vul/sqli/example/sqli_tancong2.php
UTF-8
2,595
2.6875
3
[]
no_license
<?php $conn = connect_database(); if(isset($_GET['submit'])){ $input_id = $_GET['id']; $sql_query = "SELECT * FROM sqli_products WHERE ID='$input_id' LIMIT 1"; $result = $conn->query($sql_query); $row = $result ->fetch_assoc(); } $conn->close(); ?> <aside class="sidebar"> <div class="r-form"> ...
true
d6aef58f3699859ea6a3f2e915c58124c697899c
PHP
elpepefontana/ejercicio
/System/Renderer/ControlRenderer/Panel.php
UTF-8
796
2.78125
3
[]
no_license
<?php namespace System\Renderer\ControlRenderer; use System\Renderer\ControlRenderer\ControlInterface as ControlInterface; class Image extends AbstractControl implements ControlInterface { public function __construct(array $panelData) { $this->setData($panelData); } private function setD...
true
16b39f7ef980889121723b9e526320fc44bb6d1b
PHP
tectronics/computer-wh
/classes/model.php
UTF-8
412
2.609375
3
[]
no_license
<?php class Model { function load($name) { GLOBAL $tpl,$db; if ($this->exists($name)) { include_once MODEL_DIR."/".$name.".php"; return true; } else { return false; } } function exists($name) { if (file_exists(MODEL_DIR."/".$name.".php")) { retur...
true
344c1a8e3ba0451967fdb091406dcfcf80c56083
PHP
calebiosu/EBS
/register.php
UTF-8
1,380
2.796875
3
[]
no_license
<?php include 'functions.php'; if (isset($_POST['submit'])) {//check if the submit button is pressed $link = connect(); //get data $firstname = $link->real_escape_string(trim($_POST['firstname'])); $lastname = $link->real_escape_string(trim($_POST['lastname'])); $username = $link->real_escape_string(trim($_POST[...
true
0375d6f7108512d34d25b7fe0c40b888a00ba2d5
PHP
imcoyote/pHiring
/app/Http/Controllers/JobOfferController.php
UTF-8
794
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\departement; use App\job_offer; use Illuminate\Http\Request; class JobOfferController extends Controller { function __construct() { $this->middleware->auth(); } function create() { $departmentList = departement::all(); retu...
true
660cf77605644d799362e564bef3e0d49eead702
PHP
Fjohora9333/PHP_SQLiteSamples
/CoverageManagementWebApplication/public/create.php
UTF-8
3,284
3.109375
3
[ "MIT" ]
permissive
<?php /** * Use an HTML form to create a new entry in the * users table. * */ require "templates/header.php"; $errCost=""; if (isset ( $_POST ['submit'] )) { require "config2.php"; require "../common.php"; try { // $connection = new PDO ( $dsn, $username, $password, $options ); $connection = new P...
true
13af8bc27b71c4103d1fdabbd20298f686cd1420
PHP
aazzabi/waller
/src/AppBundle/DataFixtures/ORM/LoadGroupData.php
UTF-8
1,594
2.78125
3
[]
no_license
<?php namespace AppBundle\DataFixtures\ORM; use AppBundle\Entity\Group; use Doctrine\Common\DataFixtures\AbstractFixture; use Doctrine\Common\Persistence\ObjectManager; use Doctrine\Common\DataFixtures\OrderedFixtureInterface; use Symfony\Component\DependencyInjection\ContainerAwareInterface; use Symfony\Component\De...
true
b48e4ff087c8e45f5cf872e96720e4b7ad34e276
PHP
hardyboyz/sideskel
/app/Http/Requests/KegiatanRequest.php
UTF-8
643
2.515625
3
[]
no_license
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class KegiatanRequest extends FormRequest { public function authorize() { return true; } public function rules() { if($this->method() === 'PATCH'){ $poster_rule = 'sometimes|image|max:5000|...
true
9c8bdab94bdc22e1e51e38e33d5960defd148149
PHP
fsulser/Sportsense
/bachelorproject/WebProject/guided/php/Standard/UpdateValues.php
UTF-8
4,125
2.75
3
[]
no_license
<?php class UpdateValues { private $DB, $data, $rating, $missed, $id; function UpdateValues($data, $rating, $missed, $id) { $this -> DB = require '../Connect.php'; $this -> id = $id; $this -> data = $data; $this -> rating = $rating; $this -> missed = $missed; $this -> UpdateEvents(); } function Updat...
true
f2fa1f3a525ea33b55534b5f6f34dc666f2faf44
PHP
hxxy2003/api
/components/CurlComponent.php
UTF-8
2,687
3.078125
3
[]
no_license
<?php namespace app\components; use Yii; use yii\base\Component; /** * Class UserComponent * CURL服务器组件 * @package app\components */ class CurlComponent extends Component { /** * 向指定服务器发送 POST CURL请求 * @param $url 发送目标服务器地址 * @param null $post POST数据 * @param array $options 发送参数选项 * @r...
true
c55274607e13fca38b9bc5b1b7b6998c6143d759
PHP
peterbenke/pb_concertlist
/Classes/ViewHelpers/WeekdayViewHelper.php
UTF-8
706
2.890625
3
[]
no_license
<?php namespace PeterBenke\PbConcertlist\ViewHelpers; /** * TYPO3Fluid */ use TYPO3Fluid\Fluid\Core\ViewHelper\AbstractViewHelper; /** * Php */ use DateTime; /** * * WeekdayViewHelper * */ class WeekdayViewHelper extends AbstractViewHelper { /** * Initialize arguments */ public function initializeArgu...
true
fb1c98930d508f6913122ed6e43c7e88f5cd1108
PHP
mehdiraddadi/Sf4
/src/Entity/Event.php
UTF-8
1,552
2.59375
3
[]
no_license
<?php namespace App\Entity; use ApiPlatform\Core\Annotation\ApiResource; use App\Controller\CreateEventController; use Doctrine\ORM\Mapping as ORM; /** * @ApiResource( * collectionOperations={ * "get", * "post_publication"={ * "method"="POST", * "path"="/events", * "control...
true
5e16b316de8f5d1421f6b45099d3a1edc263f864
PHP
Studio164a/Hitched-WordPress-Theme
/inc/template-tags.php
UTF-8
1,807
2.734375
3
[]
no_license
<?php /** * A collection of useful functions to be used in the templates * @author Eric Daams */ /** * Return the currently set value for the given option key * @param string $option_key * @return mixed */ if ( !function_exists( 'hitched_get_option' ) ) { function hitched_get_option( $option_key ) { $opti...
true
8e75ba48008e6a9d838db75975c6e52dd6534a6b
PHP
rito328/www.ritolab.com-sample-sources-laravel-eloquent
/app/Http/Controllers/SampleController.php
UTF-8
3,425
2.65625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Models\Framework; use App\Events\AccessDetection; class SampleController extends Controller { public function index() { // 全てのデータを取得する $data = Framework::all(); // category = PHP のデータを取得する $data = Fr...
true