'noaccess']); } else { include 'general/noaccess.php'; } exit; } // AJAX controller. if (is_ajax()) { $method = get_parameter('method'); if (method_exists('PandoraFMS\Group', $method) === true) { if (Group::ajaxMethod($method) === true) { Group::{$method}(); } else { Group::error('Unavailable method.'); } } else { Group::error('Method not found. ['.$method.']'); } // Stop any execution. exit; } else { // Run. $cs->run(); }