|
714 | 714 | if($userInfo['wallet'] >= $text){ |
715 | 715 | $stmt = $connection->prepare("UPDATE `users` SET `wallet` = `wallet` + ? WHERE `userid` = ?"); |
716 | 716 | $stmt->bind_param("ii", $text, $match[1]); |
717 | | - $stmt->execut,e(); |
| 717 | + $stmt->execute(); |
718 | 718 | $stmt->close(); |
719 | 719 |
|
720 | 720 | $stmt = $connection->prepare("UPDATE `users` SET `wallet` = `wallet` - ? WHERE `userid` = ?"); |
|
1450 | 1450 | } |
1451 | 1451 |
|
1452 | 1452 | } |
1453 | | -if(preg_m,atch('/payWithWeSwap(.*)/',$data,$match)) { |
| 1453 | +if(preg_match('/payWithWeSwap(.*)/',$data,$match)) { |
1454 | 1454 | $stmt = $connection->prepare("SELECT * FROM `pays` WHERE `hash_id` = ?"); |
1455 | 1455 | $stmt->bind_param("s", $match[1]); |
1456 | 1456 | $stmt->execute(); |
|
2275 | 2275 |
|
2276 | 2276 | $stmt = $connection->prepare("SELECT * FROM `server_categories` WHERE `parent`=0 order by `id` asc"); |
2277 | 2277 | $stmt->execute(); |
2278 | | - $respd = $stmt->,get_result(); |
| 2278 | + $respd = $stmt->get_result(); |
2279 | 2279 | $stmt->close(); |
2280 | 2280 | if($respd->num_rows == 0){ |
2281 | 2281 | alert($mainValues['category_not_avilable']); |
|
2961 | 2961 |
|
2962 | 2962 | if($serverType == "marzban"){ |
2963 | 2963 | $uniqid = $token = str_replace("/sub/", "", $response->sub_link); |
2964 | | - $subLink = $botS,tate['subLinkState'] == "on"?$panelUrl . $response->sub_link:""; |
| 2964 | + $subLink = $botState['subLinkState'] == "on"?$panelUrl . $response->sub_link:""; |
2965 | 2965 | $vraylink = [$subLink]; |
2966 | 2966 | $vray_link = json_encode($response->vray_links); |
2967 | 2967 | } |
|
3755 | 3755 | $stmt->execute(); |
3756 | 3756 | $stmt->close(); |
3757 | 3757 |
|
3758 | | - sendMessage("تبریک یکی از زی�,� مجموعه های شما خرید انجام داد شما مبلغ " . number_format($inviteAmount) . " تومان جایزه دریافت کردید",null,null,$inviterId); |
| 3758 | + sendMessage("تبریک یکی از زیر مجموعه های شما خرید انجام داد شما مبلغ " . number_format($inviteAmount) . " تومان جایزه دریافت کردید",null,null,$inviterId); |
3759 | 3759 | } |
3760 | 3760 | if($inbound_id == 0) { |
3761 | 3761 | $stmt = $connection->prepare("UPDATE `server_info` SET `ucount` = `ucount` - ? WHERE `id`=?"); |
|
4485 | 4485 | $msg = ' 📍 برای دیدن جزییات پلن زمانی روی آن بزنید👇'; |
4486 | 4486 |
|
4487 | 4487 | editText($message_id,$msg,json_encode([ |
4488 | | - 'inline_keyboard' => $keyboa,rd |
| 4488 | + 'inline_keyboard' => $keyboard |
4489 | 4489 | ])); |
4490 | 4490 |
|
4491 | 4491 | exit; |
|
5219 | 5219 | if($current>=$cont){ |
5220 | 5220 | break; |
5221 | 5221 | } |
5222 | | - , } |
| 5222 | + } |
5223 | 5223 |
|
5224 | 5224 | if($allList > $cont){ |
5225 | 5225 | $keys = json_encode(['inline_keyboard'=>[ |
|
5948 | 5948 | } |
5949 | 5949 | $clientsSettings = json_decode($list[$keys]->settings,true)['clients']; |
5950 | 5950 | if(!is_array($clientsSettings)){ |
5951 | | - sendMessage("با عرض پوزش، متأس�,�انه مشکلی رخ داده است، لطفا مجدد اقدام کنید"); |
| 5951 | + sendMessage("با عرض پوزش، متأسفانه مشکلی رخ داده است، لطفا مجدد اقدام کنید"); |
5952 | 5952 | exit(); |
5953 | 5953 | } |
5954 | 5954 | $settingsId = array_column($clientsSettings,'id'); |
|
6617 | 6617 | $sql = ("UPDATE `server_plans` SET `volume`=?,`step`=55 WHERE `active`=0"); |
6618 | 6618 | $msg = "🔉 | لطفا نوع شبکه این پلن را در انتخاب کنید (ws | tcp | grpc) :"; |
6619 | 6619 | }elseif($userInfo['step'] == "addNewRahgozarPlan" || $userInfo['step'] == "addNewMarzbanPlan"){ |
6620 | | - $sql = ("UP,DATE `server_plans` SET `volume`=?, `type`='ws', `step`=4 WHERE `active`=0"); |
| 6620 | + $sql = ("UPDATE `server_plans` SET `volume`=?, `type`='ws', `step`=4 WHERE `active`=0"); |
6621 | 6621 | $msg = '🔻یه توضیح برای پلن مورد نظرت بنویس:'; |
6622 | 6622 | } |
6623 | 6623 | $stmt = $connection->prepare($sql); |
|
7368 | 7368 | } |
7369 | 7369 | } |
7370 | 7370 |
|
7371 | | - if,($botState['updateConnectionState'] == "robot"){ |
| 7371 | + if($botState['updateConnectionState'] == "robot"){ |
7372 | 7372 | updateConfig($server_id, $iId, $protocol, $netType, $security, $rahgozar); |
7373 | 7373 | } |
7374 | 7374 | $vraylink = getConnectionLink($server_id, $uuid, $protocol, $remark, $port, $netType, $inboundId, $rahgozar, $customPath, $customPort, $customSni); |
|
8142 | 8142 | $remark = $order['remark']; |
8143 | 8143 | $uuid = $order['uuid']??"0"; |
8144 | 8144 | $fid = $order['fileid']; |
8145 | | - $protocol = $,order['protocol']; |
| 8145 | + $protocol = $order['protocol']; |
8146 | 8146 | $link = json_decode($order['link'])[0]; |
8147 | 8147 |
|
8148 | 8148 | $stmt = $connection->prepare("SELECT * FROM `server_plans` WHERE `id`=?"); |
|
8934 | 8934 |
|
8935 | 8935 | if($botState['cartToCartState'] == "on") $keyboard[] = [['text' => $buttonValues['cart_to_cart'] . $planprice, 'callback_data' => "payIncreaseWithCartToCart$hash_id"]]; |
8936 | 8936 | if($botState['nowPaymentOther'] == "on") $keyboard[] = [['text' => $buttonValues['now_payment_gateway'], 'url' => $botUrl . "pay/?nowpayment&hash_id=" . $hash_id]]; |
8937 | | - if($botState['zarinpal'] == "on") $keyboard[] = [['text' => $buttonVal,ues['zarinpal_gateway'], 'url' => $botUrl . "pay/?zarinpal&hash_id=" . $hash_id]]; |
| 8937 | + if($botState['zarinpal'] == "on") $keyboard[] = [['text' => $buttonValues['zarinpal_gateway'], 'url' => $botUrl . "pay/?zarinpal&hash_id=" . $hash_id]]; |
8938 | 8938 | if($botState['nextpay'] == "on") $keyboard[] = [['text' => $buttonValues['nextpay_gateway'], 'url' => $botUrl . "pay/?nextpay&hash_id=" . $hash_id]]; |
8939 | 8939 | if($botState['weSwapState'] == "on") $keyboard[] = [['text' => $buttonValues['weswap_gateway'], 'callback_data' => "payWithWeSwap" . $hash_id]]; |
8940 | 8940 | if($botState['walletState'] == "on") $keyboard[] = [['text' => "💰پرداخت با موجودی " . $planprice, 'callback_data' => "payIncraseWithWallet$hash_id"]]; |
|
9668 | 9668 |
|
9669 | 9669 | } |
9670 | 9670 | if(!$loginResponse['success']){ |
9671 | | - setUser('addServerPanelUser' . json_encode($data, JSON_UNESCAPE,D_UNICODE)); |
| 9671 | + setUser('addServerPanelUser' . json_encode($data, JSON_UNESCAPED_UNICODE)); |
9672 | 9672 | sendMessage( " |
9673 | 9673 | ⚠️ با خطا مواجه شدی ! |
9674 | 9674 |
|
|
0 commit comments