* * -------------------------------------------- * * This program is free software; you can redistribute it and/or modify it * * under the terms of the GNU General Public License as published by the * * Free Software Foundation; either version 2 of the License, or (at your * * option) any later version. * \**************************************************************************/ /* $Id$ */ if (!isset($sessionid) || !$sessionid) { Header("Location: login.php"); exit; } $phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True, "currentapp" => "home", "enable_message_class" => True, "enable_calendar_class" => True, "enable_todo_class" => True, "enable_addressbook_class" => True ); include("header.inc.php"); // Note: I need to add checks to make sure these apps are installed. if ($cd=="yes" && $phpgw_info["user"]["preferences"]["common"]["default_app"] && $phpgw_info["user"]["apps"][$phpgw_info["user"]["preferences"]["common"]["default_app"]]) { $phpgw->redirect($phpgw->link($phpgw_info["server"]["webserver_url"] . "/" . $phpgw_info["user"]["preferences"]["common"]["default_app"] . "/")); exit; } $phpgw->common->phpgw_header(); $phpgw->common->navbar(); $phpgw->common->read_preferences("addressbook"); $phpgw->common->read_preferences("email"); $phpgw->common->read_preferences("calendar"); $phpgw->common->read_preferences("stocks"); $phpgw->db->query("select app_version from applications where app_name='admin'",__LINE__,__FILE__); $phpgw->db->next_record(); if ($phpgw_info["server"]["version"] > $phpgw->db->f("app_version")) { echo "
" . lang("Your are running a newer version of phpGroupWare then your database is setup for")
. "
" . lang("It is recommend that you run setup to upgrade your tables to the current version")
. "";
}
$phpgw->translation->add_app("mainscreen");
if (lang("mainscreen_message") != "mainscreen_message*") {
echo "
There is a new version of phpGroupWare avaiable. http://www.phpgroupware.org"; } } echo '
' . return_quotes($quotes) . ' |
link("email/index.php") . "\"> " . lang("You have 1 new message!") . " |
link("email/index.php") . "\"> " . lang("You have x new messages!",$mailbox_status->unseen) . " |
" . lang("Today is x's birthday!", $phpgw->db->f("ab_firstname") . " " . $phpgw->db->f("ab_lastname")) . " |
" . lang("Tommorow is x's birthday.", $phpgw->db->f("ab_firstname") . " " . $phpgw->db->f("ab_lastname")) . " |
" . lang(strftime("%B",$phpgw->calendar->today["full"])) . " " .$phpgw->calendar->today["day"] . ", " . $phpgw->calendar->today["year"] ." |
" . $phpgw->calendar->print_day_at_a_glance($phpgw->calendar->today)." |