Buongiorno. Ho ancora problemi con la chat. Infatti vorrei cambiare il colore di fondo di queste due pagine ma non so dove inserire il codice e come scriverlo. O meglio, ho provato in diversi modi ma non ci riesco; mi resta sempre il colore bianco come sfondo mentre vorrei il nero (cioè #000000). Dove e come inserire il codice e qual'è l'esatta sintassi?
Grazie in anticipo per l’aiuto
File INDEX.PHP
<?php
include("header.inc.php");
include("config.inc.php");
include("functions.inc.php");
IF($pcpin_parameters["standard_language"]){
header("location: home.php");
die();
}
$lngarray=getLanguages();
IF(count($lngarray)==1){
header("location: home.php?pcpin_language=".str_replace(".inc.php"," ",$lngarray[0]));
die();
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
<?php echo generateCSS();?>
<title><?php echo $pcpin_parameters["title"];?></title>
</head>
<body>
<center>
<form action="home.php" method="post">
<table cellpadding="6" class="foreground" style="margin-left:auto; margin-right:auto;">
<tr>
<td class="hforeground">
Choose your language:
<select name="pcpin_language" class="dropdown">
<?php
$lngarray=getLanguages();
FOR($i=0;$i<count($lngarray);$i++){
$pcpin_language=str_replace(".inc.php","",$lngarra y[$i]);
?>
<option value="<?php echo $pcpin_language;?>"<?php IF(strtolower($pcpin_parameters["standard_language"])==strtolower($pcpin_language)){echo " selected";}?>><?php echo ucfirst($pcpin_language);?></option>
<?php
}
?>
</select>
<input type="submit" value="Go >" class="buttons">
</td>
</tr>
</table>
</form>
</body>
</html>
File HOME.PHP
<?php
include("header.inc.php");
include("config.inc.php");
include("functions.inc.php");
include("cleanup.inc.php");
IF(!isset($pcpin_language)||$pcpin_language==""){
$pcpin_language=$pcpin_parameters["standard_language"];
IF(!$pcpin_language){
header("location: index.php");
die();
}
}
include("shared/language/".$pcpin_language.".inc.php");
IF(!isset($pcpin_error)){
$pcpin_error = "";
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html><head>
<?php
IF(isset($pass)&&$pass=="sent"){
?>
<script language="JavaScript">
var url="sendconfirm.php?pcpin_language=<?php echo $pcpin_language;?>";
var width=300;
var height=150;
window.open(url, "msg", "toolbar=0,scrollbars=0,location=0,statusbar=0,men ubar=0,resizable=1,width="+width+",height="+height +",left=0,top=0");
</script>
<?php
}
?>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $pcpin_lang["charset"];?>">
<?php echo generateCSS();?>
<title>
<?php echo $pcpin_parameters["title"];?>
</title>
</head>
<body <?php IF($pcpin_error<>"wrong_credentials"){echo "onload='document.login.pcpin_user.focus();documen t.login.pcpin_user.select();'";}ELSE{echo "onload='document.login.pcpin_password.focus();'"; }?>>
<center>
<form action="login.php" method="post" name="login">
<input type="hidden" name="pcpin_language" value="<?php echo $pcpin_language;?>">
<table class="foreground" style="margin-left:auto; margin-right:auto;">
<tr class="foreground">
<td class="foreground">
<div class="error">
<?php
IF($pcpin_error<>""){
echo $pcpin_lang["error_".$pcpin_error];
}
?>
</div>
<table>
<tr class="foreground">
<td class="hforeground">
<?php echo $pcpin_lang["entername"];?>
</td>
<td class="hforeground">
<input type="text" name="pcpin_user" size="12" maxlength="12" value="<?php echo $pcpin_user; ?>" class="text_input">
</td>
</tr>
<tr class="foreground">
<td class="hforeground">
<?php echo $pcpin_lang["enterpassword"]; IF($pcpin_parameters["allow_guests"]=="1"){echo " (".$pcpin_lang["registered_users"].")";}?>
</td>
<td class="hforeground">
<input type="password" name="pcpin_password" size="12" class="text_input">
</td>
</tr>
<tr class="foreground">
<td colspan="2" class="foreground">
</td>
</tr>
<tr class="hforeground">
<td colspan="2" class="hforeground">
<input type="submit" value="<?php echo $pcpin_lang["startbutton"]; ?>" class="buttons">
</td>
</tr>
<tr class="foreground">
<td colspan="2" class="foreground">
<?php echo $pcpin_lang["clicktoregister"];?>
"<?php echo $pcpin_lang["lostpassword"];?>"
</td>
</tr>
<tr class="foreground">
<td colspan="2" class="foreground">
</td>
</tr>
<tr class="foreground">
<td colspan="2" class="foreground">
<?php echo str_replace("{count}",users_total(),$pcpin_lang["usersinchat"]);?>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</center>
</body>
</html>