New Backup Restore System

This commit is contained in:
Ibnu Maksum
2023-10-27 10:36:10 +07:00
parent 90cfc3e6d9
commit c8d19a859f
7 changed files with 110 additions and 135 deletions

View File

@ -126,9 +126,15 @@ function _notify($msg, $type = 'e')
$_SESSION['ntype'] = $type;
$_SESSION['notify'] = $msg;
}
if(empty($config['language'])){
$config['language'] = 'english';
}
$lan_file = File::pathFixer('system/lan/' . $config['language'] . '/common.lan.php');
require $lan_file;
if(file_exists($lan_file)){
require $lan_file;
}else{
die("$lan_file not found");
}
$ui = new Smarty();