@@ -755,7 +755,7 @@ function getServerListKeys($offset = 0){
755755 $ keys [] = [['text ' =>$ state ,'callback_data ' =>'toggleServerState ' . $ id . "_ " . $ offset ],['text ' =>"⚙️ " ,'callback_data ' =>"showServerSettings " . $ id . "_ " . $ offset ],['text ' =>$ serverType ??" " ,'callback_data ' =>"wizwizch " ],['text ' =>$ cname ,'callback_data ' =>"wizwizch " ]];
756756 }
757757 }
758- if ($ offset == 0 &, & $ cats ->num_rows >= $ limit ){
758+ if ($ offset == 0 && $ cats ->num_rows >= $ limit ){
759759 $ keys [] = [['text ' =>" »» صفحه بعدی »» " ,'callback_data ' =>"nextServerPage " . ($ offset + $ limit )]];
760760 }
761761 elseif ($ cats ->num_rows >= $ limit ){
@@ -1436,7 +1436,7 @@ function getUserOrderDetailKeys($id){
14361436 $ total = $ info ->data_limit ;
14371437 $ usedTraffic = $ info ->used_traffic ;
14381438
1439- $ leftgb , = round ( ($ total - $ usedTraffic ) / 1073741824 , 2 ) . " GB " ;
1439+ $ leftgb = round ( ($ total - $ usedTraffic ) / 1073741824 , 2 ) . " GB " ;
14401440 }else {
14411441 $ response = getJson ($ server_id )->obj ;
14421442 if ($ inbound_id == 0 ) {
@@ -2035,7 +2035,7 @@ function getOrderDetailKeys($from_id, $id){
20352035 ],
20362036 [
20372037 ['text ' => "$ expire_date " , 'callback_data ' => "wizwizch " ],
2038- ['text ' => $ buttonValues ['expire_date ' ], 'callback_data ' => "w,izwizch " ],
2038+ ['text ' => $ buttonValues ['expire_date ' ], 'callback_data ' => "wizwizch " ],
20392039 ],
20402040 [
20412041 ['text ' => " $ leftgb " , 'callback_data ' => "wizwizch " ],
@@ -2752,7 +2752,7 @@ function renewInboundUuid($server_id, $uuid){
27522752 $ stmt ->close ();
27532753
27542754 $ panel_url = $ server_info ['panel_url ' ];
2755- $ cookie = 'Cookie: session= ' .$ server_in ,fo ['cookie ' ];
2755+ $ cookie = 'Cookie: session= ' .$ server_info ['cookie ' ];
27562756 $ serverType = $ server_info ['type ' ];
27572757
27582758 $ response = getJson ($ server_id );
@@ -3541,7 +3541,7 @@ function deleteInbound($server_id, $uuid, $delete = 0){
35413541 CURLOPT_FOLLOWLOCATION => true ,
35423542 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1 ,
35433543 CURLOPT_CUSTOMREQUEST => 'POST ' ,
3544- CURLOPT_HEADER => fa,lse ,
3544+ CURLOPT_HEADER => false ,
35453545 CURLOPT_HTTPHEADER => array (
35463546 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0 ' ,
35473547 'Accept: application/json, text/plain, */* ' ,
@@ -4254,7 +4254,7 @@ function getConnectionLink($server_id, $uniqid, $protocol, $remark, $port, $netT
42544254 $ outputlink = "$ protocol:// $ uniqid@ $ server_ip: $ port?type= $ netType&security= $ tlsStatus&serviceName= $ serviceName&sni= $ sni# $ remark " ;
42554255 }
42564256 elseif ($ tlsStatus =="reality " ){
4257- , $ outputlink = "$ protocol:// $ uniqid@ $ server_ip: $ port?type= $ netType&security= $ tlsStatus&serviceName= $ serviceName&fp= $ fp&pbk= $ pbk&sni= $ sni " . ($ flow != "" ?"&flow= $ flow " :"" ) . "&sid= $ sid&spx= $ spiderX# $ remark " ;
4257+ $ outputlink = "$ protocol:// $ uniqid@ $ server_ip: $ port?type= $ netType&security= $ tlsStatus&serviceName= $ serviceName&fp= $ fp&pbk= $ pbk&sni= $ sni " . ($ flow != "" ?"&flow= $ flow " :"" ) . "&sid= $ sid&spx= $ spiderX# $ remark " ;
42584258 }
42594259 else {
42604260 $ outputlink = "$ protocol:// $ uniqid@ $ server_ip: $ port?type= $ netType&security= $ tlsStatus&serviceName= $ serviceName# $ remark " ;
@@ -5199,7 +5199,7 @@ function getMarzbanUser($server_id, $remark, $token = null){
51995199 $ server_info = $ stmt ->get_result ()->fetch_assoc ();
52005200 $ stmt ->close ();
52015201
5202- $ panel_url = $ serv ,er_info ['panel_url ' ];
5202+ $ panel_url = $ server_info ['panel_url ' ];
52035203
52045204 if ($ token == null ) $ token = getMarzbanToken ($ server_id );
52055205 if (isset ($ token ->detail )){return (object ) ['success ' =>false , 'msg ' =>$ token ->detail ];}
@@ -6157,7 +6157,7 @@ function addUser($server_id, $client_id, $protocol, $port, $expiryTime, $remark,
61576157 "enable": true,
61586158 "email": " ' . $ remark . '",
61596159 "limitIp": 0,
6160- , "totalGB": 0,
6160+ "totalGB": 0,
61616161 "expiryTime": 0,
61626162 "subId": " ' . RandomString (16 ) . '"
61636163 }
0 commit comments