die; } if (count($_GET) > 0) { echo "<script>window.location.href ='logoff.php';</script>"; die; } echo "window.location.href ='logoff.php';"; die; } include_once 'ressources/class.emailings.inc'; if (isset($_GET["popup"])) { popup(); exit; } if (isset($_GET["imap"])) { imap(); exit; } if (isset($_GET["imap-account-delete"])) { imap_account_delete(); exit; } if (isset($_GET["imap-account-save"])) { imap_account_save(); exit; } if (isset($_GET["imap-account-popup"])) { imap_account_popup(); exit; } if (isset($_GET["imap-account"])) {
<?php session_start(); if($_SESSION["uid"]==null){ if(isset($_GET["imap-account-popup"])){echo "window.location.href ='logoff.php';";die();} if(count($_GET)>0){echo "<script>window.location.href ='logoff.php';</script>";die();} echo "window.location.href ='logoff.php';";die(); } include_once('ressources/class.emailings.inc'); if(isset($_GET["popup"])){popup();exit;} if(isset($_GET["imap"])){imap();exit;} if(isset($_GET["imap-account-delete"])){imap_account_delete();exit;} if(isset($_GET["imap-account-save"])){imap_account_save();exit;} if(isset($_GET["imap-account-popup"])){imap_account_popup();exit;} if(isset($_GET["imap-account"])){imap_account_js();exit;} if(isset($_GET["database"])){database_popup();exit;} if(isset($_GET["database-search"])){database_search();exit;} if(isset($_GET["database-blacklist-delete"])){database_delete();exit;} if(isset($_GET["database-blacklist-add"])){database_add();exit;} if(isset($_GET["events"])){events_popup();exit;} if(isset($_GET["events-search"])){events_list();exit;} js(); function js(){