diff --git a/notify.php b/notify.php index 9b8aea3c62..5316b936d6 100644 --- a/notify.php +++ b/notify.php @@ -11,53 +11,29 @@ /* $Id$ */ - $phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True, "currentapp" => "notifywindow"); - include("header.inc.php"); + $phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True, "currentapp" => "notifywindow"); + include("header.inc.php"); ?> -" alink="blue" vlink="blue" link="blue"> + - + + Notify Window + + - - +" alink="blue" vlink="blue" link="blue"> + + msg->login(); - if (! $mbox) { - echo "Mail error: can not open connection to mail server"; - $phpgw->common->phpgw_exit(); - } - - if (hasmsg == "yes"){ - $mailbox_status = $phpgw->msg->status($mbox,"{" . $phpgw_info["server"]["mail_server"] . ":" . $phpgw_info["server"]["mail_port"] . "}INBOX",SA_UNSEEN); - if ($mailbox_status->unseen == 1) { - echo "\n"; - } - if ($mailbox_status->unseen > 1) { - echo ""; - } - } else { + $phpgw->common->hook("",array("email")); ?> - -msg->status($mbox,"{" . $phpgw_info["server"]["mail_server"] . ":" . $phpgw_info["server"]["mail_port"] . "}INBOX",SA_UNSEEN); - if ($mailbox_status->unseen == 1) { - echo "
".lang("You have 1 new message!").""; - } - if ($mailbox_status->unseen > 1) { - echo "
".lang("You have x new messages!",$mailbox_status->unseen).""; - } - echo "

Open phpGroupWare
"; - } - } -?> \ No newline at end of file +
Check Now
link("email/") . "\" target=\"phpGroupWare\"> " - . lang("You have 1 new message!") . "
link("email/") . "\" target=\"phpGroupWare\"> " - . lang("You have x new messages!",$mailbox_status->unseen) . "
+ +