Ti posto il codice php della pagina di login che è quella dove si collega un ospite o un utente registrato così poi mi dici di preciso dove dovrei mettere questa modifica
Codice PHP:
<?php
/*
* Created by Neumann Valle Aka UTAN, re*s.t.a.r.s.*2 , this the completation script for the
* Pfc-Login script system for phpfreechat, you can contact me at utan@vcomputadoras.com or
* vcomputadoras@yahoo.com , also if you like the script please place a link back to my site
* http://vcomputadoras.com, or fullchat.info thanks.
*
* */
define('SECURED',true);
require_once('functions.php');
detroySession();// destroy session
$postAction = $_SERVER['SCRIPT_NAME'];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="<?php printf($language['lang']); ?>" xml:lang="<?php printf($language['lang']); ?>" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><?php printf('Sky Souls Chat-Login'); ?></title>
<meta name="description" content="<?php printf($language['login system, registration system, phpfreechat registration system']); ?>" />
<meta name="keywords" content="<?php printf($language['Pfc-Login System is a login and registration system for PHPFREECHAT']); ?>" />
<link rel="stylesheet" href="./login_css/login.css" type="text/css" />
<script type="text/javascript" src="./login_js/pfc-login.js"></script>
<!--[if IE 7]>
<style type="text/css">
.lbutton {
margin-left:-15px;
}
}
</style>
<![endif]-->
<script language="Javascript" type="text/javascript">
function hidePassword()
{
var formElement = document.getElementById('login_form');
var label = formElement.getElementsByTagName('label');
if(formElement[1].style.display == "inline")
{
formElement[1].style.display = "none";
label[1].innerHTML = "";
label[2].innerHTML = "<?php printf('Deseleziona e inserisci la password');?>";
}
else if(formElement[1].style.display == "none")
{
formElement[1].style.display = "inline";
label[2].innerHTML = "<?php printf('Entra come ospite'); ?>";
label[1].innerHTML = "<?php printf($language['*Password']); ?>";
}
}
</script>
</head>
<body>
<div id="outer">
<div id="header">
<?php echo $siteLogo; ?>
</div>
<div id="main">
<form id="login_form" action="<?php echo $postAction; ?>" method="post">
<h3 class="welcome"><?php printf('Accedi alla chat!'); ?></h3>
<label><?php printf($language['*NickName']); ?></label>
<input type="text" name="username" onfocus="focusEffects(this);" onblur="blurEffects(this)" value="" size="20" />
<br />
<label><?php printf($language['*Password']); ?></label>
<input style="display:inline;" type="password" name="password" onfocus="focusEffects(this);" onblur="blurEffects(this)" value="" size="20" />
<br />
<?php if($guestlogin){
printf('<label>'.$language['Enter chat as guest?'] .'</label><input type="checkbox" name="guestlogin" Onclick="hidePassword();" value="'.$guestlogin.'" size="20" /><br />');
$guestlogin= isset($_POST['guestlogin']) ? trim($_POST['guestlogin']) : "";
}?>
<input type="hidden" name="submitted" value="true" />
<div class="lbutton">
<input type="submit" value="<?php printf($language['Log in']); ?>" />
</div>
<?php printf('<p>'.'Registra un nick clicca <a href="./register.php">Registrati!</a>'.'</p>'); ?>
<?php printf('<p>'.'Se hai perso la password clicca <a href="./loginrecovery.php" title="recover password page">Recupera password</a>'.'</p>'); ?>
<?php
$username= isset($_POST['username']) ? trim($_POST['username']) : "";
$password= isset($_POST['password']) ? trim($_POST['password']) : "";
$remember= isset($_POST['remember']) ? trim($_POST['remember']) : "";
if(isset($_POST['submitted']) == "true")
{
if($username == ""){
printf('<p class="error">'.'Si prega di compilare il campo nome utente.'.'</p>');
}
else
{
LoggedInUser($username, $password,$guestlogin,$remember);
}
}
?>
<?php echo $phpfreechatlogo; ?>
</form>
</div>
<div id="footer">
<cite>
<?php printf($language['site credits']); ?>
</cite>
</div>
</div>
</body>
</html>
aah comunque giusto ma la modifica che devo inserire qual'è? io ancora non ci ho capito una mazza ahaha scusa cioè ho capito cosa devo fare ma non ho capito che cosa devo inserire