}
} else {
// List access logfiles
- $dir = PATH.LOGS_BASE."/";
+ $dir = PATH.getConfig('logs_base')."/";
if (is_dir($dir)) {
// logs directory does exist
OUTPUT_HTML("<ol>");
- $handle = opendir($dir) or mxchange_die("Cannot open directory ".LOGS_BASE."!");
+ $handle = opendir($dir) or mxchange_die("Cannot open directory ".getConfig('logs_base')."!");
while ($file = readdir($handle)) {
// We currenly only like files with "access" as prefix, should be more flexible!
if (substr($file, 0, 6) == "access") {
OUTPUT_HTML("</ol>");
} else {
// logs directory does not exist
- LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_LOGS_DIR_404_1.LOGS_BASE.ADMIN_LOGS_DIR_404_2);
+ LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_LOGS_DIR_404_1.getConfig('logs_base').ADMIN_LOGS_DIR_404_2);
}
}