$tpl = new templates(); $alert = $tpl->_ENGINE_parse_body('{ERROR_NO_PRIVS}'); echo "alert('{$alert}');"; die; } } if (isset($_GET["button"])) { apply_button(); exit; } if (isset($_GET["apply-js"])) { apply_js(); exit; } if (isset($_GET["apply-popup"])) { apply_popup(); exit; } if (isset($_GET["apply-next"])) { apply_next(); exit; } if (isset($_POST["shorewall-progress"])) { apply_progress(); exit; } if (isset($_POST["shorewall-restart"])) { apply_restart(); exit; } apply_js();
function main_select_popups() { switch ($_GET["popup"]) { case "trustlocal": echo trustlocal_popup(); break; case "localnetwork": echo localnetwork_popup(); break; case "filterbehavior": echo filterbehavior_popup(); break; case "notification": echo notification_popup(); break; case "spamassassin": echo spamassassin_popup(); break; case "apply": echo apply_popup(); break; case "filterextension": echo filterextension_popup(); break; case "backup": backup_popup(); break; default: break; } }