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
57d16fe7ce9cb9bd0b3e5bd6d3668153bc2d393f
PHP
dyonenedi/lidiun_framework_v6
/autoload.php
UTF-8
2,343
2.671875
3
[ "MIT" ]
permissive
<?php /********************************************************** * Lidiun PHP Framework 6.0 - (http://www.lidiun.com) * * @Created in 26/08/2013 * @Author Dyon Enedi <dyonenedi@hotmail.com> * @By Dyon Enedi <dyonenedi@hotmail.com> * @Contributor Gabriela A. Ayres Garcia <gabriela.ayres.garcia@gmail.com>...
true
e317330b9f8f5ad47ec89567d1f74e7c69942f22
PHP
taoyu65/UMIAdmin
/src/Umi/DataTable/umiDataTableAbstract.php
UTF-8
491
2.734375
3
[ "MIT" ]
permissive
<?php namespace YM\Umi\DataTable; use YM\Umi\Contracts\PrintHtml\umiDataTableInterface; abstract class umiDataTableAbstract implements umiDataTableInterface { public function header() { $html = <<<UMI search area showing. UMI; return $html; } public function tableBody() {...
true
31acdf683471f283c70b0566dc6bdb6995929b9e
PHP
zhangjiquan1/phpsourcecode
/sdfsafe/tangframework/Tang/Database/Sql/Query/Grammar/Pgsql.php
UTF-8
3,255
2.53125
3
[ "Apache-2.0" ]
permissive
<?php // +----------------------------------------------------------------------------------- // | TangFrameWork 致力于WEB快速解决方案 // +----------------------------------------------------------------------------------- // | Copyright (c) 2012-2014 http://www.tangframework.com All rights reserved. // +-----------------------...
true
1f1a7d7fb567776926e26f51e384795df61442fa
PHP
Dreamisfly/weixin
/微信公众平台开发-消息回复功能源代码/多图文回复/V1-简单多图文回复/responseMultiNews.func.inc.php
UTF-8
2,020
2.65625
3
[]
no_license
<?php /** * 微信公众平台-多图文回复函数 * ================================ * Copyright 2013-2014 David Tang * http://www.cnblogs.com/mchina/ * http://www.joythink.net/ * ================================ * Author:David * 个人微信:mchina_tang * 公众微信:zhuojinsz * Date:2013-10-11 */ /** * _response_news() 返回多图文格式信息 * @param $o...
true
7f03acd261657161fd4a9758b7655b0e362122b3
PHP
FabienM/phpeip
/src/Integration/Message/ErrorMessage.php
UTF-8
1,034
3.046875
3
[ "MIT" ]
permissive
<?php namespace Phpeip\Integration\Message; use Phpeip\Integration\Exception\InvalidPayloadException; /** * A message implementation that accepts an Exception payload. Once created this object is immutable. * @author Fabien Meurillon <fabien@meurillon.org> */ class ErrorMessage extends GenericMessage { /** ...
true
1f7969784380a253b4a3921f930da6ba720ddb4c
PHP
james-blanton/videographer-portfolio
/blog/edit_video.php
UTF-8
5,368
2.890625
3
[]
no_license
<?php /*------------------------------------------- FILE PURPOSE This file is found via the admin dashboard. In short, this is used to edit existing videos. All of the content edited in this file is related to the "video" table. /*------------------------------------------*/ include("../header.php"); // database con...
true
8915b5860b5c63819661937e632882c30cb7a1bb
PHP
magetoh/Bash.Box
/content/plugins/wp-defender/app/module/hardener-module/component/class-wd-disable-error-display.php
UTF-8
7,026
2.640625
3
[]
no_license
<?php /** * Class: WD_Disable_Error_Display */ /** * @author: Hoang Ngo */ class WD_Disable_Error_Display extends WD_Hardener_Abstract { public function on_creation() { $this->id = 'disable_error_display'; $this->title = __( "Hide error reporting", wp_defender()->domain ); $this->can_revert = ...
true
781bf08b8fb9e11dbbb9846e12b2f298eac8c128
PHP
athlan/wordpress-custom-fields-permalink-plugin
/test/integration/suites/MetaKeyPermalinkStructure/PostWithDuplicatedMetaKey.php
UTF-8
2,479
2.59375
3
[ "MIT" ]
permissive
<?php /** * Tests case. * * @package WordPress_Custom_Fields_Permalink */ namespace CustomFieldsPermalink\Tests\Integration\MetaKeyPermalinkStructure; use BaseTestCase; /** * Class PostWithDuplicatedMetaKey */ class PostWithDuplicatedMetaKey extends BaseTestCase { /** * Test case. */ function test_gener...
true
a2ef1d9c6da0c0a9e34327f19232139b7ef8fd68
PHP
infolock/PHPToolset
/classes/FileManager/Upload.php
UTF-8
13,275
3.03125
3
[ "MIT" ]
permissive
<?php /** * @author Jonathon Hibbard * @desc A File Upload class. * * @throws MyProject\FileManager\Exception * * @uses * Services - Services.php * Mimetype - Mimetype.php * Exception - Exception.php * * @example * $uploadManager = new \MyProject\FileManager\Upload(); * # This is the default and is...
true
e7bf58e1ddc8c260e950013539284cb394cc409a
PHP
npsopheak/flexcms-developer
/src/Api/SubscriptionController.php
UTF-8
1,693
2.546875
3
[ "MIT" ]
permissive
<?php namespace FlexCMS\BasicCMS\Api; use \Input; use \Hash; use \Uuid; use FlexCMS\BasicCMS\Models\Subscription; use FlexCMS\BasicCMS\Models\Media; use \Auth; use \DateTime; use \DateInterval; use \Validator; /* Handling check if email has already been subscribed or not Subscribe the email And unsubscribe...
true
a18376e8cd63c7b3a8242bca001d161295460936
PHP
Mahesh5874/kupcakes
/livesearch.php
UTF-8
1,136
2.59375
3
[]
no_license
<?php $connect = mysqli_connect("localhost", "root", "", "my"); $output = ''; if(isset($_POST["query"])) { $search = mysqli_real_escape_string($connect, $_POST["query"]); $query = " SELECT * FROM products WHERE p_name LIKE '%".$search."%' OR Description LIKE '%".$search."%' OR type LIKE '%".$search....
true
9c0dfb4f0766f2896c160aa021d75450c0208eef
PHP
BrownySprite47/blog.loc
/app/View/Index.php
UTF-8
907
2.765625
3
[]
no_license
<?php namespace App\View; use Core\AbstractView; class Index extends AbstractView { protected $config; protected $title; protected $data; protected $css; protected $js; /** * @param $page * @param array $data * @throws \Exception */ public function view($page, $dat...
true
ecacc32df786badd6fae4d16852a71160307f840
PHP
smister/deluxcms
/vendor/deluxcms/post/models/search/TagSearch.php
UTF-8
789
2.546875
3
[ "BSD-3-Clause" ]
permissive
<?php namespace deluxcms\post\models\search; use deluxcms\post\models\Tag; use yii\data\ActiveDataProvider; class TagSearch extends Tag { public function rules() { return [ ['name', 'string'], ]; } public function search($params) { $query = self::find(); ...
true
3c6ba08794fa8fd5c99b743f8599be0efc8e458f
PHP
jeremykenedy/laravel-material-design
/app/Http/Middleware/CheckCurrentUser.php
UTF-8
793
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Middleware; use Auth; use Closure; use Illuminate\Http\Request; use Illuminate\Support\Facades\Log; use Illuminate\Support\Facades\Route; class CheckCurrentUser { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure ...
true
1dde15d1e6f9771f5f110dc97730e46c356992c6
PHP
juanaguillon/other-projects
/buy-testing-mvc/controllers/roots.php
UTF-8
428
3.046875
3
[]
no_license
<?php class roots{ private $routes = []; public function add_route($route,$controller,$method){ $this->routes[$method] = ["name"=>$route,"controller"=>$controller,"method"=>$method]; } public function read_route($method){ if (array_key_exists($method,$this->routes)) { return $this->routes...
true
984a66403517f3097d8959ee3321e5f4f1f79892
PHP
thekid/xp-experiments
/arena/lang/src/xp/compiler/ast/ClassAccessNode.class.php
IBM852
452
2.546875
3
[]
no_license
<?php /* This class is part of the XP framework * * $Id$ */ uses('xp.compiler.ast.Node'); /** * Represents class access * * <code> * self::class; * </code> */ class ClassAccessNode extends xpcompilerastNode { public $type= NULL; /** * Constructor * * @param ...
true
9f4f4b9f9057b79487b9cff100abb72c00d14f12
PHP
nisanov/hacker-rank-answers
/src/Miscellaneous/MinimumSwaps.php
UTF-8
999
3.5625
4
[]
no_license
<?php namespace HackerRank\Miscellaneous; use HackerRank\HackerRank; class MinimumSwaps extends HackerRank { protected static $defaultName = 'miscellaneous:minimum-swaps'; protected static array $inputs = [ [4, 3, 1, 2], [4,3,2,1], [7,2,4,3,5,6,1], ]; protected static array ...
true
bc5ccc2bb0434be4c2165d83856db91f534e9049
PHP
thecodingmachine/magic-query
/src/SQLParser/Node/In.php
UTF-8
439
2.515625
3
[]
no_license
<?php namespace SQLParser\Node; use Doctrine\DBAL\Platforms\AbstractPlatform; use Mouf\Database\MagicQueryException; /** * This class represents an In operation in an SQL expression. * * @author David Négrier <d.negrier@thecodingmachine.com> */ class In extends AbstractInListOperator { /** * Returns the ...
true
b883b738dad3e5725e7fce4bc0d5910c73d0e016
PHP
hanjuntao01/yiheng
/mobile/database/migrations/2017_09_26_032544_change_team_log_table.php
UTF-8
985
2.5625
3
[]
no_license
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class ChangeTeamLogTable extends Migration { protected $tableName = 'team_log'; /** * 运行数据库迁移 * * @return void */ public function up() { // 判...
true
d49f9ed9f77746dfaa67a9beb3393cb256cdea69
PHP
hkmujj/m-9939-com
/library/App/Model/Attachment.php
UTF-8
1,183
2.546875
3
[]
no_license
<?php /** **图集 model **/ class App_Model_Attachment extends QModels_Article_Table{ protected $_name = 'attachment'; function init(){ parent::init(); $this->_dbzx=$GLOBALS['dbzx']; } /** * 根据文章的 id, 得到其对应的图集 * @author gaoqing * @date 2016-03-07 * @param int $articleid 文章id * @ret...
true
d4a9858dcdd0823f6dd42f979fce44f35dff1526
PHP
tunbridgep/listgen
/php_lib/db.php
UTF-8
1,207
2.9375
3
[]
no_license
<?php class db { public function GetDB() { global $db_host; global $db_user; global $db_pass; global $db_schema; $mysqli = new mysqli($db_host,$db_user,$db_pass,$db_schena); if ($mysqli->connect_errno) die("Failed to connect to MySQL: " . $mysqli->con...
true
189ec3c77f9fed5021d85fbb78068977f294d92b
PHP
sashaPlavi/rest_my_blog
/api/post/read.php
UTF-8
916
2.734375
3
[]
no_license
<?php header('Access_Control_Allow_Origin: *'); header('Content-type: application/json'); include_once '../../config/Database.php'; include_once '../../models/Post.php'; //instantiate db $database = new Database(); $db = $database->connect(); $post = new Post($db); $res = $post->read(); $row = $res->rowCount(); ...
true
e2007342892b58ac60c0acc675becc89f4e35926
PHP
nettohadi/POS-V2
/database/migrations/2020_12_06_100345_create_products_table.php
UTF-8
2,064
2.703125
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateProductsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('products', fun...
true
d897b7b3b5a28388f3268ac8d2bcde84ba5c0031
PHP
sora-coder/php7-8_udemy
/2-6.php
UTF-8
239
3.484375
3
[]
no_license
<?php $sum =10 + 5; //変数の再代入 // $sum = $sum + 20; $sum += 20; $sum -= 5; $sum *= 2; $sum /= 3; //インクリメント・デクリメント // $sum += 1; $sum++;//インクリメント $sum--;//デクリメント echo $sum;
true
6915c1bbe7237ece71d33ff9f99fb3b876467113
PHP
rodrigodebenito/designdev
/apps/screen_grabs/index.php
UTF-8
3,737
3
3
[]
no_license
<?php define('ABSPATH', '/web/design/docs/grabs'); $path = ABSPATH; function findexts($filename) { $filename = strtolower($filename) ; $exts = split("[/\\.]", $filename) ; $n = count($exts)-1; $exts = $exts[$n]; return $exts; } function get_file_from_dir() { // open the directory $dir = opendir (ABSPATH...
true
e91392bdfb1c298976ef8d8fc90e766d004de67d
PHP
66ru/gpor-contrib
/_lib/ezcomponents-2009.2/Webdav/src/plugins/lock/handlers/options.php
UTF-8
1,941
2.6875
3
[ "BSD-3-Clause" ]
permissive
<?php /** * File containing the ezcWebdavLockOptionsRequestResponseHandler class. * * @package Webdav * @version 1.1.3 * @copyright Copyright (C) 2005-2009 eZ Systems AS. All rights reserved. * @license http://ez.no/licenses/new_bsd New BSD License * * @access private */ /** * Handler class for the OPTIONS re...
true
e70f15208ab206bb56b018597a73a9a7650dc5a0
PHP
codedokode/board-test-scripts
/db-truncate.php
UTF-8
277
2.5625
3
[]
no_license
<?php require_once __DIR__ . '/lib/lib.php'; if (empty($argv[1]) || $argv[1] != 'yes') { die("Usage: script yes\ntruncates post & comment tables\n"); } $pdo = getPdo(); $pdo->exec("TRUNCATE post"); $pdo->exec("TRUNCATE coments"); echo "All records truncated\n";
true
32387dd605e08f391f42da336a1be7e83ec97cfc
PHP
fbraem/kwai-api
/src/kwai/Modules/Coaches/Infrastructure/Repositories/UserDatabaseRepository.php
UTF-8
1,396
2.625
3
[ "MIT" ]
permissive
<?php /** * @package Modules * @subpackage Coaches */ declare(strict_types=1); namespace Kwai\Modules\Coaches\Infrastructure\Repositories; use Kwai\Core\Domain\Entity; use Kwai\Core\Infrastructure\Database\Connection; use Kwai\Core\Infrastructure\Database\DatabaseRepository; use Kwai\Core\Infrastructure\Repositori...
true
efab38d797ddceb7b09058066f3b7f2e75b9be32
PHP
KJP8/CS15-P2
/php/logic.php
UTF-8
2,019
3.453125
3
[]
no_license
<?php # Initialize variables $symbols = array('!','@','#','$','%','^','&','*','?','-'); $errormsg = ''; $defaultVal = 4; # Receive the user input. If the user does not provide input, use default value of 4. if (isset($_GET['numWord'])) { $input = $_GET['numWord']; } else { $input = $defaultVal; } # Check if inpu...
true
7e63f3fa29251cd9119805a3c1218dcae8b547ca
PHP
BionNetwork/apibion
/src/BiBundle/Security/Acl/Resource/Attribute/AttributeInterface.php
UTF-8
553
2.515625
3
[]
no_license
<?php /** * @package BiBundle\Security\Acl\Resource\Attribute * @author miholeus <me@miholeus.com> {@link http://miholeus.com} * @version $Id: $ */ namespace BiBundle\Security\Acl\Resource\Attribute; /** * Interface AttributeInterface * Basic methods for every attribute in resource */ interface Attrib...
true
05bfb7138038d86cfd94d630eb33310630c04d57
PHP
juliend2/php-sweetener
/tests/parser.php
UTF-8
6,020
2.734375
3
[ "MIT" ]
permissive
<?php require_once('simpletest/autorun.php'); include realpath(dirname(__FILE__)."/../phpsweetener.php"); class TestParser extends UnitTestCase { function setUp() { $this->parser = new Parser(); } function testComments() { $this->assertEqual(t_parse($this, '# comment'), '# comment'); $this->assertE...
true
41ecc62b99d72a47675123a9f4ecc2da7695040f
PHP
fd00/phozzil
/src/phozzil/lang/ProcessReader.php
UTF-8
548
2.90625
3
[]
no_license
<?php namespace phozzil\lang; use phozzil\io\FileCloseable; use phozzil\io\FileReadable; use phozzil\io\Reader; /** * プロセスからの入力ストリームを表現するクラスです。 * @see Process */ class ProcessReader extends Reader { use FileCloseable; use FileReadable; /** * プロセスからの入力ストリームをインスタンス化します。 * @internal * @...
true
0dbcb87a5688e60820cead2b5c77ae747b554c42
PHP
AmirSejdinovic/WordPress-plugin-for-allow-users-to-create-recipes-and-rate-them
/process/rate-recipe.php
UTF-8
1,871
2.9375
3
[]
no_license
<?php function r_rate_recipe(){ //global wordpress variable for manupulating with database global $wpdb; $output = ['status' => 1]; //absint function return the absolute intiger $post_ID = absint($_POST['rid']); //round function will round the rating, second parametar is the depth...
true
5521384fcff6929a40e0787b48eef21eda3d5caa
PHP
Ajinkya-Nawarkar/Maroon-Gaming-co
/Database/dbAPI.php
UTF-8
8,185
2.984375
3
[]
no_license
<?php require_once(dirname(__DIR__)."/Backend_Models/user.php"); class dbAPI { //Database connection information public $connection; public function __construct(){ $hn = "pluto.cse.msstate.edu"; $un = "cu81"; $pw = "maroongaming"; $db = "cu81"; $this->connection = new mysqli($hn, $un, $pw...
true
5f20b74a4cb490ee20a4fb9f5ea091afef9112c7
PHP
manhnguyen1998/benedu
/database/seeds/CoursesTableSeeder.php
UTF-8
2,698
2.875
3
[]
no_license
<?php use App\Course; use Faker\Generator as Faker; use Illuminate\Database\Seeder; class CoursesTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run(Faker $faker) { Course::create([ 'title' => 'Mathematical Analysis', ...
true
4410607ddf8ba666b0bdbccaccda0fea6b4a4b35
PHP
dailyuno/KR_Speed_Test
/Backend/Task2/index.php
UTF-8
6,992
2.6875
3
[]
no_license
<html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> <link rel="stylesheet" href="calendar.css"> </head> <body> <?php class Calendar { privat...
true
610fff86e5784edaff1ca5a4a94ed0e4b858d82d
PHP
mariogm89/calculator
/php/operation.php
UTF-8
1,162
3.078125
3
[]
no_license
<?php class calc { public static function add($num1,$num2){ $add=$num1+$num2; return $add; } public static function subtract($num1,$num2){ $subtract=$num1-$num2; return $subtract; } public static function multiply($num1,$num2){ $multiply=$num1*$num2...
true
eef710f81cd8dd339522ad345cfa2f96c8101839
PHP
lukashroch/chemlab
/app/Http/Requests/BrandCheckRequest.php
UTF-8
785
2.6875
3
[ "MIT" ]
permissive
<?php namespace ChemLab\Http\Requests; use ChemLab\Rules\UniqueBrand; class BrandCheckRequest extends Request { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize(): bool { return true; } /** * Get the va...
true
fe866bfdeee26d5773a2a3b359f9bec82228f949
PHP
vvdenisov/multideamon
/exmpl/DeamonExmpl.php
UTF-8
733
2.703125
3
[]
no_license
<?php use \Process\MultiThreadDeamon; /** * * @author walkerror */ class DeamonExmpl extends MultiThreadDeamon { protected $_template_timeout_queue = array(); protected $port = 6795; // port for SOCKET public function getName() { return 'exmpl_deamon'; } public function initChi...
true
8f690ab10d5e99f1f05d480685feaee7a5ab22d2
PHP
artweb-ou/trickster-cms
/homepage/modules/structureElements/passwordReminder/structure.class.php
UTF-8
1,268
2.9375
3
[ "MIT" ]
permissive
<?php class passwordReminderElement extends structureElement { public $dataResourceName = 'module_passwordreminder'; public $defaultActionName = 'show'; public $role = 'content'; protected function setModuleStructure(&$moduleStructure) { $moduleStructure['title'] = 'text'; $moduleS...
true
ad9f2fa465f3327f1c505e8e89cbd508547dab58
PHP
Jona-Ougo/contact
/contact.php
UTF-8
951
2.984375
3
[]
no_license
<?php // Declare variables $servername = ""; $username = ""; $password = ""; $database = ""; // Create connection $conn = mysqli_connect($servername, $username, $password, $database); // Check connection if (!$conn){ die ("Connection failed: ".mysqli_connect_error()); } else { echo "Connected success...
true
3975efe2452bb1196ba940a30a4cd8d2aa8d66fc
PHP
charith85/jobeet
/src/Ens/JobeetBundle/DataFixtures/ORM/LoadCategoryData.php
UTF-8
1,624
2.578125
3
[ "MIT", "BSD-3-Clause" ]
permissive
<?php /** * Created by PhpStorm. * User: C.MAHAWATTA * Date: 9/11/14 * Time: 4:24 PM */ namespace Ens\JobeetBundle\DataFixtures\ORM; use Doctrine\Common\DataFixtures\AbstractFixture; use Doctrine\Common\DataFixtures\Doctrine; use Doctrine\Common\DataFixtures\OrderedFixtureInterface; use Doctrine\Common\Persiste...
true
3e3d2e90199a8677af50da340b851bc5bf7e4101
PHP
DuckThom/FormBuilder
/src/Mro95/FormBuilder/FormFields/FieldGroup.php
UTF-8
748
2.859375
3
[ "MIT" ]
permissive
<?php namespace Mro95\FormBuilder\FormFields; use Mro95\FormBuilder\View\GenericView; class FieldGroup implements FieldInterface { private $name = ''; private $fields = []; public function __construct() { } public function getName() { return $this->name; } public functi...
true
5f144a34a888c5a45769a1e5b078c20f68058895
PHP
MKelm/papaya-cms
/papaya-lib/system/Papaya/File/System/Action/Script.php
UTF-8
1,774
2.6875
3
[]
no_license
<?php /** * Execute a local script * * @copyright 2012 by papaya Software GmbH - All rights reserved. * @link http://www.papaya-cms.com/ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU General Public License, version 2 * * You can redistribute and/or modify this script under the terms of the GNU Ge...
true
e654d269c21a8460d01c3f6ef5bc2c8979af7630
PHP
gregorybesson/PlaygroundGame
/src/Entity/TreasureHunt.php
UTF-8
5,183
2.671875
3
[ "MIT" ]
permissive
<?php namespace PlaygroundGame\Entity; use PlaygroundGame\Entity\Game; use Doctrine\ORM\Mapping as ORM; use Doctrine\ORM\Mapping\HasLifecycleCallbacks; use Laminas\InputFilter\InputFilter; use Laminas\InputFilter\Factory as InputFactory; use Laminas\InputFilter\InputFilterAwareInterface; use Laminas\InputFilter\InputF...
true
bda480a3a69dd7421f67a028a9c1c14b00b9c40b
PHP
k-ids/neclife
/application/core/MY_Controller.php
UTF-8
14,549
2.546875
3
[]
no_license
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); /** * Class MY_Controller */ class MY_Controller extends CI_Controller { public $controller; public $action; public $layer = 'frontend'; public $layout; public $title; public $meta; public $breadcrumb; publ...
true
9bf1054286a7518a8a0ca394b66e7409f35deb93
PHP
100s4u/simple-admin-panel
/admin-panel/upload.php
UTF-8
2,153
2.953125
3
[]
no_license
<?php require_once "check.php"; //Checking for a session if(isset($_POST['submit'])){ define("UPLOAD_DIR", "../images/"); $dir = $_POST["select"]; //Correction of accepted directory names if($dir != '/'){ $dir = $dir."/"; } else{ $dir = ""; } //PHP global rule for determining the size of images...
true
c838fe057666d2831a5a2889bb2893198ced1a9e
PHP
jcroll/google-api-adwords-php
/src/Google/Api/Ads/Common/Util/OAuthHandler.php
UTF-8
6,706
2.53125
3
[ "Apache-2.0" ]
permissive
<?php /** * An abstract class for Google OAuth flow. * * PHP version 5 * * Copyright 2011, Google Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * ...
true
05e642a73e179642d987c051ce58849dac37c397
PHP
mfpx/y2_gp_proj
/cat_edit.php
UTF-8
4,368
2.84375
3
[]
no_license
<?php /* * CS22220 Group 3 * Web booking system * edit.php developed by Nathan H. and David C. */ session_start(); require 'includes/cfg.php'; //database config require 'includes/lib.php'; //library // Create connection $conn = mysqli_connect($host, $username, $password, $database); // Check connection if (!$con...
true
9a8931171ba406e7381f8ce3ec420e39dd0b16c1
PHP
paule32/website
/lisp/car.php
UTF-8
1,016
2.515625
3
[ "MIT" ]
permissive
<div style="background-color:yellow;"> <hr> <b>Typ: Funktion</b> <hr> </div> <p> <b><font color="blue">Beschreibung</font></b> </p> Mittels <b>CAR</b> kann das erste Objekt in einer Liste ausgelesen werden. <p> <font color="blue"><b>Syntax:</b></font></p> <table> <tr><td>Anweisung</td><td>Resultat</td></tr> <tr...
true
485afd19ce3f984a9e2ce586f028e90557aab04c
PHP
xoops-pi/legacy
/XoopsEngine/lib/Engine/Legacy/Service/Logger.php
UTF-8
2,445
2.546875
3
[]
no_license
<?php /** * Legacy Log service class * * You may not change or alter any portion of this comment or credits * of supporting developers from this source code or any supporting source code * which is considered copyrighted (c) material of the original comment or credit authors. * This program is distributed in the ...
true
ab71878da737d1cb9151a0a6a3f2bf5442a6e34d
PHP
AlexBykovski/crm
/src/Entity/Printer.php
UTF-8
558
2.578125
3
[]
no_license
<?php namespace App\Entity; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity * @ORM\Table(name="printer") */ class Printer extends User { public function __construct() { parent::__construct(); $this->addRole(User::ROLE_PRINTER); } public function getSearchStatuses() { ...
true
df643e08a08f219256288d6fcb239de9629c3a9c
PHP
Jeremy-Jacquet/blog
/App/src/constraint/ImageValidation.php
UTF-8
4,702
3.15625
3
[]
no_license
<?php namespace App\src\constraint; /** * ImageValidation */ class ImageValidation { /** * @var ImageConstraint */ private $imageConstraint; /** * @var Alert */ private $alert; const SIZE_MAX_AVATAR = 200000; // Taille max en octets du fichier const WIDT...
true
8a5d620b8496f81e73c127d364965fecd53d249a
PHP
Antonyacosta78/standalone_classes
/php/Cookie.php
UTF-8
1,199
3.28125
3
[]
no_license
<?php /* PHP Class for create and managing cookies * AUTHOR: Mickael Souza * LAST EDIT: 2018-11-07 */ class Cookie { private $time; public function __construct() { $this->time = time() + 1*86400; } public static function setCookie($name, $value) { setcookie($name, $value, (new self)->time,'/'); } p...
true
88e9a51f05f4cdb5d53ea1bdd318f87ac22124b4
PHP
exatasmente/livewire-form
/app/Observers/UserObserver.php
UTF-8
448
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Observers; use App\Models\User; use App\Notifications\NewUserNotification; use App\Notifications\UserEmailUpdatedNotification; class UserObserver { public function created(User $user) { $user->notify(new NewUserNotification()); } public function updated(User $user) { ...
true
e11f883a4921fa7180c761f4cac6abc57790ebef
PHP
aboudouRachidi/cv
/application/models/cv_model.php
UTF-8
1,565
2.765625
3
[]
no_license
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Cv_model extends CI_Model { function __construct(){ parent::__construct(); } /** * Permet d'inserer un nouveau profil avec ses données * @param $data les données de l'utilisateurs */ pu...
true
eb835f207785861e2eb4ac0dd9ae3374082e11db
PHP
hari1008/wealth-benefit
/app/Models/Setting.php
UTF-8
1,265
2.796875
3
[ "MIT" ]
permissive
<?php /* * File: Setting.php */ namespace App\Models; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; use App\Helper\Utility\CommonHelper; class Setting extends Model { use SoftDeletes; protected $table = 'settings'; protected $primaryKey = 'setting_id'; pro...
true
3b3211466f016bd3c754d987802f58518dd9e0e7
PHP
Anuranga/iComment
/app/Exceptions/Handler.php
UTF-8
2,210
2.5625
3
[]
no_license
<?php declare(strict_types=1); namespace App\Exceptions; use Exception; use Illuminate\Auth\Access\AuthorizationException; use Illuminate\Database\Eloquent\ModelNotFoundException; use Illuminate\Http\Request; use Illuminate\Http\Response; use Illuminate\Validation\ValidationException; use Laravel\Lumen\Exceptions\Han...
true
1be18a1a15451130158cc12dc5dde56f03a33fca
PHP
Metin23/orient-backend-qrup
/day2/loops.php
UTF-8
502
3.046875
3
[]
no_license
<?php $n = 81; $sum_odd = 0; $sum_even= 0; for ($i=0; $i < $n ; $i++) { if($i%2==0) { $sum_even = $sum_even+$i; } else { $sum_odd = $sum_odd+$i; } } if ($sum_even>$sum_odd) { echo "Cut ededler boyukdur!"."<br>"; } else { echo "Tek ededler boyukdur!"."<br>"; } echo "Cut ededlerin cemi ->".$sum_even."\...
true
c02a0c6539d182d66c206704c8dcd705d8e816df
PHP
Nathanw/apple-news
/src/Urbania/AppleNews/Format/ContentInset.php
UTF-8
3,752
2.703125
3
[]
no_license
<?php namespace Urbania\AppleNews\Format; use Illuminate\Contracts\Support\Arrayable; use Urbania\AppleNews\Support\Assert; use Urbania\AppleNews\Support\BaseSdkObject; /** * The object for defining the space around the component content on one * or more sides.DeprecatedUse the padding property in ComponentLayout ...
true
b83f1998d53f158d5df6ac42cc0e060e81f03c75
PHP
aprchen/rest_api
/app/Component/Http/Request.php
UTF-8
4,021
2.953125
3
[ "Apache-2.0" ]
permissive
<?php /** * Created by PhpStorm. * User: sl * Date: 2017/12/4 * Time: 下午12:41 * Hope deferred makes the heart sick,but desire fulfilled is a tree of life. */ namespace App\Component\Http; use App\Constants\PostedDataMethods; class Request extends \Phalcon\Http\Request { protected $postedDataMethod = Posted...
true
c2668493a8f60747edc43854cf563f82b65ce10a
PHP
rzs840707/webapps_repository
/aphpkb/v.php
UTF-8
6,643
2.5625
3
[]
no_license
<?php // v.php // variables include('./config/config.php'); include_once('functions.php'); include "./classes/mysql.class.php"; $mysqldb = new mysql(); $mysqldb->connect(); $mysqldb->select(); $a=mifi($_REQUEST['a']); $aid = $_SESSION['user_id']; // admin override for viewing un-approved articles if($_...
true
fbca322f3919638c20880bc9ce1a510bfcacc135
PHP
marciafontes/enigma
/includes/conexao.class.php
UTF-8
910
2.890625
3
[]
no_license
<?php class dbconn { var $dblink; function dbconn($dbname, $dbhost="localhost", $dbuser="root", $dbpass="lprad"){ $this->dblink = mysql_connect($dbhost,$dbuser, $dbpass); mysql_select_db($dbname); } function stresc($str){ return mysql_real_escape_string($str); } ...
true
30efd723bd37ff6a221de65ebfdb1f299d698dee
PHP
dawsis33agrupo3/DAW-SIS33A-G3
/adminRegistroRT.php
UTF-8
2,235
2.640625
3
[]
no_license
<?php require_once 'fpdf/fpdf.php'; error_reporting(E_ALL & ~E_NOTICE); ini_set('display_errors', 0); ini_set('log_errors', 1); ob_end_clean(); class PDF extends FPDF { // Cabecera de página function Header() { // Logo $this->Image('images/logo.png', 10, 10, 25)...
true
046ba1bd0fbadfa1b4987da2332f22767ebe4748
PHP
Pavanyadav3547/kingscollegeindia
/data.php
UTF-8
2,841
2.875
3
[]
no_license
<?php define('HOST','localhost'); define('USERNAME', 'sociofj2_nrk'); define('PASSWORD','nrkcrafted@socio123'); define('DB','sociofj2_nrk'); $con = mysqli_connect(HOST,USERNAME,PASSWORD,DB); // Fetching Values From URL $name = $_POST['name']; $email = $_POST['email']; $city = $_POST['city']; $phone = $_POST['phone']; ...
true
ae822e1ef3fd93c6d2555870508ee784eaf0c852
PHP
Evil1991/yii_custom
/base/Formatter.php
UTF-8
3,320
2.875
3
[]
no_license
<?php namespace yiiCustom\base; use DateTime; use yiiCustom\helpers\DateHelper; use Yii; use yii\helpers\Html; class Formatter extends \yii\i18n\Formatter { const FORMAT_LOCAL_DATETIME = 'localDateTime'; protected $localTimezone; public function init() { parent::init(); if (isset(Yii::$app->params['localT...
true
582b8e677c409fd20bab861615d82f3f61a65eda
PHP
ivorobioff/thesinglequote
/src/Support/Core/Service/AbstractService.php
UTF-8
990
2.734375
3
[]
no_license
<?php namespace ImmediateSolutions\Support\Core\Service; use Doctrine\ORM\EntityManagerInterface; use ImmediateSolutions\Support\Framework\ContainerInterface; use Psr\Log\LoggerInterface; /** * @author Igor Vorobiov<igor.vorobioff@gmail.com> */ abstract class AbstractService { /** * @var ContainerInterface...
true
4f1fdb2e7f2ee7780e89557f789df068f6dae7ed
PHP
alclass/laravel_contr_alugueis_dvw3
/app/Models/Billing/BillingItemPO.php
UTF-8
3,477
2.71875
3
[]
no_license
<?php namespace App\Models\Billing; // To import class BillingItem elsewhere in the Laravel App // use App\Models\Billing\BillingItemPO; use App\Models\Billing\CobrancaTipo; use Carbon\Carbon; class BillingItemPO { /** * BillingItemPO is a class for temporary instantiation of BillingItem's * objects. PO means...
true
ac4553c359c5ac6022a65df46eb20cfb154a5107
PHP
Migdelia/gecko
/calasys/rel_martinho.php
UTF-8
2,168
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"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <?php session_start(); incl...
true
68f540d538f8f21ee79ad22780b588f3fdbdfadd
PHP
113256/comp3013
/myAuctions.php
UTF-8
2,175
2.78125
3
[]
no_license
<?php include('includes/connect.php'); error_reporting(E_ALL); //session_start(); if(empty($_SESSION['user'])) { // If they are not, we redirect them to the login page. header("Location: login.php"); // Remember that this die statement is absolutely critical. Without it, // people can view your me...
true
e4c62621c54b335acfe7518ec0612230ea741f20
PHP
aedart/model
/src/Contracts/Floats/HeightAware.php
UTF-8
1,160
3.203125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace Aedart\Model\Contracts\Floats; /** * <h1>Height Aware</h1> * * Component is aware of a float "height" value, which can * also be specified. * * @author Alin Eugen Deac <aedart@gmail.com> * @package Aedart\Model\Contracts\Floats */ interface HeightAware { /** * Set height * *...
true
df3bd8a9523e576be5054e94d50cd8b134f6458e
PHP
diego-monte/dm-framework
/src/Model/Index_model.php
UTF-8
907
2.765625
3
[ "MIT" ]
permissive
<?php class Index_model extends ModelsClass { public function __construct() { parent::__construct(); } public function setIndex($obj) { $this->set(array( "ct_name" => $obj['name'], "ct_email" => $obj['email'], "ct_subject" => $obj[...
true
622d310059b18b4be965e9b0a69974f16a1243fb
PHP
yiqiecongjian/faka
/app/Service/impl/VersionService.php
UTF-8
3,176
2.625
3
[]
no_license
<?php declare (strict_types=1); namespace App\Service\impl; use app\Service\VersionServiceInterface; use App\Utils\HttpUtil; use Core\Exception\JSONException; use Core\Utils\Bridge; /** * Class VersionService * @package app\Service\impl */ class VersionService implements VersionServiceInterface { /** *...
true
fe6a9ab4ecada4090c83e73265c0982996ef31e3
PHP
ch3ngxuyuan/taobao-sdk
/src/Wireless/Share/Tpwd/Tpwd.php
UTF-8
710
2.578125
3
[ "MIT" ]
permissive
<?php namespace Taobao\Wireless\Share\Tpwd; use Taobao\BaseClient; class Tpwd extends BaseClient { /** * taobao.wireless.share.tpwd.query( 查询解析淘口令 ) * * ¥开放平台基础API不需用户授权 * * 查询解析淘口令 * * @link https://open.taobao.com/api.htm?docId=32461&docType=2 * * @param string $pas...
true
c19f0923c5c3b1cb2a53c8ee425295d6d87c9b9d
PHP
polyarix/nemolotok
/app/Repositories/Eloquent/EloquentRoleRepository.php
UTF-8
1,399
2.640625
3
[ "MIT" ]
permissive
<?php namespace App\Repositories\Eloquent; use App\Contracts\RoleRepository; use App\Repositories\BaseRepository; use App\Role; use Illuminate\Database\Eloquent\Model; class EloquentRoleRepository extends BaseRepository implements RoleRepository { public function __construct(Role $model) { $this->set...
true
cfa09b357c1e9ffa2053ba9f4d96650466a3167d
PHP
HideCreator/wp-radsys-repo
/RadSystems/PHPRad Classic Projects/inspizo/app/Http/Controllers/AuthController.php
UTF-8
5,033
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Http\Controllers\Controller; use App\Models\Pengguna; use App\Http\Requests\PenggunaRegisterRequest; use App\Models\permissions; use Exception; use Illuminate\Http\Request; use Illuminate\Mail\Message; use Illuminate\Support\Facades\Validator; use Illuminate\Support\Facade...
true
968466adbe09ff50f2d9836203238f4798f4e032
PHP
thecodewizard/DungeonDex
/server/weapons/get_types.php
UTF-8
719
2.96875
3
[]
no_license
<?php require_once "./../core/connection.php"; //Open the database connection $con = make_mysql_connection(); //Prepare the statement $query = "SELECT w.WeaponTypeID as 'id', w.`Weapon Type` as 'ctype', (SELECT COUNT(wp.WeaponID) FROM weapons wp WHERE wp.WeaponTypeID LIKE w.WeaponTypeID) as 'WeaponCount' ...
true
79f01136a9fbe70c3e006aff7f4cf3a9591f6aa3
PHP
kurotori/SysTurno2020
/webservice/buscar/index.php
UTF-8
3,286
2.71875
3
[]
no_license
<?php include_once "../conexionbd.php"; include_once "../funcionesVarias.php"; include_once "../clases.php"; // required headers header("Access-Control-Allow-Origin: *"); header("Content-Type: application/json; charset=UTF-8"); //Requerimientos para una búsqueda: // - usuario_ci // - token_val // - sesion_val // - ...
true
7c92bc57e572f8b358c935abb809f1f5651dec15
PHP
RohithCIS/debugtheduino
/pages/rounds.php
UTF-8
2,477
2.671875
3
[]
no_license
<?php if (isset($_SESSION)) { session_unset(); session_destroy(); } session_start(); include realpath($_SERVER["DOCUMENT_ROOT"]).'/functions/config.php'; include $root.'/functions/db.php'; $sql="SELECT * FROM MARKS;"; $result = $db->query($sql); // if ($result->num_rows > 0) { // // output da...
true
f7005fcf75b07770af4bf37c843fc5089d5763ec
PHP
AshishAashu/crud
/Controller/Connection.php
UTF-8
424
2.9375
3
[]
no_license
<?php class Connection{ private $server = "localhost"; private $user = "root"; private $pass, $dbname; private $con; public function set_pass($p){ $this->pass = $p; } public function set_dbname($db){ $this->dbname = $db; } public function get_connection(){ $this -> con = new mysqli...
true
18b9e6de8c75ca04f34e393c75a46cc9a2f61361
PHP
reinzor/gps-photo-game
/point_api.php
UTF-8
770
2.578125
3
[]
no_license
<?php include('./db_connection.php'); // Return OK header("HTTP/1.1 200 OK"); header('Content-type: application/json'); // playerId $player_id = $mysqli->real_escape_string($_GET["player_id"]); $player_point_ids = array(); if ($player_id) { $result = $mysqli->query("SELECT point_id FROM uploads WHERE player_id=...
true
d267566d2491c9dce241d97ca553296c119a1623
PHP
BorisMor/todo
/api/app/Db.php
UTF-8
3,342
2.9375
3
[]
no_license
<?php namespace app; use PDO; /** * Объект для работы с базой * * Class Db * @package app */ class Db { private $_active = false; private static $_pdo = null; private $_config; /** * Настройки * @return mixed */ public function getConfig() { if (!empty($this->_co...
true
9ca2c8966df1bf8b8befd7a0cf7cedaa5d38cd91
PHP
ngokchau/cockamamei
/assets/modules/Mailer/Dwoo/Exception/Exception.php
UTF-8
1,931
2.90625
3
[ "Apache-2.0" ]
permissive
<?php namespace Dwoo\Exception; use Dwoo\Core; class Exception extends \Dwoo\Exception { public function __construct($message = "", $code = 0, \Dwoo\Exception $previous = null) { $this->register(); // make sure everything is assigned properly parent::__construct($message, $code, $previous); } public funct...
true
0c7a8aa3727b01b280ce4ac10b684f16e7e57c3b
PHP
rchicoli/ispycode-php
/Operators/Arithmetic-operators/Division.php
UTF-8
76
2.546875
3
[]
no_license
<?php $num1 = 99; $num2 = 3; $num3 = $num1 / $num2; echo $num3; ?>
true
dc317088fe047ef253e9514a6c2c37b863c89bc2
PHP
silverstripe-archive/silverstripe-personalisation
/code/variation/PersonalisationVariation.php
UTF-8
3,999
2.765625
3
[]
no_license
<?php class PersonalisationVariation extends DataObject { public static $db = array( "Name" => "Varchar(255)", "Description" => "Text" ); public static $has_one = array( "Parent" => "VaryingPersonalisationScheme" ); public static $summary_fields = array( "Name", ...
true
2d5729dd2dc828ec6de9d779bc69f2d080d7adc8
PHP
Quisutd3us/LandingPage-miapplicacion.com
/php/formulario.php
UTF-8
3,299
2.53125
3
[]
no_license
<?php require_once('recaptchalib.php'); $privatekey = "6LeRUzsUAAAAACGWbAsiaAsxUqGiKZZVKIQZ34J_"; $resp = recaptcha_check_answer ($privatekey, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["reca...
true
ad1fc3019081357f325289f4b63f4be67ece966d
PHP
WarriorsSami/CRUD-PHP
/residual/index.php
UTF-8
1,884
2.640625
3
[]
no_license
<?php require_once ("Controllers/authControllers.php"); //reset the password for a specific user using password-token if (isset ($_GET['password-token'])) { $passwordToken = $_GET['password-token']; resetPassword ($passwordToken); } //verify the user using token if (isset ($_GET['token'])) { $token = $_...
true
27e5d60ac5fe366b2ee2809bbcd37fe74473eab1
PHP
m-dinesh-kumar/cygniteframework
/apps/components/libraries/thumbnail.php
UTF-8
7,670
2.875
3
[ "MIT" ]
permissive
<?php namespace Apps\Components\Libraries; /** * Cygnite Framework * * An open source application development framework for PHP 5.3x or newer * * License * * This source file is subject to the MIT license that is bundled * with this package in the file LICENSE.txt. * http://www.cygniteframework.com/...
true
7773429905c47434bfeafdcff5e17e3ee44a08ac
PHP
composer/composer
/tests/Composer/Test/Util/ProcessExecutorTest.php
UTF-8
8,666
2.546875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); /* * This file is part of Composer. * * (c) Nils Adermann <naderman@naderman.de> * Jordi Boggiano <j.boggiano@seld.be> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Composer\Test\Ut...
true
4d6268435a497261b6b144cdd0956fe1abaf18a0
PHP
jadenjwlee/StudentWebGuide
/View/Public/Housing/house_list.php
UTF-8
1,075
2.703125
3
[]
no_license
<script src="../../JS/calendar.js"></script> <script src="../../JS/calendar_jquery.js"></script> <h1>OFF-CAMPUS HOUSING</h1> <br /><br /> <form action="." method="GET"> <b>Date:</b> <input type="date" id="event_date" name="occupancy_date" size="20" /> <input type="text" id="address" name="address" si...
true
091792077f6f8e9463524ff641f26e46f9b5a5c4
PHP
10quality/wp-query-builder
/tests/cases/AbstractModelTest.php
UTF-8
4,751
2.609375
3
[ "MIT" ]
permissive
<?php use PHPUnit\Framework\TestCase; /** * Test. * * @author 10 Quality <info@10quality.com> * @license MIT * @package wp-query-builder * @version 1.0.13 */ class AbstractModelTest extends TestCase { /** * Test abstract * @since 1.0.0 * @group abstract * @group model */ public ...
true
cace0e72368280d12eb81aac28474ba112cb61b9
PHP
nhokshin1803/TTday4
/OOP-truongnq/demo/ProductDemo.php
UTF-8
325
3.125
3
[]
no_license
<?php require_once "../entity/Product.php"; class ProductDemo { public Product $product; function __construct() { $this->product = new Product(1, "Truong"); } function print_product_test() { echo ($this->product->name); } } $pd = new ProductDemo(); $pd->print_product_test($...
true
dafc2c4b274a8bc94eecf13e03adac089517c7ac
PHP
putrawitama/laravel-shopping-doku-payment
/database/migrations/2017_12_05_151929_create_user_table.php
UTF-8
1,301
2.609375
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateUserTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('users', function (Blueprint $table) { $table-...
true
8a152611b21a5cbc0db0637b480ae9c3e08d37b0
PHP
OlegBas/sutvdonsc.com
/lib/crud/crud.class.php
UTF-8
14,521
2.640625
3
[]
no_license
<? /* last edit 03.09.2015*/ class lib_crud { protected $db_table = 'test'; protected $db_row_id = 'id'; private $js; protected $db; public $form_conf = array('action'=>''); function __construct($db_table, $db_row_id = 'id') { global $DB; $this->db =$DB; ...
true
b172b14ffcca13e686f8a1a67c3171dfbeb8860c
PHP
Sywooch/other
/taozon.ru [PHP]/otapilib2/types/OtapiUserInfoAnswer.php
UTF-8
268
2.703125
3
[]
no_license
<?php class OtapiUserInfoAnswer extends OtapiAnswer{ /** * @return OtapiUserInfo */ public function GetUserInfo(){ $value = isset($this->xmlData->UserInfo) ? $this->xmlData->UserInfo : false; return new OtapiUserInfo($value); } }
true
33ed8ddb27c170a33576db61176342e8bc5d2e7d
PHP
Gabsato02/SENAC_TSI_PHP_2020_2
/banco_de_dados/pdo.php
UTF-8
1,520
3.53125
4
[]
no_license
<?php /*PDO(PHP Data Objects) é um módulo de PHP montado sob o paradigma Orientado a Objetos, cujo objetivo é prover uma padronização da forma com que PHP se comunica com um banco de dados relacional */ /* require_once "config.php" retorna um erro fatal caso não consiga fazer a requisição O include_once retorna um w...
true
85384efe5fe2c8d76c7d270f9b51fc7a5b723ac8
PHP
ruvictor/compress-images-with-PHP-and-TinyPNG
/ajax/tiny.php
UTF-8
1,566
2.65625
3
[]
no_license
<?php /* ===================================================== Upload - by Victor Rusu ----------------------------------------------------- http://ruvictor.com ----------------------------------------------------- Copyright (c) 2017 ===================================================== */ define('AJAX_REQ...
true
06d9c4cf885bdc06908e09c8732dbe655212bc48
PHP
rahulyhg/CmsBundle
/Entity/Content.php
UTF-8
2,283
2.53125
3
[ "MIT" ]
permissive
<?php namespace Ekyna\Bundle\CmsBundle\Entity; use Doctrine\Common\Collections\ArrayCollection; use Ekyna\Bundle\CmsBundle\Model\BlockInterface; use Ekyna\Bundle\CmsBundle\Model\ContentInterface; use Ekyna\Bundle\CoreBundle\Model\TaggedEntityTrait; use Ekyna\Bundle\CoreBundle\Model\TimestampableTrait; /** * Class C...
true
fb4c576fdbf75d29aea68a9730ebb40956d55d21
PHP
kolyadin/bikebook
/htdocs/tests/backup/reg.php
UTF-8
1,460
2.703125
3
[]
no_license
<?php require_once('lib/KAException.php'); KAException::$debugMode = true; KAException::setupEnvironment(); session_name('made_by_Kolyadin_Aleksey'); session_start(); function idHash() { $minLength = 50; $maxLength = 100; $chars = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; ...
true
6cc04c7461f2f6a2d3f4270ba8c2aca5c375c0dd
PHP
Suryana009/cbrl.github.oi
/app/Vocabularies.php
UTF-8
3,548
2.609375
3
[ "MIT" ]
permissive
<?php namespace App; use DB; use Illuminate\Database\Eloquent\Model; class Vocabularies extends Model { public static function show_vocabulary_DT() { $table = "languages"; $column_order = array(null, 'language'); $column_search = array('language'); $order = array('id' => 'asc'); $query = DB::table($...
true