127
$cli_mode = false;
if (isset($_REQUEST['cli']) && ($_REQUEST['cli'] == 'true')) {
$_SESSION['cli'] = true;
if (count($validation_errors) > 0) {
foreach ($validation_errors as $error) {
print($mod_strings['ERR_ERROR_GENERAL']."\n");
print(" " . $error . "\n");
print("Exit 1\n");
exit(1);
}
}
}
break;
}
}
$the_file = 'install/' . clean_string($the_file, 'FILE');
if (is_file($the_file)) {
installerHook('pre_installFileRequire', ['the_file' => $the_file]);
require($the_file);
installerHook('post_installFileRequire', ['the_file' => $the_file]);
} else {
LoggerManager::getLogger()->fatal('Install file not found: ' . $the_file);
}
?>