148 lines
5.7 KiB
PHP
148 lines
5.7 KiB
PHP
<?php
|
||
global $objDatabase, $vDomaine, $vClient;
|
||
|
||
// v<>rifier si le site est en maintenance
|
||
$sqlMaintenance = "SELECT * FROM maintenance WHERE (mai_actif = 1 OR (mai_actif = 0 AND mai_date_debut <= '" . fxGetDateTime() . "' AND mai_date_fin >= '" . fxGetDateTime() . "'))";
|
||
$tabMaintenance = $objDatabase->fxGetRow($sqlMaintenance);
|
||
|
||
if ($tabMaintenance != null) {
|
||
$strMetaTitle = 'Maintenance';
|
||
$strMetaDescription = '';
|
||
|
||
if (!isset($strOGImage)) {
|
||
$strOGImage = $vDomaine . "/images/logoms1.jpg";
|
||
}
|
||
if (!isset($strOGTitle)) {
|
||
$strOGTitle = $strMetaTitle;
|
||
}
|
||
if (!isset($strOGDescription)) {
|
||
$strOGDescription = $strMetaDescription;
|
||
}
|
||
?>
|
||
<!DOCTYPE html>
|
||
<html>
|
||
<head>
|
||
<meta charset="utf-8">
|
||
<title><?php echo fxRemoveHtml($vClient); ?></title>
|
||
<meta property="og:site_name" content="<?php echo fxRemoveHtml($vClient); ?>">
|
||
<meta property="og:title" content="<?php echo fxRemoveHtml($strOGTitle); ?>">
|
||
<meta property="og:description" content="<?php echo str_replace('&', '&', $strOGDescription); ?>">
|
||
<meta property="og:url" content="<?php echo $vDomaine . $_SERVER['REQUEST_URI']; ?>">
|
||
<meta name="viewport" content="width=device-width">
|
||
<meta property="og:image" content="<?php echo $strOGImage; ?>">
|
||
<link type="text/css" rel="stylesheet" href="https://fonts.googleapis.com/css?family=Oxygen">
|
||
<link type="text/css" rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins|Roboto">
|
||
<link type="text/css" rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato:400,300,700,900">
|
||
<link type="text/css" rel="stylesheet" href="<?php echo $vDomaine; ?>/min/g=css&version=<?php echo fxGetVariable('version') . '.' . fxGetVariable('update'); ?>">
|
||
<script type="text/javascript" src="<?php echo $vDomaine; ?>/min/index.php?g=js&version=<?php echo fxGetVariable('version') . '.' . fxGetVariable('update'); ?>"></script>
|
||
</head>
|
||
<body>
|
||
<div id="preloader">
|
||
<div id="spinner">
|
||
<i class="fa fa-spinner fa-pulse"></i>
|
||
<span id="preloader_text"><?php afficheTexte('preloader_load',1,0,1); ?></span>
|
||
</div>
|
||
</div>
|
||
<?php echo $vEnvNotice; ?>
|
||
<header>
|
||
<div class="ms1-header-bottom py-4">
|
||
<div class="container">
|
||
<div class="row align-items-center">
|
||
<div class="col-lg-6 text-center text-lg-left">
|
||
<a href="<?php echo $vDomaine; ?>">
|
||
<img class="mb-3 mb-lg-0" src="<?php echo $vDomaine; ?>/images/logoms1inscription.png" alt="<?php echo $vClient; ?>">
|
||
</a>
|
||
</div>
|
||
<div class="col-lg-6 text-center text-lg-right">
|
||
<div id="login">
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</header>
|
||
|
||
<div id="page">
|
||
<div id="main">
|
||
<div class="container bg-white p-3 p-xl-5">
|
||
<div class="row">
|
||
<div class="col-12 col-lg-6">
|
||
<h1><?php echo fxUnescape($tabMaintenance['mai_titre_fr']); ?></h1>
|
||
<?php echo fxUnescape($tabMaintenance['mai_texte_fr']); ?>
|
||
</div>
|
||
<div class="col-12 col-lg-6">
|
||
<h1><?php echo fxUnescape($tabMaintenance['mai_titre_en']); ?></h1>
|
||
<?php echo fxUnescape($tabMaintenance['mai_texte_en']); ?>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<footer>
|
||
<div class="ms1-footer-top">
|
||
<div class="container">
|
||
<div class="row py-4">
|
||
<div class="col-lg-6 text-center text-lg-left">
|
||
<div class="ms1-contact-client text-break">
|
||
|
||
</div>
|
||
</div>
|
||
<div class="col-lg-6 text-center text-lg-right">
|
||
<div class="social">
|
||
<a href="http://www.facebook.com/pages/Ms1timing/387594717971765" target="_blank"><i class="fa fa-facebook-square"></i></a>
|
||
<a href="https://twitter.com/ms1timing" target="_blank"><i class="fa fa-twitter-square"></i></a>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="ms1-footer-bottom">
|
||
<div class="container">
|
||
<div class="row align-items-center">
|
||
<div class="col-lg-6 text-center text-lg-left order-lg-first order-last py-2">
|
||
<div>
|
||
Copyright © <?php echo $vClient; ?> 2013-<?php echo date('Y'); ?><br>
|
||
Réalisation/Conception
|
||
<a href="http://www.progiweb.ca/" target="_blank">progiweb</a><br>
|
||
bdd (v<?php echo fxGetVariable('version') . '.' . fxGetVariable('update'); ?>) - code (v<?php echo _VERSION_CODE; ?>)
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</footer>
|
||
|
||
<?php echo $vGoogleAnalytics; ?>
|
||
<script>
|
||
window.fbAsyncInit = function() {
|
||
FB.init({
|
||
appId : '<?php echo fxGetVariable('fb_app_id'); ?>',
|
||
autoLogAppEvents : true,
|
||
xfbml : true,
|
||
version : 'v3.2'
|
||
});
|
||
};
|
||
|
||
(function(d, s, id){
|
||
var js, fjs = d.getElementsByTagName(s)[0];
|
||
if (d.getElementById(id)) {return;}
|
||
js = d.createElement(s); js.id = id;
|
||
js.src = "https://connect.facebook.net/<?php echo $strLangue; ?>_CA/sdk.js";
|
||
fjs.parentNode.insertBefore(js, fjs);
|
||
}(document, 'script', 'facebook-jssdk'));
|
||
</script>
|
||
<script type="text/javascript">
|
||
$(function() {
|
||
var $preloader = $('#preloader');
|
||
var $preloader_text = $('#preloader_text');
|
||
$preloader.fadeOut();
|
||
});
|
||
</script>
|
||
</body>
|
||
</html>
|
||
<?php
|
||
exit;
|
||
}
|
||
?>
|