Re: XOOPS 2.5 - A propos de l'installation / de la mise à jour | Titre du sujet : Re: XOOPS 2.5 - A propos de l'installation / de la mise à jour par caradoc sur 22/10/2010 00:06:00
Pour résumer simplement, dans votre mainfile.php, vous déplacez les informations (en exemple) ci-dessous dans secure.php
// Database
// Choose the database to be used
define( 'XOOPS_DB_TYPE', 'mysql' );
// Set the database charset if applicable
if (defined("XOOPS_DB_CHARSET")) die('Restricted Access');
define( 'XOOPS_DB_CHARSET', 'utf8' );
// Table Prefix
// This prefix will be added to all new tables created to avoid name conflict in the database. If you are unsure, just use the default "xoops".
define( 'XOOPS_DB_PREFIX', 'x41e' );
// Database Hostname
// Hostname of the database server. If you are unsure, "localhost" works in most cases.
define( 'XOOPS_DB_HOST', 'localhost' );
// Database Username
// Your database user account on the host
define( 'XOOPS_DB_USER', 'root' );
// Database Password
// Password for your database user account
define( 'XOOPS_DB_PASS', 'root' );
// Database Name
// The name of database on the host. The installer will attempt to create the database if not exist
define( 'XOOPS_DB_NAME', 'ajeter1' );
// Use persistent connection? (Yes=1 No=0)
// Default is "Yes". Choose "Yes" if you are unsure.
define( 'XOOPS_DB_PCONNECT', 0 );
que vous remplacez dans mainfile.php par :
// Secure file
require XOOPS_VAR_PATH . '/data/secure.php';
et vous remettez ensuite les permissions de lecture seule sur mainfile.php et secure.php
|
|