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
c5626ce215b40f54db256498bdb3bdfbd3fd8784
PHP
dienavarrete/infonete
/app/controller/PublicacionController.php
UTF-8
3,755
2.765625
3
[]
no_license
<?php class PublicacionController { private $renderer; private $publicacionDAO; private $tipoPublicacionDAO; private $seccionDAO; private $noticiaDAO; private $generoDAO; private $estadoDAO; /** * PublicacionController constructor. * @param Renderer $renderer * @param ...
true
4f477f14eed74e97335b234fa32b93cb32236ff5
PHP
wnd55/yii2_shop
/shop/entities/Page.php
UTF-8
3,122
2.8125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: maxim * Date: 14.02.19 * Time: 11:08 */ namespace shop\entities; use paulzi\nestedsets\NestedSetsBehavior; use yii\behaviors\SluggableBehavior; use yii\db\ActiveRecord; /** * @property integer $id * @property string $slug * @property string $title * @property strin...
true
a2feb0c44424f99bf83534e6a98b54f84bbfa689
PHP
Denispo/TigerApi
/src/TigerApi/Error/TigerErrorHandler_TextHttpOutput.php
UTF-8
990
2.703125
3
[]
no_license
<?php namespace TigerApi\Error; use Nette\Http\IResponse; class TigerErrorHandler_TextHttpOutput implements ICanHandlePhpError { public function handlePhpError(int $errNo, string $errMsg, string $file, int $line):void{ if (error_reporting() === 0 || error_reporting() === (E_ERROR | E_CORE_ERROR | E_COMPILE_E...
true
acacad8fa78e85dbf9e13f9791df2bb02307fd50
PHP
inri13666/google-api-php-client-v2
/libs/Google/Service/AdSense/AdCode.php
UTF-8
382
2.5625
3
[ "Unlicense" ]
permissive
<?php namespace Google\Service\AdSense; class AdCode extends \Google\Model { public $adCode; public $kind; public function setAdCode($adCode) { $this->adCode = $adCode; } public function getAdCode() { return $this->adCode; } public function setKind($kind) { $this->kind = $kind; } ...
true
fbea6b0523aac3ce2db42d1a1534fc0af1e3baa2
PHP
Dil00/Synchronizer-Token-Pattern
/WebSecurity/Index/index.php
UTF-8
3,579
2.703125
3
[]
no_license
<?php session_start(); require_once 'Token.php'; //Creating the cookie setcookie("name","Admin",time() + 20000 ); $errorMsg=""; $success=""; if(isset($_POST['username'])) { $username = $_POST['username']; } if(isset($_POST['password'])) { $passw...
true
2e5b3db7f2900d755e4b31535b0e07b5ced74135
PHP
rr-it/newsletter
/Classes/Command/MdaBounceCommand.php
UTF-8
2,329
2.78125
3
[]
no_license
<?php namespace Ecodev\Newsletter\Command; /* * This file is part of the TYPO3 CMS project. * * It is free software; you can redistribute it and/or modify it under * the terms of the GNU General Public License, either version 2 * of the License, or any later version. * * For the full copyright and license info...
true
d446d6d0bf737ce96aea0afcfbc106f412b483b2
PHP
INinbox/ininbox-api-php
/lib/INinboxCustomRemoval.class.php
UTF-8
2,225
2.609375
3
[]
no_license
<? class INinboxCustomRemoval { public $Logo; public $URL; public $WebsiteURL; public $Description; public $UnsubscribePageURL; public $StayOnListPageURL; public function __construct($Logo = null, $URL = null, $WebsiteURL = null, $Description = null, $UnsubscribePageURL = null, $StayOnListPageURL =null) { $...
true
7a415d888fe199e8efc4be57060869e0886f4752
PHP
levonphobos/forget_pass
/index.php
UTF-8
3,911
2.53125
3
[]
no_license
<?php if (isset($_POST['email'])) { // Create connection $conn = new mysqli('localhost', 'root', '', 'login'); // Check connection if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } $email = $conn->real_escape_string($_POST['email']); $sql = $conn->query("SEL...
true
913544c7b104f2675f23ec553310442529a617ea
PHP
lfcruz/gcsApps
/offlinepayment/lib/requestClass.php
UTF-8
4,626
2.59375
3
[]
no_license
<?php include_once "customerClass.php"; include_once "paymentsClass.php"; include_once "constants.php"; include_once "dbClass.php"; include_once "configClass.php"; class coreRequest { private $httpRequest; private $conf; private $dbLinkRequest; function __construct($vRequest){ $this->htt...
true
3eba6d1d528f71136c7f48ab274adfff5f86d4c7
PHP
gogbuehi/BMCD.com
/web/includes/models/page/table_node.php
UTF-8
941
2.703125
3
[]
no_license
<?php require_once 'includes/models/page/content_node.php'; class TableNode extends ContentNode { public $bodyNode; public $headerNode; protected $headerRow; protected $currentRow; function __construct(&$doc) { parent::__construct('table',$doc); $this->bodyNode = $this->createNode('tbody'); ...
true
ac8fc6871f5f5a532d2b1c9453313d349b73efe5
PHP
danielr40/buscaTOP
/crawler.php
UTF-8
5,344
2.90625
3
[]
no_license
<?php /** * web crawler * Autores: Daniel Reis e Lucas Viana * * Fontes: * http://subinsb.com/how-to-create-a-simple-web-crawler-in-php */ // require 'simple_html_dom.php'; class crawler { // trasforma urls relativas para absolutas function rel2abs($rel, $base) { if (parse_url($rel, PHP_URL_SCHEME) !...
true
f83818a63a0fc1cb3adcac4569b6027e15b30104
PHP
IsaqueFelipe/espacosideral
/modulo/comunica.php
UTF-8
14,913
2.65625
3
[]
no_license
<?php /** * [________________espacosideral_2020______________] * [______________________I.F.F.C___________________] * [ ... ] **/ date_default_timezone_set('America/Sao_Paulo'); // error_reporting(E_ALL); ///__Conexão com Banco de Dados: Espaço Sideral.__/// fu...
true
8785b30ae5edab00316ed37a702fce51f0231f28
PHP
pafn61/mv
/core/model_base.class.php
UTF-8
26,033
2.515625
3
[]
no_license
<? /** * Base class of any model. * Contains main objects and properties. * Keeps many operations which will be used in main model class. */ abstract class Model_Base extends Model_Initial { //Localization manager public $i18n; //Pagenation manager public $pager; //Filters manager public $filter; //So...
true
1e8a6d2536dc7732c00af2be456f0df7122fad96
PHP
imugo/tshirts
/model/productAdmin.php
UTF-8
845
2.71875
3
[]
no_license
<?php // Include utility files require_once 'config.php'; // Load database handler require_once 'database_handler.php'; // Load the catalog class require_once 'catalog.php'; if (isset($_GET['GetCategoryProducts'])) { $id = (int)$_GET['GetCategoryProducts']; $products = Catalog::GetCategoryProduc...
true
d1dbd1d4fe8c9bc7ebf5532047afa1f8ece55b1d
PHP
salle18/humbolt_api
/Elab/Csmp/IntegrationMethod.php
UTF-8
1,151
3.25
3
[]
no_license
<?php /** * Class IntegrationMethod */ namespace Elab\Csmp; /** * Klasa metode integracije. Sve metoda integracije moraju biti izvedene iz ove klase. * * @package Elab\Csmp */ abstract class IntegrationMethod implements \JsonSerializable { /** * @var Simulation Simulacija koja se izvršava. */ ...
true
6a4dd005358cb2a10d18afbbb4c82e876f3948a5
PHP
MLupinski/AllegroSynch
/lib/jsonGen.php
UTF-8
615
2.609375
3
[]
no_license
<?php class JsonGen { private $ean; private $id; private $price; private $quant; public function generateCode($id, $quant) { $this->id = $id; $this->quant = $quant; $data = [ 'modification' => [ 'changeType' => 'FIXED', 'value' => (int)$quant, ...
true
83977c99c15f68531e0a1bbdf9ac7c6843aadb29
PHP
kakadu-group/kakadu
/application/tests/favorite.with.permissions.test.php
UTF-8
8,265
2.546875
3
[ "MIT" ]
permissive
<?php require_once 'testcase.course.php'; class TestFavoriteWithPermissions extends CourseTestCase { protected $names_create = array('Test xy', 'Test yz'); protected $names_delete = array('Test xy', 'Test yz'); private $course = null; public function setUp() { parent::setUp(); $thi...
true
952c3d4c24a9c9e8d434ef65c9b7ee2521156c3a
PHP
nuzulfikrie/stripe
/src/Api/Subscriptions.php
UTF-8
3,978
2.5625
3
[ "BSD-3-Clause", "MIT" ]
permissive
<?php declare(strict_types=1); /* * Part of the Stripe package. * * NOTICE OF LICENSE * * Licensed under the 3-clause BSD License. * * This source file is subject to the 3-clause BSD License that is * bundled with this package in the LICENSE file. * * @package Stripe * @version 3.0.0 * @author C...
true
216b742c75233f2526c00a43bfcec32ceaf89f69
PHP
phly/PhlyBlog
/misc/sample-post.php
UTF-8
905
2.78125
3
[ "BSD-2-Clause" ]
permissive
<?php use PhlyBlog\AuthorEntity; use PhlyBlog\EntryEntity; $entry = new EntryEntity(); $author = new AuthorEntity(); $author->fromArray( [ 'id' => 'yourusername', 'name' => 'Your Full Name', 'email' => 'you@your.tld', 'url' => 'http://your.tld/', ] ); $entry->setId('thi...
true
9e2b09b509bb78bafbade58ad89eafdd48146ada
PHP
martynasssz/learn_php_cookies
/page3.php
UTF-8
522
3.203125
3
[]
no_license
<?php //when we need to save more then one peace of data, better use array $user =['name' => 'Andrius', 'email' => 'test@test.com', 'age' =>35]; $user = serialize($user); //serialize prepare data to be stored 1) serialize data setcookie('user', $user, time() + (86400 * 30));//jei bandysime uzsetinti cookie kaip ma...
true
65d45d87a82349fbd01f8c597abe5a5487bcd9ce
PHP
slalji/DAR_open_API
/DB.php
UTF-8
7,734
2.859375
3
[]
no_license
<?php //require_once ("config.php"); require_once ("Transactions.php"); /** * * PHP version 5 * * @modal DB * @author Salma Lalji **/ class DB extends PDO { public $conn =null; //private static $objInstance; public function __construct() { if(!$this->conn){ date...
true
d879cb576615dc01dba77a8285ae794caebb5124
PHP
rrade/rent_a_car_api
/app/Http/Requests/API/VehicleRequest.php
UTF-8
1,653
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Requests\API; use App\Exceptions\ValidationException; use Illuminate\Contracts\Validation\Validator; use Illuminate\Foundation\Http\FormRequest; use Illuminate\Support\Facades\Route; class VehicleRequest extends FormRequest { /** * Determine if the user is authorized to make this re...
true
f811c195b91fd9d1ad658cb554c6657e95ac79c1
PHP
LordDashMe/wordpress-db-schema-extender
/src/Exception/InvalidArgumentPassed.php
UTF-8
1,612
2.90625
3
[ "MIT" ]
permissive
<?php /* * This file is part of the Wordpress DB Schema Extender. * * (c) Joshua Clifford Reyes <reyesjoshuaclifford@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace LordDashMe\Wordpress\DB\Exception; use Lor...
true
184488017f4292a71e17b5d3347dff8be881c7a1
PHP
mgroseman/omxplayer-web-controls-php
/pi_web_player/setup.php
UTF-8
6,774
2.5625
3
[ "MIT" ]
permissive
<html> <head> <title>PHP OMXPlayer Control Setup</title> <style type="text/css"> .error{ color:red; font-weight:bold; } </style> </head> <body> <?php error_reporting(E_ALL); // Set a junk VIDDIR since cfg.php needs it $VIDDIR = 'EXAMPLE'; // Load current variables ...
true
275a73147531888a0a2c53d959fd3b6c31c2baea
PHP
vucongthanh92/Amely-API
/classes/services/ProductStoreService.php
UTF-8
4,241
2.703125
3
[]
no_license
<?php /** * */ class ProductStoreService extends Services { protected static $instance = null; public static function getInstance() { if (self::$instance == null) { self::$instance = new self(); } return self::$instance; } public function __construct() { $this->table = "amely_product_store"...
true
ca1c77e26ffa041263664dd1ea6c48d63dd3720f
PHP
alfy32/public_html
/accent/schedule3.php
UTF-8
8,961
2.6875
3
[]
no_license
<!DOCTYPE html> <?php $file_name = "schedule3"; $host = "localhost"; $user = "alan_alan"; $password = "ze3^717?0F-e"; $database = "alan_salon"; $con = mysql_connect($host, $user, $password); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db($database, $con); $date = date('Y-...
true
0653ea90e4103be6954942b4e4ccb8653c7e0b7e
PHP
jordankimsey/scottstanley
/mail.php
UTF-8
1,610
2.640625
3
[]
no_license
<?php if(isset( $_POST['firstName'])) $firstName = $_POST['firstName']; if(isset( $_POST['lastName'])) $lastName = $_POST['lastName']; if(isset( $_POST['phone'])) $phone = $_POST['phone']; if(isset( $_POST['email'])) $email = $_POST['email']; if(isset( $_POST['message'])) $message = $_POST['message']; if(isset( $_POST[...
true
270f74d107c479cb559d88bbbecf6cedadf14bfa
PHP
LiveHelperChat/fb-messenger-sdk
/src/MessagingType.php
UTF-8
1,130
2.5625
3
[ "MIT" ]
permissive
<?php namespace Tgallice\FBMessenger; interface MessagingType { /** * Message is in response to a received message. * This includes promotional and non-promotional messages sent inside the 24-hour standard messaging window or under the 24+1 policy. * For example, use this tag to respond if a person...
true
f6db35389250af7e7804fab83c40b5a37addbe2a
PHP
ali-linux/DigitalMusicPlayer
/includes/classes/User.php
UTF-8
1,155
3.0625
3
[]
no_license
<?php class User { private $con; private $username; public function __construct($con, $username) { $this->con = $con; $this->username = $username; } public function getUsername() { return $this->username; } public function getEmail() { $query = mysqli_query($this->con, "SELECT email FROM ...
true
5d45644948856d978673b2d544d83e2edf222d00
PHP
gymadarasz/talkbot
/tests/Library/MergerTest.php
UTF-8
3,094
2.765625
3
[]
no_license
<?php declare(strict_types = 1); /** * PHP version 7.4 * * @category PHP * @package Madsoft\Tests\Library * @author Gyula Madarasz <gyula.madarasz@gmail.com> * @copyright 2020 Gyula Madarasz * @license Copyright (c) All rights reserved. * @link this */ namespace Madsoft\Tests\Library; use Madso...
true
e5518dcec1673daf27c7ba6e3c33795ff75fe32a
PHP
AnhellO/curso-de-php
/Clase 1/Practicas/practica-4.php
UTF-8
723
3.046875
3
[]
no_license
<?php if (isset($argv[1])) { $nombre = $argv[1]; } else { die("Ingresa el nombre! >:(\n"); } $arregloFinal = []; $arregloFinal['arreglo'] = explode(' ', $nombre); $arregloFinal['mayusculas'] = mb_strtoupper($nombre); $arregloFinal['minusculas'] = mb_strtolower($nombre); $arregloFinal['ascii'] = array_sum(array_map...
true
3cbe517f8e8e628aa6d3ffee27f477652939ae73
PHP
radioactivehamster/temporal
/src/Calendar.php
UTF-8
492
2.734375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace Temporal; use ArrayObject; use Temporal\Calendar\Day; use Temporal\Calendar\Month; use Temporal\Calendar\Week; class Calendar extends ArrayObject { /** * @return Day */ public static function day() { return new Day; } /** * @return Month */ public ...
true
6584ecddfc20cb949eb2a56573ae0d27ed394586
PHP
cp6/PHP-authit
/tobe_index_nocaptcha.php
UTF-8
2,318
2.53125
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" lang="en"> <?php require_once('funcs.php'); session_start(); if (!isset($_SESSION['user'])) {//User not successfully logged in $status_set = 0; if ...
true
db711594d5ad6f9cfc8778834a3f06445f520503
PHP
dichevia/PHP-Web
/Defining Classes - Exercise/19. Car.php
UTF-8
2,519
3.671875
4
[]
no_license
<?php class Car19 { private $speed; private $fuel; private $fuelEconomy; private $totalDistance; private $totalTravelTime; public function __construct($speed, $fuel, $fuelEconomy) { $this->speed = $speed; $this->fuel = $fuel; $this->fuelEconomy = $fuelEconomy; ...
true
ee5a7fc5e9bf32b38b2a7469c4b904e1a66ff0f4
PHP
jacky588/swpool
/code1.0/core/MemcachePool.php
UTF-8
3,480
2.609375
3
[ "Apache-2.0" ]
permissive
<?php /** * 连接池封装. * User: user * Date: 2018/9/1 * Time: 13:36 */ use Swoole\Coroutine\Channel; abstract class MemcachePool { private $min;//最少连接数 private $max;//最大连接数 private $count;//当前连接数 private $connections;//连接池组 protected $spareTime;//用于空闲连接回收判断 //...
true
627d7f365339275f0a0ca6f0e9a6844af829a3da
PHP
ViolaGupta/internship1
/else/viola-php-assignment/day 2/ques4.php
UTF-8
224
3.515625
4
[]
no_license
<?php $n; $sum=0; $n1; for ($n=2; $n<1000; $n++) {$n1=$n; $sum=0; while($n1>0) { $sum = pow(($n1%10),3) + $sum; $n1=(int)($n1/10); } if($sum==$n) {echo "arm number:".$n."<br>";} } ?>
true
be1e461ea4bd5c7d534d80e73363f6a941a3f519
PHP
idnaninitesh/LibraryManagementSystem
/book_details_title_report.php
UTF-8
3,733
2.609375
3
[]
no_license
<?php require 'core.inc.php'; require 'connect.inc.php'; $title=$_GET['title']; ?> <html> <head> <title>Print Book Details</title> </head> <body> <script> window.print(); </script> <a href="book_details_title.php?full_title=<?php echo $title?>">Back to Book De...
true
8587f46a9f78b0e28a136b2dbfc30c352481cc96
PHP
SerRashin/rashin.me
/tests/Service/Education/EducationServiceTest.php
UTF-8
8,332
2.59375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace RashinMe\Service\Education; use DateTime; use Doctrine\Common\Collections\Collection; use PHPUnit\Framework\MockObject\Exception; use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\TestCase; use RashinMe\Entity\Education; use RashinMe\Service\Education\Dto\Dat...
true
af283d0e185f67f6e831afeb029b8f65db8d46cb
PHP
kiprobinson/TwitterStatusUpdate
/twitter.class.php
UTF-8
3,207
3.109375
3
[]
no_license
<?php /** * This class allows one to programmatically update Twitter status using OAuth. * * Further documentation available on GitHub Wiki page: https://github.com/kiprobinson/TwitterStatusUpdate/wiki * * @author Kip Robinson, https://github.com/kiprobinson */ class twitter { //FILL IN THESE VALUES!! priv...
true
11c2c3e7d9029896b66390f422b63fb362b59a32
PHP
decalion/PracticaPHPUF3
/Models/Classes/BD/impl/GenesisImplMysql.php
UTF-8
2,425
2.8125
3
[]
no_license
<?php /** * Description of GenesisImplMysql * * @author Ismael */ class GenesisImplMysql extends AbstractBD implements IGenesis{ public function __construct(UConnection $connection) { parent::__construct($connection); } /** * Add new data * @param type $sql */ p...
true
ee54ab00627544dce41a460270188760a858d615
PHP
arka816/forum
/upvoteQuery.php
UTF-8
1,046
2.578125
3
[]
no_license
<?php $topic = $_GET["topic"]; $user = $_GET["user"]; $servername = "localhost"; $username = "root"; $password = ""; $dbname = "myDB"; //error_reporting(0); // Create connection $conn = new mysqli($servername, $username, $password,$dbname); $sql = "SELECT username,topicname,upvote FROM myVot...
true
87884ac03501105c2ab3acdf66368a3af9b0c979
PHP
marcinsoja/php-json-rpc
/example/server/server.php
UTF-8
1,233
2.53125
3
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
<?php ini_set('display_errors', 1); error_reporting(E_ALL); require_once '../../vendor/autoload.php'; require_once './UserService.php'; use JsonRpcLib\Server; $service = new \Example\UserService(); // closure service $serviceTime = function() { return time(); }; // create server $server = new Server\Server(); ...
true
0c7bb2f88a3fe6f46c1e32b02712a925e29b7474
PHP
sobir0990/medo_backend_dev
/common/models/ModerReason.php
UTF-8
2,264
2.609375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace common\models; use Yii; /** * This is the model class for table "moder_reason". * * @property int $id * @property string $title * @property string $message * @property string $created * * @property CompanyModer[] $companyModers * @property PostModer[] $postModers * @property ProductModer[] ...
true
b534a5133255e0ea42b3ce0ed7bed73741f9c5b8
PHP
FlyZZTeam/flyframework
/framework/validators/InlineValidator.php
UTF-8
1,527
3
3
[ "BSD-3-Clause" ]
permissive
<?php /** * @link http://www.flyframework.com/ * @copyright Copyright &copy; FlyZZ Team * @license http://www.flyframework.com/license.html * @author zz <zz@flyzz.net> */ /** * InlineValidator represents a validator which is defined as a method in the object being validated. * * The validation method must have...
true
d95706faeab8a022305e0f3db681b0295b88dbc6
PHP
BCLibraries/bcbento-server
/src/Entity/WebsiteSearchResponse.php
UTF-8
1,025
3.046875
3
[ "MIT" ]
permissive
<?php namespace App\Entity; use TheCodingMachine\GraphQLite\Annotations\Field; use TheCodingMachine\GraphQLite\Annotations\Type; /** * @Type() */ class WebsiteSearchResponse { /** * @var int */ private $total; /** * @var Webpage[] */ private $docs = []; /** * @var str...
true
848edfa8e12276eb0c50363491971f72d8d49603
PHP
frosas/el-roto-feed
/src/Frosas/ElRoto/Cartoons/Cartoon.php
UTF-8
738
2.765625
3
[ "MIT" ]
permissive
<?php namespace Frosas\ElRoto\Cartoons; use Frosas\ElRoto\Cartoons\Cartoon\Page; class Cartoon { private $feedItem; private $page; function __construct(\SimpleXMLElement $feedItem) { $this->feedItem = $feedItem; $this->page = new Page($this->url()); } function url() ...
true
ef332564719d79beb9dd255532596b7715f3f61e
PHP
selamiphp/stdlib
/src/Arrays/TagAndAttributeRemover.php
UTF-8
4,994
2.75
3
[]
no_license
<?php declare(strict_types=1); namespace Selami\Stdlib\Arrays; use DOMAttr; use DOMDocument; use DOMElement; use DOMNamedNodeMap; use DOMNodeList; use function array_keys; use function count; use function explode; use function html_entity_decode; use function in_array; use function libxml_clear_errors; use function...
true
7d1c8cb39ee1016bfdd00998647c3a2c3b6bf4cb
PHP
padigan/XeroPoint
/Test/Control/TextBox.php
UTF-8
992
2.625
3
[]
no_license
<?php require_once 'PHPUnit\Framework\TestCase.php'; require_once 'XeroPoint.php'; class XeroPoint_Test_Control_TextBox extends XeroPoint_Test_Control_Abstract { /** * Prepares the environment before running a test. * */ protected function setUp() { parent::setUp (); $this->testObject = new ...
true
fac040ccf1671dbe9bd5b8d1e3153e2a77af19e0
PHP
szymon-osadowski/lpp
/src/Lpp/Service/BrandBetterServiceInterface.php
UTF-8
1,114
3
3
[]
no_license
<?php namespace Lpp\Service; use Lpp\Config\Config; /** * The implementation is responsible for resolving the id of the collection from the * given collection name. * * Second responsibility is to sort the returning result from the item service in whatever way. * * Please write in the case study's summary if ...
true
84fb303343b76e87233fce5dfb18593515ae5530
PHP
asawaswapnil/dbms
/php files/searchSupplier.php
UTF-8
1,574
2.625
3
[]
no_license
<!DOCTYPE html> <html> <head> <title>welcome</title> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" /> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bo...
true
ca2c4b9cca5059536dd9f16f59407fb2ac9458b3
PHP
felipeelia/wp-mvc
/core/models/mvc_database.php
UTF-8
1,052
2.765625
3
[ "MIT" ]
permissive
<?php class MvcDatabase { private $wpdb; private $debug = true; function __construct() { global $wpdb; $this->wpdb = $wpdb; $this->debug = MvcConfiguration::get( 'Debug' ); } public function get_results( $string, $output_type = OBJECT ) { $this->add_to_log( $string ); return $this->wpdb->get_results...
true
eedd28bc74cb7bf454223b73f248f387c4b6d738
PHP
quantruong298/ad-web
/app/Http/Middleware/CheckPDPermission.php
UTF-8
820
2.640625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Middleware; use App\Enum\UserRoles; use App\Services\ProductServices; use Closure; use Illuminate\Support\Facades\Auth; class CheckPDPermission { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixe...
true
798e8c8adfb037070ced6dd862ec9c373c08ae60
PHP
imsd-dev/Portal-de-Tramites
/admin/models/VotosModel.php
UTF-8
2,150
2.71875
3
[]
no_license
<?php /* * Creado por Ruth Escobar A. @2015 * Municipalidad de Peñalolén */ /** * Description of VotosModel * * @author Ruth Escobar A. */ class VotosModel extends Model { function __construct() { parent::__construct(); } function traeVotosPorUtilidad($voto, $fechas = null) { $be...
true
a215defbf0b123290954e4d47dbc931a2187b2a8
PHP
laurynasgadl/restponder-php
/src/ResponseContent.php
UTF-8
2,846
2.6875
3
[ "MIT" ]
permissive
<?php namespace Luur\Restponder; use Exception; use JsonSerializable; use Throwable; class ResponseContent implements JsonSerializable { use HasCustomHandlers; public const SUCCESS_FIELD = 'success'; public const RESULT_FIELD = 'result'; public const ERROR_FIELD = 'error'; public const M...
true
373c886ee1fbfdc4266037ff6f64dfb3ca48671f
PHP
AlexanderSilberman/PHPUnit-lab
/Tests/InputTest.php
UTF-8
607
2.53125
3
[]
no_license
<?php require_once __DIR__ . '/../classes/Input.php'; class InputTest extends PHPUnit_Framework_TestCase { public function test_input() { // Arrange $_GET['email']='dtang@usc.edu'; // Act $in=Input::get('email'); // Assert $test1='dtang@usc.edu'; $this->assertEquals($test1, $in);...
true
2944660bd14b3b193b816b2bcd79f2d6bd6279f2
PHP
maximosnava/web2entrega1
/models/Instrumentos_model.php
UTF-8
2,227
2.9375
3
[]
no_license
<?php class instrumentos_model { private $db; function __construct() { $this->db = new PDO('mysql:host=localhost;dbname=instrumento;charset=utf8', 'root', ''); } ////////////////////////PRODUCTOS////////////////////////////////////// function agregarProducto($instrumento){ $sentencia = $this->db->pre...
true
82563ec5057c874af5b92313ea1ae20e13715103
PHP
js-wei/Wechat
/ThinkPHP/Library/Vendor/Snake/CResponsePublishAD.php
UTF-8
1,605
2.796875
3
[ "Apache-2.0" ]
permissive
<?php /** * * User: snake * Date: 14-11-15 * Time: 下午5:24 */ class CResponsePublishAD { public $ADID; public $ResultID; public $ReasonMessage; public $buffer; function __construct() { } public function getBuffer() { return $this->buffer->getBuffer(); } p...
true
06acc512e4f13bd6fa921a48595af71919d286de
PHP
42coders/laravel-optimistic-locking
/src/OptimisticLocking.php
UTF-8
4,556
2.828125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace Reshadman\OptimisticLocking; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Model; trait OptimisticLocking { /** * Indicates that models uses locking or not? * * @var bool */ protected $lock = true; /** * Hooks model events to add lock...
true
967fe76161d68c4328ec2c461bfb4e314ec5048e
PHP
robertoAraneda/backend-sigaf
/app/Http/Controllers/CourseTutorController.php
UTF-8
4,971
2.65625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Helpers\MakeResponse; use App\Http\Resources\CourseTutorCollection; use App\Models\CourseTutor; use Illuminate\Http\Request; use Illuminate\Support\Facades\Validator; class CourseTutorController extends Controller { /** * *Property for make a response * @var App...
true
bf93ec69ddd41a310763ae664377362c6ab9c399
PHP
FoishaalAhmed/ecommerce
/app/Model/Faq.php
UTF-8
1,301
2.765625
3
[ "MIT" ]
permissive
<?php namespace App\Model; use Illuminate\Database\Eloquent\Model; use Session; class Faq extends Model { protected $fillable = [ 'title', 'text', ]; public static $validateRule = [ 'title' => 'required|string|max:255', 'text' => 'required|string', ]; public function sto...
true
4885be6dc5478577752b9431c3414663a9d7ab5f
PHP
fregster/PHPPasswords
/database/server_types/mysql.inc
UTF-8
2,233
2.640625
3
[]
no_license
<?php class Database_mysql extends Database { protected $escape_method = 'mysql_real_escape_string'; public function sql_select($fields = NULL, $table, $where_fields = NULL, $where_values = NULL, $order_fields = NULL, $order_directions = NULL, $FORCE_NO_CACHE = FALSE, $limit = NULL) { $id = $this->sql_id(); ...
true
b9dfd79be745489a1f45423f2056b32546b3c271
PHP
fervo/php-http-cache
/src/Akamai/AkamaiCCUv2Cache.php
UTF-8
2,052
2.515625
3
[]
no_license
<?php namespace PhpHttpCache\Akamai; use Akamai\Open\EdgeGrid\Client; use Akamai\Open\EdgeGrid\Exception as EdgeGridException; use GuzzleHttp\Exception\ClientException as GuzzleException; use PhpHttpCache\Common\Exception\ClientException; use PhpHttpCache\Common\Exception\ServerException; use PhpHttpCache\Common\Inte...
true
99c0528fa8c0fae78deb620a3f7ae7cdc3969637
PHP
rauloliveira15/negocio-certo
/index.php
UTF-8
2,556
2.703125
3
[]
no_license
<!-- Inclusão das páginas de cabeçalho e anuncio-util --> <?php include("cabecalho.php"); include("anuncio-util.php"); // Recebe por método GET um parametro enviado como verificação do cabecalho e abre um script com mensagem para o usuário if(isset($_GET['cod']) && $_GET['cod'] == 12){ echo ...
true
489a5cd82a8c482774b2e50809f1e6893895d6f0
PHP
BlackFoxgamingstudio/LampStack
/powersbroz.com1/powersbroz.com/html/pmanager/app/views/collections/project.members.html.php
UTF-8
1,050
2.734375
3
[]
no_license
<?php require_once '../../boot.php'; if (!isset($_GET['project'])) { echo 'No direct access'; exit; } else { $project = Project::find('id', $_GET['project']); $members = $project->members(); } ?> <h3>Team Members</h3> <?php if ($members) { ?> <ul class="list-unstyled list-inline"> <?php for ($...
true
488ade37c4436deb07bbe4dbe6d5400f20598018
PHP
ruanwenwu/larabbs
/app/Http/View/Composers/HeaderComposer.php
UTF-8
645
2.734375
3
[ "MIT" ]
permissive
<?php namespace App\Http\View\Composers; use Illuminate\View\View; use App\Models\Category; class HeaderComposer { /** * 实现 UserRepository * * @var UserRepository */ protected $users; /** * 创建一个新的 profile 合成器. * * @param UserRepository $users * @return void ...
true
9fdc715541387694dbc99729c663461d790a367e
PHP
bborealis/anagram
/app/app.php
UTF-8
687
2.53125
3
[ "MIT" ]
permissive
<?php require_once __DIR__."/../vendor/autoload.php"; require_once __DIR__."/../src/AnagramGenerator.php"; session_start(); $app = new Silex\Application(); $app->register(new Silex\Provider\TwigServiceProvider(), array("twig.path" => __DIR__."/../views")); $app->get("/", function() use ($app)...
true
cdc140476e5fd746dc01fdb35d849a8fc2dfc376
PHP
geometria-lab/ZF2Library
/library/GeometriaLab/Api/Mvc/Controller/Action/Params/Schema/Property/ArrayProperty.php
UTF-8
783
2.71875
3
[]
no_license
<?php namespace GeometriaLab\Api\Mvc\Controller\Action\Params\Schema\Property; use GeometriaLab\Model\Schema\Property\PropertyInterface as SchemaPropertyInterface; class ArrayProperty extends \GeometriaLab\Model\Schema\Property\ArrayProperty implements PropertyInterface { /** * @param SchemaPropertyInterfac...
true
a75e5d187cd3acbf9da0b74c1ca5bd8d69978667
PHP
ngodings/serkom
/application/controllers/Auth.php
UTF-8
3,706
2.5625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php defined('BASEPATH') or exit('No direct script access allowed'); class Auth extends CI_Controller { public function __construct() { parent::__construct(); $this->load->library('form_validation'); $this->load->model('User'); $this->load->database(); } public functio...
true
f1836c22e72b83021b2aeb323f6b25eb1c8696b0
PHP
littleblackman/P4_jean_forteroche
/controller/backend.php
UTF-8
4,005
2.546875
3
[]
no_license
<?php // backend controller require_once('model/PostManager.php'); require_once('model/CommentManager.php'); require_once("model/AdminManager.php"); function adminAuthentification($login, $password, $noAccess) { $adminManager = new AdminManager(); $admins = $adminManager->get_admins(); foreach ($admins as $value...
true
1676b40ceead36ee845fb981e6ff3a63eab82d9b
PHP
BGCX262/zweer-zend-svn-to-git
/trunk/application/models/Color.php
UTF-8
469
3.203125
3
[]
no_license
<?php class App_Model_Color { public function getRandomColor() { $R = mt_rand(0, 255); $G = mt_rand(0, 255); $B = mt_rand(0, 255); return $this->getHtmlColor($R, $G, $B); } public function getHtmlColor($R, $G, $B) { return '#' . $this->_getHex($R) . $this->_getHex($G) . $this->_getHex($...
true
531992339781a0d7ea7082c76839bc82dac5f941
PHP
ivarbergman/arcane
/src/orm/Relation.php
UTF-8
323
2.703125
3
[]
no_license
<?php namespace arcane\orm; class Relation { protected $lh; protected $op; protected $rh; public function __construct(Attribute $lh, $op, $rh) { $this->lh = $lh; $this->op = $op; $this->rh = $rh; } public function export() { return " {$this->lh->name()} {$this->op} {$this->rh}"; }...
true
fe644d784fc95a5bd84e847bf5c963927d662593
PHP
chekrafiq/Comparateur-de-mutuelle-sant--PHP-MySql
/_kernix_/modules/traffic/adm_safe/sub/graph_visitbyday.inc.php3
UTF-8
723
2.546875
3
[]
no_license
<?php $table_log = "log"; $p_nummonth += 0; $l_sql = "SELECT date_format(date,'%a %e') AS name, date_format(date,'%e') AS numday, count(idlog) AS nb FROM $table_log WHERE newvis = 1 AND date_format(date,'%c') = '$p_nummonth' AND date_format(date,'%Y') = '$p_year' GROUP BY name ORDER BY date"; $c_db->query($l_sql); ...
true
ad59a6c6eaa3827842f3cf5e66111c5edbc6cc7f
PHP
jorgeCabreraSanchez/TruekUp
/www/php/subirImagen.php
UTF-8
3,118
2.890625
3
[ "MIT" ]
permissive
<?php if (isset($_FILES["imagenPerfil"]["type"])) { $validextensions = array("jpeg", "jpg", "png","JPEG", "JPG", "PNG"); $temporary = explode(".", $_FILES["imagenPerfil"]["name"]); $file_extension = end($temporary); if (( ($_FILES["imagenPerfil"]["type"] == "image/png") || ...
true
de6a76164a829edd386e30260e745887063e6e51
PHP
insideone/pagywosg
/src/Controller/EventEntryController.php
UTF-8
5,656
2.59375
3
[]
no_license
<?php namespace App\Controller; use App\DBAL\Types\PlayStatusType; use App\Entity\Event; use App\Entity\EventEntry; use App\Framework\Controller\BaseController; use App\Security\Permission\EventEntryPermission; use App\Security\Permission\EventPermission; use Doctrine\DBAL\Exception\ForeignKeyConstraintViolationExcep...
true
f201474b5c6a4904a4a78821c92580b8068b5c7b
PHP
sredorta/ApiCM06
/app/Http/Controllers/BrandController.php
UTF-8
4,610
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Brand; use App\Attachment; use Validator; class BrandController extends Controller { private function outputBrand($brand) { //Dump all product with attachments $attachments = []; foreach ($brand->attachments()->wh...
true
c2805064cf42552c1fbea9125372fe2f19543d0e
PHP
mathfelicio/potential-robot
/app/Store/Classes/HtmlElements/Forms/TableForm.php
UTF-8
1,085
2.640625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Maheus Felicio * Date: 05/05/2016 * Time: 11:24 */ namespace Store\Classes\HtmlElements\Forms; use Store\Classes\HtmlElements\Inputs\ButtonTableInput; use Store\Classes\HtmlElements\Inputs\HiddenInput; use Store\Interfaces\IForm; use Store\Interfaces\IHtmlBuilder; class ...
true
c4bec081b453f806ecd33fa6f8769377bdc7ca7e
PHP
ilyaidea/ilya-CMS
/app/Library/DataTables/Buttons.php
UTF-8
3,705
2.84375
3
[]
no_license
<?php /** * Summary File Buttons * * Description File Buttons * * ILYA CMS Created by ILYA-IDEA Company. * @author Ali Mansoori * Date: 10/18/2018 * Time: 5:35 PM * @version 1.0.0 * @copyright Copyright (c) 2017-2018, ILYA-IDEA Company */ namespace Lib\DataTables; use Lib\DataTables\Buttons\Actions; use L...
true
fc7090ed1961e94c3eb00d090f79589632aedb6d
PHP
Iziasys/neva-import
/classes/Vehicle/OptionalRim.class.php
UTF-8
1,306
3.140625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: DECOCK Stéphane * Date: 19/01/2016 * Time: 10:49 */ namespace Vehicle; use Prices\Price; class OptionalRim extends RimModel { private $price; /*******************SETTERS & GETTERS*****************/ /** * @param Price $price */ public function s...
true
fc99308377b2e8c9c0fdc9fb3fbb4b3d1bb1132b
PHP
zlatkos94/battleship
/database/seeders/SoldierSeeder.php
UTF-8
689
2.609375
3
[]
no_license
<?php namespace Database\Seeders; use App\Models\Soldier; use Faker\Factory as Faker; use Illuminate\Database\Seeder; use Illuminate\Database\Eloquent\Factories\Factory; class SoldierSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { ...
true
cb8ee114ec85dabb7efac3944a1e7e8a4a3c8581
PHP
neonics/webtools
/lib/SQLAuthentication.php
UTF-8
5,241
2.796875
3
[]
no_license
<?php require_once __DIR__.'/Authentication.php'; require_once __DIR__.'/db/pdo.php'; /** * Implementation using SQL storage engine for IP/nonce and consumer token (consumer_key/consumer_secret) pairs. */ class SQLAuthentication extends Authentication { /** * Session table name: stores nonces. */ protected $ta...
true
855dbc8d5912a59973cde63e4de947a8c55ef73c
PHP
Janczur/MessengerBackend
/src/Messenger/Application/Query/User/UserView.php
UTF-8
874
3.03125
3
[]
no_license
<?php namespace App\Messenger\Application\Query\User; final class UserView { /** @var string */ private string $login; /** @var string */ private string $email; /** @var string|null */ private ?string $contactChannels; /** * UserView constructor. * @param string $login ...
true
f2a320f24931343f502e12807d64985bc9ea5c0a
PHP
Algo-Web/xsdTypes
/src/xsPositiveInteger.php
UTF-8
557
3
3
[]
no_license
<?php namespace AlgoWeb\xsdTypes; /** * The type xsd:positiveInteger represents an arbitrarily large-in-magnitude positive integer. An xsd:positiveInteger * is a sequence of digits, optionally preceded by a + sign. Leading zeros are permitted, but decimal points are not. * @package AlgoWeb\xsdTypes */ class xsPo...
true
a16116305f6941b4dd35f464cd6a2867eadbc725
PHP
mroffi13/dantechuser
/app/Http/Controllers/AuthController.php
UTF-8
2,945
2.609375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Models\User; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Hash; use Illuminate\Support\Str; class AuthController extends Controller { /** * Create a new controller instance. * * @return void */ ...
true
b1a3e27d805064837ee335c2a8649a4d3a78eeb1
PHP
WildRom/trader
/index.php
UTF-8
2,062
2.703125
3
[]
no_license
<?php ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); require_once 'inc/config.php'; require_once 'inc/funcs.inc.php'; if (!isset($_SESSION)) { session_start(); } $msg = []; if(isset($_POST['login'])) { //Login to game if (empty($_POST['user']) || empty($_POS...
true
40df3c525f3ac3c4ccbf29728837cf7f038ed5b8
PHP
leomoreirarv/orion
/webservice/Bd.php
UTF-8
970
3
3
[]
no_license
<?php class Bd { private $PASS_DB = "wDJsA7n#gSvU"; private $USER_DB = "orionind_ws"; private $HOST_DB = "localhost"; private $NAME_DB = "orionind_site"; public $conection = null; public function __construct(){ try{ $this->conection = new PDO( "mysql:host=".$this->HOST_DB.";d...
true
63b47e4e8c718f214cff3612c5cf3cb8c14391c6
PHP
lordazzi/site-hulagula-v1
/src/mirror/cache/html5/vantagens.php
UTF-8
471
2.59375
3
[ "MIT" ]
permissive
<?php if(!class_exists('raintpl')){exit;}?><?php $counter1=-1; if( isset($this->var['vantagens']) && is_array($this->var['vantagens']) && sizeof($this->var['vantagens']) ) foreach( $this->var['vantagens'] as $key1 => $value1 ){ $counter1++; ?> <div class="vantagem"> <img src="arquivo/foto_vantagens/<?php echo $value...
true
2ea94f4aa327683b3c2630f57e31180016ee6797
PHP
arnarfjodur/place-to-experiment-api
/src/Environment.php
UTF-8
1,715
2.984375
3
[ "MIT" ]
permissive
<?php namespace Karolina; Class Environment { private $loadedEnvVariables = array(); public $dotenv; public function __construct ($dotenv) { $this->dotenv = $dotenv; } public function loadEnvVariablesByHostname ($hostname) { $hostname = strtolower($hostname); try { $dsn = "mysql:host=".getenv(...
true
5570ebcb9f1ffd8fe18d794d684812ab4da719e3
PHP
chocofamilyme/pubsub
/src/PubSub/Services/EventCleaner.php
UTF-8
1,527
2.75
3
[]
no_license
<?php /** * @package Chocolife.me * @author Muratbekov Aibek <muratbekov.a@chocolife.kz> */ namespace Chocofamily\PubSub\Services; use Chocofamily\PubSub\Exceptions\ModelException; use Chocofamily\PubSub\Models\Event; use Phalcon\Mvc\Model\ManagerInterface; /** * Class EventCleaner * * @package Chocofamily\Pu...
true
c5baa063187ae49a1d801c6a50c3bb277704b6ef
PHP
gaotiefeng/ttnote
/docs/language/php/app/Design/Behavioral/NullObject/NullLogger.php
UTF-8
191
2.609375
3
[]
no_license
<?php declare(strict_types=1); namespace App\Design\Behavioral\NullObject; class NullLogger implements LoggerInterface { public function log(string $str) { } }
true
d1602fcd60d092d11e5d6214a3f946b0d2cb27f9
PHP
tcavery/electr
/public/register.php
UTF-8
1,628
2.9375
3
[]
no_license
<?php // configuration require("../includes/config.php"); // if user reached page via GET if ($_SERVER["REQUEST_METHOD"] == "GET") { // else render form render("register_form.php", ["title" => "Register"]); } // else if user reached page via POST else if ($_SERVER["REQ...
true
526c292b1cd8017d5fa96786f2b8a675d7e3eb6c
PHP
mariosmikroulis/portfolio
/PHP/system/finalAPI/postEmails.php
UTF-8
2,895
3.015625
3
[ "Apache-2.0" ]
permissive
<?php class postEmails extends MonoBehaviour { private $expireDateTime = 0; private $emailList = []; private $dbTableName = "emailPosting"; public function __construct() { parent::__construct(); $this->start(); } private function start() { $this...
true
0b66a642ebb14d88afe48a5f5157ab6dde8f5bad
PHP
pablobolanos01/php_eclipse
/index2-2.php
UTF-8
886
2.984375
3
[]
no_license
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>INDEX 1</title> <style> input[type=text], input[type=submit], select{ text-align:center; border-radius:10px; border;1px solid #39c; } </style> </head> <body> <h3>ax+b=0</...
true
557ffa983df4f42a2910f050a022f2416fae13fa
PHP
Rileywon/thang
/src/DataFixtures/StudentFixtures.php
UTF-8
563
2.546875
3
[]
no_license
<?php namespace App\DataFixtures; use App\Entity\Student; use Doctrine\Persistence\ObjectManager; use Doctrine\Bundle\FixturesBundle\Fixture; class StudentFixtures extends Fixture { public function load(ObjectManager $manager) { for ($i = 1; $i <= 10; $i++) { $student = new Student(); ...
true
690c6f2208aa6d65f78c2d5be29e0531aff14029
PHP
NastyJack/WTLAB2_SOL
/s01/s.php
UTF-8
1,160
2.796875
3
[]
no_license
<style> table{ border-collapse: collapse; } tr,td,th{ width:30px; border:1px solid black; padding:10px; } </style> <?php $con=mysqli_connect("localhost","root","","test1"); // Check connection if (mysqli_connect_errno()) ...
true
90130416699d33576a88b45623ae62c4df184c59
PHP
yang-new/realtimewebapps
/exercises/ch02/04.php
UTF-8
1,330
2.515625
3
[ "MIT" ]
permissive
<?php // Set the timezone and generate two formatted date strings date_default_timezone_set('US/Pacific'); $datetime = date('c'); $date_fmt = date('F d, Y'); ?> <!doctype html> <html lang="en"> <head> <meta charset="utf-8" /> <title>Realtime Web Apps &ndash; Exercise 02-03</title>...
true
01d5ea505cf73008dd96442ae6523f2141227c41
PHP
Juterpillar/artprints
/classes/uploadClass.php
UTF-8
2,859
3.546875
4
[]
no_license
<?php // This class contains the method to upload an image file and any other type of file class Upload { private $fileName; // name of the file from the upload form private $fileTypes=array(); // array of valid file types for upload private $folderPath; // folder where uploaded files will be moved public $msg...
true
8ca2766eaea3b1b4283c68ece2390c9243b5fb50
PHP
68publishers/poi-bundle
/src/Attribute/ModifiableAttribute.php
UTF-8
1,640
2.8125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace SixtyEightPublishers\PoiBundle\Attribute; use SixtyEightPublishers\PoiBundle\Attribute\Value\ValueCollectionInterface; final class ModifiableAttribute extends AbstractAttributeDecorator { public const MODIFIER_GET_VALUE = 'getValue'; public const MODIFIER_SET_VALUE = 'setV...
true
7878943cd70787597ff3b02abb91a22bcced2a1b
PHP
roniomondal/Resturant-API
/database/migrations/2016_12_16_101331_create_charges_table.php
UTF-8
728
2.53125
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateChargesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { // Schema::create('char...
true
42a6b3b36d53ebc23f7d2fad5aba24fe6cce3488
PHP
SnehaKannan114/PROMAS
/php/fileHandler.php
UTF-8
4,824
2.84375
3
[]
no_license
<?php session_start(); $target_dir = "../uploads/"; $target_file = $target_dir . basename(preg_replace('/\s+/', '_', $_FILES["fileToUpload"]["name"])); $uploadOk = 1; $imageFileType = pathinfo($target_file,PATHINFO_EXTENSION); // Check if image file is a actual image or fake image if(isset($_POST["submit"])) { $ch...
true
41ddb2215d764ffb98f6dec7d880009629d914ed
PHP
wentaotest/weixin_api
/apps/services/UtilService.php
UTF-8
3,559
2.578125
3
[]
no_license
<?php namespace June\apps\services; class UtilService { static private $_inst; static public function getInstance() { if (empty(self::$_inst)) { self::$_inst = new UtilService(); } return self::$_inst; } /** * 根据配置上传文件 * * @param array $file 全局变量$_FILES * @return mixed $fid 文件存储路径 * * @au...
true