Skip to content

Commit d0e32e8

Browse files
authored
Update config.php
1 parent 25a8c44 commit d0e32e8

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

config.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,9 @@ function ip_in_range($ip, $range){
159159
$update = json_decode(file_get_contents("php://input"));
160160
if(isset($update->message)){
161161
$from_id = $update->message->from->id;
162-
$text = $update->message->text;
162+
$text = htmlspecialchars($update->message->text);
163163
$first_name = htmlspecialchars($update->message->from->first_name);
164-
$caption = $update->message->caption;
164+
$caption = htmlspecialchars($update->message->caption);
165165
$chat_id = $update->message->chat->id;
166166
$last_name = htmlspecialchars($update->message->from->last_name);
167167
$username = $update->message->from->username?? " ندارد ";
@@ -173,7 +173,7 @@ function ip_in_range($ip, $range){
173173
if(isset($update->callback_query)){
174174
$callbackId = $update->callback_query->id;
175175
$data = $update->callback_query->data;
176-
$text = $update->callback_query->message->text;
176+
$text = htmlspecialchars($update->callback_query->message->text);
177177
$message_id = $update->callback_query->message->message_id;
178178
$chat_id = $update->callback_query->message->chat->id;
179179
$chat_type = $update->callback_query->message->chat->type;
@@ -754,7 +754,7 @@ function getServerListKeys($offset = 0){
754754
}
755755
}
756756
if($offset == 0 && $cats->num_rows >= $limit){
757-
$key,s[] = [['text'=>" »» صفحه بعدی »»",'callback_data'=>"nextServerPage" . ($offset + $limit)]];
757+
$keys[] = [['text'=>" »» صفحه بعدی »»",'callback_data'=>"nextServerPage" . ($offset + $limit)]];
758758
}
759759
elseif($cats->num_rows >= $limit){
760760
$keys[] = [
@@ -1434,7 +1434,7 @@ function getUserOrderDetailKeys($id){
14341434
if($row->id == $inbound_id) {
14351435
$netType = json_decode($row->streamSettings)->network;
14361436
$security = json_decode($row->streamSettings)->security;
1437-
, $clientsStates = $row->clientStats;
1437+
$clientsStates = $row->clientStats;
14381438
$clients = json_decode($row->settings)->clients;
14391439
foreach($clients as $key => $client){
14401440
if($client->id == $uuid || $client->password == $uuid){
@@ -2032,7 +2032,7 @@ function getOrderDetailKeys($from_id, $id){
20322032
],
20332033
[
20342034
['text' => " $leftgb", 'callback_data' => "wizwizch"],
2035-
[,'text' => $buttonValues['volume_left'], 'callback_data' => "wizwizch"],
2035+
['text' => $buttonValues['volume_left'], 'callback_data' => "wizwizch"],
20362036
],
20372037
[
20382038
['text' => $buttonValues['selected_protocol'], 'callback_data' => "wizwizch"],
@@ -2799,7 +2799,7 @@ function renewInboundUuid($server_id, $uuid){
27992799
$response = curl_exec($curl);
28002800
curl_close($curl);
28012801
$response = json_decode($response);
2802-
$response->newUuid = $newUui,d;
2802+
$response->newUuid = $newUuid;
28032803
return $response;
28042804

28052805
}
@@ -3602,7 +3602,7 @@ function resetClientTraffic($server_id, $remark, $inboundId = null){
36023602
curl_setopt($curl, CURLOPT_URL, $loginUrl);
36033603
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1);
36043604
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
3605-
,curl_setopt($curl, CURLOPT_POST, 1);
3605+
curl_setopt($curl, CURLOPT_POST, 1);
36063606
curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 3);
36073607
curl_setopt($curl, CURLOPT_TIMEOUT, 3);
36083608
curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query($postFields));
@@ -4280,7 +4280,7 @@ function updateConfig($server_id, $inboundId, $protocol, $netType = 'tcp', $secu
42804280
$tlsSettings = $server_info['tlsSettings'];
42814281
$header_type = $server_info['header_type'];
42824282
$request_header = $server_info['request_header'];
4283-
, $response_header = $server_info['response_header'];
4283+
$response_header = $server_info['response_header'];
42844284
$cookie = 'Cookie: session='.$server_info['cookie'];
42854285
$serverType = $server_info['type'];
42864286
$xtlsTitle = ($serverType == "sanaei" || $serverType == "alireza")?"XTLSSettings":"xtlsSettings";
@@ -5258,7 +5258,7 @@ function addUser($server_id, $client_id, $protocol, $port, $expiryTime, $remark,
52585258
"id": "'.$client_id.'",
52595259
"flow": "",
52605260
"email": "' . $remark. '"
5261-
},
5261+
}
52625262
],
52635263
"decryption": "none",
52645264
"fallbacks": []

0 commit comments

Comments
 (0)