<?php include_once('ressources/class.templates.inc'); include_once('ressources/class.cyrus.inc'); include_once('ressources/class.mysql.inc'); include_once('ressources/charts.php'); if(isset($_GET["quarantine_resend"])){quarantine_resend();exit;} if(isset($_GET["QuaratinePie"])){build_statistics();exit;} if(isset($_GET["main"])){main_switch();exit;} if(isset($_GET["tab"])){main_mail_switch();exit;} if(isset($_GET["msgbodyif"])){main_mail_Inside();exit;} main();exit; function main(){ $ldap=new clladp(); $hash=$ldap->UserDatas($_SESSION["uid"]); $mail=$hash["mail"]; $Quarantine_message_number=Quarantine_message_number(); $html=" <center><img src='img/bg_quarantaine.jpg'><strong style='border-bottom:1px dotted #CCCCCC'>{$_SESSION["uid"]}, $Quarantine_message_number emails</strong></center> <div id='content_q'></div> <input type='hidden' value='{empty_quarantine_text_mesgbox}' id='empty_quarantine_text_mesgbox'> <script> LoadAjax('content_q','$page?main=today'); </script> ";
exit; } if (isset($_GET["QuaratinePie"])) { build_statistics(); exit; } if (isset($_GET["main"])) { main_switch(); exit; } if (isset($_GET["tab"])) { main_mail_switch(); exit; } if (isset($_GET["msgbodyif"])) { main_mail_Inside(); exit; } main(); exit; function main() { $ldap = new clladp(); $hash = $ldap->UserDatas($_SESSION["uid"]); $mail = $hash["mail"]; $Quarantine_message_number = Quarantine_message_number(); $html = "\n<center><img src='img/bg_quarantaine.jpg'><strong style='border-bottom:1px dotted #CCCCCC'>{$_SESSION["uid"]}, {$Quarantine_message_number} emails</strong></center>\n<div id='content_q'></div>\n<input type='hidden' value='{empty_quarantine_text_mesgbox}' id='empty_quarantine_text_mesgbox'>\n\n\n<script>\nLoadAjax('content_q','{$page}?main=today');\n</script>\n"; $JS["JS"][] = "js/user.quarantine.js"; $tpl = new template_users('{manage_your_quarantine}', $html, 0, 0, 0, 0, $JS); echo $tpl->web_page; }