From 86032f02dd623ccbf76fa919a9ff35721e0bed98 Mon Sep 17 00:00:00 2001
From: seek3r
\n";
- $GLOBALS['phpgw']->common->phpgw_exit();
+ $GLOBALS['phpgw_info']['flags']['nodisplay'] = True;
+ exit;
}
unset($d1);
diff --git a/addressbook/inc/hook_notifywindow.inc.php b/addressbook/inc/hook_notifywindow.inc.php
index 78f1cb2972..4a6986d3a2 100644
--- a/addressbook/inc/hook_notifywindow.inc.php
+++ b/addressbook/inc/hook_notifywindow.inc.php
@@ -15,7 +15,8 @@
if($d1 == 'htt' || $d1 == 'ftp' )
{
echo "Failed attempt to break in via an old Security Hole!
\n";
- $GLOBALS['phpgw']->common->phpgw_exit();
+ $GLOBALS['phpgw_info']['flags']['nodisplay'] = True;
+ exit;
}
unset($d1);
diff --git a/admin/inc/class.boaccounts.inc.php b/admin/inc/class.boaccounts.inc.php
index 2c5bab2c06..54bd78884f 100755
--- a/admin/inc/class.boaccounts.inc.php
+++ b/admin/inc/class.boaccounts.inc.php
@@ -117,7 +117,8 @@
$GLOBALS['phpgw']->db->unlock();
Header('Location: '.$GLOBALS['phpgw']->link('/index.php','menuaction=admin.uiaccounts.list_groups'));
- $GLOBALS['phpgw']->common->phpgw_exit();
+ $GLOBALS['phpgw_info']['flags']['nodisplay'] = True;
+ exit;
}
function delete_user()
@@ -579,7 +580,8 @@
if($GLOBALS['phpgw']->acl->check('group_access',16,'admin') || $GLOBALS['HTTP_POST_VARS']['cancel'])
{
$GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/index.php','menuaction=admin.uiaccounts.list_groups'));
- $GLOBALS['phpgw']->common->phpgw_exit();
+ $GLOBALS['phpgw_info']['flags']['nodisplay'] = True;
+ exit;
}
elseif($GLOBALS['HTTP_POST_VARS']['submit'])
{
@@ -599,7 +601,8 @@
}
}
$GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/index.php','menuaction=admin.uiaccounts.list_groups'));
- $GLOBALS['phpgw']->common->phpgw_exit();
+ $GLOBALS['phpgw_info']['flags']['nodisplay'] = True;
+ exit;
}
function validate_group($group_info)
@@ -632,7 +635,8 @@
{
$ui = createobject('admin.uiaccounts');
$ui->create_edit_group($group_info,$errors);
- $GLOBALS['phpgw']->common->phpgw_exit();
+ $GLOBALS['phpgw_info']['flags']['nodisplay'] = True;
+ exit;
}
}
diff --git a/admin/inc/class.boapplications.inc.php b/admin/inc/class.boapplications.inc.php
index 356c2a60de..d2b1af8564 100644
--- a/admin/inc/class.boapplications.inc.php
+++ b/admin/inc/class.boapplications.inc.php
@@ -90,6 +90,7 @@
}
}
Header('Location: '.$GLOBALS['phpgw']->link('/admin/index.php'));
- $GLOBALS['phpgw']->common->phpgw_exit();
+ $GLOBALS['phpgw_info']['flags']['nodisplay'] = True;
+ exit;
}
}
diff --git a/admin/inc/class.uiapplications.inc.php b/admin/inc/class.uiapplications.inc.php
index 115f274137..1d47bb2b65 100644
--- a/admin/inc/class.uiapplications.inc.php
+++ b/admin/inc/class.uiapplications.inc.php
@@ -196,7 +196,8 @@
));
Header('Location: ' . $GLOBALS['phpgw']->link('/index.php','menuaction=admin.uiapplications.get_list'));
- $GLOBALS['phpgw']->common->phpgw_exit();
+ $GLOBALS['phpgw_info']['flags']['nodisplay'] = True;
+ exit;
}
else
{
@@ -288,7 +289,8 @@
));
Header('Location: ' . $GLOBALS['phpgw']->link('/index.php','menuaction=admin.uiapplications.get_list'));
- $GLOBALS['phpgw']->common->phpgw_exit();
+ $GLOBALS['phpgw_info']['flags']['nodisplay'] = True;
+ exit;
}
}
@@ -342,7 +344,8 @@
{
$this->bo->delete($app_name);
Header('Location: ' . $GLOBALS['phpgw']->link('/index.php','menuaction=admin.uiapplications.get_list'));
- $GLOBALS['phpgw']->common->phpgw_exit();
+ $GLOBALS['phpgw_info']['flags']['nodisplay'] = True;
+ exit;
}
$GLOBALS['phpgw']->common->phpgw_header();
diff --git a/admin/inc/class.uiconfig.inc.php b/admin/inc/class.uiconfig.inc.php
index dee12b6b06..07032445ee 100644
--- a/admin/inc/class.uiconfig.inc.php
+++ b/admin/inc/class.uiconfig.inc.php
@@ -137,7 +137,8 @@
{
$GLOBALS['phpgw']->session->appsession('session_data','admin_config',-1);
Header('Location: ' . $_redir);
- $GLOBALS['phpgw']->common->phpgw_exit();
+ $GLOBALS['phpgw_info']['flags']['nodisplay'] = True;
+ exit;
}
}
diff --git a/calendar/inc/class.bocalendar.inc.php b/calendar/inc/class.bocalendar.inc.php
index cc8ebb977b..c4e6225e90 100755
--- a/calendar/inc/class.bocalendar.inc.php
+++ b/calendar/inc/class.bocalendar.inc.php
@@ -566,7 +566,7 @@
'readsess' => 1
)
);
- $GLOBALS['phpgw']->common->phpgw_exit(True);
+ exit;
}
$overlapping_events = False;
}
@@ -575,7 +575,8 @@
if((!$l_cal['id'] && !$this->check_perms(PHPGW_ACL_ADD)) || ($l_cal['id'] && !$this->check_perms(PHPGW_ACL_EDIT,$l_cal['id'])))
{
ExecMethod('calendar.uicalendar.index');
- $GLOBALS['phpgw']->common->phpgw_exit();
+ $GLOBALS['phpgw_info']['flags']['nodisplay'] = True;
+ exit;
}
print_debug('prior to fix_update_time()');
@@ -732,7 +733,7 @@
'readsess' => 1
)
);
- $GLOBALS['phpgw']->common->phpgw_exit(True);
+ exit;
}
if($event['id'])
@@ -765,7 +766,7 @@
'this_event' => $event
)
);
- $GLOBALS['phpgw']->common->phpgw_exit(True);
+ exit;
}
else
{
@@ -795,7 +796,8 @@
if($send_to_ui)
{
Execmethod('calendar.uicalendar.index');
-// $GLOBALS['phpgw']->common->phpgw_exit();
+// $GLOBALS['phpgw_info']['flags']['nodisplay'] = True;
+// exit;
}
}
}
diff --git a/calendar/inc/class.boicalendar.inc.php b/calendar/inc/class.boicalendar.inc.php
index 0327468251..f5c24372d5 100755
--- a/calendar/inc/class.boicalendar.inc.php
+++ b/calendar/inc/class.boicalendar.inc.php
@@ -2903,7 +2903,8 @@ class boicalendar
)
)
);
- $GLOBALS['phpwg']->common->phpgw_exit();
+ $GLOBALS['phpgw_info']['flags']['nodisplay'] = True;
+ exit;
}
$uploaddir = $GLOBALS['phpgw_info']['server']['temp_dir'] . SEP;
@@ -2940,7 +2941,8 @@ class boicalendar
)
)
);
- $GLOBALS['phpwg']->common->phpgw_exit();
+ $GLOBALS['phpgw_info']['flags']['nodisplay'] = True;
+ exit;
}
if(!is_object($GLOBALS['uicalendar']))
@@ -3202,7 +3204,8 @@ class boicalendar
)
)
);
- $GLOBALS['phpgw']->common->phpgw_exit();
+ $GLOBALS['phpgw_info']['flags']['nodisplay'] = True;
+ exit;
}
function export($l_event_id=0)
diff --git a/calendar/inc/class.bopreferences.inc.php b/calendar/inc/class.bopreferences.inc.php
index 9f2bbd9c2f..44caa45fb4 100755
--- a/calendar/inc/class.bopreferences.inc.php
+++ b/calendar/inc/class.bopreferences.inc.php
@@ -99,7 +99,8 @@
$GLOBALS['phpgw']->preferences->save_repository(True);
Header('Location: '.$GLOBALS['phpgw']->link('/preferences/index.php'));
- $GLOBALS['phpgw']->common->phpgw_exit();
+ $GLOBALS['phpgw_info']['flags']['nodisplay'] = True;
+ exit;
}
}
}
diff --git a/calendar/inc/class.uicalendar.inc.php b/calendar/inc/class.uicalendar.inc.php
index 990a1d5c07..8bb02500fa 100755
--- a/calendar/inc/class.uicalendar.inc.php
+++ b/calendar/inc/class.uicalendar.inc.php
@@ -288,7 +288,8 @@
function index($params='')
{
Header('Location: '. $this->page('',$params));
- $GLOBALS['phpgw']->common->phpgw_exit();
+ $GLOBALS['phpgw_info']['flags']['nodisplay'] = True;
+ exit;
}
function printer_friendly($body)
@@ -642,13 +643,13 @@
if ($cal_id < 1)
{
echo lang('Invalid entry id.').''."\n";
- $GLOBALS['phpgw']->common->phpgw_exit(True);
+ exit;
}
if(!$this->bo->check_perms(PHPGW_ACL_READ,$cal_id))
{
echo lang('You do not have permission to read this record!').''."\n";
- $GLOBALS['phpgw']->common->phpgw_exit(True);
+ exit;
}
$event = $this->bo->read_entry($cal_id);
@@ -656,7 +657,7 @@
if(!isset($event['id']))
{
echo lang("Sorry, this event does not exist").'.'.''."\n";
- $GLOBALS['phpgw']->common->phpgw_exit(True);
+ exit;
}
$this->bo->repeating_events = Array();
@@ -685,7 +686,7 @@
if($ret_value == '
'."\n";
- $phpgw->common->phpgw_exit();
+ $GLOBALS['phpgw_info']['flags']['nodisplay'] = True;
+ exit;
}
unset($d1);
diff --git a/calendar/inc/hook_home.inc.php b/calendar/inc/hook_home.inc.php
index 2d0be8791a..bcb4892975 100755
--- a/calendar/inc/hook_home.inc.php
+++ b/calendar/inc/hook_home.inc.php
@@ -18,7 +18,8 @@
if($d1 == 'htt' || $d1 == 'ftp' )
{
echo 'Failed attempt to break in via an old Security Hole!
'."\n";
- $GLOBALS['phpgw']->common->phpgw_exit();
+ $GLOBALS['phpgw_info']['flags']['nodisplay'] = True;
+ exit;
}
unset($d1);
diff --git a/calendar/inc/hook_home_day.inc.php b/calendar/inc/hook_home_day.inc.php
index 0bcf11f2dd..f076743241 100755
--- a/calendar/inc/hook_home_day.inc.php
+++ b/calendar/inc/hook_home_day.inc.php
@@ -18,7 +18,8 @@
if($d1 == 'htt' || $d1 == 'ftp' )
{
echo 'Failed attempt to break in via an old Security Hole!
'."\n";
- $GLOBALS['phpgw']->common->phpgw_exit();
+ $GLOBALS['phpgw_info']['flags']['nodisplay'] = True;
+ exit;
}
unset($d1);
diff --git a/calendar/inc/hook_home_month.inc.php b/calendar/inc/hook_home_month.inc.php
index 8e1c0bc356..b98c6fe8b2 100755
--- a/calendar/inc/hook_home_month.inc.php
+++ b/calendar/inc/hook_home_month.inc.php
@@ -18,7 +18,8 @@
if($d1 == 'htt' || $d1 == 'ftp' )
{
echo 'Failed attempt to break in via an old Security Hole!
'."\n";
- $GLOBALS['phpgw']->common->phpgw_exit();
+ $GLOBALS['phpgw_info']['flags']['nodisplay'] = True;
+ exit;
}
unset($d1);
diff --git a/calendar/inc/hook_home_week.inc.php b/calendar/inc/hook_home_week.inc.php
index 22c5334047..27e56e7290 100755
--- a/calendar/inc/hook_home_week.inc.php
+++ b/calendar/inc/hook_home_week.inc.php
@@ -18,7 +18,8 @@
if($d1 == 'htt' || $d1 == 'ftp' )
{
echo 'Failed attempt to break in via an old Security Hole!
'."\n";
- $GLOBALS['phpgw']->common->phpgw_exit();
+ $GLOBALS['phpgw_info']['flags']['nodisplay'] = True;
+ exit;
}
unset($d1);
diff --git a/calendar/inc/hook_home_year.inc.php b/calendar/inc/hook_home_year.inc.php
index ce157329be..a7c67772f2 100755
--- a/calendar/inc/hook_home_year.inc.php
+++ b/calendar/inc/hook_home_year.inc.php
@@ -18,7 +18,8 @@
if($d1 == 'htt' || $d1 == 'ftp' )
{
echo 'Failed attempt to break in via an old Security Hole!
'."\n";
- $GLOBALS['phpgw']->common->phpgw_exit();
+ $GLOBALS['phpgw_info']['flags']['nodisplay'] = True;
+ exit;
}
unset($d1);
diff --git a/calendar/index.php b/calendar/index.php
index 3fc9006138..848d7b7047 100755
--- a/calendar/index.php
+++ b/calendar/index.php
@@ -37,5 +37,6 @@
);
Header('Location: '.$GLOBALS['phpgw']->link('/index.php',$parms));
- $GLOBALS['phpgw']->common->phpgw_exit();
+ $GLOBALS['phpgw_info']['flags']['nodisplay'] = True;
+ exit;
?>
diff --git a/calendar/preferences.php b/calendar/preferences.php
index deccb7629f..1ed4e686c5 100644
--- a/calendar/preferences.php
+++ b/calendar/preferences.php
@@ -88,7 +88,8 @@
$phpgw->preferences->save_repository(True);
Header('Location: '.$phpgw->link('/preferences/index.php'));
- $phpgw->common->phpgw_exit();
+ $GLOBALS['phpgw_info']['flags']['nodisplay'] = True;
+ exit;
}
function display_item($field,$data)
diff --git a/etemplate/doc/et_media/index.php b/etemplate/doc/et_media/index.php
index 04d24e3e65..e246ae33b7 100644
--- a/etemplate/doc/et_media/index.php
+++ b/etemplate/doc/et_media/index.php
@@ -20,4 +20,5 @@
include('../header.inc.php');
header('Location: '.$GLOBALS['phpgw']->link('/index.php','menuaction=et_media.et_media.edit'));
- $GLOBALS['phpgw']->common->phpgw_exit();
+ $GLOBALS['phpgw_info']['flags']['nodisplay'] = True;
+ exit;
diff --git a/etemplate/doc/etemplate.html b/etemplate/doc/etemplate.html
index d5bf10e792..b79c0129b6 100644
--- a/etemplate/doc/etemplate.html
+++ b/etemplate/doc/etemplate.html
@@ -146,7 +146,8 @@ Create the file /et_media/index.php with the following content: