From 081f770702cf28ea2c0c013575bfd870b42d1593 Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Fri, 23 Nov 2001 21:10:04 +0000 Subject: [PATCH] globals --- addressbook/inc/hook_notifywindow.inc.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/addressbook/inc/hook_notifywindow.inc.php b/addressbook/inc/hook_notifywindow.inc.php index 0fb7a3701e..e895b299ba 100644 --- a/addressbook/inc/hook_notifywindow.inc.php +++ b/addressbook/inc/hook_notifywindow.inc.php @@ -15,15 +15,15 @@ if($d1 == 'htt' || $d1 == 'ftp' ) { echo "Failed attempt to break in via an old Security Hole!
\n"; - $phpgw->common->phpgw_exit(); + $GLOBALS['phpgw']->common->phpgw_exit(); } unset($d1); $tmp_app_inc = PHPGW_APP_INC; - define('PHPGW_APP_INC',$phpgw->common->get_inc_dir('addressbook')); + define('PHPGW_APP_INC',$GLOBALS['phpgw']->common->get_inc_dir('addressbook')); - if ($phpgw_info['user']['apps']['addressbook'] - && $phpgw_info['user']['preferences']['addressbook']['mainscreen_showbirthdays']) + if ($GLOBALS['phpgw_info']['user']['apps']['addressbook'] + && $GLOBALS['phpgw_info']['user']['preferences']['addressbook']['mainscreen_showbirthdays']) { echo "\n\n"; @@ -33,29 +33,29 @@ "n_family" => 'n_family', "bday" => 'bday' ); - $now = time() - ((60 * 60) * intval($phpgw_info['user']['preferences']['common']['tz_offset'])); - $today = $phpgw->common->show_date($now,'n/d/'); + $now = time() - ((60 * 60) * intval($GLOBALS['phpgw_info']['user']['preferences']['common']['tz_offset'])); + $today = $GLOBALS['phpgw']->common->show_date($now,'n/d/'); // echo $today."\n"; - $bdays = $c->read(0,15,$qfields,$today,'tid=n','','',$phpgw_info["user"]["account_id"]); + $bdays = $c->read(0,15,$qfields,$today,'tid=n','','',$GLOBALS['phpgw_info']["user"]["account_id"]); while(list($key,$val) = @each($bdays)) { $tmp = '' + . $GLOBALS['phpgw']->link('/.php','menuaction=addressbook.uiaddressbook.view&ab_id=' . $val['id']) . '">' . $val['n_given'] . ' ' . $val['n_family'] . ''; echo '' . lang("Today is x's birthday!", $tmp) . "\n"; } - $tomorrow = $phpgw->common->show_date($now + 86400,'n/d/'); + $tomorrow = $GLOBALS['phpgw']->common->show_date($now + 86400,'n/d/'); // echo $tomorrow."\n"; - $bdays = $c->read(0,15,$qfields,$tomorrow,'tid=n','','',$phpgw_info['user']['account_id']); + $bdays = $c->read(0,15,$qfields,$tomorrow,'tid=n','','',$GLOBALS['phpgw_info']['user']['account_id']); while(list($key,$val) = @each($bdays)) { $tmp = '' + . $GLOBALS['phpgw']->link('/index.php','menuaction=addressbook.uiaddressbook.view&ab_id=' . $val['id']) . '">' . $val['n_given'] . ' ' . $val['n_family'] . ''; echo '' . lang("Tomorrow is x's birthday.", $tmp) . "\n"; }