/** * Constructor */ public function __construct() { parent::__construct(); $this->isAdmin = TRUE; }
/** * Constructor */ public function __construct() { parent::__construct(); if (!(getperms('4') || getperms('0'))) { return; } $this->isAdmin = TRUE; // We have full class management rights $pref = e107::getPref(); $style = $pref['admincss'] == 'admin_dark.css' ? ' icon-white' : ''; $this->top_icon = "<i class='icon-user{$style}'></i> "; }