mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 05:37:32 +02:00
Prevent some PHP errors
This commit is contained in:
@@ -73,7 +73,7 @@ class ecache {
|
|||||||
// It's a page - need the query in the hash
|
// It's a page - need the query in the hash
|
||||||
if (!$this->CachePageMD5)
|
if (!$this->CachePageMD5)
|
||||||
{
|
{
|
||||||
$this->CachePageMD5 = md5(e_BASE.e_LANGUAGE.THEME.USERCLASS_LIST.e_QUERY.filemtime(THEME.'theme.php'));
|
$this->CachePageMD5 = md5(e_BASE.e_LANGUAGE.THEME.USERCLASS_LIST.defset('e_QUERY').filemtime(THEME.'theme.php'));
|
||||||
}
|
}
|
||||||
$CheckTag = '_'.$this->CachePageMD5;
|
$CheckTag = '_'.$this->CachePageMD5;
|
||||||
}
|
}
|
||||||
|
@@ -196,12 +196,12 @@ class redirection
|
|||||||
public function checkMaintenance()
|
public function checkMaintenance()
|
||||||
{
|
{
|
||||||
// prevent looping.
|
// prevent looping.
|
||||||
if(strpos(e_SELF, 'admin.php') !== FALSE || strpos(e_SELF, 'sitedown.php') !== FALSE)
|
if(strpos(defset('e_SELF'), 'admin.php') !== FALSE || strpos(defset('e_SELF'), 'sitedown.php') !== FALSE)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(e107::getPref('maintainance_flag') && e_PAGE != 'secure_img_render.php')
|
if(e107::getPref('maintainance_flag') && defset('e_PAGE') != 'secure_img_render.php')
|
||||||
{
|
{
|
||||||
// if not admin
|
// if not admin
|
||||||
if(!ADMIN
|
if(!ADMIN
|
||||||
|
Reference in New Issue
Block a user