allora
Codice PHP:
<?
            
include ('../config/config.php');//questo verrà creato + in giù
            
include ('../lang/lang.php');

//crea config.php

$file "../config/config.php";

if(isset(
$_POST['submit'])) {

    
$SQLuser         $_POST["SQLuser"]; 
    
$SQLpass         $_POST["SQLpass"]; 
    
$SQLname         $_POST["SQLname"]; 
    
$SQLhost         $_POST["SQLhost"];
    
$SQLprefix         $_POST["SQLpreix"]; 

    
$content "<?php 
    \$db_user = '
$SQLuser';\r\n 
    \$db_pass = '
$SQLpass';\r\n 
    \$db_name = '
$SQLname';\r\n 
    \$db_host = '
$SQLhost';\r\n 
    \$prefix  = '
$SQLprefix';\r\n
    ?>"
;

$fp fopen($file"a"); 
fwrite($fp$content);
fclose($fp); 

} else { 
echo 
"$lang[55]";
}  

     
$template = new template;

    if ( 
file_exists('install.lock') )
    {
    
errore("<link href=\"install/install.css\" align=\"center\" rel=\"stylesheet\" type=\"text/css\">
                   <table width=\"200\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"lock\">
                     <tr>
                   <td>
$lang[50]</td>
                     </tr></table>"
);
    exit();
}

    if (
$FH = @fopen$root.'install.lock''w' ) )
    {
        @
fwrite$FH'© Graphic Supremacy');
        @
fclose($FH);
        
        @
chmod$root.'install.lock'0666 );
        
        
$template->print_top('Installazione effettuata!');
        
        
$msg="$lang[51]";
    }
    else
    {
        
$template->print_top('completato!');
        
        
$msg "$lang[52]";
    }
    

echo (
"
    <form action=\"install.php\" method=\"POST\" name=\"config\" id=\"InputForm\">
    
$lang[7]:   <input type=\"text\" name=\"SQLprefix\">
    
$lang[2]:   <input type=\"text\" name=\"SQLuser\">
    
$lang[3]:    <input type=\"password\" name=\"SQLpass\">
    
$lang[4]:    <input type=\"password\" name=\"SQLpass2\">
    
$lang[5]:    <input type=\"text\" name=\"SQLname\">
    
$lang[6]:    <input type=\"text\" name=\"SQLhost\">
    
$lang[2]:    <input type=\"text\" name=\"user\">
    
$lang[3]:    <input type=\"password\" name=\"pass\">
    
$lang[4]:    <input type=\"password\" name=\"pass2\">
    
$lang[24]:    <input type=\"text\" name=\"msn\">
    <input type=\"submit\" name=\"conf\" value=\"
$lang[9]\">
    </form> "
);

    if (
$VARS['pass'] != $VARS['pass2'])
    {
        
install_error("$lang[54]");
    }


if (isset (
$_POST["config"])) {  
$SQLuser         $_POST["SQLuser"]; 
$SQLpass         $_POST["SQLpass"]; 
$SQLname         $_POST["SQLname"]; 
$SQLhost         $_POST["SQLhost"];
$SQLprefix         $_POST["SQLpreix"]; 
$user             $_POST["user"]; 
$password         $_POST["pass"]; 
$msn             $_POST["msn"]; 



$giorno     date("j");
$mese         =  date("n");
$anno         date("Y");
$ore         date("H");
$minuti     date("i");
$secondi     date("s");
$regdate     mktime($ore$minuti$secondi$mese$giorno$anno); 


$query_user     "SELECT `username` FROM `$prefix$lang[22]` WHERE `username`='" $_POST['user'] . "'";
$result_user     mysql_query($query_user) or die("Errore:".mysql_error());
$User_register     mysql_num_rows($result_user);

    if(
$User_register) {
         die(
'$lang[53]'); 
        
function 
get_sql()
{

$SQL = array();

$SQL[] = "CREATE TABLE `$prefix$lang[21]`..."
$SQL[] = "CREATE TABLE `$prefix$lang[22]`..."
$SQL[] = "CREATE TABLE `$prefix$lang[23]`..."

                
    
return $SQL;
    }

?>
mi da errore dove c'è ?>

questi$template = new template; $template->print_top('completato!');

stanno bene?per come è fatta la pagina?centrano con l'errore?