From 9e643099ecbf001a4cf46ce39dd5698f9e003ebf Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Fri, 29 Jun 2001 00:45:45 +0000 Subject: [PATCH] update to use phpgw constants --- calendar/inc/hook_home.inc.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/calendar/inc/hook_home.inc.php b/calendar/inc/hook_home.inc.php index dabf15ed7a..aed3024f62 100755 --- a/calendar/inc/hook_home.inc.php +++ b/calendar/inc/hook_home.inc.php @@ -14,7 +14,7 @@ /* $Id$ */ - $d1 = strtolower(substr($phpgw_info['server']['app_inc'],0,3)); + $d1 = strtolower(substr(PHPGW_APP_INC,0,3)); if($d1 == 'htt' || $d1 == 'ftp' ) { echo 'Failed attempt to break in via an old Security Hole!
'."\n"; @@ -22,12 +22,12 @@ } unset($d1); - $tmp_app_inc = $phpgw_info['server']['app_inc']; - $phpgw_info['server']['app_inc'] = $phpgw->common->get_inc_dir('calendar'); + $tmp_app_inc = PHPGW_APP_INC; + define('PHPGW_APP_INC',$phpgw->common->get_inc_dir('calendar')); if ($phpgw_info['user']['preferences']['calendar']['mainscreen_showevents']) { - include($phpgw_info['server']['app_inc'].'/functions.inc.php'); + include(PHPGW_APP_INC . '/functions.inc.php'); echo "\n".'
'."\n"; echo $phpgw->calendar->mini_calendar($phpgw->calendar->today["day"],$phpgw->calendar->today["month"],$phpgw->calendar->today["year"],"day.php").''; echo '
' @@ -42,6 +42,5 @@ unset($phpgw->calendar); } - - $phpgw_info['server']['app_inc'] = $tmp_app_inc; + define('PHPGW_APP_INC',$tmp_app_inc); ?>