From 1d12de9a09afcda8959ef71192b4c54f38a2e482 Mon Sep 17 00:00:00 2001
From: CN-EnsonYan
Date: Tue, 7 Jun 2022 22:15:21 +0800
Subject: [PATCH 1/2] Fixed line 44
---
ajax.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ajax.php b/ajax.php
index 078cb21..2aa6dc7 100644
--- a/ajax.php
+++ b/ajax.php
@@ -41,7 +41,7 @@
$limit->rateLimit($rateLimit);
// execute command
- $output = $lg->$_GET['cmd']($_GET['host']);
+ $output = $lg->{$_GET['cmd']}($_GET['host']);
if ($output) {
exit();
}
From 5465f60a834abcf5edcd986e2803e3a65b3d3180 Mon Sep 17 00:00:00 2001
From: CN-EnsonYan
Date: Tue, 7 Jun 2022 22:17:08 +0800
Subject: [PATCH 2/2] Add CloudFlare user real IP detection support
---
index.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/index.php b/index.php
index ee4b6e2..69afb06 100644
--- a/index.php
+++ b/index.php
@@ -85,7 +85,7 @@
}
?>
- Your IP Address:
+ Your IP Address: