1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-26 01:11:28 +02:00

work on sitedown

This commit is contained in:
marj
2009-10-28 14:14:11 +00:00
parent b3beba9652
commit 24ca20948e
2 changed files with 15 additions and 15 deletions

View File

@@ -3,20 +3,20 @@
+ ----------------------------------------------------------------------------+ + ----------------------------------------------------------------------------+
| e107 website system | e107 website system
| |
| <EFBFBD>Steve Dunstan 2001-2002 | Copyright (C) 2001-2009 e107 Inc
| http://e107.org | http://e107.org
| jalist@e107.org |
| |
| Released under the terms and conditions of the | Released under the terms and conditions of the
| GNU General Public License (http://gnu.org). | GNU General Public License (http://gnu.org).
| |
| $Source: /cvs_backup/e107_0.8/e107_plugins/login_menu/login_menu_shortcodes.php,v $ | $Source: /cvs_backup/e107_0.8/e107_plugins/login_menu/login_menu_shortcodes.php,v $
| $Revision: 1.8 $ | $Revision: 1.9 $
| $Date: 2009-08-23 10:57:51 $ | $Date: 2009-10-28 14:14:10 $
| $Author: marj_nl_fr $ | $Author: marj_nl_fr $
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
*/ */
if (!defined('e107_INIT')) { exit; } if (!defined('e107_INIT')) { exit(); }
global $tp; global $tp;
$login_menu_shortcodes = $tp -> e_sc -> parse_scbatch(__FILE__); $login_menu_shortcodes = $tp -> e_sc -> parse_scbatch(__FILE__);
/* /*
@@ -132,8 +132,9 @@ SC_END
SC_BEGIN LM_MAINTENANCE SC_BEGIN LM_MAINTENANCE
global $pref; global $pref;
if(ADMIN == TRUE){ if(ADMIN && varset($pref['maintainance_flag']))
return ($pref['maintainance_flag'] == 1 ? LOGIN_MENU_L10 : '' ); {
return LOGIN_MENU_L10;
} }
return ''; return '';
SC_END SC_END

View File

@@ -11,23 +11,23 @@
| 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.5 $ | $Revision: 1.6 $
| $Date: 2009-10-24 08:45:43 $ | $Date: 2009-10-28 14:14:11 $
| $Author: marj_nl_fr $ | $Author: marj_nl_fr $
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
*/ */
require_once('class2.php'); require_once('class2.php');
header('Content-type: text/html; charset=utf-8', TRUE); if (!varset($pref['maintainance_flag']))
include_lan(e_LANGUAGEDIR.e_LANGUAGE.'/lan_'.e_PAGE);
if (!$pref['maintainance_flag'] )
{ {
header('location: '.SITEURL); header('location: '.SITEURL);
exit(); exit();
} }
header('Content-type: text/html; charset=utf-8', TRUE);
include_lan(e_LANGUAGEDIR.e_LANGUAGE.'/lan_'.e_PAGE);
require_once(e_FILE.'shortcode/batch/sitedown_shortcodes.php'); require_once(e_FILE.'shortcode/batch/sitedown_shortcodes.php');
if (!$SITEDOWN_TABLE) if (!$SITEDOWN_TABLE)
@@ -41,5 +41,4 @@ if (!$SITEDOWN_TABLE)
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);