Parašė ausska· 2009 Bal. 8 10:04:20
#1
Sveiki as ne kazinka moku dirbti su
php-fusion nu tai mazu kas galit padaryti panele kuri stovetu pasisveikinimo vietoje
<?php
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Srvers list for Fast info server (Fis)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
require_once "maincore.php";
require_once "subheader.php";
require_once "side_left.php";
require_once INFUSIONS."fis/includes/main.inc.php";
include $skin."/server_list.php";
if (!isset($server)) $server = "";
if ($server) {
$sql = dbquery("SELECT * FROM ".$db_prefix."fis_servers WHERE server_id='$server'");
if (dbrows($sql) != 0) {
$data = dbarray($sql);
$server_info = array();$full_info = "";$players_list = "";
info_server($data['server_type'],$data['server_ip'],$data['server_port'],"full");
opentable("<center>".$data['server_name']."</center>");
if ($server_status == "ON") {
echo $full_info.$players_list;
} else {
echo "<center>".$locale['fis_pnl00']."</center>";
}
closetable();
} else {
redirect(FUSION_SELF);
}
} else {
opentable("<center>".$locale['fis00']."</center>");
$sql = dbquery("SELECT * FROM ".$db_prefix."fis_servers WHERE (server_type='cs'||server_type='q3') ORDER BY server_order ASC");
echo $header;
$servers_list = "";
if (dbrows($sql) != 0) {
while($data = dbarray($sql)) {
$image = $fis_dir."images/".$data['server_type'].".gif";
$ip = $data['server_ip'];
$port = $data['server_port'];
$type = $data['server_type'];
$server_info = array();
info_server($type,$ip,$port);
if ($server_status == "ON") {
$server_db_name = "<a href='".FUSION_SELF."?server=".$data['server_id']."' title='".$locale['fis08']."'>".$data['server_name']."</a>";
}else{
$server_db_name = $data['server_name'];
}
include($skin."server_list.php");
$servers_list .= $servers;
}
echo $servers_list;
} else {
echo $no_servers;
}
echo $footer;
closetable();
echo "<br><div align='center'><span class='small2' style='color: #3c3c3c'>FIS © 2008<br>By iFX_RuBiTwa</span></div>"; // Dont removed plz =)))
}
require_once "side_right.php";
require_once "footer.php";
?>