1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 12:48:24 +01:00
php-e107/sitedown.php

45 lines
1.1 KiB
PHP
Raw Normal View History

2006-12-02 04:36:16 +00:00
<?php
/*
+ ----------------------------------------------------------------------------+
| e107 website system
|
2010-02-10 21:53:56 +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 $
2010-02-10 18:18:01 +00:00
| $Revision$
| $Date$
| $Author$
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
if (!varset($pref['maintainance_flag']) && !getperms('0')) // Allow main admin to test and view template before going offline.
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);
2010-02-10 21:53:56 +00:00
require_once(e_CORE.'shortcodes/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);