From e77e08cbf27e1575e188d5934200503902ff289a Mon Sep 17 00:00:00 2001
From: ui_none <1035096867@qq.com>
Date: Mon, 5 Aug 2024 17:52:47 +0800
Subject: [PATCH] =?UTF-8?q?docs:=20=E6=9F=9A=E5=AD=90=E7=9A=AE=E7=B3=BB?=
=?UTF-8?q?=E7=BB=9F=E8=87=AA=E5=8A=A8=E7=94=9F=E6=88=90=E6=96=87=E4=BB=B6?=
=?UTF-8?q?=E5=90=8C=E6=AD=A5=E5=8F=8Aapi=5Fpos.php=E6=96=87=E4=BB=B6?=
=?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=B3=A8=E9=87=8A?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Change-Id: Idb4b8b879b9bf4222f8e4048e704b3495dc7ef7a
---
ErrorFiles/400.html | 17 +++
ErrorFiles/401.html | 17 +++
ErrorFiles/403.html | 17 +++
ErrorFiles/404.html | 17 +++
ErrorFiles/429.html | 17 +++
ErrorFiles/500.html | 17 +++
ErrorFiles/502.html | 17 +++
ErrorFiles/503.html | 17 +++
ErrorFiles/504.html | 17 +++
ErrorFiles/510.html | 17 +++
index.php | 1 +
show/ErrorFiles/400.html | 17 +++
show/ErrorFiles/401.html | 17 +++
show/ErrorFiles/403.html | 17 +++
show/ErrorFiles/404.html | 17 +++
show/ErrorFiles/429.html | 17 +++
show/ErrorFiles/500.html | 17 +++
show/ErrorFiles/502.html | 17 +++
show/ErrorFiles/503.html | 17 +++
show/ErrorFiles/504.html | 17 +++
show/ErrorFiles/510.html | 17 +++
show/api_pos.php | 8 +-
show/u.php | 290 +++++++++++++++++++++++++++++++++++++++
u.php | 290 +++++++++++++++++++++++++++++++++++++++
24 files changed, 927 insertions(+), 2 deletions(-)
create mode 100644 ErrorFiles/400.html
create mode 100644 ErrorFiles/401.html
create mode 100644 ErrorFiles/403.html
create mode 100644 ErrorFiles/404.html
create mode 100644 ErrorFiles/429.html
create mode 100644 ErrorFiles/500.html
create mode 100644 ErrorFiles/502.html
create mode 100644 ErrorFiles/503.html
create mode 100644 ErrorFiles/504.html
create mode 100644 ErrorFiles/510.html
create mode 100644 show/ErrorFiles/400.html
create mode 100644 show/ErrorFiles/401.html
create mode 100644 show/ErrorFiles/403.html
create mode 100644 show/ErrorFiles/404.html
create mode 100644 show/ErrorFiles/429.html
create mode 100644 show/ErrorFiles/500.html
create mode 100644 show/ErrorFiles/502.html
create mode 100644 show/ErrorFiles/503.html
create mode 100644 show/ErrorFiles/504.html
create mode 100644 show/ErrorFiles/510.html
create mode 100644 show/u.php
create mode 100644 u.php
diff --git a/ErrorFiles/400.html b/ErrorFiles/400.html
new file mode 100644
index 0000000..bc32e15
--- /dev/null
+++ b/ErrorFiles/400.html
@@ -0,0 +1,17 @@
+
+
+
+
+400状态页面
+
+
+
+
+
+
+
{错误请求} 服务器不能接受此应答!
+
+
+
diff --git a/ErrorFiles/401.html b/ErrorFiles/401.html
new file mode 100644
index 0000000..c417dd3
--- /dev/null
+++ b/ErrorFiles/401.html
@@ -0,0 +1,17 @@
+
+
+
+
+401状态页面
+
+
+
+
+
+
+
{未授权} 请求需要身份验证!
+
+
+
\ No newline at end of file
diff --git a/ErrorFiles/403.html b/ErrorFiles/403.html
new file mode 100644
index 0000000..7b7c2da
--- /dev/null
+++ b/ErrorFiles/403.html
@@ -0,0 +1,17 @@
+
+
+
+
+403状态页面
+
+
+
+
+
+
+
{禁止} 服务器拒绝请求!
+
+
+
\ No newline at end of file
diff --git a/ErrorFiles/404.html b/ErrorFiles/404.html
new file mode 100644
index 0000000..6138730
--- /dev/null
+++ b/ErrorFiles/404.html
@@ -0,0 +1,17 @@
+
+
+
+
+404状态页面
+
+
+
+
+
+
+
{未找到} 法海不懂爱~页面不出来!
+
+
+
\ No newline at end of file
diff --git a/ErrorFiles/429.html b/ErrorFiles/429.html
new file mode 100644
index 0000000..62237f2
--- /dev/null
+++ b/ErrorFiles/429.html
@@ -0,0 +1,17 @@
+
+
+
+
+UPUPW安全防护智能感知系统
+
+
+
+
+
+
UPUPW服务器安全防护智能感知系统
+
☸ 您与页面的距离相差60秒...... 如等不到可能已被黑洞吞噬 ☸
+
+
+
\ No newline at end of file
diff --git a/ErrorFiles/500.html b/ErrorFiles/500.html
new file mode 100644
index 0000000..d08a7f2
--- /dev/null
+++ b/ErrorFiles/500.html
@@ -0,0 +1,17 @@
+
+
+
+
+500状态页面
+
+
+
+
+
+
+
{服务器遇到错误} 无法完成请求!
+
+
+
\ No newline at end of file
diff --git a/ErrorFiles/502.html b/ErrorFiles/502.html
new file mode 100644
index 0000000..56f8fcf
--- /dev/null
+++ b/ErrorFiles/502.html
@@ -0,0 +1,17 @@
+
+
+
+
+502状态页面
+
+
+
+
+
+
+
{无效响应} 网关或代理有误!
+
+
+
\ No newline at end of file
diff --git a/ErrorFiles/503.html b/ErrorFiles/503.html
new file mode 100644
index 0000000..c19d10d
--- /dev/null
+++ b/ErrorFiles/503.html
@@ -0,0 +1,17 @@
+
+
+
+
+503状态页面
+
+
+
+
+
+
+
{服务不可用} 服务器过载或暂停!
+
+
+
\ No newline at end of file
diff --git a/ErrorFiles/504.html b/ErrorFiles/504.html
new file mode 100644
index 0000000..b8655a3
--- /dev/null
+++ b/ErrorFiles/504.html
@@ -0,0 +1,17 @@
+
+
+
+
+504状态页面
+
+
+
+
+
+
+
{网关超时} 超时或解析器有误!
+
+
+
\ No newline at end of file
diff --git a/ErrorFiles/510.html b/ErrorFiles/510.html
new file mode 100644
index 0000000..28c8940
--- /dev/null
+++ b/ErrorFiles/510.html
@@ -0,0 +1,17 @@
+
+
+
+
+510状态页面
+
+
+
+
+
+
+
{资源超限} 访问或下载资源超过限制!
+
+
+
\ No newline at end of file
diff --git a/index.php b/index.php
index 836ae26..8f23f6c 100644
--- a/index.php
+++ b/index.php
@@ -1,6 +1,7 @@
+
+
+
+400状态页面
+
+
+
+
+
+
+
{错误请求} 服务器不能接受此应答!
+
+
+
diff --git a/show/ErrorFiles/401.html b/show/ErrorFiles/401.html
new file mode 100644
index 0000000..c417dd3
--- /dev/null
+++ b/show/ErrorFiles/401.html
@@ -0,0 +1,17 @@
+
+
+
+
+401状态页面
+
+
+
+
+
+
+
{未授权} 请求需要身份验证!
+
+
+
\ No newline at end of file
diff --git a/show/ErrorFiles/403.html b/show/ErrorFiles/403.html
new file mode 100644
index 0000000..7b7c2da
--- /dev/null
+++ b/show/ErrorFiles/403.html
@@ -0,0 +1,17 @@
+
+
+
+
+403状态页面
+
+
+
+
+
+
+
{禁止} 服务器拒绝请求!
+
+
+
\ No newline at end of file
diff --git a/show/ErrorFiles/404.html b/show/ErrorFiles/404.html
new file mode 100644
index 0000000..6138730
--- /dev/null
+++ b/show/ErrorFiles/404.html
@@ -0,0 +1,17 @@
+
+
+
+
+404状态页面
+
+
+
+
+
+
+
{未找到} 法海不懂爱~页面不出来!
+
+
+
\ No newline at end of file
diff --git a/show/ErrorFiles/429.html b/show/ErrorFiles/429.html
new file mode 100644
index 0000000..62237f2
--- /dev/null
+++ b/show/ErrorFiles/429.html
@@ -0,0 +1,17 @@
+
+
+
+
+UPUPW安全防护智能感知系统
+
+
+
+
+
+
UPUPW服务器安全防护智能感知系统
+
☸ 您与页面的距离相差60秒...... 如等不到可能已被黑洞吞噬 ☸
+
+
+
\ No newline at end of file
diff --git a/show/ErrorFiles/500.html b/show/ErrorFiles/500.html
new file mode 100644
index 0000000..d08a7f2
--- /dev/null
+++ b/show/ErrorFiles/500.html
@@ -0,0 +1,17 @@
+
+
+
+
+500状态页面
+
+
+
+
+
+
+
{服务器遇到错误} 无法完成请求!
+
+
+
\ No newline at end of file
diff --git a/show/ErrorFiles/502.html b/show/ErrorFiles/502.html
new file mode 100644
index 0000000..56f8fcf
--- /dev/null
+++ b/show/ErrorFiles/502.html
@@ -0,0 +1,17 @@
+
+
+
+
+502状态页面
+
+
+
+
+
+
+
{无效响应} 网关或代理有误!
+
+
+
\ No newline at end of file
diff --git a/show/ErrorFiles/503.html b/show/ErrorFiles/503.html
new file mode 100644
index 0000000..c19d10d
--- /dev/null
+++ b/show/ErrorFiles/503.html
@@ -0,0 +1,17 @@
+
+
+
+
+503状态页面
+
+
+
+
+
+
+
{服务不可用} 服务器过载或暂停!
+
+
+
\ No newline at end of file
diff --git a/show/ErrorFiles/504.html b/show/ErrorFiles/504.html
new file mode 100644
index 0000000..b8655a3
--- /dev/null
+++ b/show/ErrorFiles/504.html
@@ -0,0 +1,17 @@
+
+
+
+
+504状态页面
+
+
+
+
+
+
+
{网关超时} 超时或解析器有误!
+
+
+
\ No newline at end of file
diff --git a/show/ErrorFiles/510.html b/show/ErrorFiles/510.html
new file mode 100644
index 0000000..28c8940
--- /dev/null
+++ b/show/ErrorFiles/510.html
@@ -0,0 +1,17 @@
+
+
+
+
+510状态页面
+
+
+
+
+
+
+
{资源超限} 访问或下载资源超过限制!
+
+
+
\ No newline at end of file
diff --git a/show/api_pos.php b/show/api_pos.php
index 19ff2c0..cb46245 100644
--- a/show/api_pos.php
+++ b/show/api_pos.php
@@ -1,8 +1,10 @@
+
+// echo "1";
+// exit;
require_once(dirname(__FILE__)."/common.php");
// 接收查询参数,即URL路径参数后的查询参数params
$qs = $_SERVER['QUERY_STRING'];
-echo $qs;
// 读取发送到脚本的数据
$json = file_get_contents("php://input");
@@ -15,7 +17,7 @@ if(!$serialno) exit;
$deviceInfo = $db->get_one("select * from tb_pos_device where serialno = '".addslashes($serialno)."'");
$device_id = intval($deviceInfo['id']);
-// 获取远程地址
+// 获取远程地址,即访问的客户端ip地址
$ip = $_SERVER["REMOTE_ADDR"];
$s1 = $json;
@@ -208,6 +210,7 @@ if($qs == 'heartbeat' || $qs == 'addperson' || $qs == 'delperson') { //心跳
}
}
+ // 增加列表
if($addList) {
$whitelist = array();
foreach($addList as $item) {
@@ -332,6 +335,7 @@ if($qs == 'heartbeat' || $qs == 'addperson' || $qs == 'delperson') { //心跳
}
+// 在线消费,无消费确认,无查询,直接消费
else if($qs == 'real') {
$api = $post['api'];
if($api == 'takemeal' || $api == 'takemealok') { //取餐
diff --git a/show/u.php b/show/u.php
new file mode 100644
index 0000000..df6018c
--- /dev/null
+++ b/show/u.php
@@ -0,0 +1,290 @@
+已开启');
+define('NO', '未开启');
+if ($_POST['mysqlPort']=="") {
+$host = "127.0.0.1";
+} else {
+$host = "127.0.0.1:".$_POST['mysqlPort'];
+}
+if ($_POST['mysqlUser']=="") {
+$link = "";
+} else {
+$link = @mysqli_connect($host, $_POST['mysqlUser'], $_POST['mysqlPassword']);
+}
+$Info = array();
+$Info['php_ini_file'] = function_exists('php_ini_loaded_file') ? php_ini_loaded_file() : '[undefine]';
+$mcrypt = get_extension_funcs('mcrypt') ? YES : NO;
+$xmlrpc = get_extension_funcs('xmlrpc') ? YES : NO;
+$fileinfo = get_extension_funcs('fileinfo') ? YES : NO;
+$ftp = get_extension_funcs('ftp') ? YES : NO;
+$errno = mysqli_connect_errno();
+$pinfo = $rand;
+$up_start = micro_time_float();
+if (_GET($pinfo) == 'phpinfo') {
+if (function_exists('phpinfo')) phpinfo();
+else echo "PHPINFO函数已被禁用无法正常显示详细信息!";
+exit;
+}
+?>
+
+
+
+
+UPUPW PHP探针安全版
+
+
+
+
+
+
+
+
+
+
+
+
+
+服务器信息 |
+PHP功能组件开启状态 |
+
+
+服务器域名 |
+=_SERVER('SERVER_NAME')?> |
+MySQLi Client组件 |
+=get_extension_funcs('mysqli') ? YES : NO ?> |
+
+
+服务器端口 |
+
+
+=($link)?_SERVER('SERVER_ADDR').':'._SERVER('SERVER_PORT'):"数据库连接测试错误拒绝显示"?>
+数据库连接测试成功后显示";
+?>
+ |
+cURL组件 |
+=get_extension_funcs('curl') ? YES : NO ?> |
+
+
+服务器环境 |
+=stripos(_SERVER('SERVER_SOFTWARE'), 'PHP')?_SERVER('SERVER_SOFTWARE'):_SERVER('SERVER_SOFTWARE')?> |
+GD library组件 |
+=get_extension_funcs('gd') ? YES : NO ?> |
+
+
+PHP运行环境 |
+=PHP_SAPI .' PHP/'.PHP_VERSION?> |
+EXIF信息查看组件 |
+=get_extension_funcs('exif') ? YES : NO ?> |
+
+
+PHP配置文件 |
+
+=($link)?htmlentities($Info['php_ini_file']):"数据库连接测试错误拒绝显示"?>
+数据库连接测试成功后显示";
+?>
+ |
+OpenSSL协议组件 |
+=get_extension_funcs('openssl') ? YES : NO ?> |
+
+
+当前网站目录 |
+
+=($link)?htmlentities(_SERVER('DOCUMENT_ROOT')):"数据库连接测试错误拒绝显示"?>
+数据库连接测试成功后显示";
+?>
+ |
+Mcrypt加密处理组件".$mcrypt." | ";
+}else{
+ echo "FTP组件 | ".$ftp." | ";
+}?>
+
+
+服务器标准时 |
+
+=gmdate('Y-m-d H:i:s', time() + 3600 * 8)?>
+ |
+XML-RPC组件".$xmlrpc." | ";
+}else{
+ echo "FileInfo组件 | ".$fileinfo." | ";
+}?>
+
+
+便捷管理入口 |
+
+=($link)?"PHPINFO详细信息":"数据库连接测试错误拒绝显示"?>
+数据库连接测试成功后显示";
+?>
+ |
+Mbstring组件 |
+=get_extension_funcs('mbstring') ? YES : NO ?> |
+
+
+
+
+PHP Zend解密组件 |
+PHP 缓存优化组件 |
+
+
+Zend Optimizer |
+Zend GuardLoader |
+ionCubeLoader |
+SourceGuardian |
+WinCache |
+Zend OPcache |
+Redis |
+Memcache |
+
+
+=get_extension_funcs('Zend Optimizer') ? YES.' / '.OPTIMIZER_VERSION : NO ?> |
+=get_extension_funcs('Zend Guard Loader') ? YES : NO ?> |
+=get_extension_funcs('ionCube Loader') ? YES : NO ?> |
+=get_extension_funcs('SourceGuardian') ? YES : NO ?> |
+=get_extension_funcs('WinCache') ? YES : NO ?> |
+=get_extension_funcs('Zend OPcache') ? YES : NO ?> |
+=phpversion('redis') ? YES : NO ?> |
+=get_extension_funcs('memcache') ? YES : NO ?> |
+
+
+=PHP_SAPI .' PHP/'.PHP_VERSION?>不完全包括以上组件,不同PHP版本能适配的外部扩展不同,为了性能以上组件除网站特别要求外没必要全开启! |
+
+
+
+
+PHP重要参数检测 |
+
+
+Memory限制 |
+Upload限制 |
+POST限制 |
+Execution超时 |
+Input超时 |
+Socket超时 |
+
+
+=ini_get('memory_limit')?> |
+=ini_get('upload_max_filesize')?> |
+=ini_get('post_max_size')?> |
+=ini_get('max_execution_time').'s'?> |
+=ini_get('max_input_time').'s'?> |
+=ini_get('default_socket_timeout').'s'?> |
+
+
+
+
+PHP已编译模块检测 |
+
+
+
+$value) {
+if ($key!=0 && $key%13==0) {
+echo ' ';
+}
+echo "$value ";
+}
+?>
+ |
+
+
+
+
+
+
+数据库测试结果 |
+
+连接正常 ('.mysqli_get_server_info($link).')';
+else $str1 = '连接错误
'.iconv('gbk', 'utf-8', mysqli_connect_error());
+?>
+
+=$host?> |
+=$str1?> |
+
+
+
+
+UPUPW探针版本: 页面执行时间 秒 消耗内存
+
+
+
© UPUPW PHP探针安全版,站点内容与本程序无关。
+
+
+
diff --git a/u.php b/u.php
new file mode 100644
index 0000000..df6018c
--- /dev/null
+++ b/u.php
@@ -0,0 +1,290 @@
+已开启');
+define('NO', '未开启');
+if ($_POST['mysqlPort']=="") {
+$host = "127.0.0.1";
+} else {
+$host = "127.0.0.1:".$_POST['mysqlPort'];
+}
+if ($_POST['mysqlUser']=="") {
+$link = "";
+} else {
+$link = @mysqli_connect($host, $_POST['mysqlUser'], $_POST['mysqlPassword']);
+}
+$Info = array();
+$Info['php_ini_file'] = function_exists('php_ini_loaded_file') ? php_ini_loaded_file() : '[undefine]';
+$mcrypt = get_extension_funcs('mcrypt') ? YES : NO;
+$xmlrpc = get_extension_funcs('xmlrpc') ? YES : NO;
+$fileinfo = get_extension_funcs('fileinfo') ? YES : NO;
+$ftp = get_extension_funcs('ftp') ? YES : NO;
+$errno = mysqli_connect_errno();
+$pinfo = $rand;
+$up_start = micro_time_float();
+if (_GET($pinfo) == 'phpinfo') {
+if (function_exists('phpinfo')) phpinfo();
+else echo "PHPINFO函数已被禁用无法正常显示详细信息!";
+exit;
+}
+?>
+
+
+
+
+UPUPW PHP探针安全版
+
+
+
+
+
+
+
+
+
+
+
+
+
+服务器信息 |
+PHP功能组件开启状态 |
+
+
+服务器域名 |
+=_SERVER('SERVER_NAME')?> |
+MySQLi Client组件 |
+=get_extension_funcs('mysqli') ? YES : NO ?> |
+
+
+服务器端口 |
+
+
+=($link)?_SERVER('SERVER_ADDR').':'._SERVER('SERVER_PORT'):"数据库连接测试错误拒绝显示"?>
+数据库连接测试成功后显示";
+?>
+ |
+cURL组件 |
+=get_extension_funcs('curl') ? YES : NO ?> |
+
+
+服务器环境 |
+=stripos(_SERVER('SERVER_SOFTWARE'), 'PHP')?_SERVER('SERVER_SOFTWARE'):_SERVER('SERVER_SOFTWARE')?> |
+GD library组件 |
+=get_extension_funcs('gd') ? YES : NO ?> |
+
+
+PHP运行环境 |
+=PHP_SAPI .' PHP/'.PHP_VERSION?> |
+EXIF信息查看组件 |
+=get_extension_funcs('exif') ? YES : NO ?> |
+
+
+PHP配置文件 |
+
+=($link)?htmlentities($Info['php_ini_file']):"数据库连接测试错误拒绝显示"?>
+数据库连接测试成功后显示";
+?>
+ |
+OpenSSL协议组件 |
+=get_extension_funcs('openssl') ? YES : NO ?> |
+
+
+当前网站目录 |
+
+=($link)?htmlentities(_SERVER('DOCUMENT_ROOT')):"数据库连接测试错误拒绝显示"?>
+数据库连接测试成功后显示";
+?>
+ |
+Mcrypt加密处理组件".$mcrypt." | ";
+}else{
+ echo "FTP组件 | ".$ftp." | ";
+}?>
+
+
+服务器标准时 |
+
+=gmdate('Y-m-d H:i:s', time() + 3600 * 8)?>
+ |
+XML-RPC组件".$xmlrpc." | ";
+}else{
+ echo "FileInfo组件 | ".$fileinfo." | ";
+}?>
+
+
+便捷管理入口 |
+
+=($link)?"PHPINFO详细信息":"数据库连接测试错误拒绝显示"?>
+数据库连接测试成功后显示";
+?>
+ |
+Mbstring组件 |
+=get_extension_funcs('mbstring') ? YES : NO ?> |
+
+
+
+
+PHP Zend解密组件 |
+PHP 缓存优化组件 |
+
+
+Zend Optimizer |
+Zend GuardLoader |
+ionCubeLoader |
+SourceGuardian |
+WinCache |
+Zend OPcache |
+Redis |
+Memcache |
+
+
+=get_extension_funcs('Zend Optimizer') ? YES.' / '.OPTIMIZER_VERSION : NO ?> |
+=get_extension_funcs('Zend Guard Loader') ? YES : NO ?> |
+=get_extension_funcs('ionCube Loader') ? YES : NO ?> |
+=get_extension_funcs('SourceGuardian') ? YES : NO ?> |
+=get_extension_funcs('WinCache') ? YES : NO ?> |
+=get_extension_funcs('Zend OPcache') ? YES : NO ?> |
+=phpversion('redis') ? YES : NO ?> |
+=get_extension_funcs('memcache') ? YES : NO ?> |
+
+
+=PHP_SAPI .' PHP/'.PHP_VERSION?>不完全包括以上组件,不同PHP版本能适配的外部扩展不同,为了性能以上组件除网站特别要求外没必要全开启! |
+
+
+
+
+PHP重要参数检测 |
+
+
+Memory限制 |
+Upload限制 |
+POST限制 |
+Execution超时 |
+Input超时 |
+Socket超时 |
+
+
+=ini_get('memory_limit')?> |
+=ini_get('upload_max_filesize')?> |
+=ini_get('post_max_size')?> |
+=ini_get('max_execution_time').'s'?> |
+=ini_get('max_input_time').'s'?> |
+=ini_get('default_socket_timeout').'s'?> |
+
+
+
+
+PHP已编译模块检测 |
+
+
+
+$value) {
+if ($key!=0 && $key%13==0) {
+echo ' ';
+}
+echo "$value ";
+}
+?>
+ |
+
+
+
+
+
+
+数据库测试结果 |
+
+连接正常 ('.mysqli_get_server_info($link).')';
+else $str1 = '连接错误
'.iconv('gbk', 'utf-8', mysqli_connect_error());
+?>
+
+=$host?> |
+=$str1?> |
+
+
+
+
+UPUPW探针版本: 页面执行时间 秒 消耗内存
+
+
+
© UPUPW PHP探针安全版,站点内容与本程序无关。
+
+
+