/** * Admin class constructor * Sets up GUI and gets the current tool */ function Admin($tool) { $this->pager = CmnFns::getNewPager(); $this->pager->setTextStyle('font-size: 10px;'); $this->pager->setTbClass('textbox'); $this->db = new AdminDB(); // Make sure its a proper tool if (!isset($this->tools[$tool])) { $this->is_error = true; $this->error_msg = translate('Could not determine tool'); } else { $this->tool = $this->tools[$tool]; } }