// Is a database link here and not in installation mode?
if ((!SQL_IS_LINK_UP()) && (!isInstalling())) {
// Abort here
- addFatalMessage(__FUNCTION__, __LINE__, getMessage('FILTER_FLUSH_FAILED_NO_DATABASE'));
+ addFatalMessage(__FUNCTION__, __LINE__, '{--FILTER_FLUSH_FAILED_NO_DATABASE--}');
return false;
} // END - if
if ($compiled === true) {
// Run the code
$eval = "\$GLOBALS['compiled_config'][\$uncompiled] = \"" . $GLOBALS['compiled_config'][$uncompiled] . '";';
- //* DEBUG: */ debugOutput(__FUNCTION__.'['.__LINE__.']:<pre>' . str_replace('$', '$', htmlentities($eval)) . '</pre>');
+ //* DEBUG: */ debugOutput(__FUNCTION__.'['.__LINE__.']:<pre>' . encodeEntities($eval) . '</pre>');
eval($eval);
} // END - if
// Runs some generic filter update steps
function FILTER_UPDATE_EXTENSION_DATA ($ext_name) {
- // Create task
+ // Create task (we ignore the task id here)
createExtensionUpdateTask(getCurrentAdminId(), $ext_name, $GLOBALS['update_ver'][$ext_name], SQL_ESCAPE(getExtensionNotes(getExtensionNotes())));
// Update extension's version
}
// Message to regular users (non-admin)
- $CORR = getMessage('FATAL_REPORT_ERRORS');
+ $CORR = '{--FATAL_REPORT_ERRORS--}';
// PHP warnings fixed
if ($check == 'done') {
- if (isAdmin()) $CORR = getMessage('FATAL_CORRECT_ERRORS');
+ if (isAdmin()) $CORR = '{--FATAL_CORRECT_ERRORS--}';
} // END - if
// Remember all in array
$GLOBALS['admin_login_success'] = ((
setSession('admin_md5', encodeHashForCookie($data['pass_hash']))
) && (
- setSession('admin_login', $data['login'])
+ setSession('admin_id', $data['id'])
) && (
setSession('admin_last', time())
));