function build() { $pidfile = "/etc/artica-postfix/pids/" . basename(__FILE__) . "." . __FUNCTION__ . ".pid"; $unix = new unix(); $sock = new sockets(); $pid = $unix->get_pid_from_file($pidfile); if ($unix->process_exists($pid, basename(__FILE__))) { die; } $php = $unix->LOCATE_PHP5_BIN(); @file_put_contents($pidfile, getmypid()); progress("{get_system_informations}", 30); support_step1(); progress("{APP_UFDBGUARD}", 40); $EnableUfdbGuard = intval($sock->EnableUfdbGuard()); if ($EnableUfdbGuard == 1) { $ufdbguardd = $unix->find_program("ufdbguardd"); if (is_file($ufdbguardd)) { shell_exec("{$php} /usr/share/artica-postfix/exec.squidguard.php --build --force --verbose >/usr/share/artica-postfix/ressources/support/build-ufdbguard.log 2>&1"); } } progress("{get_all_logs}", 50); support_step2(); progress("{get_all_logs}", 70); export_tables(); progress("{compressing_package}", 90); support_step3(); progress("{success}", 100); }
exit; } if (isset($_GET["ufdbguard-compile-smooth"])) { ufdbguard_compile_smooth(); exit; } if (isset($_GET["compile-by-interface"])) { compile_by_interface(); exit; } if (isset($_GET["support-step1"])) { support_step1(); exit; } if (isset($_GET["support-step2"])) { support_step2(); exit; } if (isset($_GET["support-step3"])) { support_step3(); exit; } if (isset($_GET["delete-backuped-category-container"])) { delete_backuped_container(); exit; } if (isset($_GET["restore-backup-catz"])) { restore_backuped_categories(); exit; } if (isset($_GET["empty-perso-catz"])) {