-if(isset($_POST['next'])) {
- $current = $_POST['step'] + 1;
-} else if(isset($_POST['previous'])) {
- $current = $_POST['step'] - 1;
-} else if(isset($_POST['retry'])) {
- $current = $_POST['step'];
-}
-
-switch($current) {
- case 3:
-?>
-<h2><?php printf(_('Installation of Jirafeau - step %d out of %d'), 3, 3); ?></h2>
-<div id="install">
-<form action="<?php echo basename(__FILE__); ?>" method="post">
-<input type="hidden" name="jirafeau" value="<?php echo JIRAFEAU_VERSION; ?>" />
-<input type="hidden" name="step" value="3" />
-<fieldset>
- <legend><?php echo _('Finalisation'); ?></legend>
- <table>
- <tr>
- <td class="info" colspan="2"><?php echo _('Jirafeau is setting the website according to the configuration you provided.'); ?></td>
- </tr>
- <tr>
- <td class="nav previous"><input type="submit" name="previous" value="<?php echo _('Previous step'); ?>" /></td>
- <td></td>
- </tr>
- </table>
-</fieldset>
-</form>
-</div>
-
-<?php
- $err = jirafeau_check_var_dir($cfg['var_root']);
- if($err['has_error']) {
- echo '<div class="error"><p>' . $err['why'] . '<br />' . NL;
-?>
-<form action="<?php echo basename(__FILE__); ?>" method="post">
-<input type="hidden" name="jirafeau" value="<?php echo JIRAFEAU_VERSION; ?>" />
-<input type="hidden" name="step" value="3" />
-<input type="submit" name="retry" value="<?php echo _('Retry this step'); ?>" />
-</form>
-<?php
- echo '</p></div>';
- } else {
- echo '<div class="message"><p>' . _('Your website is now fully operational:') . '<br /><a href="' . $cfg['web_root'] . '">' . $cfg['web_root'] . '</a></p></div>';
+if (isset ($_POST['next']))
+ $current = $_POST['step'] + 1;
+else if (isset ($_POST['previous']))
+ $current = $_POST['step'] - 1;
+else if (isset ($_POST['retry']))
+ $current = $_POST['step'];
+
+switch ($current)
+{
+case 3:
+ ?><h2><?php printf (_('Installation of Jirafeau') . ' - ' . _('step') .
+ ' %d ' . _('out of') . ' %d', 3, 3);
+ ?></h2> <div id = "install"> <form action =
+ "<?php echo basename(__FILE__); ?>" method = "post"> <input type =
+ "hidden" name = "jirafeau" value =
+ "<?php echo JIRAFEAU_VERSION; ?>" /><input type = "hidden" name =
+ "step" value =
+ "3" /><fieldset> <legend><?php echo _('Finalisation');
+ ?></legend> <table> <tr> <td class = "info" colspan =
+ "2"><?php echo
+ _ ('Jirafeau is setting the website according to the configuration ' .
+ 'you provided.');
+ ?></td> </tr> <tr> <td class = "nav previous"><input type =
+ "submit" name = "previous" value =
+ "
+ <?php
+ echo _('Previous step');
+ ?>" /></td> <td></td> </tr>
+ </table> </fieldset> </form> </div>
+ <?php
+ $err = jirafeau_check_var_dir ($cfg['var_root']);
+ if ($err['has_error'])
+ {
+ echo '<div class="error"><p>'.$err['why'].'<br />'.NL;
+ ?><form action = "<?php echo basename(__FILE__); ?>" method =
+ "post"> <input type = "hidden" name = "jirafeau" value =
+ "<?php echo JIRAFEAU_VERSION; ?>" /><input type = "hidden" name =
+ "step" value = "3" /><input type = "submit" name =
+ "retry" value =
+ "<?php echo _('Retry this step'); ?>" /></form>
+ <?php echo '</p></div>';
+ }
+ else
+ {
+ echo '<div class="message"><p>' .
+ _('Jirafeau is now fully operational') . ':' .
+ '<br /><a href="' . $cfg['web_root'] . '">' .
+ $cfg['web_root'].'</a></p></div>';