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
d4c2ae2f6e16ef34169c0be128b2f82b5d2ac0aa
PHP
swoft-cloud/swoft-component
/src/db/src/Schema/MySqlBuilder.php
UTF-8
7,481
2.515625
3
[ "Apache-2.0" ]
permissive
<?php declare(strict_types=1); namespace Swoft\Db\Schema; use Swoft\Bean\Annotation\Mapping\Bean; use Swoft\Db\Exception\DbException; use Swoft\Db\Query\Builder as QueryBuilder; use Swoft\Stdlib\Helper\StringHelper; /** * Class Builder * * @Bean(scope=Bean::PROTOTYPE) * * @since 2.0 */ class MySqlBuilder exten...
true
df7373b364dcc2b9783d3d55b74fc6896fc49a13
PHP
joshtronic/pickles
/src/Profiler.php
UTF-8
5,450
3.09375
3
[ "MIT" ]
permissive
<?php /** * Profiler * * Licensed under The MIT License * Redistribution of these files must retain the above copyright notice. * * @copyright Copyright 2007-2014, Josh Sherman * @license http://www.opensource.org/licenses/mit-license.html * @link https://github.com/joshtronic/pickles * @package Pick...
true
2f13d4ce7236040ab37ce118c95c8a90190ffa5f
PHP
mira-ru/calendar
/protected/controllers/SiteController.php
UTF-8
14,922
2.5625
3
[]
no_license
<?php class SiteController extends FrontController { public function filters() { return array('accessControl'); } /** * @return array */ public function accessRules() { return array( array('allow', 'actions'=>array('login', 'registration'), 'users'=>array('?'), ), array('allow', 'act...
true
7ab38e3bf0649ef6b490e5ff4f6c88aaf1243b6d
PHP
ArielEspinoza07/nurse-service-api
/app/Models/User.php
UTF-8
2,735
2.6875
3
[]
no_license
<?php namespace App\Models; use Carbon\Carbon; use Illuminate\Support\Collection; use Laravel\Passport\HasApiTokens; use Spatie\Permission\Traits\HasRoles; use Illuminate\Notifications\Notifiable; use Illuminate\Database\Eloquent\SoftDeletes; use Illuminate\Contracts\Auth\MustVerifyEmail; use Illuminate\Database\Eloq...
true
d0818f8a1eb3401fc68a5d7e6c7d625ab40b50fd
PHP
tonyberrynd/SugarDockerized
/sugar/vendor/sugarcrm/identity-provider/lib/Encoder/CryptPasswordEncoder.php
UTF-8
2,767
2.984375
3
[ "Apache-2.0" ]
permissive
<?php /* * Your installation or use of this SugarCRM file is subject to the applicable * terms available at * http://support.sugarcrm.com/Resources/Master_Subscription_Agreements/. * If you do not agree to all of the applicable terms or do not have the * authority to bind the entity as an authorized representative...
true
80270c08584245ab341c112ed722b4c9716b79a8
PHP
ddmler/phpsa
/tests/PHPSA/Compiler/Statement/WhileTest.php
UTF-8
1,500
2.703125
3
[ "MIT" ]
permissive
<?php namespace Tests\PHPSA\Compiler\Statement; use PhpParser\Node; use PHPSA\Variable; class WhileTest extends \Tests\PHPSA\TestCase { /** * Tests while ($stmtTest = 2) {} creates the variable */ public function testWhileConditionCreatesVar() { $context = $this->getContext(); ...
true
f21f9a128449319f018d73b8657aa6ab3b58b2a6
PHP
ezinelony/url-shortener
/src/Dal/Sqlite/SqlitePDO.php
UTF-8
2,031
3.15625
3
[ "MIT" ]
permissive
<?php namespace UrlShortener\Dal\Sqlite; use PDO; use PDOStatement; use UrlShortener\Exceptions\NotFoundException; class SqlitePDO { /** * @var PDO */ private $connection; /** * @var string */ private $databaseFile; public function __construct(string $databaseFile) { ...
true
36eea152fc58e8f7493fbbf4c912f48b417a38e0
PHP
RojasFranco/ProgramacionIII-2020
/Parciales/Primer Parcial/Practica - Cosas Utiles/Practica Primer Parcial/practicaParcial2/Clases/profesor.php
UTF-8
439
3.140625
3
[]
no_license
<?php class Profesor{ public $nombre; public $legajo; public function __construct($nombre, $legajo) { $this->nombre = $nombre; $this->legajo = $legajo; } public static function esUnico($legajo, $listaProfesores){ foreach ($listaProfesores as $key => $profesor) { ...
true
711c6ad2844fb3a5bb2d5d65f7cdab77645facda
PHP
webcf2016/recursive
/01-affichage.php
UTF-8
906
3.0625
3
[]
no_license
<?php // dépendances require_once "PDO.php"; require_once "01-fonction.php"; // requête pour récupérer toutes les entrées dans 'monmenu' $recup_menu = $pdo->query("SELECT * FROM monmenu"); // création du tableau associatif contenant les éléments du menu $recup_menu = $recup_menu->fetchAll(PDO::FETCH_ASSOC); ?> <!DO...
true
4c7c1e810b295f1c264bd2156430314b78dff803
PHP
Trisantiana/kasir_app
/pages/admin/laporan-stok.php
UTF-8
1,190
2.578125
3
[]
no_license
<?php session_start(); if (empty($_SESSION['userID'])) { echo "anda tidak memiliki hak akses ke halaman ini! silahkan login dulu!"; } else { ?> <center>Laporan Stok Opname <br> TRI SANTIANA STORE </center> <br> <?='Hari/Tanggal : ' .date('l, d F Y H:i...
true
6a8fccddf0ecf775c8b2c847aa93cdddd31c5aba
PHP
devsfer1/template-exercicios-curso-php
/types/desafio_string.php
UTF-8
405
3.59375
4
[]
no_license
<div class="title"> Desafio String </div> <?php // Enunciado: // Avaliando os métodos da documentação da string, // qual o métodos que a posição do texto 'abc' // na string 'AbcaBcabc' retorna 1? //Minha resposta (esqueci do "!" kk) $mystring = 'AbcaBcabc'; $findme = 'abc'; $pos = stripos('x'.$mystring, $findme, 1...
true
61fe3924b8f36dd502d870b9adccaf8be21026af
PHP
KernelDeimos/fishpool
/application/FilesDatabase.php
UTF-8
5,284
3.390625
3
[]
no_license
<?php namespace Application; use PDO; use PDOException; /** * Acts a sa factory for Group objects and communicates * information about new groups to the database. */ class FilesDatabase { const NEW_ITEM_OKAY = 1; const NEW_ITEM_INTERNAL_ERROR = 2; const NEW_ITEM_INVALID_NAME = 3; const NAME_MIN_LENGTH = 2; ...
true
2d71b1f23ce25bb3aba87ad31b25e864fe9c7f93
PHP
TopOneExpert/java2php_encrypt-decrypt
/MyAesCipher.php
UTF-8
2,788
3.546875
4
[]
no_license
<?php /** * AesCipher * * Encode/Decode text by password using AES-128-CBC algorithm */ class AesCipher { const CIPHER = 'AES-128-CBC'; const INIT_VECTOR_LENGTH = 16; /** * AesCipher constructor. * */ public function __construct() { } public static function encryptStrA...
true
28ae714a008768f57c1df45d4311c59067f6b173
PHP
Gisleburt/GF_LazyData
/src/Gisleburt/LazyData/DescriptionManager.php
UTF-8
1,227
3.171875
3
[]
no_license
<?php namespace Gisleburt\LazyData; /** * An interface to be used to manage the storage of table descriptions * used by the Lazy Data package * @author Daniel Mason * @copyright DanielMason.com, 2012 * @version 1.0 * @package LazyData */ interface DescriptionManager { /** * Creating this ob...
true
52e6162316dfc4f2c09ba35f304cdad3a3cd7a5c
PHP
PuzzleShot/slnotes
/json.php
UTF-8
4,875
2.515625
3
[]
no_license
<?php require_once("jonSQL.php"); header("Content-Type: application/json"); header("Access-Control-Allow-Origin: *"); if(isset($_REQUEST["request"])){ switch($_REQUEST["request"]){ case "both": $cats = jonSQL::query("select * from cats"); $result = array("cats" => array(),"notes" =>...
true
8950112aa22af10f43a087a7707747e05d272812
PHP
HaseProgram/University
/6sem/ppo/3 lab/html/core/memory.php
UTF-8
1,045
2.984375
3
[]
no_license
<?php require_once "registry.php"; class Memory { public function __construct() { if(!isset($_SESSION['UNDO'])) { $_SESSION['UNDO'] = $_SESSION['REDO'] = array(); } } public function NewAction($action, $commands) { array_push($_SESSION['UNDO'], array($action => $commands)); $_SESS...
true
1f9cdbd0a1e8e789d76bba4449f2c7f3b8602187
PHP
Biont/menu-cache
/tests/TestCase.php
UTF-8
671
2.59375
3
[ "MIT" ]
permissive
<?php # -*- coding: utf-8 -*- namespace Inpsyde\MenuCache\Tests; use Brain\Monkey; use PHPUnit_Framework_TestCase; /** * Abstract base class for all test case implementations. * * @package Inpsyde\MenuCache\Tests * @since 1.0.0 */ abstract class TestCase extends PHPUnit_Framework_TestCase { /** * Prepares...
true
e19cbb86d4acf5c843c84ef8e55b956a77494ab4
PHP
tiagoacastro/LtwProject2018
/src/templates/tpl_channels.php
UTF-8
2,003
2.578125
3
[ "MIT" ]
permissive
<?php function draw_channels($channels){ ?> <nav class="channels"> <ul> <?php foreach ($channels as $channel) { ?> <li><a href="../pages/channel.php?id=<?=$channel['channel_id']?>"><?=$channel['channel_name']?></a></li> <?php } ?> </ul> </nav> <?php } func...
true
987352bf0f6997c7ac261af97ef1db6bf680c66f
PHP
dabour25/wp-to-flarum
/app/Imports/PostsImport.php
UTF-8
567
2.703125
3
[ "MIT" ]
permissive
<?php namespace App\Imports; use App\Models\Post; use Maatwebsite\Excel\Concerns\ToModel; use Maatwebsite\Excel\Concerns\WithHeadingRow; class PostsImport implements ToModel,WithHeadingRow { /** * @param array $row * * @return \Illuminate\Database\Eloquent\Model|null */ public function model(...
true
5d6e6d48bb8e20d3cdc3d4309311bba11ce985de
PHP
AhmedSaidAsmail/TonsOfTours
/app/Src/payment/Paypal/Paypal.php
UTF-8
948
2.859375
3
[ "MIT" ]
permissive
<?php namespace Payment\Paypal; use Payment\Exception\NoSettingFoundException; use Payment\Exception\PaymentException; use Payment\PaymentGateway; class Paypal extends PaymentGateway { public $paypal_setting; /** * Initialize Payment Object * * @return void * @throws NoSettingFoundExcep...
true
8e4f1cfc823383dcb99a18078b7911a1e221d857
PHP
ihitbuttons/BudgetSystem
/MasterInclude/Include/responseINC.php
UTF-8
3,150
3.078125
3
[]
no_license
<?php //ADD IN API TRACKING //ADD IN API RATE LIMITING class ResponseClass { public $apiResponseJson; private $errorLogging; private $sessionHeaderArray; private $apiHeaderArray; private $errorHeaderArray; protected function __construct() { require_once(realpath($_SERVER["DOCUMENT_ROOT"]) . DIRECTORY_SEPARA...
true
5fe5f1521bc616700cfd82d3d97a3171dc9f732f
PHP
ninggf/wulaphp
/wulaphp/db/dialect/DatabaseDialect.php
UTF-8
11,478
2.78125
3
[ "MIT" ]
permissive
<?php namespace wulaphp\db\dialect; use wulaphp\conf\DatabaseConfiguration; use wulaphp\db\DialectException; use wulaphp\db\sql\BindValues; use wulaphp\db\sql\Condition; /** * deal with the difference between various databases * * @author guangfeng.ning * */ abstract class DatabaseDialect extends \PDO { pro...
true
11c81c4e73d99519a3098377175ad6aca0be4300
PHP
liangdev/shopinterest
/quickstart/application/scripts/image_uploader.php
UTF-8
5,523
2.734375
3
[]
no_license
<?php // job type: 3 // data: $type, $id // a cron job // while get next job till no such job avail and then exit require_once('includes.php'); $job_type = PINTEREST_IMAGE_UPLOADER; while($job_id = JobsMapper::getNextJobId($job_type, $job_dbobj)) { // get the config of the job $job_config = new JobConfig($j...
true
aeafa920583cdb521cd74a3772ad98518999d432
PHP
ProtikHore/e-commerce
/laravel_backend/app/Repositories/BuyerRepository/BuyerRepository.php
UTF-8
1,300
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Repositories\BuyerRepository; use App\Models\Buyer; use Illuminate\Support\Facades\Hash; class BuyerRepository implements BuyerInterface { public function login($request) { $buyer = Buyer::where('email', $request->get('email'))->first(); if (!$buyer) { return respon...
true
0c501b371396f7bdb34e435843d60f88e25e5be9
PHP
farnav/geo-locator
/src/Locator/MuteLocator.php
UTF-8
992
2.984375
3
[]
no_license
<?php declare(strict_types=1); namespace Farran\Geo\Locator; use Farran\Geo\{Dto\Ip, Dto\Location, ErrorHandlerInterface}; /** * Class MuteLocator * * @package Farran\Geo\Locator * @author Farukh Narzullaev <faruh.narzullaev@bk.ru> */ class MuteLocator implements LocatorInterface { /** * @var LocatorI...
true
5e3441c28b762ffc3a51d2f3972c78727e18d73e
PHP
Andrew365/stockAnalyzerComplete
/functions/addToTextFile.php
UTF-8
1,448
2.59375
3
[]
no_license
<?php session_start(); $user = $_SESSION['username']; //checks if the data entered into the add ticker box is valid and will return an if if not $ticker = $_POST['newTicker']; if(!$ticker){ echo '<script type="text/javascript"> window.alert("That ticker doesnt exist"); document.location.href = "../dashboard.php"...
true
a9fb5c920563d39574609bc2d13384682fd133ba
PHP
BlindBishop/easyHomestead
/Homestead/tests/MakeCommandTest.php
UTF-8
14,563
2.546875
3
[ "MIT" ]
permissive
<?php namespace Tests; use Laravel\Homestead\MakeCommand; use PHPUnit\Framework\TestCase as TestCase; use Symfony\Component\Console\Tester\CommandTester; class MakeCommandTest extends TestCase { /** * @var string */ protected static $testFolder; public static function setUpBeforeClass() { ...
true
2c35612e976f1f6b38013111eb8454086ef285d6
PHP
DennisManyagi/SSL
/myframework/first.php
UTF-8
534
3.9375
4
[]
no_license
<?php class myclass{ public function _construct($number=0){ echo "my constructor".$number; } public function myMethod($name=""){ //var_dump($_REQUEST); echo "name: ".$_REQUEST["name"]; } } $mynewclass = new myclass(12345); $mynewclass->myMethod("Joe"); ?> <? $myvar =[...
true
ff04687a301c402e2514b5f09ea733b2d3517ed4
PHP
gopalvirat/phpredis-json
/src/RedisJsonClient/Connection/ConnectionOptions.php
UTF-8
5,309
2.6875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /** * This file is part of PhpRedisJSON library * * @project phpredis-json * @author Rafael Campoy <rafa.campoy@gmail.com> * @copyright 2019 Rafael Campoy <rafa.campoy@gmail.com> * @license MIT * @link https://github.com/averias/phpredis-json * * Copyright and license information, is included...
true
cbfb36393fd4d844f2208a4120dee6b1cc80ec25
PHP
raphaelfrancis/school
/paging.php
UTF-8
805
2.703125
3
[]
no_license
<?php $con=mysqli_connect("localhost","root"); mysqli_select_db($con,"college"); $limit=5; if(isset($_GET["page"])) { $page=$_GET["page"]; } else { $page=""; } if($page=="" || $page=="1") { $page1=0; } else { $page1=($page*3)-3; } $newresult=mysqli_query($con,"select * from student limit $page1,$limit"); while($row=...
true
62ee3fb77dcbd252468c07069abe1c008a8f15af
PHP
paranoiaproject/paranoia
/tests/Builder/NestPay/RefundRequestBuilderTest.php
UTF-8
2,258
2.515625
3
[ "MIT" ]
permissive
<?php namespace Paranoia\Test\Builder\NestPay; use Paranoia\Builder\NestPay\RefundRequestBuilder; use Paranoia\Configuration\NestPay as NestPayConfiguration; use Paranoia\Currency; use Paranoia\Formatter\DecimalFormatter; use Paranoia\Formatter\IsoNumericCurrencyCodeFormatter; use Paranoia\Formatter\NestPay\ExpireDate...
true
69b2218495a38aed3990b05fae0f9ecbfc3b1c5d
PHP
hielke16/blog
/modules/Employee/Admin/Metabox/Data.php
UTF-8
2,914
3.015625
3
[]
no_license
<?php namespace Module\Employee\Admin\Metabox; use Webwijs\Admin\Metabox\Multibox; /** * Adds metaboxes which handles the data for the Employee admin page * * @author Leo Flapper * @version 1.0.0 */ class Data { /** * The prefix used for the meta_key in the post meta table of the database * @var string ...
true
0619b6dcefc048667fcf567bcc16f5f24c49e96e
PHP
AshleyJSheridan/tweed
/maverick/vendor/maverick/data.php
UTF-8
624
2.796875
3
[ "MIT" ]
permissive
<?php /** * a simple class just used as a hook to retrieve data from the main object view member variable */ class data { public static function get($var) { $app = \maverick\maverick::getInstance(); if(strpos($var, '.') !== false) { $matches = explode('.', $var); if(count($matches) > 1) { $...
true
5ff06dcb8e67921f7e4764f7ce9905269d1ba704
PHP
mik-laj/budget_siecobywatelska_pl
/src/Sowp/BudgetBundle/DataFixtures/ORM/LoadContractData.php
UTF-8
1,586
2.625
3
[]
no_license
<?php namespace AppBundle\DataFixtures\ORM; use Doctrine\Common\DataFixtures\AbstractFixture; use Doctrine\Common\DataFixtures\OrderedFixtureInterface; use Doctrine\Common\Persistence\ObjectManager; use Faker\Factory; use Sowp\BudgetBundle\Entity\Contract; class LoadContractData extends AbstractFixture implements Ord...
true
57185978cf0fc711910b55cb217ebf3c6448cc22
PHP
henkerik/objectsensitivetyping
/objectsensitivetyping/tests/preposdecrement.php
UTF-8
308
3.5625
4
[]
no_license
<?php $b = $a = 5; /* assign the value five into the variable $a and $b */ $e = $d = --$b; /* pre-increment, assign the incremented value of $b (6) to $d and $e */ $c = $a--; /* post-increment, assign original value of $a (5) to $c */ ?>
true
a3425f37d3394b900c6fc6d40faf20ac0f8f75d9
PHP
cubiche/cubiche
/src/Cubiche/Core/Async/Promise/Promise.php
UTF-8
2,110
2.71875
3
[ "MIT" ]
permissive
<?php /* * This file is part of the Cubiche package. * * Copyright (c) Cubiche * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Cubiche\Core\Async\Promise; /** * Promise class. * * @author Karel Osorio Ramírez <osori...
true
0c24a6a892dfc0242bbf187a6889cd16e7147b4b
PHP
DavidGoodwin/Propel
/runtime/lib/adapter/MSSQL/MssqlPropelPDO.php
UTF-8
4,329
2.875
3
[ "MIT" ]
permissive
<?php /** * This file is part of the Propel package. * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @license MIT License */ /** * dblib doesn't support transactions so we need to add a workaround for transactions, last insert ...
true
1aa41c034e355467baf45c7bcd12156b43f1b7d7
PHP
Gunzhin/identity-laravel
/src/Types/IDEntityVin.php
UTF-8
1,341
2.8125
3
[ "MIT" ]
permissive
<?php namespace AvtoDev\IDEntity\Types; use Exception; use Illuminate\Support\Str; use AvtoDev\IDEntity\Helpers\Transliterator; /** * Идентификатор - VIN код. */ class IDEntityVin extends AbstractTypedIDEntity { /** * {@inheritdoc} */ public function getType() { return static::ID_TYPE...
true
e72abdc1f416b4953fbc7f0f6d783994d2b9cb20
PHP
arpit92k/InterviewMile
/api/classes/class.Database.php
UTF-8
1,493
2.953125
3
[]
no_license
<?php class Database{ private $link; private $connection; private $query; private $parms; public function __construct($db="InterviewMile"){ $this->link=new DatabaseConnection($db); $this->connection=$this->link->getConnection(); } public function setQuery($qry){ $this->query=$this->connection->prepare($qry...
true
e66f75ed27d0866826c810f384ad3e0f1a812abf
PHP
BaylorRae/PHP-Huck
/spec/matchers/to_be_integer_spec.php
UTF-8
411
2.8125
3
[]
no_license
<?php describe("toBeInteger matcher", function() { it("matches integers", function() { $result = expect(1)->toBeInteger(); expect($result)->toBeTruthy(); }); it("doesn't match non strings", function() { $types = array('foo', new StdClass(), array()); foreach( $types as $type) { $result =...
true
33b0fad94099358d4d73971e67f8a77ca7917328
PHP
zenky/php-sdk
/src/Api/Entities/BasicApiClientFactory.php
UTF-8
455
2.671875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php declare(strict_types=1); namespace Zenky\Api\Entities; use GuzzleHttp\ClientInterface; use Zenky\Api\Interfaces\ApiClientFactoryInterface; class BasicApiClientFactory implements ApiClientFactoryInterface { private ClientInterface $client; public function __construct(ClientInterface $client) { ...
true
37b88d42da18ee8891a51d6f7bb8da83ff6414c2
PHP
WordPress/WordPress-Coding-Standards
/WordPress/Tests/Security/NonceVerificationUnitTest.1.inc
UTF-8
12,854
2.828125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php // Bad, needs nonce check. function bar() { if ( ! isset( $_POST['test'] ) ) { // Bad. return; } do_something( $_POST['test'] ); // Bad. } // Good, has an nonce check. function ajax_process() { check_ajax_referer( 'something' ); update_post_meta( (int) $_POST['id'], 'a_key', $_POST['a_value'] ); } add_...
true
862575cdd45700610bc7f6f791ddfbdfb00ca817
PHP
manhluong1999/CNWEB-2020
/create-post.php
UTF-8
2,286
2.5625
3
[]
no_license
<?php ob_start(); require_once 'init.php'; require_once 'functions.php'; ?> <?php include 'check-before-login.php'; include 'header.php'; ?> <?php if (isset($_POST['content'])){ $content = $_POST['content'][0]; $privacy = $_POST['privacy']; if (strlen($content) == 0){ echo "Không được ...
true
e3a556199dbd8182f4eccbc233e7c679abedd4d6
PHP
ThePlatinum/laravel-admin
/src/Commands/AdminInstallCommand.php
UTF-8
4,574
2.5625
3
[ "MIT" ]
permissive
<?php namespace Platinum\LaravelAdmin\Commands; use Illuminate\Console\Command; use Illuminate\Filesystem\Filesystem; use Illuminate\Support\Facades\Artisan; use Illuminate\Support\Facades\File; class AdminInstallCommand extends Command { protected $signature = 'admin:install {--m|migrate : Indicate to run the m...
true
d6af4109f3229bca16285390e452461a4a715dec
PHP
kjport3/kennyPorterfield
/forgot-password.php
UTF-8
2,693
2.90625
3
[]
no_license
<?php include "includes/db.php"; // DB Connection include "includes/header.php"; // Header include "includes/navigation.php"; // Navigation ?> <?php if (isset($_POST['user_email'])) { $user_email = $_POST['user_email']; $errors = ''; $myemail = 'kjport3@gmail.com'; $query = "SELECT username FROM use...
true
899f17027cb58ba5ea2baaf9e8f7e5b1416e7aae
PHP
hemantvania/test-laravel5.5
/source/app/Http/Middleware/UserDashboardRedirectionMiddleware.php
UTF-8
1,300
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Middleware; use Closure; use Illuminate\Contracts\Auth\Guard; use App; class UserDashboardRedirectionMiddleware { /** * Handle an incoming request. * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle...
true
b81d16ae02f4e62ab0c4fb38a272bddfb5392f93
PHP
rdtheriault/WebDev0
/html/classes/hhs/zackt/phpquiz.php
UTF-8
1,369
2.984375
3
[ "MIT" ]
permissive
<html> <head> <style> .com { color: blue; font-family: cursive; } #r { border: 5px groove purple; padding: 5px; } #s { border: 5px ridge indigo; padding: 5px; } #t { border: 5px double violet; padding: 5px; ...
true
0ea570160f936b6b904e64314b426e3b40b3d5b4
PHP
contributte/webpack
/src/DevServer/Http/MockClient.php
UTF-8
366
2.609375
3
[ "BSD-3-Clause" ]
permissive
<?php declare(strict_types=1); namespace Contributte\Webpack\DevServer\Http; /** * @internal */ final class MockClient implements Client { private bool $isAvailable; public function __construct(bool $isAvailable) { $this->isAvailable = $isAvailable; } public function isAvailable(string $url, float $timeou...
true
957c8a258b70bcacc9e623a84683bc4ecbf0243a
PHP
andrelokal/directions
/robot_class/index.php
UTF-8
816
3.203125
3
[]
no_license
<?php require_once("Robot.php"); $movements = array(); $obstacles = array(); /* * reading the file directions */ $rows = file('directions.txt'); foreach ($rows as $row) { $array = explode(' ', $row); $key = trim($array[0]); $value = trim($array[1]); if (!preg_match('/^[0-9]*$/', $key) && count($mo...
true
8480ea769af0416d979796c1d02ef8171b75674a
PHP
nitin007/PHP
/blog/php/signup.php
UTF-8
2,134
2.78125
3
[]
no_license
<?php include_once('common.php'); include_once('dbconn.php'); require_once 'DB.php'; ?> <br> <div class="content"> <span class="signin">Sign Up</span><br><br> <?php function dberror($result) { if (DB::isError($result)) { $errorMessage = $result->getMessage(); die ($errorMessage); } } $username = $_POST['usrn...
true
5de0e8fa5407c4d1d5558c89910f5a24b91c8c7f
PHP
yannlo/parix
/php_acces/script_reservation.php
UTF-8
2,329
2.546875
3
[]
no_license
<?php include('../admin/function/connexion_bdd.php'); $message=""; $success = 0; $msg="Une erreur de traitement est survenue..."; if(!empty($_POST["nomComplet"]) AND !empty($_POST["date"]) AND !empty($_POST["heure"]) AND !empty($_POST["contact"]) ){ $nomComplet = htmlspecialchars($_POST["nomComplet"]); $da...
true
d81413cc805905f766b12bc04178b033dcd00e9f
PHP
a279623002/zero
/response.class.php
UTF-8
427
2.75
3
[]
no_license
<?php //接口文件 header("Content-type: text/html; charset=utf-8"); class Response{ public function json($code,$message,$data){ //接受数据,定义返回的数据 $result = array( 'code' => $code, 'message' => $message, 'data' =>$data, 'status' => '1' ); //当文...
true
fd00e10af68165165bf998e9b7267829fe4518d5
PHP
je4/HGK-Mediathek
/cli/doaj2solr_old.php
UTF-8
1,623
2.515625
3
[ "MIT" ]
permissive
<?php namespace Mediathek; include '../init.inc.php'; $entity = new DOAJEntity( $db ); $solr = new SOLR( $solrclient ); //$sys = '006931662'; //$sys = '5141218'; //$sys = '001874213'; $sys = '009526976'; /* $sql = "SELECT * FROM nebis_grab2"; $rs = $db->Execute( $sql ); $x = 0; foreach( $rs as $row ) { $sql =...
true
8f67048028f1694f6eed54661eb0bf3f70a5c854
PHP
patrykwozinski/vat-calculator
/src/Domain/Price/Exception/InvalidPriceArguments.php
UTF-8
666
2.59375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: freeq * Date: 13/12/2018 * Time: 02:42 */ declare(strict_types=1); namespace Freeq\VatCalculator\Domain\Price\Exception; use Freeq\VatCalculator\Domain\Shared\Exception\InvalidArgumentException; final class InvalidPriceArguments extends InvalidArgumentException { pu...
true
2775765d45004d4c0e3cc15dba00ad3c28925831
PHP
lucasfehlix/cardapioAdm
/menu.php
UTF-8
737
2.734375
3
[ "MIT" ]
permissive
<?php class Menu{ public function addMenu($endereco,$menu){ $file = "pdf/".$menu; if( file_exists( $file ) ) { unlink( $file ); move_uploaded_file($endereco,'pdf/'.$menu); }else{ move_uploaded_file($endereco,'pdf/'.$menu); ...
true
98d624590a44793f615f760926cf97beb0894f88
PHP
shadowster/mephex
/trunk/data-object/io/DatabaseDecoder.php
UTF-8
869
2.53125
3
[]
no_license
<?php require_once PATH_LIB . 'com/mephex/data-object/io/AbstractDecoder.php'; class MXT_DO_DatabaseDecoder implements MXT_DO_AbstractDecoder { public function decodeBoolean($value) { if($value == '') return null; else { return !($value == '0'); } ...
true
81bb6e03114ca2c95e7083018e6688f83c8bd3c3
PHP
BaptisteLecat/Stage_IPDEVELOPPEMENT
/App/Model/DomainManager.php
UTF-8
6,450
3
3
[]
no_license
<?php namespace App\Model; use App\PdoFactory; use App\Model\Entity\Domain; use Exception; use PDOException; /** * Allow to interact with the llx_domaines table in Database. * Use PdoFactory. */ class DomainManager extends PdoFactory { /** * Function to load Domain from client. * * @param Clien...
true
3ce64ec151dfdcd3587d36df85a2fef602f1e508
PHP
johannaand/wgtotw
/src/HTMLForm/CFormUpdateUser.php
UTF-8
3,124
2.625
3
[]
no_license
<?php namespace Jovis\HTMLForm; /** * Anax base class for wrapping sessions. * */ class CFormUpdateUser extends \Mos\HTMLForm\CForm { use \Anax\DI\TInjectionaware, \Anax\MVC\TRedirectHelpers; private $users; /** * Constructor * */ public funct...
true
cac4910d0c59df06b7943fcbee3f28869035f314
PHP
yondonjamts1/mysql_php
/poadd.php
UTF-8
1,586
2.578125
3
[]
no_license
<?php $servername = "localhost"; // сервер комьютерийн хаяг буюу нэр $username = "root"; // MySQL-ийн бааз руу хандах хэрэглэгчийн нэр $password = ""; // MySQL-ийн бааз руу хандах нууц үг $database = "dreamhome"; // Баазын нэр // Өгөгдлийн сантай холбох объект үүсгэх $conn = new mysqli($servername, $u...
true
85cf1f716164bae2bd53f614e9e6e6bf599371cd
PHP
dairagalceran/tpe_tienda
/models/loginModel.php
UTF-8
828
2.984375
3
[]
no_license
<?php class LoginModel { private $db; public function __construct() { $this->db = new PDO('mysql:host=localhost;'.'dbname=db_tienda;charset=utf8', 'root', ''); } function getUser($email) { $query = $this->db->prepare('SELECT * FROM users WHERE email =?'); $query->execute([$em...
true
af1c9f74e1d6d64643855c81b6e3afef9bac62d8
PHP
camauger/seigneurie
/wp-content/plugins/woocommerce-monetico/index.php
UTF-8
1,341
2.59375
3
[]
no_license
<?php /* Plugin Name: WooCommerce Monetico(Classic) Gateway Plugin URI: http://www.elsner.com/ Description: Extends WooCommerce by Adding the Monetico Gateway. Version: 1.3 Author: Elsner Technologies Pvt. Ltd. Author URI: http://www.elsner.com/ */ // Include our Gateway Class and register Payment Gateway with WooComm...
true
d35aa588d592604b489b3036ea5f635524e2de1b
PHP
IntoOblivion/Truck
/license_verify.php
UTF-8
832
2.796875
3
[ "MIT" ]
permissive
<?php /* Author: paranoidinferno */ $myservername = "localhost"; $myusername = "root"; $mypassword = ""; try{ $connection = new PDO("mysql:host=$myservername;dbname=truck", $myusername, $mypassword); $connection->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $val=$_GET['dlquery']; $statement = $co...
true
8512517f3e88d496317985bb1da92f59e0151c89
PHP
dantelerario/php-oop-2
/classes/Storage.php
UTF-8
530
3.140625
3
[]
no_license
<?php /** * MAGAZZINO */ class Storage { public $item_name; public $item_code; public $item_quantity; public $item_price; public function __construct($_item_name, $_item_code, $_item_quantity, $_item_price) { $this->item_name = $_item_name; $this->item_code = $_item_co...
true
5148b45e8bd4e1e2a64ea240dc18e7bee17b36fb
PHP
pma-alpha-rho/pma-alpha-rho.github.io
/intranet/login.php
UTF-8
5,765
2.953125
3
[]
no_license
<?php /** * Checks whether or not the given username is in the * database, if so it checks if the given password is * the same password in the database for that user. * If the user doesn't exist or if the passwords don't * match up, it returns an error code (1 or 2). * On success it returns 0. */ function confi...
true
c9a4ac48bcf1032b67b85b5fdab2745b5ba7da26
PHP
PSAICR/baixiu-dev
/admin/api/avatar.php
UTF-8
648
2.828125
3
[]
no_license
<?php require_once '../../config.php'; /** *接收传来的email,查询对应的图片地址,发送给客户端 */ // 1.接收邮箱 if(empty($_GET['email'])){ exit('缺少必要的参数'); } // 2.根据邮箱查询img地址 $email = $_GET['email']; $conn = mysqli_connect(BX_DB_HOST,BX_DB_USER,BX_DB_PASS,BX_DB_NAME); if(!$conn){ exit('数据库连接失败'); } $res = mysqli_query($conn, "select avat...
true
64f3788d81387ebc48f218a4b6dd0b3d8d653f33
PHP
SkandaB/Foreign_Keys
/HW1/PHP/user_detail.php
UTF-8
1,863
3.203125
3
[]
no_license
<?php function build_table(){ include('config.php'); $html=''; try { // Connect to the database. $con = new PDO("mysql:host=" . $config["dbhost"] . ";dbname=" . $config["dbname"], $config["dbuser"], $config["dbpass"]); $con->setAttribute(PDO::ATT...
true
3e29b05b2fe1c153816d5b522a4094717b7ea688
PHP
wonderkun/CTF_web
/web500-4/htmlpurifier/library/HTMLPurifier/HTMLModule/Target.php
UTF-8
627
2.671875
3
[ "LGPL-2.1-only", "MIT" ]
permissive
<?php /** * XHTML 1.1 Target Module, defines target attribute in link elements. */ class HTMLPurifier_HTMLModule_Target extends HTMLPurifier_HTMLModule { /** * @type string */ public $name = 'Target'; /** * @param HTMLPurifier_Config $config */ public function setu...
true
6d570127714b5a64b93f3b5e18b0d4e0c5c36123
PHP
patriatbp/phpdasar
/pertemuan14/index.php
UTF-8
2,591
2.53125
3
[]
no_license
<?php require 'functions.php'; $film = query("SELECT * FROM film"); if (isset($_POST["cari"])){ $film = cari($_POST["keyword"]); } ?> <!DOCTYPE html> <html> <head> <title>Halaman Admin</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <link ...
true
5dea2470196f9b39f1d2dd6930007736090fe87f
PHP
trilbymedia/grav-plugin-page-toc
/vendor/knplabs/knp-menu/src/Knp/Menu/Twig/MenuExtension.php
UTF-8
4,917
2.859375
3
[ "MIT" ]
permissive
<?php namespace Knp\Menu\Twig; use Knp\Menu\ItemInterface; use Knp\Menu\Matcher\MatcherInterface; use Knp\Menu\Util\MenuManipulator; use Twig\Extension\AbstractExtension; use Twig\TwigFilter; use Twig\TwigFunction; use Twig\TwigTest; class MenuExtension extends AbstractExtension { /** * @var Helper */ ...
true
e1209ec8425cde12198412a7fb52b9c9c0d453c7
PHP
buberwa88/iLMS_Repayment
/backend/modules/report/models/ReportFilterSetting.php
UTF-8
1,332
2.5625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace backend\modules\report\models; use Yii; /** * This is the model class for table "report_filter_setting". * * @property integer $report_filter_setting_id * @property integer $number_of_rows * @property integer $is_active * @property integer $created_by * @property string $created_at */ class R...
true
c4b2487819f28a028176eaf0ff3f2f37f63822ea
PHP
DaveLiddament/sarb
/tests/Unit/Core/ResultsParser/AnalysisResultsTest.php
UTF-8
3,134
2.625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace DaveLiddament\StaticAnalysisResultsBaseliner\Tests\Unit\Core\ResultsParser; use DaveLiddament\StaticAnalysisResultsBaseliner\Domain\Common\ProjectRoot; use DaveLiddament\StaticAnalysisResultsBaseliner\Domain\Common\Severity; use DaveLiddament\StaticAnalysisResultsBaseliner\Do...
true
f5f3e48f0c81e69b2134daac6a11657ab17afb71
PHP
nixodus/league_test
/src/AppBundle/Controller/FootballTeamController.php
UTF-8
2,535
2.53125
3
[]
no_license
<?php namespace AppBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\Request; use AppBundle\Services\LeagueRetriever; use AppBundle\Services\LeagueRemover; use AppBundle\Services\FootballTeamCreator; use App...
true
11e9f28ad39c64f77b900ba5b964d438e216cac7
PHP
daumling/php-dataset
/examples/deleteField.php
UTF-8
453
2.71875
3
[]
no_license
<?php /** * Delete data: Delete the gender from all records */ include '../src/Dataset.php'; use \Daumling\Dataset\File as DB; DB::setOptions([ 'path' => __DIR__.'/data/*.json' ]); $table = DB::get('addresses'); $table->delete('gender'); // check the deletion $set = $table->where('gender', '!=', ''); echo co...
true
4a2fc4a56e6cd807f4df08b917bbe8b398884d29
PHP
igorjsoares/meuatendente
/webhooks/botnutri/webhook.php
UTF-8
73,518
2.546875
3
[]
no_license
<?php { class whatsAppBot { //$id_instancia = $_GET['codigo']; //chatpro-yybwcu3f69 public function __construct() { include("dados_conexao.php"); include("servicos.php"); //& Alterar aqui depois os dados para a consulta no BD $this->...
true
bccd189998fdf456d43156e2bb42e0994bdc0e7f
PHP
hack-marche/practice_for_others
/GoogleAPI_lesson/Google_URL_Shortener/index.php
UTF-8
1,445
2.765625
3
[]
no_license
<?php function h($s){ return htmlspecialchars($s, ENT_QUOTES, "UTF-8"); } $apiKey = 'AIzaSyBoVoB_Po-7mGV8Hf0TQo7F-NFrrDrQaE4'; $longUrl = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; // 短縮 $url = 'https://www.googleapis.com/urlshortener/v1/url?key=' . $apiKey; $param = json_encode(array('longUrl'=> ...
true
c390e75c9cdd21194fd3e24345f89396dcd7a1bd
PHP
i-am-tom/schemer
/test/Validator/Boolean.php
UTF-8
3,043
2.640625
3
[ "ISC" ]
permissive
<?php namespace Schema\Test\Validator; use Schemer\Validator\{Boolean,ValidatorAbstract}; describe(Boolean::class, function () { context('Standard', function () { it('accepts booleans', function () { expect( (new Boolean) ->validate(true) ...
true
fb3530f4705e74b48f7fe2aeb94a553201c94259
PHP
macintoshplus/school-cqrs-php
/src/Jbnahan/ES/DoctrineRepository.php
UTF-8
1,110
2.59375
3
[]
no_license
<?php namespace Jbnahan\ES; use LiteCQRS\DomainEventProviderRepositoryInterface; use LiteCQRS\EventProviderInterface; use LiteCQRS\EventStore\EventStoreInterface; use LiteCQRS\Bus\IdentityMap\IdentityMapInterface; class DoctrineRepository implements DomainEventProviderRepositoryInterface { private $event_store; ...
true
e7a0ebac3edf529e8d4cab0aedfde2fb9ad9e052
PHP
rino-soft/5t5v20
/application/views/menu_views/menu_superior_view.php
UTF-8
660
2.546875
3
[]
no_license
<?php // muetra los menus padres encima en el div menu ?> <ul> <?php foreach ($datos_menu_superior as $reg) { if (isset($datos_item_padre) and $datos_item_padre == $reg->id) { echo "<li><span class='mayusculas f10 milink' onclick='redirigir(\"".base_url().$reg->controlador."/".$reg->metodo...
true
9d5fa867dc0e6afaf07d1efc57157538709d4467
PHP
malakaton/apiRestLogin
/src/Libs/CustomExceptions.php
UTF-8
424
2.75
3
[]
no_license
<?php namespace Libs; use Symfony\Component\Config\Definition\Exception\Exception; /** * Use for custom Exception */ class CustomExceptions extends Exception { public function __construct($message, $code = 0, Exception $previous = null) { parent::__construct($message, $code, $previous); } pub...
true
d47ee8e23b486ca3d5a7c36e1a0b650260fe833e
PHP
liangent/mediawiki-maintenance
/wbLinkTitlesLocal.php
UTF-8
16,431
2.53125
3
[]
no_license
<?php require_once( dirname( __FILE__ ) . '/Maintenance.php' ); class WbLinkTitlesLocal extends Maintenance { public function __construct() { parent::__construct(); $this->addOption( 'bot', 'Mark edits as "bot".', false ); $this->addOption( 'report', 'Report conflicts automatically to the given page.', false, ...
true
c5f3e38af70b237c9b5e65f41123b37c5af19939
PHP
arnold-almeida/Resources
/Controller/Component/MessagesComponent.php
UTF-8
4,028
2.90625
3
[]
no_license
<?php class MessagesComponent extends Component { public $name = 'Messages'; public $messages = array(); public $hasCollectedValidationErrors = false; public $components = array('Session'); /** * Wrapper for setting 'flash' messages. * You may call several times, they will be joined ...
true
52c17db0c67959ad8de37a4eaa80d948efcac372
PHP
Internaltide/Demo
/app/Entities/PrivilegeEntity.php
UTF-8
1,013
2.640625
3
[ "MIT" ]
permissive
<?php namespace App\Entities; use App\Entities\IEntity; use App\Exceptions\ActionException; use App\Repositories\Authorization\PrivilegeRepo; class PrivilegeEntity extends IEntity { public function __construct(PrivilegeRepo $repository) { $this->repository = $repository; } public function gr...
true
59800ed77a82d78278ea56d06ef708a956ad2f6a
PHP
lahuudat/phpthaydung
/libraries/db_menu.php
UTF-8
369
2.671875
3
[ "CC-BY-4.0", "CC-BY-3.0" ]
permissive
<?php function get_menu(){ global $con; $sql= "select * from category"; $result= mysqli_query($con, $sql); $data=array(); while ($row= mysqli_fetch_assoc($result)){ if($row['parent_id']==null){ $ma=$row['cat_id']; $data[$ma]=$row; $data[$ma]['child']=array(); } else{ $ma=$row['parent_id']; $da...
true
8a0365006a7aa56a8506dfbb339e96bb7357956d
PHP
JohannesBeranek/steroid
/storage/class.DBColumnDefinition.php
UTF-8
31,832
2.53125
3
[]
no_license
<?php /** * @package steroid\db */ require_once STROOT . '/storage/interface.IDBColumnDefinition.php'; require_once STROOT . '/util/class.ClassFinder.php'; // FIXME: require all needed classes /** * class that stores, fetches and generates column definitions for a single column * * @package steroid\db */ class...
true
0d2a1fefaac710813c195e0f680f4cefc6e4a7c0
PHP
kadet1090/SocketLib
/AbstractClient.php
UTF-8
2,007
2.65625
3
[]
no_license
<?php /** * Copyright (C) 2014, Some right reserved. * @author Kacper "Kadet" Donat <kadet1090@gmail.com> * @license http://creativecommons.org/licenses/by-sa/4.0/legalcode CC BY-SA * * Contact with author: * Xmpp: kadet@jid.pl * E-mail: kadet1090@gmail.com * * From Kadet with love. */ namespace Kadet\Socke...
true
71ab5a5aef1c2a41b31df0b21a120d747dffba12
PHP
linepogl/phpx
/src/AnyLanguage/Syntax_ParseNode.php
UTF-8
1,587
2.875
3
[]
no_license
<?php class ParseNode extends SyntaxNode implements ArrayAccess,Countable { /** @var NonTerminal */ private $non_terminal; public function __construct( NonTerminal $non_terminal ){ $this->non_terminal = $non_terminal; } public function GetNonTerminal(){ return $this->non_terminal; } public function Is( $symbol )...
true
9a601603b42294a6255425e34a5ba76145e4f5da
PHP
jakubenglicky/web-monitoring
/src/WebMonitoring/Controls/Errors.php
UTF-8
909
2.90625
3
[]
no_license
<?php namespace jakubenglicky\WebMonitoring\Controls; class Errors { public function sendMail($to, $subject, $text) { $headers = 'From: Web Monitoring <monitor@englicky.net>' . "\r\n" . 'Reply-To: noreply@englicky.net' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); mail(...
true
b7281af16de692ffc71a6e7cabfd8809586567ed
PHP
fbsouzas/design-pattern
/src/Items/ItemCacheProxy.php
UTF-8
699
3
3
[]
no_license
<?php declare(strict_types=1); namespace Fbsouzas\DesignPattern\Items; class ItemCacheProxy extends Item { private Item $item; private array $cached; public function __construct(Item $item) { $this->item = $item; $this->cached = []; } public function value(): float { ...
true
e86b60de6cd167776f47180588b33f6dcb3240a0
PHP
jimarathomas2021/IOT-Scanner
/Usefull information/Snippets of PHP/index17.php
UTF-8
571
3.25
3
[]
no_license
<!DOCTYPE html> <!--index02.php--> <html> <head> <meta charset = "utf-8"> <title>PHP Variables</title> </head> <body> <form method = "GET"> <input type = "text" name = "value1"> <input type = "text" name = "value2"> <p><button> Submit </button></p> </form> <?PHP $from = $_GET['value1']; $to = $...
true
542cf9ec73c170619ec5850059296adf120aaf29
PHP
macjoeUmanah/signalwire
/application/vendor/clue/ami-react/src/Client.php
UTF-8
3,482
2.609375
3
[ "MIT" ]
permissive
<?php namespace Clue\React\Ami; use Clue\React\Ami\Protocol\Event; use Clue\React\Ami\Protocol\Action; use Evenement\EventEmitter; use React\Stream\Stream; use Clue\React\Ami\Protocol\Parser; use React\Promise\Deferred; use Exception; use UnexpectedValueException; use Clue\React\Ami\Protocol\Message; use Clue\React\A...
true
1f1278aab137809eb2fde2d4a05c6f169df9807f
PHP
mircare/Google-Trends-with-Solr-PHP-UI
/index.php
UTF-8
19,137
2.578125
3
[ "Apache-2.0" ]
permissive
<?php // SOLR PHP Client UI // // PHP-UI of Open Semantic Search - http://www.OpenSemanticSearch.org // // 2011 - 2015 by Markus Mandalka - http://www.mandalka.name // // Free Software - License: GPL # do not change config here, use config/config.php! #config defaults $cfg['solr']['host'] = 'localhost'; $cfg['solr...
true
0979ce0f161b4960744f748e3803203ae1687064
PHP
gianpieryup/Login-Php
/Modelo/validador.php
UTF-8
3,888
3.1875
3
[ "Apache-2.0" ]
permissive
<?php class Validador { public static function validarRegistro($datos){ global $dbAll; $errores=[]; $datosFinales = []; foreach ($datos as $posicion => $valores) { if(!is_array($datos[$posicion])){ $datosFinales[$posicion] = trim($valores); } // if($posic...
true
77cf734b193bf6415ca884da184cbc8fc40f28cb
PHP
sasezaki/PEAR2_VendorCommands
/src/PEAR2/VendorCommands/Main.php
UTF-8
2,354
2.625
3
[]
no_license
<?php /** * PEAR2\VendorCommands\Main * * PHP version 5 * * @category Yourcategory * @package PEAR2_VendorCommands * @author Your Name <handle@php.net> * @copyright 2011 Your Name * @license http://www.opensource.org/licenses/bsd-license.php New BSD License * @version SVN: $Id$ * @link http://...
true
3e59fa11106114d06cfaf046311fd368eb74ba4b
PHP
aurzaj/weather-dress
/app/Helpers/FakerCustom.php
UTF-8
2,641
2.765625
3
[ "MIT" ]
permissive
<?php //Creating custom Faker class namespace App\Helpers; use Faker\Provider\Base; class FakerCustom extends Base { protected static $warmTopClothes = [ 'coat', 'jacket' ]; protected static $warmMidClothes = [ 'pants', 'trousers', 'jeans', ]; protected static $warmBotShoes= [...
true
f450c2f7e4d5a054d0c5bf0208efb60632782135
PHP
Faulo/slothsoft.net
/mod/extensions/data/update-xpi.php
UTF-8
4,963
2.515625
3
[]
no_license
<?php namespace Slothsoft\CMS; $ret = ''; $ret .= sprintf('[%s] Starting updating extensions...%s%s', date(DATE_DATETIME), PHP_EOL, PHP_EOL); $docList = $this->getResourceDir('extensions/update', 'status'); foreach ($docList as $id => $doc) { // $id = substr($id, 0, -4); $updateFile = $doc->docum...
true
51238b6ce4f4600789cef4f54f5f9ed9f0727aa2
PHP
MMU-TWT-Class-Oct-2015/G14C_University_Subject_Selection_System
/add_subject.php
UTF-8
3,896
2.828125
3
[]
no_license
<?php include './database_conn.php'; include_once './session_check.php'; ?> <!DOCTYPE html> <html> <head> <meta charset = "utf-8"> <title>Add Subject</title> <link rel="stylesheet" type="text/css" href="./beauty.css"> <script type="text/javascript"> // if checked box + registered subject...
true
8bca5b61ddc5260cb021a1f9eb951a54f1287378
PHP
SergioGeeK7/php
/Favoritos/verlogs.php
UTF-8
7,788
2.84375
3
[]
no_license
<?php session_start(); // inicamos la sesion para coger las variables $codigo= $_SESSION['permisos']; if ($codigo == 1) { # code... // llamamos las variables para ver si las cogio echo("Tu Usuario es ".$_SESSION["usuario"]."<br>Tu contrasena es ".$_SESSION["contrasena"]); $usuario = $_SESSION['usuario']; $c...
true
1a73d900a7fd748ded1d85e168eba756c3dcec88
PHP
vircarrera/terapiascontextuales
/blocks/block-filter-posts.php
UTF-8
574
2.578125
3
[]
no_license
<!-- Este filto se hace usando las categorías. Su resultado se controla en category.php --> <?php $terms = get_terms('category'); if (!empty($terms) && !is_wp_error($terms)) : ?> <div class="b-filter posts"> <ul> <?php foreach ($terms as $term) : $term_link = get_term_link($term); ?> ...
true
275e1f982f21ec870bc1e352f794cd6eb3e50c6f
PHP
tectronics/bpmerchant
/classes/clsMail.php
UTF-8
5,604
2.734375
3
[]
no_license
<? //ver 0.01 class SendMail{ var $ToArray=array(); var $FromName; var $FromEmail; var $FileArray=array(); var $Subject; var $headers; var $BodySimple; var $BodyPlain; var $BodyHTML; var $Template; function Template($Path){ $linesz= filesize($Path)+1; $fp= fopen($Path, '...
true
701fe8c91835e90ccc5a4cf92879607ee7f18c8f
PHP
kolomoetsanvi/cosmetolog
/app/Repositories/PermissionsRepository.php
UTF-8
1,310
2.671875
3
[]
no_license
<?php namespace App\Repositories; use App\Repositories\RolesRepository; use App\Permission; use Gate; use Illuminate\Http\Request; class PermissionsRepository extends Repository{ protected $role_rep; // репозиторий ролей public function __construct(Permission $permission, RolesRepository $role_rep ) { ...
true