perhaps you have to remove commented lines @ config.lua? like..Error
i put the server directory - $DIR = 'C:/Users/GALLI/Desktop/X OTSERVER';
whats happen?
-- The Forgotten Server Config
-- Account manager
-- Unjustified kills
-- NOTE: *Banishment and *BlackSkull variables are >summed up<
-- (dailyFragsToRedSkull + dailyFragsToBanishment) with their
-- *RedSkull equivalents.
-- Auto banishing works only if useBlackSkull set to negative.
-- advancedFragList is not advised if you use huge frags
-- requirements.
geisor:the error are because i use Gensior acc =s
dont work?
<?php
###################################################
#/ \#
#* Advanced Server Info Page for Gesior AAC *#
#* Scripted by Cybermaster(CyberM, Cybershot) *#
#* © OTLand.NET *#
#\_______________________________________________/#
###################################################
//LOAD SERVER DIRECTORY, SET YOURS HERE
$DIR = 'C:/otserv/';
//LOAD FILES TO READ
if(is_dir($DIR)) {
$config = parse_ini_file($DIR.'/config.lua');
$client = simplexml_load_file($DIR.'/data/XML/servers.xml');
$stages = simplexml_load_file($DIR.'/data/XML/stages.xml');
//BAN FOR KILLING
$kill_length = explode('*', $config['killsBanLength']);
$kill_length = $kill_length[0].(count($kill_length) == 4 ? ' days' : ' hours');
$kill_daily = is_numeric($config['dailyFragsToBanishment']) ? $config['dailyFragsToBanishment'] : $config['dailyFragsToRedSkull'];
$kill_weekly = is_numeric($config['weeklyFragsToBanishment']) ? $config['weeklyFragsToBanishment'] : $config['weeklyFragsToRedSkull'];
$kill_monthly = is_numeric($config['monthlyFragsToBanishment']) ? $config['monthlyFragsToBanishment'] : $config['monthlyFragsToRedSkull'];
//SKULLS && FRAGS
#White Skull Time
$white_time = explode('*', $config['whiteSkullTime']);
$white_time = $white_time[0].(count($white_time) == 3 ? ' minutes' : ' seconds');
#Red Skull Length
$red_length = explode('*', $config['redSkullLength']);
$red_length = $red_length[0].(count($red_length) == 4 ? ' days' : ' hours');
#Black Skull Length
$black_length = explode('*', $config['blackSkullLength']);
$black_length = $black_length[0].(count($black_length) == 4 ? ' days' : ' hours');
#Black Skull Frags
$black_daily = is_numeric($config['dailyFragsToBlackSkull']) ? $config['dailyFragsToBlackSkull'] : $config['dailyFragsToRedSkull'];
$black_weekly = is_numeric($config['weeklyFragsToBlackSkull']) ? $config['weeklyFragsToBlackSkull'] : $config['weeklyFragsToRedSkull'];
$black_monthly = is_numeric($config['monthlyFragsToBlackSkull']) ? $config['monthlyFragsToBlackSkull'] : $config['monthlyFragsToRedSkull'];
//OTHER
$idle = explode('*', $config['idleKickTime']);
$pz_lock = explode('*', $config['pzLocked']);
$version = str_split($client->server['versionMax']);
$version = $version[0].'.'.$version[1].$version[2];
$main_content .= '<span class="servername"><center>'.$config['serverName'].'</center></span><br/>
<span class="title">General Information</span><br/>
<ul class="list">
<li><span class="subTitle">IP: </span>'.$_SERVER['HTTP_HOST'].'</li>
<li><span class="subTitle">Port: </span>'.$config['loginPort'].'</li>
<li><span class="subTitle">Client: </span>'.$version.'</li>
<li><span class="subTitle">World Type: </span><span class="cap">'.$config['worldType'].'</span></li>
<li><span class="subTitle">Message of the Day: </span>'.$config['motd'].'</li>
<li><span class="subTitle">Idle Kick time: </span>'.$idle[0].' minutes</li>
<li><span class="subTitle">PZ Lock time: </span>'.$pz_lock[0].' seconds</li>
<li><span class="subTitle">Protection Level: </span>'.$config['protectionLevel'].'</li>
</ul>
<span class="title">Rates</span>
<ul class="list">
<li><span class="subTitle">Skill: </span>'.floor($config['rateSkill']).'x</li>
<li><span class="subTitle">Magic: </span>'.floor($config['rateMagic']).'x</li>
<li><span class="subTitle">Loot: </span>'.floor($config['rateLoot']).'x</li>
</ul>
<span class="title">Frags</span>
<ul class="list">
<li><span class="subTitle">White Skull Time: </span>'.$white_time.'</li>
<br/><li><span class="subTitle">Red Skull:</span><br/><p style="text-indent:15px;"><span class="subTitle">Length:</span> '.$red_length.'
<span class="subTitle">Frags: </span><span class="bold">Daily: </span>'.$config['dailyFragsToRedSkull'].' | <span class="bold">Weekly: </span>'.$config['weeklyFragsToRedSkull'].' | <span class="bold">Monthly: </span>'.$config['monthlyFragsToRedSkull'].'</p></li>';
if ($config['useBlackSkull'])
$main_content .='<li><span class="subTitle">Black Skull:</span><br/><p style="text-indent:15px;"><span class="subTitle">Length: </span>'.$black_length.'
<span class="subTitle">Frags: </span><span class="bold">Daily: </span>'.$black_daily.' | <span class="bold">Weekly: </span>'.$black_weekly.' | <span class="bold">Monthly: </span>'.$black_monthly.'</li>';
$main_content .='<li><span class="subTitle">Ban for Killing:</span><br/><p style="text-indent:15px;"><span class="subTitle">Length: </span>'.$kill_length.'
<span class="subTitle">Frags: </span><span class="bold">Daily: </span>'.$kill_daily.' | <span class="bold">Weekly: </span>'.$kill_weekly.' | <span class="bold">Monthly: </span>'.$kill_monthly.'</li>
</ul>';
if ($config['experienceStages']) {
$main_content .='<span class="title">Experience Stages</span><ul class="list">';
foreach($stages->world->stage as $stage => $value)
$main_content .='<li><span class="subTitle">Level:</span> '.$value['minlevel'].($value['maxlevel'] != '' ? '-'.$value['maxlevel'] : '').' : <span class="bold">'.$value['multiplier'].'x</span><br/>';
}
}
else{exit('Error loading data. Directory address must be valid.');}?>
<style type="text/css">
.servername {
color: white;
font-family: Garamond;
font-size: 60px;
line-height: 60px;
text-shadow: black 0.1em 0.1em 0.2em
}
.bold {
font-weight: bold;
}
.cap {
text-transform: capitalize;
}
.list {
list-style-type:square;
}
.title {
font-family: Garamond;
font-size: large;
font-weight: bold;
}
.subTitle {
font-weight: bold;
list-style-type:square;
}
</style>
Pretty sure that's valid.Error loading data. Directory address must be valid.
Which is the address that you are typing?Didn't work for me,
using linux
Pretty sure that's valid.
<?php
###################################################
#/ \#
#* Advanced Server Info Page for Modern AAC *#
#* Scripted by Cybermaster(CyberM, Cybershot) *#
#* © OTLand.NET Home of TheForgottenServer *#
#\_______________________________________________/#
###################################################
if(!defined('BASEPATH')) exit('No direct script access allowed');
//LOAD SERVER DIRECTORY, SET YOURS HERE
$DIR = 'C:/server/';
//LOAD FILES TO READ
if(is_dir($DIR)) {
$config = parse_ini_file($DIR.'/config.lua');
$client = simplexml_load_file($DIR.'/data/XML/servers.xml');
$stages = simplexml_load_file($DIR.'/data/XML/stages.xml');
//BAN FOR KILLING
$kill_length = explode('*', $config['killsBanLength']);
$kill_length = $kill_length[0].(count($kill_length) == 4 ? ' days' : ' hours');
$kill_daily = is_numeric($config['dailyFragsToBanishment']) ? $config['dailyFragsToBanishment'] : $config['dailyFragsToRedSkull'];
$kill_weekly = is_numeric($config['weeklyFragsToBanishment']) ? $config['weeklyFragsToBanishment'] : $config['weeklyFragsToRedSkull'];
$kill_monthly = is_numeric($config['monthlyFragsToBanishment']) ? $config['monthlyFragsToBanishment'] : $config['monthlyFragsToRedSkull'];
//SKULLS && FRAGS
#White Skull Time
$white_time = explode('*', $config['whiteSkullTime']);
$white_time = $white_time[0].(count($white_time) == 3 ? ' minutes' : ' seconds');
#Red Skull Length
$red_length = explode('*', $config['redSkullLength']);
$red_length = $red_length[0].(count($red_length) == 4 ? ' days' : ' hours');
#Black Skull Length
$black_length = explode('*', $config['blackSkullLength']);
$black_length = $black_length[0].(count($black_length) == 4 ? ' days' : ' hours');
#Black Skull Frags
$black_daily = is_numeric($config['dailyFragsToBlackSkull']) ? $config['dailyFragsToBlackSkull'] : $config['dailyFragsToRedSkull'];
$black_weekly = is_numeric($config['weeklyFragsToBlackSkull']) ? $config['weeklyFragsToBlackSkull'] : $config['weeklyFragsToRedSkull'];
$black_monthly = is_numeric($config['monthlyFragsToBlackSkull']) ? $config['monthlyFragsToBlackSkull'] : $config['monthlyFragsToRedSkull'];
//OTHER
$idle = explode('*', $config['idleKickTime']);
$pz_lock = explode('*', $config['pzLocked']);
$version = str_split($client->server['versionMax']);
$version = $version[0].'.'.$version[1].$version[2];
echo "<div class='title'>Server Info - ".$config['serverName']."</div>";
echo '
<table class="tiny">
<th colspan="2">General Information</th>
<tr>
<td>IP:</td>
<td>'.$_SERVER['HTTP_HOST'].'</td>
</tr>
<tr>
<td>Port:</td>
<td>'.$config['loginPort'].'</td>
</tr>
<tr>
<td>Client:</td>
<td>'.$version.'</td>
</tr>
<tr>
<td>World Type:</td>
<td>'.$config['worldType'].'</td>
</tr>
<tr>
<td>Message of the Day:</td>
<td>'.$config['motd'].'</td>
</tr>
<tr>
<td>Idle Kick time:</td>
<td>'.$idle[0].' minutes</td>
</tr>
<tr>
<td>PZ Lock time:</td>
<td>'.$pz_lock[0].' seconds</td>
</tr>
<tr>
<td>Protection Level:</td>
<td>'.$config['protectionLevel'].' level</td>
</tr>
</table>
<table class="tiny">
<th colspan="2">Rates</th>
<tr>
<td>Skill:</td>
<td>'.floor($config['rateSkill']).'x</td>
</tr>
<tr>
<td>Magic:</td>
<td>'.floor($config['rateMagic']).'x</td>
</tr>
<tr>
<td>Loot:</td>
<td>'.floor($config['rateLoot']).'x</td>
</tr>
</table>
<table>
<th colspan="10">Frags</th>
<tr>
<td>White Skull:</td>
<td>Length:</td>
<td colspan="6">'.$white_time.'</td>
</tr>
<tr>
<td rowspan="2" valign="top">Red Skull:</td>
<td>Length:</td>
<td colspan="6">'.$red_length.'</td>
</tr>
<tr>
<td>Frags:</td>
<td>Daily:</td>
<td>'.$config['dailyFragsToRedSkull'].'</td>
<td>Weekly:</td>
<td>'.$config['weeklyFragsToRedSkull'].'</td>
<td>Monthly:</td>
<td>'.$config['monthlyFragsToRedSkull'].'</td>
</tr>';
if ($config['useBlackSkull']) {
echo'
<tr>
<td rowspan="2" valign="top">Black Skull:</td>
<td>Length:</td>
<td colspan="6">'.$black_length.'</td>
</tr>
<tr>
<td>Frags:</td>
<td>Daily:</td>
<td>'.$black_daily.'</td>
<td>Weekly:</td>
<td>'.$black_weekly.'</td>
<td>Monthly:</td>
<td>'.$black_monthly.'</td>
</tr>'; }
echo'
<tr>
<td rowspan="2" valign="top">Ban for killing:</td>
<td>Length:</td>
<td colspan="6">'.$kill_length.'</td>
</tr>
<tr>
<td>Frags:</td>
<td>Daily:</td>
<td>'.$kill_daily.'</td>
<td>Weekly:</td>
<td>'.$kill_weekly.'</td>
<td>Monthly:</td>
<td>'.$kill_monthly.'</td>
</tr>
</table>
';
if ($config['experienceStages']) {
echo'
<table class="tiny">
<th colspan="2">Experience Stages</th>';
foreach($stages->world->stage as $stage => $value)
echo '
<tr>
<td>Level:</td>
<td>'.$value['minlevel'].($value['maxlevel'] != '' ? '-'.$value['maxlevel'] : '').' : <span class="bold">'.$value['multiplier'].'x</td>
</tr>';
echo '
</table>
';
}
}
else{alert('Error loading data. Directory address must be valid.');}?>
<style type="text/css">
table {
width: 90%;
margin: 0 auto;
margin-bottom: 20px;
border: 1px solid #282828;
border-spacing: 1px;
}
th {
line-height: 20px;
padding: 2px 2px 2px 5px;
}
tr {
background: #202020;
}
td {
padding: 2px 2px 2px 4px;
border: 1px solid #282828;
}
table.tiny td {
width: 50%;
}
</style>
//LOAD SERVER DIRECTORY, SET YOURS HERE
$config['site']['server_path'] = "/home/YOURSERVER";