maintenance.php 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. require_once(__DIR__.DIRECTORY_SEPARATOR.'common.php');
  3. $mediaRoot = define_media_root();
  4. global $conf;
  5. if(file_exists(File::dir().SLASH.'disabled.maintenance')){
  6. header('Location: index.php');
  7. exit();
  8. }
  9. ?>
  10. <!DOCTYPE html>
  11. <html class="maintenance-page">
  12. <head>
  13. <title>MAINTENANCE</title>
  14. <meta http-equiv='Content-Type' content='text/html; charset=UTF8'>
  15. <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
  16. <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.2.0/css/all.css" integrity="sha384-hWVjflwFxL6sNzntih27bfxkr27PmbbK/iSvJ+a4+0owXq79v+lsFkW54bOGbiDQ" crossorigin="anonymous">
  17. <link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet">
  18. <link rel="shortcut icon" type="image/png" href="img/favicon.png" />
  19. <link href="css/main.css" rel="stylesheet">
  20. <!-- Plugin css files -->
  21. <?php echo Plugin::callCss($mediaRoot,$cacheVersion); ?>
  22. </head>
  23. <body>
  24. <?php if(isset($_['error']) && !empty($_['error'])): ?>
  25. <div class="alert alert-danger" role="alert">
  26. <h4 class="alert-heading">ERREUR :</h4>
  27. <p><?php echo $_['error']; ?></p>
  28. </div>
  29. <?php endif; ?>
  30. <div class="icon"><i class="fas fa-cog fa-spin"></i></div>
  31. <h1>MAINTENANCE</h1>
  32. <div class="container-fluid">
  33. <div class="row w-100 justify-content-md-center">
  34. <div class="content-block col-md-6 col-sm-12">
  35. <?php echo html_entity_decode(file_get_contents(File::dir().SLASH.'enabled.maintenance')); ?>
  36. </div>
  37. </div>
  38. <p>Merci de revenir dans quelques instants</p>
  39. <p><i>L'équipe Technique</i></p>
  40. <small class="admin-access">
  41. <a href="index.php?admin_login=1" class="admin-link">- Accès technicien -</a>
  42. </small>
  43. </div>
  44. </body>
  45. </html>