/**
* This file is part of the »opcodeCMS« PHP-Framework (Version 1.0)
* Copyright by Dominik Jain (core framework) and Anil K. Jain (modules)
* This code may not be changed, copied or distributed without prior permission.
* Please, visit http://www.opcodecms.de for contact information, licensing and support. Encoding check: ÄÖÜ!
*/
$root = "";
include_once "open.inc.php";
include_once "core/config.inc.php";
include_once "modules/module.inc.php";
include_once "core/select_lang.inc.php";
if($frontend_lang == "en") {
$description = $config_startpage_description_en;
$keywords = $config_startpage_keywords_en;
}
else {
$description = $config_startpage_description_de;
$keywords = $config_startpage_keywords_de;
}
if($config_checkframeset)
echo '';
else
echo '';
?>
if(!$config_checkframeset)
include "header.inc.php";
?>
if($config_checkframeset)
include "index.inc.php";
else {
echo "\n\n";
echo ''."\n\n";
echo ''."\n\n";
include "pre_content.inc.php";
if(file_exists("start.inc.txt") && $frontend_lang == "de") {
readfile("start.inc.txt");
}
if(file_exists("start_eng.inc.txt") && $frontend_lang == "en") {
readfile("start_eng.inc.txt");
}
include_once "NewsModule.object.inc.php";
$selectnews = "select news.*, news_categories.category from news left join news_categories on news.category_id=news_categories.id where release_date <= curdate() and IF(expiry_date is null,1,expiry_date >= curdate()) and featured='1' order by news.release_date desc, news.headline limit 5";
if(mysql_num_rows(mysql_query($selectnews))) {
echo '';
if($frontend_lang == "de") {
echo 'Neueste Nachrichten:
';
$NewsModule->listNews($selectnews, 1, false, false, 1, true, 200);
}
else {
echo 'Latest News:
';
$NewsModule->listNews($selectnews, 2, false, false, 1, true, 200);
}
}
echo '
';
include "post_content.inc.php";
echo ''."\n\n";
}
?>