function getSection() { $xml = new xml($this->e); if ($pi = pathinfo($xml->documentURI(), PATHINFO_FILENAME)) { return $this->struct->getSection($pi); } }
function disable($val) { $xml = new xml($this->e); $nocache_xml = new xml($xml->documentURI(), $xml->de()->tagName, false); $users = new users($nocache_xml, $this->e->tagName); if ($usr = $users->getUser($this->getLogin())) { $val = $val ? 'disabled' : null; $usr->setDisabled($val); $nocache_xml->save(); $this->setDisabled($val); } }