mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 20:57:26 +02:00
exit after header
This commit is contained in:
35
sitedown.php
35
sitedown.php
@@ -11,42 +11,35 @@
|
|||||||
| GNU General Public License (http://gnu.org).
|
| GNU General Public License (http://gnu.org).
|
||||||
|
|
|
|
||||||
| $Source: /cvs_backup/e107_0.8/sitedown.php,v $
|
| $Source: /cvs_backup/e107_0.8/sitedown.php,v $
|
||||||
| $Revision: 1.4 $
|
| $Revision: 1.5 $
|
||||||
| $Date: 2009-09-15 15:02:35 $
|
| $Date: 2009-10-24 08:45:43 $
|
||||||
| $Author: secretr $
|
| $Author: marj_nl_fr $
|
||||||
+----------------------------------------------------------------------------+
|
+----------------------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
require_once("class2.php");
|
require_once('class2.php');
|
||||||
|
|
||||||
header("Content-type: text/html; charset=utf-8", TRUE);
|
header('Content-type: text/html; charset=utf-8', TRUE);
|
||||||
|
|
||||||
include_lan(e_LANGUAGEDIR.e_LANGUAGE.'/lan_'.e_PAGE);
|
include_lan(e_LANGUAGEDIR.e_LANGUAGE.'/lan_'.e_PAGE);
|
||||||
|
|
||||||
/*
|
|
||||||
global $pref;
|
|
||||||
global $tp;
|
|
||||||
|
|
||||||
e107_include_once(e_LANGUAGEDIR.e_LANGUAGE."/lan_sitedown.php");
|
|
||||||
e107_include_once(e_LANGUAGEDIR."English/lan_sitedown.php");
|
|
||||||
*/
|
|
||||||
if (!$pref['maintainance_flag'] )
|
if (!$pref['maintainance_flag'] )
|
||||||
{
|
{
|
||||||
header("location: ".SITEURL);
|
header('location: '.SITEURL);
|
||||||
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
require_once(e_FILE."shortcode/batch/sitedown_shortcodes.php");
|
require_once(e_FILE.'shortcode/batch/sitedown_shortcodes.php');
|
||||||
|
|
||||||
if (!$SITEDOWN_TABLE) {
|
if (!$SITEDOWN_TABLE)
|
||||||
if (file_exists(THEME."sitedown_template.php"))
|
{
|
||||||
|
if (file_exists(THEME.'sitedown_template.php'))
|
||||||
{
|
{
|
||||||
require_once(THEME."sitedown_template.php");
|
require_once(THEME.'sitedown_template.php');
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
require_once(e_THEME."templates/sitedown_template.php");
|
require_once(e_THEME.'templates/sitedown_template.php');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
echo $tp->parseTemplate($SITEDOWN_TABLE, TRUE, $sitedown_shortcodes);
|
echo $tp->parseTemplate($SITEDOWN_TABLE, TRUE, $sitedown_shortcodes);
|
||||||
|
|
||||||
?>
|
|
||||||
|
Reference in New Issue
Block a user