Update dari aaPanel

This commit is contained in:
WD - Dev
2025-07-15 00:18:35 +07:00
parent 84c697516e
commit 759b6d9047
13 changed files with 259 additions and 101 deletions
+4 -3
View File
@@ -19,6 +19,7 @@ if ($set1->rowCount() > 0) {
while ($pset = $set1->fetch(PDO::FETCH_ASSOC)) {
// Get connection details for the router
$nama = $pset['nama'];
$m_ip = $pset['ip_address'];
$m_user = $pset['username'];
$m_pass = $pset['password'];
@@ -26,16 +27,16 @@ if ($set1->rowCount() > 0) {
$idsm = $pset['id_setting_mikrotik'];
// Prepare the command for each router
$command = "php /www/wwwroot/bilspro/load/check_voucher.php {$m_ip} {$m_user} {$m_pass} {$m_port} {$idsm} > /dev/null 2>&1 &";
$command = "php /www/wwwroot/bilspro/load/check_voucher.php {$m_ip} {$m_user} {$m_pass} {$m_port} {$idsm} {$nama} > /dev/null 2>&1 &";
// Execute the command in background
exec($command, $output, $return_var);
// Check if there was an issue with exec
if ($return_var !== 0) {
echo "Error executing command for IP: {$m_ip}\n";
echo "Error executing command for IP: {$m_ip}<br>";
} else {
echo "Successfully started background process for IP: {$m_ip}\n";
echo "Successfully started background process for IP: {$m_ip} {$nama}<br>";
}
}