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
7541cdbdb350702e8f50bb7611e947cd51241aec
PHP
BensonDu/laravel
/app/Libs/yuntongxun/sms.php
UTF-8
2,847
2.640625
3
[ "MIT" ]
permissive
<?php namespace App\Libs\yuntongxun; class sms{ private $AccountSid; private $AccountToken; private $AppId; private $ServerIP; private $ServerPort; private $SoftVersion; private $TemplateId; private $Batch; //时间戳 private $SendCounter =0; function __construct() { $t...
true
30797bff70b716bf473fb6c3211fde6cca88461f
PHP
iMiguh12/Garcon
/application/models/DbTable/Productos.php
UTF-8
1,708
2.515625
3
[]
no_license
<?php class Application_Model_DbTable_Productos extends Zend_Db_Table_Abstract { protected $_name = 'productos'; public function getProducto( $id ) { $id = (int) $id; $row = $this->fetchRow( 'id = ' . $id ); if ( !$row ) { throw new Exception( "No puede encontrar el re...
true
7169e1b04a19ff9e3b684146557ae8f423ebad49
PHP
MartimTSilva/Techpower-web
/common/tests/unit/models/CategoryTest.php
UTF-8
2,187
2.5625
3
[]
no_license
<?php namespace common\tests\unit; use Codeception\Test\Unit; use common\models\Category; class CategoryTest extends Unit { /** * @var \frontend\tests\UnitTester */ protected $tester; protected $category_id; public function _before() { $this->category_id = $this->tester->haveRe...
true
2753439bc3fd4f1528577be4741a5b41167b6278
PHP
dcarrasco/lara-invfija
/app/Gastos/VisaParser.php
UTF-8
3,891
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Gastos; use Carbon\Carbon; use App\Gastos\Gasto; use App\Gastos\TipoGasto; use App\Gastos\GastosParser; use Illuminate\Http\Request; use App\Gastos\GlosaTipoGasto; use Illuminate\Support\Collection; use App\Http\Controllers\Gastos\TipoGastoModel; class VisaParser implements GastosParser { pub...
true
5ab0c3da8c1ceba3862676f5cb54055a76d7fbbf
PHP
gopikrishnareddy93/KAMAPI
/kamapi/user_agents.php
UTF-8
15,944
2.859375
3
[]
no_license
<?php /* URL: : https://uchkam.epbx.com/kamapi/user_agents.php Header : Accept: application/json Post Data Format : [{"user_agent":"SIPAgent"}] Put Data Format : {"id":24,"user_agent":"SIPAgent"} Delete Data Format: [{"id":14}] */ require_once("SimpleRest.php"); require_once("db.php"); clas...
true
622bb05148423047bc31bf6f157ea68ce36e52d1
PHP
DirkEngels/PhpTaskDaemon
/lib/PhpTaskDaemon/Daemon/Instance.php
UTF-8
8,328
2.640625
3
[]
no_license
<?php /** * @package PhpTaskDaemon * @subpackage Daemon * @copyright Copyright (C) 2011 Dirk Engels Websolutions. All rights reserved. * @author Dirk Engels <d.engels@dirkengels.com> * @license https://github.com/DirkEngels/PhpTaskDaemon/blob/master/doc/LICENSE */ namespace PhpTaskDaemon\Daemon; /** * * The ...
true
7a932100e0ffcdbe5d7a249abb690e85993a542a
PHP
SacchiMarco/Studium-PHP-Aufgabe3
/alle_videos.php
UTF-8
3,143
2.75
3
[]
no_license
<?php session_start(); require_once("environment.php"); $videos = new VideosGateway; $checkbox = null; $titel = null; #Default LIMIT und Persönliches LIMIT if(!isset($_SESSION['limit'])) { $_SESSION['limit']['limiter'] = 15; $_SESSION['limit']['start'] = 0; } $_SESSION['limit']['dbSize'] = $videos->size() - $_SESS...
true
2933c2e950b84d58c1790a2b837411f7ebf1f16d
PHP
nepa/sotc-rest-api
/src/Dispatcher.php
UTF-8
2,686
3.25
3
[]
no_license
<?php // Register callback for class autoloading spl_autoload_register('autoloadClasses'); /** * Callback function for class autoloading. The method * will automatically require a class with the given * name, if it can be found. * * \param $className Name of the desired class */ function autoloadCla...
true
5ea029b879c20941bd41ee232b631250fe86094e
PHP
KNIGHTTH0R/charity-managment-system-php
/admin/include/class/donor.class.php
UTF-8
2,675
2.59375
3
[]
no_license
<?php /** * */ class Donor { public function donor_registration($user_name,$user_adrs,$user_cnic,$client_phone,$user_dob){ GLOBAL $mysqli; $mysqli->query("INSERT INTO donor (donor_name,donor_adrs,donor_cnic,donor_phone,donor_dob,join_date) VALUES ('$user_name','$user_adr...
true
19975df087645961b34d05f01f856bb0d8b47dc7
PHP
webaquebec/webaquebec2012
/app/shared/classes/Config.php
UTF-8
579
3.046875
3
[]
no_license
<?php /** * @throws Exception * Dead simple config parser. */ class Config { static private $configurations = array(); public static function readConfigFile($configuration_path) { $config = array(); include($configuration_path); self::$configurations = array_merge(self::$configur...
true
abdcca7531feb0c57b7aafb5d4b624e9c70ba6e5
PHP
VasilisKalaitzis/php_custom_queue
/consumer/queue/queue.php
UTF-8
1,597
2.71875
3
[]
no_license
<?php session_start(); include(dirname(__FILE__) . '/../db.php'); // here we retrieve the messages from the queue // Notice, there should be only one queue running on the background if(!isset($_SESSION["queue_running"])) { $_SESSION["queue_running"] = 1; while(1) { $result = mysqli_query( $...
true
f16822eeb7fa1a6b6dffab76577d42adc03dd572
PHP
Develonaut/react-php-mysql-demo
/server/src/Auth/Guard.php
UTF-8
911
2.921875
3
[]
no_license
<?php namespace App\Auth; use App\JsonResponse; use Psr\Http\Message\ServerRequestInterface; final class Guard { private $routesPattern; private $authenticator; public function __construct(string $routesPattern, JwtAuthenticator $authenticator) { $this->routesPattern = $routesPattern; ...
true
13508365b8e72b5fac3d861d542c0689c814175f
PHP
victorpdiez/humhub-module-performance_insights
/components/PerformanceMeasure.php
UTF-8
4,424
2.578125
3
[]
no_license
<?php namespace humhub\modules\performance_insights\components; use Yii; use JonnyW\PhantomJs\Client; /* * Responsible for Measuring speed. */ class PerformanceMeasure extends BaseTest { public $url; private $path; private $client; private $strCookie; public $imgOptions=[]; /** * @inheritdoc ...
true
af92d2d6314ebbef2772b648c329deabb0bf89ba
PHP
xtuling/study_center
/trunk/ThinkPHP/Library/VcySDK/Comment.class.php
UTF-8
6,924
2.65625
3
[ "Apache-2.0" ]
permissive
<?php /** * Comment.class.php * 评论接口操作类 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @copyright Copyright (c) 2014 - ? VcySDK (http://www.vchangyi.com/) * @author zhoutao * @version 1.0.0 */ namespace VcySDK; class Comment { // 对于业务对象的点赞 const LIKE_TYPE_BUSINESS_OBJECT = 1; ...
true
881eeb3338bb4a54e296591fcf72fae470f99daa
PHP
krtek4/fuel-messages
/config/messages.php
UTF-8
678
2.578125
3
[]
no_license
<?php /** * Configuration for Messages */ return array( // base name of the element in the session. The name of the instance and the // particular group will be added to this. 'session' => 'messages', // Do we show empty groups ? 'show_empty' => false, // Allowed groups 'groups' => array('notice', 'error', 'su...
true
ff81fb57091444ea3d155f17a8c492b796a6cfaf
PHP
shrutibidada/LibraryManagement
/newUser.php
UTF-8
3,028
2.640625
3
[]
no_license
<?php // Start the session session_start();?> <html> <head> <link rel="stylesheet" href="https://www.w3schools.com/w3css/3/w3.css"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> <link rel="stylesheet" type="text/css" href="style.css"> <script> fun...
true
757ed613c8759d6c0cd3c0c2aa6a6fe8fa31c0c9
PHP
rikoalfain/login
/Ewarung1/admin/login.php
UTF-8
1,192
2.609375
3
[]
no_license
<?php $con=mysqli_connect("localhost","root","","dbpos2"); session_start(); if(isset($_POST["btn-login"])){ extract($_POST); $email=$con->real_escape_string($_POST["email"]); $password=$con->real_escape_string($_POST["pass"]); $resultUser = mysqli_query($con,"select email from login where email='$email' and...
true
0879e2f9745541ecb9f017d8f65e1b9e24bbd8f3
PHP
gigabit-gmbh/affilinet-php-sdk
/src/Affilinet/Requests/SoapRequestInterface.php
UTF-8
924
2.84375
3
[ "MIT" ]
permissive
<?php namespace Affilinet\Requests; use Affilinet\AffilinetClient; use Affilinet\PublisherData\Models\AffilinetToken; use Affilinet\Responses\ResponseInterface; /** * Interface SoapRequestInterface */ interface SoapRequestInterface { /** * @param \Affilinet\AffilinetClient $affilinetClient */ pu...
true
48342dc095c3d508792baa6c1ca6c045b3d26c0e
PHP
Sergio-hdD/CursoDePHP_Basico
/03_MVC/03.2_MVC_con_modulos/controllers/controller.php
UTF-8
1,967
3.21875
3
[]
no_license
<?php class MVCcontroller{ #LLAMADA A LA PLANTILLA #----------------------------------------------------- public function plantilla(){ include "views/template.php";#include(): Se utiliza para invocar el archivo que contiene el código html (es decir, incluye el template que está en la carpet...
true
9cd08284ea6ac2636fc055e2317fdec9820c48f2
PHP
Markvandersteen/SEFLAB
/app/controllers/VirtualController.php
UTF-8
7,661
2.734375
3
[]
no_license
<?php use Seflab\Repository\LoadScript\LoadScriptRepository; /** * Class VirtualController */ class VirtualController extends BaseController { /** * The absolute path where uploads are stored for file operations * @var string */ protected $absolutePath; /** * Relative upload path whi...
true
6e4ca7959b3e145e694405d61e9aa87354e051b4
PHP
pelauimagineering/SalonBook
/site/models/email.php
UTF-8
3,577
2.5625
3
[]
no_license
<?php // No direct access to this file defined('_JEXEC') or die('Restricted access'); // import Joomla modelitem library jimport('joomla.application.component.modelitem'); /** * SalonBookModelEmail * Usage: create a new instance of this class, then call either the setSuccessMessage or setFailureMessage * Then ca...
true
898ca03e171bfc9066c98640e8f42bb060f0700e
PHP
yayugu/subcomic
/app/lib/Subcomic/Archive/ArchiveInterface.php
UTF-8
331
2.8125
3
[ "MIT" ]
permissive
<?php namespace Subcomic\Archive; interface ArchiveInterface { /** * @param string $path */ public function __construct($path); /** * @param int $index * @return string */ public function getFromIndex($index); /** * @return array */ public function getImage...
true
c24d55424e00f7f08a167de5de6a9a77aa3c4acb
PHP
bitghost/stexBot
/stexBot.php
UTF-8
4,793
2.859375
3
[]
no_license
<?php use Stocks\ApiVersion\Two; require 'vendor/autoload.php'; // USER CONFIGURATION STARTS HERE $key = ''; // API key $secret = ''; // API secret $pairsArray = array("ETHO_BTC", "ETH_BTC"); // Array for pairs to trade $orderDirection = "BUY"; // "BUY" or "SELL" // USER CONFIGURATION ENDS HERE $stocks = new Two($key...
true
552ce3eb5f33bb330318601b6b9ec1541f801426
PHP
estaleiroweb/traits
/src/GetterAndSetterRO.php
UTF-8
776
3.15625
3
[ "MIT" ]
permissive
<?php namespace EstaleiroWeb\Traits; trait GetterAndSetterRO { /** * Variaveis resgataveis * @var array */ protected $readonly = []; /** * Retorna o valor da variavel sobrecarregada * * @param string $nm Nome da Variavel * @return mixed */ public function __get($name) { return array_key_exists(...
true
28407129c0289d03cfead1a5aafe80ea1277049c
PHP
egig/gita
/src/Bundle/BlogBundle/System/Search/ResultFormatter.php
UTF-8
935
2.53125
3
[ "MIT" ]
permissive
<?php namespace gita\Bundle\BlogBundle\System\Search; use gita\Core\Search\ResultFormatterInterface; class ResultFormatter implements ResultFormatterInterface { protected $container; public function __construct($container) { $this->container = $container; } public function getUrl($item)...
true
300acaf64fe07cc108b1a641c36a131644ae211f
PHP
Meernixe/PHPhilosophy
/vendor/Router/Parser.php
UTF-8
2,047
3.1875
3
[]
no_license
<?php namespace Phphilosophy\Router; use Phphilosophy\Http\Uri; use Phphilosophy\Http\Request; /** * Phphilosophy Uri parser * * @author Lisa Saalfrank <lisa.saalfrank@web.de> * @copyright 2015-2016 Lisa Saalfrank * @license http://opensource.org/licenses/MIT MIT License * @since 0.1.0 * @version...
true
0b5db21e53e4d1eb2de10961b99eb3d8d675dc2b
PHP
deeone108/Bowen-ambulance-system
/AMB/admin.php
UTF-8
1,548
2.5625
3
[]
no_license
<?php include('api.php'); $query = "SELECT * FROM ambvalue"; $result = mysqli_query($conn, $query); $number = 1; ?> <!DOCTYPE html> <html> <head> <title>Admin Section</title> <link href="admin.css" rel="stylesheet" type="text/css" /> </head> <body> <div class="split right"...
true
3dca787e7610de146c030b951e2377b989ab1851
PHP
monanxiao/danbao
/app/Handlers/FileUploadHandler.php
UTF-8
3,964
2.921875
3
[ "MIT" ]
permissive
<?php namespace App\Handlers; class FileUploadHandler { // 只允许以下后缀名的文件上传 protected $allowed_ext = ["png", "jpg", "gif", 'jpeg','doc','docx','xls','pdf']; public function save($file, $iid) { // dd($file->getClientOriginalExtension());exit; //获取文件名称 $file_name = $file->getClien...
true
df9bc8bc4aeb88e3e680b4d9a2af2f4fc4077600
PHP
slince/shopify-api-php
/src/Model/Orders/Common/LineItemDuty.php
UTF-8
1,813
2.625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); /* * This file is part of the slince/shopify-api-php * * (c) Slince <taosikai@yeah.net> * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace Slince\Shopify\Model\Orders\Common; use Slince\Shopify\Model\Comm...
true
473cc29ee76356949a515a5970859cc0e1bce59e
PHP
raphaeldealmeida/Demagogos
/tests/library/Application/Entity/integracao/UsuarioIntegrationTest.php
UTF-8
2,776
2.578125
3
[]
no_license
<?php use Application\Entity; class UsuarioIntegrationTest extends PHPUnit_Framework_TestCase{ /** * * @var \Doctrine\ORM\EntityManager */ protected $_em; public function setUp() { $modelTest = new ModelTestCase(); $modelTest->setUp(); $this->...
true
e670ca6e8bc21c9069c7ae8da77ede91dcdfae3b
PHP
drxcheng/poc
/be/Chipmunk.php
UTF-8
729
2.875
3
[]
no_license
<?php /** * @todo: live long */ class Chipmunk { const REQUEST_TIMEOUT = 0; const RESPONSE_TIMEOUT = 2; private $redis; public function __construct($host) { $this->redis = new Redis(); $this->redis->connect($host, 6379); } public function consume($queue) { $...
true
f43cd730e283520bab298312bb437750db6226e5
PHP
Cvetanski/quantox-laravel
/app/Student/Repositories/EloquentStudentRepository.php
UTF-8
575
2.734375
3
[ "MIT" ]
permissive
<?php namespace App\Student\Repositories; use App\Student\Repositories\Contracts\StudentRepositoryInterface; use App\Student\Student; class EloquentStudentRepository implements StudentRepositoryInterface { public function get(int $id): ?Student { return Student::find($id); } public functi...
true
c82d2102061b07ca4bd083512f9c3d602f55cdb9
PHP
galenodemelo/ASAAS
/app/classes/Helpers.php
UTF-8
3,981
3.375
3
[]
no_license
<?php namespace Classes; class Helpers { /** * Converts to database date format (YYYY-MM-DD) * @param string date * @return string */ public static function dbDateFormat(string $date): string { $date = str_replace('/', '-', $date); return strtotime($date) ? date('Y-m-d', strtotime($date)) : ''; ...
true
82837c1e12de65e40a94ea194fff79ce4bc970db
PHP
sebcsaba/abavee
/classes/db/builders/DeleteBuilder.php
UTF-8
1,656
3.25
3
[]
no_license
<?php /** * Class for building SQL DELETE statements * * @author sebcsaba */ class DeleteBuilder extends SQLBuilder { /** * The table to delete from * * @var string */ private $table; /** * Creates a new builder instance * * @return DeleteBuilder */ public static function create() { ret...
true
191abefa1fb9f0065940c30990736e7474ba9175
PHP
herzvh/match-api
/app/Services/LeagueService.php
UTF-8
284
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Services; use App\Models\League; class LeagueService { public function saveOrUpdateLeague($id, $name) { $league = League::firstOrNew(array('id' => $id)); $league->name = $name; $league->save(); return $league; } }
true
4955248c3a55f64074ef3aa18021990d04ba46c7
PHP
RonnyValdivieso/prourban-ws
/model/model.php
UTF-8
85,739
2.578125
3
[]
no_license
<?php include($_SERVER["DOCUMENT_ROOT"] . '/prourban-ws/db/conexion.php'); function Consultar($sql, $mensajeError) { $db = new conexion(); $result = $db->consulta($sql); $num = $db->encontradas($result); $respuesta->datos = []; $respuesta->mensaje = ""; $respuesta->codigo = ""; if ($num != 0) { for ($i=0;...
true
7ac3eece74082d77cce83b7d3b9f36e7f5f40c2b
PHP
upwebdesign/gotowebinar
/src/Traits/WebinarOperations.php
UTF-8
3,904
2.71875
3
[ "MIT" ]
permissive
<?php namespace Slakbal\Gotowebinar\Traits; use Slakbal\Gotowebinar\Entity\Webinar as WebinarEntity; trait WebinarOperations { /* * Retrieves the list of webinars for an account within a given date range. * Page and size parameters are optional. * Default page is 0 and default size is 20. */...
true
6c1d95ae44a1fa56a4954ed2835c38aa0029e2b4
PHP
erwanf/Shape-php
/shapeTest.php
UTF-8
181
3.078125
3
[]
no_license
<?php Class ShapeTest { public function printAreaOf(Shape $shape){ echo $shape->area(); } public function printPerimeterOf(Shape $shape){ echo $shape->perimeter(); } }
true
b7a2533ad5560f0d984643ad6bed22bf1ca1b5da
PHP
andreiavrammsd/serializer
/tests/Parser/Data/Response/CurrentWeather.php
UTF-8
542
2.703125
3
[ "MIT" ]
permissive
<?php namespace Serializer\Tests\Parser\Data\Response; class CurrentWeather { /** * @Serializer\Property("location") * @Serializer\Type("Serializer\Tests\Parser\Data\Response\Location") */ private $location; /** * @Serializer\Property("current") * @Serializer\Type("Serializer\Tes...
true
fbac98dd2f9484dc0e757d0694d4c660ae7febf1
PHP
gocanto/relay
/src/Types/Decimal.php
UTF-8
1,574
3.171875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php declare(strict_types=1); namespace Gocanto\Relay\Types; use Gocanto\Relay\AttributesException; use Gocanto\Relay\Type; class Decimal implements Type { private float $value; private function __construct() { } /** * @param mixed $value * @return self * @throws AttributesExce...
true
dc829a8a2d2122e5bdb1f3dbc70068ea818431d8
PHP
francismoses/miniproject
/process.php
UTF-8
1,421
2.96875
3
[]
no_license
<?php $servername = "localhost"; $username = "root"; $password = "Francis"; $dbname = "mydb"; // Create connection $conn = mysqli_connect($servername, $username, $password, $dbname); // Check connection if (!$conn) { die("Connection failed: " . mysqli_connect_error()); } // sql to create table $sql ...
true
a9b82e4d3da03ad244692f05e984a5b6d87bf91a
PHP
Evoke-PHP/Evoke-PHP
/src/Network/HTTP/MediaType/Router.php
UTF-8
1,756
3.0625
3
[ "MIT" ]
permissive
<?php declare(strict_types = 1); /** * HTTP Media Type Router Interface * * @package Network\HTTP\MediaType */ namespace Evoke\Network\HTTP\MediaType; use Evoke\Network\HTTP\MediaType\Rule\RuleIface; use OutOfBoundsException; /** * HTTP Media Type Router Interface * * Route the Accepted Media Types from the re...
true
429b5d36bd76f6dc9d26e086937afadfa12a9a15
PHP
VKosi/Camagru-
/comment.php
UTF-8
2,109
2.640625
3
[]
no_license
<?php include("header.php");?> <?php session_start(); if (!isset($_SESSION['LOGGED_ON']) || !$_GET) header('location:index.php'); $pic = $_GET['pic']; ?> <html> <head> <link rel="stylesheet" href="style.css"> <meta charset="utf-8"> <title>Comments</title> </head> <body> <div...
true
0fcfb228da0ac30c7da6c9dd3d7d0ae7cdc50490
PHP
naruthk/pokemon-game
/insert.php
UTF-8
1,557
3.4375
3
[]
no_license
<?php # Naruth Kongurai # CSE 154 # Homework 7 - Pokedex 2 # Section: AO # This is an insert PHP file that adds a new Pokemon into the database. The user can choose to # include a nickname for the Pokemon too. If not, then the nickname will be an uppercase version # of the given Pokemon name. Successful and failure ou...
true
bb349b45c50ecb221a65407fbd66d68cd6746805
PHP
degr/forweb
/modules/orm/OrmUtilsDatabinder.php
UTF-8
5,858
2.53125
3
[]
no_license
<?php /** * Created by IntelliJ IDEA. * User: rsmirnou * Date: 10/30/2015 * Time: 1:13 PM */ class OrmUtilsDatabinder { /** * @var OrmTable */ private $mainTable; /** * @var stdClass[] */ private $metadata; /** * @var mysqli_result */ private $resultSet; ...
true
28a67e547a1ed8f5304acc23a556c184d622a02d
PHP
Pranav2612000/captcha-for-blind
/backend/translate.php
UTF-8
2,851
2.6875
3
[]
no_license
<?php /*function lang_translate($lang) { if($lang == 'hi'){ $player1= "<audio autoplay><source src=". $GLOBALS['base_url'] . "assets/sounds/guides/Hindi_pop_up_instruction.mp3></audio>"; echo $player1; return; } else if($lang == 'gu'){ $player1= "<audio autoplay><source src=". $GLOBALS['ba...
true
110c6e0925efdf78b01e2adb956a33d86fcf5242
PHP
eiwuert/Myrepo
/condor_www_root/ecash_common_cfe.real/code/ECash/Models/APIPayment.php
UTF-8
1,829
2.6875
3
[]
no_license
<?php class ECash_Models_APIPayment extends ECash_Models_WritableModel { public $Company; public $Application; public $EventType; public function getColumns() { static $columns = array( 'date_modified', 'date_created', 'api_payment_id', 'company_id', 'application_id', 'event_type_id', 'amount...
true
3ef21fbdfe97f09a993806fe4ef1598794db40a3
PHP
tarkikRomanski/eStock
/app/Http/Controllers/Api/ItemsController.php
UTF-8
814
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Api; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use App\Item; use App\Http\Resources\ItemResource; class ItemsController extends Controller { public function index() { $items = Item::latest() ->paginate(20); return Item...
true
cc49e6f68c0f992b0c27e3a987dfe0f9b53da0d8
PHP
00F100/fcphp-service
/src/Service.php
UTF-8
2,642
3.203125
3
[ "MIT" ]
permissive
<?php namespace FcPhp\Service { use FcPhp\Service\Interfaces\IService; use FcPhp\Service\Exceptions\RepositoryNotFoundException; class Service implements IService { /** * @var array $repositories List of repositories */ private $repositories = []; /** ...
true
3514a11bd62dd29e438fe18bb0cb9a03e05acbb7
PHP
Henri-coder/MangAfrik
/AddNew.php
UTF-8
1,012
2.765625
3
[]
no_license
<?php if (isset($_POST['valider'])) { include("connection.php"); $req=$connection->prepare("INSERT INTO article(image,titre,nom,texte) values(?,?,?,?)"); try { $req->execute(array(file_get_contents($_FILES["image"]["tmp_name"]),$_POST["titre"],$_POST["nom"],$_POST["texte"])); header('location:cokpit...
true
503fe1d2149ca760e20a8ae7176dd34da4f72ae5
PHP
netCliff/DGA
/learningCurve/arrayFunctions.php
UTF-8
506
3.828125
4
[]
no_license
<!DOCTYPE html> <html lang = "en"> <head> <title>Strings Time</title> </head> <body> <?php /* */ ?> <?php $numbers = array(6, 12, 10.11, 12, 42, 13, 112);?> Count: <?php echo count($numbers); ?><br/> Max Value: <?php echo max($numbers); ?><br/> Min Value: <?php echo min($number...
true
602c525089fbec786e4626b661de1bf4101ab725
PHP
allexramon/curso-php
/DIR/aula68-exe2.php
UTF-8
1,077
3.390625
3
[]
no_license
<?php //scandir vai escanear o diretório informado mostando o que tem dentro $images=scandir("images"); //var_dump($images); $data = array(); // foreach($images as $img){ //in_array(onde procurar, array) --> ele vai negar as informações repassadas no array e entrar na condição if(!in_array($img, array(".","..")))...
true
1fdcac72b37a3ebf06400cf6759030bc2cb478ed
PHP
shoeb240/easybene.com
/application/models/CignaMedicalMapper.php
UTF-8
3,136
2.796875
3
[]
no_license
<?php /** * Application_Model_CignaMedicalMapper class * * @category Application * @package Application_Model * @author Shoeb Abdullah <shoeb240@gmail.com> * @copyright Copyright (c) 2013, Shoeb Abdullah * @version 1.0 */ class Application_Model_CignaMedicalMapper { /** * @var Application...
true
7232a8d3cc5a0944d320b7f1e2b2b18991a1fc77
PHP
miyazawayamato/rpg
/process/role/enemy.php
UTF-8
223
3.15625
3
[]
no_license
<?php class Enemy extends origin { private $name; private $hp = 100; private $attack = 30; public function __construct($name) { parent::__construct($name, $this->hp, $this->attack); } }
true
42663a987916f5339c1ecfaf1cefb0785fb32554
PHP
lovetree/catefish
/platform/application/modules/Player/models/Diamond.php
UTF-8
3,425
2.59375
3
[]
no_license
<?php namespace Player; class DiamondModel extends \BaseModel { /** * 获取列表 * @param int $page * @param int $pagesize * @param array $args * @return array */ public function lists(int $page = 1, int $pagesize = 15, array $args = []): array { $db = $this->DB(); $select ...
true
9af58dfcc0edf09f37d80a371214ee96a6fe4241
PHP
simbigo/phlint
/src/AST/ASTFunction.php
UTF-8
1,494
3.21875
3
[]
no_license
<?php namespace Simbigo\Phlint\AST; use Simbigo\Phlint\Tokens\Token; class ASTFunction extends ASTNode { const ACTION_CALL = 'call'; const ACTION_DECLARE = 'declare'; /** * @var string */ private $action; /** * @var DeclareFunctionArg[]|CallFunctionArg[] */ private $argume...
true
d7f89373e0acbad9cc45395a44944848959b1e84
PHP
OhkaBaka/Bag-O-Tricks
/eatImage/eatImageHtml.php
UTF-8
12,481
2.71875
3
[]
no_license
<?php $bloxelSize = 2; $imgTarget = 'introvert_tiny.gif'; $img = imagecreatefromgif( $imgTarget ); $imgSize = getimagesize( $imgTarget ); $imgColorCount = imagecolorstotal( $img ); $imgStripHeight = 150; $imgStripMaxWidth = 150; function rgbhex( $colorIn ){ return '#' . str_pad( dechex( $colorIn[red] ), 2, 0...
true
c134a33ec9555f948f624239189d5f2a57e7d50f
PHP
Djuki/laravel-options
/src/EloquentOptions.php
UTF-8
866
2.953125
3
[]
no_license
<?php namespace Djuki\Options; class EloquentOptions { /** * Get option value by provided key * * @param $repository Table name * @param $optionName * @param $failValue * * @return mixed */ public function get($repository, $optionName, $failValue = false) { ...
true
3f39e0a2ae4227b655031593e12b9f343fa78de6
PHP
ndobromirov/invoicing-challenge
/invoices-api/src/Services/InvoiceProcessor.php
UTF-8
2,787
2.8125
3
[]
no_license
<?php namespace App\Services; use App\Entity\InvoiceEntry; use App\Entity\CurrencyRateDefinition; class InvoiceProcessor { /** * @var CurrencyConvertor */ private $currencyConvertor; /** * @var InvoiceFileReader */ private $fileReader; /** * @var InvoiceRepository ...
true
e0ae572e6f2134b033c5d96c85c92f24d90cefa3
PHP
MeesterMarcus/eCommerceWebAppGamEco
/backups/bootstrap/search.php
UTF-8
657
2.6875
3
[]
no_license
<?php error_reporting(E_ALL ^ E_DEPRECATED); require "connect_to_mysql.php"; $type=$_POST['searchtype']; $term=$_POST['searchterm']; if($type == "title"){ //get results that equal the term $sql = "SELECT * FROM Games where Title = '$term'"; } else if ($type == "genre"){ //get results that equal the term $sql = "S...
true
a038d18c905f58839830c7e5c7457b4057601e61
PHP
contactor/originphp
/validator/IValidator.php
UTF-8
1,378
2.765625
3
[ "BSD-3-Clause" ]
permissive
<?php /** * Originphp Framework * * @copyright Copyright (c) 2011 Johnson Tsang <contactor@gmail.com> * @license https://github.com/contactor/originphp/blob/master/LICENSE-new-bsd.txt New BSD License * @version 2.2.6 */ namespace origin\validator; /** * Validator interface. * The definition c...
true
8f0624b9d5eb90d417d15be0d74cb24e6edaede9
PHP
terretta/gitki.php
/src/Net/Dontdrinkandroot/Gitki/BaseBundle/Security/OAuthUser.php
UTF-8
2,287
2.546875
3
[ "Apache-2.0" ]
permissive
<?php namespace Net\Dontdrinkandroot\Gitki\BaseBundle\Security; class OAuthUser implements User { /** * @var User */ private $user; private $roles = ['ROLE_OAUTH_USER']; private $accessToken; private $realName; private $email; public function __construct(User $user) { ...
true
2ec90e561af6f4dbaf0489c302fd39b602d98683
PHP
JStav/COP4331SurveyWebsite
/livejson.php
UTF-8
2,091
2.671875
3
[]
no_license
<?php include('mysql_adapter.php'); ?> <?php //$today = getdate(); //print_r($today); $survey_id = $_GET["survey_id"]; if($survey_id == "" || !is_numeric($survey_id)) { die("ERROR"); } $query = " SELECT * FROM answers INNER JOIN users on users.user_id = answers.user_id INNER JOIN questions ON questions.question_id =...
true
1366088a2b65d45a0fc699f41fa978b077bc4edd
PHP
phacility/arcanist
/src/workflow/ArcanistLookWorkflow.php
UTF-8
6,615
2.625
3
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php final class ArcanistLookWorkflow extends ArcanistArcWorkflow { public function getWorkflowName() { return 'look'; } public function getWorkflowInformation() { $help = pht(<<<EOTEXT Look around, or look at a specific __thing__. EOTEXT ); return $this->newWorkflowInformation() ->...
true
2fe0a8fcbd1f5195505ebb00f5fead5e0f89779f
PHP
zawaruddin/qb
/code_gen/handlers/Pixel/AlphaBlend.php
UTF-8
2,274
2.515625
3
[ "PHP-3.01" ]
permissive
<?php class AlphaBlend extends Handler { use ArrayAddressMode, BinaryOperator, FloatingPointOnly, Multithreaded; public function getActionOnUnitData() { $cType = $this->getOperandCType(3); $type = $this->getOperandType(3); $lines = array(); if($this->operandSize == 2) { $lines[] = "$cType a2 = op2_ptr[1...
true
a635d6b14f50c3336535db5237f826334a3c6876
PHP
topeldar123/Lab5
/save_new.php
UTF-8
5,194
2.5625
3
[]
no_license
<?require_once 'engine/page/title.php';?> <?require_once 'engine/connection/connectionStart.php';?> <html> <body> <? if(isset($_POST['index'])){ $index = htmlentities(mysqli_real_escape_string($link, $_POST['index'])); switch($index){ case "fridge": ...
true
26c1d762b7e4faf599425732b2dfd7b3b197f459
PHP
maximebarber/FlouzeManager
/View/vueGetOperations.php
UTF-8
1,738
2.53125
3
[]
no_license
<?php require 'Controller/verificationsMontants.php' ?> <?php $this->titre = 'Opérations' ?> <?php //$numCompte = $operations->fetch(); ?> <h5>Solde Courant : <?= $solde; ?> € du compte <?php //$numCompte['numero_compte_bancaire'] ?></h5><br> <a class="waves-effect waves-light btn">Recettes</a> <a class="waves-eff...
true
573553e8852dcc68ad04bcb20a3bc5d6fca50841
PHP
Sleavely/clutter
/app/controllers/apis/TimelineController.php
UTF-8
1,805
2.6875
3
[]
no_license
<?php use Carbon\Carbon; class TimelineController extends BaseController { public function __construct() { //TODO: run filters on all methods except basic GETs //$this->beforeFilter('auth', array('except' => array('get', 'index', 'show'))); } /** * Helper to determine whether the methods are calle...
true
4678235d8bf7d6d98c7721ebae81184658c4cfa9
PHP
jonbrobinson/HTML_REPO
/public/Classes/filestore.php
UTF-8
2,109
3.46875
3
[]
no_license
<?php class Filestore { public $is_csv = false; public $filename = ''; public function __construct($filename) { $this->filename = $filename; $extension = substr($filename,-3); if($extension == 'csv'){ $this->is_csv = true; } } private function re...
true
fe015d67c18bdbf80438cc661c4407e57869f24a
PHP
InterfloraDanmark/cdp-api
/src/Model/Payment.php
UTF-8
3,605
2.734375
3
[]
no_license
<?php namespace Interflora\CdpApi\Model; class Payment extends AbstractJsonSerializable { /** * @var string */ protected $id; /** * @var string|null */ protected $type; /** * @var string */ protected $gateway; /** * @var string */ protected $transact...
true
09f95b6f3e09b6ce1e4ec50a5d0bcf5c613eea23
PHP
KramPhoenix/Activitat4
/src/Controllers/ContactController.php
UTF-8
603
2.515625
3
[]
no_license
<?php namespace Rentit\Controllers; use Rentit\Controller; class ContactController extends Controller { public function __construct($request) { parent::__construct($request); } public function index(){ $data=['title'=>'CONTACTO']; $this->render($data); } public f...
true
8cedeb93b7b7b505d0b842c83f3504825879ba29
PHP
ironhacker-sadigova/Inventory
/src/Orga/Domain/Report/CellReport.php
UTF-8
1,118
2.890625
3
[]
no_license
<?php namespace Orga\Domain\Report; use Core_Model_Entity; use DW\Domain\Report; use User\Domain\User; /** * CellReport * * @author valentin.claras */ class CellReport extends Core_Model_Entity { /** * @var int */ protected $id; /** * @var Report */ protected $cellDWReport; ...
true
5e62d49a0ec68f43e5e6455bedbe2bae9cd3ad56
PHP
canterburycollege/MyCPD2
/controllers/report.php
UTF-8
1,486
2.609375
3
[]
no_license
<?php /** * Controller for reports * * Loads models and views required by reports */ class ReportController extends BaseController { public function __construct($action, $urlValues) { parent::__construct($action, $urlValues); //create the model object require("models/rep...
true
a175b28389c73984d11f2194ae86014ac9ea0b48
PHP
somov/yii2-common
/tests/unit/components/ProcessRunnerTest.php
UTF-8
970
2.53125
3
[]
no_license
<?php namespace mtest\command; use Codeception\TestCase\Test; use somov\common\components\ProcessRunner; use somov\common\exceptions\ProcessException; use somov\common\process\LsProcess; /** * * User: develop * Date: 02.07.2018 */ class ProcessRunnerTest extends Test { /** * @return...
true
c1a25a2bf5d8b1aa9534eec011869f12b7c9ed94
PHP
minpppst/reporte_proyecto
/protected/models/Proyecto.php
UTF-8
2,558
2.640625
3
[]
no_license
<?php /** * This is the model class for table "proyecto". * * The followings are the available columns in table 'proyecto': * @property integer $codigo * @property string $codigo_sne * @property string $nombre * @property integer $estatus * * The followings are the available model relations: * @property Acci...
true
d5086ef25761e4f381930ae554633301a1a10241
PHP
borislavtotev/SoftUniOOP
/OOP-in-PHP/HotelReservationSystem/Reservation.class.php
UTF-8
984
3.4375
3
[]
no_license
<?php class Reservation { private $startDate; private $endDate; private $guest; public function __construct($startDate, $endDate, $guest) { $this->setStartDate($startDate); $this->setEndDate($endDate); $this->setGuest($guest); } public function getStartDate() { $startDate = date('d.m.Y', $this->startD...
true
56eee6f2ec2c988d1cadbcdb9cf771d7761c4f7d
PHP
teosanchez/lephare4
/clase_nutricion.php
UTF-8
1,765
2.75
3
[]
no_license
<?php class nutricion { //Atributos de la tabla de la bd public $id=null; public $id_paciente=null; public $fecha_ingreso=null; public $peso_ingreso=null; public $peso_nacimiento=null; public $peso_alta=null; public $enfermedad=null; public $fecha_muerte=null; ...
true
56569dd0dbd3dd246509550edbcf9c2c556014cd
PHP
maxistar/etherra-core
/class/etherra/site/helper/Helper.php
UTF-8
486
2.640625
3
[]
no_license
<?php namespace etherra; /** * the way to manage css styles */ class site_helper_Helper { /** * two dimentional array [$section][$key]; */ protected $_items = array(); function add($name,$section=0){ if (!isset($this->_items[$section])) { $this->_item...
true
1d5ea224452d44afd4cf6fc466df744ebfc22d94
PHP
hoatrangnv/tiengtrunganhduong.com
/frontend/models/ArticleCategory.php
UTF-8
5,077
2.578125
3
[ "BSD-3-Clause" ]
permissive
<?php /** * Created by PhpStorm. * User: User * Date: 6/9/2017 * Time: 1:59 AM */ namespace frontend\models; use yii\helpers\ArrayHelper; use yii\helpers\Url; use common\models\UrlParam; use Yii; /** * Class ArticleCategory * @package frontend\models * * @property Article[] $articles * @property User $crea...
true
73631ed2136daa4b47c74787125cd5761c530761
PHP
oprokidnev/ProxyManagerModule
/src/ProxyManagerModule/Factory/LazyLoadingGhostFactory.php
UTF-8
1,176
2.515625
3
[]
no_license
<?php namespace ProxyManagerModule\Factory; /** * Creates \ProxyManager\Factory\LazyLoadingGhostFactory with given configuration * * @author oprokidnev <aa@oprokidnev.ru> */ class LazyLoadingGhostFactory implements \Zend\ServiceManager\FactoryInterface { /** * * @param \Zend\ServiceManager\Service...
true
e433fd12b4129b6e2120a26879d2ec368580dbe0
PHP
Harvie/Programs
/php/skripty/prvocisla.php
WINDOWS-1252
678
3.796875
4
[]
no_license
<?php //FUNCTION IS_PRIME() function is_prime ($num) { if($num < 2) { return (0); } if ( ($num > 2) && (($num % 2) == 0) ) { return (0); } $i = 2; while ($i < $num) { if ( ($num % $i) == 0 ) { return (0); } $i++; } return (1); } //CODE //Prvocisla: 2, 3, 5, 7, 11, 13, 17, 1...
true
89d8364103253f2c44d3e8c1c6740a3b06a7f3f3
PHP
N5m6mailru/bet
/php/classes/File.php
UTF-8
606
2.828125
3
[]
no_license
<?php class File{ public static function uploadFile(){ $file = $_FILES['userfile']; // Сохраняем в переменную всю информацию о файле $updir = 'userfile/'.time().$file['name']; // Путь куда будет сохранён файл. time() - Возвращает текущую метку системного времени Unix if($file['size'] <= 1048576){ move_uploa...
true
8ad5295ef9292a8fe5f1afec4d302d1282827311
PHP
LycheeOrg/Lychee
/tests/Feature/LangTest.php
UTF-8
1,779
2.765625
3
[ "MIT" ]
permissive
<?php /** * We don't care for unhandled exceptions in tests. * It is the nature of a test to throw an exception. * Without this suppression we had 100+ Linter warning in this file which * don't help anything. * * @noinspection PhpDocMissingThrowsInspection * @noinspection PhpUnhandledExceptionInspection */ na...
true
c4a08edd0e888a280f24f694e01ab51cd050b9f0
PHP
rifqirosidin/warungku
/beli.php
UTF-8
723
2.53125
3
[]
no_license
<!DOCTYPE html> <html> <?php session_start(); if (!isset($_SESSION['username']) && !isset($_SESSION['status'])){ header("location:index.php"); $_SESSION['login'] = 'gagal'; } ?> <head> <title></title> </head> <body> <form action="" method="post"> <div class="form-group"> <label for="nama_barang">Na...
true
502d254d6a73548221f9e6965071ca3e25b2f81a
PHP
chrissbill23/My-Eventi-simple-accessible-web-site-
/Modello/DB_handler.php
UTF-8
48,914
2.671875
3
[]
no_license
<?php require_once("config.php"); /* LA CLASSE DB_handler E' UNA CLASSE I CUI OGGETTI SONO DEGLI INTERMEDIARI TRA IL DATABASE E GLI UTENTI DEL DATABAsE. PERMETTONO GRAZIE AI LORO METODI DI SVOLGERE OPERAZIONI DI LETTURA O DI MODIFICA( SE L'UTENTE HA I PERMESSI NECESSARI) DEL DATABASE */ class DB_handler { ...
true
f4485e05b478c270f415c165c35cf4ecd3b8092b
PHP
aepp/rechner
/module/Vergleichsrechner/src/Vergleichsrechner/Entity/Repository/KreditRepository.php
UTF-8
699
2.546875
3
[]
no_license
<?php namespace Vergleichsrechner\Entity\Repository; use Doctrine\ORM\EntityRepository; class KreditRepository extends EntityRepository{ public function findAll(){ $dql = "SELECT o FROM \Vergleichsrechner\Entity\Kredit o"; $query = $this->getEntityManager()->createQuery($dql); return $query->getR...
true
aa93f11d1a24b47b41f28dea14854d16f763f02e
PHP
touristphp/webtourist
/model/Like.php
UTF-8
3,659
2.578125
3
[]
no_license
<?php include_once '../controller/database/ConnectDatabase.php'; /** * author ngocquy */ class Like extends ConnectDatabase { private $id; private $userId; private $blogId; public $check = false; private $connect; function __construct() ...
true
44dc4b4cfa78463daeaf47c833cda487fca721a5
PHP
GrandMedia/DoctrineLogging
/src/Formatters/DateTimeFormatter.php
UTF-8
583
2.640625
3
[ "MIT" ]
permissive
<?php declare(strict_types = 1); namespace GrandMedia\DoctrineLogging\Formatters; use GrandMedia\DoctrineLogging\Formatters\Exceptions\UnsupportedValue; final class DateTimeFormatter implements \GrandMedia\DoctrineLogging\Formatters\Formatter { /** * @param mixed $value */ public function support($value): boo...
true
7644dcb82096031c2a3aef3ea405e6d6f2dcfb7d
PHP
amirping/superrewards-postback
/php_oop/postback.php
UTF-8
2,179
2.84375
3
[ "MIT" ]
permissive
<?php /* SuperRewards.com App Postback Handling Script for Publishers. You will need a web server running PHP and a MySQL database (or MySQL-like database). This script uses PHP's PDO which can be configured to use different database types. Installation Instructions: 1. Fill in the configuration options below...
true
9c63c8402e1fc64c972402bab4dff6e3585cc6fe
PHP
adrianmm44/zcale
/bin/web/php/zcale/server/html/Head.class.php
UTF-8
1,225
2.796875
3
[]
no_license
<?php class zcale_server_html_Head { public function __construct($title = null) { if(!php_Boot::$skip_constructor) { $this->style = ""; $this->title = $title; }} public $title; public $style; public function addStyle($str) { $this->style .= "\x0A\x09\x09" . _hx_string_or_null($str); return $this; } pu...
true
e2450b2ab8e4372e4ea7b25b792bf988c345f9bb
PHP
cayoedgardo/sistemaproteccion
/models/Usuario.php
UTF-8
1,911
2.640625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use Yii; /** * This is the model class for table "usuario". * * @property int $id * @property string $nombre * @property string $apellido * @property string $mail * @property string $password * * @property UsuarioObjeto[] $usuarioObjetos * @property UsuarioPermiso[] $usuarioPerm...
true
193ca74f4507105571c1ed1b32153b9921c70b0e
PHP
ru-easyfinance/EasyFinance
/sf/test/functional/api/sync/InOperationTest.php
UTF-8
22,274
2.515625
3
[]
no_license
<?php require_once dirname(__FILE__).'/BaseIn.php'; /** * Синхронизация: получить список объектов */ class api_sync_InOperationTest extends api_sync_in { /** * Получить список полей полей объекта, которые принимаются из XML */ protected function getFields() { return array( ...
true
5f92b29acbc0792f2dd19e1c59bb8b9437e18066
PHP
quazare/ImageClassDBSql30
/rubrikator.php
WINDOWS-1251
12,315
2.578125
3
[]
no_license
<?php /*class stylist 09.04.2012 sqllite 2.8 update 05.03.2014*/ class createIMAGE{ //=================================================================== /* createIMAGE v.1.01 _03.03.2009 $myIMG= new createIMAGE($tmpfoto, $XXX, $YYY, $lide_foto, $size_param); $tmpfoto - ( , $_FILES['photo']['t...
true
54df28b5ff82241c11f600e2ec10d1c67cae9982
PHP
Tschitsch/client
/src/Api/ProgressionApiInterface.php
UTF-8
487
2.546875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace R6API\Client\Api; /** * API to manage the progression. * * @author Baptiste Leduc <baptiste.leduc@gmail.com> */ interface ProgressionApiInterface { /** * @param string $platform Platform to use for this request * @see PlatformType * * @param array ...
true
aff84cdca412433e2d68e5075173b8f9d42f031f
PHP
KNIGHTTH0R/Restaurant-management-system
/FinalProject/Controller/userChangePasswordController.php
UTF-8
1,430
2.734375
3
[]
no_license
<?php include_once("../MVC.php"); includeModel("userModel.php"); session_start(); if(!isset($_SESSION["isValid"])){ //this will redirect to login page if user didn't logged in yet redirectToView("login.php"); } if(isset($_REQUEST["cpass"]) && isset($_REQUEST["npass"]) && isset($_REQUEST["rnpass"])) { ...
true
e9de6e301dab7b8059cb23162bf437adcaee3c77
PHP
JeremieLoison/projetPhotoShow
/app/Http/Controllers/AlbumsController.php
UTF-8
3,589
2.53125
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Album; class AlbumsController extends Controller { public function photos(){ $albums = Album::with('Photos')->get(); return view('layoutsAdmin.adminPhotos')->with('albums', $albums); } public function admGal(){ ...
true
f7699c484f44b0d8716e6807335b4bed71b6a5d8
PHP
twwongaq/teamform-seed
/app/upload.php
UTF-8
972
2.6875
3
[ "MIT" ]
permissive
<?php // if name is not in the post data, exit if (!isset($_POST["name"])) { header("Location: error.html"); exit; } require_once('xmlHandler.php'); // create the chatroom xml file handler $xmlh = new xmlHandler("chatroom.xml"); if (!$xmlh->fileExist()) { header("Location: error.html"); exit; } // o...
true
4b50e0a47f8821df6d8beb1dcff818646c7a6ad0
PHP
saibotd/publicize
/classes/kohana/publicize.php
UTF-8
1,968
2.796875
3
[ "MIT" ]
permissive
<?php defined('SYSPATH') or die('No direct script access.'); /** * Publicize is a small helper class that provides routing * functionality that enables modules to include files that are * publically available via your htdocs, public, html, www, * %%insert another public folder variation%%. * * @package Publici...
true
c02f56b71f71876b3e3da7f83b989909e42909be
PHP
guilhermefontans/algorithms-and-data-structure
/src/DataStructure/DoubleLinkedList/Node.php
UTF-8
443
3.4375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Algorithms\DataStructure\DoubleLinkedList; /** * Class Node */ class Node { /** * @var Node */ public $next; /** * @var int */ public $value; /** * @var int */ public $previous; /** * Node constructor. *...
true
b1b6175d853bd92d2972529afa47f229af4d3cf1
PHP
CAUN94/abet
/app/Report.php
UTF-8
3,585
2.53125
3
[ "MIT" ]
permissive
<?php namespace App; use App\Category; use App\Indicator; use Illuminate\Database\Eloquent\Model; class Report extends Model { public function Course() { return $this->belongsTo('App\Course')->first(); } public function Status() { if(isset($this->MeasurementInstrument) && isset($thi...
true