Zeile 6 | Zeile 6 |
---|
* Website: http://mybb.com * License: http://mybb.com/about/license *
|
* Website: http://mybb.com * License: http://mybb.com/about/license *
|
* $Id: global.php 5365 2011-02-16 21:59:02Z MattR $
| * $Id$
|
*/
// If archive mode does not work, uncomment the line below and try again
| */
// If archive mode does not work, uncomment the line below and try again
|
Zeile 41 | Zeile 41 |
---|
}
// If the server OS is not Windows and not Apache or the PHP is running as a CGI or we have defined ARCHIVE_QUERY_STRINGS, use query strings - DIRECTORY_SEPARATOR checks if running windows
|
}
// If the server OS is not Windows and not Apache or the PHP is running as a CGI or we have defined ARCHIVE_QUERY_STRINGS, use query strings - DIRECTORY_SEPARATOR checks if running windows
|
if((DIRECTORY_SEPARATOR == '\\' && stripos($_SERVER['SERVER_SOFTWARE'], 'apache') == false) || stripos(SAPI_NAME, 'cgi') !== false || defined("ARCHIVE_QUERY_STRINGS")) { $url = $_SERVER['QUERY_STRING']; $base_url = $mybb->settings['bburl']."/archive/index.php?"; $endpart = $url; } // Otherwise, we're using 100% friendly URLs else
| // if((DIRECTORY_SEPARATOR == '\\' && stripos($_SERVER['SERVER_SOFTWARE'], 'apache') == false) || strstr(php_sapi_name(),'cgi') || defined("ARCHIVE_QUERY_STRINGS")) // http://dev.mybb.com/issues/1489 - remove automatic detection and rely on users to set the right option here if($mybb->settings['seourls_archive'] == 1)
|
{ if($_SERVER['REQUEST_URI']) { $url = $_SERVER['REQUEST_URI']; } elseif($_SERVER['REDIRECT_URL'])
|
{ if($_SERVER['REQUEST_URI']) { $url = $_SERVER['REQUEST_URI']; } elseif($_SERVER['REDIRECT_URL'])
|
{
| {
|
$url = $_SERVER['REDIRECT_URL']; } elseif($_SERVER['PATH_INFO']) { $url = $_SERVER['PATH_INFO'];
|
$url = $_SERVER['REDIRECT_URL']; } elseif($_SERVER['PATH_INFO']) { $url = $_SERVER['PATH_INFO'];
|
}
| }
|
else { $url = $_SERVER['PHP_SELF']; } $base_url = $mybb->settings['bburl']."/archive/index.php/"; $endpart = my_substr(strrchr($url, "/"), 1);
|
else { $url = $_SERVER['PHP_SELF']; } $base_url = $mybb->settings['bburl']."/archive/index.php/"; $endpart = my_substr(strrchr($url, "/"), 1);
|
| } else { $url = $_SERVER['QUERY_STRING']; $base_url = $mybb->settings['bburl']."/archive/index.php?"; $endpart = $url;
|
}
$action = "index";
| }
$action = "index";
|