Changeset 808 for trunk/include/functions_session.inc.php
- Timestamp:
- Aug 8, 2005, 10:52:19 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions_session.inc.php
r804 r808 110 110 global $page, $user, $conf; 111 111 112 if ( $user['has_cookie'] or $conf['apache_authentication']) return $url; 112 if ($user['is_the_guest'] 113 or $user['has_cookie'] 114 or $conf['apache_authentication']) 115 { 116 return $url; 117 } 113 118 114 $amp = '&'; 115 if ( $redirect ) 119 if (preg_match('/\.php\?/', $url)) 116 120 { 117 $amp = '&'; 118 } 119 if ( !$user['is_the_guest'] ) 120 { 121 if ( preg_match( '/\.php\?/',$url ) ) 122 { 123 return $url.$amp.'id='.$page['session_id']; 124 } 125 else 126 { 127 return $url.'?id='.$page['session_id']; 128 } 121 $separator = $redirect ? '&' : '&'; 129 122 } 130 123 else 131 124 { 132 return $url;125 $separator = '?'; 133 126 } 127 128 return $url.$separator.'id='.$page['session_id']; 134 129 } 135 130
Note: See TracChangeset
for help on using the changeset viewer.