function unlink_disk() { $unix = new unix(); $php = $unix->LOCATE_PHP5_BIN(); $cmd = "{$php} /usr/share/artica-postfix/exec.system.build-partition.php --unlink \"{$_GET["unlink-disk"]}\""; writelogs_framework($cmd, __FUNCTION__, __FILE__); NOHUP_EXEC($cmd); }
function EnableEmergingThreats() { $cmd = LOCATE_PHP5_BIN2() . " /usr/share/artica-postfix/exec.emerging.threats.php"; NOHUP_EXEC($cmd); }
function AUTOFS_RELOAD() { $unix = new unix(); $davfs = $unix->find_program("mount.davfs"); $nohup = $unix->find_program("nohup"); if (is_file($davfs)) { $cmd = trim($nohup . " " . LOCATE_PHP5_BIN2() . " /usr/share/artica-postfix/exec.AutoFS.php --davfs >/dev/null &"); shell_exec($cmd); return; } $cmd = trim($nohup . " /etc/init.d/autofs reload >/dev/null &"); writelogs_framework("{$cmd}", __FUNCTION__, __FILE__, __LINE__); shell_exec($cmd); $cmd = "/etc/init.d/artica-status reload"; $unix->THREAD_COMMAND_SET($cmd); NOHUP_EXEC("/etc/init.d/monit restart"); }