Skip to content

Commit 328611e

Browse files
committed
Fix the port bug
1 parent 5701f4c commit 328611e

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

bot.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -852,7 +852,7 @@
852852
$stmt->execute();
853853
$srv_remark = $stmt->get_result()->fetch_assoc()['remark'];
854854
$stmt->close();
855-
$savedinfo = file_get_contents('temp.txt');
855+
$savedinfo = file_get_contents('settings/temp.txt');
856856
$savedinfo = explode('-',$savedinfo);
857857
$port = $savedinfo[0];
858858
$last_num = $savedinfo[1];
@@ -912,7 +912,7 @@
912912
}
913913
$stmt->close();
914914
if($portType == "auto"){
915-
file_put_contents('temp.txt',$port.'-'.$last_num);
915+
file_put_contents('settings/temp.txt',$port.'-'.$last_num);
916916
}
917917
sendMessage("☑️|❤️ اکانت های جدید با موفقیت ساخته شد",$mainKeys);
918918
setUser();
@@ -1214,7 +1214,7 @@
12141214

12151215
$uniqid = generateRandomString(42,$protocol);
12161216

1217-
$savedinfo = file_get_contents('temp.txt');
1217+
$savedinfo = file_get_contents('settings/temp.txt');
12181218
$savedinfo = explode('-',$savedinfo);
12191219
$port = $savedinfo[0] + 1;
12201220
$last_num = $savedinfo[1] + 1;
@@ -1239,7 +1239,7 @@
12391239
$remark = "{$srv_remark}-{$randadad}";
12401240

12411241
if($portType == "auto"){
1242-
file_put_contents('temp.txt',$port.'-'.$last_num);
1242+
file_put_contents('settings/temp.txt',$port.'-'.$last_num);
12431243
}else{
12441244
$port = rand(12222,65000);
12451245
}
@@ -1472,7 +1472,7 @@
14721472

14731473
$uniqid = generateRandomString(42,$protocol);
14741474

1475-
$savedinfo = file_get_contents('temp.txt');
1475+
$savedinfo = file_get_contents('settings/temp.txt');
14761476
$savedinfo = explode('-',$savedinfo);
14771477
$port = $savedinfo[0] + 1;
14781478
$last_num = $savedinfo[1] + 1;
@@ -1496,7 +1496,7 @@
14961496
$remark = "{$srv_remark}-{$randadad}";
14971497

14981498
if($portType == "auto"){
1499-
file_put_contents('temp.txt',$port.'-'.$last_num);
1499+
file_put_contents('settings/temp.txt',$port.'-'.$last_num);
15001500
}else{
15011501
$port = rand(12222,65000);
15021502
}
@@ -2290,7 +2290,7 @@
22902290

22912291
$uniqid = generateRandomString(42,$protocol);
22922292

2293-
$savedinfo = file_get_contents('temp.txt');
2293+
$savedinfo = file_get_contents('settings/temp.txt');
22942294
$savedinfo = explode('-',$savedinfo);
22952295
$port = $savedinfo[0] + 1;
22962296
$last_num = $savedinfo[1] + 1;
@@ -2314,7 +2314,7 @@
23142314
$remark = "{$srv_remark}-{$randadad}";
23152315

23162316
if($portType == "auto"){
2317-
file_put_contents('temp.txt',$port.'-'.$last_num);
2317+
file_put_contents('settings/temp.txt',$port.'-'.$last_num);
23182318
}else{
23192319
$port = rand(12222,65000);
23202320
}

0 commit comments

Comments
 (0)