Codice PHP:
<?php
/**
*
* Mazen's PHP Chat Version 3.0.0B1
* Chat-Script written in PHP
* 2001-04-12
*
* Copyright (c) 2001 Marcel Beerta <marcel@beerta.de>
*
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
*/
$dbhost = "localhost";
$dbuser = "root";
$dbpass = "";
$dbname = "chat3b1";
$basepath = "/home/www/chatb1/chat";
/**
*
* DO NOT CHANGE ANYTHING BELOW IF YOU DON'T KNOW WHAT YOU ARE DOING
*
*/
$includes = array(
1 => "database.inc.php",
2 => "user.inc.php",
3 => "functions.inc.php",
4 => "admin_functions.inc.php",
5 => "pear/ITX.php",
);
while (list(, $include) = each($includes)) {
include $basepath."/include/".$include;
}
$db = new Database($dbhost, $dbuser, $dbpass, $dbname);
if (!empty($_SERVER['PHP_SELF'])) {
session_start();
}
$lang = getConfig("language");
include $basepath."/lang/lang-".$lang.".php";
$deftpl = getConfig("template");
$tplpath = $basepath."/themes/".$deftpl;
?>
questo è il file pero il ho cambiato il db name la pass e admin logicamente.
[MOD]
Per evitare post chilometrici, utilizza i tag di codice
Li ho inseriti io ora nel tuo messaggio
[/MOD]