Hi ive got a big problem with the modern guilds system, since a few months and i really dont know how to fix it. When players try to leave a guild, when they press the "leave" button, they get a blank page. I get the same error when i try to use this War Of Emperium (by Jano) script:
see the error here --> http://tw.game-over.cl//index.php/p/v/woem
I tried to add it with modern admin panel and manually, but i still get a blank page... i also tried to change the file permissions, but it didnt help.
any idea?? i really need to fix this to start my ots again!
THANKS!
Code:
<?PHP
require("config.php");
$ots = POT::getInstance();
$ots->connect(POT::DB_MYSQL, connection());
$SQL = $ots->getDBHandle();
$woe = $SQL->query("
SELECT w.id AS id, w.time AS time, g.name AS guild, p.name AS name, w.started AS start, w.guild AS guild_id
FROM woe AS w
INNER JOIN players AS p
ON p.id = w.breaker
INNER JOIN guilds AS g
ON g.id = w.guild
ORDER BY id DESC LIMIT 10;
");
$winners = '';
foreach ($woe as $k=>$v) {
$winners .="
<TR BGCOLOR=".($k % 2 == 1 ? '#993333' : '#336633').">
<TD>{$v['id']}</TD>
<TD><a href='index.php?subtopic=guilds&action=show&guild=" . $v['guild'] . "'>$v[guild]</a></TD>
<TD>{$v['name']}</TD>
<TD>" . date("d/m/y H:i:s", $v['start']) . "</TD>
<TD>" . date("d/m/y H:i:s", $v['time']) . "</TD>
</TR>
";
}
echo '
';
if($winners == '') {
echo '
<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%>
<TR BGCOLOR="#red">
<TD CLASS=white>
<B>Winners of WoE</B>
</TD>
</TR>
<TR BGCOLOR="#black">
<TD>
There are no WoEs in '.$config['server']['serverName'].' yet.
</TD>
</TR>
</TABLE>
';
} else {
echo "
<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%>
<TR BGCOLOR='#3366CC'>
<TD CLASS=white width=5%>
<B>No.</B>
</TD>
<TD CLASS=white width=30%>
<B>Winner guild</B>
</TD>
<TD CLASS=white width=25%>
<B>Conquest by</B>
</TD>
<TD CLASS=white width=20%>
<B>Start time</B>
</TD>
<TD CLASS=white width=20%>
<B>Last conquest</B>
</TD>
</TR>
$winners
</TABLE>
";
}
?>
see the error here --> http://tw.game-over.cl//index.php/p/v/woem
I tried to add it with modern admin panel and manually, but i still get a blank page... i also tried to change the file permissions, but it didnt help.
any idea?? i really need to fix this to start my ots again!
THANKS!