Fix for php3 support.

This commit is contained in:
skeeter 2001-09-07 17:51:48 +00:00
parent 6a9a208aa3
commit f0123f6cf5
6 changed files with 101 additions and 119 deletions

View File

@ -651,8 +651,6 @@
function add($cd=0,$readsess=0) function add($cd=0,$readsess=0)
{ {
global $HTTP_GET_VARS;
if(!$this->bo->check_perms(PHPGW_ACL_ADD)) if(!$this->bo->check_perms(PHPGW_ACL_ADD))
{ {
$this->index(); $this->index();
@ -674,8 +672,8 @@
$can_edit = True; $can_edit = True;
$thishour = (isset($HTTP_GET_VARS['hour'])?intval($HTTP_GET_VARS['hour']):0); $thishour = (isset($GLOBALS['HTTP_GET_VARS']['hour'])?intval($GLOBALS['HTTP_GET_VARS']['hour']):0);
$thisminute = (isset($HTTP_GET_VARS['minute'])?intval($HTTP_GET_VARS['minute']):0); $thisminute = (isset($GLOBALS['HTTP_GET_VARS']['minute'])?intval($GLOBALS['HTTP_GET_VARS']['minute']):0);
$this->bo->set_start($this->bo->year,$this->bo->month,$this->bo->day,$thishour,$thisminute,0); $this->bo->set_start($this->bo->year,$this->bo->month,$this->bo->day,$thishour,$thisminute,0);
$this->bo->set_end($this->bo->year,$this->bo->month,$this->bo->day,$thishour,$thisminute,0); $this->bo->set_end($this->bo->year,$this->bo->month,$this->bo->day,$thishour,$thisminute,0);
$this->bo->set_title(''); $this->bo->set_title('');
@ -705,20 +703,18 @@
function delete() function delete()
{ {
global $HTTP_GET_VARS; if(!isset($GLOBALS['HTTP_GET_VARS']['cal_id']))
if(!isset($HTTP_GET_VARS['cal_id']))
{ {
Header('Location: '.$this->page('','&date='.sprintf("%04d%02d%02d",$this->bo->year,$this->bo->month,$this->bo->day))); Header('Location: '.$this->page('','&date='.sprintf("%04d%02d%02d",$this->bo->year,$this->bo->month,$this->bo->day)));
$GLOBALS['phpgw']->common->phpgw_exit(); $GLOBALS['phpgw']->common->phpgw_exit();
} }
$event = $this->bo->read_entry(intval($HTTP_GET_VARS['cal_id'])); $event = $this->bo->read_entry(intval($GLOBALS['HTTP_GET_VARS']['cal_id']));
if(($HTTP_GET_VARS['cal_id'] > 0) && ($event['owner'] == $this->bo->owner) && $this->bo->check_perms(PHPGW_ACL_DELETE)) if(($GLOBALS['HTTP_GET_VARS']['cal_id'] > 0) && ($event['owner'] == $this->bo->owner) && $this->bo->check_perms(PHPGW_ACL_DELETE))
{ {
$date = sprintf("%04d%02d%02d",$event['start']['year'],$event['start']['month'],$event['start']['mday']); $date = sprintf("%04d%02d%02d",$event['start']['year'],$event['start']['month'],$event['start']['mday']);
$cd = $this->bo->delete_entry(intval($HTTP_GET_VARS['cal_id'])); $cd = $this->bo->delete_entry(intval($GLOBALS['HTTP_GET_VARS']['cal_id']));
$this->bo->expunge(); $this->bo->expunge();
} }
else else
@ -799,15 +795,13 @@
function edit_status() function edit_status()
{ {
global $HTTP_GET_VARS;
unset($GLOBALS['phpgw_info']['flags']['noheader']); unset($GLOBALS['phpgw_info']['flags']['noheader']);
unset($GLOBALS['phpgw_info']['flags']['nonavbar']); unset($GLOBALS['phpgw_info']['flags']['nonavbar']);
$GLOBALS['phpgw_info']['flags']['noappheader'] = True; $GLOBALS['phpgw_info']['flags']['noappheader'] = True;
$GLOBALS['phpgw_info']['flags']['noappfooter'] = True; $GLOBALS['phpgw_info']['flags']['noappfooter'] = True;
$GLOBALS['phpgw']->common->phpgw_header(); $GLOBALS['phpgw']->common->phpgw_header();
$event = $this->bo->read_entry($HTTP_GET_VARS['cal_id']); $event = $this->bo->read_entry($GLOBALS['HTTP_GET_VARS']['cal_id']);
reset($event['participants']); reset($event['participants']);
@ -841,15 +835,13 @@
function set_action() function set_action()
{ {
global $HTTP_GET_VARS;
if(!$this->bo->check_perms(PHPGW_ACL_EDIT)) if(!$this->bo->check_perms(PHPGW_ACL_EDIT))
{ {
$this->no_edit(); $this->no_edit();
return; return;
} }
$this->bo->set_status(intval($HTTP_GET_VARS['cal_id']),intval($HTTP_GET_VARS['action'])); $this->bo->set_status(intval($GLOBALS['HTTP_GET_VARS']['cal_id']),intval($GLOBALS['HTTP_GET_VARS']['action']));
Header('Location: '.$this->page('','')); Header('Location: '.$this->page('',''));
} }
@ -1161,9 +1153,7 @@
function viewmatrix() function viewmatrix()
{ {
global $HTTP_POST_VARS; $participants = $GLOBALS['HTTP_POST_VARS']['participants'];
$participants = $HTTP_POST_VARS['participants'];
$parts = Array(); $parts = Array();
$acct = CreateObject('phpgwapi.accounts',$this->bo->owner); $acct = CreateObject('phpgwapi.accounts',$this->bo->owner);
$c_participants = count($participants); $c_participants = count($participants);
@ -1204,7 +1194,7 @@
unset($GLOBALS['phpgw_info']['flags']['nonavbar']); unset($GLOBALS['phpgw_info']['flags']['nonavbar']);
$GLOBALS['phpgw']->common->phpgw_header(); $GLOBALS['phpgw']->common->phpgw_header();
switch($HTTP_POST_VARS['matrixtype']) switch($GLOBALS['HTTP_POST_VARS']['matrixtype'])
{ {
case 'free/busy': case 'free/busy':
$freetime = $this->bo->datetime->makegmttime(0,0,0,$this->bo->month,$this->bo->day,$this->bo->year); $freetime = $this->bo->datetime->makegmttime(0,0,0,$this->bo->month,$this->bo->day,$this->bo->year);
@ -1232,7 +1222,7 @@
echo ' <input type="hidden" name="year" value="'.$this->bo->year.'">'."\n"; echo ' <input type="hidden" name="year" value="'.$this->bo->year.'">'."\n";
echo ' <input type="hidden" name="month" value="'.$this->bo->month.'">'."\n"; echo ' <input type="hidden" name="month" value="'.$this->bo->month.'">'."\n";
echo ' <input type="hidden" name="day" value="'.$this->bo->day.'">'."\n"; echo ' <input type="hidden" name="day" value="'.$this->bo->day.'">'."\n";
echo ' <input type="hidden" name="matrixtype" value="'.$HTTP_POST_VARS['matrixtype'].'">'."\n"; echo ' <input type="hidden" name="matrixtype" value="'.$GLOBALS['HTTP_POST_VARS']['matrixtype'].'">'."\n";
reset($parts); reset($parts);
while(list($key,$value) = each($parts)) while(list($key,$value) = each($parts))
{ {
@ -1245,9 +1235,7 @@
function search() function search()
{ {
global $HTTP_POST_VARS; if (!$GLOBALS['HTTP_POST_VARS']['keywords'])
if (!$HTTP_POST_VARS['keywords'])
{ {
// If we reach this, it is because they didn't search for anything, // If we reach this, it is because they didn't search for anything,
// attempt to send them back to where they where. // attempt to send them back to where they where.
@ -1260,7 +1248,7 @@
$error = ''; $error = '';
if (strlen($HTTP_POST_VARS['keywords']) == 0) if (strlen($GLOBALS['HTTP_POST_VARS']['keywords']) == 0)
{ {
echo '<b>'.lang('Error').':</b>'; echo '<b>'.lang('Error').':</b>';
echo lang('You must enter one or more search keywords.'); echo lang('You must enter one or more search keywords.');
@ -1275,7 +1263,7 @@
// This has been solved by the little icon indicator for recurring events. // This has been solved by the little icon indicator for recurring events.
$event_ids = $this->bo->search_keywords($HTTP_POST_VARS['keywords']); $event_ids = $this->bo->search_keywords($GLOBALS['HTTP_POST_VARS']['keywords']);
$ids = Array(); $ids = Array();
while(list($key,$id) = each($event_ids)) while(list($key,$id) = each($event_ids))
{ {
@ -1407,8 +1395,6 @@
function header() function header()
{ {
global $HTTP_POST_VARS, $HTTP_GET_VARS;
$cols = 8; $cols = 8;
if($this->bo->check_perms(PHPGW_ACL_PRIVATE) == True) if($this->bo->check_perms(PHPGW_ACL_PRIVATE) == True)
{ {
@ -1426,7 +1412,7 @@
function footer() function footer()
{ {
list(,,$method) = explode('.',$GLOBALS['menuaction']); list(,,$method) = explode('.',$GLOBALS['HTTP_GET_VARS']['menuaction']);
if (@$this->bo->printer_friendly) if (@$this->bo->printer_friendly)
{ {

View File

@ -19,11 +19,10 @@
function add_image_ahref($link,$image,$alt) function add_image_ahref($link,$image,$alt)
{ {
global $GLOBALS;
return '<a href="'.$link.'"><img src="'.$GLOBALS['phpgw']->common->image('calendar',$image).'" alt="'.$alt.'" border="0"></a>'; return '<a href="'.$link.'"><img src="'.$GLOBALS['phpgw']->common->image('calendar',$image).'" alt="'.$alt.'" border="0"></a>';
} }
$refer = explode('.',$HTTP_GET_VARS['menuaction']); $refer = explode('.',$GLOBALS['HTTP_GET_VARS']['menuaction']);
$referrer = $refer[2]; $referrer = $refer[2];
$templates = Array( $templates = Array(
@ -60,27 +59,27 @@
if($this->bo->check_perms(PHPGW_ACL_PRIVATE)) if($this->bo->check_perms(PHPGW_ACL_PRIVATE))
{ {
$remainder -= 28; $remainder -= 28;
$hidden_vars = '<input type="hidden" name="from" value="'.$HTTP_GET_VARS['menuaction'].'">'."\n"; $hidden_vars = '<input type="hidden" name="from" value="'.$GLOBALS['HTTP_GET_VARS']['menuaction'].'">'."\n";
if(isset($HTTP_GET_VARS['date']) && $HTTP_GET_VARS['date']) if(isset($GLOBALS['HTTP_GET_VARS']['date']) && $GLOBALS['HTTP_GET_VARS']['date'])
{ {
$hidden_vars .= ' <input type="hidden" name="date" value="'.$HTP_GET_VARS['date'].'">'."\n"; $hidden_vars .= ' <input type="hidden" name="date" value="'.$HTP_GET_VARS['date'].'">'."\n";
} }
$hidden_vars .= ' <input type="hidden" name="month" value="'.$this->bo->month.'">'."\n"; $hidden_vars .= ' <input type="hidden" name="month" value="'.$this->bo->month.'">'."\n";
$hidden_vars .= ' <input type="hidden" name="day" value="'.$this->bo->day.'">'."\n"; $hidden_vars .= ' <input type="hidden" name="day" value="'.$this->bo->day.'">'."\n";
$hidden_vars .= ' <input type="hidden" name="year" value="'.$this->bo->year.'">'."\n"; $hidden_vars .= ' <input type="hidden" name="year" value="'.$this->bo->year.'">'."\n";
if(isset($HTTP_POST_VARS['keywords']) && $HTTP_POST_VARS['keywords']) if(isset($GLOBALS['HTTP_POST_VARS']['keywords']) && $GLOBALS['HTTP_POST_VARS']['keywords'])
{ {
$hidden_vars .= ' <input type="hidden" name="keywords" value="'.$HTTP_POST_VARS['keywords'].'">'."\n"; $hidden_vars .= ' <input type="hidden" name="keywords" value="'.$GLOBALS['HTTP_POST_VARS']['keywords'].'">'."\n";
} }
if(isset($HTTP_POST_VARS['matrixtype']) && $HTTP_POST_VARS['matrixtype']) if(isset($GLOBALS['HTTP_POST_VARS']['matrixtype']) && $GLOBALS['HTTP_POST_VARS']['matrixtype'])
{ {
$hidden_vars .= ' <input type="hidden" name="matrixtype" value="'.$HTTP_POST_VARS['matrixtype'].'">'."\n"; $hidden_vars .= ' <input type="hidden" name="matrixtype" value="'.$GLOBALS['HTTP_POST_VARS']['matrixtype'].'">'."\n";
} }
if(isset($HTTP_POST_VARS['participants']) && $HTTP_POST_VARS['participants']) if(isset($GLOBALS['HTTP_POST_VARS']['participants']) && $GLOBALS['HTTP_POST_VARS']['participants'])
{ {
for ($i=0;$i<count($HTTP_POST_VARS['participants']);$i++) for ($i=0;$i<count($GLOBALS['HTTP_POST_VARS']['participants']);$i++)
{ {
$hidden_vars .= ' <input type="hidden" name="participants[]" value="'.$HTTP_POST_VARS['participants'][$i].'">'."\n"; $hidden_vars .= ' <input type="hidden" name="participants[]" value="'.$GLOBALS['HTTP_POST_VARS']['participants'][$i].'">'."\n";
} }
} }
if($this->debug) { echo 'Filter = ('.$this->bo->filter.")<br>\n"; } if($this->debug) { echo 'Filter = ('.$this->bo->filter.")<br>\n"; }
@ -103,21 +102,21 @@
if(count($this->bo->grants) > 0) if(count($this->bo->grants) > 0)
{ {
$hidden_vars = ' <input type="hidden" name="from" value="'.$HTTP_GET_VARS['menuaction'].'">'."\n"; $hidden_vars = ' <input type="hidden" name="from" value="'.$GLOBALS['HTTP_GET_VARS']['menuaction'].'">'."\n";
if(isset($HTTP_GET_VARS['date']) && $HTTP_GET_VARS['date']) if(isset($GLOBALS['HTTP_GET_VARS']['date']) && $GLOBALS['HTTP_GET_VARS']['date'])
{ {
$hidden_vars .= ' <input type="hidden" name="date" value="'.$HTTP_GET_VARS['date'].'">'."\n"; $hidden_vars .= ' <input type="hidden" name="date" value="'.$GLOBALS['HTTP_GET_VARS']['date'].'">'."\n";
} }
$hidden_vars .= ' <input type="hidden" name="month" value="'.$this->bo->month.'">'."\n"; $hidden_vars .= ' <input type="hidden" name="month" value="'.$this->bo->month.'">'."\n";
$hidden_vars .= ' <input type="hidden" name="day" value="'.$this->bo->day.'">'."\n"; $hidden_vars .= ' <input type="hidden" name="day" value="'.$this->bo->day.'">'."\n";
$hidden_vars .= ' <input type="hidden" name="year" value="'.$this->bo->year.'">'."\n"; $hidden_vars .= ' <input type="hidden" name="year" value="'.$this->bo->year.'">'."\n";
if(isset($HTTP_POST_VARS['keywords']) && $HTTP_POST_VARS['keywords']) if(isset($GLOBALS['HTTP_POST_VARS']['keywords']) && $GLOBALS['HTTP_POST_VARS']['keywords'])
{ {
$hidden_vars .= ' <input type="hidden" name="keywords" value="'.$HTTP_POST_VARS['keywords'].'">'."\n"; $hidden_vars .= ' <input type="hidden" name="keywords" value="'.$GLOBALS['HTTP_POST_VARS']['keywords'].'">'."\n";
} }
if(isset($HTTP_GET_VARS['cal_id']) && $HTTP_GET_VARS['cal_id'] != 0) if(isset($GLOBALS['HTTP_GET_VARS']['cal_id']) && $GLOBALS['HTTP_GET_VARS']['cal_id'] != 0)
{ {
$hidden_vars .= ' <input type="hidden" name="cal_id" value="'.$HTTP_GET_VARS['cal_id'].'">'."\n"; $hidden_vars .= ' <input type="hidden" name="cal_id" value="'.$GLOBALS['HTTP_GET_VARS']['cal_id'].'">'."\n";
} }
$form_options = ''; $form_options = '';
reset($this->bo->grants); reset($this->bo->grants);
@ -141,10 +140,10 @@
$tpl->parse('header_column','head_col',True); $tpl->parse('header_column','head_col',True);
} }
$hidden_vars = ' <input type="hidden" name="from" value="'.$HTTP_GET_VARS['menuaction'].'">'."\n"; $hidden_vars = ' <input type="hidden" name="from" value="'.$GLOBALS['HTTP_GET_VARS']['menuaction'].'">'."\n";
if(isset($HTTP_GET_VARS['date']) && $HTTP_GET_VARS['date']) if(isset($GLOBALS['HTTP_GET_VARS']['date']) && $GLOBALS['HTTP_GET_VARS']['date'])
{ {
$hidden_vars .= ' <input type="hidden" name="date" value="'.$HTTP_GET_VARS['date'].'">'."\n"; $hidden_vars .= ' <input type="hidden" name="date" value="'.$GLOBALS['HTTP_GET_VARS']['date'].'">'."\n";
} }
$hidden_vars .= ' <input type="hidden" name="month" value="'.$this->bo->month.'">'."\n"; $hidden_vars .= ' <input type="hidden" name="month" value="'.$this->bo->month.'">'."\n";
$hidden_vars .= ' <input type="hidden" name="day" value="'.$this->bo->day.'">'."\n"; $hidden_vars .= ' <input type="hidden" name="day" value="'.$this->bo->day.'">'."\n";
@ -153,7 +152,7 @@
{ {
$hidden_vars .= ' <input type="hidden" name="filter" value="'.$this->bo->filter.'">'."\n"; $hidden_vars .= ' <input type="hidden" name="filter" value="'.$this->bo->filter.'">'."\n";
} }
$hidden_vars .= ' <input name="keywords"'.($HTTP_POST_VARS['keywords']?' value="'.$HTTP_POST_VARS['keywords'].'"':'').'>'; $hidden_vars .= ' <input name="keywords"'.($GLOBALS['HTTP_POST_VARS']['keywords']?' value="'.$GLOBALS['HTTP_POST_VARS']['keywords'].'"':'').'>';
$var = Array( $var = Array(
'action_url_button' => $this->page('search'), 'action_url_button' => $this->page('search'),

View File

@ -19,11 +19,10 @@
function add_image_ahref($link,$image,$alt) function add_image_ahref($link,$image,$alt)
{ {
global $GLOBALS;
return '<a href="'.$link.'"><img src="'.$GLOBALS['phpgw']->common->image('calendar',$image).'" alt="'.$alt.'" border="0"></a>'; return '<a href="'.$link.'"><img src="'.$GLOBALS['phpgw']->common->image('calendar',$image).'" alt="'.$alt.'" border="0"></a>';
} }
$refer = explode('.',$HTTP_GET_VARS['menuaction']); $refer = explode('.',$GLOBALS['HTTP_GET_VARS']['menuaction']);
$referrer = $refer[2]; $referrer = $refer[2];
$templates = Array( $templates = Array(
@ -60,27 +59,27 @@
if($this->bo->check_perms(PHPGW_ACL_PRIVATE)) if($this->bo->check_perms(PHPGW_ACL_PRIVATE))
{ {
$remainder -= 28; $remainder -= 28;
$hidden_vars = '<input type="hidden" name="from" value="'.$HTTP_GET_VARS['menuaction'].'">'."\n"; $hidden_vars = '<input type="hidden" name="from" value="'.$GLOBALS['HTTP_GET_VARS']['menuaction'].'">'."\n";
if(isset($HTTP_GET_VARS['date']) && $HTTP_GET_VARS['date']) if(isset($GLOBALS['HTTP_GET_VARS']['date']) && $GLOBALS['HTTP_GET_VARS']['date'])
{ {
$hidden_vars .= ' <input type="hidden" name="date" value="'.$HTP_GET_VARS['date'].'">'."\n"; $hidden_vars .= ' <input type="hidden" name="date" value="'.$HTP_GET_VARS['date'].'">'."\n";
} }
$hidden_vars .= ' <input type="hidden" name="month" value="'.$this->bo->month.'">'."\n"; $hidden_vars .= ' <input type="hidden" name="month" value="'.$this->bo->month.'">'."\n";
$hidden_vars .= ' <input type="hidden" name="day" value="'.$this->bo->day.'">'."\n"; $hidden_vars .= ' <input type="hidden" name="day" value="'.$this->bo->day.'">'."\n";
$hidden_vars .= ' <input type="hidden" name="year" value="'.$this->bo->year.'">'."\n"; $hidden_vars .= ' <input type="hidden" name="year" value="'.$this->bo->year.'">'."\n";
if(isset($HTTP_POST_VARS['keywords']) && $HTTP_POST_VARS['keywords']) if(isset($GLOBALS['HTTP_POST_VARS']['keywords']) && $GLOBALS['HTTP_POST_VARS']['keywords'])
{ {
$hidden_vars .= ' <input type="hidden" name="keywords" value="'.$HTTP_POST_VARS['keywords'].'">'."\n"; $hidden_vars .= ' <input type="hidden" name="keywords" value="'.$GLOBALS['HTTP_POST_VARS']['keywords'].'">'."\n";
} }
if(isset($HTTP_POST_VARS['matrixtype']) && $HTTP_POST_VARS['matrixtype']) if(isset($GLOBALS['HTTP_POST_VARS']['matrixtype']) && $GLOBALS['HTTP_POST_VARS']['matrixtype'])
{ {
$hidden_vars .= ' <input type="hidden" name="matrixtype" value="'.$HTTP_POST_VARS['matrixtype'].'">'."\n"; $hidden_vars .= ' <input type="hidden" name="matrixtype" value="'.$GLOBALS['HTTP_POST_VARS']['matrixtype'].'">'."\n";
} }
if(isset($HTTP_POST_VARS['participants']) && $HTTP_POST_VARS['participants']) if(isset($GLOBALS['HTTP_POST_VARS']['participants']) && $GLOBALS['HTTP_POST_VARS']['participants'])
{ {
for ($i=0;$i<count($HTTP_POST_VARS['participants']);$i++) for ($i=0;$i<count($GLOBALS['HTTP_POST_VARS']['participants']);$i++)
{ {
$hidden_vars .= ' <input type="hidden" name="participants[]" value="'.$HTTP_POST_VARS['participants'][$i].'">'."\n"; $hidden_vars .= ' <input type="hidden" name="participants[]" value="'.$GLOBALS['HTTP_POST_VARS']['participants'][$i].'">'."\n";
} }
} }
if($this->debug) { echo 'Filter = ('.$this->bo->filter.")<br>\n"; } if($this->debug) { echo 'Filter = ('.$this->bo->filter.")<br>\n"; }
@ -103,21 +102,21 @@
if(count($this->bo->grants) > 0) if(count($this->bo->grants) > 0)
{ {
$hidden_vars = ' <input type="hidden" name="from" value="'.$HTTP_GET_VARS['menuaction'].'">'."\n"; $hidden_vars = ' <input type="hidden" name="from" value="'.$GLOBALS['HTTP_GET_VARS']['menuaction'].'">'."\n";
if(isset($HTTP_GET_VARS['date']) && $HTTP_GET_VARS['date']) if(isset($GLOBALS['HTTP_GET_VARS']['date']) && $GLOBALS['HTTP_GET_VARS']['date'])
{ {
$hidden_vars .= ' <input type="hidden" name="date" value="'.$HTTP_GET_VARS['date'].'">'."\n"; $hidden_vars .= ' <input type="hidden" name="date" value="'.$GLOBALS['HTTP_GET_VARS']['date'].'">'."\n";
} }
$hidden_vars .= ' <input type="hidden" name="month" value="'.$this->bo->month.'">'."\n"; $hidden_vars .= ' <input type="hidden" name="month" value="'.$this->bo->month.'">'."\n";
$hidden_vars .= ' <input type="hidden" name="day" value="'.$this->bo->day.'">'."\n"; $hidden_vars .= ' <input type="hidden" name="day" value="'.$this->bo->day.'">'."\n";
$hidden_vars .= ' <input type="hidden" name="year" value="'.$this->bo->year.'">'."\n"; $hidden_vars .= ' <input type="hidden" name="year" value="'.$this->bo->year.'">'."\n";
if(isset($HTTP_POST_VARS['keywords']) && $HTTP_POST_VARS['keywords']) if(isset($GLOBALS['HTTP_POST_VARS']['keywords']) && $GLOBALS['HTTP_POST_VARS']['keywords'])
{ {
$hidden_vars .= ' <input type="hidden" name="keywords" value="'.$HTTP_POST_VARS['keywords'].'">'."\n"; $hidden_vars .= ' <input type="hidden" name="keywords" value="'.$GLOBALS['HTTP_POST_VARS']['keywords'].'">'."\n";
} }
if(isset($HTTP_GET_VARS['cal_id']) && $HTTP_GET_VARS['cal_id'] != 0) if(isset($GLOBALS['HTTP_GET_VARS']['cal_id']) && $GLOBALS['HTTP_GET_VARS']['cal_id'] != 0)
{ {
$hidden_vars .= ' <input type="hidden" name="cal_id" value="'.$HTTP_GET_VARS['cal_id'].'">'."\n"; $hidden_vars .= ' <input type="hidden" name="cal_id" value="'.$GLOBALS['HTTP_GET_VARS']['cal_id'].'">'."\n";
} }
$form_options = ''; $form_options = '';
reset($this->bo->grants); reset($this->bo->grants);
@ -141,10 +140,10 @@
$tpl->parse('header_column','head_col',True); $tpl->parse('header_column','head_col',True);
} }
$hidden_vars = ' <input type="hidden" name="from" value="'.$HTTP_GET_VARS['menuaction'].'">'."\n"; $hidden_vars = ' <input type="hidden" name="from" value="'.$GLOBALS['HTTP_GET_VARS']['menuaction'].'">'."\n";
if(isset($HTTP_GET_VARS['date']) && $HTTP_GET_VARS['date']) if(isset($GLOBALS['HTTP_GET_VARS']['date']) && $GLOBALS['HTTP_GET_VARS']['date'])
{ {
$hidden_vars .= ' <input type="hidden" name="date" value="'.$HTTP_GET_VARS['date'].'">'."\n"; $hidden_vars .= ' <input type="hidden" name="date" value="'.$GLOBALS['HTTP_GET_VARS']['date'].'">'."\n";
} }
$hidden_vars .= ' <input type="hidden" name="month" value="'.$this->bo->month.'">'."\n"; $hidden_vars .= ' <input type="hidden" name="month" value="'.$this->bo->month.'">'."\n";
$hidden_vars .= ' <input type="hidden" name="day" value="'.$this->bo->day.'">'."\n"; $hidden_vars .= ' <input type="hidden" name="day" value="'.$this->bo->day.'">'."\n";
@ -153,7 +152,7 @@
{ {
$hidden_vars .= ' <input type="hidden" name="filter" value="'.$this->bo->filter.'">'."\n"; $hidden_vars .= ' <input type="hidden" name="filter" value="'.$this->bo->filter.'">'."\n";
} }
$hidden_vars .= ' <input name="keywords"'.($HTTP_POST_VARS['keywords']?' value="'.$HTTP_POST_VARS['keywords'].'"':'').'>'; $hidden_vars .= ' <input name="keywords"'.($GLOBALS['HTTP_POST_VARS']['keywords']?' value="'.$GLOBALS['HTTP_POST_VARS']['keywords'].'"':'').'>';
$var = Array( $var = Array(
'action_url_button' => $this->page('search'), 'action_url_button' => $this->page('search'),

View File

@ -19,11 +19,10 @@
function add_image_ahref($link,$image,$alt) function add_image_ahref($link,$image,$alt)
{ {
global $GLOBALS;
return '<a href="'.$link.'"><img src="'.$GLOBALS['phpgw']->common->image('calendar',$image).'" alt="'.$alt.'" border="0"></a>'; return '<a href="'.$link.'"><img src="'.$GLOBALS['phpgw']->common->image('calendar',$image).'" alt="'.$alt.'" border="0"></a>';
} }
$refer = explode('.',$HTTP_GET_VARS['menuaction']); $refer = explode('.',$GLOBALS['HTTP_GET_VARS']['menuaction']);
$referrer = $refer[2]; $referrer = $refer[2];
$templates = Array( $templates = Array(
@ -60,27 +59,27 @@
if($this->bo->check_perms(PHPGW_ACL_PRIVATE)) if($this->bo->check_perms(PHPGW_ACL_PRIVATE))
{ {
$remainder -= 28; $remainder -= 28;
$hidden_vars = '<input type="hidden" name="from" value="'.$HTTP_GET_VARS['menuaction'].'">'."\n"; $hidden_vars = '<input type="hidden" name="from" value="'.$GLOBALS['HTTP_GET_VARS']['menuaction'].'">'."\n";
if(isset($HTTP_GET_VARS['date']) && $HTTP_GET_VARS['date']) if(isset($GLOBALS['HTTP_GET_VARS']['date']) && $GLOBALS['HTTP_GET_VARS']['date'])
{ {
$hidden_vars .= ' <input type="hidden" name="date" value="'.$HTP_GET_VARS['date'].'">'."\n"; $hidden_vars .= ' <input type="hidden" name="date" value="'.$HTP_GET_VARS['date'].'">'."\n";
} }
$hidden_vars .= ' <input type="hidden" name="month" value="'.$this->bo->month.'">'."\n"; $hidden_vars .= ' <input type="hidden" name="month" value="'.$this->bo->month.'">'."\n";
$hidden_vars .= ' <input type="hidden" name="day" value="'.$this->bo->day.'">'."\n"; $hidden_vars .= ' <input type="hidden" name="day" value="'.$this->bo->day.'">'."\n";
$hidden_vars .= ' <input type="hidden" name="year" value="'.$this->bo->year.'">'."\n"; $hidden_vars .= ' <input type="hidden" name="year" value="'.$this->bo->year.'">'."\n";
if(isset($HTTP_POST_VARS['keywords']) && $HTTP_POST_VARS['keywords']) if(isset($GLOBALS['HTTP_POST_VARS']['keywords']) && $GLOBALS['HTTP_POST_VARS']['keywords'])
{ {
$hidden_vars .= ' <input type="hidden" name="keywords" value="'.$HTTP_POST_VARS['keywords'].'">'."\n"; $hidden_vars .= ' <input type="hidden" name="keywords" value="'.$GLOBALS['HTTP_POST_VARS']['keywords'].'">'."\n";
} }
if(isset($HTTP_POST_VARS['matrixtype']) && $HTTP_POST_VARS['matrixtype']) if(isset($GLOBALS['HTTP_POST_VARS']['matrixtype']) && $GLOBALS['HTTP_POST_VARS']['matrixtype'])
{ {
$hidden_vars .= ' <input type="hidden" name="matrixtype" value="'.$HTTP_POST_VARS['matrixtype'].'">'."\n"; $hidden_vars .= ' <input type="hidden" name="matrixtype" value="'.$GLOBALS['HTTP_POST_VARS']['matrixtype'].'">'."\n";
} }
if(isset($HTTP_POST_VARS['participants']) && $HTTP_POST_VARS['participants']) if(isset($GLOBALS['HTTP_POST_VARS']['participants']) && $GLOBALS['HTTP_POST_VARS']['participants'])
{ {
for ($i=0;$i<count($HTTP_POST_VARS['participants']);$i++) for ($i=0;$i<count($GLOBALS['HTTP_POST_VARS']['participants']);$i++)
{ {
$hidden_vars .= ' <input type="hidden" name="participants[]" value="'.$HTTP_POST_VARS['participants'][$i].'">'."\n"; $hidden_vars .= ' <input type="hidden" name="participants[]" value="'.$GLOBALS['HTTP_POST_VARS']['participants'][$i].'">'."\n";
} }
} }
if($this->debug) { echo 'Filter = ('.$this->bo->filter.")<br>\n"; } if($this->debug) { echo 'Filter = ('.$this->bo->filter.")<br>\n"; }
@ -103,21 +102,21 @@
if(count($this->bo->grants) > 0) if(count($this->bo->grants) > 0)
{ {
$hidden_vars = ' <input type="hidden" name="from" value="'.$HTTP_GET_VARS['menuaction'].'">'."\n"; $hidden_vars = ' <input type="hidden" name="from" value="'.$GLOBALS['HTTP_GET_VARS']['menuaction'].'">'."\n";
if(isset($HTTP_GET_VARS['date']) && $HTTP_GET_VARS['date']) if(isset($GLOBALS['HTTP_GET_VARS']['date']) && $GLOBALS['HTTP_GET_VARS']['date'])
{ {
$hidden_vars .= ' <input type="hidden" name="date" value="'.$HTTP_GET_VARS['date'].'">'."\n"; $hidden_vars .= ' <input type="hidden" name="date" value="'.$GLOBALS['HTTP_GET_VARS']['date'].'">'."\n";
} }
$hidden_vars .= ' <input type="hidden" name="month" value="'.$this->bo->month.'">'."\n"; $hidden_vars .= ' <input type="hidden" name="month" value="'.$this->bo->month.'">'."\n";
$hidden_vars .= ' <input type="hidden" name="day" value="'.$this->bo->day.'">'."\n"; $hidden_vars .= ' <input type="hidden" name="day" value="'.$this->bo->day.'">'."\n";
$hidden_vars .= ' <input type="hidden" name="year" value="'.$this->bo->year.'">'."\n"; $hidden_vars .= ' <input type="hidden" name="year" value="'.$this->bo->year.'">'."\n";
if(isset($HTTP_POST_VARS['keywords']) && $HTTP_POST_VARS['keywords']) if(isset($GLOBALS['HTTP_POST_VARS']['keywords']) && $GLOBALS['HTTP_POST_VARS']['keywords'])
{ {
$hidden_vars .= ' <input type="hidden" name="keywords" value="'.$HTTP_POST_VARS['keywords'].'">'."\n"; $hidden_vars .= ' <input type="hidden" name="keywords" value="'.$GLOBALS['HTTP_POST_VARS']['keywords'].'">'."\n";
} }
if(isset($HTTP_GET_VARS['cal_id']) && $HTTP_GET_VARS['cal_id'] != 0) if(isset($GLOBALS['HTTP_GET_VARS']['cal_id']) && $GLOBALS['HTTP_GET_VARS']['cal_id'] != 0)
{ {
$hidden_vars .= ' <input type="hidden" name="cal_id" value="'.$HTTP_GET_VARS['cal_id'].'">'."\n"; $hidden_vars .= ' <input type="hidden" name="cal_id" value="'.$GLOBALS['HTTP_GET_VARS']['cal_id'].'">'."\n";
} }
$form_options = ''; $form_options = '';
reset($this->bo->grants); reset($this->bo->grants);
@ -141,10 +140,10 @@
$tpl->parse('header_column','head_col',True); $tpl->parse('header_column','head_col',True);
} }
$hidden_vars = ' <input type="hidden" name="from" value="'.$HTTP_GET_VARS['menuaction'].'">'."\n"; $hidden_vars = ' <input type="hidden" name="from" value="'.$GLOBALS['HTTP_GET_VARS']['menuaction'].'">'."\n";
if(isset($HTTP_GET_VARS['date']) && $HTTP_GET_VARS['date']) if(isset($GLOBALS['HTTP_GET_VARS']['date']) && $GLOBALS['HTTP_GET_VARS']['date'])
{ {
$hidden_vars .= ' <input type="hidden" name="date" value="'.$HTTP_GET_VARS['date'].'">'."\n"; $hidden_vars .= ' <input type="hidden" name="date" value="'.$GLOBALS['HTTP_GET_VARS']['date'].'">'."\n";
} }
$hidden_vars .= ' <input type="hidden" name="month" value="'.$this->bo->month.'">'."\n"; $hidden_vars .= ' <input type="hidden" name="month" value="'.$this->bo->month.'">'."\n";
$hidden_vars .= ' <input type="hidden" name="day" value="'.$this->bo->day.'">'."\n"; $hidden_vars .= ' <input type="hidden" name="day" value="'.$this->bo->day.'">'."\n";
@ -153,7 +152,7 @@
{ {
$hidden_vars .= ' <input type="hidden" name="filter" value="'.$this->bo->filter.'">'."\n"; $hidden_vars .= ' <input type="hidden" name="filter" value="'.$this->bo->filter.'">'."\n";
} }
$hidden_vars .= ' <input name="keywords"'.($HTTP_POST_VARS['keywords']?' value="'.$HTTP_POST_VARS['keywords'].'"':'').'>'; $hidden_vars .= ' <input name="keywords"'.($GLOBALS['HTTP_POST_VARS']['keywords']?' value="'.$GLOBALS['HTTP_POST_VARS']['keywords'].'"':'').'>';
$var = Array( $var = Array(
'action_url_button' => $this->page('search'), 'action_url_button' => $this->page('search'),

View File

@ -19,11 +19,10 @@
function add_image_ahref($link,$image,$alt) function add_image_ahref($link,$image,$alt)
{ {
global $GLOBALS;
return '<a href="'.$link.'"><img src="'.$GLOBALS['phpgw']->common->image('calendar',$image).'" alt="'.$alt.'" border="0"></a>'; return '<a href="'.$link.'"><img src="'.$GLOBALS['phpgw']->common->image('calendar',$image).'" alt="'.$alt.'" border="0"></a>';
} }
$refer = explode('.',$HTTP_GET_VARS['menuaction']); $refer = explode('.',$GLOBALS['HTTP_GET_VARS']['menuaction']);
$referrer = $refer[2]; $referrer = $refer[2];
$templates = Array( $templates = Array(
@ -60,27 +59,27 @@
if($this->bo->check_perms(PHPGW_ACL_PRIVATE)) if($this->bo->check_perms(PHPGW_ACL_PRIVATE))
{ {
$remainder -= 28; $remainder -= 28;
$hidden_vars = '<input type="hidden" name="from" value="'.$HTTP_GET_VARS['menuaction'].'">'."\n"; $hidden_vars = '<input type="hidden" name="from" value="'.$GLOBALS['HTTP_GET_VARS']['menuaction'].'">'."\n";
if(isset($HTTP_GET_VARS['date']) && $HTTP_GET_VARS['date']) if(isset($GLOBALS['HTTP_GET_VARS']['date']) && $GLOBALS['HTTP_GET_VARS']['date'])
{ {
$hidden_vars .= ' <input type="hidden" name="date" value="'.$HTP_GET_VARS['date'].'">'."\n"; $hidden_vars .= ' <input type="hidden" name="date" value="'.$HTP_GET_VARS['date'].'">'."\n";
} }
$hidden_vars .= ' <input type="hidden" name="month" value="'.$this->bo->month.'">'."\n"; $hidden_vars .= ' <input type="hidden" name="month" value="'.$this->bo->month.'">'."\n";
$hidden_vars .= ' <input type="hidden" name="day" value="'.$this->bo->day.'">'."\n"; $hidden_vars .= ' <input type="hidden" name="day" value="'.$this->bo->day.'">'."\n";
$hidden_vars .= ' <input type="hidden" name="year" value="'.$this->bo->year.'">'."\n"; $hidden_vars .= ' <input type="hidden" name="year" value="'.$this->bo->year.'">'."\n";
if(isset($HTTP_POST_VARS['keywords']) && $HTTP_POST_VARS['keywords']) if(isset($GLOBALS['HTTP_POST_VARS']['keywords']) && $GLOBALS['HTTP_POST_VARS']['keywords'])
{ {
$hidden_vars .= ' <input type="hidden" name="keywords" value="'.$HTTP_POST_VARS['keywords'].'">'."\n"; $hidden_vars .= ' <input type="hidden" name="keywords" value="'.$GLOBALS['HTTP_POST_VARS']['keywords'].'">'."\n";
} }
if(isset($HTTP_POST_VARS['matrixtype']) && $HTTP_POST_VARS['matrixtype']) if(isset($GLOBALS['HTTP_POST_VARS']['matrixtype']) && $GLOBALS['HTTP_POST_VARS']['matrixtype'])
{ {
$hidden_vars .= ' <input type="hidden" name="matrixtype" value="'.$HTTP_POST_VARS['matrixtype'].'">'."\n"; $hidden_vars .= ' <input type="hidden" name="matrixtype" value="'.$GLOBALS['HTTP_POST_VARS']['matrixtype'].'">'."\n";
} }
if(isset($HTTP_POST_VARS['participants']) && $HTTP_POST_VARS['participants']) if(isset($GLOBALS['HTTP_POST_VARS']['participants']) && $GLOBALS['HTTP_POST_VARS']['participants'])
{ {
for ($i=0;$i<count($HTTP_POST_VARS['participants']);$i++) for ($i=0;$i<count($GLOBALS['HTTP_POST_VARS']['participants']);$i++)
{ {
$hidden_vars .= ' <input type="hidden" name="participants[]" value="'.$HTTP_POST_VARS['participants'][$i].'">'."\n"; $hidden_vars .= ' <input type="hidden" name="participants[]" value="'.$GLOBALS['HTTP_POST_VARS']['participants'][$i].'">'."\n";
} }
} }
if($this->debug) { echo 'Filter = ('.$this->bo->filter.")<br>\n"; } if($this->debug) { echo 'Filter = ('.$this->bo->filter.")<br>\n"; }
@ -103,21 +102,21 @@
if(count($this->bo->grants) > 0) if(count($this->bo->grants) > 0)
{ {
$hidden_vars = ' <input type="hidden" name="from" value="'.$HTTP_GET_VARS['menuaction'].'">'."\n"; $hidden_vars = ' <input type="hidden" name="from" value="'.$GLOBALS['HTTP_GET_VARS']['menuaction'].'">'."\n";
if(isset($HTTP_GET_VARS['date']) && $HTTP_GET_VARS['date']) if(isset($GLOBALS['HTTP_GET_VARS']['date']) && $GLOBALS['HTTP_GET_VARS']['date'])
{ {
$hidden_vars .= ' <input type="hidden" name="date" value="'.$HTTP_GET_VARS['date'].'">'."\n"; $hidden_vars .= ' <input type="hidden" name="date" value="'.$GLOBALS['HTTP_GET_VARS']['date'].'">'."\n";
} }
$hidden_vars .= ' <input type="hidden" name="month" value="'.$this->bo->month.'">'."\n"; $hidden_vars .= ' <input type="hidden" name="month" value="'.$this->bo->month.'">'."\n";
$hidden_vars .= ' <input type="hidden" name="day" value="'.$this->bo->day.'">'."\n"; $hidden_vars .= ' <input type="hidden" name="day" value="'.$this->bo->day.'">'."\n";
$hidden_vars .= ' <input type="hidden" name="year" value="'.$this->bo->year.'">'."\n"; $hidden_vars .= ' <input type="hidden" name="year" value="'.$this->bo->year.'">'."\n";
if(isset($HTTP_POST_VARS['keywords']) && $HTTP_POST_VARS['keywords']) if(isset($GLOBALS['HTTP_POST_VARS']['keywords']) && $GLOBALS['HTTP_POST_VARS']['keywords'])
{ {
$hidden_vars .= ' <input type="hidden" name="keywords" value="'.$HTTP_POST_VARS['keywords'].'">'."\n"; $hidden_vars .= ' <input type="hidden" name="keywords" value="'.$GLOBALS['HTTP_POST_VARS']['keywords'].'">'."\n";
} }
if(isset($HTTP_GET_VARS['cal_id']) && $HTTP_GET_VARS['cal_id'] != 0) if(isset($GLOBALS['HTTP_GET_VARS']['cal_id']) && $GLOBALS['HTTP_GET_VARS']['cal_id'] != 0)
{ {
$hidden_vars .= ' <input type="hidden" name="cal_id" value="'.$HTTP_GET_VARS['cal_id'].'">'."\n"; $hidden_vars .= ' <input type="hidden" name="cal_id" value="'.$GLOBALS['HTTP_GET_VARS']['cal_id'].'">'."\n";
} }
$form_options = ''; $form_options = '';
reset($this->bo->grants); reset($this->bo->grants);
@ -141,10 +140,10 @@
$tpl->parse('header_column','head_col',True); $tpl->parse('header_column','head_col',True);
} }
$hidden_vars = ' <input type="hidden" name="from" value="'.$HTTP_GET_VARS['menuaction'].'">'."\n"; $hidden_vars = ' <input type="hidden" name="from" value="'.$GLOBALS['HTTP_GET_VARS']['menuaction'].'">'."\n";
if(isset($HTTP_GET_VARS['date']) && $HTTP_GET_VARS['date']) if(isset($GLOBALS['HTTP_GET_VARS']['date']) && $GLOBALS['HTTP_GET_VARS']['date'])
{ {
$hidden_vars .= ' <input type="hidden" name="date" value="'.$HTTP_GET_VARS['date'].'">'."\n"; $hidden_vars .= ' <input type="hidden" name="date" value="'.$GLOBALS['HTTP_GET_VARS']['date'].'">'."\n";
} }
$hidden_vars .= ' <input type="hidden" name="month" value="'.$this->bo->month.'">'."\n"; $hidden_vars .= ' <input type="hidden" name="month" value="'.$this->bo->month.'">'."\n";
$hidden_vars .= ' <input type="hidden" name="day" value="'.$this->bo->day.'">'."\n"; $hidden_vars .= ' <input type="hidden" name="day" value="'.$this->bo->day.'">'."\n";
@ -153,7 +152,7 @@
{ {
$hidden_vars .= ' <input type="hidden" name="filter" value="'.$this->bo->filter.'">'."\n"; $hidden_vars .= ' <input type="hidden" name="filter" value="'.$this->bo->filter.'">'."\n";
} }
$hidden_vars .= ' <input name="keywords"'.($HTTP_POST_VARS['keywords']?' value="'.$HTTP_POST_VARS['keywords'].'"':'').'>'; $hidden_vars .= ' <input name="keywords"'.($GLOBALS['HTTP_POST_VARS']['keywords']?' value="'.$GLOBALS['HTTP_POST_VARS']['keywords'].'"':'').'>';
$var = Array( $var = Array(
'action_url_button' => $this->page('search'), 'action_url_button' => $this->page('search'),

View File

@ -1166,7 +1166,7 @@
function get_email_passwd_ex() function get_email_passwd_ex()
{ {
// ---- Create the email Message Class if needed ----- // ---- Create the email Message Class if needed -----
if (isset($GLOBALS['phpgw']->msg)) if (is_object($GLOBALS['phpgw']->msg))
{ {
$do_free_me = False; $do_free_me = False;
} }
@ -1206,7 +1206,7 @@
function create_emailpreferences($prefs='',$accountid='') function create_emailpreferences($prefs='',$accountid='')
{ {
// ---- Create the email Message Class if needed ----- // ---- Create the email Message Class if needed -----
if (isset($GLOBALS['phpgw']->msg)) if (is_object($GLOBALS['phpgw']->msg))
{ {
$do_free_me = False; $do_free_me = False;
} }