return (!empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest');
}
+/**
+ * @brief Function to check if request was an AJAX (xmlhttprequest) request.
+ *
+ * @param $via_worker boolean Is the check run via the poller?
+ */
function check_db($via_worker) {
$build = get_config('system', 'build');
Config::load();
+ // Check the database structure and possibly fixes it
+ check_db(true);
+
// Quit when in maintenance
if (Config::get('system', 'maintenance', true)) {
return;
}
if (array_search(__file__,get_included_files())===0) {
- // Check the database structure and possibly fixes it
- check_db(true);
-
poller_run($_SERVER["argv"],$_SERVER["argc"]);
poller_unclaim_process();