Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Kaip tai padaryt niekaip neiseina

Parašė nos32· 2009 Kov. 3 19:03:52
#8

nieko nesigauna :/:(

Stai visas PHP failas

<?php

#Login Server
$serverLip="*";
$serverLport="2106";

#GameServer
$serverGip="*";
$serverGPort="7777";

#Database Host
$databaseHost="**";
$databaseLogin="*";
$databasePassword="*";
$databaseName="*";


?>

<?php

#Login
$flogin = @fsockopen ($serverLip,$serverLport, $errno, $errstr, 1);
if ( $flogin )
    $lstat = "<font color=#00FF00>ONLINE</font>";
else
    $lstat = "<font color=#FF0000>OFFLINE</font>";
 

#Sieghardt
$fgame2 = @fsockopen ($serverGip,$serverGPort, $errno, $errstr, 1);
if ( $fgame2 )
    $gstat2 = "<font color=#00FF00>ONLINE</font>";
else
    $gstat2 = "<font color=#FF0000>OFFLINE</font>";


mysql_connect($databaseHost,$databaseLogin,$databasePassword) or die (mysql_error());

mysql_select_db($databaseName) or die(mysql_error()); 

//online kari
$query = ("SELECT * FROM characters WHERE online=1 and accesslevel=0");

$result = mysql_query($query) or die(mysql_error());

$num2=mysql_numrows($result);


//Alliance
$query = ("SELECT * FROM clan_data WHERE ally_name!=\"\"");

$result = mysql_query($query) or die(mysql_error());

$alliance2=mysql_numrows($result);

//all characters

$query = ("SELECT * FROM characters WHERE accesslevel>=0");

$result = mysql_query($query) or die(mysql_error());

$char2=mysql_numrows($result);

//all accounts

$query = ("SELECT * FROM accounts WHERE access_level>=0");

$result = mysql_query($query) or die(mysql_error());

$accounts2=mysql_numrows($result);

//Clan

   
$get_config_data="SELECT clan_id FROM clan_data";

$query = ("SELECT clan_id FROM clan_data WHERE clan_id>0");

$result = mysql_query($query) or die(mysql_error());

$clan2=mysql_numrows($result);

?>

<html>
<head>
<title>MEDNet Lineage II - Kamael Szerver</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
</head>
<body>
<font color=#000000><span class="style3">Login:</span></font> <?php print ("$lstat"); ?><br>
<font color=#000000><span class="style3">Game:</span></font> <?php print ("$gstat2"); ?><br>
<font color=#000000><span class="style3">Zaidejai Online:</span></font> <font color=#ff0000><?php print ("$num2"); ?></font><br>
<font color=#000000><span class="style3">Isviso Account'u:</span></font> <font color=#ff0000><?php print ("$accounts2"); ?></font><br>
<font color=#000000><span class="style3">Isviso Character'iu:</span></font> <font color=#ff0000><?php print ("$char2"); ?></font><br>
<font color=#000000><span class="style3">Clan'u:</span></font> <font color=#ff0000><?php print ("$clan2"); ?></font><br>
<font color=#000000><span class="style3">Alliancu:</span></font> <font color=#ff0000><?php print ("$alliance2"); ?></font><br>
</html>



Redagavo nos32· 2009 Kov. 3 20:03:21