tabs = array(); $this->$parameter = $parameter; } //---------------------------------------------------------------------------- function add_file_tab($num, $title, $content, $type) { $index = $this->tabs_count(); $this->tabs[$index] = array('num' => $num, 'title' => $title, 'content' => $content, 'type' => $type); } //---------------------------------------------------------------------------- function tabs_count() { if (is_array($this->tabs)) return count($this->tabs); else return 0; } //---------------------------------------------------------------------------- function set_ignore_parameter($ar) { if (is_array($ar)) $this->ignore_parameters = $ar; else $this->ignore_parameters = array($ar); } //---------------------------------------------------------------------------- function get_ignore_parameter($ar) { return $this->ignore_parameters; } //---------------------------------------------------------------------------- function run() { global $util; $tab_index = htmlspecialchars(strip_tags($util->get($this->parameter, 'url'))); if ($tab_index == '') $tab_index = $this->tabs[0]['num']; $options_path = ''; if (is_array($this->ignore_parameters)) { $ignore = array_merge(array($this->parameter), $this->ignore_parameters); $options_path = $util->WPSR_get_current_parameters($ignore); } else { $options_path = $util->WPSR_get_current_parameters($this->parameter); } $num_index = -1; echo '