Parašė Lordcraft· 2008 Rugs. 6 15:09:20
#1
Pasidariau nauja login panele bet toj panelej nerodo nauju pm zinuciu. nezinau kas ne taip. stai visas
php failas:
<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2005 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
if (iMEMBER) {
echo "<div class='side-label'><b>Tavo meniu</b></div>
<table>
<tr><td>
<table>
".($userdata['user_avatar'] != "" ? "<img src='".IMAGES."avatars/".$userdata['user_avatar']."' width='44px;' height='44px;'>" : "<img src='".THEME."no_avatar.gif' title='Vartotojas neturi avataro' width='44px;' height='44px;'>")."
</table>
</td><td>
<table>
<td><small>
<font color='#000'>Sveikas ".$userdata['user_name']."</font><br>
<a href='".BASEDIR."messages.php' class='side'>Юinutлs [naujш: <b><span style='color:#ff0000'>".sprintf($msg_count)."</span></b>]</a><br>
<a href='".BASEDIR."edit_profile.php'>
<small>
<font color='#000'>Jыsш Profilis</font></small></a> </br> <a href='".BASEDIR."setuser.php?logout=yes'><small>
<font color='#000'>Atsijungti</font></small></a></td></tr>\n";
} else {
echo "<div class='side-label'><b>Login arena</b></div>
<table>
<form name='loginform' method='post' align='left' action='".BASEDIR."news.php'>
<tr>
<td>
<small>
<font color='#000'><a href='register.php'>Registracija</font></small>
</td>
<td>
<input type='text' name='user_name' value='User Name' class='textbox' style='width:100px;'>
</td>
<tr><td>
<small>
<font color='#000'><a href='lostpassword.php'>Slaptaюodis</a></font></small>
</td>
<td>
<input type='password' name='user_pass' value='Password' class='textbox' style='width:100px;'>
</td></tr>
<tr>
<td>
<font color='#000'><small>Atsimink</small></font>
<input type='checkbox' name='remember_me' value='y' title='Atsiminti mane' style='vertical-align:left;'>
</tr>
<td>
<input type='submit' name='login' value='Prisijungti' class='button'>
</form>
</td>
</tr>
</table>
<table>\n";
}
echo (iMEMBER ? "</table>
</td></tr>" : "")."</table>";
?>
Redagavo Lordcraft· 2008 Rugs. 6 15:09:34