1
ich möchte den hintergrund der loginfelder bei einem CMS ändern (webspell aktuelle version)
wie genau geht das
html teil
php teil
wie genau geht das
html teil
<form method="post" name="login" action="checklogin.php">
<input name="ws_user" type="text" size="13" value="Username" onfocus="this.value=''" style="margin:2px;" />
<input name="pwd" type="password" size="13" value="Password" onfocus="this.value=''" style="margin:2px;" />
<input type="submit" name="submit" value="%login%" style="margin:2px;" /><br />
• <a href="index.php?site=register">%register_now%</a><br />
• <a href="index.php?site=lostpassword">%lost_password%</a><br />
• <a href="index.php?site=registered_users">%registered_users%</a>
</form>
php teil
<?php
/*
##########################################################################
# #
# Version 4 / / / #
# -----------__---/__---__------__----__---/---/- #
# | /| / /___) / ) (_ ` / ) /___) / / #
# _|/_|/__(___ _(___/_(__)___/___/_(___ _/___/___ #
# Free Content / Management System #
# / #
# #
# #
# Copyright 2005-2011 by webspell.org #
# #
# visit webSPELL.org, webspell.info to get webSPELL for free #
# - Script runs under the GNU GENERAL PUBLIC LICENSE #
# - It's NOT allowed to remove this copyright-tag #
# -- http://www.fsf.org/licensing/licenses/gpl.html #
# #
# Code based on WebSPELL Clanpackage (Michael Gruber - webspell.at), #
# Far Development by Development Team - webspell.org #
# #
# visit webspell.org #
# #
##########################################################################
*/
$_language->read_module('login');
if($loggedin) {
$username='<a href="index.php?site=profile&id='.$userID.'"><b>'.strip_tags(getnickname($userID)).'</b></a>';
if(isanyadmin($userID)) $admin='• <a href="admin/admincenter.php" target="_blank">'.$_language->module['admin'].'</a><br />';
else $admin='';
if(isclanmember($userID) or iscashadmin($userID)) $cashbox='• <a href="index.php?site=cash_box">'.$_language->module['cash-box'].'</a><br />';
else $cashbox='';
$anz=getnewmessages($userID);
if($anz) {
$newmessages=' (<b>'.$anz.'</b>)';
}
else $newmessages='';
if($getavatar = getavatar($userID)) $l_avatar='<img src="images/avatars/'.$getavatar.'" alt="Avatar" />';
else $l_avatar=$_language->module['n_a'];
eval ("\$logged = \"".gettemplate("logged")."\";");
echo $logged;
}
else {
//set sessiontest variable (checks if session works correctly)
$_SESSION['ws_sessiontest'] = true;
eval ("\$loginform = \"".gettemplate("login")."\";");
echo $loginform;
}
?>