[ Index ]

PHP Cross Reference of Mambo 4.6.5

[ Variables ]     [ Functions ]     [ Classes ]     [ Constants ]     [ Statistics ]

title

Body

[close]

/ -> offline.php (source)

   1  <?php
   2  /**
   3  * Site off-line page
   4  * @package Mambo
   5  * @author Mambo Foundation Inc see README.php
   6  * @copyright (C) 2000 - 2009 Mambo Foundation Inc.
   7  * See COPYRIGHT.php for copyright notices and details.
   8  * @license GNU/GPL Version 2, see LICENSE.php
   9  *
  10  * Redistributions of files must retain the above copyright notice.
  11  *
  12  * Mambo is free software; you can redistribute it and/or
  13  * modify it under the terms of the GNU General Public License
  14  * as published by the Free Software Foundation; version 2 of the License.
  15  */
  16  
  17  /** ensure this file is being included by a parent file */
  18  defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
  19  
  20  // needed to seperate the ISO number from the language file constant _ISO
  21  $iso = split( '=', _ISO );
  22  // xml prolog
  23  echo '<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>';
  24  ?>
  25  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  26  <html xmlns="http://www.w3.org/1999/xhtml">
  27  <head>
  28  <title><?php echo mamboCore::get('mosConfig_sitename'); ?> - <?php echo T_('Offline') ?></title>
  29  <meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
  30  </head>
  31  <body>
  32  
  33  <p>&nbsp;</p>
  34  <table width="550" align="center" style="background-color: #ffffff; border: 1px solid">
  35  <tr>
  36      <td width="60%" height="50" align="center">
  37      <img src="<?php echo mamboCore::get('mosConfig_live_site'); ?>/images/logo.png" alt="<?php echo T_('Mambo Logo') ?>" align="middle" />
  38      </td>
  39  </tr>
  40  <tr> 
  41      <td align="center">
  42      <h1>
  43      <?php echo mamboCore::get('mosConfig_sitename'); ?>
  44      </h1>
  45      </td>
  46  </tr>
  47  <?php
  48  if ( mamboCore::get('mosConfig_offline') == 1 ) {
  49      ?>
  50      <tr> 
  51          <td width="39%" align="center">
  52          <h2>
  53          <?php echo mamboCore::get('mosConfig_offline_message'); ?>
  54          </h2>
  55          </td>
  56      </tr>
  57      <?php
  58  } else if (@$mosSystemError) {
  59      ?>
  60      <tr> 
  61          <td width="39%" align="center">
  62          <h2>
  63          <?php echo mamboCore::get('mosConfig_error_message'); ?>
  64          </h2>
  65          <?php echo $mosSystemError; ?>
  66          </td>
  67      </tr>
  68      <?php
  69  } else {
  70      ?>
  71      <tr> 
  72          <td width="39%" align="center">
  73          <h2>
  74          <?php echo T_('For your security please completely remove the installation directory including all files and sub-folders  - then refresh this page'); ?>
  75          </h2>
  76          <h3>
  77          <?php echo T_('For support, the official forum can be found at:') . "<a href=\"http://forum.mambo-foundation.org\"> http://forum.mambo-foundation.org</a>"; ?> 
  78          </h3>
  79          </td>
  80      </tr>
  81      <?php
  82  }
  83  ?>
  84  </table>
  85  
  86  </body>
  87  </html>