Skip to content

Commit ef6d8f5

Browse files
authored
Update bot.php
1 parent 3e12091 commit ef6d8f5

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

bot.php

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@
714714
if($userInfo['wallet'] >= $text){
715715
$stmt = $connection->prepare("UPDATE `users` SET `wallet` = `wallet` + ? WHERE `userid` = ?");
716716
$stmt->bind_param("ii", $text, $match[1]);
717-
$stmt->execut,e();
717+
$stmt->execute();
718718
$stmt->close();
719719

720720
$stmt = $connection->prepare("UPDATE `users` SET `wallet` = `wallet` - ? WHERE `userid` = ?");
@@ -1450,7 +1450,7 @@
14501450
}
14511451

14521452
}
1453-
if(preg_m,atch('/payWithWeSwap(.*)/',$data,$match)) {
1453+
if(preg_match('/payWithWeSwap(.*)/',$data,$match)) {
14541454
$stmt = $connection->prepare("SELECT * FROM `pays` WHERE `hash_id` = ?");
14551455
$stmt->bind_param("s", $match[1]);
14561456
$stmt->execute();
@@ -2275,7 +2275,7 @@
22752275

22762276
$stmt = $connection->prepare("SELECT * FROM `server_categories` WHERE `parent`=0 order by `id` asc");
22772277
$stmt->execute();
2278-
$respd = $stmt->,get_result();
2278+
$respd = $stmt->get_result();
22792279
$stmt->close();
22802280
if($respd->num_rows == 0){
22812281
alert($mainValues['category_not_avilable']);
@@ -2961,7 +2961,7 @@
29612961

29622962
if($serverType == "marzban"){
29632963
$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:"";
29652965
$vraylink = [$subLink];
29662966
$vray_link = json_encode($response->vray_links);
29672967
}
@@ -3755,7 +3755,7 @@
37553755
$stmt->execute();
37563756
$stmt->close();
37573757

3758-
sendMessage("تبریک یکی از زی�,� مجموعه های شما خرید انجام داد شما مبلغ " . number_format($inviteAmount) . " تومان جایزه دریافت کردید",null,null,$inviterId);
3758+
sendMessage("تبریک یکی از زیر مجموعه های شما خرید انجام داد شما مبلغ " . number_format($inviteAmount) . " تومان جایزه دریافت کردید",null,null,$inviterId);
37593759
}
37603760
if($inbound_id == 0) {
37613761
$stmt = $connection->prepare("UPDATE `server_info` SET `ucount` = `ucount` - ? WHERE `id`=?");
@@ -4485,7 +4485,7 @@
44854485
$msg = ' 📍 برای دیدن جزییات پلن زمانی روی آن بزنید👇';
44864486

44874487
editText($message_id,$msg,json_encode([
4488-
'inline_keyboard' => $keyboa,rd
4488+
'inline_keyboard' => $keyboard
44894489
]));
44904490

44914491
exit;
@@ -5219,7 +5219,7 @@
52195219
if($current>=$cont){
52205220
break;
52215221
}
5222-
, }
5222+
}
52235223

52245224
if($allList > $cont){
52255225
$keys = json_encode(['inline_keyboard'=>[
@@ -5948,7 +5948,7 @@
59485948
}
59495949
$clientsSettings = json_decode($list[$keys]->settings,true)['clients'];
59505950
if(!is_array($clientsSettings)){
5951-
sendMessage("با عرض پوزش، متأس�,�انه مشکلی رخ داده است، لطفا مجدد اقدام کنید");
5951+
sendMessage("با عرض پوزش، متأسفانه مشکلی رخ داده است، لطفا مجدد اقدام کنید");
59525952
exit();
59535953
}
59545954
$settingsId = array_column($clientsSettings,'id');
@@ -6617,7 +6617,7 @@
66176617
$sql = ("UPDATE `server_plans` SET `volume`=?,`step`=55 WHERE `active`=0");
66186618
$msg = "🔉 | لطفا نوع شبکه این پلن را در انتخاب کنید (ws | tcp | grpc) :";
66196619
}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");
66216621
$msg = '🔻یه توضیح برای پلن مورد نظرت بنویس:';
66226622
}
66236623
$stmt = $connection->prepare($sql);
@@ -7368,7 +7368,7 @@
73687368
}
73697369
}
73707370

7371-
if,($botState['updateConnectionState'] == "robot"){
7371+
if($botState['updateConnectionState'] == "robot"){
73727372
updateConfig($server_id, $iId, $protocol, $netType, $security, $rahgozar);
73737373
}
73747374
$vraylink = getConnectionLink($server_id, $uuid, $protocol, $remark, $port, $netType, $inboundId, $rahgozar, $customPath, $customPort, $customSni);
@@ -8142,7 +8142,7 @@
81428142
$remark = $order['remark'];
81438143
$uuid = $order['uuid']??"0";
81448144
$fid = $order['fileid'];
8145-
$protocol = $,order['protocol'];
8145+
$protocol = $order['protocol'];
81468146
$link = json_decode($order['link'])[0];
81478147

81488148
$stmt = $connection->prepare("SELECT * FROM `server_plans` WHERE `id`=?");
@@ -8934,7 +8934,7 @@
89348934

89358935
if($botState['cartToCartState'] == "on") $keyboard[] = [['text' => $buttonValues['cart_to_cart'] . $planprice, 'callback_data' => "payIncreaseWithCartToCart$hash_id"]];
89368936
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]];
89388938
if($botState['nextpay'] == "on") $keyboard[] = [['text' => $buttonValues['nextpay_gateway'], 'url' => $botUrl . "pay/?nextpay&hash_id=" . $hash_id]];
89398939
if($botState['weSwapState'] == "on") $keyboard[] = [['text' => $buttonValues['weswap_gateway'], 'callback_data' => "payWithWeSwap" . $hash_id]];
89408940
if($botState['walletState'] == "on") $keyboard[] = [['text' => "💰پرداخت با موجودی " . $planprice, 'callback_data' => "payIncraseWithWallet$hash_id"]];
@@ -9668,7 +9668,7 @@
96689668

96699669
}
96709670
if(!$loginResponse['success']){
9671-
setUser('addServerPanelUser' . json_encode($data, JSON_UNESCAPE,D_UNICODE));
9671+
setUser('addServerPanelUser' . json_encode($data, JSON_UNESCAPED_UNICODE));
96729672
sendMessage( "
96739673
⚠️ با خطا مواجه شدی !
96749674

0 commit comments

Comments
 (0)