My website and my server are online and the website says that my channel 1-1 server is offline
xinc_functions.php
and
xinc_config
and AccountServer.ini
You must be registered to see links
xinc_functions.php
Code:
function getUserOnlineState($channel, $id = 0) {
global $_CONFIG;
if($id == 0) {
if ($channel > 0) {
return '<img src="https://forum.ragezone.com/images/icons/misc/up.png" width="7" alt="" data-toggle="tooltip" data-placement="bottom" title="Online: ' . $_CONFIG['allg_svr_channel'][$channel][0] . ' [1-' . $channel . ']"/>';
}
else {
return '<img src="https://forum.ragezone.com/images/icons/misc/down.png" width="7" alt="" data-toggle="tooltip" data-placement="bottom" title="Offline"/>';
}
}
elseif($id == 1) {
if ($channel > 0) {
return '<span class="green">Online</span>';
}
else {
return '<span class="red">Offline</span>';
}
}
}
Code:
function checkServerState($port, $ip = '127.0.0.1') {
if(@fsockopen($ip, $port, $errno, $errstr, 0.15) >= 0.15) {return '<span class="green">Online</span>';}
else {return '<span class="red">Offline</span>';}
}
function zeilenumbruch($totalElements, $elementsPerRow) {
if($totalElements / $elementsPerRow == round($totalElements / $elementsPerRow)) {
echo '<br />';
}
}
Code:
$_CONFIG['allg_svr_channel'] = array(
1 => array(
'Channel 1-1', 5400
),
);
and AccountServer.ini
Code:
AddTail( -1, 1, "Flyff", "192.168.15.108", 0, 1, 1000 );
AddTail( 1, 1, "Canal 1", "192.168.15.108", 1, 1, 1000 );
Last edited: