update_basic.php 946 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * @todo cleanup
  4. */
  5. $form_body = "";
  6. foreach (array('sitename','sitedescription', 'siteemail', 'default_limit') as $field) {
  7. $form_body .= "<div>";
  8. $form_body .= elgg_echo('installation:' . $field) . "<br />";
  9. $warning = elgg_echo('installation:warning:' . $field);
  10. if ($warning != 'installation:warning:' . $field) {
  11. echo "<b>" . $warning . "</b><br />";
  12. }
  13. $value = elgg_get_config($field);
  14. $form_body .= elgg_view("input/text",array('name' => $field, 'value' => $value));
  15. $form_body .= "</div>";
  16. }
  17. $languages = get_installed_translations();
  18. $form_body .= "<div>" . elgg_echo('installation:language');
  19. $form_body .= elgg_view("input/select", array(
  20. 'name' => 'language',
  21. 'value' => elgg_get_config('language'),
  22. 'options_values' => $languages,
  23. )) . "</div>";
  24. $form_body .= '<div class="elgg-foot">';
  25. $form_body .= elgg_view('input/submit', array('value' => elgg_echo("save")));
  26. $form_body .= '</div>';
  27. echo $form_body;