ShowWeather($tpl_dir, $lang_file); } if (defined('ACP') && ! empty($_REQUEST['moduleaction'])) { require_once(BASE_DIR . "/modules/weather/class/weather.php"); $tpl_dir = BASE_DIR . '/modules/weather/templates/'; $lang_file = BASE_DIR . "/modules/weather/lang/" . $_SESSION['user_language'] . ".txt"; $weather = new Weather(); $AVE_Template->config_load($lang_file, "admin"); switch($_REQUEST['moduleaction']) { case '1': $weather->weatherSettingsEdit($tpl_dir, $lang_file); break; } } ?>