/**
  * Returns the translation text of a given key
  * @param $key string Translation key
  * @return string Translation text
  * @static
  */
 public static function _($key)
 {
     static $instance;
     if (!is_object($instance)) {
         $instance = ABIText::getInstance();
     }
     return $instance->_realTranslate($key);
 }
Exemplo n.º 2
0
    function output()
    {
        if (!empty($this->_redirection)) {
            header('Location: ' . $this->_redirection);
            return;
        }
        if ($this->mode != 'html') {
            if (!empty($this->_content)) {
                echo $this->_content;
            }
        } else {
            ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title>Akeeba Backup Installer <?php 
            echo AKEEBA_VERSION;
            ?>
</title>
	<link rel="shortcut icon" href="../images/favicon.ico" />
	<link rel="stylesheet" href="css/install.css" type="text/css" />
	<link rel="stylesheet" href="css/redmond/jquery-ui-redmond.css" type="text/css" />
	<script type="text/javascript" src="js/jquery.min.js"></script>
	<script type="text/javascript" src="js/jquery-ui.min.js"></script>
	<script type="text/javascript" src="js/install.js"></script>
	<script type="text/javascript" src="js/jquery.blockUI.js"></script>
	<script type="text/javascript" src="js/cookie.js"></script>
	<script type="text/javascript" language="javascript">
		$(document).ready(function(){
			<?php 
            echo $this->_automationJS;
            ?>

		});
	</script>
</head>

<body>
<form action="index.php" method="post"
	enctype="application/x-www-form-urlencoded" id="installForm"><input
	type="hidden" name="task" id="task" value="" />
<div id="header"><img id="logo" src="css/img/logo.png" border="0"
	alt="JPI Logo" />
<h1>Akeeba Backup Installer <?php 
            echo AKEEBA_VERSION;
            ?>
</h1>
<div id="buttonbar">
	<?php 
            if (!empty($this->_nextButton)) {
                ?>
	<span class="next"><a href="javascript:<?php 
                echo $this->_nextButton;
                ?>
" id="nextButton"><?php 
                echo ABIText::_('NEXT');
                ?>
</a></span>
	<?php 
            }
            ?>
	<?php 
            if (!empty($this->_skipButton)) {
                ?>
	<span class="next"><a href="javascript:<?php 
                echo $this->_nextButton;
                ?>
" id="skipButton"><?php 
                echo ABIText::_('SKIP');
                ?>
</a></span>
	<?php 
            }
            ?>
	<?php 
            if (!empty($this->_prevButton)) {
                ?>
	<span class="prev"><a href="javascript:<?php 
                echo $this->_prevButton;
                ?>
" id="prevButton"><?php 
                echo ABIText::_('PREV');
                ?>
</a></span>
	<?php 
            }
            ?>
</div>
</div>
<div id="stepbar">
<div class="center"><span
	<?php 
            echo $this->_activeStep == 'index' ? 'class="active"' : '';
            ?>
><?php 
            echo ABIText::_('STEP_INDEX');
            ?>
</span>
<span <?php 
            echo $this->_activeStep == 'db' ? 'class="active"' : '';
            ?>
><?php 
            echo ABIText::_('STEP_DB');
            ?>
</span>
<span
	<?php 
            echo $this->_activeStep == 'setup' ? 'class="active"' : '';
            ?>
><?php 
            echo ABIText::_('STEP_INFO');
            ?>
</span>
<span
	<?php 
            echo $this->_activeStep == 'finish' ? 'class="active"' : '';
            ?>
><?php 
            echo ABIText::_('STEP_FINISH');
            ?>
</span>
</div>
</div>
<?php 
            if (!empty($this->_error_message)) {
                ?>
<div id="errormessage">
	<?php 
                echo $this->_error_message;
                ?>
</div>
<?php 
            }
            ?>
<div id="main"><?php 
            echo $this->_content;
            ?>
</div>
<div id="footer">
<p><?php 
            echo ABIText::_('FOOTER');
            ?>
</p>
</div>

</form>
</body>
</html>
	<?php 
        }
    }