<?php
/**
 * @package AkeebaBackup
 * @copyright Copyright (c)2009-2014 Nicholas K. Dionysopoulos
 * @license GNU General Public License version 2, or later
 *
 * @since 2.1
 */

// Protect from unauthorized access
defined('_JEXEC') or die();

$array = $this->array;

switch($array['Domain'])
{
	case 'init':
		$domain = JText::_('LIGHT_DOMAIN_INIT');
		break;
	case 'installer':
		$domain = JText::_('LIGHT_DOMAIN_INSTALLER');
		break;
	case 'PackDB':
		$domain = JText::_('LIGHT_DOMAIN_PACKDB');
		break;
	case 'Packing':
		$domain = JText::_('LIGHT_DOMAIN_PACKING');
		break;
	case 'finale':
	default:
		$domain = JText::_('LIGHT_DOMAIN_FINALE');
		break;
}

$step = ($array['HasRun'] == 1) ? 'done' : 'step';

?>
<html>
<head>
<title><?php echo JText::_('LIGHT_HEADER');?></title>
</head>
<body>
<h1><?php echo JText::_('LIGHT_HEADER');?></h1>
<hr/>
<p>
	<?php echo JText::_('COM_AKEEBA_DEPRECATED_FEATURE'); ?>
</p>
<hr/>
<form action="index.php" method="post" name="adminForm" id="adminForm">
<input type="hidden" name="option" value="com_akeeba" />
<input type="hidden" name="view" value="light" />
<input type="hidden" name="format" value="raw" />
<input type="hidden" name="task" value="<?php echo $step ?>" />
<input type="hidden" name="key" value="<?php echo $this->key ?>" />
<table border="0"
	style="border: thin solid black; background-color: #eeeeff;"
	width="100%">
	<tr>
		<td><b><?php echo $domain ?></b></td>
	</tr>
	<tr>
		<td><?php echo $array['Step']; ?></td>
	</tr>
	<tr>
		<td style="color: gray;"><?php echo $array['Substep']; ?></td>
	</tr>
	<tr>
		<td><small><?php echo date('Y-m-d H:i:s T', time()) ?></small></td>
	</tr>
</table>
</form>
<script type="text/javascript" language="javascript">
	document.getElementById('adminForm').submit();
</script>
</body>
</html>
