Update mail-restart.php
This commit is contained in:
parent
81e9d6e7fb
commit
f151de7e74
1 changed files with 9 additions and 7 deletions
|
|
@ -28,16 +28,18 @@ include_once("./include/db.php");
|
|||
if ($PARAM=="MAL") { $TABLE="MAILUSER"; } else { $TABLE="FWDUSER";}
|
||||
|
||||
echo "<tr>".
|
||||
"<td colspan=2>";
|
||||
"<td colspan=2>";
|
||||
|
||||
echo "<p>+ [ <strong>DB rebuild TABLE: $TABLE</strong> ]<br>";
|
||||
$output = shell_exec("/usr/local/bin/sudo ".$mng_user." ".$PARAM);
|
||||
echo "<p>".
|
||||
"<pre>$output</pre>";
|
||||
if ($restricted_petar == false) {
|
||||
echo "<p>+ [ <strong>DB rebuild TABLE: $TABLE</strong> ]<br>";
|
||||
$output = shell_exec("/usr/local/bin/sudo ".$mng_user." ".$PARAM);
|
||||
echo "<p>".
|
||||
"<pre>$output</pre>";
|
||||
}
|
||||
|
||||
echo "<p>+ [ <strong>SRV restart</strong> ]<br>";
|
||||
$output = shell_exec("/usr/local/bin/sudo ".$mng_user." SRV ");
|
||||
echo "<p>".
|
||||
$output = shell_exec("/usr/local/bin/sudo ".$mng_user." SRV ");
|
||||
echo "<p>".
|
||||
"<pre>$output</pre>";
|
||||
|
||||
echo "</td></tr>";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue