Reklama 400x60
Reiketu pagalbos del paneles prie head.
Autorius: cofi
Peržiūrų: 1042
cofi
Narys
Žalias
Pranešimai: 19
Įstojęs: 2010 Lap. 10 08:11:50
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%' c ellpadding='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
4 atsakymai:
Jaunelis
Narys
Antras po Dievo
Pranešimai: 4735
Įstojęs: 2007 Rugs. 23 08:09:32
O tai nemeginai pakeisti kodus ? ka meta ?0
code and design solutions tinklalapių kūrimas
cofi
Narys
Žalias
Pranešimai: 19
Įstojęs: 2010 Lap. 10 08:11:50
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.0
ZW
Narys
Ekspertas
Pranešimai: 3182
Įstojęs: 2007 Spa. 28 18:10:27
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>";
?>
0
https://valgo.me Redagavo
ZW 2010 Gru. 22 15:12:54
cofi
Narys
Žalias
Pranešimai: 19
Įstojęs: 2010 Lap. 10 08:11:50
idet idejau bet nerodo
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 o jej neprisijunges esi tai nerodo
O susitwarkiau visiems lb lb dekuj uz pagalba !
Justas. - Ne daugiau trijų smailų iš eilės! 0
Peršokti į forumą:
Nebeegzistuojančios svetainės
Žaliems
Bendri PHP-F klausimai
WordPress
Kiti PHP, HTML, MySQL klausimai
Expert PHP, MySQL klausimai
Kitos TVS
C#, Python, Java, JS, C++ klausimai
Naujų modų pristatymai
Mods, Panels & Infusions
Themes
Jūsų saitai
Dalinuosi, dovanoju!
Klausimai apie domenus ir hostingus
VPS/DS serverių konfigūravimas ir valdymas
Viskas apie skaitliukus, top'us ir lankomumą
Dizaino konkursai
Parduodu - perku dizainą, banerį
Parduodu - perku - keičiuosi reklama
Parduodu - perku domeną, tinklapį
Siūlau - ieškau hostingo/VPS serverio
Parduodu - perku skriptą, modifikaciją, tvs
Socialiniai tinklai - Facebook ir kiti
Legalus verslas, teisiniai klausimai
Visa kita kas susiję su darbu ir pinigais
LTStartups.com - Lietuvos startuolių bendruomenė
Off-Topic diskusijos
IT naujienos
Portalo informacija
Narių pasiūlymai
Geležis ir programinė įranga
Grafika
Out Of Place
Su e-verslu nesusijęs darbas ir prekyba
Dalinuosi, dovanoju!