• Database settings
  • *
  • Paths to files
  • *
  • Session settings
  • *
  • Non standard formatted settings that wont go in the database (e.g. 2 dimensional arrays)
  • * All other variables are now loaded from the database in application_header * v1.7.4 27/02/2009 14:41 * @version 1.7.4 * @package thechief **/ // Only database type fully tested is mysql $database['type'] = 'mysql'; // development server $database['server'] = 'hostingmysql304.webapps.net'; $database['username'] = '2ae24f-u10117516'; $database['password'] = 'SHeugH38'; $database['dbname'] = '2ae24f-u10117516'; // live server /*$database['server'] = 'localhost'; $database['username'] = 'root'; $database['password'] = ''; $database['dbname'] = 'cms';*/ // Prefix database tables // This is to allow several instances of the CMS in the same database by prefixing all database tables with this string // This feature is only partially tested $database['prefix'] = ''; //$database['debug'] = true; $database['debug'] = false; /* Most of these paths are self configuring and shouldnt need to be changed from the default */ // If you are using 'fake' content pages in fake subdirectories you need to fix web_root and URL as these become unreliable if (isset($_SERVER['PATH_TRANSLATED'])) { $system['web_root'] = str_replace('\\', '/', realpath(dirname($_SERVER['PATH_TRANSLATED'])).'/'); } else { $system['web_root'] = str_replace('\\', '/', dirname($_SERVER['SCRIPT_FILENAME']).'/'); } $system['host'] = "http".(isset($_SERVER['HTTPS'])=='on'?'s':'').'://'.$_SERVER['HTTP_HOST'].(($_SERVER['SERVER_PORT']=='80'||$_SERVER['SERVER_PORT']=='443')?'':":".$HTTP_SERVER_VARS['SERVER_PORT']); // add the http or https bit on the front, plus server port $system['URL'] = $system['host']; if (dirname($_SERVER['PHP_SELF']) != '/') { $system['URL'] = $system['URL'].dirname($_SERVER['PHP_SELF']); } $system['URL'] = $system['URL'].'/'; $system['fontPath'] = $system['web_root']; $system['mediaURL'] = $system['URL'].'media/'; $system['titleURL'] = $system['URL'].'media/generated/'; // The following paths should be writeable $system['mediapath'] = $system['web_root'].'media/'; $system['titlepath'] = $system['web_root'].'media/generated/'; // This is used in several places, notably session names and the default template directory $system['clientname'] = "cscb"; // Not worth having a database entry for just this... $system['sex'][0] = "Please Select..."; $system['sex'][1] = "Male"; $system['sex'][2] = "Female"; // All settings below should be moved to the database is due course $smileys = array( ':)' => '/template/'.$system['clientname'].'/images/smilies/smile.gif', ';)' => '/template/'.$system['clientname'].'/images/smilies/wink.gif', ':D' => '/template/'.$system['clientname'].'/images/smilies/biggrin.gif', ':\\' => '/template/'.$system['clientname'].'/images/smilies/ok.gif', ':|' => '/template/'.$system['clientname'].'/images/smilies/geno.gif', ':o' => '/template/'.$system['clientname'].'/images/smilies/eek.gif', ':O' => '/template/'.$system['clientname'].'/images/smilies/monocle.gif', '^_^' => '/template/'.$system['clientname'].'/images/smilies/keke.gif', ':(' => '/template/'.$system['clientname'].'/images/smilies/frown.gif', ':heart:' => '/template/'.$system['clientname'].'/images/smilies/love.gif', ':v' => '/template/'.$system['clientname'].'/images/smilies/v.gif', ':woop:' => '/template/'.$system['clientname'].'/images/smilies/woop.gif', '8)' => '/template/'.$system['clientname'].'/images/smilies/cool.gif', 'o_O' => '/template/'.$system['clientname'].'/images/smilies/gonk-light.gif', ':B' => '/template/'.$system['clientname'].'/images/smilies/haw.gif', '=)' => '/template/'.$system['clientname'].'/images/smilies/shobon.gif', ':ninja:' => '/template/'.$system['clientname'].'/images/smilies/ninja.gif', ':doh:' => '/template/'.$system['clientname'].'/images/smilies/doh.gif', ':hehe:' => '/template/'.$system['clientname'].'/images/smilies/hehe.gif', ':dance:' => '/template/'.$system['clientname'].'/images/smilies/dance.gif', ':eek:' => '/template/'.$system['clientname'].'/images/smilies/eek.gif', ':rolleyes:' => '/template/'.$system['clientname'].'/images/smilies/rolleyes.gif', ':tinfoil:' => '/template/'.$system['clientname'].'/images/smilies/tinfoil.gif', '\:)' => '/template/'.$system['clientname'].'/images/smilies/raise.gif', ':what:' => '/template/'.$system['clientname'].'/images/smilies/what.gif', ':\'(' => '/template/'.$system['clientname'].'/images/smilies/crying.gif', ':3' => '/template/'.$system['clientname'].'/images/smilies/3.gif', ':101:' => '/template/'.$system['clientname'].'/images/smilies/eng101.gif', ); /** Dont store in database in case of database compromise **/ $system['AESkey'] = ''; $system['creditcards']['VISA'] = 'Visa'; $system['creditcards']['MASTERCARD'] = 'Mastercard'; $system['orderstatus'] = array( -1 => 'Cancelled', 0 => 'Incomplete', 1 => 'Awaiting Authorisation', 2 => 'Paid - Awaiting delivery', 3 => 'Complete', ); /** Errors are configured before we load settings **/ $system['customerrors'] = true; $system['lang'] = 'en'; if (isset($_GET['testmenu']) && $_GET['testmenu'] == 1) { $_SESSION['testmenu'] = 1; } if (isset($_SESSION['testmenu']) && $_SESSION['testmenu'] == 1) { $_GET['testmenu'] = 1; } if (isset($_GET['testmenu']) && $_GET['testmenu'] == 0) { $_SESSION['testmenu'] = 0; } ?>

    ADONewConnection: Unable to load database driver ''