_activeStep = $step; break; default: die('Invalid step'); break; } } /** * Sets the Javascript for the Next and Previous buttons. * @param $prev mixed Use null to hide the Previous button or the Javascript you want to be executed when the button is clicked. * @param $next mixed Use null to hide the Next button or the Javascript you want to be executed when the button is clicked. */ function setButtons($prev, $next) { $this->_nextButton = $next; $this->_prevButton = $prev; } /** * Sets the main body content of the output * @param $content string The main body content */ function setContent($content) { $this->_content = $content; } /** * Sets the automation Javascript, to be executed upon page load * @param string $script The Javascript to run when the document object is ready */ function setAutomation($script) { $this->_automationJS = $script; } /** * Sets the output mode. Use 'html' to display the full interface, or 'raw' to * output the content alone, e.g. when using AJAX calls. * @param $mode string Output mode */ function setMode($mode) { switch($mode) { case 'html': case 'raw': $this->mode = $mode; break; default: die('Invalid output mode "'.$mode.'"'); } } /** * Sets an error message to be displayed with the output * @param $message string The error message to show * @param $overwrite bool Should this error message overwrite any previous error messages? Defaults to true. */ function setError($message, $overwrite = true) { if($overwrite) { $this->_error_message = $message; } else { $this->_error_message .= $message; } } function output() { if(!empty($this->_redirection)) { header('Location: '.$this->_redirection); return; } if($this->mode != 'html') { if(!empty($this->_content)) echo $this->_content; } else { ?> Akeeba Backup Installer <?php echo AKEEBA_VERSION ?>
_activeStep == 'index' ? 'class="active"' : '' ?>> _activeStep == 'db' ? 'class="active"' : '' ?>> _activeStep == 'setup' ? 'class="active"' : '' ?>> _activeStep == 'finish' ? 'class="active"' : '' ?>>
_error_message)):?>
_error_message?>
_content ?>