mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 20:40:49 +08:00
install import data
This commit is contained in:
@@ -62,11 +62,6 @@ if (file_exists('config/allconfig.php')) {
|
||||
*/
|
||||
|
||||
//load settings from database
|
||||
if (IS_ANNOUNCE) {
|
||||
dbconn_announce();
|
||||
} else {
|
||||
dbconn();
|
||||
}
|
||||
$settings = get_setting();
|
||||
foreach ($settings as $name => $value) {
|
||||
$GLOBALS[strtoupper($name)] = $value;
|
||||
|
||||
@@ -152,7 +152,7 @@ function do_log($log, $level = 'info')
|
||||
if (!empty($TWEAK['logging'])) {
|
||||
$logging = $TWEAK['logging'];
|
||||
}
|
||||
if (!empty($TWEAK['logging'])) {
|
||||
if (($fd = fopen($logging, 'a')) !== false) {
|
||||
$backtrace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 2);
|
||||
$content = sprintf(
|
||||
"[%s] [%s] [%s] %s:%s %s%s%s %s%s",
|
||||
@@ -167,7 +167,8 @@ function do_log($log, $level = 'info')
|
||||
$log,
|
||||
PHP_EOL
|
||||
);
|
||||
file_put_contents($logging, $content, FILE_APPEND);
|
||||
fwrite($fd, $content);
|
||||
fclose($fd);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user