示例#1
0
 /**
  * Get fieldset for server data
  * @return \FormularFieldset
  */
 private function getServerDataFieldset()
 {
     $Fieldset = new FormularFieldset(__('Server information'));
     $Fieldset->addSmallInfo(__('PHP version:') . ' ' . PHP_VERSION);
     $Fieldset->addSmallInfo(__('MySQL version:') . ' ' . DB::getInstance()->getAttribute(PDO::ATTR_SERVER_VERSION));
     $Fieldset->addSmallInfo(__('Time limit:') . ' ' . ini_get('max_execution_time'));
     $Fieldset->addSmallInfo(__('Memory limit:') . ' ' . ini_get('memory_limit'));
     $Fieldset->addSmallInfo(__('Upload limit:') . ' ' . ini_get('upload_max_filesize'));
     $Fieldset->addSmallInfo(__('Post limit:') . ' ' . ini_get('post_max_size'));
     if (Shell::isPerlAvailable()) {
         $Fieldset->addSmallInfo(__('Perl scripts can be used.'));
     } else {
         $Fieldset->addWarning(__('Perl scripts cannot be used.'));
     }
     $Fieldset->setCollapsed();
     return $Fieldset;
 }
 /**
  * Display elevation correction
  */
 protected function displayInformation()
 {
     $Fieldset = new FormularFieldset(__('Note for elevation data'));
     $Fieldset->setId('general-information');
     $Fieldset->setCollapsed();
     $Fieldset->addSmallInfo(__('The calculation of elevation data is very difficult - there is not one single solution. ' . 'Bad gps data can be corrected via srtm-data but these are only available in a 90x90m grid and not always perfectly accurate. ' . 'In addition, every platform uses another algorithm to determine the elevation value (for up-/downwards). ' . 'We give you therefore the possibility to choose algorithm and threshold such that the values fit your experience.'));
     $Fieldset->display();
 }