Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Pagalba uz +11

Parašė Mr.Pixel· 2010 Gru. 19 19:12:55
#1

Sveiki, man reikia padaryti kad ten kur yra Vartotojo info padaryti Serverio info:
scriptas:

<?php
global $theme_width,$settings,$aidlink,$locale,$userdata;
echo "<table width='100%'><tr><td>";
		if (iMEMBER) {
	echo "<div style=' padding-top: 10px;'><table width='100%' border='0' cellspacing='0' cellpadding='0'>
  <tr>
    <td style='padding-left: 75px;'>\n";
	if ($userdata['user_avatar'] != "") {
	echo "<center><img src='".BASEDIR."images/avatars/".$userdata['user_avatar']."' width='70' height='70' style='border:1px solid #ff8800'></center>\n";
	} else {
	echo "<center><img src='".THEME."images/noavatar.jpg' width='70' height='70' border='0' style='border:1px solid #ff8800'></center>\n";
	}
	echo "</td>
    <td valign='middle' style='padding-top: 21px;'><img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='userinfo'>Redaguoti profili</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='userinfo'>Nariai</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."profile.php?lookup=".$userdata['user_id']."' class='userinfo'>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='userinfo'>Administracija</a><br>\n";
	}
	echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='userinfo'>Atsijungti</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></div>\n";
 
	} else {
 
	echo "<form name='loginform' method='post' action='".FUSION_SELF."'><div style='padding-left: 98px; padding-top: 27px;'>
<table width='100%' border='0' cellspacing='0' cellpadding='0' align='center'>
  <tr>
    <td></td>
    <td>&nbsp;&nbsp;<img src='".THEME."images/vartotojas.png' alt=''> <input type='text' style='padding-top:7px; padding-left:7px;' name='user_name' class='loginn' style='width:161px;height:27px;'></td>
  </tr>
    <tr>
    <td height='4'></td>
    <td height='4'></td>
  </tr>
 
  <tr>
    <td></td>
    <td>&nbsp;&nbsp;<img src='".THEME."images/slaptazodis.png' alt=''> <input class='login' type='password' style='padding-top:7px; padding-left:7px;' name='user_pass' style='width:161px;height:27px;'></td>
  </tr>
  <tr align='center'>
    <td><br></td>
    <td><input type='checkbox' name='remember_me' value='y'> <input type='submit' name='login' value='Prisijungti' class='button' align='center'></td>
  </tr>
  <tr>
<td colspan='2'><br><a class='register' href='".BASEDIR."register.php'><b>Registracija</b></a> / <a  class='register' href='".BASEDIR."lostpassword.php'><b>Slaptazodis</b></a></td>
</tr>
  </table></div>
  </form>\n";
}
echo"</td></tr></table>";
?>

o man reikia pakeisti kad butu tiktais shitas kodas ir toj pacioje vietoje.

<iframe src='http://monitors.cancel.lt/info2_black.php?ip=79.98.31.25&port=8006&g=samp' scrolling='no' frameborder='0' width='190' height='130'></iframe>