diff --git a/admin/accesslog.php b/admin/accesslog.php index 9e9e582a62..1980f151f7 100755 --- a/admin/accesslog.php +++ b/admin/accesslog.php @@ -56,12 +56,12 @@ $total = " "; if ($phpgw->db->f("li")) - $li = $phpgw->preferences->show_date($phpgw->db->f("li")); + $li = $phpgw->common->show_date($phpgw->db->f("li")); else $li = " "; if ($phpgw->db->f("lo")) - $lo = $phpgw->preferences->show_date($phpgw->db->f("lo")); + $lo = $phpgw->common->show_date($phpgw->db->f("lo")); else $lo = " "; diff --git a/admin/currentusers.php b/admin/currentusers.php index 78799a5fde..41032dc8be 100755 --- a/admin/currentusers.php +++ b/admin/currentusers.php @@ -64,7 +64,7 @@ $t->set_var("row_loginid",$phpgw->db->f("loginid")); $t->set_var("row_ip",$phpgw->db->f("ip")); - $t->set_var("row_logintime",$phpgw->preferences->show_date($phpgw->db->f("logintime"))); + $t->set_var("row_logintime",$phpgw->common->show_date($phpgw->db->f("logintime"))); $t->set_var("row_idle",gmdate("G:i:s",(time() - $phpgw->db->f("dla")))); if ($phpgw->db->f("sessionid") != $phpgw->session->id) { diff --git a/admin/viewaccount.php b/admin/viewaccount.php index bc6a7bcce6..a555311219 100755 --- a/admin/viewaccount.php +++ b/admin/viewaccount.php @@ -86,7 +86,7 @@ if (! $phpgw->db->f("lastlogin")) echo "Never"; else - echo $phpgw->preferences->show_date($phpgw->db->f("lastlogin")); + echo $phpgw->common->show_date($phpgw->db->f("lastlogin")); ?> "> diff --git a/admin/viewheadline.php b/admin/viewheadline.php index c907ec8e55..b113662a31 100755 --- a/admin/viewheadline.php +++ b/admin/viewheadline.php @@ -27,7 +27,7 @@ db->f("display"); ?> db->f("base_url"); ?> db->f("newsfile"); ?> - preferences->show_date($phpgw->db->f("lastread")); ?> + common->show_date($phpgw->db->f("lastread")); ?> db->f("cachetime"); ?> db->f("listings"); ?> db->f("newstype"); ?> diff --git a/calendar/inc/header.inc.php b/calendar/inc/header.inc.php index c8c0f6d2d7..d10e98de5b 100644 --- a/calendar/inc/header.inc.php +++ b/calendar/inc/header.inc.php @@ -4,17 +4,17 @@   - "> + "> /today.gif" alt="" border="0"> - "> + "> /week.gif" alt="" border="0"> - "> + "> /month.gif" alt="" border="0"> diff --git a/index.php b/index.php index c6afb819b8..dddfdadfb3 100755 --- a/index.php +++ b/index.php @@ -89,17 +89,17 @@ && $phpgw_info["user"]["preferences"]["mainscreen_showbirthdays"]) { echo "\n"; $phpgw->db->query("select DISTINCT firstname,lastname from addressbook where " - . "bday like '" . $phpgw->preferences->show_date_other("n/d",time()) + . "bday like '" . $phpgw->common->show_date(time(),"n/d") . "/%' and (owner='" . $phpgw->session->loginid . "' or access='" . "public')"); while ($phpgw->db->next_record()) { echo "" . lang_common("Today is x's birthday!", $phpgw->db->f("firstname") . " " . $phpgw->db->f("lastname")) . "\n"; } - $tommorow = $phpgw->preferences->show_date_other("n/d", mktime(0,0,0, - $phpgw->preferences->show_date_other("m",time()), - $phpgw->preferences->show_date_other("d",time())+1, - $phpgw->preferences->show_date_other("Y",time())) ); + $tommorow = $phpgw->common->show_date(mktime(0,0,0, + $phpgw->common->show_date(time(),"m"), + $phpgw->common->show_date(time(),"d")+1, + $phpgw->common->show_date(time(),"Y")),"n/d" ); $phpgw->db->query("select firstname,lastname from addressbook where " . "bday like '$tommorow/%' and (owner='" . $phpgw->session->loginid . "' or access='public')"); @@ -121,7 +121,7 @@ include($phpgw_info["server"]["server_root"] . "/calendar/inc/functions.inc.php"); $repeated_events = read_repeated_events($phpgw->session->loginid); $phpgw->db->query("select count(*) from webcal_entry,webcal_entry_user" - . " where cal_date='" . $phpgw->preferences->show_date_other("Ymd", time()) + . " where cal_date='" . $phpgw->common->show_date(time(),"Ymd") . "' and (webcal_entry_user.cal_login='" . $phpgw->session->loginid . "' and webcal_entry.cal_id = webcal_entry_user.cal_id) and " . "(cal_priority='3')");