* * -------------------------------------------- * * 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_network_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 (($phpgw_info["user"]["preferences"]["common"]["useframes"] && $phpgw_info["server"]["useframes"] == "allowed") || ($phpgw_info["server"]["useframes"] == "always")) { if ($cd == "yes") { if (! $navbarframe && ! $framebody) { $tpl = new Template($phpgw_info["server"]["template_dir"]); $tpl->set_file(array("frames" => "frames.tpl", "frame_body" => "frames_body.tpl", "frame_navbar" => "frames_navbar.tpl" )); $tpl->set_var("navbar_link",$phpgw->link("index.php","navbarframe=True&cd=yes")); if ($forward) { $tpl->set_var("body_link",$phpgw->link($phpgw_info["server"]["webserver_url"] . $forward)); } else { $tpl->set_var("body_link",$phpgw->link("index.php","framebody=True&cd=yes")); } if ($phpgw_info["user"]["preferences"]["common"]["frame_navbar_location"] == "bottom") { $tpl->set_var("frame_size","*,60"); $tpl->parse("frames_","frame_body",True); $tpl->parse("frames_","frame_navbar",True); } else { $tpl->set_var("frame_size","60,*"); $tpl->parse("frames_","frame_navbar",True); $tpl->parse("frames_","frame_body",True); } $tpl->pparse("out","frames"); } if ($navbarframe) { $phpgw->common->phpgw_header(); echo parse_navbar(); } } } elseif ($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"] . "/" . ($phpgw_info["user"]["preferences"]["common"]["default_app"]=="calendar"?$phpgw_info["user"]["preferences"]["calendar"]["defaultcalendar"]:"index.php"))); $phpgw->common->phpgw_exit(); } else { $phpgw->common->phpgw_header(); echo parse_navbar(); } //$phpgw->hooks->proccess("location","mainscreen"); // $phpgw->preferences->read_preferences("addressbook"); // $phpgw->preferences->read_preferences("email"); // $phpgw->preferences->read_preferences("calendar"); // $phpgw->preferences->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"]["versions"]["phpgwapi"] > $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"; } } ?>
' . return_quotes($quotes) . ' |
" . 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")) . " |