title) { $this->title = $lang->title; } @header("Content-type: text/html; charset=utf-8"); $this->doneheader = 1; if($image == "dbconfig") { $dbconfig_add = ""; } echo << $this->title > $title {$dbconfig_add} END; if($form) { echo "\n
script."\">\n"; $this->openedform = 1; } echo <<
END; if(empty($this->steps)) { $this->steps = array(); } if(is_array($this->steps)) { echo "\n
"; echo "\n
    \n"; foreach($this->steps as $action => $step) { if($action == $mybb->input['action']) { echo "
  • $step
  • \n"; } else { echo "
  • $step
  • \n"; } } echo "
"; echo "\n
"; echo "\n
\n"; } else { echo "\n
"; echo "\n
\n"; } if($title != "") { echo <<$title\n END; } } function print_contents($contents) { echo $contents; } function print_error($message) { global $lang; if(!$this->doneheader) { $this->print_header($lang->error, "", 0, 1); } echo "
\n "; echo "

".$lang->error."

"; $this->print_contents($message); echo "\n
"; $this->print_footer(); } function print_footer($nextact="") { global $lang, $footer_extra; if($nextact && $this->openedform) { echo "\n "; echo "\n
next." »\" />

\n"; $formend = ""; } else { $formend = ""; } echo <<
$formend $footer_extra END; exit; } } ?>