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
8e74ecf93af4878baaeb89bb111dbd53dd8dffb2
PHP
sprguillen/gym-system
/application/controllers/Members_Controller.php
UTF-8
29,670
2.640625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /** * Members Class * * @author Nikki <monique.dingding@gmail.com> * Created on March 16, 2018 */ class Members_Controller extends CI_Controller { public function __construct() { parent::__construct(); $this->membership_types = ['active...
true
ad177211b27b1ce0ed1812f9751820457b071b28
PHP
lennonalvesdias/la-marvel-shortcode
/la-marvel-shortcode.php
UTF-8
5,724
2.53125
3
[]
no_license
<?php //documentacao de criacao de plugin //https://codex.wordpress.org/pt-br:Escrevendo_um_Plugin //bloquear acesso direto defined( 'ABSPATH' ) or die( 'No script kiddies please!' ); /* Plugin Name: Marvel Shortcode by Lennon Alves Description: Plugin criado com integração à Marvel API. Consulte a URL do plug...
true
7244af8824151749710a851742c4bceef6f28cfd
PHP
fan-tak-sato/programming-exercises
/php/spl/splobjectstorage/detach_object.php
UTF-8
607
3.046875
3
[]
no_license
<?php class StorageTest { private $title; public function __construct($title) { $this->title = $title; } public function __toString() { return $this->title; } } $storage = new SplObjectStorage(); $obj = new StorageTest( "eide.org" ); $storage->attach( $obj ); if( $storage->...
true
3d022d271f77939920f7858462b8944bef018d6f
PHP
SkysoulDesign/mirage.dev
/app/Jobs/Products/Extras/CreateExtraJob.php
UTF-8
2,002
2.671875
3
[ "MIT" ]
permissive
<?php namespace App\Jobs\Products\Extras; use App\Events\ExtraWasCreated; use App\Jobs\Job; use App\Models\Extra; use App\Models\Product; use Symfony\Component\HttpFoundation\File\UploadedFile; class CreateExtraJob extends Job { /** * @var Product */ private $product; /** * @var array ...
true
c930ef056e4248969006783bf8271deca6d30138
PHP
fmanda/InventoryApp
/server/src/models/ModelTransHeader.php
UTF-8
1,696
2.671875
3
[]
no_license
<?php require_once '../src/models/BaseModel.php'; class ModelTransHeader extends BaseModel{ public static function getFields(){ return array( "transno", "transdate", "header_flag", "warehouse_id", "dest_warehouse_id", "notes" ); } public static function saveToDB($obj){ $db = new DB(); $db = $d...
true
ae236fd90ccaf5b541aabfbbaae3dafb7d3fe872
PHP
matthiasnoback/the-page-class
/public/mysql.php
UTF-8
5,761
2.78125
3
[ "MIT" ]
permissive
<?php use Doctrine\DBAL\Connection; use Doctrine\DBAL\DBALException; use Doctrine\DBAL\Driver\Statement; use Doctrine\DBAL\DriverManager; use Doctrine\DBAL\Schema\Schema; use Doctrine\DBAL\Schema\Synchronizer\SingleDatabaseSynchronizer; class ConnectionSingleton { /** * @var ConnectionSingleton|null */ ...
true
47c1d78d1583413b8c0f7d84aa49a0749c760b2c
PHP
dynamicpdf-api/php-client
/src/CmykColor.php
UTF-8
1,524
3.296875
3
[ "MIT" ]
permissive
<?php namespace DynamicPDF\Api; include_once __DIR__ . '/Color.php'; /** * * Represents a CMYK color. * */ class CmykColor extends Color { private $cyan = 0; private $magenta = 0; private $yellow = 0; private $black = 0; /** * * Initializes a new instance of the...
true
3a2215d2df659f4f3043836861fe4103e6d12249
PHP
K2D-Group/ekursy-website
/app/Helpers/HelperClasses/ParsedownExtraExtended.php
UTF-8
4,675
2.6875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: kduma * Date: 02/03/15 * Time: 02:08 */ namespace App\Helpers\HelperClasses; use ParsedownExtra; class ParsedownExtraExtended extends ParsedownExtra { /** * @var bool */ private $pdf; function __construct($pdf = false) { parent::__con...
true
79ce6be136f3c9e3c2735d9b56d71d6899be9c4c
PHP
gloomyline/one-pieces
/stage-loan/php/wkdk/common/services/RedisService.php
UTF-8
1,732
2.90625
3
[ "Unlicense", "BSD-3-Clause" ]
permissive
<?php namespace common\services; use Yii; class RedisService { const SETTLED_PREFIX = 'settled_'; // 商家入驻前缀 设置key值前缀 const SHOP_PREFIX = 'shop_'; // 商家锁 /** * 获取key值 * @param string $key 键名称 * @return string|boolean 返回键对应的值,无键值时返回false */ public static function getKey($key) { ...
true
ec6ab380f6881bc947f882626369b1818dab96df
PHP
topechelon/wpRedisPageCache
/.tests/lib/cache_decorator_Test.php
UTF-8
2,304
2.65625
3
[]
no_license
<?php namespace RedisPageCache; require_once ("lib/cache.php"); require_once ("lib/redis_cache.php"); require_once ("lib/cache_decorator.php"); class MockCacheDecorator extends CacheDecorator {} class CacheDecoratorTest extends \PHPUnit_Framework_TestCase { function setup() { $this->key = '1234'; $this->value...
true
f1eaf6822b05b338a16c89531053387fcc9a51eb
PHP
omartypo3/projectTypo3
/pingag_thurcom/Classes/Domain/Model/ProductInterface.php
UTF-8
274
2.640625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Cyrill Gsell * Date: 11.09.2017 * Time: 10:00 */ namespace Pingag\PingagThurcom\Domain\Model; interface ProductInterface { /** @var string */ public function getTitle(); /** @var int */ public function getPrice(); }
true
3875ff07f5b9aa31ca524007547e69b3132fcdf4
PHP
mhackyu/Shout
/src/AppBundle/Controller/QuoteController.php
UTF-8
2,008
2.640625
3
[]
no_license
<?php namespace AppBundle\Controller; use AppBundle\Entity\Quote; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Response; /** * Class QuoteController * Controller used to manage quotes. * @author Mark Chri...
true
524529fb5c91eb0ea022cc24862d87822bc33b9a
PHP
yingzhoukeji/Sewingmachine
/admin/admin_list.php
UTF-8
1,296
2.78125
3
[]
no_license
<?php //登入后访问 session_start(); header("Content-type:text/html;charset=UTF-8"); //检测是否登录,若没登录则转向登录界面 if(!isset($_SESSION['uid'])){ header("Location:login.html"); exit(); } include 'conn.php'; // 总记录数 $sql = "SELECT uid FROM qb_members"; $totalnums = totalnums($sql); // 每页显示条数 $fnum = 30; // 翻页数 $pagenum = c...
true
629ff1ab6d40b3a981c74665af4eb0e70ea0aba2
PHP
KaloyanYosifov/jack-compiler
/src/CompileEngine/Compilations/VarDecCompilation.php
UTF-8
1,255
2.578125
3
[]
no_license
<?php namespace JackCompiler\CompileEngine\Compilations; use JackCompiler\Tokenizer\TokenType; use JackCompiler\Tokenizer\TokenizedData; use JackCompiler\CompileEngine\CompilationType; use JackCompiler\CompileEngine\ComplexCompiledData; use JackCompiler\CompileEngine\CompilationTokenExpector; class VarDecCompilation...
true
91509fe6687a79825175bbf96c32c0f441fa4a63
PHP
lurb3/CounterApp
/api/saveTime/saveTime.php
UTF-8
949
2.84375
3
[]
no_license
<?php require_once("../common/connectDB.php"); saveData($conn); function saveData($connection) { $time = $_POST['time']; $user = $_POST['user']; if(isset($_POST['categories'])) { $categories = $_POST['categories']; } if(isset($_POST['subject'])) { $subject = $_POST['subject']; } if(isset($categories)) {...
true
3dde17799ee841b61a737dbb7def123409339551
PHP
psrearick/core
/Model.php
UTF-8
4,604
3.046875
3
[]
no_license
<?php namespace core; abstract class Model { public const RULE_REQ = 'required'; public const RULE_EMAIL = 'email'; public const RULE_MIN = 'min'; public const RULE_MAX = 'max'; public const RULE_MATCH = 'match'; public const RULE_UNIQUE = 'unique'; /** * @return Model */ ...
true
9b2749d2693dc72080065fab6b57ed8225ca19a6
PHP
AadamAli13/Frontend-database-display
/listNames.php
UTF-8
669
2.65625
3
[]
no_license
<?php include'connectdb.php'; ?> <?php $qu = $_POST["q"]; $query = "SELECT firstName, lastName, products.description, quantityPurchased.quantitySold FROM customers LEFT JOIN quantityPurchased ON customers.customerID = quantityPurchased.customerID LEFT JOIN products ON quantityPurchased.productID = products...
true
04f7753f840ab230c7345846b4c4b628b44a8693
PHP
asifmostofa18/learning-web-technologies-spring-2020-2021-sec-d
/MID_LAB_TASK_PHP_04/task6.php
UTF-8
303
2.828125
3
[]
no_license
<?php $universities = array('BUET', 'KUET', 'SUST', 'NSU', 'AIUB'); $searchItem = 'AIUB'; foreach($universities as $university) { if($university === $searchItem) { echo $university." Congrats!!!!!!!! You have got your desire search Item"; } } ?>
true
f037c5945d1a52f538e5125f70931d87fe8ced9f
PHP
staskosatkin/url-shortener
/app/Services/User.php
UTF-8
706
2.828125
3
[ "MIT" ]
permissive
<?php namespace App\Services; use App\Contracts\TokenService; use App\Contracts\UserService; use App\User as UserModel; class User implements UserService { private TokenService $tokenService; /** * User constructor. * @param TokenService $tokenService */ public function __construct(TokenS...
true
89406bfa2c5b8d5b33c209a4508a60fac7b9d7fd
PHP
iamhomesh/hotel-reservation-system
/classes/Room.php
UTF-8
3,512
2.90625
3
[]
no_license
<?php require_once __DIR__ . '/Database.php'; class Room { private $conn; public function __construct() { $db = new Database(); $this->conn = $db->getConnection(); } public function getRoomNo($roomId) { $query = "SELECT `room_no` FROM `rooms` WHERE `id` = ?"; ...
true
7c9735d38d19e4bc2c6a7835ac37259edd4ea304
PHP
NikolayMurha/php-console-spinner
/tests/Unit/StripTest.php
UTF-8
1,658
2.609375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace AlecRabbit\Tests\Tools; use AlecRabbit\Spinner\Core\Strip; use PHPUnit\Framework\TestCase; class StripTest extends TestCase { /** * @test * @dataProvider valuesDataProvider * @param string $expected * @param string $given */ public function v...
true
7e62d8dda4f353be08e712f3a50eb3c0ad56ed19
PHP
josephdalughut/laravel-portfolio
/app/Meta.php
UTF-8
708
2.828125
3
[ "Apache-2.0" ]
permissive
<?php namespace App; use App\Scopes\EnabledScope; use Illuminate\Database\Eloquent\Model; /** * Represents meta-data for portfolio page * e.g Title, Description, etc * * Class Meta * @package App */ class Meta extends Model { // override boot so we can install scopes and other stuff protected static f...
true
26607952a513e89323021f121e2161c59b98793a
PHP
marektichy/solr-relevancy-tuner
/proxy/vendor/solarium/solarium/src/QueryType/Server/Collections/Query/Action/AbstractCDRAction.php
UTF-8
733
2.765625
3
[ "MIT", "BSD-2-Clause-Views" ]
permissive
<?php namespace Solarium\QueryType\Server\Collections\Query\Action; use Solarium\QueryType\Server\Query\Action\AbstractAsyncAction; /** * Abstract class for Create, Delete and Reload actions. */ abstract class AbstractCDRAction extends AbstractAsyncAction { /** * Set the name of the collection. This param...
true
0226013828b6a7a4d591af0ddf651e5ce31b6cdd
PHP
neatlife/moonphp
/moon/com/test/pagination_test.php
UTF-8
430
2.546875
3
[]
no_license
<?php require dirname(__dir__) . DIRECTORY_SEPARATOR . 'Pagination.php'; use moon\com\Pagination; class PaginationTest extends PHPUnit_Framework_TestCase { private $page = null; public function SetUp() { $this->page = new Pagination(2, 4, 20, 'http://a.com/index.php?page='); } public function testPage() { ...
true
6d33f1dd1358214da70a7b9d06244c87d9f62ad8
PHP
oussemos/demande.tn
/lib/minz/Url.php
UTF-8
3,340
3.078125
3
[]
no_license
<?php /** * La classe Url permet de gérer les URL à travers MINZ */ class Url { /** * Affiche une Url formatée selon que l'on utilise l'url_rewriting ou non * si oui, on cherche dans la table de routage la correspondance pour formater * @param $url l'url à formater définie comme un tableau : * ...
true
1031d9bbee9bcb27b1a45d4e149935ba3498f5e5
PHP
Kamelgasmi/TITRE-PRO-ASSIYA-COIFFURE
/controllers/page_products_controller.php
UTF-8
1,016
2.90625
3
[]
no_license
<?php //j'instancie un nouvel objet products $products = new products(); //j'instancie un nouvel objet categories $categories = new categories(); //si on recupere la catégorie en GET if(isset($_GET['categorie'])){ //j'hydrate (donne une valeur à l'attribut) $categories->simplifiedName = htmlspecialchars($_GET[...
true
2f7c205d5aac254aa85cfbcbaa6107732d1903ea
PHP
noxzemart/rt-instagram-sdk-php
/src/API/Response/BlockFriendshipResponse.php
UTF-8
558
2.640625
3
[ "LicenseRef-scancode-warranty-disclaimer", "MIT" ]
permissive
<?php namespace Instagram\API\Response; class BlockFriendshipResponse extends BaseResponse { /** * Friendship Status * @var Model\FriendshipStatus */ protected $friendship_status; /** * @return Model\FriendshipStatus */ public function getFriendshipStatus() { ret...
true
094ecafc1ae394146643c6372fb9018ffc53abcb
PHP
Shofiul-Alam/magento-app
/src/vendor/magento/module-search/Model/Autocomplete.php
UTF-8
758
2.71875
3
[ "LicenseRef-scancode-unknown-license-reference", "AFL-2.1", "AFL-3.0", "OSL-3.0", "MIT" ]
permissive
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Search\Model; class Autocomplete implements AutocompleteInterface { /** * @var Autocomplete\DataProviderInterface[] */ private $dataProviders; /** * @param array $dataPr...
true
ab0404c7ad3b18579e7529c4832c5cb1112ce7f7
PHP
Magali-Rezeau/Project5-OPC-blog
/App/Model/User.php
UTF-8
1,566
2.875
3
[]
no_license
<?php namespace App\Model; class User { private $id_user; private $pseudo; private $email; private $password; private $create_date; private $role; private $profile_picture; public function __get($get) { $method = 'get'.ucfirst($get); $this->$get = $this->$meth...
true
7c0d155c4740f4634d40d3b33917a15f7e8e127b
PHP
bkfrye/Locus
/src/plugins/wp-smushit/core/class-installer.php
UTF-8
5,736
2.546875
3
[ "MIT", "GPL-2.0-only" ]
permissive
<?php /** * Smush installer (update/upgrade procedures): Installer class * * @package Smush\Core * @since 2.8.0 * * @author Anton Vanyukov <anton@incsub.com> * * @copyright (c) 2018, Incsub (http://incsub.com) */ namespace Smush\Core; use WP_Smush; if ( ! defined( 'WPINC' ) ) { die; } /** * Class Install...
true
de25c9f838b55afca3d5a97c1c66b9010b815d1e
PHP
moko-se/app-cakephp
/src/Model/Table/UsersTable.php
UTF-8
614
2.53125
3
[]
no_license
<?php //UsersTable.php namespace App\Model\Table; use Cake\ORM\Table; use Cake\Validation\Validator; class UsersTable extends Table{ public function initialize(array $config) :void{ $this->addBehavior('Timestamp'); $this->hasMany('Spas', ['foreignKey' => 'user_id']); } public function validationDefault(Valid...
true
b3fe3ec485943f60643ca1ea94137c9804b5e5fe
PHP
nurisarahmi28/modul1-2-PHP
/Latihan2 -2.php
UTF-8
444
3.75
4
[]
no_license
<?php $x=8; $y=5; echo "<h3> Hasil Operasi Menggunakan Operator Perbandingan</h3>"; echo "x = $x <br>"; echo "y = $y <br>"; if ($x == $y){ echo "x sama dengan y"; } else if ($x != $y) { echo "x tidak sama dengan y"; //jika percabangan if maka akan dimunculkan...
true
d419dee923085f2a7a855d80d77cd0963a021874
PHP
brodaproject/broda
/src/Broda/Util/Masker.php
UTF-8
4,411
3.09375
3
[]
no_license
<?php namespace Broda\Util; /** * Classe FileUtils * * @author Raphael Hardt <raphael.hardt@gmail.com> */ class Masker { protected static $wildcards = array( 'number' => '9', 'alpha' => 'A', 'any' => '#' ); protected static $escape_char = '$'; private function __construct...
true
84bc80a557b78dc3c56ac1653fde81cd6d7bf1b0
PHP
wmouwen/advent-of-code
/2017/21/solution.php
UTF-8
3,908
3.21875
3
[]
no_license
<?php function transpose(array $input): array { $output = []; for ($y = 0; $y < count($input); $y++) { for ($x = 0; $x < count($input[$y]); $x++) { $output[$x][$y] = $input[$y][$x]; } } return $output; } class Rule { private $horizontal = ''; private $vertical = ''...
true
17618b7b62eb06d15d84063f54bbf1eadd798394
PHP
louiss0/blog-api
/src/interfaces/IAuthValidator.php
UTF-8
533
2.546875
3
[]
no_license
<?php namespace Src\Interfaces; use Psr\Http\Message\ServerRequestInterface; interface IAuthValidator { function validateEmailAndPassword(ServerRequestInterface $request): void; function validateEmail(ServerRequestInterface $request): void; function validateNameEmailAndPassword(ServerRequestInterface...
true
8b37565bfa82d096a764e9c7d30b6aca9c61d48f
PHP
emiliopedrollo/yeelight-api-client
/tests/Bulb/BulbFactoryTest.php
UTF-8
1,253
2.65625
3
[ "MIT" ]
permissive
<?php namespace tests\Bulb; use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\TestCase; use Prophecy\Prophet; use Socket\Raw\Factory; use Socket\Raw\Socket; use Yeelight\Bulb\BulbFactory; /** * @property MockObject|Factory socketFactory * @property MockObject|Socket socket * @property BulbFactor...
true
78864ab33a75cfdd645ddfeee807307d692d526f
PHP
aishmurodov/mrocket-simple-integration
/src/MrocketSimpleIntegration/Helpers/WidgetConfig.php
UTF-8
1,503
2.859375
3
[]
no_license
<?php namespace Aishmurodov\MrocketSimpleIntegration\Helpers; use Aishmurodov\MrocketSimpleIntegration\Interfaces\WidgetConfigInterface; use Exception; class WidgetConfig implements WidgetConfigInterface { private array $widget; /** * @throws Exception */ public function __construct($widget) ...
true
6ceff45888a4ac6286f162bf899f018b99be83ae
PHP
jatinthapar1910/walmart-api
/src/Domain/Marketplace/Orders/Models/Phone.php
UTF-8
845
2.515625
3
[ "MIT" ]
permissive
<?php namespace EolabsIo\WalmartApi\Domain\Marketplace\Orders\Models; use EolabsIo\WalmartApi\Database\Factories\PhoneFactory; use EolabsIo\WalmartApi\Domain\Marketplace\Shared\Models\WalmartModel; class Phone extends WalmartModel { /** * The attributes that are mass assignable. * * @var array ...
true
ce1c96b0d5ef4bc57a71cead252860d5a57dcff3
PHP
francis-ng/personal-site
/tex/register.php
UTF-8
6,716
2.578125
3
[]
no_license
<?php session_start(); $session = $_SESSION['status']; $userinfo = $_COOKIE['TextExchange']; include 'dbconnect.php'; show_header(); if (isset($_POST['register'])): $id = $_POST['id']; $password = $_POST['password']; $email = $_POST['email']; $ans1 = $_POST['...
true
011cfbaac88bae90f415b963ddbe127b97b95874
PHP
Shazzad0407/UIU-Communication-System
/uiuStudentCommunicationMedium/template/postByCourse.php
UTF-8
2,240
2.59375
3
[]
no_license
<?php include("includes/connection.php"); $catG = array(); $count=0; foreach($_POST['language2'] as $cat){ $catG[] = $cat; $count++; } // finding which which courses selected $q ="WHERE"; //$i=0; for($i=0; $i<$count-1; $i++){ $p= " courseId = '$catG[$i]' OR"; $q = $q.$p; } ...
true
e865dbdc5775f61726fe95698e490750ccf06398
PHP
xiangxiang0826/phpunit
/library/Cms/Sort.php
UTF-8
513
2.953125
3
[]
no_license
<?php /** * Sort * * @author Liujd */ class Cms_Sort { public static function key_sort($toHandler,$sort_key,$sort = 'ASC') { $finSort = array(); $toSort = array(); foreach($toHandler as $key => $value){ if(!isset($value[$sort_key])){ return $toHandler; }else{ $toSort[$key] = $value[$sort_ke...
true
a6c3698123f67cb857c01c1fcd0ba0c927f6a4fe
PHP
webwiebe/pizza
/src/Repository/OrderStorageInterface.php
UTF-8
237
2.78125
3
[]
no_license
<?php namespace App\Repository; use App\Entity\PizzaOrder; interface OrderStorageInterface { public function save(PizzaOrder $order): void; /** * @return PizzaOrder[] */ public function getAllOrders(): ?array; }
true
fbc1783f0d22d5c472a3bf73f16bd19530f0a047
PHP
netsnatch/api-client
/src/Transport/Request.php
UTF-8
3,989
3.046875
3
[ "BSD-2-Clause" ]
permissive
<?php namespace BaseApiClient\Transport; use BaseApiClient\HttpClient\Curl; use BaseApiClient\Exceptions\ApiException; class Request { /** * Host to make the calls to * * @var string */ private $host; /** * Instance of the Http client class * * @var \BaseApiClient\Http...
true
ef8bfadd907b31bc8330ce14a6f6f49befab64db
PHP
magnogrande/curso-php7
/DIR/exemplo-01.php
UTF-8
342
3.15625
3
[]
no_license
<?php // Manipulando arquivos e diretórios $name = "imagens"; if (!is_dir("imagens")) { # code... // Criando diretório mkdir("imagens"); echo "Já existe o diretório $name, criado com sucesso"; } else { // Removendo diretório rmdir("imagens"); echo "Já existe o diretório: $name. Mas já foi...
true
e23df747ad341603ed138deac72d273ddd94fd0a
PHP
farz1212/HomeChefs
/PHP_files/db_function.php
UTF-8
3,597
3.125
3
[]
no_license
<?php class DB_Functions{ private $conn; function __construct(){ require_once 'db_connect.php'; $db = new DB_CONNECT(); $this->conn = $db->connect(); } function __destruct(){ } //store new user //return user details public function storeUser($username,$gender,$email,$phone,$password){ $uuid = uniqid(...
true
dec8c934a7b7394abe9a3830c21c6c8632355562
PHP
beest/silextension
/src/Silextension/Provider/Doctrine/EntityManagerFactory.php
UTF-8
3,025
2.640625
3
[]
no_license
<?php namespace Silextension\Provider\Doctrine; use Doctrine\Common\Cache\Cache; use Doctrine\ORM\Mapping\Driver\AnnotationDriver; use Doctrine\DBAL\Connection; use Doctrine\ORM\Configuration; use Doctrine\ORM\EntityManager; class EntityManagerFactory { /** * Create a Doctrine entity manager Configuration o...
true
3cd58dc5cf87baadc4d6580285a7cbd1b0153fd4
PHP
vasyldutchak/test_task
/persons/index.php
UTF-8
582
3.046875
3
[]
no_license
<?php require_once "showOlders.php"; echo "Please, enter age [1-20]"; $handle = fopen("php://stdin", "r"); $age = (int)fgets($handle); fclose($handle); $ageToUnixTime = strtotime("-$age year"); $result = []; foreach ($data as $key) { $birthday = $key->getBirthday(); if ($birthday < $ageToUnixTime) ...
true
3248e89068c2fcd9dcf57bfe82245f3bc041b50d
PHP
sdrobov/vb5_url_fixer
/src/BaseModel.php
UTF-8
1,316
2.96875
3
[]
no_license
<?php namespace Vb5UrlFixer; abstract class BaseModel { /** * @var array */ protected $data; /** * @var array */ protected $toUpdate = []; /** * BaseModel constructor. * * @param array $data */ public function __construct(array $data = []) { ...
true
656b93f1457182b298a0b018268091e8a5686c3f
PHP
dayars45/my212_mart
/lib/sql/user_action.php
UTF-8
7,222
3.015625
3
[]
no_license
<?php // we will get actions from the app to do operations in the database... //$action = $_GET["action"]; //$servername = "127.0.0.1:3306"; //$dbname = "db_my212_mart"; $servername = "localhost";//"34.101.215.82:3306"; $username = "dayars45"; $password = "dayars45"; $dbname = "my212mart"; ...
true
c6507367c43ad425fdd66c0bf4e737a985e187a2
PHP
motobreath/UC-Merced-Template-V2
/module/Application/src/Application/View/Helper/LoginMenu.php
UTF-8
1,262
2.71875
3
[]
no_license
<?php namespace Application\View\Helper; use Zend\View\Helper\AbstractHelper; class LoginMenu extends AbstractHelper { /** * @var \Zend\ServiceManager\ServiceManager */ protected $sm; public function __construct($sm){ $this->sm = $sm; } public function __invoke() { ...
true
bf6d8b2958ec8c357bcb364192e7590df730ebe5
PHP
commercetools/commercetools-php-sdk
/src/Core/Request/Stores/Command/StoreChangeProductSelectionAction.php
UTF-8
1,740
2.59375
3
[ "MIT" ]
permissive
<?php namespace Commercetools\Core\Request\Stores\Command; use Commercetools\Core\Model\Common\Context; use Commercetools\Core\Model\ProductSelection\ProductSelectionReference; use Commercetools\Core\Model\Store\ProductSelectionSetting; use Commercetools\Core\Request\AbstractAction; /** * @package Commercetools\Cor...
true
4195310350240d795799f0f4e129d505249e11d7
PHP
tiagodavi/assando-sites.com.br
/models/lesson.php
UTF-8
464
2.515625
3
[]
no_license
<?php /** * Model de auals * * @author Thiago Belem <contato@thiagobelem.net> * * @package AssandoSites * @subpackage Model */ /** * Model de aulas */ class Lesson extends AppModel { /** * Campo título * * @var string */ public $displayField = 'title'; /** * Ordem padrão * * @var ...
true
e52072902b9e7cc2647164ac50e5e2d88b5cd2d3
PHP
ilenortx/MicroMail
/app/controllers/api/ApisearchController.php
UTF-8
818
2.546875
3
[]
no_license
<?php /** * 搜索接口 * @author xiao * */ class ApisearchController extends ApiBase{ public function indexAction(){ if ($this->request->isPost()){ $code = isset($_POST['code']) ? $_POST['code'] : ''; $shopId = isset($_POST['shop_id']) ? intval($_POST['shop_id']) : ''; if (!$code){ echo json_enco...
true
4f4d130d74d417eedd9917b824c3011fc38825bb
PHP
eiwuert/Myrepo
/vendorapi_www_root/vendorapi_staging/releases/RELEASE_20100624/commercial.vendorapi.edataserver.com/code/VendorAPI/QualifyInfo.php
UTF-8
2,879
2.984375
3
[]
no_license
<?php /** * Loan financing information, such as APR, due date, etc. * * @author Andrew Minerd <andrew.minerd@sellingsource.com> */ class VendorAPI_QualifyInfo { /** * @var int */ protected $max_loan_amount; /** * @var int */ protected $loan_amount; /** * @var float */ protected $apr; /** * ...
true
83e4a9746c96ad97be9e9af2e85dd4aefb49348a
PHP
Konstanta100/ecosystem
/src/Entity/Board.php
UTF-8
2,575
3.15625
3
[]
no_license
<?php declare(strict_types=1); namespace Ecosystem\Entity; use Ecosystem\Dto\Cell; class Board { /** * @var array */ private $list_cell; /** * @var int */ private $horizontal_size_side; /** * @var int */ private $vertical_size_side; public function __cons...
true
4717943cb40eaafdc60aae7c972b829cc7f5ca25
PHP
hubin88/myProject
/PHP/登录/index.php
UTF-8
1,820
2.796875
3
[]
no_license
<?php session_start(); header("Content-type:text/html;charset=utf-8"); $servername = "localhost"; $user = "root"; $pwd = "root"; // 创建连接 $conn = mysql_connect($servername, $user, $pwd); // 检测连接 if (!$conn) { die("连接失败: " . mysql_error()); } mysql_query("set names 'utf8'"); //// 创建数据库 //$retvalCreate = mysql_query("CRE...
true
f0e22cae99b1d9704135266f6eaf5c5290075b38
PHP
mzq1210/fangtu
/common/components/DrawImg.php
UTF-8
13,738
2.71875
3
[]
no_license
<?php /* * $obj = new DrawImg(); * $obj->thumb("ffff00", 'l', 'null'); * 根据颜色生成对应标注图片,同时支持生成缩略图 * @author <liangpingzheng> * @date Jan 12, 2017 3:08:23 PM */ namespace app\common\components; use Yii; use app\common\components\Thumb; class DrawImg { public $hueAbsoluteError = 7; //值越高越清晰 public $col...
true
2890b0ac3fff2d072c3e5932d69f68e120b012fc
PHP
pratishshr/Aawaaj
/admin/system/model/Admin_Model.php
UTF-8
1,201
2.65625
3
[]
no_license
<?php class Admin_Model{ private $id; private $username; private $password; private $first_name; private $last_name; private $email; private $image; private $user_hash; public function __construct(){ } public function get_id(){ return $this->id; } public function set_id($id){ $this-...
true
b037b2cc5d740499c2efa55d9979889d1c09670b
PHP
junfeng0202/ant-doctor
/app/Http/Controllers/Frontend/V1/CourseController.php
UTF-8
1,209
2.515625
3
[]
no_license
<?php namespace App\Http\Controllers\Frontend\V1; use App\Http\Controllers\ApiController; use App\Http\Requests\StudyLogRequest; use App\Service\CourseService; use Illuminate\Http\Request; class CourseController extends ApiController { protected $courseService; public function __construct(CourseService $courseServ...
true
f175e1f7f480590e40730224f314c9847b5e439f
PHP
yayanberutu/psw2
/w04s02/01_opening_&_closing_file.php
UTF-8
223
2.90625
3
[]
no_license
<?php $file_name = 'student.txt'; $mode = 'r'; $file = fopen($file_name, $mode); echo (($file)? 'opened<br>' : 'unable to open<br>'); $closed = fclose($file); echo(($closed)? 'closed <br>' : 'unable to close<br>'); ?>
true
84a729d3731978b9f19a27fa4e46ab02711566f7
PHP
JeancarloFontalvo/inventario_silab
/components/widgets/DropDownWidget.php
UTF-8
3,571
2.828125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\components\widgets; use yii\base\Widget; use yii\helpers\Html; use yii\helpers\ArrayHelper; class DropDownWidget extends Widget { public $prompt; public $label = null; public $form; public $model; public $columns; public $options = []; public $refData = null; publi...
true
55171f34be84eed1e3ffc807f639fc51ce3de8f7
PHP
danifio/1project
/1projectphp.php
UTF-8
1,714
2.78125
3
[]
no_license
<?php connect(); if (isset($_POST['step'])) { $step = $_POST['step']; } else { $step = 0; } echo $step; if($step > 0 || $step == 0){ switch($step){ case 0: step0(); break; case 1: step1(); require('acce...
true
987e36f3580df6d9fa1bbdf5e1ef0ec6bd1d88f5
PHP
ranierivalenca/ifig-2019-1-web-i-tarde
/exercicio-03-11/tabela.php
UTF-8
685
3.0625
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> </head> <body> <?php $dados = file('dados.csv'); for ($i = 0; $i < sizeof($dados); $i++) { $dados[$i] = explode(';', $dados[$i]); } ?> <table> <tr> <th>Nome<...
true
1b92e9ad95329035def89e844ae8912a04c26bd1
PHP
apple006/DesignPatterns
/Observer/ConcreteObserver.php
UTF-8
124
2.84375
3
[]
no_license
<?php namespace Observer; class ConcreteObserver implements Observer{ public function update() { echo "update..\n"; } }
true
b31ba94069c22fcda492b4aac4ebf782c2a54d3a
PHP
TRAFANOHARANTSOA/formulaire-bdd
/model.php
UTF-8
2,606
2.984375
3
[]
no_license
<?php $servername = "localhost"; $dbname = "test"; $username = "root"; $password = ""; try { $conn = new PDO("mysql:host=$servername;dbname=$dbname", $username, $password); // set the PDO error mode to exception $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); } catch(Exception $e) { die('erreu...
true
95216e992c87b38da1edcea82860044da0982215
PHP
VSVverkeerskunde/gvq-api
/src/Company/Repositories/Entities/CompanyEntity.php
UTF-8
4,788
2.578125
3
[ "Apache-2.0" ]
permissive
<?php declare(strict_types=1); namespace VSV\GVQ_API\Company\Repositories\Entities; use DateTime; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; use Ramsey\Uuid\Uuid; use VSV\GVQ_API\Common\Repositories\Entities\Entity; use VSV\GVQ_API\Com...
true
74608a852293905876e0b110cbf93f5bff22a653
PHP
tiger1103/tp5-admin
/application/admin/model/Attachment.php
UTF-8
1,305
2.640625
3
[ "Apache-2.0" ]
permissive
<?php /** * Created by PhpStorm. * User: yixiaohu * Date: 2017/2/5 * Time: 17:27 */ namespace app\admin\model; /** * Class Attachment * 附件模型 * @package app\admin\model */ class Attachment extends Base { // 设置当前模型对应的完整数据表名称 protected $table = '__ADMIN_ATTACHMENT__'; // 自动写入时间戳 protected $auto...
true
2b616bdba99b1abc62dcfa081260ecbf8c9fba24
PHP
mohssineAboutaj/lds
/index.php
UTF-8
1,337
2.6875
3
[]
no_license
<?php $skipped_files = array('.','..'); $storage = __DIR__ . "/storage"; $files_list = array(); if (file_exists($storage)) { foreach (scandir($storage) as $file) { if (! in_array($file, $skipped_files)) { array_push($files_list, $file); } } } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-...
true
905e7fb412c2ff3d6ba8b605096d403051f43da7
PHP
Shardj/zf1-future
/library/Zend/Pdf/Element/Object.php
UTF-8
7,019
2.9375
3
[ "JSON", "LicenseRef-scancode-generic-cla" ]
permissive
<?php /** * Zend Framework * * LICENSE * * This source file is subject to the new BSD license that is bundled * with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://framework.zend.com/license/new-bsd * If you did not receive a copy of the license an...
true
c922288e586c7b28a2a2808a898508f738125d55
PHP
wuchuhengtmp/008_server
/ThinkPHP/_bt_www_bt_wwwroot_bt_47.99.245.30_bt_ThinkPHP_t_1573528306.61/Library/Vendor/jpush/jpush.class.php
UTF-8
3,805
2.671875
3
[ "Apache-2.0" ]
permissive
<?php /** * 极光推送 * 2018-02-08 * @author 葛阳 */ require 'jpush/autoload.php'; class jpush { private $app_key=JPUSH_KEY; private $master_secret=JPUSH_SECRET; public function __construct() { } /** * 推送消息 * @param string $alias:别名 * @param string $title:消息标题 * @param string $content:消息内容 * @param...
true
c8bcd30abd3fd55490c46e6d7796795818545ccc
PHP
mojiehai/queue_task
/src/Daemon/Command/MultipleWork/WakeUp.php
UTF-8
857
2.796875
3
[]
no_license
<?php namespace QueueTask\Daemon\Command\MultipleWork; use ProcessManage\Command\Action\Action; use QueueTask\Daemon\MultipleWorkDaemon; /** * wakeup 命令动作 * Class Stop * @package QueueTask\Daemon\Command\MultipleWork */ class WakeUp extends Action { /** * 执行该命令的程序 * @return void * @throws \Ex...
true
72796149bdace30e43d6caada7be9f3ae6e8dec7
PHP
guanhui07/webman-skeleton
/app/command/Test2Command.php
UTF-8
1,008
2.875
3
[ "MIT" ]
permissive
<?php namespace app\command; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Output\OutputInterface; /** * Class TestCommand * @packa...
true
81a2cf5ee55f74bbf605ca4f2c857a80dc022c2f
PHP
TheCAIRN/eduerp
/classes/VendorCatalog.php
UTF-8
5,287
2.515625
3
[ "Apache-2.0" ]
permissive
<?php class VendorCatalog extends ERPBase { public function __construct($link) { parent::__construct($link); $this->searchFields[] = array('pur_vendor_catalog','vendor_catalog_id','Vendor Catalog ID','integer'); $this->searchFields[] = array('pur_vendors',array('vendor_id','vendor_name'),'Vendor','dropdown'...
true
beca2a70f6f02dc3d5aefa78aabd170d8ac6cbbf
PHP
www2511550/juanzhu
/vendor/jd-sdk/jd/request/DspCampainAddRequest.php
UTF-8
2,288
2.6875
3
[ "MIT" ]
permissive
<?php class DspCampainAddRequest { private $apiParas = array(); public function getApiMethodName(){ return "jingdong.dsp.campain.add"; } public function getApiParas(){ return json_encode($this->apiParas); } public function check(){ } public function putOtherTextParam($key, $value){ $this->apiP...
true
33313d6db9ed5e1bac38ce706c327d0ed37fb94f
PHP
hypergavs/timteams
/app/Http/Requests/UpdateCoach.php
UTF-8
707
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class UpdateCoach extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** * Get the v...
true
1d8a09a59cf2e8635c58f75534e8a3e681389234
PHP
nafi1635/PhpSource
/display.php
UTF-8
340
2.609375
3
[]
no_license
<html> <h1>COlor show</h1> <?php $r= $_GET['r']; $g= $_GET['g']; $b= $_GET['b']; // generate RGB string from input $rgb = $r . ',' . $g . ',' . $b; ///combining the string ?> R: <?php echo $r; ?> G: <?php echo $g; ?> B: <?php echo $b; ?> <p /> <div style="width:150px; height: 150px; background-color: rgb(<?php echo $...
true
059b797cd014fd288edecb468163ee61fcd57c26
PHP
KhmaraD/Study-BCW4
/php/natural.php
UTF-8
126
3.09375
3
[]
no_license
<?php $limit = 0; fscanf(STDIN, "%d\n", $limit); echo implode(' ', range(1, $limit)) . PHP_EOL; ?>
true
c6de17e5819a274a1663aaa70d46b8ac178f810b
PHP
Michael2015/ulela
/plugins/wechat/wechat_kdt.php
UTF-8
4,503
2.625
3
[]
no_license
<?php /** * @copyright (c) 2015 aircheng.com * @file wechat.php * @brief 微信API接口 * @date 2015/3/27 21:59:41 * @version 3.1 */ /* 与口袋通对接 by dyg_jzw 20150710 */ class wechat { //配置数组 public $config = array( 'wechat_Token' => '', 'wechat_AppID' => '', 'wechat_AppSecret' => '',...
true
2bf3bf6348242949d2dff030cafe02ea410bd8ec
PHP
ApollineMallet/increase
/app/library/Ajax/bootstrap/html/HtmlProgressbar.php
UTF-8
3,674
2.671875
3
[]
no_license
<?php namespace Ajax\bootstrap\html; use Ajax\bootstrap\html\base\HtmlDoubleElement; use Ajax\JsUtils; use Phalcon\Mvc\View; use Ajax\bootstrap\html\base\CssRef; class HtmlProgressbar extends HtmlDoubleElement { protected $value; protected $max; protected $min; protected $striped = ""; protected $active; prote...
true
f85d9fe03bebcfd6899fdb186784a1a8b1839afb
PHP
ChristyThom/StrangeGiggles-ITC240
/comics.php
UTF-8
1,725
2.671875
3
[ "MIT" ]
permissive
<?php include 'includes/config.php';?> <?php get_header()?> <!--HEADER ENDS HERE--> <div class="col-xl-9 col-lg-10 mx-auto"> <div class="bg-faded rounded p-5"> <h2>Comics</h2> <?php $sql = "select * from StrangeGigglesComics"; $iConn = @mysqli_connect(DB_HOST...
true
6337479470953dd429f030f05409ff43b03c9268
PHP
visay/Chantrea.Training
/Classes/Chantrea/Training/Domain/Repository/UserRepository.php
UTF-8
870
2.65625
3
[]
no_license
<?php namespace Chantrea\Training\Domain\Repository; /* * * This script belongs to the TYPO3 Flow package "Chantrea.Training". * * * * ...
true
b57e13376a597ce8afe79b00fb1808c0afc1b71f
PHP
mneuhaus/Famelo.Bean
/Classes/Famelo/Bean/Variables/RepeaterVariable.php
UTF-8
2,993
2.6875
3
[]
no_license
<?php namespace Famelo\Bean\Variables; use TYPO3\Flow\Annotations as Flow; /** */ class RepeaterVariable extends AbstractVariable { /** * @var string */ protected $partial = 'Repeater'; /** * @var array * @Flow\Inject(setting="Variables") */ protected $variableImplementations; public function intera...
true
f39e5b341f919739139c3a99b0b098c1fb9b33c0
PHP
zhaoxianfang/xf-admin
/extend/util/CurlMulti.php
UTF-8
5,996
2.796875
3
[ "Apache-2.0" ]
permissive
<?php // +---------------------------------------------------------------------- // | CurlMulti 多图片下载 处理类 // +--------------------------------------------------------------------- // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 ) // +--------------------------------------------------------------------- // | ...
true
af748e6ff90961c43d139dda9d3d87f3a32636a6
PHP
ardasher-kh/test-task-3
/app/Modules/Universities/Services/UniversitiesCacheService.php
UTF-8
2,183
2.703125
3
[]
no_license
<?php namespace App\Modules\Universities\Services; use App\Modules\Universities\Entities\UniversityKeyEntity; use Carbon\Carbon; use Illuminate\Support\Collection; use Illuminate\Support\Facades\Cache; class UniversitiesCacheService { /** * @var UniversityKeyEntity */ private UniversityKeyEntity...
true
81afb00d20544206b46dc69d2d73513d825c7ec2
PHP
yarem4uk/hexlet
/php/oop/trait/Car.php
UTF-8
334
3.3125
3
[]
no_license
<?php namespace App; require_once 'ComparableByAge.php'; class Car { use ComparableByAge; private $year; private $brand; public function __construct($brand, $year) { $this->year = $year; $this->brand = $brand; } public function getYear() { return $this->y...
true
b7d5fa976118f945e14e14c94d4c8130dac287f0
PHP
mateuschines/Expressive
/test/Sabium/Util/CalculadoraTest.php
UTF-8
1,857
2.890625
3
[]
no_license
<?php declare(strict_types=1); namespace Sabium\Util; use Sabium\Util\Calculadora; use PHPUnit\Framework\TestCase; class CalculadoraTest extends TestCase { protected $calculadora; protected function setUp() { $this->calculadora = new Calculadora(); } public function testSomaCindoMaisCi...
true
7bcaee497cb3ef353b81dba42bb4ac6dc60bf84c
PHP
nar3nce/E-commerce-project
/admin/message.php
UTF-8
2,204
2.609375
3
[]
no_license
<?php //connection include ("../connection.php"); //restriction include("restriction.php"); //header include("header.php"); // codes for displaying messages start $narence = ""; $a = "select * from message"; $r = $conn->query($a); if($r->num_rows > 0) { while($row = $r->fetch_array()) { $id = $row['id...
true
7af4a142a9aacc3b51ba83ca9fe9b9fb8be138d3
PHP
shanerogers/ecotone
/src/Messaging/Endpoint/InboundChannelAdapter/InboundChannelTaskExecutor.php
UTF-8
1,376
2.65625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Ecotone\Messaging\Endpoint\InboundChannelAdapter; use Ecotone\Messaging\Endpoint\InboundGatewayEntrypoint; use Ecotone\Messaging\Handler\NonProxyGateway; use Ecotone\Messaging\Scheduling\TaskExecutor; /** * Class InboundChannelGatewayExecutor * @package Ecotone\Messaging\En...
true
d1ff25a7872d4e3db4e1cadc1ba180294115ff41
PHP
FSB/Fire-Soft-Board-2
/main/class/profil/profil_fields_admin.php
UTF-8
10,159
2.671875
3
[]
no_license
<?php /** * Fire-Soft-Board version 2 * * @package FSB2 * @author Genova <genova@fire-soft-board.com> * @version $Id$ * @license http://opensource.org/licenses/gpl-2.0.php GNU GPL 2 */ /** * Gestion des champs de profil dynamique dans l'admnistration */ class Profil_fields_admin extends Profil_fields { /** ...
true
8ce4d823fecf97e6ea7b8080566ca76505ee978a
PHP
urzuae/SPVW
/scripts/.svn/text-base/calcula_retrasos_asignacion.php.svn-base
UTF-8
5,633
2.546875
3
[]
no_license
<?php /**** Este script sirve para calcular las horas de retraso en atencion (asignacion), * y el numero de reasignaciones de un prospecto, cada que calcula deja el dato de * la fecha, en que fue calculado. */ global $db; $arg = $argv[0]; $fechai=$argv[2]; $fechac=$argv[3]; if(empty($fechac)) $fechac=$fechai...
true
40874329acc625b9e647766a8a9dd8188180866c
PHP
LegionPE/LegionPE-Theta-Classic
/src/legionpe/theta/classic/battle/queue/QueueManager.php
UTF-8
2,094
2.65625
3
[]
no_license
<?php /* * LegionPE * * Copyright (C) 2015 PEMapModder and contributors * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) a...
true
377beb2252ae6a478de32a684d094a4b23f80e22
PHP
AhmedSaidAsmail/TonsOfTours
/app/Src/payment/TwoCheckout/TwoCheckoutSeller.php
UTF-8
1,891
2.828125
3
[ "MIT" ]
permissive
<?php namespace Payment\TwoCheckout; use Payment\Exception\NoArgumentGivenException; class TwoCheckoutSeller { private $fillable = [ 'sellerId', 'merchantOrderId', 'token', 'currency', 'total', 'billingAddr', 'shippingAddr' ]; /** * @var strin...
true
61e7db8fafaeafdc3bb721b47df585c9ea0dc162
PHP
Rankpleo/web
/module/Application/src/Application/Model/Tag.php
UTF-8
381
2.75
3
[]
no_license
<?php namespace Application\Model; class Tag { public $idTag; public $idGrouptag; public $text; public function exchangeArray($data) { $this->idTag = (!empty($data['idTag'])) ? $data['idTag'] : null; $this->idGrouptag = (!empty($data['idGrouptag'])) ? $data['idGrouptag'] : null; $this...
true
9a7ed32578015d95c12b0fcc250ed82549ba9237
PHP
jsanahuja/PHP-SQL-ERedmine-API
/redmine/api/apilayer.php
UTF-8
1,656
2.859375
3
[]
no_license
<?php namespace Jsanahuja\Redmine\Api; abstract class ApiLayer{ protected $mysqli; // public static $NO_LIMIT = 999999999; public static $NO_LIMIT = 2147483647; public function __construct($mysqli){ $this->mysqli = $mysqli; } protected function _filter($filters){ $sql = ""; ...
true
81306da13d9c0532eb1a19ecf0bb44ff9d800b2f
PHP
hiddenshadow21/PlanetWar
/virtual machine/www/html/logreg/clientData/getImagesNumber.php
UTF-8
488
2.75
3
[]
no_license
<?php $directory = getcwd()."/"; $directories = glob($directory ."*"); $nod = count($directories) - 1; for($i = 0; $i < $nod; $i++) { $fileList = glob($i.'/*'); $arr = []; $j = 0; foreach($fileList as $filename) { if(is_file($filename)){ $arr[$j++] = $filename; } } if(strcmp($arr[0], $i."/descripti...
true
b96a71ffb40095182142662c69fcc64e200c12de
PHP
pet8/github
/show.php
UTF-8
1,568
2.703125
3
[]
no_license
<?php $cake = new Cake(); $row = $cake->gioihansp('H001'); ?> <?php $row1 = $cake->gioihansp('K001'); ?> <?php $row2 = $cake->gioihansp('N001'); ?> <!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"> <hea...
true
ea6ee8e5e8822ad88859f29b0cd70ae0a241e5d7
PHP
yf1129/yf_test
/app/Model/Operate.php
UTF-8
584
2.59375
3
[]
no_license
<?php namespace App\Model; use Illuminate\Database\Eloquent\Model; class Operate extends Model { // /**************** resources操作 ********************/ protected $table = 'operates'; //表名 protected $primaryKey = 'id'; //表的主键名 public $timestamps = false; //默认情况下,Eloquent 期望数据表中存在 created_at 和 upda...
true
73d5638f031b5350d9272d995f31ecb44cceaafc
PHP
lslucas/Collection-Tracker
/helper/cadastroAltera.php
UTF-8
5,388
2.578125
3
[]
no_license
<?php /* * UPDATE USER */ session_start(); $rp = '../admin/'; $_GET['p'] = 'cadastro'; include_once $rp.'_inc/global.php'; include_once $rp.'_inc/db.php'; include_once $rp.'_inc/global_function.php'; require_once $rp.'_inc/class.password.php'; include_once $rp.'cadastro/mod.var.php'; /* *antes de tudo verifi...
true
14b2e0076ad5b12e89102c3afdbe9c88b54d1d21
PHP
flavorzyb/wechat
/tests/WeChat/Message/WxReceiveLocationMsgTest.php
UTF-8
1,847
2.671875
3
[ "MIT" ]
permissive
<?php namespace WeChat\Message; class WxReceiveLocationMsgTest extends WxReceiveMsgTest { /** * @var WxReceiveLocationMsg */ protected $receiveMsg = null; protected function setUp() { $this->receiveMsg = new WxReceiveLocationMsg(); } /** * @return WxReceiveLocationM...
true
e5e040e09d7a3ad51d7cb49b03e7aef6394d97fe
PHP
reyasmohammed/Find_Low_Price
/application/controllers/cheapass_api/api/v1/Customer_api.php
UTF-8
17,330
2.53125
3
[ "MIT" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); // This can be removed if you use __autoload() in config.php OR use Modular Extensions /** @noinspection PhpIncludeInspection */ require APPPATH . '/libraries/REST_Controller.php'; require APPPATH . '/libraries/phpMail/SendMail.php'; require APPPAT...
true