Esempio n. 1
0
 /**
  * Sets some variables needed by the _updaterManage.twig template.
  *
  * @param View $view
  */
 private function setUpdaterManageVars($view)
 {
     $urls = GeoIPAutoUpdater::getConfiguredUrls();
     $view->geoIPLocUrl = $urls['loc'];
     $view->geoIPIspUrl = $urls['isp'];
     $view->geoIPOrgUrl = $urls['org'];
     $view->geoIPUpdatePeriod = GeoIPAutoUpdater::getSchedulePeriod();
     $view->geoLiteUrl = GeoIp::GEO_LITE_URL;
     $lastRunTime = GeoIPAutoUpdater::getLastRunTime();
     if ($lastRunTime !== false) {
         $view->lastTimeUpdaterRun = '<strong>' . $lastRunTime->toString() . '</strong>';
     }
     $view->nextRunTime = GeoIPAutoUpdater::getNextRunTime();
 }