You can enrich your website with your own weather channel, were all weather conditions from any place of the world will look as you want to be, using the most reliable weather forecast source and combining with the most professional style.
System tag [mod_weather].';
$modul['ModuleAutor'] = "N. Popova, npop@abv.bg"; // Автор
$modul['ModuleCopyright'] = '© 2016 npop@abv.bg'; //
$modul['ModuleIsFunction'] = 1;
$modul['ModuleAdminEdit'] = 1;
$modul['ModuleFunction'] = 'mod_weather';
$modul['ModuleTag'] = '[mod_weather]';
$modul['ModuleTagLink'] = null;
$modul['ModuleAveTag'] = "#\\\[mod_weather]#";
$modul['ModulePHPTag'] = "";
}
function mod_weather()
{
require_once(BASE_DIR . "/modules/weather/class.weather.php");
$weather = new Weather();
$tpl_dir = BASE_DIR . '/modules/weather/templates/';
$lang_file = BASE_DIR . "/modules/weather/lang/" . $_SESSION['user_language'] . ".txt";
if (! is_file(BASE_DIR . '/cache/')) {@mkdir(BASE_DIR . '/cache/', 0777);}
$weather->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;
}
}
?>