feha
Posts: 712
|
| Posted: 03/15/2008, 6:58 PM |
|
Hi
You should try:
<?
$CCConnectionSettings = array (
"cms" => array(
"Type" => "MySQL",
"DBLib" => "MySQL",
"Database" => "my_cms",
"Host" => "localhost",
"Port" => "",
"User" => "root",
"Password" => "",
"Encoding" => array("", "utf8"),
"Persistent" => true,
"DateFormat" => array("yyyy", "-", "mm", "-", "dd", " ", "HH", ":", "nn", ":", "ss"),
"BooleanFormat" => array(1, 0, ""),
"Uppercase" => false
)
);
?>
make an include file ( config.php)
and put this code on it
edit your Common.php
put this right after : //End Connection Settings
//End Connection Settings
if(file_exists(RelativePath ."/config.php") )
{
include_once(RelativePath ."/config.php");
}
your new connection array will overide the first one ...
than you can put some condition at
if(file_exists(RelativePath ."/config.php") && your condition here ... )
if condition is met than your new connection will be included ...
note: the "cms" should be replaced with your connection name ...
this might not solve your complete problem but at least you can switch connections per condition
enjoy
_________________
Regards
feha
www.vision.to
feedpixel.com |