From 913baf2bda81f1ddecd4148f50d6bb2403fab9ad Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Mon, 24 Dec 2001 05:04:23 +0000 Subject: [PATCH] globals --- anon_wrapper.php | 20 ++++++++++---------- notify.php | 11 ++++++----- notify_simple.php | 12 +++++++++--- 3 files changed, 25 insertions(+), 18 deletions(-) diff --git a/anon_wrapper.php b/anon_wrapper.php index ea63d8f29a..113e4af59c 100644 --- a/anon_wrapper.php +++ b/anon_wrapper.php @@ -13,22 +13,22 @@ /* $Id$ */ // TODO: - // Limit which users can access this program (ACL check) - // Global disabler - // Detect bad logins and passwords, spit out generic message + // Limit which users can access this program (ACL check) + // Global disabler + // Detect bad logins and passwords, spit out generic message // If your are going to use multiable accounts, remove the following lines $login = 'anonymous'; $passwd = 'anonymous'; - $phpgw_info['flags'] = array( - 'disable_template_class' => True, + $GLOBALS['phpgw_info']['flags'] = array( + 'disable_Template_class' => True, 'login' => True, 'currentapp' => 'login', - 'noheader' => True); - + 'noheader' => True + ); include('./header.inc.php'); - $sessionid = $phpgw->session->create($login,$passwd); - $phpgw->redirect($phpgw->link('/index.php')); -?> \ No newline at end of file + $sessionid = $GLOBALS['phpgw']->session->create($login,$passwd); + $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/index.php')); +?> diff --git a/notify.php b/notify.php index 9ba34208cf..701d652665 100644 --- a/notify.php +++ b/notify.php @@ -11,7 +11,8 @@ /* $Id$ */ - $phpgw_info['flags'] = array( + $phpgw_info = array(); + $GLOBALS['phpgw_info']['flags'] = array( 'noheader' => True, 'nonavbar' => True, 'disable_Template_class' => True, @@ -28,16 +29,16 @@ - + - + common->hook('notifywindow',array('email')); + $GLOBALS['phpgw']->common->hook('notifywindow',array('email')); ?>
Check Now
Check Now
diff --git a/notify_simple.php b/notify_simple.php index 0097de7245..1160c9807d 100644 --- a/notify_simple.php +++ b/notify_simple.php @@ -11,9 +11,15 @@ /* $Id$ */ - $phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True, "currentapp" => "notifywindow"); - include("header.inc.php"); + $phpgw_info = array(); + $GLOBALS['phpgw_info']['flags'] = array( + 'noheader' => True, + 'nonavbar' => True, + 'currentapp' => 'notifywindow' + ); + include('./header.inc.php'); + echo ''; - $phpgw->common->hook("simple",array("email")); + $GLOBALS['phpgw']->common->hook('simple',array('email')); echo ''; ?>