@@ -6,10 +6,10 @@ discard block |
||
6 | 6 | include "modules/ranking.php"; // Include the ranking module |
7 | 7 | include "modules/singbox.php"; // Include the singbox module |
8 | 8 | |
9 | -function addHeader ($subscription, $subscriptionName) { |
|
9 | +function addHeader($subscription, $subscriptionName) { |
|
10 | 10 | $headerText = "#profile-title: base64:" . base64_encode($subscriptionName) . " |
11 | 11 | #profile-update-interval: 1 |
12 | -#subscription-userinfo: upload=455727941; download=6174315083; total=107374182400000000; expire=" . create_tehran_timestamp_tomorrow() ." |
|
12 | +#subscription-userinfo: upload=455727941; download=6174315083; total=107374182400000000; expire=" . create_tehran_timestamp_tomorrow() . " |
|
13 | 13 | #support-url: https://t.me/v2raycollector |
14 | 14 | #profile-web-page-url: https://github.com/yebekhe/TelegramV2rayCollector |
15 | 15 | "; |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | rmdir($folder); |
29 | 29 | } |
30 | 30 | |
31 | -function seprate_by_country($configs){ |
|
31 | +function seprate_by_country($configs) { |
|
32 | 32 | $configsArray = explode("\n", $configs); |
33 | 33 | $configLocation = ""; |
34 | 34 | $output = []; |
@@ -37,13 +37,13 @@ discard block |
||
37 | 37 | |
38 | 38 | if ($configType === "vmess") { |
39 | 39 | $configName = parse_config($config, "vmess", true)['ps']; |
40 | - } elseif ($configType === "vless" || $configType === "trojan" ){ |
|
40 | + } elseif ($configType === "vless" || $configType === "trojan") { |
|
41 | 41 | $configName = parse_config($config, $configType)['hash']; |
42 | - } elseif ($configType === "ss"){ |
|
42 | + } elseif ($configType === "ss") { |
|
43 | 43 | $configName = parse_config($config, "ss")['name']; |
44 | 44 | } |
45 | 45 | |
46 | - if (stripos($configName, "RELAY |