Update mail-restart.php

This commit is contained in:
gmarco 2025-03-08 11:46:44 +01:00
parent 81e9d6e7fb
commit f151de7e74

View file

@ -28,16 +28,18 @@ include_once("./include/db.php");
if ($PARAM=="MAL") { $TABLE="MAILUSER"; } else { $TABLE="FWDUSER";} if ($PARAM=="MAL") { $TABLE="MAILUSER"; } else { $TABLE="FWDUSER";}
echo "<tr>". echo "<tr>".
"<td colspan=2>"; "<td colspan=2>";
echo "<p>+ [ <strong>DB rebuild TABLE: $TABLE</strong> ]<br>"; if ($restricted_petar == false) {
$output = shell_exec("/usr/local/bin/sudo ".$mng_user." ".$PARAM); echo "<p>+ [ <strong>DB rebuild TABLE: $TABLE</strong> ]<br>";
echo "<p>". $output = shell_exec("/usr/local/bin/sudo ".$mng_user." ".$PARAM);
"<pre>$output</pre>"; echo "<p>".
"<pre>$output</pre>";
}
echo "<p>+ [ <strong>SRV restart</strong> ]<br>"; echo "<p>+ [ <strong>SRV restart</strong> ]<br>";
$output = shell_exec("/usr/local/bin/sudo ".$mng_user." SRV "); $output = shell_exec("/usr/local/bin/sudo ".$mng_user." SRV ");
echo "<p>". echo "<p>".
"<pre>$output</pre>"; "<pre>$output</pre>";
echo "</td></tr>"; echo "</td></tr>";