The code below is the main index page of my website. It's working perfectly fine on my test server--redirecting me to the login page if I'm not logged in, or if any session is not set. However, I uploaded it to my live server--it's working fine there as well, until I change the url from index.php?X=0&Y=0 to index.php. At which point it only shows a the background and nothing else.
Everything was working fine on both ends until earlier today when I reuploaded everything to my server, but none of the code has changed so nothing should be different, but it is. So, I wondering if you guys see anything that could be causing it.
There are no errors, the page just doesn't load properly.
<?php //* Something Wicked This Way Comes *//
require_once("lib/bootstrap.php");
$html = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'.
'<html xmlns="http://www.w3.org/1999/xhtml">'.
'<head>'.
'<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />'.
'<meta name="description" content="Control the Universe!"/>'.
'<meta name="keywords" content="game,web based, reddact, arg, story, gmz1023,elements" />'.
'<title>Reddact</title>'.
'<link rel="stylesheet" href="assets/style.css" />'.
'<link rel="stylesheet" type="text/css" href="assets/css/tooltipster.css" />'.
'<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>'.
'<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>'.
'<script src="js/jquery.tooltipster.min.js" type="text/javascript"></script>'.
'<script src="js/TimeCircles.js" type="text/javascript"></script>'.
'<script src="js/jquery.validate.min.js"></script>'.
'<script src="js/js.js" type="text/javascript"></script>'.
'<link href="favicon.ico" rel="icon" type="image/x-icon" />'.
'<link rel="stylesheet" href="js/TimeCircles.css" />'.
'</head>'.
'<body>';
echo $html;
if(!isset($_SESSION))
{
include('parts/login-page.php');
}
if(!isset($_SESSION['uid']))
{
if(!isset($_GET['error']))
{
include('parts/login-page.php');
}
else
{
include('parts/login-page.php');
}
}
if(isset($_SESSION['uid']))
{
if(isset($_GET['mode']))
{
$file = 'parts/active/'.$_GET['mode'].'.php';
if(file_exists($file))
{
include($file);
}
else
{
include('404.html');
}
}
else
{
if(!isset($_GET['X']) && !isset($_GET['Y']))
{
header('Location:'.$_SESSION['index']);
}
else
{
if(isset($_GET['portal']))
{
include('first_time.php');
}
else
{
include('starmap.php');
include('nav-menu.php');
}
}
?>
</div>
</body>
</html>
<?php
}
}
?>