First step to clean up all files that are not mandatory for outside access * move all header/footer/smarty/set_paths/config files (inc) into includes/ folder * generate basic config.php that JUST loads the config.inc file (search) * config.inc file has sub sections for db access arrays and host configs, so config.inc is more static * Also move edit base and template arrays to the include folder * move the language po files to the 4dev folder as they do not need to sit outside * remove not maintained "files.php" TODO: split out templates and language files into external layout group perhaps drop the whole sub template include path thing as this is actually never really used and more annoying to maintain eg: layout/frontend/default/ -> layout/frontend eg: layout/fronend/default/template -> includes/frontend/template Also check splitting out the NOT define parts of the config.inc file G_TITLE, EDIT_STYLESHEET, EDIT_JAVASCRIPT, STYLESHEET, JAVASCRIPT to default define?
34 lines
991 B
PHP
Executable File
34 lines
991 B
PHP
Executable File
<?php
|
|
/********************************************************************
|
|
* AUTHOR: Clemens Schwaighofer
|
|
* CREATED: 2018/10/11
|
|
* SHORT DESCRIPTION:
|
|
* configuration file for core host settings
|
|
* - DB access name (array group from config.db)
|
|
* - location (test/stage/live)
|
|
* - debug flag (true/false)
|
|
* - DB path (eg PUBLIC_SCHEMA)
|
|
* - stie lang
|
|
* HISTORY:
|
|
*********************************************************************/
|
|
|
|
// each host has a different db_host
|
|
// development host
|
|
$DB_HOST['soba.tokyo.tequila.jp'] = 'test';
|
|
// target host (live)
|
|
// $DB_TARGET_HOST['soba'] = '<DB ID>';
|
|
// url redirect database
|
|
// $DB_URL_REDIRECT_HOST['soba'] = '<DB ID>';
|
|
// location flagging
|
|
// test/dev/live
|
|
$LOCATION['soba.tokyo.tequila.jp'] = 'test';
|
|
// show DEBUG override
|
|
// true/false
|
|
$DEBUG_FLAG['soba.tokyo.tequila.jp'] = true;
|
|
// set postgresql paths (schemas)
|
|
$DB_PATH['soba.tokyo.tequila.jp'] = PUBLIC_SCHEMA;
|
|
// site language
|
|
$SITE_LANG['soba.tokyo.tequila.jp'] = 'en_utf8';
|
|
|
|
// __END__
|