googlexd
New Member
- Joined
- Mar 24, 2009
- Messages
- 42
- Reaction score
- 0
Greetings all OTlanders, I would like to get some help
I got some problems on my Gesior AAC 0.3.6.
I'am getting blank pages if I try to press any threads on my forum.
It has not show any errors or anything.
Perhaps It could be any wrong in my index.php?
INDEX.PHP
Picture of the blank page:
Thanks.
PROBLEM
I got some problems on my Gesior AAC 0.3.6.
I'am getting blank pages if I try to press any threads on my forum.
It has not show any errors or anything.
Perhaps It could be any wrong in my index.php?
INDEX.PHP
PHP:
<?PHP
error_reporting( E_ALL );
ini_set( 'display_errors', 0 );
//start :)
session_start();
ob_start("ob_gzhandler");
//require('./exaBD.php');
function microtime_float()
{
list($usec, $sec) = explode(" ", microtime());
return ((float)$usec + (float)$sec);
}
$time_start = microtime_float();
//##### CONFIG #####
include('config-and-functions.php');
$action = $_REQUEST['action'];
//#### MUSIC PLAYER ####
include('music.php');
//##### LOGOUT #####
if($action == "logout")
{
unset($_SESSION['account']);
unset($_SESSION['password']);
}
//##### LOGIN #####
//check is player logged
$logged = FALSE;
if(isset($_SESSION['account']))
{
$account_logged = $ots->createObject('Account');
$account_logged->load($_SESSION['account']);
if($account_logged->isLoaded() && $account_logged->getPassword() == $_SESSION['password'])
{
$logged = TRUE;
$group_id_of_acc_logged = $account_logged->getPageAccess();
}
else
{
$logged = FALSE;
unset($_SESSION['account']);
unset($account_logged);
}
}
$login_account = strtoupper(trim($_POST['account_login']));
$login_password = trim($_POST['password_login']);
if(!$logged && !empty($login_account) && !empty($login_password))
{
$login_password = password_ency($login_password);
$account_logged = $ots->createObject('Account');
$account_logged->find($login_account);
if($account_logged->isLoaded())
{
if($login_password == $account_logged->getPassword())
{
$_SESSION['account'] = $account_logged->getId();
$_SESSION['password'] = $login_password;
$logged = TRUE;
$account_logged->setCustomField("page_lastday", time());
$group_id_of_acc_logged = $account_logged->getPageAccess();
}
else
$logged = FALSE;
}
}
//#### LOAD PAGE ##########
//load subtopic page
if(empty($_REQUEST['subtopic']))
{
$_REQUEST['subtopic'] = "latestnews";
$subtopic = "latestnews";
}
switch($_REQUEST['subtopic'])
{
case "latestnews":
$topic = "Latest News";
$subtopic = "latestnews";
include("latestnews.php");
break;
case "lottery";
$subtopic = "lottery";
$topic = "Lottery";
include("lottery.php");
break;
case "scrollnews";
$topic = "Scroll News";
$subtopic = "scrollnews";
include("scrollnews.php");
break;
case "archive";
$subtopic = "archive";
$topic = "News Archives";
include("archive.php");
break;
case "donationterms";
$subtopic = "donationterms";
$topic = "Donation Terms";
include("donationterms.php");
break;
case "addons":
$topic = "Addons";
$subtopic = "addons";
include("addons.php");
break;
case "commands";
$subtopic = "commands";
$topic = "Commands";
include("commands.php");
break;
case "creatures";
$topic = "Creatures";
$subtopic = "creatures";
include("creatures.php");
break;
case "spells";
$topic = "Spells";
$subtopic = "spells";
include("spells.php");
break;
case "admin";
$subtopic = "Admin";
$topic = "The Panel";
include("adminpro.php");
break;
case "serverinfo";
$subtopic = "serverinfo";
$topic = "Server Info";
include("serverinfo.php");
break;
case "raid";
$subtopic = "raid";
$topic = "Raid";
include("raid.php");
break;
case "serverinfo";
$subtopic = "serverinfo";
$topic = "Server Info";
include("serverinfo.php");
break;
case "experiencetable";
$topic = "Experience Table";
$subtopic = "experiencetable";
include("experiencetable.php");
break;
case "characters";
$topic = "Characters";
$subtopic = "characters";
include("characters.php");
break;
case "whoisonline";
$topic = "Who is online?";
$subtopic = "whoisonline";
include("whoisonline.php");
break;
case "highscores";
$topic = "Highscores";
$subtopic = "highscores";
include("highscores.php");
break;
case "killstatistics";
$topic = "Last Kills";
$subtopic = "killstatistics";
include("killstatistics.php");
break;
case "bans":
$topic = "Banishments";
$subtopic = "bans";
include("bans.php");
break;
case "houses";
$topic = "Houses";
$subtopic = "houses";
include("houses.php");
break;
case "guilds";
$topic = "Guilds";
$subtopic = "guilds";
include("guilds.php");
break;
case "forum":
$topic = "Forum";
$subtopic = "forum";
include("forum.php");
break;
case "accountmanagement";
$topic = "Account Management";
$subtopic = "accountmanagement";
include("accountmanagement.php");
break;
case "createaccount";
$topic = "Create Account";
$subtopic = "createaccount";
include("createaccount.php");
break;
case "lostaccount";
$topic = "Lost Account Interface";
$subtopic = "lostaccount";
include("lostaccount.php");
break;
case "downloads";
$subtopic = "downloads";
$topic = "Downloads";
include("downloads.php");
break;
case "tibiarules";
$topic = "Server Rules";
$subtopic = "tibiarules";
include("tibiarules.php");
break;
case "tracker";
$subtopic = "tracker";
$topic = "Tracker";
include("tracker.php");
break;
case "changelog";
$subtopic = "changelog";
$topic = "Change Log";
include("changelog.php");
break;
case "team";
$subtopic = "team";
$topic = "Gamemasters List";
include("team.php");
break;
case "adminpanel":
$topic = "Admin Panel";
$subtopic = "adminpanel";
include("adminpanel.php");
break;
case "namelock";
$subtopic = "namelock";
$topic = "Namelock Manager";
include("namelocks.php");
break;
case "buypoints";
$subtopic = "buypoints";
$topic = "Buy Points";
include("buypoints.php");
break;
case "shopsystem";
$subtopic = "shopsystem";
$topic = "Shop System";
include("shopsystem.php");
break;
case "wars":
$topic = "War Mode";
$subtopic = "wars";
include("wars.php");
break;
case "frags":
$topic = "The Best Fraggers";
$subtopic = "frags";
include("frags.php");
break;
case "shopadmin";
$subtopic = "shopadmin";
$topic = "Shop Admin";
include("shopadmin.php");
break;
case "test";
$topic = "test";
$subtopic = "test";
include("test.php");
break;
case "bugtracker";
$topic = "Bug Tracker";
$subtopic = "bugtracker";
include("bug.php");
break;
case "board";
$subtopic = "board";
$topic = "Forums Board";
include("forum/board.php");
break;
case "thread";
$subtopic = "thread";
$topic = "Forums Board";
include("forum/thread.php");
break;
}
// ##### generate title of page
if(empty($topic))
{
$title = $GLOBALS['config']['server']["serverName"]." - OTS";
$main_content .= 'Invalid subtopic. Can\'t load page.';
}
else
{
$title = $GLOBALS['config']['server']["serverName"]." - ".$topic;
}
// ##### LAYOUT
$layout_header = '<script type=\'text/javascript\'>
function GetXmlHttpObject()
{
var xmlHttp=null;
try
{
xmlHttp=new XMLHttpRequest();
}
catch (e)
{
try
{
xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
}
catch (e)
{
xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
}
}
return xmlHttp;
}
function MouseOverBigButton(source)
{
source.firstChild.style.visibility = "visible";
}
function MouseOutBigButton(source)
{
source.firstChild.style.visibility = "hidden";
}
function BigButtonAction(path)
{
window.location = path;
}
var';
if($logged)
{
$layout_header .= "loginStatus=1; loginStatus='true';";
}
else
{
$layout_header .= "loginStatus=0; loginStatus='false';";
}
$layout_header .= " var activeSubmenuItem='".$subtopic."';</script>";
include($layout_name."/layout.php");
ob_end_flush();
?>
Picture of the blank page:
Thanks.
Last edited: