AlaK4X
Linux lhjmq-records 5.15.0-118-generic #128-Ubuntu SMP Fri Jul 5 09:28:59 UTC 2024 x86_64



Your IP : 3.12.147.12


Current Path : /var/www/lhjmq-records.qc.ca/public_html/lang_fr/
Upload File :
Current File : /var/www/lhjmq-records.qc.ca/public_html/lang_fr/index2.php

<?php
	// Session startup
	// 20060804 sb@netsimplify
	// session_start();

	//Settings
	$ALERTS_DISABLED = false;

	//Update status
	$CURRENT_BLOCK_STATUS = $SITE_UPDATE_STATUS = 0;
	$UPDATE_TIME = "12:38";
	if (isset($_SESSION['block'])) {
		$CURRENT_BLOCK_STATUS = 1;
	} else if (isset($_SESSION['unblock'])) {
		$CURRENT_BLOCK_STATUS = 0;
	}
	if (isset($_GET['reset'])) {
		unset($_SESSION['block'], $_SESSION['unblock']);
		$CURRENT_BLOCK_STATUS = $SITE_UPDATE_STATUS;
	} else if (isset($_GET['block'])) {
		$_SESSION['block'] = 1;
		unset($_SESSION['unblock']);
		$CURRENT_BLOCK_STATUS = 1;
	} else if (isset($_GET['unblock'])) {
		$_SESSION['unblock'] = 1;
		unset($_SESSION['block']);
		$CURRENT_BLOCK_STATUS = 0;
	}

	//App settings
	include("../includes/applogger.php");
	include("../includes/appsettings.php");

	//Include the system classes and includes
	include("../includes/mysql_server_setup.php");
	include("../administration/lib/common.php");

	//Core library loading
	include("../administration/includes/contants.php");
	include('../administration/lib/saisons.php');
	include('../administration/lib/team.php');
	include('../administration/lib/arenas.php');
	include('../administration/lib/league.php');
	include('../administration/lib/struct.php');
	include('../administration/lib/histo.php');
	include('../administration/lib/register.php');

	//Check if a page was requested
	if (!isset($page)) {
		//Set page to default: 1
		$page = 1;
	}

	//Check if a text format output was requested
	if (!isset($textformat)) {
		//Set text format to default: false
		$textformat = 0;
	}
	$textformat = ($textformat != 0);
	
	//Get the current page
	@include('../pageconfig/'.$page.'.php');
	if ($CURRENT_BLOCK_STATUS == 1) {
		//Web site update
		$main_system_bg = "../images/bg/1colbg.gif";
	} else if (!isset($pagedata)) {
		//page is invalid
		$system_header_title = "Page non-disponible";
		$system_main_file = "error404.php";
		$main_system_bg = "../images/bg/2colbg.gif";
		$system_show_top = 1;
		$system_show_menu = 1;
		$system_show_header = 1;
		$system_show_events = 0;
	} else {
		if ($pagedata[actif] == 0) {
			//page is invalid
			$system_header_title = $pagedata[title_fr];
			$system_main_file = "error404.php";
			$main_system_bg = "../images/bg/2colbg.gif";
			$system_show_top = 1;
			$system_show_menu = 1;
			$system_show_header = 1;
			$system_show_events = 0;
		} else {
			$system_header_title = $pagedata[title_fr];
			$system_main_file = $pagedata['file'];
			switch ($pagedata[typebg]) {
				case '0w':
					$main_system_bg = "";
					$system_show_top = 0;
					$system_show_menu = 0;
					$system_show_header = 0;
					$system_show_events = 0;
					break;
				case '0':
					$main_system_bg = "../images/bg/1colbg.gif";
					$system_show_top = 0;
					$system_show_menu = 0;
					$system_show_header = 0;
					$system_show_events = 0;
					break;
				case 1:
					$main_system_bg = "../images/bg/2colbg.gif";
					$system_show_top = 1;
					$system_show_menu = 1;
					$system_show_header = 1;
					$system_show_events = 0;
					break;
				case 11:
					$main_system_bg = "../images/bg/2colbg.gif";
					$system_show_top = 1;
					$system_show_menu = 1;
					$system_show_header = 0;
					$system_show_events = 0;
					break;
				case 2:
					$main_system_bg = "../images/bg/3colbg.gif";
					$system_show_top = 1;
					$system_show_menu = 1;
					$system_show_header = 1;
					$system_show_events = 1;
					break;
				case 3:
					$main_system_bg = "../images/bg/4colbg.gif";
					$system_show_top = 1;
					$system_show_menu = 1;
					$system_show_header = 1;
					$system_show_events = 1;
					break;
			}
		}
	}

	//Create the system date according to the current date and language
	$days = array('dimanche', 'lundi', 'mardi', 'mercredi', 'jeudi', 'vendredi', 'samedi');
	$months = array('', 'janvier', 'février', 'mars', 'avril', 'mai', 'juin', 'juillet', 'août', 'septembre', 'octobre', 'novembre', 'décembre');
	$system_header_date = $days[date('w')].' '.date('d').' '.$months[date('n')].' '.date('Y');

	$is_stats_popup_page = 0;
	if ($page == 11194736) { $is_stats_popup_page = 1; }

	if ($system_main_file == "stats/reg_sys.php") {
		// use "universal version" in folder [lang_un]
		if ($typ == "pyf") {
			$system_main_file = "../lang_un/stats/pyf_sys.php";
		} else {
			$system_main_file = "../lang_un/stats/reg_sys.php";
		}
	} else if ($system_main_file == "ranking/reg_sys.php") {
		// use "universal version" in folder [lang_un]
		if ($typ == "pyf") {
			$system_main_file = "../lang_un/stats/pyf_sys.php";
		} else {
			$system_main_file = "../lang_un/stats/reg_sys.php";
		}
	}

	// we support text format output only for stats reports or the entry draft page!
	if ($textformat) {
		if ((strpos($system_main_file, '/lang_un/stats/') == false || strpos($system_main_file, 'sys.php') == false) && (strpos($system_main_file, 'seancesel_text.php') == false)) {
			$textformat = 0;
		}
	}

	/*
	if ($textformat) {
		// warning: content-type header has to be sent before any other output !
		// be carefull with debug echo or print commands !!!
		ob_clean();
		header('content-type: text/plain;charset=iso-8859-1');

		// use the following lines to test content-type
		echo "<b>Hello world!</b>\n";
		exit();
	}
	*/

	if (isset($appSettings) && ($appSettings->accessing_from_development_workstation)) {
		if ($textformat === false) {
			$appSettings->logInfo('~APPSETTINGS');

			$appSettings->logInfo('Debug: Main File is [' . $system_main_file . ']');
			//$appSettings->logInfo('Debug: Text format = ' . $textformat);
		}
	}

	if ($textformat) {
		include($system_main_file);
		//close the mysql connection
		@mysql_close($mysql_link);
		exit();
	}

?>
<?php
//Get the current zone
switch ($page) {
	case 1: $curzone = "home"; break;
	case 232:
	case 923:
	case 82316556:
	case 631488452:
	case 875416498:
	case 93752: $curzone = "news"; break;
	case 38932345:
	case 11194745:
	case 72463467:
	case 83279456:
	case 427645:
	case 946856:
	case 29766456:
	case 234342412:
	case 234342412:
	case 342374:
	case 94638295:
	case 984263185:
	case 38932345:
	case 11194737:
	case 11194736:
	case 4468462: $curzone = "stats"; break;
	case 24895435: $curzone = "playoffs"; break;
	case 270376783:
	case 469376578: $curzone = "promotions"; break;
	default:
		$curzone = "league-info"; break;
}
$dart_lang = 'fr';
$dart_rand = rand(1000000, 99999999);
?>
<html>
<head>
<title>Bienvenue sur le site Internet officiel de la LHJMQ</title>

<?php
header('Content-Type: text/html; charset=ISO-8859-1');

?>
<meta name="author" content="Groupimage Communications">
<link href="../css/text.css" rel="stylesheet" type="text/css">
<link href="../css/table.css" rel="stylesheet" type="text/css">
<link href="../css/links.css" rel="stylesheet" type="text/css">
<link href="../css/tags.css" rel="stylesheet" type="text/css">
</head>

<?php

	if($page == 1)
	{
		if(!isset($_COOKIE["splash_fr"]))
		{
			setcookie("splash_fr", 0, 0);
		}
		else
		{
			$value_fr = $_COOKIE["splash_fr"] + 1;
			setcookie("splash_fr", $value_fr, 0);
		}
	}

	if($page == 1 && $value_fr < 2)
	{
		$issplash_fr = true;
?>
		<script type="text/javascript" src="../administration/js/swfobject.js"></script>
		<script language="JavaScript" type="text/javascript">
		function showRecordBookSplash(bool)
		{
			if(bool)
			{
				document.getElementById('records_splash_fr').innerHTML = '';
				/*
				var so = new SWFObject("../images/splash.swf", "banner", "450", "450", "8", "#fff");
				so.addParam("scale", "noscale");
				so.addParam("menu", "true");
				so.addParam("wmode", "transparent");
				so.addVariable("lang", "fr");
				so.write("records_splash_fr");
				*/
			}
			else
				document.getElementById('records_splash_fr').innerHTML = '';
		}
	</script>
<?php
	}
?>

<?php if ($CURRENT_BLOCK_STATUS != 1 && ($page == 1 || $page == 342374)) {
	if ($page == 342374 and !isset($id_partie)) {
	$id_partie = 659;
	} ?>

<script language="JavaScript" type="text/javascript">

	setTimeout('window.location = "index.php<?php echo "?page=" . $page . (isset($id_partie) ? "&id_partie=" . $id_partie : "") ?>"', 180000);

</script>


<?php } ?>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" background="<?php echo $main_system_bg; ?>" style="background-repeat: repeat-y">


<?php
	if($issplash_fr)
	{
?>
	<!-- SPLASH RECORD BOOK RICH MEDIA -->
		<div id="records_splash_fr" class="pop_info"></div>
		<script>showRecordBookSplash(true)</script>
	<!-- SPLASH RECORD BOOK RICH MEDIA -->
<?php
	}

	if ($CURRENT_BLOCK_STATUS == 1)
	{
		include("index_offline.php");
	}
	else
	{
?>

<table width="760" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td colspan="4" valign="top">
			<?php
			if ($is_stats_popup_page == 1) {
				include("statstop.php");
			} else if ($system_show_top == 1) {
				include("top.php");
			} else {
				include("printabletop.php");
			}
			?>

		</td>
	</tr>
	<tr>
		<?php if ($system_show_menu == 1) { ?>
		<td valign="top" width="125">
			<?php include("menugauche.php"); ?>
		</td>
		<?php }	?>
		<?php if ($is_stats_popup_page == 1) { ?>
		<td width="20"><img src="../images/spacer.gif" width="20" height="1"></td>
		<?php }	?>
		<td colspan="<?php echo ((($system_show_menu == 1) || ($is_stats_popup_page == 1)) ? "3" : "4"); ?>" align="left" valign="top">
			<?php
			if ($system_show_header == 1) {
				include("entete.php");
			} else {
				include($system_main_file);
				include('footer.php');
			}
			?>
		</td>
	</tr>
</table>

<?php
}
?>
<?php if ($pagedata[typebg] == '0' || $pagedata[typebg] == '0w') { ?>
<table cellpadding="0" cellspacing="0">
	<tr>
		<td width="124" height="1" valign="top">&nbsp;</td>
		<td width="260" height="1" align="left" valign="top">&nbsp;</td>
		<td width="203" height="1" align="left" valign="top">&nbsp;</td>
		<td width="173" height="1" align="left" valign="top">&nbsp;</td>
	</tr>
	<?php if ($pagedata[typebg] == '0') { ?>
	<tr>
		<td colspan="4" valign="top">
			<div align="center" style="font-size:9px">
				
				<script language="javascript" src="http://ad.doubleclick.net/adj/idg.ca.chlnet.qmjhl/<?= $curzone ?>;lang=<?= $dart_lang ?>;sz=300x250;ord=<?= $dart_rand ?>" /></script>
				<script language="javascript">
				if ((!document.images && navigator.userAgent.indexOf("Mozilla/2.") >= 0) || navigator.userAgent.indexOf("WebTV") >= 0) {
					document.write('<a href="http://ad.doubleclick.net/jump/idg.ca.chlnet.qmjhl/<?= $curzone ?>;lang=<?= $dart_lang ?>;sz=300x250;ord=<?= $dart_rand ?>" target="_blank"><img alt="" border="0" height="250"src="http://ad.doubleclick.net/ad/idg.ca.chlnet.qmjhl/<?= $curzone ?>;lang=<?= $dart_lang ?>;sz=300x250;ord=<?= $dart_rand ?>" vspace="3" width="300" /></a>');
				}
				</script>
				<noscript>
					<a href="http://ad.doubleclick.net/jump/idg.ca.chlnet.qmjhl/<?= $curzone ?>;lang=<?= $dart_lang ?>;sz=300x250;ord=<?= $dart_rand ?>" target="_blank"><img alt="" border="0" height="250" src="http://ad.doubleclick.net/ad/idg.ca.chlnet.qmjhl/<?= $curzone ?>;lang=<?= $dart_lang ?>;sz=300x250;ord=<?= $dart_rand ?>" vspace="3" width="300" /></a>
				</noscript>
				<br />
				
				<br />
				Contactez-nous: <a href="mailto:hockey@lhjmq.qc.ca" class="lnkBase9px">hockey@lhjmq.qc.ca</a><br />
				Conception - réalisation <a href="http://www.tonikgroupimage.com/" class="lnkBase9px"><br />
				<img src="../images/logo_tgi_fr.gif" width="120" height="30" border=0></a><br />
				©2005-2006, LIGUE DE HOCKEY JUNIOR MAJEUR DU QUÉBEC.<br />
				Tous droits réservés.<br />
				<br />
			</div>
		</td>
	</tr>
	<?php } else if ($pagedata[typebg] == '0w') { ?>
	<tr>
		<td colspan="4" valign="top" style="padding: 5px">
			<div align="center" style="font-size:9px">
				<script language="javascript" src="http://ad.doubleclick.net/adj/idg.ca.chlnet.qmjhl/<?= $curzone ?>;lang=<?= $dart_lang ?>;sz=300x250;ord=<?= $dart_rand ?>" /></script>
				<script language="javascript">
				if ((!document.images && navigator.userAgent.indexOf("Mozilla/2.") >= 0) || navigator.userAgent.indexOf("WebTV") >= 0) {
					document.write('<a href="http://ad.doubleclick.net/jump/idg.ca.chlnet.qmjhl/<?= $curzone ?>;lang=<?= $dart_lang ?>;sz=300x250;ord=<?= $dart_rand ?>" target="_blank"><img alt="" border="0" height="250"src="http://ad.doubleclick.net/ad/idg.ca.chlnet.qmjhl/<?= $curzone ?>;lang=<?= $dart_lang ?>;sz=300x250;ord=<?= $dart_rand ?>" vspace="3" width="300" /></a>');
				}
				</script>
				<noscript>
					<a href="http://ad.doubleclick.net/jump/idg.ca.chlnet.qmjhl/<?= $curzone ?>;lang=<?= $dart_lang ?>;sz=300x250;ord=<?= $dart_rand ?>" target="_blank"><img alt="" border="0" height="250" src="http://ad.doubleclick.net/ad/idg.ca.chlnet.qmjhl/<?= $curzone ?>;lang=<?= $dart_lang ?>;sz=300x250;ord=<?= $dart_rand ?>" vspace="3" width="300" /></a>
				</noscript>
				<br />
				<br />
				Contactez-nous: <a href="mailto:hockey@lhjmq.qc.ca" class="lnkBase9px">hockey@lhjmq.qc.ca</a><br />
				Conception - réalisation <a href="http://www.tonikgroupimage.com/" class="lnkBase9px"><br />
				<img src="../images/logo_tgi_fr.gif" width="120" height="30" border=0></a><br />
				©2005-2006, LIGUE DE HOCKEY JUNIOR MAJEUR DU QUÉBEC.<br />
				Tous droits réservés.<br />
				<br />
			</div>
		</td>
	</tr>
	<?php } ?>
	<?php //if (isset($appSettings)) { echo '<'. '!-- ## page served by [' . $appSettings->server_system_name . '] ## --' . '>'; } ?>
	<?php if (isset($appSettings) && ($appSettings->running_on_development_server)) { ?>
	<!--<tr>
		<td colspan="4" align="center" valign="top"><span style="font-size:12px;color:#FF0000;"><b>*** Serveur de développement [<?php echo $appSettings->server_system_name; ?>] ***</b></span></td>
	</tr>//-->
<?php } ?>
</table>
<?php } ?>
</body>
</html>
<?php
	//close the mysql connection
	@mysql_close($mysql_link);
?>