Skip to content

Commit

Permalink
Bug Fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
mahdiMGF2 committed May 25, 2024
1 parent 4ddddb6 commit 54ef686
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
5 changes: 2 additions & 3 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ function DirectPayment($order_id){
if ($marzban_list_get['sublink'] == "onsublink") {
$output_config_link = $dataoutput['subscription_url'];
}
if ($marzban_list_get['config'] == "onconfig") {
if ($marzban_list_get['configManual'] == "onconfig") {
foreach ($dataoutput['configs'] as $configs) {
$config .= "\n\n" . $configs;
$configqr .= $configs;
Expand All @@ -262,7 +262,7 @@ function DirectPayment($order_id){
<code>{$config}{$output_config_link}</code>
📚 راهنمای اتصال به سرویس را از طریق کلیک کردن دکمه زیر مطالعه بفرمایید";
if ($marzban_list_get['config'] == "onconfig") {
if ($marzban_list_get['configManual'] == "onconfig") {
if (count($dataoutput['configs']) == 1) {
$urlimage = "{$get_invoice['id_user']}$randomString.png";
$writer = new PngWriter();
Expand Down Expand Up @@ -352,7 +352,6 @@ function DirectPayment($order_id){
موقعیت سرویس کاربر :{$get_invoice['Service_location']}
موجودی کاربر : $balanceformatsell تومان
کد پیگیری: $randomString
نوع کاربر : {$Balance_id['agent']}
اطلاعات کاربر 👇👇
⚜️ نام کاربری کاربر: @{$Balance_id['username']}";
Expand Down
16 changes: 11 additions & 5 deletions index.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
ini_set('error_log', 'error_log');
$version = "4.8.5";
$version = "4.8.5.1";
date_default_timezone_set('Asia/Tehran');
require_once 'config.php';
require_once 'botapi.php';
Expand Down Expand Up @@ -226,16 +226,18 @@
}
#-----------/start------------#
if ($text == "/start") {
$file_path = 'install/data.php';
if (file_exists($file_path)) {
unlink($file_path);
}
update("user","Processing_value","0", "id",$from_id);
update("user","Processing_value_one","0", "id",$from_id);
update("user","Processing_value_tow","0", "id",$from_id);
sendmessage($from_id, $datatextbot['text_start'], $keyboard, 'html');
step('home', $from_id);
return;
}
#-----------back------------#
if ($text == "🏠 بازگشت به منوی اصلی" || $datain == "backuser") {
update("user","Processing_value","0", "id",$from_id);
update("user","Processing_value_one","0", "id",$from_id);
update("user","Processing_value_tow","0", "id",$from_id);
if ($datain == "backuser")
deletemessage($from_id, $message_id);
sendmessage($from_id, $textbotlang['users']['back'], $keyboard, 'html');
Expand Down Expand Up @@ -478,6 +480,10 @@
$marzban_list_get = select("marzban_panel", "*", "name_panel", $nameloc['Service_location'], "select");
$DataUserOut = $ManagePanel->DataUser($nameloc['Service_location'], $username);
if (isset ($DataUserOut['msg']) && $DataUserOut['msg'] == "User not found") {
sendmessage($from_id, $textbotlang['users']['stateus']['usernotfound'], $keyboard, 'html');
return;
}
if($DataUserOut['status'] == "Unsuccessful"){
sendmessage($from_id, $textbotlang['users']['stateus']['error'], $keyboard, 'html');
return;
}
Expand Down
1 change: 1 addition & 0 deletions text.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
$textbotlang['users']['stateus']['RemainingVolume'] = "حجم باقی مانده سرویس :";
$textbotlang['users']['stateus']['info'] = "📊 اطلاعات سرویس:";
$textbotlang['users']['stateus']['error'] = "❌خطایی رخ داده است";
$textbotlang['users']['stateus']['usernotfound'] = " ❌ کاربر در سرور وجود ندارد";
$textbotlang['users']['stateus']['getlinksub'] = "🔗 دریافت لینک اشتراک";
$textbotlang['users']['stateus']['linksub'] = "🔗 لینک اشتراک";
$textbotlang['users']['stateus']['backlist'] = "🏠 بازگشت به لیست سرویس ها";
Expand Down

0 comments on commit 54ef686

Please sign in to comment.