exit; } if (isset($_GET["ttl"])) { members_ttl(); exit; } if (isset($_POST["uid-ttl"])) { members_ttl_save(); exit; } if (isset($_GET["mysql-settings"])) { mysql_settings(); exit; } if (isset($_GET["delete-session-js"])) { delete_session_js(); exit; } if (isset($_POST["HotSpotAutoRegisterWebMail"])) { mysql_settings_save(); exit; } main_page(); function main_page() { $page = CurrentPageName(); $tplfile = "ressources/templates/endusers/index.html"; if (!is_file($tplfile)) { echo "{$tplfile} no such file"; die; }
if(isset($_GET["sessions"])){sessions();exit;} if(isset($_GET["sessions-items"])){sessions_items();exit;} if(isset($_POST["delete-session"])){sessions_remove();exit;} if(isset($_GET["members"])){members();exit;} if(isset($_GET["members-items"])){members_items();exit;} if(isset($_POST["EnableMember"])){members_enable();exit;} if(isset($_POST["DeleteMember"])){members_delete();exit;} if(isset($_GET["uid"])){member_popup();exit;} if(isset($_POST["uid"])){members_save();exit;} if(isset($_GET["ttl"])){members_ttl();exit;} if(isset($_POST["uid-ttl"])){members_ttl_save();exit;} if(isset($_GET["mysql-settings"])){mysql_settings();exit;} if(isset($_GET["ttl-js"])){ttl_js();exit;} if(isset($_GET["delete-session-js"])){delete_session_js();exit;} if(isset($_POST["HotSpotAutoRegisterWebMail"])){mysql_settings_save();exit;} main_page(); function main_page(){ $page=CurrentPageName(); $tplfile="ressources/templates/endusers/index.html"; if(!is_file($tplfile)){echo "$tplfile no such file";die();} $content=@file_get_contents($tplfile); $content=str_replace("{SCRIPT}", "<script>LoadAjax('globalContainer','$page?content=yes')</script>", $content); echo $content; } function ttl_js(){