mirror of
https://github.com/e107inc/e107.git
synced 2025-08-13 10:04:35 +02:00
new module creation
This commit is contained in:
47
sitedown.php
Normal file
47
sitedown.php
Normal file
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
/*
|
||||
+ ----------------------------------------------------------------------------+
|
||||
| e107 website system
|
||||
|
|
||||
| <20>Steve Dunstan 2001-2002
|
||||
| http://e107.org
|
||||
| jalist@e107.org
|
||||
|
|
||||
| Released under the terms and conditions of the
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/sitedown.php,v $
|
||||
| $Revision: 1.1.1.1 $
|
||||
| $Date: 2006-12-02 04:33:09 $
|
||||
| $Author: mcfly_e107 $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
require_once("class2.php");
|
||||
|
||||
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'] )
|
||||
{
|
||||
header("location: ".SITEURL);
|
||||
}
|
||||
|
||||
require_once(e_FILE."shortcode/batch/sitedown_shortcodes.php");
|
||||
|
||||
if (!$SITEDOWN_TABLE) {
|
||||
if (file_exists(THEME."sitedown_template.php"))
|
||||
{
|
||||
require_once(THEME."sitedown_template.php");
|
||||
}
|
||||
else
|
||||
{
|
||||
require_once(e_THEME."templates/sitedown_template.php");
|
||||
}
|
||||
}
|
||||
|
||||
echo $tp->parseTemplate($SITEDOWN_TABLE, TRUE, $sitedown_shortcodes);
|
||||
|
||||
?>
|
Reference in New Issue
Block a user