using common::get_referer()

This commit is contained in:
Ralf Becker 2005-11-09 12:52:11 +00:00
parent 950fa24a14
commit 17fe4ff188

View File

@ -206,7 +206,7 @@
} }
elseif ($own_referer !== '') elseif ($own_referer !== '')
{ {
$own_referer = ereg_replace('^.*'.$GLOBALS['egw_info']['server']['webserver_url'],'',$_SERVER['HTTP_REFERER']); $own_referer = $GLOBALS['egw']->common->get_referer();
} }
//echo "<p>uiinfolog::index(action='$action/$action_id',referer='$referer/$values[referer]') values=\n"; _debug_array($values); //echo "<p>uiinfolog::index(action='$action/$action_id',referer='$referer/$values[referer]') values=\n"; _debug_array($values);
if (!is_array($values)) if (!is_array($values))
@ -450,9 +450,7 @@
$action_id = $action_id ? $action_id : get_var('action_id',array('POST','GET')); $action_id = $action_id ? $action_id : get_var('action_id',array('POST','GET'));
$info_id = $content ? $content : get_var('info_id', array('POST','GET')); $info_id = $content ? $content : get_var('info_id', array('POST','GET'));
$type = $type ? $type : get_var('type', array('POST','GET')); $type = $type ? $type : get_var('type', array('POST','GET'));
$referer = $referer !== '' ? $referer : $referer = $referer !== '' ? $referer : $GLOBALS['egw']->common->get_referer();
ereg_replace('^.*'.$GLOBALS['egw_info']['server']['webserver_url'],'',
get_var('HTTP_REFERER',Array('SERVER')));
//echo "<p>uiinfolog::edit: info_id=$info_id, action='$action', action_id='$action_id', type='$type', referer='$referer'</p>\n"; //echo "<p>uiinfolog::edit: info_id=$info_id, action='$action', action_id='$action_id', type='$type', referer='$referer'</p>\n";
$content = $this->bo->read( $info_id || $action != 'sp' ? $info_id : $action_id ); $content = $this->bo->read( $info_id || $action != 'sp' ? $info_id : $action_id );