You've already forked qlg.tsgz.moe
addons
app_download_files
extend
alipay
app_alipay
aop
lotusphp_runtime
Autoloader
Cache
Captcha
Cookie
DB
Inflector
Logger
MVC
Action.php
Component.php
Context.php
Dispatcher.php
TemplateView.php
View.php
ObjectUtil
Pagination
RBAC
Router
Session
Url
Validator
XML
Config.php
ConfigExpression.php
Lotus.php
Store.php
StoreFile.php
StoreMemory.php
shortcut.php
AopSdk.php
demo.php
version.txt
╦╡├ў.txt
image
org
phpexcel
phpmailer
unionpay
verify
wechat
wxpay
.htaccess
hyhproject
mobile
oss
static
thinkphp
upload
vendor
wxtmp
.gitignore
.htaccess
.user.ini
404.html
H5B854518.wgt
admin.php
app-release.apk
app_download.html
cash.lock
demo.php
get_startup.php
get_version.php
get_version_new.php
hyhproject.tar.gz
index.html
index.php
reg.lock
robots.txt
99 lines
1.6 KiB
PHP
Executable File
99 lines
1.6 KiB
PHP
Executable File
<?php
|
|
class LtContext
|
|
{
|
|
/**
|
|
* The uri property
|
|
*
|
|
* @var array
|
|
*/
|
|
public $uri;
|
|
|
|
protected $strip;
|
|
|
|
public function __construct()
|
|
{
|
|
|
|
}
|
|
|
|
/**
|
|
* return the client input in $_SERVER['argv']
|
|
*
|
|
* @param integer $offset
|
|
* @return string
|
|
*/
|
|
public function argv($offset)
|
|
{
|
|
return isset($_SERVER['argv']) && isset($_SERVER['argv'][$offset]) ? $_SERVER['argv'][$offset] : null;
|
|
}
|
|
|
|
/**
|
|
* return the client input in $_FILES
|
|
*
|
|
* @param string $name
|
|
* @return array
|
|
*/
|
|
public function file($name)
|
|
{
|
|
return isset($_FILES[$name]) ? $_FILES[$name] : null;
|
|
}
|
|
|
|
/**
|
|
* return the client input in $_GET
|
|
*
|
|
* @param string $name
|
|
* @return string
|
|
*/
|
|
public function get($name)
|
|
{
|
|
return isset($_GET[$name]) ? $_GET[$name] : null;
|
|
}
|
|
|
|
/**
|
|
* return the client input in $_POST
|
|
*
|
|
* @param string $name
|
|
* @return string
|
|
*/
|
|
public function post($name)
|
|
{
|
|
return isset($_POST[$name]) ? $_POST[$name] : null;
|
|
}
|
|
|
|
/**
|
|
* return the client input in $_REQUEST
|
|
*
|
|
* @param string $name
|
|
* @return string
|
|
*/
|
|
public function request($name)
|
|
{
|
|
return isset($_REQUEST[$name]) ? $_REQUEST[$name] : null;
|
|
}
|
|
|
|
/**
|
|
* return the client input in $_SERVER
|
|
*
|
|
* @param string $name
|
|
* @return string
|
|
*/
|
|
public function server($name)
|
|
{
|
|
if ('REMOTE_ADDR' == $name)
|
|
{
|
|
if (isset($_SERVER['HTTP_X_FORWARDED_FOR']))
|
|
{
|
|
$clientIp = $_SERVER['HTTP_X_FORWARDED_FOR'];
|
|
}
|
|
else
|
|
{
|
|
$clientIp = $_SERVER[$name];
|
|
}
|
|
return $clientIp;
|
|
}
|
|
else
|
|
{
|
|
return isset($_SERVER[$name]) ? $_SERVER[$name] : null;
|
|
}
|
|
}
|
|
}
|