Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Reiketu pagalbos del paneles prie head.

Parašė cofi· 2010 Gru. 22 08:12:29
#1

Sveiki , reiketu man pagalbos del login paneles prie headerio pakeitimo i l2 server info.

Stai header.php


<?php
global $theme_width,$settings,$aidlink,$locale,$userdata;
echo "<table width='866' border='0' align='center' cellpadding='0' cellspacing='0' background='".THEME."images/headeris.jpg' height='175 style='background-repeat: no-repeat;'>
      <tr>
 
		<td width='235' style='padding-right: 0px; padding-left: 610px; padding-bottom: 0px; padding-top:0px;' valign='middle'>";
		if (iMEMBER) {
	$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
	echo "<table width='235' border='0' cellspacing='2' cellpadding='2'>
  <tr>
    <td>\n";
	if ($userdata['user_avatar'] != "") {
	echo "<center><img src='".BASEDIR."images/avatars/".$userdata['user_avatar']."' width='100' height='100' style='border:1px solid #999999'></center>\n";
	} else {
	echo "<center><img src='".THEME."images/noavatar.gif' width='100' height='100' border='0'></center>\n";
	}
	echo "</td>
    <td valign='top'><img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='headeris'>Redaguoti profili</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='headeris'>zinutes [naujo: <b><span style='color:#990000'>".sprintf($msg_count)."</span></b>]</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='headeris'>Nariai</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."profile.php?lookup=".$userdata['user_id']."' class='headeris'>Mano profilis</a><br>\n";	
                        if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
		echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".ADMIN."index.php".$aidlink."' class='headeris'>Administracija</a><br>\n";
	}
	echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='headeris'>".$locale['084']."</a><br><br>
	<b><span class='ip'>IP: </span></b>";
	$userip = $_SERVER['REMOTE_ADDR'];
		$host = gethostbyaddr($userip);
		echo "<span class='ip'>".$userip."</span><br /></td></tr></table>\n";
	} else {
	echo "<table width='0' border='0' cellspacing='0' cellpadding='0' align='center'><form name='loginform' method='post' action='".FUSION_SELF."'>
  <tr>
    <td align='right' class='ip'>Vardas: </td>
    <td> <input type='text' name='user_name' class='textbox' style='width:100px;filter:alpha(opacity=100)'></td>
  </tr>
  <tr>
    <td align='right' class='ip'>".$locale['062'].": </td>
    <td> <input type='password' name='user_pass' class='textbox' style='width:100px;filter:alpha(opacity=100)'></td>
  </tr>
  <tr>
    <td align='right'><input type='checkbox' name='remember_me' value='y'></td>
    <td> <input type='submit' name='login' value='Prisijungti' class='button'></td>
  </tr>
  </form>\n";
	if ($settings['enable_registration']) {
		echo "<a href=".BASEDIR."register.php>Registracija</a> / <a href=".BASEDIR."lostpassword.php>Slaptazodis</a>\n";
	}
	echo"</table>\n";
}
echo "</td>
      </tr>
		</table>\n";
 
	echo "<table width='866' cellspacing='0' cellpadding='0' style='border-right: solid #b5b5b5 0px; border-left: solid #b5b5b5 0px;'>\n<tr>";
	echo "<td>\n";
	echo ($i == 0 ? " " : "")."</td>";
	echo "</td></tr></table>\n";
	echo "<table width='866' border='0' cellpadding='0' cellspacing='0' bgcolor='#333333'>
  <tr>
    <td width='0'></td>
    <td width='50' valign='right'><a href='".BASEDIR."index.php'><img src='".THEME."images/naujienos.gif' border=0' alt=''></a></td>
    <td width='50' valign='right'><a href='".BASEDIR."dwonloads.php.php'><img src='".THEME."images/forumas.gif' border=0' alt=''></td>
        <td width='50' align='right'><a href='".FORUM."index.php'><img src='".THEME."images/l2info.gif' border=0' alt=''></td>
	<td width='50' valign='right'><a href='".BASEDIR."contact.php'><img src='".THEME."images/siuntiniai.gif' border=0' alt=''></td>
    <td width='50' valign='right'><a href='".BASEDIR."photogallery.php'><img src='".THEME."images/kvestai.gif' border=0' alt=''></td>
	<td width='141' valign='right'><a href='".BASEDIR."viewpage.php?page_id=1'><img src='".THEME."images/informacija.gif' border=0' alt=''></td>
	<td width='0'></td>
  </tr>
</table>\n";
	echo "<table width='100%' cellpadding='4' bgcolor='#F8F8F8' cellspacing='0' border='0'><tr>";	
?>


O stai ta panele kuria noriu idet vietoj login paneles

<?
 
error_reporting(0);
$IP = array(
"<br><b>Login:</b>" => "78.57.163.112:9014",
"<br><b>Game:</b>" => "78.57.163.112:7777",
);while(list($ServerName,$Host)=each($IP)) {
list($IPAddress,$Port)=explode(":",$Host);
echo($ServerName);
$time = 0;
$time = round(microtime(), 3);
if($fp=fsockopen($IPAddress,$Port,$ERROR_NO,$ERROR_STR,(float)0.5)) {
$time2 = round(microtime(), 3);
$ping = ($time2 - $time)*100;
echo("<font color='green'> Online</font> (ping: ".$ping."ms)<br />");
fclose($fp);
}else {
echo ("<font color='red'> Offline</font>");
}
}
echo "</b>";
 
 
?>


Busiu labai labai dekingas :)

Parašė Jaunelis· 2010 Gru. 22 09:12:28
#2

O tai nemeginai pakeisti kodus ? ka meta ?

Parašė cofi· 2010 Gru. 22 15:12:09
#3

pakeist tai buwau pakeites, bet nebebuwo headerio liko tik server status panele. o ma nreikia kad vietoj login paneles butu server statsu :( jej reikia galiu visa thema imest.

Parašė ZW· 2010 Gru. 22 15:12:59
#4

Kur uzrasas paryskintas Bandyk deti cia... Tai bandyk ten kist ta savo koda... login atrodo istryniau...

<?php

global $theme_width,$settings,$aidlink,$locale,$userdata;

echo "<table width='866' border='0' align='center' cellpadding='0' cellspacing='0' background='".THEME."images/headeris.jpg' height='175 style='background-repeat: no-repeat;'>

      <tr>

 

      <td width='235' style='padding-right: 0px; padding-left: 610px; padding-bottom: 0px; padding-top:0px;' valign='middle'>";

      if (iMEMBER) {

   $msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");

   echo "<table width='235' border='0' cellspacing='2' cellpadding='2'>

  <tr>

    <td>\n";

   Bandyk deti cia...

   }

   echo"</table>\n";

}

echo "</td>

      </tr>

      </table>\n";

 

   echo "<table width='866' cellspacing='0' cellpadding='0' style='border-right: solid #b5b5b5 0px; border-left: solid #b5b5b5 0px;'>\n<tr>";

   echo "<td>\n";

   echo ($i == 0 ? " " : "")."</td>";

   echo "</td></tr></table>\n";

   echo "<table width='866' border='0' cellpadding='0' cellspacing='0' bgcolor='#333333'>

  <tr>

    <td width='0'></td>

    <td width='50' valign='right'><a href='".BASEDIR."index.php'><img src='".THEME."images/naujienos.gif' border=0' alt=''></a></td>

    <td width='50' valign='right'><a href='".BASEDIR."dwonloads.php.php'><img src='".THEME."images/forumas.gif' border=0' alt=''></td>

        <td width='50' align='right'><a href='".FORUM."index.php'><img src='".THEME."images/l2info.gif' border=0' alt=''></td>

   <td width='50' valign='right'><a href='".BASEDIR."contact.php'><img src='".THEME."images/siuntiniai.gif' border=0' alt=''></td>

    <td width='50' valign='right'><a href='".BASEDIR."photogallery.php'><img src='".THEME."images/kvestai.gif' border=0' alt=''></td>

   <td width='141' valign='right'><a href='".BASEDIR."viewpage.php?page_id=1'><img src='".THEME."images/informacija.gif' border=0' alt=''></td>

   <td width='0'></td>

  </tr>

</table>\n";

   echo "<table width='100%' cellpadding='4' bgcolor='#F8F8F8' cellspacing='0' border='0'><tr>";   

?>



Redagavo ZW· 2010 Gru. 22 15:12:54

Parašė cofi· 2010 Gru. 22 20:12:01
#5

idet idejau bet nerodo :D :D :D
cia grynaj reikia kad tas server info uzsidetu i ta vieta kur buwo login, cia ant paveikslelio gaunas.
Stai is cia ta thema galit atsiust http://ikelk.lt/items/MSMbcetREp
tik dbr pamaciau jej prisijungi rodo ar servas on ar ne :D o jej neprisijunges esi tai nerodo :D
O susitwarkiau visiems lb lb dekuj uz pagalba ! :)

Justas. - Ne daugiau trijų smailų iš eilės!