• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Question

smoker

New Member
Joined
Jun 16, 2009
Messages
2
Reaction score
0
Last edited:
k i change my loyaut. I have a problem with 1 thing can someone tell me what is a problem i have tibia 7.6 acc maker. About status online i have that code and status is online its work perfektly but for 10 seconds when i put him back there that code gone:/ and server is off in site.

PHP:
<?xml version="1.0"?>
<tsqp version="1.0"><serverinfo uptime="14567" ip="auto" servername="TibiaFun" port="7171" location="Poland" url="tibiafun.ath.cx" server="Tibiafun" version="- TibiaFun Ryuk Edition"/><owner name="Team Survival" email="[email protected]"/><players online="11" max="100" peak="24" waiting="0"/><monsters total="9728"/><map name="" author="" width="" height=""/><motd>Welcome to TibiaFun!</motd></tsqp>

and 1 more code for online in site

PHP:
<!--status-->
		<div id="right">
			<div class="topr">.:Status:.</div>
			<div class="midr">

<?php

      			if (time() - filemtime("onlinewar.php") >= 60) 
				{ 
				   $handle = fopen ("onlinewar.php","w"); 
				   $info = getinfo('tibiafun.ath.cx','7171'); 
				   fwrite($handle,$info); 
				   fclose($handle); 
				} 
				else 
				{
				  $info = file_get_contents("onlinewar.php");
				}
  
				if (!empty($info)) 
				{
					$infoXML = simplexml_load_string($info);
					$up = (int)$infoXML->serverinfo['uptime'];
					$online = (int)$infoXML->players['online'];
					$max = (int)$infoXML->players['max'];
					$totalwar = $online;
					$h = floor($up/3600);
					$up = $up - $h*3600;
					$m = floor($up/60);
					$up = $up - $m*60;
					if ($h < 10) {$h = "0".$h;}
					if ($m < 10) {$m = "0".$m;}
	
?>

				<div id="War Server"> <a style="cursor: pointer;" onclick="guildClick(this)">
										<font color=#00FF00>TibiaFun</font></a>
          			<fieldset style="font-size: 90%; padding: 0; display: none;">
           				<table>
            				<tr>
            					<td style="width: 300px">
								
<? 

					echo "<span class=\"players\">Players: <b>$online/$max</b></span><br/>\n";

?>

	 							</td>
            				</tr>

Can someone check?
 
Back
Top