My website and my server are online and the website says that my channel 1-1 server is offline
https://prnt.sc/12w4yps
xinc_functions.php
andCode: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>'; } } }
xinc_configCode: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 />'; } }
and AccountServer.iniCode:$_CONFIG['allg_svr_channel'] = array( 1 => array( 'Channel 1-1', 5400 ), );
Code:AddTail( -1, 1, "Flyff", "192.168.15.108", 0, 1, 1000 ); AddTail( 1, 1, "Canal 1", "192.168.15.108", 1, 1, 1000 );






