mirror of
https://github.com/jimeh/dlist.git
synced 2026-02-19 07:56:41 +00:00
- made simple template almost feature complete by implementing view modes and more
- other general fixes to things a bit all over the place git-svn-id: file:///Users/jimeh/Desktop/dlist/trunk@12 a5845835-ea0f-0410-a762-dd0bfe9bfde8
This commit is contained in:
@@ -17,10 +17,10 @@ $config['default_scheme'] = 'http';
|
||||
|
||||
// process requested path
|
||||
if ( preg_match("/^(.*?)\?(.*)$/i", $_SERVER['REQUEST_URI'], $dir_url) ) {
|
||||
$query_string = $dir_url[2];
|
||||
# $query_string = $dir_url[2];
|
||||
$dir_url = urldecode($dir_url[1]);
|
||||
} else {
|
||||
$query_string = '';
|
||||
# $query_string = '';
|
||||
$dir_url = urldecode($_SERVER['REQUEST_URI']);
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ if ( !empty($redirect) ) {
|
||||
$scheme = parse_url($_SERVER['SCRIPT_URI']);
|
||||
$scheme = $scheme['scheme'];
|
||||
} else $scheme = $config['default_scheme'];
|
||||
if( !empty($query_string) ) $query_string = '?'.$query_string;
|
||||
if( !empty($_SERVER['QUERY_STRING']) ) $query_string = '?'.$_SERVER['QUERY_STRING'];
|
||||
header("Location: ".$scheme.'://'.$_SERVER['HTTP_HOST'].$dir_url.$redirect.$query_string);
|
||||
exit;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user