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
d4cf5a9612b6e084b3ebd72d926dbc6d1fee7b4c
PHP
Judahh/PHPME
/Website/Projects/Hutch/View/CascadingStyleSheets/Basic/DeclarationSpecifics/DeclarationBorderSpecifics/DeclarationBorderImage.php
UTF-8
1,263
3.125
3
[]
no_license
<?php /* * 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 DeclarationColor * * @author Judah */ class DeclarationBorderImage extends DeclarationBorder { //...
true
a8225af67538e373ccb8bc6a1c0a74551a7c3c52
PHP
DustinHartzler/PharmToTable
/wp-content/plugins/sfwd-lms/includes/settings/settings-pages/class-ld-settings-page-help.php
UTF-8
14,206
2.5625
3
[]
no_license
<?php /** * LearnDash Settings Page Overview. * * @since 4.4.0 * @package LearnDash\Settings\Pages */ if ( ! defined( 'ABSPATH' ) ) { exit; } if ( class_exists( 'LearnDash_Settings_Page' ) && ! class_exists( 'LearnDash_Settings_Page_Help' ) ) { /** * Class LearnDash Settings Page Overview. * * @since 4.4...
true
956ebf370aa81b38a325b4d121db92917fc8ccde
PHP
Bernix01/mas-acceso
/src/Usuario/Categorias/CategoriaCollector.php
UTF-8
1,871
2.984375
3
[]
no_license
<?php require '../../php/Collector.php'; require 'CategoriaClass.php'; class CollectorComentario extends Collector { /** * Instancia un Colector de categoria * * */ function __construct() { parent::__construct(); } /** * Añade una nueva categoria a la base de ...
true
da25da5dd11c6f80d7f072dc8d107004818b8d58
PHP
Shreeja20/groceryStockManagement_System
/dbms_project/search.php
UTF-8
2,043
2.546875
3
[]
no_license
<?php $con=mysqli_connect('localhost','root','','grocery'); static $c=0; session_start(); if (!isset($_SESSION['name'])) { $_SESSION['msg'] = "You must log in first"; header('location: login.php'); } if (isset($_GET['logout'])) { session_destroy(); unset($_SESSION['name']); header("location: lo...
true
7c5a9b07048f397ade0d72effb37ae2a78f8bb59
PHP
kirito18/proyecto
/app/Http/Requests/UserRequest.php
UTF-8
772
2.703125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Requests; use App\Http\Requests\Request; class UserRequest extends Request { /*formulario de validacion de usuarios en email mensaje de error cambiado por el default */ /** * Determine if the user is authorized to make this request. * * @return bool *...
true
337b53535b560eb9f014ca6d001347d951adea62
PHP
MateuszMesek/magento2-module-document-data
/Model/Command/GetDocumentNodes.php
UTF-8
565
2.640625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace MateuszMesek\DocumentData\Model\Command; use Traversable; use MateuszMesek\DocumentDataApi\Model\Command\GetDocumentNodesInterface; use MateuszMesek\DocumentData\Model\Command\GetDocumentNodes\ResolverPool; class GetDocumentNodes implements GetDocumentNodesInterface { pub...
true
f25706bb672c52507caf626c048c184e6d1201e4
PHP
ruwanbandara/student_managment_system
/test/modify-user.php
UTF-8
5,824
2.8125
3
[]
no_license
<?php session_start(); ?> <?php require_once('inc/connection.php'); ?> <?php require_once('inc/functions.php'); ?> <?php // checking if a user is logged in if (!isset($_SESSION['user_id'])) { header('Location: index.php'); } $errors = array(); $user_id = ''; $first_name = ''; $last_name = ''; $email = ''; ...
true
5e2132890fe9c5ee5f54e7c5cc173bc90fc28140
PHP
marious/cms_platform
/modules/plugins/contact/src/Repositories/Eloquent/ContactRepository.php
UTF-8
757
2.640625
3
[ "MIT" ]
permissive
<?php namespace EG\Contact\Repositories\Eloquent; use EG\Contact\Enums\ContactStatusEnum; use EG\Contact\Repositories\Interfaces\ContactInterface; use EG\Support\Repositories\Eloquent\RepositoriesAbstract; class ContactRepository extends RepositoriesAbstract implements ContactInterface { /** * {@inheritDoc}...
true
a3a4d1bed323540f049a0af09c4686cc6bc9266b
PHP
FocusThen/pmb-opac-page
/temp-includes/javascript/form.inc.php
ISO-8859-1
4,116
2.578125
3
[]
no_license
<?php // +-------------------------------------------------+ // 2002-2004 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net) // +-------------------------------------------------+ // $Id: form.inc.php,v 1.7 2017/02/07 12:00:24 dgoron Exp $ if (stristr($_SERVER['REQUEST_URI'], ".inc.php")) d...
true
bbe76d4c700e71cf77b06f9a6d27d6fe7f17137f
PHP
toporny/satelizer_clone
/database/migrations/2016_12_06_124653_create_users_log_table.php
UTF-8
727
2.5625
3
[]
no_license
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateUsersLogTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('users_log', function(Blueprint $table) { ...
true
076ca1db2826dc3da96d5a152de7c5bed9178ac7
PHP
pear/File_Therion
/File/Therion/DataTypes/Date.php
UTF-8
2,628
3.234375
3
[]
no_license
<?php /** * Therion datatype class. * * PHP version 5 * * @category file * @package File_Therion_DataTypes * @author Benedikt Hallinger <beni@php.net> * @copyright 2016 Benedikt Hallinger * @license http://www.gnu.org/licenses/lgpl-3.0.txt LGPLv3 * @link http://pear.php.net/package/File_The...
true
6bf77d84178c48aa6aac9abbdb65a4985c87f6c7
PHP
brainbits/transcoder
/src/Encoder/SevenzEncoder.php
UTF-8
1,478
2.734375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); /* * This file is part of the brainbits transcoder package. * * (c) brainbits GmbH * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Brainbits\Transcoder\Encoder; use Brainbits\Transcoder\...
true
88fac813d8d2fc1b06513c0dbbd6754945fa8bfa
PHP
mackmartyn/332_website
/movies_index.php
UTF-8
5,279
2.625
3
[]
no_license
<html> <head> <title>Theatres</title> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> </head> <body> <style> .theatre_complex { font-size: large; } .theatre { padding-left: 20px; text-decoration: underline; } .movie { ...
true
ea536c5aa8acfda3d6d13de91983756a042c52d5
PHP
LeoAlfaroC/blood_pressure_manager
/app/Http/Livewire/Patient/Create.php
UTF-8
1,185
2.65625
3
[]
no_license
<?php namespace App\Http\Livewire\Patient; use App\Models\Patient; use Illuminate\Support\Facades\Hash; use Livewire\Component; class Create extends Component { public $first_name, $last_name, $birthday, $email, $medical_history, $allergies, $family_background; protected $rules = [ 'first_name' => [...
true
90677c806e67d33716b3142d2987920630fbdd7e
PHP
rhyshall/RecipeFish
/utilities/recipesUtilities.php
UTF-8
4,867
3.09375
3
[]
no_license
<?php /****************************************************************************************** ******************************************************************************************* ** Name: recipesUtilities.php **** ** Description: Provides helper functions for "recipes.php" ****...
true
ea62845ddba55abd7a5365b30613ca91f30f116e
PHP
Global19-atlassian-net/stackpath
/core/components/stackpath/model/stackpath/scdnrule.class.php
UTF-8
656
2.59375
3
[]
no_license
<?php class scdnRule extends xPDOSimpleObject { public function getRegex() { $siteUrl = $this->xpdo->getOption('site_url'); $baseUrl = $this->xpdo->getOption('base_url'); $input = $this->get('input'); $input = str_replace(array('{site_url}', '{base_url}'), array($siteUrl, $baseUrl), ...
true
6ec93cd0c666596b89f6b61f6a8dfb09d0980e0a
PHP
lllMaicolZlll/Coink-1828182
/admin_p.php
UTF-8
6,413
2.5625
3
[]
no_license
<?php //Definimos la ruta en la que nos encontramos $link = "admin_p.php"; //Incluimos el menu include("menu.php"); //Verificamos que este activa una sesion if(isset($_SESSION['id'])){ $id=$_SESSION['id']; //Consultamos la informacion del usuario $query = mysqli_query($conexion,"SELECT * FROM usuarios WHER...
true
8a104e561d4d9d06f79e718b05724833e013e1c9
PHP
franbayugar/lasvizcachas
/app/controllers/auth.controller.php
UTF-8
1,552
2.84375
3
[]
no_license
<?php require_once 'app/views/auth.view.php'; require_once 'app/models/auth.model.php'; require_once 'auth.helper.php'; class AuthController { private $view; private $model; //instanciamos los objetos function __construct() { $this->view = new AuthView(); $this->model = new UserM...
true
9cc585ba7ff803e4f3aa67114f3137e8616b5d55
PHP
sslnustudent/PHP-Projekt
/Forum/Model/CommentRepository.php
UTF-8
1,687
2.96875
3
[]
no_license
<?php require_once("..\Forum\Model\Repository.php"); require_once("..\Forum\Model\Comment.php"); class CommentRepository extends Repository{ private $comments; public function __construct(){ $this->dbTable = "commenttable"; $this->dbTable2 = "usertable"; } public function addComment($text, $thread, $use...
true
b182e6ef4746287bfb53b1135e07ffbcefb44644
PHP
Tania16SW06/Labno7
/lab6task7.php
UTF-8
1,144
2.578125
3
[]
no_license
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <?php echo $_SERV...
true
31ab23f4cc27dba73b826f9728b079293dae7b71
PHP
adit2308/php-scm-hani
/pages/admin/ubah-pengadaan-proses.php
UTF-8
2,314
2.625
3
[ "MIT" ]
permissive
<?php // koneksi database include "../../koneksi.php"; // menangkap data yang di kirim dari form $id_pengadaan = $_POST['id_pengadaan']; $id_bahanbaku = $_POST['id_bahanbaku']; $bulan = $_POST['bulan']; $periode = $_POST['periode']; $tgl_pengadaan = date('Y-m-d', strtotime($_POST['tgl_pengadaan'])); $id_user = $_POST...
true
e8f883802f14512712fc3ccd83363ce2014f532d
PHP
ngviethoang/call-log-it
/database/seeds/TicketReadsSeeder.php
UTF-8
548
2.578125
3
[]
no_license
<?php use Illuminate\Database\Seeder; use App\Models\Ticket; class TicketReadsSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $tickets = Ticket::all(); foreach ($tickets as $ticket) { foreach ($ticket->relat...
true
3fba9454c423e86b29aa4f4b4062e503a72f8deb
PHP
waffle-iron/ODA
/app/login/controllers/Principal.php
UTF-8
3,012
2.71875
3
[]
no_license
<?php namespace App\login\controllers; use App\partidas\models\PrincipalModel; use Controller,View; use Volnix\CSRF\CSRF; use rcastera\Browser\Session\Session; class Principal extends Controller { function __construct() { # code... } public function index() { View::ver('login/principal/...
true
c850a480cf1b2ca335637066f9ba135768b44797
PHP
wyzdong/design-pattens-for-php
/prototype/Client.php
UTF-8
742
2.796875
3
[]
no_license
<?php function __autoload($className) { $fileName = __DIR__ . '/' .$className . ".php"; if (file_exists($fileName)) { require $fileName; } else { throw new Exception($className . ' not exist'); } } class Client { public function run() { $oa1 = new PersonalOrder(); ...
true
4ed73cebb372a386a044de9c10dbd94d689eff62
PHP
cristminix/simpeg7
/app/modules/apps/appdok/views/cv/sanksi.php
UTF-8
641
2.65625
3
[]
no_license
<?php if(count(@$data) > 0):?> <table border="1" width="850"> <tr align="center" width="850" style="background-color:#c8ecf8;"> <th width="20" align="center" valign="middle">No.</th> <th>No. SK<br/>Tgl. SK</th> <th>Uraian</th> </tr> <?php $urut=1;?> <?php foreach(@$data as $rowPkt):?> ...
true
051866bf241446437922edf328c7a3e55c123612
PHP
jasekiw/Contour
/app/libraries/HelperMethods/Strings/functions.php
UTF-8
877
3.28125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Jason * Date: 7/30/2015 * Time: 10:27 AM */ /** * @param string $haystack * @param string $needle * * @return bool */ function strContains($haystack, $needle) { return strpos($haystack, $needle) > -1 ? true : false; } /** * @param $haystack * * @return bool *...
true
00b01853e3c9bb3cac08bb0cc7cef39eca0a7321
PHP
radnan/rdn-factory
/src/RdnFactory/Plugin/Params.php
UTF-8
575
2.609375
3
[ "MIT" ]
permissive
<?php namespace RdnFactory\Plugin; use Zend\Mvc\Router\RouteMatch; class Params extends AbstractPlugin { /** * Fetch route parameter by the given name. * * @param string $name Parameter name to fetch. * @param mixed $default Default value to use when parameter is missing. * * @return array|mixed|null ...
true
e9c6e9e03961a3f2f23b3adfc6b3c05946b94a44
PHP
Alkior/Some_blog
/localhost/core/App.php
UTF-8
2,061
2.703125
3
[]
no_license
<?php namespace Core; use controllers\ArticleController; use controllers\PageController; /** * Identify controller or action, and return it name. */ class App { protected $request; public function __construct(Request $request) { $this->request = $request; /*echo '<pre>'; var_...
true
69395e469f08f735256251f6dce765dc74ad182a
PHP
IvanYakymiv/Site
/backdictionary.php
UTF-8
1,871
3.15625
3
[ "MIT" ]
permissive
<?php class Dictionary{ private $ua_word; private $engword; private $def; public function setUa($w) { $this->ua_word=$w; } public function setEng($w) { $this->engword=$w; } public function setDef($d) { $this->def=$d; } public function addtodb() { global $mysqli; ...
true
0ca893f00419558a7ee1c98c04ae860ab22eec6e
PHP
xemlock/php-latex
/tests/PhpLatex/Test/ParserTest.php
UTF-8
4,029
3.125
3
[ "MIT" ]
permissive
<?php class PhpLatex_Test_ParserTest extends PHPUnit_Framework_TestCase { /** * @var PhpLatex_Parser */ protected $parser; protected function setUp() { parent::setUp(); $this->parser = new PhpLatex_Parser(); } /** * @param string $input * @param string $exp...
true
90b72f98b84b0b9f18c86e70058eeb458aca0657
PHP
Cl0wnK1n9/PISCTF
/noelv3/upload.php
UTF-8
1,346
2.8125
3
[]
no_license
<?php function Upload_Single_File($max){ global $target_file; foreach ($_FILES as $key => $value) { $GLOBALS[$key] = $value; } $uploadOk = 0; $check = getimagesize($target_file["tmp_name"]); if($check != false) { echo "File is an image - " . $check["mime"] . "."; $uploadOk = 1; } else { ech...
true
b9151a202325f0468fe7473f5a7a65519610c064
PHP
easy-swoole/kafka
/src/Config/Config.php
UTF-8
11,188
2.578125
3
[]
no_license
<?php namespace EasySwoole\Kafka\Config; use EasySwoole\Spl\SplBean; use EasySwoole\Kafka\Exception; /** * Class Config * @package EasySwoole\Kafka * * @method string getClientId() * @method string getBrokerVersion() * @method string getMetadataBrokerList() * @method int getRequestTimeoutMs() * @method int g...
true
624a7574453fc3037c99da95285c09fdb5df9b98
PHP
p21sistemas/ZfTable
/src/ZfTable/Decorator/Cell/Link.php
UTF-8
2,481
2.734375
3
[ "MIT" ]
permissive
<?php namespace ZfTable\Decorator\Cell; use ZfTable\Decorator\Exception; /** * ZfTable ( Module for Zend Framework 2) * * Customização da P21 para utilização de helpers da visão * * @author Vagner * @copyright P21 Sistemas 2015 */ class Link extends AbstractCellDecorator { /** * Array of variabl...
true
1a8fc3ff1360f45f2e766e4fe9c04b57e67adeb4
PHP
Aleena-shreyashkar/Cerebro-Kids
/register.php
UTF-8
6,950
2.703125
3
[]
no_license
<?php require_once "config.php"; $fname = $username = $password =$confirm_password =""; $fname_err = $username_err = $password_err = $confirm_password_err =""; // check if the request method is post if($_SERVER['REQUEST_METHOD']=="POST"){ //check if username is empty or not // by accessing the value entered by use...
true
df9af5c33afd049630b1b5f84fdf69fc6202785b
PHP
herimh/addenda-soriana
/database/seeds/UsersTableSeeder.php
UTF-8
516
2.546875
3
[ "Apache-2.0", "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; /** * Class UsersTableSeeder, inserta usuarios de prueba a la BD, para el ambiente de desarrollo. * * @Author Heriberto Monterrubio <heri185403@gmail.com> at <> * @Date 2016-12-02 */ class UsersTableSeeder extends Seeder { /** * Run the database seeds. * *...
true
b530ca8c797a74cd3f264584867fa37d73c5360e
PHP
TAIKIKANEKO/kanekotaiki.portfolio
/home.php
UTF-8
1,482
2.578125
3
[]
no_license
<?php //セッションの復元 session_start(); //ワンタイムチケット作成 $ticket = md5(uniqid(rand(), true)); //ワンタイムチケットをセッション変数に格納 $_SESSION['ticket'] = $ticket; //htmlでのエスケープ処理 function h($s){ return htmlspecialchars($s, ENT_QUOTES, "UTF-8"); } ?> <!DOCTYPE html> <html> <head> <title>home</title> <meta ch...
true
78713005bc4d84c3516b6fc6565faf2e138c2420
PHP
vgmdb/common
/src/VGMdb/Component/OAuthServer/Util/TokenGenerator.php
UTF-8
688
2.609375
3
[ "MIT" ]
permissive
<?php namespace VGMdb\Component\OAuthServer\Util; /** * (c) FriendsOfSymfony <http://friendsofsymfony.github.com/> */ class TokenGenerator { public static function generateToken() { $bytes = false; if (function_exists('openssl_random_pseudo_bytes') && 0 !== stripos(PHP_OS, 'win')) { ...
true
1b8b3f86a817c21a79c392b6a10c2e54d1338c41
PHP
melquizedek/zedalaap
/api/v1/src/Helpers/JobHelper.php
UTF-8
3,070
2.640625
3
[]
no_license
<?php /** * */ namespace App\Helpers; use App\Models\Main; use App\Models\Job; use App\Helpers\PostingValidation; class JobHelper { protected $mainModel; protected $Job; protected $PostingValidation; function __construct(Main $mainModel, Job $Job, PostingValidation $PostingValidation) { $this->mainModel = ...
true
51c38d241f0d73c6f5ae42bdd8eca00b1f65b0a8
PHP
svetl111/PandaLove
/Onyx/XboxLive/Enums/Console.php
UTF-8
1,524
2.984375
3
[ "MIT" ]
permissive
<?php namespace Onyx\XboxLive\Enums; abstract class Console { /** * Xbox. * * On Xbox */ const Xbox = 1; /** * PSN. * * On PSN */ const PSN = 2; /** * PC. * * On xbox */ const PC = 3; /** * @param $id * * @throws...
true
2518bdd5e8841009959b67c346fe69a74fc247e1
PHP
simonbrahan/offthehook
/index.php
UTF-8
683
2.84375
3
[]
no_license
<?php require_once('main.php') ?> <!doctype html> <html> <head> <title>Who's Off The Hook Today?</title> <link rel="stylesheet" href="style.css"> </head> <body> <h1>Who's Off The Hook Today?</h1> <ul> <?php foreach ($dates as $date) : ?> <li class="<?php e...
true
b129137d67bd90c03fbf12fec9668f75677d6083
PHP
ExplicitContent/datetime
/tests/LocalTimeTest.php
UTF-8
786
2.671875
3
[ "MIT" ]
permissive
<?php namespace ExplicitContent\DateTime; use PHPUnit\Framework\TestCase; /** * */ final class LocalTimeTest extends TestCase { public function testVeryBasicFeatures(): void { $this->assertSame('00:23:52', LocalTime::fromSecondOfDay(1432)->toHis()); $this->assertSame(1432, LocalTime::fromSt...
true
262e954f9048263843a8b2b5e51818976f5a1f13
PHP
FlorentViel/PHP
/13-pizzastore/config/function.php
UTF-8
214
2.765625
3
[]
no_license
<?php /* *Permet de formatter un prix * */ function formatPrice($price){ $explodePrice = explode('.', $price); return $explodePrice[0]. '<span class ="card-price-cents">€'. $explodePrice[1]. '</span>'; } ?>
true
4b49736cc97c790f929ad260faef1f093e2a45e8
PHP
shuhai-etsu/WASP
/database/seeds/FakeUserCertificationsSeeder.php
UTF-8
2,872
2.71875
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; use Carbon\Carbon; use App\User; use App\UserCertification; /** * Class FakeUserCertificationsSeeder * * @todo - add class header comment */ class FakeUserCertificationsSeeder extends Seeder { /** * Run the database seeds. * * External Dependencies: *...
true
20b6b32655d21200c3ca6325383d99ec8fb4b7a5
PHP
cristhiam91/Birra
/Db.php
UTF-8
560
2.859375
3
[]
no_license
<?php Class Database { public $db; private static $dsn = "mysql:host=localhost;dbname=tiendaonline"; private static $user = "root"; private static $pass = ""; private static $instance; public function __construct() { $this->db = new PDO(self::$dsn, self::$user, self::$p...
true
bb33db744b245f6c74b7abc14d807fd9f0f3bea9
PHP
djacic/blacksheepsite
/app/Brand.php
UTF-8
377
2.5625
3
[]
no_license
<?php namespace App; use App\Interfaces\Repository; use App\Repository\BrandRepository; use Illuminate\Database\Eloquent\Model; class Brand extends Model implements Repository { public function products() { return $this->hasMany("App\Product"); } public static function getRepository() { ...
true
a3b8a51cda3b95fe6674507cf364a52eb06fbe4a
PHP
asa-charles-ho/dada
/src/Dada.php
UTF-8
6,396
2.5625
3
[ "MIT" ]
permissive
<?php /* * This file is part of the asa-charles-ho/dada * * (c) asa ho <asa_ho@foxmail.com> * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace AsaHoCharlesHo\Dada; use AsaHoCharlesHo\Dada\Api\ApiFactory; use AsaHoCharlesHo\Dada\Exceptio...
true
317e3b03f2c808e819a519a3e21a4a0014ed4bdb
PHP
EvolSoft/Broadcaster
/src/Broadcaster/Broadcaster.php
UTF-8
6,989
2.65625
3
[ "MIT" ]
permissive
<?php /* * Broadcaster v1.5 by EvolSoft * Developer: Flavius12 * Website: https://www.evolsoft.tk * Copyright (C) 2014-2018 EvolSoft * Licensed under MIT (https://github.com/EvolSoft/Broadcaster/blob/master/LICENSE) */ namespace Broadcaster; use pocketmine\Player; use pocketmine\plugin\PluginBase; use pocketm...
true
d01d584d62a963075699dcf74deb6291f0dd6f5a
PHP
brown-cody/gallionvideos
/yearview.php
UTF-8
668
2.5625
3
[]
no_license
<?php include("header.php"); ?> <h2> <?php foreach($years as $year) { if ($yearID == $year['yearID']) { echo $year['year']; } } ?> </h2> <?php foreach($videos as $video): ?> <form action="index.ph...
true
f5ecae2d6b390a15cb07dc3a3a35f5e5f0a15f07
PHP
TheShen21/php2020
/H04/Opdr4.1.php
UTF-8
132
3.78125
4
[]
no_license
<?php function omzetten($a){ $c = ($a * 1.8) +32; echo $a." Celsius "."*"." 1.8 + 32 = ".$c." Fahrenheit"; } omzetten(10);
true
24e48b010951eb9ae2f6d8750743ea63874e731d
PHP
VanessaGeiger/sendit
/v3/public/ldap.php
UTF-8
2,471
2.796875
3
[ "MIT" ]
permissive
<?php // LDAP Authentifizierung function getActiveDirectoryAuthentification($username, $password) { $authenticated = false; $fullname = ''; $mail = ''; $telephoneNumber = ''; $otherTelephone = ''; $error = null; // mit AD-Server via LDAP verbinden $ad_server = 'ad.otterbach.de'; // 192.168.120.231...
true
608a4b4d8bb521d2d98a8172c4448ba446c156da
PHP
vanbungkring/turbo-lana
/protected/models/TempImage.php
UTF-8
3,582
2.8125
3
[]
no_license
<?php /** * This is the model class for table "temp_image". * * The followings are the available columns in table 'temp_image': * @property integer $id * @property string $sessionID * @property string $mime * @property string $fileName * @property string $time */ class TempImage extends CActiveRecord { publi...
true
394a5c19b6a2020e48bbf50ddc38b2e5bf2cf073
PHP
Chibuzo/TravelHub
/api/models/vehiclemodel.class.php
UTF-8
4,323
2.953125
3
[ "Apache-2.0" ]
permissive
<?php require_once "model.class.php"; require_once "trip.class.php"; class VehicleModel extends Model { private $trip = null; function __construct() { parent::__construct(); $this->trip = new Trip(); } function findVehicles($route_id) { return $this->trip->getTripsByRoute($route_id); } public funct...
true
6101dd3b4ec196334cb76fc5510afd27447b20be
PHP
dapangchi/stampcircles
/texigniter/vendor/lukaszkujawa/couch-php/src/CouchPHP/CURL.php
UTF-8
1,178
2.890625
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php namespace CouchPHP; class CURL { static private function exec( $ch ) { $output = curl_exec( $ch ); if( $output === false ) { throw new \Exception( curl_error( $ch ) ); } curl_close( $ch ); return $output; } static public function get( $url ) { $ch = curl_init( $url ); curl_setopt( ...
true
d388ae9e462ddb4dc7c7e74a5b9fee93d0680300
PHP
non-sono-bello-ma-patcho/startsaw-core
/itemSearch.php
UTF-8
1,462
2.53125
3
[]
no_license
<?php session_start(); require_once 'databaseUtility.php'; require_once 'productUtility.php'; switch($_REQUEST['order']){ case "lowest": $result = search_items('code','products',array('name','description'),$_REQUEST['value'],"price","ASC",$_REQUEST['min'],$_REQUEST['max']); break; case "hight...
true
dfcc32231d10894cc8ab3ed48086a6f50098c6b1
PHP
jeffsocal/proxy-io
/src/functions/Tables/table_droprows.php
UTF-8
1,258
2.734375
3
[ "MIT" ]
permissive
<?php /* * Written by Jeff Jones (jeff@socalbioinformatics.com) * Copyright (2016) SoCal Bioinformatics Inc. * * See LICENSE.txt for the license. */ /* * */ function table_droprows($table_array, $rows) { /* * quiet exit if ROW is not present */ if (is_null($rows)) return $table_array;...
true
b84ce08f64a5b1508b2604d228711f7ad80d1070
PHP
zkrat/WhileTimer
/src/WhileTimer.php
UTF-8
2,011
3.234375
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: zkrat * Date: 09.02.18 * Time: 9:58 */ namespace zkrat; class WhileTimer { private static $time=null; private static $counter=0; private static $lastMicroTime=null; private static $microTime=null; const MICROSECONDS_IN_SECONDS=1000000; /** * @param int $total...
true
5e4bb71e2547a8d7dd5300637d78574ef55dd95b
PHP
brady-wang/wang1
/alg/findLengthOfLCIS.php
UTF-8
1,687
3.984375
4
[ "MIT" ]
permissive
<?php //给定一个未经排序的整数数组,找到最长且连续的的递增序列。 function findLengthOfLCIS($arr) { $max = 1; $maxArr = []; $len = count($arr); if($len == 1){ return 1; } if($len == 0){ return 0; } for($i=0;$i<$len-1;$i++){ $tmp = []; ...
true
9b320f66efab9ff20fd8ed364280df919663263a
PHP
pabloleone/WPAutomateBackups
/Automate.php
UTF-8
625
2.625
3
[]
no_license
<?php include_once 'AutomateClass.php'; include_once 'ProjectsList.php'; if (isset($projects) && is_array($projects)) { foreach ($projects as $project) { if ($project['execute']) { $automate = new Automate($project); $automate->execute(); $response = $automate->getResponse(); ...
true
9b061d7ba997673880c072d5bbe22e8eef0f2fa1
PHP
l3l0/admin-bundle
/src/FSi/Component/DataGrid/Column/HeaderView.php
UTF-8
2,221
2.6875
3
[ "MIT" ]
permissive
<?php /** * (c) FSi sp. z o.o. <info@fsi.pl> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace FSi\Component\DataGrid\Column; use FSi\Component\DataGrid\DataGridViewInterface; class HeaderView implements HeaderViewInterfa...
true
b9b97bf366f6b718df2a2731795c34749bb2a1dc
PHP
ashnazg/HTTP_Upload
/tests/validateMultiExtensions.phpt
UTF-8
772
2.59375
3
[]
no_license
--TEST-- test for multiple extension --FILE-- <?php error_reporting(E_ALL ^ E_STRICT); if (file_exists('vendor/autoload.php')) { require_once 'vendor/autoload.php'; } else { set_include_path(get_include_path() . PATH_SEPARATOR . __DIR__ . '/../'); require_once 'HTTP/Upload.php'; } $up = new HTTP_Upload_File...
true
b2af4a6de42fec7a6be83f83d8903ce24193e1e0
PHP
MadNewbie/klorofil
/app/Http/Controllers/HabitatController.php
UTF-8
1,409
2.609375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Habitat; use Illuminate\Http\Request; use Illuminate\Support\Facades\Response; use Validator; class HabitatController extends Controller { public function getIndex() { $habitat = Habitat::orderBy('animal_name')->paginate(10); return view('habitat.ind...
true
53e3f6adc2cf8367b993de61e10d70ef28365657
PHP
andalm/drawing-tool
/src/index.php
UTF-8
779
2.828125
3
[]
no_license
<?php require_once __DIR__.'/../vendor/autoload.php'; use DrawingTool\DrawingFacade; $drawing = new DrawingFacade(); try{ switch ($argv[1]) { case 'C': $drawing->createCanvas(intval($argv[2]), intval($argv[3])); break; case 'L': $drawing->drawLine(intval($argv[2]), intval($argv[3]), intv...
true
5ea33c918aa0985c4aa957002b76e66491b836e7
PHP
paolobarcelona/lucky-draw
/tests/Unit/Repositories/Eloquent/ORM/DrawAttemptRepositoryTest.php
UTF-8
1,394
2.53125
3
[]
no_license
<?php namespace Tests\Unit\Repositories\Eloquent\ORM; use App\Models\DrawAttempt; use App\Repositories\Eloquent\ORM\DrawAttemptRepository; use Mockery\MockInterface; use Tests\AbstractTestCase; /** * @covers \App\Repositories\Eloquent\ORM\DrawAttemptRepository */ final class DrawAttemptRepositoryTest extends Abstr...
true
331ffc223c4eb5233c6f521e652f1d0fc7851db4
PHP
PitKoutrouzas/SEIIS-Laboratory
/changeprofile.php
UTF-8
1,929
2.6875
3
[]
no_license
<?php $fname = $_POST["prof_fname"]; $sname = $_POST["prof_sname"]; $email = $_POST["prof_email"]; $personname = $_COOKIE["signedin"]; $target_dir = "uploads/"; $target_file = $target_dir . basename($_FILES["prof_file"]["name"]); $uploadOk = 1; $imageFileType = pathinfo($target_file,PATHINFO_EXTENSION); // Check if i...
true
469053c594d29ca01d0b93ea2f87f82776a8c0a0
PHP
AndrewCherabaev/freimvork
/src/Http/Query.php
UTF-8
1,566
3.265625
3
[]
no_license
<?php /** * @author Me */ namespace Freimvork\Http; use Freimvork\Helpers\Container; /** * Query string converted into object * * @package Query */ class Query { /** * Container for query fields * * @var Container */ protected $container; /** * Creates Query instance *...
true
165ad5e9182028d8b94bb33a7611c5990b76ce1c
PHP
1ukaz/slim-skeleton
/app/Controllers/ProfileController.php
UTF-8
1,705
2.828125
3
[]
no_license
<?php namespace App\Controllers; use Slim\Container; class ProfileController { protected $container; /** * By declaring the constructor with Type Hinting, the parameter get's injected! */ public function __construct(Container $container) { $this->container = $container; } ...
true
c0e3df4549f265d23d2dbf43d7ce57d43a70a0dd
PHP
fandisus/lolok
/src/TableComposerMy.php
UTF-8
2,457
2.59375
3
[]
no_license
<?php namespace Fandisus\Lolok; class TableComposerMy extends TableComposerAbs { public function increments($colName) { $this->columns[] = "$colName INT AUTO_INCREMENT"; $this->lastCol = $colName; } public function bigIncrements($colName) { $this->columns[] = "$colName BIGINT AUTO_INCREMENT"; $this->lastCol = $col...
true
7795ceca075d652f79910460bdb7f39897644fe8
PHP
hrach333/lessonyii2
/components/ActivityComponent.php
UTF-8
523
2.765625
3
[]
permissive
<?php declare(strict_types=1); namespace app\components; use app\models\Activity; use yii\base\Component; //@бизнес логику пиши тут class ActivityComponent extends Component { public function init() { parent init(); //тут Анатолий объяснял про иницилизацию) //todo function } public fu...
true
809b49a941c2236c311e320c8676c2159a641b35
PHP
ex3mlyfab/applicant
/database/migrations/2020_03_07_054049_create_drug_batch_details_table.php
UTF-8
1,187
2.515625
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateDrugBatchDetailsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('drug_b...
true
bbc7ffd598d3698329d22b31747de24524196b40
PHP
bachir001/codi_php
/basic01/step6.php
UTF-8
113
3
3
[]
no_license
<?php function calculateArea ($height,$width){ echo "Area is : ".$height*$width; } calculateArea(5,3); ?>
true
43a5a70370e56bff139b13aa259734554d965542
PHP
exastro-suite/it-automation
/ita_install_package/ITA/ita-contents/ita-root/libs/webcommonlibs/table_control_agent/88_03_class_outputtype.php
UTF-8
48,811
2.546875
3
[ "Apache-2.0", "LGPL-3.0-only", "MIT" ]
permissive
<?php // Copyright 2019 NEC Corporation // // 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 required by applicabl...
true
215180508b3ec303151453dbc2215c9434c3e30e
PHP
illarra/ent
/project/wordpress/app/themes/ent/ent/Widgets/widgets/ent-terms-list/widget.php
UTF-8
3,138
2.59375
3
[]
no_license
<?php namespace Ent\Widget; use Carbon_Fields\Field; class Ent_Terms_List extends \Ent\Widgets\Widget { protected function get_definition() { $options = $this->get_taxonomies(); $default = $this->get_default_taxonomy($options); return [ 'title' => 'Terms List', 'de...
true
fbd6002d6dd9808591b42088cb342cb7e3c9780e
PHP
dev-101/plugin-TrackingSpamPrevention
/BlockedIpRanges/Aws.php
UTF-8
1,485
2.640625
3
[]
no_license
<?php /** * Matomo - free/libre analytics platform * * @link https://matomo.org * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later */ namespace Piwik\Plugins\TrackingSpamPrevention\BlockedIpRanges; use Piwik\Http; class Aws implements IpRangeProviderInterface { public function getRanges(): ...
true
207fa1cf7aa592f1635c5cac746b74b46682c388
PHP
DavidCao626/server
/app/EofficeApp/IntegrationCenter/Controllers/IntegrationCenterController.php
UTF-8
8,409
2.609375
3
[]
no_license
<?php namespace App\EofficeApp\IntegrationCenter\Controllers; use Illuminate\Http\Request; use App\EofficeApp\Base\Controller; use App\EofficeApp\IntegrationCenter\Services\IntegrationCenterService; use App\EofficeApp\IntegrationCenter\Services\ThirdPartyInterfaceService; use App\EofficeApp\IntegrationCenter\Services...
true
cea63e9fe6be469ab8529f404b132f0e6621cf6e
PHP
qingshanyinyin/admin.oa
/app/Admin/Field/FlowBaseInfo.php
UTF-8
447
2.578125
3
[]
no_license
<?php namespace App\Admin\Field; use Encore\Admin\Form\Field; /** * 用于展示流程基本信息 * Class FlowBaseInfo * @package App\Admin\Field */ class FlowBaseInfo extends Field { private $userFlow; public function __construct($userFlow) { $this->userFlow = $userFlow; } public function render() ...
true
c03f312d0d6c80d1134f8bb234619602667acbbd
PHP
xavi-reloaded/website-wordpress
/downloaded/THEMES 2017/RETRO THEME/retro/lib/revslider/inc_php/framework/image_view.class.php
UTF-8
18,285
2.84375
3
[]
no_license
<?php class UniteImageViewRev{ private $pathCache; private $pathImages; private $urlImages; private $filename = null; private $maxWidth = null; private $maxHeight = null; private $type = null; private $effect = null; private $effect_arg1 = null; private $effect_arg2 = null; const EFFECT_BW = 'bw'; const...
true
fec678be5e012aa8f2296ca1c022506580053d3c
PHP
PHLPEncode/cms
/protected/tpl/Admin/Article/Action/Modify.php
UTF-8
644
2.640625
3
[]
no_license
<?php class Template extends extendSmarty { public function Template() { parent::__construct(); require_once ("protected/class/articleClass.php"); } public function show() { $Articoli = new Article(); $id = $_POST['idPost']; $titolo = $_POST['titlePost']; $testo = $_POST['textPost']; $ta...
true
1f895205a74cb556ab70902f79b395cd207220b8
PHP
mhmdmousawi/SEF
/Week_10/W10_Mo_Assignments-v02BD_1703/api/v1/Controllers/ActorController.php
UTF-8
3,677
2.765625
3
[]
no_license
<?php require_once __DIR__.'/../App/Actor.php'; class ActorController { public function read() { $actor = new Actor; echo json_encode( $actor ->select("CONCAT(first_name, ' ' ,last_name) as 'Actor Name'") //just showing what the developer can use in this f...
true
2222c5e7d8a347031a55029c6320bb4261b08608
PHP
c2po/calendarize
/Classes/Slots/Database.php
UTF-8
1,649
2.578125
3
[]
no_license
<?php /** * Create the needed database fields * * @author Tim Lochmüller */ namespace HDNET\Calendarize\Slots; use HDNET\Calendarize\Register; /** * Create the needed database fields * * @author Tim Lochmüller */ class Database { /** * Add the smart object SQL string the the signal below * ...
true
c27b09eef05f94694885231ea540d1b12bcf4214
PHP
wenchblitz/sjsmwebsiteV2
/loop.php
UTF-8
1,144
2.578125
3
[]
no_license
<?php // Define the default query args //global $wp_query; //$defaults = $wp_query->query_vars; // Exclude 'Featured' category in recent post //$args = array('cat'=>-25); // Display atleast 3 recent posts //$posts = array('posts_per_page'=>5); // merge the default with your custom args //$args = wp_parse_args($posts...
true
6ae7fd02cba0e3c295c5fb3c87a17c7ad9ca6d37
PHP
lfcruz/gcsApps
/atmOTPGenerator/otpGen.php
UTF-8
1,076
2.78125
3
[]
no_license
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title> ATM - OTP Manager </title> <a href="index.php">[Home]</a><br/> </head> <body> <?php include_once 'addedFunctions.php'; $phone = $_POST['phone']; $amount =...
true
5b798df6c150bbdcbd952e55cebcfb8ef09473c6
PHP
pendenga/file
/src/Directory.php
UTF-8
2,154
3.046875
3
[]
no_license
<?php namespace Pendenga\File; use Psr\Log\LoggerAwareTrait; use Psr\Log\LoggerInterface; use Psr\Log\NullLogger; /** * Class Directory * @package Pendenga\File */ class Directory { use LoggerAwareTrait; /** * @var Scan */ protected $scan; /** * Directory constructor. * @para...
true
ef697d8a938c49f8b13fa2e425d530f86840a885
PHP
0-hero/Hotel-Wesbsite-IWP
/addcart.php
UTF-8
624
2.828125
3
[]
no_license
<?php $mysqli = new mysqli("localhost", "ram", "password", "iwp"); if($mysqli->connect_error) { exit('Could not connect'); } $stmt = $mysqli->prepare("SELECT id, itemname, price, type FROM items where id= ?"); $sql = $stmt->bind_param("s", $_GET['q']); $stmt->execute(); $stmt->store_result(); $stmt->bind_result($id,...
true
8e9a55be0fa6d0d6e43b3408e27f513b768b9899
PHP
prtk07/Programming
/PHP/Bhubhanshu_hcf.php
UTF-8
259
4.25
4
[]
no_license
<?php echo "Enter two space separated numbers: "; fscanf(STDIN, "%d %d", $a, $b); function hcf($a, $b){ return $b==0 ? $a : hcf($b, $a % $b); } echo "Highest Common Factor of " . $a ." and ". $b ." is ". hcf($a, $b); ?>
true
fa244dc6724429aa8804015969fb92a1f736f8a8
PHP
justys12/zadania
/zad1.php
UTF-8
756
3.265625
3
[]
no_license
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <?php //1 class Licz{ priv...
true
669e3b7c40755f45a3256a2d7e1451ce2b3296e5
PHP
LinxueLAI/Query-of-databases-across-the-web
/print_modif_management.php
UTF-8
23,939
2.5625
3
[]
no_license
<?php require_once "functions.php"; $text = ""; $table = $_GET["table"]; $mode = $_GET["mode"]; if ($mode == "insert"){ $text .= "<h3>Insertion de données</h3>"; } else if ($mode == "update"){ $text .= "<h3>Mise à jour de données</h3>"; } else if ($mode == "delete"){ $text .= "<h3>Suppression de donnée...
true
e08d13df2992380dd17766942be128d6606cf4a8
PHP
spihelga/Vorgurakendused
/kodutoo.php
UTF-8
264
2.734375
3
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset="tuf-8"> <title> Spihelga Vorgurakendused</title> </head> <body> <?php $muutuja="Loodus"; $uus=""; for($i=0, $length=mb_strlen($muutuja); $i<$length; $i++){ $uus .=$muutuja{$length-$i-1}; } print_r($uus); ?> </body> </html>
true
93a884ff1037cbbe5ea3496d269d1cfc87994f2d
PHP
MostafaOmar98/project-manager
/addCompleted.php
UTF-8
1,850
2.859375
3
[]
no_license
<?php set_time_limit(0); include_once 'Project.php'; include_once 'Utility.php'; include_once 'Task.php'; include_once 'CompletedTask.php'; $nameError = $startDateError = $endDateError = NULL; if ($_SERVER['REQUEST_METHOD'] == 'GET') { $pid = $_GET['pid']; $p = getProjectFromID($pid); $name = $startDate = ...
true
80ecabbf83d4b2c6d2bfa87329f8e0a66ee05173
PHP
PHPOffice/PhpSpreadsheet
/src/PhpSpreadsheet/Calculation/Logical/Boolean.php
UTF-8
541
3
3
[ "MIT" ]
permissive
<?php namespace PhpOffice\PhpSpreadsheet\Calculation\Logical; class Boolean { /** * TRUE. * * Returns the boolean TRUE. * * Excel Function: * =TRUE() * * @return bool True */ public static function true(): bool { return true; } /** ...
true
870a3360c9753922544ec77df6a9dd6c9d6c066f
PHP
dev-labs-bg/PremoTask
/app/APIs/ApiManager.php
UTF-8
394
2.71875
3
[]
no_license
<?php /** * API Wrapper * A general parent class for * all APIs */ namespace App\APIs; use GuzzleHttp\Client; class ApiManager { /** * Http service * * @var object */ protected $client; /** * Api main url * * @var string */ protected $apiUrl; public ...
true
aa7ca2bb2e23af4e24b96089f79547b788d21b86
PHP
bvipul/generator
/src/helpers.php
UTF-8
1,833
3.15625
3
[ "MIT" ]
permissive
<?php if (!function_exists('insert_into_array')) { function insert_into_array(&$array, array $keys, $value) { $last = array_pop($keys); foreach ($keys as $key) { if (!array_key_exists($key, $array) || array_key_exists($key, $array) && !is_array($array[$key])) { ...
true
a9bdde43ec92643b61212989de3b65f89c8c1b97
PHP
OogieDev/CreateFramework
/vendor/fw/core/Router.php
UTF-8
4,680
3.078125
3
[]
no_license
<?php namespace fw\core; class Router { /** * Таблица маршрутов * @var array */ protected static $routes = []; //все существующие правила /** * текущий маршрут * @var array */ protected static $route = []; //текущий путь /** * добавляет маршр...
true
4572c6a1e6c3a7a96b1ecf76c0547c62ff06afd7
PHP
getlose2011/laravel
/app/Http/Model/User.php
UTF-8
497
2.6875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Model; use Illuminate\Database\Eloquent\Model; class User extends Model { // protected $table = 'user';//預設會自動在table name 後面加上s,所以可自己設定table name // protected $primaryKey = 'user_id' 如果主鍵不是id的話,就要自己設定主鍵名稱 //如果使用update() or save(),方法,預設會打開時間記錄,我們可以關掉或在資料庫加上updated_at或created_...
true
6269fe0f97c9868574308a3785f63060aeb02fe0
PHP
kungyu/Simpleline
/Simpleline/Model.class.php
UTF-8
541
2.78125
3
[]
no_license
<?php namespace Simpleline; class Model { protected $type; protected $dbtype; protected $dbname; protected $username; protected $pwd; protected $dbhost; protected $charset; public function __construct(){ if($dbconfig = C('DB')) $this->getConfig($dbconfig); } public function getConfig($dbconf){ $t...
true
4e7dde75ad093e31e9b40fbd2458ee7ab4eab5f2
PHP
kosmineOdiseja/codeWars
/bumsInTheRoad.php
UTF-8
671
3.4375
3
[]
no_license
<?php /** * Your car is old, it breaks easily. The shock absorbers are gone and you think it can * handle about 15 more bumps before it dies totally. * Unfortunately for you, your drive is very bumpy! Given a string showing either * flat road ("_") or bumps ("n"), work out if you make it home safely. 15 bumps or u...
true
7274b4882385e3edc01900ff106eae315ddc4c5c
PHP
Blazzike/PHP-Sandbox
/php/operations/download.php
UTF-8
1,556
2.625
3
[ "MIT" ]
permissive
<?php require('operation.php'); function download_file($path, $name) { header('Content-Description: File Transfer'); header('Content-Type: application/octet-stream'); header('Content-Disposition: attachment; filename="'.$name.'"'); header('Expires: 0'); header('Cache-Control: must-revalidate');...
true
5bfe1f67fb81ffc9347bf392238c08267b799da5
PHP
cloudcreativity/demo-laravel-json-api
/app/JsonApi/Sites/Schema.php
UTF-8
610
2.609375
3
[]
no_license
<?php namespace App\JsonApi\Sites; use App\Site; use Neomerx\JsonApi\Schema\SchemaProvider; class Schema extends SchemaProvider { /** * @var string */ protected $resourceType = 'sites'; /** * @param Site $resource * @return string */ public function getId($resource) { ...
true
fd991dcd3894b526beaddbd325b53f9c512d1392
PHP
hw233/gsnkf_server_php
/module/friend/IFriend.class.php
UTF-8
4,438
2.578125
3
[]
no_license
<?php /*************************************************************************** * * Copyright (c) 2010 babeltime.com, Inc. All Rights Reserved * $Id: IFriend.class.php 236988 2016-04-07 08:59:12Z JiexinLin $ * **************************************************************************/ /** * @file $HeadURL:...
true
64fca9924ebb0aeba419b3c4110b178f678ee01f
PHP
esmcrezosis/esmc_php
/mcnp/application/models/EuReligionMapper.php
UTF-8
2,225
2.71875
3
[]
no_license
<?php class Application_Model_EuReligionMapper { protected $_dbTable; public function setDbTable($dbTable) { if (is_string($dbTable)) { $dbTable = new $dbTable(); } if (!$dbTable instanceof Zend_Db_Table_Abstract) { throw new Exception('Invalid table data gatew...
true
320444df74c23dc69c46267adf3f333b9787396b
PHP
rATRIJS/AIP
/lib/clnt/Output.php
UTF-8
218
2.515625
3
[]
no_license
<?php namespace AIP\lib\clnt; class Output { public static function write(\AIP\lib\srvr\evlr\Result $result) { self::raw_write($result->render()); } public static function raw_write($s) { echo $s . "\n"; } }
true