require('inc/libs/security_functions.php');
// Init start time
-$GLOBALS['__start_time'] = microtime(true);
+$GLOBALS['__start_time'] = microtime(TRUE);
/*
* Set output to "AJAX mode", proper module and prevent HTML headers/footers
// Process the request
processAjaxRequest();
- // Do we have an error? ('200 OK' is fine)
- if ((getHttpStatus() != '200 OK') && (getHttpStatus() != '404 NOT FOUND')) {
+ // Is there an error which is not fine?
+ if (!isAjaxHttpStatusAccepted()) {
// The process was handled but didn't work
reportBug(__FUNCTION__, __LINE__, 'AJAX request is valid but does not do anything.');
} // END - if