1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 20:58:30 +01:00
php-e107/sitedown.php

45 lines
1.0 KiB
PHP
Raw Normal View History

2006-12-02 04:36:16 +00:00
<?php
/*
+ ----------------------------------------------------------------------------+
| e107 website system
|
2009-11-18 01:06:08 +00:00
| Copyright (C) 2008-2009 e107 Inc
2006-12-02 04:36:16 +00:00
| http://e107.org
2009-07-14 05:31:57 +00:00
|
2006-12-02 04:36:16 +00:00
|
| Released under the terms and conditions of the
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/sitedown.php,v $
2009-11-18 01:06:08 +00:00
| $Revision: 1.8 $
| $Date: 2009-11-18 01:04:24 $
| $Author: e107coders $
2006-12-02 04:36:16 +00:00
+----------------------------------------------------------------------------+
*/
2009-10-24 08:45:43 +00:00
require_once('class2.php');
2009-09-15 15:02:35 +00:00
2009-10-28 14:14:11 +00:00
if (!varset($pref['maintainance_flag']))
2006-12-02 04:36:16 +00:00
{
2009-10-24 08:45:43 +00:00
header('location: '.SITEURL);
exit();
2006-12-02 04:36:16 +00:00
}
2009-10-28 15:38:27 +00:00
header('Content-type: text/html; charset=utf-8');
2009-10-28 14:14:11 +00:00
include_lan(e_LANGUAGEDIR.e_LANGUAGE.'/lan_'.e_PAGE);
2009-10-24 08:45:43 +00:00
require_once(e_FILE.'shortcode/batch/sitedown_shortcodes.php');
2006-12-02 04:36:16 +00:00
2009-10-24 08:45:43 +00:00
if (!$SITEDOWN_TABLE)
{
if (file_exists(THEME.'sitedown_template.php'))
2006-12-02 04:36:16 +00:00
{
2009-10-24 08:45:43 +00:00
require_once(THEME.'sitedown_template.php');
2006-12-02 04:36:16 +00:00
}
else
{
2009-10-24 08:45:43 +00:00
require_once(e_THEME.'templates/sitedown_template.php');
2006-12-02 04:36:16 +00:00
}
}
2009-10-24 08:45:43 +00:00
echo $tp->parseTemplate($SITEDOWN_TABLE, TRUE, $sitedown_shortcodes);