require_once "../../maincore.php";
require_once THEMES."templates/header.php";
// Check if locale file is available matching the current site locale setting.
if (file_exists(INFUSIONS."news_map/locale/".$settings['locale'].".php")) {
// Load the locale file matching the current site locale setting.
include INFUSIONS."news_map/locale/".$settings['locale'].".php";
} else {
// Load the infusion's default locale file.
include INFUSIONS."news_map/locale/English.php";
}
{
opentable($locale['SM100'].": ".$settings['sitename']);
}
//news
$result = dbquery("SELECT * FROM ".DB_NEWS." ORDER BY news_datestamp DESC");
$rows = dbrows($result);
if ($rows!=0) {
echo "";
echo "".$locale['SM120']."";
echo "";
";
while ($data = dbarray($result)) {
echo " ".$data['news_subject']."
";
}
echo "
}
closetable();
require_once THEMES."templates/footer.php";
?>
if (!defined("IN_FUSION") || !checkrights("I")) { header("Location: ../../index.php"); exit; }
if (!defined("LANGUAGE")) {
define("LANGUAGE", $settings['locale']);
}
// Check if locale file is available matching the current site locale setting.
if (file_exists(INFUSIONS."news_map/locale/".LANGUAGE.".php")) {
// Load the locale file matching the current site locale setting.
include INFUSIONS."news_map/locale/".LANGUAGE.".php";
} else {
// Load the infusion's default locale file.
include INFUSIONS."news_map/locale/English.php";
}
// Infusion general information
$inf_title = "News Map";
$inf_description = $locale['SM101'];
$inf_version = "1.0";
$inf_developer = "JOO";
$inf_email = "";
$inf_weburl = "";
$inf_folder = "news_map";
$inf_sitelink[1] = array(
"title" => $locale['SM100'],
"url" => "news_map.php",
"visibility" => "0"
);
?>