/**
* cmsdAm is a powerful, simple, scalable, quick, secure, GPL released, PHP4 written from scratch
* Content Management System framework. It is specially designed for people having some basic
* PHP knowledge. You can create powerful professional sites in a while using cmsdAm, and you
* don't have to rewrite each time php code for handle each section, users, search engine, ecc.
* cmsdAm do all the work for you! You just have to configure it, and write HTML or PHP code
* for your sections. You don't have to care about mails, HTTP headers, HTML strange tags, META
* tags, HTTP cache mechanisms, ecc, just write HTML or PHP code for your sections.
*
* Enjoy!!! Dino Ciuffetti - dam2k@users.sourceforge.net
*
*
* 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; version 2 of the License.
*
* 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 (COPYING); if not, go to http://www.fsf.org/ or write
* to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
* MA 02111-1307, USA.
*
*/
if ($step == "") {
echo "Please go away.";
exit();
}
// DB settings
$db_server = $_REQUEST['db_server'];
$db_name = $_REQUEST['db_name'];
$db_user = $_REQUEST['db_user'];
// $db_password = $_REQUEST['db_password']; // Not sent for security reasons
$db_tblprefix = $_REQUEST['db_tblprefix'];
$db_type = $_REQUEST['db_type'];
$errflag = $_REQUEST['errors'];
$dbnotsupported = $_REQUEST['dbnotsupported'];
if ($db_type == "") { // Checking up file permission
$facility = "check";
require("config.default.do.php");
if ($error == true) { // File permission problems
//echo "DEBUG: Mancano i permessi per scrivere sulla directory corrente
";
echo " Permessi di scrittura su file
";
echo "Problema: Problemi di permessi sulla directory di installazione " . getcwd() . "
";
echo "Soluzione: Eseguire da utente root il comando \"rm -f " . getcwd() . "/config.php && chmod 0777 " . getcwd() . "\".
";
echo "Successivamente ricaricare questa pagina.";
exit (1);
}
}
if (($errflag == "") || ($errflag == 0)) { // No errors detected from next step
// Fields DEFAULT values
include("config.default.php");
$db_server = $DB_servername;
$db_name = $DB_name;
$db_user = $DB_username;
$db_password = $DB_password;
$db_tblprefix = $DB_tbl_prefix;
$db_type = $DB_type;
}
?>
Configurazione del database
Dalla versione 0.8 Stable di cmsdAm, c'e' bisogno di un RDBMS per poter utilizzare tutte le funzionalita' avanzate del CMS. Per questo scopo bisogna chiedere all'amministratore di sistema i parametri per poter accedere in lettura e scrittura al database. La cosa migliore da fare e' creare un db apposito ed impostare i relativi parametri nei campi sottostanti. Il sistema sara' in grado di verificare se l'RDBMS e' compatibile con cmsdAm.
ATTENZIONE: Una eventuale vecchia versione del DB di cmsdAm verra' cancellata!!
Prima di procedere controllare che non ci siano vecchi dati di cmsdam sul database in questione. Le tabelle esterne a cmsdam
non verranno assolutamente toccate.