2012/1/26 Jon Phillips <[email protected]>

> Ok, just merged configs/defs.php into configs/config.php, however, I
> realized that there are some installations that require defs.php from
> a certain time period. There are actual defines necessary for the
> system, so the following thinking needs to influence if I should bring
> back a minimized defs.php.
>
>
There is other problem. Now you can update aiki copying all files (similar
as "bzr pull"). Thats work because a aiki installation  doesn't touch any
file (thanks bassel). So.. or not include a def.php or aiki must make a
copy (like config.php).



> Now that configs/config.php file is too damn big.
>
>
yes..but some definitions can be removed.

Essentials (can't be removed from config and can't be loaded before
connection exists.)
define("AIKI_REWRITE_BASE", "@AIKI_REWRITE_BASE@");
define("AIKI_SITE_URL", "@AIKI_SITE_URL@");
define("AIKI_RANDOM", "@AIKI_RANDOM@");

$config["db_type"] = DB_TYPE;
$config["db_name"] = DB_NAME;
$config["db_user"] = DB_USER;
$config["db_pass"] = DB_PASS;
$config["db_host"] = DB_HOST;
$config["db_encoding"] = DB_ENCODE;
$config["db_use_mysql_set_charset"] = false;
$config["db_path"] = '';
$config["db_dsn"] = '';
$config["db_cache_timeout"] = 24;
$config["cache_dir"] = "cache";

$config["enable_query_cache"] = false;
$config["allow_multiple_databases"] = false;

$config["register_errors"] = false;
$config["debug"] = false;

MUST BE corrected.
Logs defined twice (as constant and config)
    define("AIKI_LOG_DIR", "@AIKI_LOG_DIR@");
    define("AIKI_LOG_FILE", "@AIKI_LOG_FILE@");
    define("AIKI_LOG_PROFILE", "@AIKI_LOG_PROFILE@");
    define("AIKI_LOG_LEVEL", "@AIKI_LOG_LEVEL@");
$config["log_dir"] = AIKI_LOG_DIR;
$config["log_file"] = AIKI_LOG_FILE;
$config["log_profile"] = AIKI_LOG_PROFILE;
$config["log_level"] = AIKI_LOG_LEVEL;
(imho, only webmasters could be enable log, so we only need coment config
options..)

OBSOLETE
    define("E_RECOVERABLE_ERROR", 4096);
    define("E_DEPRECATED", 8192);
    define("E_USER_DEPRECATED", 16384);

USELESS..updater doesn't work
    define("AIKI_SAVE_DIR", "@AIKI_SAVE_DIR@");
    define("AIKI_DOWNLOAD_DIR", "@AIKI_DOWNLOAD_DIR@");
    define("AIKI_BACKUP_DIR", "@AIKI_BACKUP_DIR@");
    define("AIKI_UPDATE_DIR", "@AIKI_UPDATE_DIR@");
    define("AIKI_UPDATE_URL", "http://aikiframework.org/files/update";);
    define("AIKI_UPDATE_CHECK", true);
    define("AIKI_UPDATE_PATH",
    define("AIKI_UPDATE_PREFIX", "aiki-src-");
    define("AIKI_UPDATE_EXT", ".zip");
    define("AIKI_SUM_EXT", ".shasum-256.txt");
    define("AIKI_UPDATE_RETRY", 3);
    define("AIKI_UPDATE_CONFIG", false);



The rest can be moved to database and loadedd/save by new config class

Note that bootstrap process for config setting is
0) at start only file defined setting can exists.
1) after connection some settings stored in db can exists..but
2) aiki need to check aiki_sites and url,  to set domain/view/langage..
3) config class can work

Roger

a volunteer to make the job?


Roger
_______________________________________________
Mailing list: https://launchpad.net/~aikiframework-devel
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~aikiframework-devel
More help   : https://help.launchpad.net/ListHelp

Reply via email to