function Run() { global $HTTP_POST_VARS; global $HTTP_GET_VARS; $button_toggle = @$HTTP_POST_VARS['button_toggle']; $button_showidx = @$HTTP_GET_VARS['button_showidx']; $button_regen = @$HTTP_POST_VARS['button_regen']; $regen_projidx = @$HTTP_POST_VARS['regen_projidx']; $showmethod = @$HTTP_GET_VARS['showmethod']; if ((!empty($button_toggle) || !empty($button_showidx)) && !empty($this->iProjidx) && $this->iProjidx > 0) { $this->Preamble('DDDA Project: ' . $this->iProjname, 'DDDA Project: ' . $this->iProjname); $ip = new IndexPage($this->iDBUtils); $txt = $ip->Run($this->iProjidx, $showmethod, 3, $this->iProjname); echo $txt; } else { $this->Preamble(' DDDA Main Meny ', ' DDDA Main Meny ' . $this->iProjname); $m = new DocEditMainEntry($this->iDBUtils); $m->StrokeMeny($this->iProjname, $this->iProjidx); } }