subscription page

This commit is contained in:
mercury
2025-07-04 17:45:50 +04:00
parent 6be95533c4
commit ffe6bb4ba8
3 changed files with 50 additions and 0 deletions
+4
View File
@@ -42,6 +42,10 @@ switch (true) {
echo "/adguard$hash/";
break;
case preg_match('~^' . preg_quote("/pac$hash/sub") . '~', $_SERVER['REQUEST_URI']) && file_exists(__DIR__ . '/subscription.php'):
$bot->sub();
exit;
// subs & pac
case preg_match('~^' . preg_quote("/pac$hash") . '~', $_SERVER['REQUEST_URI']):
if (!empty($t = unserialize(base64_decode(explode('/', $_SERVER['REQUEST_URI'])[2])))) { // fix sing-box import