diff --git a/mail-restart.php b/mail-restart.php index 4b87688..d84a062 100644 --- a/mail-restart.php +++ b/mail-restart.php @@ -28,16 +28,18 @@ include_once("./include/db.php"); if ($PARAM=="MAL") { $TABLE="MAILUSER"; } else { $TABLE="FWDUSER";} echo "". - ""; + ""; - echo "

+ [ DB rebuild TABLE: $TABLE ]
"; - $output = shell_exec("/usr/local/bin/sudo ".$mng_user." ".$PARAM); - echo "

". - "

$output
"; + if ($restricted_petar == false) { + echo "

+ [ DB rebuild TABLE: $TABLE ]
"; + $output = shell_exec("/usr/local/bin/sudo ".$mng_user." ".$PARAM); + echo "

". + "

$output
"; + } echo "

+ [ SRV restart ]
"; - $output = shell_exec("/usr/local/bin/sudo ".$mng_user." SRV "); - echo "

". + $output = shell_exec("/usr/local/bin/sudo ".$mng_user." SRV "); + echo "

". "

$output
"; echo "";