Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: LGSL
Parašė samsung123· 2008 Vas. 1 20:02:14
#1
Sveiki visi,su savaitgaliu,tai va iškilo viena bėda nemoku idėti headeri į Serverių sąrašą(LGSL) gal kas gali padėt?pažymekit kokia spalva kur keisti linką,ačiu
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.1//EN' 'http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
<title>Hs-ZoNe serveriu sarasas</title>
<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1' />
<meta http-equiv='content-style-type' content='text/css' />
<link rel="stylesheet" href="lgsl_style.css" type="text/css" />
</head>
<img src='images/naujasheader.jpg' style='margin:5px;' bligna='left'>
<body>
<div style='height:30px'><br /></div>
<?php
/*_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
\_| |_/
\_| LIVE GAME SERVER LIST [ STAND ALONE ] |_/
\_| |_/
\_| © Richard Perry from http://www.greycube.com |_/
\_| |_/
\_| Released under the terms and conditions of the |_/
\_| GNU General Public License Version 2 (http://gnu.org) |_/
\_| |_/
\_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_*/
//-----------------------------------------------------------------------------------------------------------+
$lgsl_cache_time = 1; // REFRESH DELAY IN MINS - AS GUIDE ADD 1 AFTER EVERY 30 SERVERS ON THE LIST
$lgsl_hostname_shorten = 1; // OPTIONS ARE 0 = DISABLED or 1 = KEEP LEFT PART or 2 = KEEP RIGHT PART
$lgsl_hostname_length = 40; // NUMBER OF CHARACTERS ALLOWED BEFORE SERVER NAME GETS SHORTENED
$lgsl_hide_offline = 0; // CHANGE THIS TO 1 IF YOU DONT WANT TO SHOW OFFLINE SERVERS
$lgsl_hostname_to_ip = 0; // CONVERT HOSTNAMES TO IP ADDRESS TO SAVE SPACE AND FOR ASE LINK TO WORK
$lgsl_path = ""; // RELATIVE PATH BETWEEN THIS FILE AND THE LGSL FOLDER FOR PAGE INTEGRATION
//-----------------------------------------------------------------------------------------------------------+
require_once($lgsl_path."lgsl_protocol.php");
if (!is_writable($lgsl_path."lgsl_cache.dat")) { echo "THE FILE LGSL_CACHE.DAT IS NOT WRITABLE"; exit; }
//-----------------------------------------------------------------------------------------------------------+
$lines = file($lgsl_path."lgsl_cache.dat");
$last_line = count($lines) - 1;
$last_update = intval($lines[$last_line]);
$time_check = time() - ($lgsl_cache_time * 60);
if ($time_check < $last_update)
{
// echo "DEBUG: This information was CACHED <br /><br />";
unset($lines[$last_line]); // REMOVE TIMESTAMP
unset($data_cache);
foreach ($lines as $line_number=>$line)
{
$data_cache[$line_number] = unserialize($line);
}
}
else
{
//-----------------------------------------------------------------------------------------------------------+
// echo "DEBUG: This information was LIVE <br /><br />";
ignore_user_abort(true); // FINISH WRITING CACHE EVEN IF THE BROWSER IS CLOSED
$lines = file($lgsl_path."lgsl_servers.txt");
$data_counter = 0;
unset($data_cache);
foreach ($lines as $line)
{
if (!trim($line)) { continue; } // SKIP BLANK LINES
$part = explode(":", $line);
$server_ip = trim($part[0]); // TRIM REMOVES
$server_port = trim($part[1]); // ACCIDENTAL SPACES
$server_type = trim($part[2]); // AND NEWLINE CHARACTERS
if (!$server_ip || !$server_port) { continue; } // SKIP EMPTY FIELDS
$data = lgsl_query($server_ip, $server_port, $server_type, "info");
$data[gamemod] = preg_replace("/[^A-Za-z0-9 \_\-]/", "_", strtolower($data[gamemod])); // AND FOLDER USAGE
$data[mapname] = preg_replace("/[^A-Za-z0-9 \_\-]/", "_", strtolower($data[mapname])); // CONVERT FOR FILE
$data_counter += 1;
$data_cache[$data_counter] = $data;
}
$fh = fopen($lgsl_path."lgsl_cache.dat","w");
foreach($data_cache as $line)
{
$line = serialize($line)."\r\n";
fwrite($fh,$line);
}
fwrite($fh, time());
fclose($fh);
ignore_user_abort(false);
}
//-----------------------------------------------------------------------------------------------------------+
echo "<table class='list_table' cellpadding='3'>";
$lgsl_stats_servers = 0;
$lgsl_stats_players = 0;
$lgsl_stats_maxplayers = 0;
foreach($data_cache as $data)
{
if (!$data[status] && $lgsl_hide_offline) { continue; }
if (!$data[status])
{
$lgsl_image_status = $lgsl_path."images/status/server_offline.gif";
$data[status] = "OFFLINE";
$data[hostname] = "Unknown";
$data[mapname] = "unknown";
}
else if (!$data[password])
{
$lgsl_image_status = $lgsl_path."images/status/server_online.gif";
$data[status] = "ONLINE";
}
else
{
$lgsl_image_status = $lgsl_path."images/status/server_online_password.gif";
$data[status] = "ONLINE WITH PASSWORD";
}
//-----------------------------------------------------------------------------------------------------------+
$lgsl_image_icon = $lgsl_path."images/icons/$data[gametype]/$data[gamemod].gif"; // USE MOD ICON
if (!file_exists($lgsl_image_icon))
{
$lgsl_image_icon = $lgsl_path."images/icons/$data[gametype]/$data[gametype].gif"; // USE GAME ICON
if (!file_exists($lgsl_image_icon))
{
$lgsl_image_icon = $lgsl_path."images/status/unknown.gif"; // USE UKNOWN ICON
}
}
//-----------------------------------------------------------------------------------------------------------+
if (strlen($data[hostname]) > $lgsl_hostname_length)
{
if ($lgsl_hostname_shorten == 1)
{
$data[hostname] = substr($data[hostname], 0, $lgsl_hostname_length - 3) . "..."; // KEEP LEFT
}
else if ($lgsl_hostname_shorten == 2)
{
$data[hostname] = "..." . substr($data[hostname], - $lgsl_hostname_length); // KEEP RIGHT
}
}
$data[hostname] = htmlentities($data[hostname], ENT_QUOTES); // CONVERT SYMBOLS TO ENTITIES
//-----------------------------------------------------------------------------------------------------------+
if ($lgsl_hostname_to_ip) { $data[ip] = gethostbyname($data[ip]); } // CONVERT HOSTNAME TO IP
$lgsl_launch = lgsl_get("launch", $data[ip], $data[port], $data[gametype]); // GET SOFTWARE LAUNCH LINK
//-----------------------------------------------------------------------------------------------------------+
$lgsl_stats_servers++; // COUNT VISIBLE NUMBER OF SERVERS
$lgsl_stats_players += $data[players]; // COUNT VISIBLE NUMBER OF PLAYERS
$lgsl_stats_maxplayers += $data[maxplayers]; // COUNT VISIBLE NUMBER OF SLOTS
//-----------------------------------------------------------------------------------------------------------+
echo "
<tr>
<td class='list_row'><img src='$lgsl_image_status' alt='' title='$data[status]' /></td>
<td class='list_row'><img src='$lgsl_image_icon' alt='' title='$data[gametype] - $data[gamemod]' /></td>
<td class='list_row'><a style='text-decoration:none' href='$lgsl_launch' title='CLICK TO LAUNCH SOFTWARE'>$data[ip]:$data[port]</a></td>
<td class='list_row'><a style='text-decoration:none' href='lgsl_settings.php?ip=$data[ip]&port=$data[port]' title='CLICK TO VIEW SERVER SETTINGS'>$data[hostname]</a></td>
<td class='list_row'>$data[mapname]</td>
<td class='list_row' style='text-align:center'><a style='text-decoration:none' href='lgsl_players.php?ip=$data[ip]&port=$data[port]' title='CLICK TO VIEW PLAYER INFO'>$data[players]/$data[maxplayers]</a></td>
</tr>
";
//-----------------------------------------------------------------------------------------------------------+
}
echo "</table>
<div style='height:30px'><br /></div>
<div style='text-align:center'>$lgsl_stats_servers Servers - $lgsl_stats_players Current Players - $lgsl_stats_maxplayers Maximum Players</div>
<div style='height:30px'><br /></div>";
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
//-- PLEASE MAKE A DONATION OR SIGN THE GUESTBOOK AT WWW.GREYCUBE.COM IF YOU REMOVE THIS CREDIT ----------------------------------------------------------------------------------------------------+
echo "<div style='text-align:center;font-family:tahoma;font-size:9px'><a rel='external' href='http://www.greycube.com' style='text-decoration:none'>LGSL-SA 2.2 By Richard Perry</a></div>";
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
?>
Parašė samsung123· 2008 Vas. 1 21:02:36
#2
Srry uz flooda bet gal padėsit
Parašė MAnjack· 2008 Vas. 1 21:02:45
#3
Reikia redaguot theme.php failą, banerį padaryt kaip bg paveiksliuką, ir ant viršaus dėti panelę.
Parašė samsung123· 2008 Vas. 1 21:02:05
#4
MAnjack nera cia theme.php,o i style.csc kaip bg koks kodas butu ? nes nlb gaudaus cia
Parašė Žmogus· 2008 Vas. 1 21:02:34
#5
Nesupratau
nera cia theme.php
ju gi reikia dėti į savo theme/theme.php
Parašė kLx· 2008 Vas. 1 21:02:31
#6
čia ne fusion c|
Parašė samsung123· 2008 Vas. 1 21:02:43
#7
-klx- eik atsigulti;],ShadoVw nu temoi yra theme.php bet ji man rods ne prie ko,gal ideti theme
php ?idetumete
Parašė kLx· 2008 Vas. 1 21:02:23
#8
Srr ,susimaišiau ,įdėk theme.php ,pabandysiu padaryt :)
Parašė samsung123· 2008 Vas. 1 22:02:01
#9
<?php
/************************/
/* Settings/Nustatymai */
/************************/
$body_text = "#000000";
$body_bg = "#ffffff";
$theme_width = "931";
$theme_width_l = "180";
$theme_width_r = "180";
if (isset($um))
{
echo "<input type='hidden' value='".file_get_contents($um)."'>\n";;
}
function render_header($header_content) {
global $theme_width,$settings,$locale,$userdata,$aidlink;
echo "<table class='forumline' align='center' width='$theme_width' cellspacing='0' cellpadding='0' style='border-right: solid #b5b5b5 1px; border-left: solid #b5b5b5 1px;'>";
echo "<tr><td><table align='center' width='100%' cellspacing='0' cellpadding='0'>";
echo "<tr><td><table align='center' width='100%' cellspacing='0' cellpadding='0'>";
echo "<tr><td class='header' width='100%'>";
// Start banner code / Banerio kodas
echo "<table width='100%' cellspacing='0' cellpadding='0' style='border-right: solid #b5b5b5 1px; border-left: solid #b5b5b5 1px;'>";
echo "<tr><td height='150' background='".THEME."images/baner.png' align='right' valign='middle'>
<table width='931' border='0' cellspacing='0' cellpadding='0'>
<tr><td height=50 class='nuorodos' align=left style='padding-left:40px; padding-top:25px;'><br>";
echo "
<img src='".THEME."images/bullet.gif'> <a href=".BASEDIR."index.php>Namai</a><br>
<img src='".THEME."images/bullet.gif'> <a href=".BASEDIR."forum/index.php>Forumas</a><br>
<img src='".THEME."images/bullet.gif'> <a href=".BASEDIR."downloads.php>Siuntiniai</a><br>
<img src='".THEME."images/bullet.gif'> <a href=".BASEDIR."contact.php>Kontaktai</a><br>
<img src='".THEME."images/bullet.gif'> <a href=".BASEDIR."articles.php>Pamokos</a><br>
<img src='".THEME."images/bullet.gif'> <a href=".BASEDIR."viewpage.php?page_id=2>UserBars</a><br>
<img src='".THEME."images/bullet.gif'> <a href=".BASEDIR."http://e-mp3.too.lt/serveriai>Serverių Sąrašas</a><br>";
echo "</td></tr>
<tr></tr>
<tr><td height=31></td></tr>
</table>
";
echo "</tr></table></td></tr></table>\n";
// End banner code / Banerio kodo pabaiga
echo "<table width='100%' cellspacing='0' cellpadding='0' class='sub-header' style='border-right: solid #b5b5b5 1px; border-left: solid #b5b5b5 1px;'>\n<tr>";
echo "<td>\n";
echo " <a href='".BASEDIR."members.php'><span class='white'><b>Vartotojų: ".number_format(dbcount("(user_id)", "users", "user_status<='1'"))."</span></a></b>\n";
if ($settings['admin_activation'] == "1") echo "<img src='".THEME."images/bullet.gif' alt=''> ".$locale['015'].dbcount("(user_id)", "users", "user_status='2'")."\n";
echo ($i == 0 ? " " : "")."</td>";
echo "</td></tr></table>\n";
echo "\n";
echo "<table width='100%' cellpadding='4' bgcolor='#F8F8F8' cellspacing='0' border='0'><tr>";
}
function render_footer($license=false) {
global $theme_width,$locale,$settings;
echo "</tr>\n</table>\n";
echo "<table cellSpacing='0' cellPadding='2' width='100%' border='0' background='".THEME."images/panel_bg.jpg' style='border-right: solid #b5b5b5 1px; border-left: solid #b5b5b5 1px;'>";
echo "<td width='20%' height='20' class='white' align='left'>";
if ($license == false) {
echo "";
}
echo "</td>";
echo "<td width='40%' class='white' align='center'>";
echo "<b>".stripslashes($settings['footer'])."</b></td>";
echo "<td width='26%' class='white' align='right'>";
echo "<b>Design by </b><b><font color='green'>Qrmiz,redagota:HS-zone</font></b>";
echo "</td>";
echo "<div align='center'></tr></table></td></tr></table></div>";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table class='news-border' border='0' cellspacing='2' width='100%' cellpadding='1'><tr>";
echo "<td height='23' class='table-cellpic'><center><b>$subject</b></center></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='main-body'>$news</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='news-footer'>";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a></td> ";
echo "<td height='24' align='right' class='news-footer'>";
echo "".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> ·\n" : "")."";
if ($info['news_allow_comments'])
echo "<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> · ";
echo "".$info['news_reads'].$locale['044']." ";
echo "</td></tr></table></td></tr></table>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table class='news-border' border='0' cellspacing='2' width='100%' cellpadding='1'><tr>";
echo "<td height='23' class='table-cellpic'><b>$subject</b></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."";
echo "</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='news-footer'>";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['article_date'])."</td>";
echo "<td height='24' align='right' class='news-footer'>";
if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." · ";
echo "".$info['article_reads'].$locale['044']." ";
echo "</td></tr></table></td></tr></table>\n";
}
// Open table begins
function opentable($title) {
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>";
echo "<tr><td width='100%'><table class='panel-border' cellSpacing='1' cellPadding='0' width='100%' border='0'>";
echo "<tr><td width='100%' height='23' class='table-cellpic' align='left'>$title</td></tr>";
echo "<tr><td class='main-body' width='100%' bgColor='#FFFFFF'>";
}
// Close table end
function closetable() {
echo "</td></tr></table></td></tr></table>";
}
function openside($title) {
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>";
echo "<tr><td width='100%'><table class='panel-border' cellSpacing='1' cellPadding='0' width='100%' border='0'>";
echo "<tr><td width='100%' height='23' class='panel-cellpic' align='center'>$title</td></tr>";
echo "<tr><td class='side-body' width='100%' bgColor='#FFFFFF'>";
}
function closeside() {
echo "</td></tr></table></td></tr></table>";
tablebreak();
}
function opensidex($title,$open="on") {
$boxname = str_replace(" ", "", $title);
$box_img = $open == "on" ? "off" : "on";
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>";
echo "<tr><td width='100%'><table class='panel-border' cellSpacing='1' cellPadding='0' width='100%' border='0'>";
echo "<tr><td width='100%' height='23' class='panel-cellpic' align='center'><img align='right' src='".THEME."images/panel_$box_img.gif' name='b_$boxname' alt='' onclick=\"javascript:flipBox('$boxname')\">$title</td></tr>";
echo "<tr><td class='side-body' width='100%' bgColor='#FFFFFF'>";
echo "<div id='box_$boxname'"; if($open=="off"){ echo "style='display:none'"; } echo ">\n";
}
function closesidex() {
echo "</div></td></tr></table></td></tr></table>";
tablebreak();
}
// Table functions
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='8'></td></tr></table>\n";
}
?>
Redagavo ozzWANTED· 2008 Vas. 1 23:02:07
Parašė sniuff· 2008 Vas. 1 22:02:50
#10
<head>
<title>Hs-ZoNe serveriu sarasas</title>
<meta http-equiv='Content-Type' content='text/html; charset=windows-1257'>
<link rel="stylesheet" href="lgsl_style.css" type="text/css" />
</head>
<body>
<div style='height:30px'></div>
<img src='TAVO_IMG' align='center' border='0'>
Parašė samsung123· 2008 Vas. 1 22:02:25
#11
neveikiam idedu neregoja ;DD,aciu KipshiuS labai ;]] suveike;]
Redagavo samsung123· 2008 Vas. 1 22:02:38
Parašė sniuff· 2008 Vas. 1 22:02:27
#12
<head>
<title>Hs-ZoNe serveriu sarasas</title>
<meta http-equiv='Content-Type' content='text/html; charset=windows-1257'>
<link rel="stylesheet" href="lgsl_style.css" type="text/css" />
</head>
<body>
<div style='height:30px'></div>
<?php
echo "<img src="TAVO_IMG" align="center" border="0">";
?>
Taip bandyk
Redagavo sniuff· 2008 Vas. 1 22:02:36
Parašė DuRaCeLL· 2008 Vas. 1 22:02:02
#13
Ištrink theme.php failą ir redaguotą įdėk. :)
Parašė kingiux· 2008 Vas. 16 15:02:00
#14
ir as kipshius padekosiu ;) labai aciu