Linux lhjmq-records 5.15.0-118-generic #128-Ubuntu SMP Fri Jul 5 09:28:59 UTC 2024 x86_64
Your IP : 3.145.32.238
<?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");
$_GET['lang'] = 'fr';
include_once '../xsl/records/book/includes/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;
}
if ($page == 1 || $page == ""){
setcookie("splash_fr", 0, 0);
header('Location: http://www.lhjmq-records.qc.ca/xsl/records/book/index.php?lang=fr');
}
//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);
// lang
if ($_SESSION['lang'] == "fr") {
$data['META_TITLE'] = "Bienvenue sur le site Internet officiel de la LHJMQ";
} else {
$data['META_TITLE'] = "Welcome on the official QMJHL web site";
}
?>
<!DOCTYPE html>
<html lang="<?php echo $_SESSION['lang']; ?>" class="no-js">
<head>
<?php
//<meta charset="utf-8">
?>
<meta charset="iso-8859-1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<title><?= $data['META_TITLE'] ?></title>
<?php if ($_REQUEST["page"]==3429){?>
<meta property="og:title" content="<?= utf8_decode($lang['META_TITLE']); ?>">
<meta property="og:description" content="<?= utf8_decode($lang['META_DESCRIPTION']); ?>">
<?php }?>
<?php
//header('Content-Type: text/html; charset=ISO-8859-1');
?>
<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">
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,600,700,400italic,700italic,600italic' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<link href="../css/theme_new.css" rel="stylesheet" type="text/css">
<script src="https://code.jquery.com/jquery-1.12.2.min.js"></script>
<script src="https://code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
<!-- CookiePro Cookies Consent Notice start for www.lhjmq-records.qc.ca -->
<script src="https://cookie-cdn.cookiepro.com/scripttemplates/otSDKStub.js" type="text/javascript" charset="UTF-8" data-domain-script="018e76e3-91ea-7589-abf3-053e3bcea7cc" data-document-language="true"></script>
<script type="text/javascript">
function OptanonWrapper() { }
</script>
<!-- CookiePro Cookies Consent Notice end for www.lhjmq-records.qc.ca -->
<!-- Google tag (gtag.js) --> <script async src="https://www.googletagmanager.com/gtag/js?id=G-7YNFX0KGEE"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-7YNFX0KGEE'); </script>
<!-- START TPD HEAD CODE -->
<script async src=https://cdn.tpdads.com/configs/lhjmq-records.qc.ca.js></script>
<!-- END TPD HEAD CODE -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
<?php
function left($str, $length) {
return substr($str, 0, $length);
}
$f_lang = $_GET['lang'];
if(! isset($_GET['lang']))
{
$f_lang = 'fr';
}
if($f_lang != 'en')
{
if($f_lang != 'fr')
{
$f_lang = 'fr';
}
}
$dart_lang = $f_lang;
if($dart_lang != 'fr')
$dart_lang = 'eng';
$curzone = "league-info";
/*
$curzone = "stats";
$curzone = "playoffs";
$curzone = "promotions";
$curzone = "news";
$curzone = "home";
*/
$playoffs_radio_msg = $f_lang == 'fr' ? 'Disponible bient?t' : 'Available soon';
$dart_rand = rand(1000000, 99999999);
$url = $_SERVER['SCRIPT_NAME'];
$is_home = substr_count($url, 'index1.php') == 1 ? 'true' : 'false';
$current_page_name = basename($_SERVER['PHP_SELF']);
echo '<script>
var record_main_folder = "/xsl/records/book/index2.php";
var p_lang = "' . $f_lang . '";
var is_get_link = false;
var server_name = "' . $_SERVER['HTTP_HOST'] . '";
var home = "false";
var thisPage = "index2.php";
</script>';
if(isset($_REQUEST['getlink']))
{
echo '<script>
is_get_link = true;
</script>';
}
if(isset($_REQUEST['file_id']) && isset($_REQUEST['rep']))
{
if ($_REQUEST['rep'] == 'V'){
$_REQUEST['rep'] = 'Z';
}
if (left($_REQUEST['file_id'],1) == 'F' ){
$new_repertoire = 'F';
}
else if (left($_REQUEST['file_id'],1) == 'E' ){
$new_repertoire = 'E';
}
else
{
$new_repertoire = '';
}
echo '<script>
var hide_swf_header = true;
var is_catcher = true;
var catch_rep = "' . $_REQUEST['rep'] . '";
var catch_file = "V_' . $_REQUEST['file_id'] . '.xml";
var new_repertoire = "' . $new_repertoire . '";
</script>';
}
else
{
echo '<script>
var is_catcher = false;
var hide_swf_header = false;
var new_repertoire = "";
</script>';
}
?>
</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 } ?>
<script language="JavaScript">
//redirects to a file only if the file contains a path
function pageRedir(file) {
if (file != "") {
window.location = file;
}
}
function sendsearch(){
formsearch.search.value = formsearch.nom.value;
if( formsearch.nom.value.length >= 3 ){
if (formsearch.nom.value == '3 caract?res min'){
formsearch.nom.value = '3 caract?res min';
}
else
{
window.location.href = "index.php?page=" + formsearch.page.value + "&search=" + formsearch.search.value;
}
}
else{
//alert('Votre mot cl? doit contenir au moins 3 cacact?res');
formsearch.nom.value = '3 caract?res min';
}
//formsearch.submit();
}
function checkEnter2(e){ //e is event object passed from function invocation
formsearch.search.value = formsearch.nom.value;
var characterCode; //literal character code will be stored in this variable
if(e && e.which){ //if which property of event object is supported (NN4)
e = e;
characterCode = e.which; //character code is contained in NN4's which property
}
else{
e = event;
characterCode = e.keyCode; //character code is contained in IE's keyCode property
}
if(characterCode == 13){ //if generated character code is equal to ascii 13 (if enter key)
//alert(formsearch.search.value.length)
if( formsearch.search.value.length >= 3 ){
//alert(formsearch.search.value.length);
if (formsearch.search.value == '3 caract?res min'){
return false;
}
else
{
window.location.href = "index.php?page=" + formsearch.page.value + "&search=" + formsearch.search.value;
return false;
}
}
else
{
formsearch.nom.value = '3 caract?res min';
//return !(window.event && window.event.keyCode == 13);
}
//document.forms[0].submit() //submit the form
}
else{
//formsearch.search.value = formsearch.nom.value;
return false;
}
}
</script>
<script language="JavaScript">
var nn4 = (navigator.appName.indexOf("Netscape") > -1 && navigator.appVersion.indexOf("4") > -1) ? true : false
function checkEnter(e){
var characterCode;
if(e && e.which){
e = E;
characterCode = e.which;
}
else{
e = event;
characterCode = e.keyCode;
}
if(characterCode == 13){
sendsearch();
//document.forms[0].submit();
return false;
}
return true;
}
</script>
<body>
<?/*
<div style="background:#c8c8c8;padding-top:15px;">
<div class="container">
<div class="row">
<div class="col-sm-12">
<form name="formsearch" action="index.php" method="get" style="margin:0;" onsubmit="checkEnter2(event); return false;">
<div class="form-group">
<div class="input-group">
<input type="text" class="form-control" name="nom" onKeyPress="checkEnter2(event);" placeholder="Rechercher un joueur par son nom de famille" style="color:#000;background:#d8d8d8;border-radius:inherit;border:1px solid #c1c1c1;border-style:inset;border-width:1px 0 0 1px;">
<div class="input-group-addon" style="color:#fff;background:#005bae;border-radius:inherit;border-top:1px solid #005bae;font-size:12px;"><a href="#" onclick="sendsearch();">GO</a></div>
</div>
</div>
<input type="hidden" name="page" value="36785433">
<input type="hidden" name="search" value="<?=$_POST['nom']?>" >
</form>
</div>
</div>
</div>
</div>
*/?>
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/jQuery.mmenu/5.6.1/css/jquery.mmenu.all.min.css">
<link rel="stylesheet" type="text/css" href="../../../xsl/records/book/css/theme-lhjmq.css">
<link rel="styleSheet" href="../../../xsl/records/book/css/styles.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="../../../xsl/records/book/css/shadowbox.css">
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,600,300,700,800" rel="stylesheet" type="text/css">
<link href="../../../xsl/records/book/assets/css/main.min.css" rel="stylesheet" type="text/css">
<link href="../../../xsl/records/book/assets/css/records.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jQuery.mmenu/5.6.1/js/jquery.mmenu.all.min.js"></script>
<script type="text/javascript">
jQuery(document).ready(function( $ ) {
$('nav#menu').mmenu({
extensions : [ 'theme-lhjmq' ],
searchfield : false,
scrollBugFix : {
fix : true
},
counters : false,
offCanvas : {
position : "right",
zposition : "front"
},
onClick : {
preventDefault : false
},
navbar : {
title : ''
},
navbars : [
/*{
position : 'top',
content : [
'prev',
'title',
'close'
]
},*/
{
position : 'bottom',
content : [
'<a href="/">LHJMQ</a>'
]
}
]
});
var API = $("nav#menu").data( "mmenu" );
$(".close_menu").click(function() {
API.close();
});
});
$(function() { //run when the DOM is ready
$(".sbtn_a").click(function() { //use a class, since your ID gets mangled
$(this).addClass("active"); //add the class to the clicked element
});
});
</script>
<div class="wrapper mm-page mm-slideout" id="mm-0">
<div style="background:#005BAE;">
<div class="container">
<div class="row">
<div class="col-xs-6 col-sm-10">
<nav class="nav__main" style="position:relative;">
<a href="/xsl/records/book/" class="logo-lhjmq"><img src="/xsl/records/book/assets/img/logo-LHJMQ-border.png" style="max-height:46px;"></a>
<div class="nav1">
<a class="records" href="/xsl/records/book/index2.php?lang=fr" target="_blank"><?= $lang['MENU_1']; ?></a>
<a class="historique" href="/xsl/records/book/index.php?lang=fr" target="_blank"><?= $lang['MENU_2']; ?></a>
<a class="historique" href="/lang_fr/index.php?&page=3429">Nos franchises</a>
<?
if (isset($page)) {
?>
<a href="/lang_en/index.php?&page=<?= $page;?>&id_equipe=<?= $_GET['id_equipe'];?>¤tseason=<?= $_GET['currentseason'];?>">en</a>
<?
}
else
{//8392
?>
<a href="/xsl/records/book/index2.php?lang=<?=$switch_lang;?>"><?=$switch_lang;?></a>
<?
}
?>
</div>
</nav>
</div>
<div class="col-xs-6 col-sm-2">
<div style="float:right;margin:20px 30px 0 0;"><a href="#menu" class="hamburger"><img src="/xsl/records/book/assets/img/records/menu.svg" alt="" class="img-responsive center" /></a></div>
</div>
</div>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-sm-12">
<?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
{
?>
<?php
if ($is_stats_popup_page == 1) {
//include("statstop.php");
} else if ($system_show_top == 1) {
//include("top.php");
} else {
//include("printabletop.php");
}
?>
<?php if ($is_stats_popup_page == 1) { ?>
<br>
<?php } ?>
<?php
if ($system_show_header == 1) {
include("entete.php");
} else {
include($system_main_file);
//include('footer.php');
}
?>
<?php
}
?>
</div>
</div>
<nav id="menu">
<div>
<div class="text-right"><p><a href="#" class="close_menu"><img src="../../../xsl/records/book/assets/img/records/close.svg" alt=""></a></p></div>
<div class="menu_wrap">
<div class="level1"><a href="http://www.lhjmq-records.qc.ca/xsl/records/book/index2.php?lang=fr">RECORDS</a></div>
<div class="level1"><a href="http://www.lhjmq-records.qc.ca/xsl/records/book/index.php?lang=fr">HISTORIQUE</a></div>
<div class="level1"><a href="http://www.lhjmq-records.qc.ca/lang_fr/index.php?&page=3429">NOS FRANCHISES</a></div>
<div class="level1"><a href="https://www.facebook.com/groups/729180980448730/" target="_blank">CLUB DES AMBASSADEURS</a></div>
<div class="level1"><a href="http://lhjmq.qc.ca/temple-renommee-fr/" target="_blank">TEMPLE DE LA RENOMM?E</a></div>
<div class="level1"><a href="http://lhjmq.qc.ca/stats" target="_blank">STATISTIQUES</a></div>
<div class="level1"><a href="http://lhjmq.qc.ca/schedule" target="_blank">SOMMAIRES DES MATCHS</a></div>
<div class="level1"><a href="http://lhjmq.qc.ca/searchpeople" target="_blank">RECHERCHEZ UN JOUEUR</a></div>
<div class="level1"><a href="http://lhjmq.qc.ca/" target="_blank">SITE OFFICIEL</a></div>
<div class="level1"><a href="http://www.lhjmq-records.qc.ca/xsl/records/book/politique-de-confidentialite.php?lang=fr">POLITIQUE DE CONFIDENTIALITÉ</a></div>
<hr/>
<div class="level1"><a href="http://www.lhjmq-records.qc.ca/lang_en/index.php?lang=<?=$switch_lang;?>&page=3429"><?=$switch_lang;?></a></div>
</div>
</div>
</nav>
</div>
</body>
</html>
<?php
//close the mysql connection
@mysql_close($mysql_link);
?>
|