Wykonałem ciekawy nowy panel logowania.
<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2005 Proton
http://www.pes5.ovh.org - niec wspolnego z php-fusion
+----------------------------------------------------+
| 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) {
openside($userdata['user_name']);
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."'
AND message_read='0'AND message_folder='0'");
echo "<center><img src='".THEME."images/bulletb.gif' alt=''> <a href='".BASEDIR."edit_profile.php'
class='side'>".$locale['080']."</a><br>
<img src='".THEME."images/bulletb.gif' alt=''> <a href='".BASEDIR."messages.php'
class='side'>".$locale['081']."</a><br>
<img src='".THEME."images/bulletb.gif' alt=''> <a href='".BASEDIR."members.php'
class='side'>".$locale['082']."</a><br>\n";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo "<img src='".THEME."images/bulletb.gif' alt=''> <a href='".ADMIN."index.php'
class='side'>".$locale['083']."</a><br></center>\n";
}
echo "<center><img src='".THEME."images/bulletb.gif' alt=''> <a
href='".BASEDIR."setuser.php?logout=yes' class='side'>".$locale['084']."</a>\n";
if ($msg_count) echo "<br><br><center><b><a href='".BASEDIR."messages.php'
class='side'>".sprintf($locale['085'], $msg_count).($msg_count == 1 ? $locale['086'] :
$locale['087'])."</a></b></center></center>\n";
} else {
openside($locale['060']);
echo "<div align='center'>".(isset($loginerror) ? $loginerror : "")."
<form name='loginform' method='post' action='".FUSION_SELF."'>
<br>
<input type='text' name='user_name' value='Login' class='textbox' style='width:110px'
onBlur=\"if(this.value=='') this.value='Login';\" onFocus=\"if(this.value=='Login') this.value='';\" ><br>
<input type='password' name='user_pass' value='Haslo' class='textbox' style='width:83px'
onBlur=\"if(this.value=='') this.value='Haslo';\" onFocus=\"if(this.value=='Haslo') this.value='';\" >
<input type='submit' name='login' value='".$locale['064']."' class='button'><br>
</form>
<br>\n";
if ($settings['enable_registration']) {
echo "".$locale['065']."<br>\n";
}
echo $locale['066']."
</div>\n";
}
closeside();
?>
To jest kod który trzeba wkleić do infusions/user_info_panel/user_info_panel.php
A poniżej podaje co trzeba zmienić w global: // User Menu
$locale['060'] = "Logowanie";
$locale['061'] = "Nazwa Użytkownika";
$locale['062'] = "Hasło";
$locale['063'] = "Zapamiętaj mnie";
$locale['064'] = "GO";
$locale['065'] = "<a href='".BASEDIR."register.php' class='side'>Zarejestruj się!</a>";
$locale['066'] = "<a href='".BASEDIR."lostpassword.php' class='side'>Przypomnij hasło!</a>";
Panel bardzo podobny do tego z jPortal niżej zdjęcie
proton dodał/a następującą grafikę:
Edytowane przez proton dnia 01.01.2006 13:31:09
|