<?php require_once('../Connections/test.php'); ?>
<?php
session_start();
$MM_authorizedUsers = "1";
$MM_donotCheckaccess = "false";
// *** Restrict Access To Page: Grant or deny access to this page
function isAuthorized($strUsers, $strGroups, $UserName, $UserGroup) {
// For security, start by assuming the visitor is NOT authorized.
$isValid = False;
// When a visitor has logged into this site, the Session variable MM_Username set equal to their username.
// Therefore, we know that a user is NOT logged in if that Session variable is blank.
if (!empty($UserName)) {
// Besides being logged in, you may restrict access to only certain users based on an ID established when they login.
// Parse the strings into arrays.
$arrUsers = Explode(",", $strUsers);
$arrGroups = Explode(",", $strGroups);
if (in_array($UserName, $arrUsers)) {
$isValid = true;
}
// Or, you may restrict access to only certain users based on their username.
if (in_array($UserGroup, $arrGroups)) {
$isValid = true;
}
if (($strUsers == "") && false) {
$isValid = true;
}
}
return $isValid;
}
$MM_restrictGoTo = "../index.php";
if (!((isset($_SESSION['MM_Username'])) && (isAuthorized("",$MM_authorizedUsers, $_SESSION['MM_Username'], $_SESSION['MM_UserGroup'])))) {
$MM_qsChar = "?";
$MM_referrer = $_SERVER['PHP_SELF'];
if (strpos($MM_restrictGoTo, "?")) $MM_qsChar = "&";
if (isset($QUERY_STRING) && strlen($QUERY_STRING) > 0)
$MM_referrer .= "?" . $QUERY_STRING;
$MM_restrictGoTo = $MM_restrictGoTo. $MM_qsChar . "accesscheck=" . urlencode($MM_referrer);
header("Location: ". $MM_restrictGoTo);
exit;
}
?>
<?php
mysql_select_db($database_test, $test);
$query_modules = "SELECT * FROM modules";
$modules = mysql_query($query_modules, $test) or die(mysql_error());
$row_modules = mysql_fetch_assoc($modules);
$totalRows_modules = mysql_num_rows($modules);
?>
<?php require_once("theme.php"); ?>
<?php require_once("config.php");?>
<?php session_start(); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>SG Castel Maggiore</title>
<link href="<?php echo $style;?>" rel="stylesheet" type="text/css">
<link rel="alternate" type="application/rss+xml" title="SG Castel Maggiore" href="rss.php" />
<link rel="alternate" type="application/rss+xml" title="SG Castel Maggiore - Attività della settimana" href="http://www.rsscalendar.com/rss/feed.asp?t=w&k=314954362f31609663dc4765ab4c7030" />
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
</head>
<body>
<div class="container">
<div id="pageHeader">
</div>
<div id="main">
</div>
<div id="bar">
<? include ("gest_bar.php");?>
<br>
<?php do { ?>
<? include("../modules/".$row_modules['path']);?>
<br>
<?php } while ($row_modules = mysql_fetch_assoc($modules)); ?>
</div>
<div id="footer">
Design by <a href="http://mmo.splinder.com" target="_blank">Marco Montanari</a>
</div>
</div>
</body>
</html>
<?php
mysql_free_result($modules);
?>