summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/googlemap/admin_places.php19
1 files changed, 9 insertions, 10 deletions
diff --git a/modules/googlemap/admin_places.php b/modules/googlemap/admin_places.php
index 4274fce4c4..8ab6afc0ae 100644
--- a/modules/googlemap/admin_places.php
+++ b/modules/googlemap/admin_places.php
@@ -148,18 +148,9 @@ function findFiles($path) {
}
}
-print_header(WT_I18N::translate('Edit geographic place locations'));
-
if (!WT_USER_IS_ADMIN) {
- echo '<div>', WT_I18N::translate('Page only for Administrators'), '</div>';
- print_footer();
+ header('Location: '.WT_SERVER_NAME.WT_SCRIPT_PATH.'admin.php');
exit;
-} else {
- echo '<table id="gm_config"><tr>',
- '<th><a ', (safe_GET('mod_action')=="admin_editconfig" ? 'class="current" ' : ''), 'href="module.php?mod=googlemap&mod_action=admin_editconfig">', WT_I18N::translate('Manage GoogleMap configuration'), '</a>', help_link('GOOGLEMAP_CONFIG','googlemap'), '</th>',
- '<th><a ', (safe_GET('mod_action')=="admin_places" ? 'class="current" ' : ''), 'href="module.php?mod=googlemap&mod_action=admin_places">', WT_I18N::translate('Edit geographic place locations'), '</a>', help_link('PLE_EDIT','googlemap'), '</th>',
- '<th><a ', (safe_GET('mod_action')=="admin_placecheck" ? 'class="current" ' : ''), 'href="module.php?mod=googlemap&mod_action=admin_placecheck">', WT_I18N::translate('Place Check'), '</a>', help_link('GOOGLEMAP_PLACECHECK','googlemap'), '</th>',
- '</tr></table>';
}
global $GOOGLEMAP_MAX_ZOOM;
@@ -187,6 +178,14 @@ if ($action=="ExportFile" && WT_USER_IS_ADMIN) {
exit;
}
+print_header(WT_I18N::translate('Edit geographic place locations'));
+
+echo '<table id="gm_config"><tr>',
+ '<th><a ', (safe_GET('mod_action')=="admin_editconfig" ? 'class="current" ' : ''), 'href="module.php?mod=googlemap&mod_action=admin_editconfig">', WT_I18N::translate('Manage GoogleMap configuration'), '</a>', help_link('GOOGLEMAP_CONFIG','googlemap'), '</th>',
+ '<th><a ', (safe_GET('mod_action')=="admin_places" ? 'class="current" ' : ''), 'href="module.php?mod=googlemap&mod_action=admin_places">', WT_I18N::translate('Edit geographic place locations'), '</a>', help_link('PLE_EDIT','googlemap'), '</th>',
+ '<th><a ', (safe_GET('mod_action')=="admin_placecheck" ? 'class="current" ' : ''), 'href="module.php?mod=googlemap&mod_action=admin_placecheck">', WT_I18N::translate('Place Check'), '</a>', help_link('GOOGLEMAP_PLACECHECK','googlemap'), '</th>',
+'</tr></table>';
+
if ($action=="ImportGedcom") {
$placelist=array();
$j=0;