From 3a66749533ae4ec372c95f7b0a6363efa4f5d294 Mon Sep 17 00:00:00 2001 From: fisharebest Date: Thu, 4 Aug 2011 19:03:17 +0000 Subject: #821050 - Error calling page after update to 1.2.2 --- modules_v3/googlemap/admin_editconfig.php | 407 ++++++++++++++++++++++++++++++ 1 file changed, 407 insertions(+) create mode 100644 modules_v3/googlemap/admin_editconfig.php (limited to 'modules_v3/googlemap/admin_editconfig.php') diff --git a/modules_v3/googlemap/admin_editconfig.php b/modules_v3/googlemap/admin_editconfig.php new file mode 100644 index 0000000000..1bf8f363bd --- /dev/null +++ b/modules_v3/googlemap/admin_editconfig.php @@ -0,0 +1,407 @@ + +
"> + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + +
+ + + +
+
+', WT_I18N::translate('Page only for Administrators'), ''; + print_footer(); + exit; +} else { + echo '', + '', + '', + '', + '
', WT_I18N::translate('Google Maps configuration'), '', '', WT_I18N::translate('Edit geographic place locations'), '', '', WT_I18N::translate('Place Check'), '', help_link('GOOGLEMAP_PLACECHECK','googlemap'), '
'; +} + +if ($action=="update" && !isset($security_user)) { + set_module_setting('googlemap', 'GM_MAP_TYPE', $_POST['NEW_GM_MAP_TYPE']); + set_module_setting('googlemap', 'GM_USE_STREETVIEW', $_POST['NEW_GM_USE_STREETVIEW']); + set_module_setting('googlemap', 'GM_MIN_ZOOM', $_POST['NEW_GM_MIN_ZOOM']); + set_module_setting('googlemap', 'GM_MAX_ZOOM', $_POST['NEW_GM_MAX_ZOOM']); + set_module_setting('googlemap', 'GM_XSIZE', $_POST['NEW_GM_XSIZE']); + set_module_setting('googlemap', 'GM_YSIZE', $_POST['NEW_GM_YSIZE']); + set_module_setting('googlemap', 'GM_PRECISION_0', $_POST['NEW_GM_PRECISION_0']); + set_module_setting('googlemap', 'GM_PRECISION_1', $_POST['NEW_GM_PRECISION_1']); + set_module_setting('googlemap', 'GM_PRECISION_2', $_POST['NEW_GM_PRECISION_2']); + set_module_setting('googlemap', 'GM_PRECISION_3', $_POST['NEW_GM_PRECISION_3']); + set_module_setting('googlemap', 'GM_PRECISION_4', $_POST['NEW_GM_PRECISION_4']); + set_module_setting('googlemap', 'GM_PRECISION_5', $_POST['NEW_GM_PRECISION_5']); + set_module_setting('googlemap', 'GM_DEFAULT_TOP_VALUE', $_POST['NEW_GM_DEFAULT_TOP_LEVEL']); + set_module_setting('googlemap', 'GM_MAX_NOF_LEVELS', $_POST['NEW_GM_LEVEL_COUNT']); + set_module_setting('googlemap', 'GM_COORD', $_POST['NEW_GM_COORD']); + set_module_setting('googlemap', 'GM_PLACE_HIERARCHY', $_POST['NEW_GM_PLACE_HIERARCHY']); + set_module_setting('googlemap', 'GM_PH_XSIZE', $_POST['NEW_GM_PH_XSIZE']); + set_module_setting('googlemap', 'GM_PH_YSIZE', $_POST['NEW_GM_PH_YSIZE']); + set_module_setting('googlemap', 'GM_PH_MARKER', $_POST['NEW_GM_PH_MARKER']); + set_module_setting('googlemap', 'GM_DISP_SHORT_PLACE', $_POST['NEW_GM_DISP_SHORT_PLACE']); + set_module_setting('googlemap', 'GM_PH_WHEEL', $_POST['NEW_GM_PH_WHEEL']); + set_module_setting('googlemap', 'GM_PH_CONTROLS', $_POST['NEW_GM_PH_CONTROLS']); + set_module_setting('googlemap', 'GM_DISP_COUNT', $_POST['NEW_GM_DISP_COUNT']); + + for ($i=1; $i<=9; $i++) { + set_module_setting('googlemap', 'GM_PREFIX_'.$i, $_POST['NEW_GM_PREFIX_'.$i]); + set_module_setting('googlemap', 'GM_POSTFIX_'.$i, $_POST['NEW_GM_POSTFIX_'.$i]); + set_module_setting('googlemap', 'GM_PRE_POST_MODE_'.$i, $_POST['NEW_GM_PRE_POST_MODE_'.$i]); + } + + AddToLog('Googlemap config updated', 'config'); + // read the config file again, to set the vars + require WT_ROOT.WT_MODULES_DIR.'googlemap/defaultconfig.php'; +} + +?> + + + + +jQuery(document).ready(function() { +jQuery("#tabs").tabs(); +}); +', + ''; +?> +
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + + + +
+ +
+ : + : +
+
+
+ + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + +
     +
     +
     +
     +
     +
     +
+
+ +
+ + ', + '', + '', + '', + ''; + ?> +
', print_level_config_table(1), '', print_level_config_table(2), '
', print_level_config_table(3), '', print_level_config_table(4), '
', print_level_config_table(5), '', print_level_config_table(6), '
', print_level_config_table(7), '', print_level_config_table(8), '
', print_level_config_table(9), ' 
+
+
+ +

+ +    + +

+
+"; +} -- cgit v1.3