<?php
/************************************************************************/
/* DUNE by NPDS                                                         */
/* ===========================                                          */
/*                                                                      */
/* NPDS Copyright (c) 2002-2013 by Philippe Brunier                     */
/* IZ-Xinstall version : 1.1.3                                          */
/*                                                                      */
/* Auteurs : v.0.1.0 EBH (plan.net@free.fr)                             */
/*         : v.1.1.1 jpb, phr                                           */
/*         : v.1.1.2 jpb, phr, dev, boris                               */
/*         : v.1.1.3 dev - 2013                                         */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/
if (!stristr($_SERVER['PHP_SELF'],"install.php")) { die(); }

function etape_5() {
 global $langue, $stage;
 $stage = 5;

  include_once('config.php');
 echo '<table border="0" cellpadding="2" cellspacing="1" width="100%">
  <tr class="tableau_titre">
  <td align="center" class="headform">'.ins_translate('Autres paramètres').'</td>
  </tr>
  <tr>
  <td align="center"><br />
   <form id="others_parameters" name="others_parameters" method="post" action="install.php">
   <table border="0" cellpadding="2" cellspacing="1" width="90%">
   <tr>
   <td width="60%" align="left"><b>'.ins_translate('Adresse (URL) de votre site').'</b><br />
    <div style="font-size:85%">'.ins_translate('Exemples :').'<br /><span class="vert">http://www.monsite.com</span><br /><span class="vert">http://www.monsite.com/npds</span></div>
   </td>
   <td>&nbsp;</td><td align="left">
   <input type="text" name="new_nuke_url" size="35" maxlength="80" value="'.$nuke_url.'" />
   </td>
   </tr>
   <tr>
   <td width="60%" align="left"><b>'.ins_translate('Nom de votre site').'</b><br /></td>
   <td>&nbsp;</td><td align="left">
   <input type="text" name="new_sitename" size="35" maxlength="80" value="'.$sitename.'" />
   </td>
   </tr>
   <tr>
   <td width="60%" align="left"><b>'.ins_translate('Intitulé de votre site').'</b><br /></td>
   <td>&nbsp;</td><td align="left">
   <input type="text" name="new_Titlesitename" size="60" maxlength="80" value="'.$Titlesitename.'" />
   </td>
   </tr>
   <tr>
   <td width="60%" align="left"><b>'.ins_translate('Slogan de votre site').'</b><br /></td>
   <td>&nbsp;</td><td align="left">
   <input type="text" name="new_slogan" size="35" maxlength="80" value="'.$slogan.'" />
   </td>
   </tr>';

   echo '
   <tr>
   <td width="60%" align="left"><b>'.ins_translate('Thème graphique').'</b><br /></td>
   <td>&nbsp;</td><td align="left">
   <select name="new_Default_Theme" />';

   include('themes/list.php');
   $themelist = explode(' ', $themelist);
   for($i = 0; $i < sizeof($themelist); $i++)
   {
    if($themelist[$i] != '')
    {
     echo '<option value="'.$themelist[$i].'">'.$themelist[$i].'</option>';
    }
   }
   echo '
   </select>
   </td>
   </tr>';
  
   $today = getdate();
   $tday = $today[mday];
   $tmon = $today[mon];
   $tyear = $today[year];
   if($tday < 10) { $tday = "0".$tday; }
   if($tmon < 10) { $tmon = "0".$tmon; }
   if($langue == 'english') {$startdate = $tmon.'/'.$tday.'/'.$tyear;}
   else {$startdate = $tday.'/'.$tmon.'/'.$tyear;}
   echo '
   <tr>
   <td colspan="3" align="center"><br /><br />
   <input type="hidden" name="langue" value="'.$langue.'" />
   <input type="hidden" name="stage" value="'.$stage.'" />
   <input type="hidden" name="new_startdate" value="'.$startdate.'" />
   <input type="hidden" name="op" value="write_others" />

   <input type="submit" class="bouton_standard" value="'.ins_translate(' Modifier ').'" />
   </td></tr></table>
   </form>
  </td></tr></table></table></table><br />';
}
?>