Dylanaw
Godly Member
- Joined
- Feb 18, 2009
- Messages
- 473
- Reaction score
- 10
Heey there.
I got a problem.
I'm trying to make a Command page for my website (I'm using ModernAAC).
This is the script that i'm using:
The problem is whenever i try to add 1 more line right under (( '!hunt' => 'Spend some cash with a nice amount for a frag.' ))
and this is the line that i add: '!serverinfo' => 'Shows all information about the server.'
And when i save it, and i reload the page it just gives a white page. And when i remove that line it's working..
So whenever i add 1 more line = white page, 3 lines = working, 4 not.
Any idea's?
Or if u found a better command page could u post it?
Thanks in Advance.
-Dylanaw
- - - Updated - - -
Nevermind i looked again, i missed a " , "
Sorry for making this thread.
this can be closed.
I got a problem.
I'm trying to make a Command page for my website (I'm using ModernAAC).
This is the script that i'm using:
LUA:
<?php
require("config.php");
$ots = POT::getInstance();
$ots->connect(POT::DB_MYSQL, connection());
$SQL = $ots->getDBHandle();
$config['site']['vdarkborder']='';
$config['site']['darkborder']='';
$config['site']['lightborder']='';
$config['site']['commands_width'] = '15'; // from 0% to 100% (recommended: 15)
$config['site']['commands'] = array(
'!save' => 'Save your character so you avoid items or level loss.',
'!buypremium' => 'Buy 30 days of premium time.',
'!hunt' => 'Spend some cash with a nice amount for a frag.'
); // 'command' => 'description',
echo '<table border="0" cellspacing="1" cellpadding="4" width="100%">
<tr bgcolor='.$config['site']['vdarkborder'].'>
<td colspan="2"><b>Commands</b></td>
</td align="right"></td></tr>';
$number_of_commands = 0;
$commands = $config['site']['commands'];
foreach ($commands as $command => $use) {
if(is_int($number_of_commands / 2))
$bgcolor = $config['site']['darkborder'];
else
$bgcolor = $config['site']['lightborder'];
$number_of_commands++;
echo '<tr bgcolor="'.$bgcolor.'"><td width="'.$config['site']['commands_width'].'%">'.$command.'</td><td>'.$use.'</td></tr>';
}
echo '</table>';
?>
The problem is whenever i try to add 1 more line right under (( '!hunt' => 'Spend some cash with a nice amount for a frag.' ))
and this is the line that i add: '!serverinfo' => 'Shows all information about the server.'
And when i save it, and i reload the page it just gives a white page. And when i remove that line it's working..
So whenever i add 1 more line = white page, 3 lines = working, 4 not.
Any idea's?
Or if u found a better command page could u post it?
Thanks in Advance.
-Dylanaw
- - - Updated - - -
Nevermind i looked again, i missed a " , "
Sorry for making this thread.
this can be closed.