/** * Reload * * @return void */ public function reload($flagOnly = false) { $this->db->query("UPDATE acl_groups SET acl_group_changed = 1"); $this->db->query("UPDATE acl_resources SET changed = 1"); if ($flagOnly == false) { passthru('php ' . CentreonUtils::getCentreonPath() . '/cron/centAcl.php'); } }
/** * Checks if language exists * * @param string $locale * @return bool */ protected function checkLang($locale) { if (!$locale || $locale == "") { return true; } if (strtolower($locale) == "en_us") { return true; } $dir = CentreonUtils::getCentreonPath() . "/www/locale/{$locale}"; if (is_dir($dir)) { return true; } return false; }