include "../include/show_page_title.php";
include_once "../include/utils.php";
include_once "../include/form_utils.php";
include_once("../include/tables.php");
include_once("../events/event_fct.php");
include_once("../include/classes/cmsgrestriction.php");
include_once("../include/classes/cfilter.php");
/* antispam notice */
$msg_restriction=new CMsgRestriction();
$subscribe_date=$auth->member_arr["subscribe_date"];
$anti_spam_notice_msg=$msg_restriction->get_notice_msg($auth->member_id, $subscribe_date);
if (!$auth->member_id)
$show_page="home";
else $show_page="home_logged_in";
$query = "SELECT text_page FROM site_pages WHERE page='$show_page'";
$page_db = $conn->query($query);
$page = $conn->fetch_array($page_db);
$text=$page["text_page"];
$text=str_replace("%%status%%", $MEMBER_TYPES[$auth->member_arr["member_type"]], $text);
$text=str_replace("%%username%%", $auth->member_arr["username"], $text);
$text=str_replace("%%anti_spam_notice_msg%%", $anti_spam_notice_msg, $text);
$query = "SELECT * FROM e_events WHERE feature=1 AND archive_date > NOW()
ORDER BY event_date ASC";
$events_db = $conn->query($query);
?>
=unhtmlentities(nl2br($text));?>
//include "../track/home.php"; ?>