mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 13:47:31 +02:00
review some comments
This commit is contained in:
@@ -9,8 +9,8 @@
|
||||
* Administration - Site Maintenance
|
||||
*
|
||||
* $Source: /cvs_backup/e107_0.8/e107_admin/ugflag.php,v $
|
||||
* $Revision: 1.6 $
|
||||
* $Date: 2009-10-28 16:57:51 $
|
||||
* $Revision: 1.7 $
|
||||
* $Date: 2009-10-28 20:26:04 $
|
||||
* $Author: marj_nl_fr $
|
||||
*
|
||||
*/
|
||||
@@ -94,7 +94,7 @@ $text .= "
|
||||
</td>
|
||||
</tr>";
|
||||
|
||||
|
||||
//TODO multilanguage pref
|
||||
$text .= "
|
||||
<tr>
|
||||
<td class='label'>".UGFLAN_5."
|
||||
|
@@ -11,8 +11,8 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_handlers/redirection_class.php,v $
|
||||
| $Revision: 1.5 $
|
||||
| $Date: 2009-10-28 20:16:12 $
|
||||
| $Revision: 1.6 $
|
||||
| $Date: 2009-10-28 20:26:04 $
|
||||
| $Author: marj_nl_fr $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
@@ -29,14 +29,14 @@
|
||||
class redirection
|
||||
{
|
||||
/**
|
||||
* List of pages to not check agaist e_SELF
|
||||
* List of pages to not check against e_SELF
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $self_exceptions = array();
|
||||
|
||||
/**
|
||||
* List of pages to not check agaist e_PAGE
|
||||
* List of pages to not check against e_PAGE
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
@@ -68,11 +68,10 @@ class redirection
|
||||
|
||||
if(e107::getPref('maintainance_flag'))
|
||||
{
|
||||
// if not admin
|
||||
if(!ADMIN
|
||||
|| (e_UC_MAINADMIN == e107::getPref('maintainance_flag')
|
||||
&& !getperms('0')
|
||||
)
|
||||
)
|
||||
// or if not mainadmin - ie e_UC_MAINADMIN
|
||||
|| (e_UC_MAINADMIN == e107::getPref('maintainance_flag') && !getperms('0')))
|
||||
{
|
||||
// 307 Temporary Redirect
|
||||
$this->redirect(SITEURL.'sitedown.php', TRUE, 307);
|
||||
|
Reference in New Issue
Block a user