Archived
1
0

Add Status: 302 header for redirects, have fun, nitrox. :)

This commit is contained in:
Garvin Hicking
2008-08-27 19:20:23 +00:00
parent 80534cb91a
commit 9bfe2cec62
6 changed files with 11 additions and 0 deletions

View File

@@ -174,6 +174,7 @@ $serendipity['charsets'] = array(
* Kill the script if we are not installed, and not inside the installer
*/
if ( !defined('IN_installer') && IS_installed === false ) {
header('Status: 302 Found');
header('Location: ' . (strtolower($_SERVER['HTTPS']) == 'on' ? 'https://' : 'http://') . $_SERVER['HTTP_HOST'] . str_replace('\\', '/', dirname($_SERVER['PHP_SELF'])) . '/serendipity_admin.php');
serendipity_die(sprintf(SERENDIPITY_NOT_INSTALLED, 'serendipity_admin.php'));
}