welcome; } if($lang->title) { $this->title = $lang->title; } @header("Content-type: text/html; charset=utf-8"); $this->doneheader = 1; $dbconfig_add = ''; if($image == "dbconfig") { $dbconfig_add = ""; } echo << {$this->title} > {$title} {$dbconfig_add} END; if($form) { echo "\n
script."\">\n"; $this->openedform = 1; } echo <<
END; if($mybb->version_code >= 1700 && $mybb->version_code < 1800) { echo $lang->development_preview; } 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; } } /** * @param string $contents */ function print_contents($contents) { echo $contents; } /** * @param string $message */ 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(); } /** * @param string $nextact */ 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; } }