mirror of
https://github.com/e107inc/e107.git
synced 2025-08-06 06:38:00 +02:00
Fixes #916 - Restrict access to experimental bootstrap3 admin area.
This commit is contained in:
@@ -27,7 +27,7 @@ class themeHandler
|
|||||||
var $themeConfigObj = null;
|
var $themeConfigObj = null;
|
||||||
var $noLog = FALSE;
|
var $noLog = FALSE;
|
||||||
|
|
||||||
private $approvedAdminThemes = array('bootstrap','bootstrap3');
|
private $approvedAdminThemes = array('bootstrap');
|
||||||
|
|
||||||
public $allowedCategories = array('generic',
|
public $allowedCategories = array('generic',
|
||||||
'adult',
|
'adult',
|
||||||
@@ -56,6 +56,12 @@ class themeHandler
|
|||||||
|
|
||||||
global $e107cache,$pref;
|
global $e107cache,$pref;
|
||||||
$mes = e107::getMessage();
|
$mes = e107::getMessage();
|
||||||
|
|
||||||
|
|
||||||
|
if(isset($_SERVER['E_B3_ADMIN']) && $_SERVER['E_B3_ADMIN'] === 'true')
|
||||||
|
{
|
||||||
|
$this->approvedAdminThemes[] = 'bootstrap3';
|
||||||
|
}
|
||||||
|
|
||||||
require_once (e_HANDLER."form_handler.php");
|
require_once (e_HANDLER."form_handler.php");
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user