diff options
Diffstat (limited to 'index.php')
| -rwxr-xr-x | index.php | 18 |
1 files changed, 10 insertions, 8 deletions
| diff --git a/index.php b/index.php index 77b4944..d110743 100755 --- a/index.php +++ b/index.php | |||
| @@ -25,7 +25,7 @@ if (preg_match('|MSIE ([0-9].[0-9]{1,2})|', $_SERVER['HTTP_USER_AGENT'], $matche | |||
| 25 | header('Content-type: text/html'); | 25 | header('Content-type: text/html'); |
| 26 | $usingIE = true; | 26 | $usingIE = true; |
| 27 | } else { | 27 | } else { |
| 28 | header('Content-type: application/xhtml+xml'); | 28 | // header('Content-type: application/xhtml+xml'); |
| 29 | } | 29 | } |
| 30 | 30 | ||
| 31 | header('X-Pingback: http://fourisland.com/xmlrpc.php'); | 31 | header('X-Pingback: http://fourisland.com/xmlrpc.php'); |
| @@ -40,7 +40,13 @@ include('includes/xmlrpc/xmlrpc.inc'); | |||
| 40 | include('includes/specialdates.php'); | 40 | include('includes/specialdates.php'); |
| 41 | include('includes/functions.php'); | 41 | include('includes/functions.php'); |
| 42 | include('includes/hits.php'); | 42 | include('includes/hits.php'); |
| 43 | include('includes/updatePending.php'); | 43 | include('includes/updatePending.php'); |
| 44 | |||
| 45 | if (strpos($_SERVER['REQUEST_URI'],'index.php')) | ||
| 46 | { | ||
| 47 | header('Location: ' . getRewriteURL()); | ||
| 48 | exit; | ||
| 49 | } | ||
| 44 | 50 | ||
| 45 | ob_start(); | 51 | ob_start(); |
| 46 | 52 | ||
| @@ -53,13 +59,9 @@ if (file_exists('pages/' . $pageName . '.php')) | |||
| 53 | generateError('404'); | 59 | generateError('404'); |
| 54 | } | 60 | } |
| 55 | 61 | ||
| 56 | $doc = ob_get_contents(); | 62 | $content = ob_get_contents(); |
| 57 | ob_end_clean(); | 63 | ob_end_clean(); |
| 58 | 64 | ||
| 59 | $doc = stripslashes($doc); | 65 | include('includes/layout.php'); |
| 60 | |||
| 61 | include('includes/header.php'); | ||
| 62 | echo($doc); | ||
| 63 | include('includes/footer.php'); | ||
| 64 | 66 | ||
| 65 | ?> | 67 | ?> |
