feha
Posts: 712
|
Posted: 02/12/2006, 12:55 AM |
|
First open Common.php
add this line in "whitespace"
//Include Files @0-6CA7C540
include(RelativePath . "/Classes.php");
include(RelativePath . "/db_mysql.php");
//End Include Files
if (file_exists(RelativePath . "/Config.php")) {
include(RelativePath . "/Config.php");
}
//Connection Settings @0-D7BA4D44
The Config file must have:
//====================================================================
//DB CONNECTION
global $_DB_HOST, $_DB_PORT, $_DB_NAME, $_DB_USER, $_DB_PASSWORD ;
$_DB_HOST = ""; $_DB_PORT = ""; $_DB_NAME = ""; $_DB_USER = ""; $_DB_PASSWORD = "";
$_DB_HOST = "localhost";
$_DB_PORT = "";
$_DB_NAME = "1_cms";
$_DB_USER = "root";
$_DB_PASSWORD = "";
//====================================================================
Project Settings -> Connections -> (select your connection) ...
Modify -> Server ->
Instead of real names insert variables as:
$_DB_NAME, ... $_DB_HOST even for password $_DB_PASSWORD ...
After you regenerate files the Common.php will be changed by CCS (3.0)
as follows:
//Connection Settings @0-D7BA4D44
$CCConnectionSettings = array (
"cms" => array(
"Type" => "MySQL",
"Database" => "$_DB_NAME",
"Host" => "$_DB_HOST",
"Port" => "$_DB_PORT",
"User" => "$_DB_USER",
"Password" => "$_DB_PASSWORD",
"Encoding" => array("", "utf8"),
"Persistent" => true,
"DateFormat" => array("yyyy", "-", "mm", "-", "dd", " ", "HH", ":", "nn", ":", "ss"),
"BooleanFormat" => array(1, 0, ""),
"Uppercase" => false
)
);
//End Connection Settings
So the code will be still compatible with Codecharge and will not be overwritten.
enjoy
_________________
Regards
feha
www.vision.to
feedpixel.com |