<?PHP

	include_once("./install.inc.php") ;

	$fournisseur 	= $HTTP_POST_VARS['fournisseur'];

	$real_path		= $HTTP_POST_VARS['real_path'] ;
	$server			= $HTTP_POST_VARS['server'] ;
	$login			= $HTTP_POST_VARS['login'] ;
	$password		= $HTTP_POST_VARS['password'] ;
	$bdd			= $HTTP_POST_VARS['bdd'] ;
	$url			= $HTTP_POST_VARS['url'] ;
	$lang			= $HTTP_POST_VARS['lang'] ;

	if ( ! WriteAnema($real_path) ) {
		location('manual.php');
	}
	if ( ! WriteConfig($real_path, $server, $login, $password, $bdd, $url, $lang) ) {
		location('manual.php');
	}

?>
<html>
<head>
<title>...::: G A N E S H A installation / Etape 3 :::....</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="css/base.css" type="text/css">
<script language="JavaScript">
<!--
function Confirm1(form) {
	mytext = "Vous avez selectionne : Nouvelle installation\n\nATTENTION : FAIRE UN SAUVEGARDE DE VOTRE BASE DE DONNEES" ;
	mytext = mytext + "\n\nConfirmez le choix ?" ;
    ans=window.confirm(mytext);
    if(ans)	{ 
		form.submit(); 
	}
}
function Confirm2(form) {
	mytext = "Vous avez selectionne : Reinstallation de la <?PHP echo $version ?> sans toucher à la base de données" ;
	mytext = mytext + "\n\nConfirmez le choix ?" ;	
    ans=window.confirm(mytext);
    if(ans)	{ 
		form.submit(); 
	}
}
function Confirm3(form) {
	mytext = "Vous avez selectionne : Mise a jour de la version de Ganesha\n\nATTENTION : FAIRE UN SAUVEGARDE DE VOTRE BASE DE DONNEES" ;
	mytext = mytext + "\n\nConfirmez le choix ?" ;
    ans=window.confirm(mytext);
    if(ans)	{ 
		form.submit(); 
	}
}
function openWindow(theURL,winName,features) { 
  window.open(theURL,winName,features);
}
//-->
</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">


<table width="780" border="0" cellspacing="0" cellpadding="0" height="503">
  <tr> 
    <td height="70" colspan="2"><img src="images/ganesha.gif" width="780" height="81" usemap="#Map" border="0" alt="GANESHA"></td>
  </tr>
  <tr> 
    <td height="437" valign="top" width="2%">&nbsp;</td>
    <td height="437" valign="top" width="98%" class="texte"> 
      <table width="100%" border="0">
        <tr> 
          <td width="21%" height="35" class="grandTitre" align="center"> Etape 
            3 / Step 3 </td>
          <td width="56%" class="grandTitre" height="35"> <p>S&eacute;lectionnez
               votre type d'installation / <span class="grandTitreangl">Select your installation type</span></p></td>
          <td width="23%" height="35" class="grandTitre">Version <?PHP echo $version?> 
          </td>
        </tr>
        <tr> 
          <td width="21%" valign="top" height="101"> <table width="100%" border="0" cellspacing="1" cellpadding="1">
              <tr>
                <td bgcolor="#000000"><table width="100%" border="0" cellpadding="0" cellspacing="0">
                    <tr> 
                      <td height="48" align="center" class="celluleor"> <?PHP echo $fournisseur ?> 
                        <br> <a href="#" onClick="openWindow('source.php?file=./config.inc.php','source','scrollbars=yes,width=850,height=400')">config.inc.php</a><br> 
                        <a href="#"  onClick="openWindow('source.php?file=./anema.inc.php','source','scrollbars=yes,width=850,height=400')">anema.inc.php</a> 
                      </td>
                    </tr>
                  </table></td>
              </tr>
            </table></td>
          <td width="56%" height="101" valign="top"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td><table bgcolor="#000000" border=0 cellpadding=0 cellspacing=0 width="450" align="center">
                    <tr> 
                      <td> <table border=0 cellpadding=0 cellspacing=1 width="100%">
                          <tr> 
                            <td align="center" class="blanc" bgcolor="#333366">Installation 
                              compl&egrave;te / Full install</td>
                          </tr>
                          <tr> 
                            <td bgcolor="#FFFFFF">
                                <table border=0 cellpadding=2 cellspacing=0 align="center" width="100%" >
                                  <form name="frm" method="post" action="step3f.php"><tr> 
                                    <td width="337" class="cellule">Installation 
                                      compl&egrave;te de Ganesha <?PHP echo $version ?> 
                                      et de la base de donn&eacute;es<br> 
                                      <font class="texte">Full 
                                      installation of Ganesha  <?PHP echo $version ?> 
                                      and database</font></td>
                                    <td width="103" class="cellule"> 
                                      <input type="button" class="boutton" name="verif" value="Version + BDD" onClick="Confirm1(this.form)">
                                    </td>
                                  </tr></form>
                                </table>
                              </td>
                          </tr>
                        </table></td>
                    </tr>
                  </table></td>
              </tr>
              <tr> 
                <td>&nbsp;</td>
              </tr>
              <tr> 
                <td><table bgcolor="#000000" border=0 cellpadding=0 cellspacing=0 width="450" align="center">
                    <tr> 
                      <td> <table border=0 cellpadding=0 cellspacing=1 width="100%">
                          <tr bgcolor="#FF6600"> 
                            <td align="center" class="titre1" bgcolor="#FFA851">R&eacute;installation
                               de la version / Release re-installation</td>
                          </tr>
                          <tr> 
                            <td bgcolor="#FFFFFF">
                                <table width="100%" border=0 cellpadding=2 cellspacing=0 >
                                  <form name="frm" method="post" action="step4.php"><tr>
                                    <td width="91%" class="celluleor">R&eacute;installation
                                       de Ganesha <?PHP echo $version ?> sans
                                       toucher &agrave; la base de donn&eacute;es<br> 
                                      <font class="texte">Re-installation of
                                       Ganesha <?PHP echo $version ?> without
                                        database insert</font></td>
                                    <td width="9%" class="celluleor"> <input type="button" class="boutton" name="verif2" value="Version" onClick="Confirm2(this.form)"> 
                                    </td>
                                  </tr></form>
                                </table>
                              </td>
                          </tr>
                        </table></td>
                    </tr>
                  </table></td>
              </tr>
              <tr> 
                <td>&nbsp;</td>
              </tr>
              <tr> 
                <td><table bgcolor="#000000" border=0 cellpadding=0 cellspacing=0 width="450" align="center">
                    <tr> 
                      <td> <table border=0 cellpadding=0 cellspacing=1 width="100%" height="42">
                          <tr bgcolor="#FF6600"> 
                            <td align="center" class="titre1" bgcolor="#FFA851">Mise à jour
                              de la version 1.4  / Update release 1.4</td>
                          </tr>
                          <tr> 
                            <td bgcolor="#FFFFFF" height="28"> 
                                <table width="100%" border=0 cellpadding=2 cellspacing=0 align="center" >
                                  <form name="frm" method="post" action="step3w.php"><tr> 
                                    <td width="384" class="celluleor">Mise à jour 
                                      de la base de donn&eacute;es de la version 
                                      1.4<br> 
                                      <font class="texte">Update database version
                                      1.4</font> 
                                    </td>
                                    <td width="56" class="celluleor"> 
                                      <input type="button" class="boutton" name="verif3" value="Mise à jour 1.4" onClick="Confirm3(this.form)"> 
                                    </td>
                                  </tr></form>
                                </table>
                              </td>
                          </tr>
                        </table></td>
                    </tr>
                  </table></td>
              </tr>
              <tr> 
                <td>&nbsp;</td>
              </tr>              
              <tr> 
                <td><table bgcolor="#000000" border=0 cellpadding=0 cellspacing=0 width="450" align="center">
                    <tr> 
                      <td> <table border=0 cellpadding=0 cellspacing=1 width="100%" height="42">
                          <tr bgcolor="#FF6600"> 
                            <td align="center" class="titre1" bgcolor="#FFA851">Mise à jour
                              de la version 1.3  / Update release 1.3</td>
                          </tr>
                          <tr> 
                            <td bgcolor="#FFFFFF" height="28"> 
                                <table width="100%" border=0 cellpadding=2 cellspacing=0 align="center" >
                                  <form name="frm" method="post" action="step3u.php"><tr> 
                                    <td width="384" class="celluleor">Mise à jour 
                                      de la base de donn&eacute;es de la version 
                                      1.3<br> 
                                      <font class="texte">Update database version
                                      1.3</font> 
                                    </td>
                                    <td width="56" class="celluleor"> 
                                      <input type="button" class="boutton" name="verif3" value="Mise à jour 1.3" onClick="Confirm3(this.form)"> 
                                    </td>
                                  </tr></form>
                                </table>
                              </td>
                          </tr>
                        </table></td>
                    </tr>
                  </table></td>
              </tr>
              <tr> 
                <td>&nbsp;</td>
              </tr>
              <tr> 
                <td><table bgcolor="#000000" border=0 cellpadding=0 cellspacing=0 width="450" align="center">
                    <tr> 
                      <td> <table border=0 cellpadding=0 cellspacing=1 width="100%" height="42">
                          <tr bgcolor="#FF6600"> 
                            <td align="center" class="titre1" bgcolor="#FFA851">Mise 
                              à jour de la version 1.2 / Update release 1.2</td>
                          </tr>
                          <tr> 
                            <td bgcolor="#FFFFFF" height="28"> 
                                <table width="100%" border=0 cellpadding=2 cellspacing=0 align="center" >
                                  <form name="frm" method="post" action="step3v.php"><tr> 
                                    <td width="384" class="celluleor">Mise à jour 
                                      de la base de donn&eacute;es de la version 
                                      1.2<br> 
                                      <font class="texte">Update database version
                                      1.2</font></td>
                                    <td width="56" class="celluleor"> 
                                      <input type="button" class="boutton" name="verif3" value="Mise à jour 1.2" onClick="Confirm3(this.form)">
                                    </td>
                                  </tr></form>
                                </table>
                              </td>
                          </tr>
                        </table></td>
                    </tr>
                  </table></td>
              </tr>
            </table> </td>
          <td width="23%" height="101"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td><table width="100%" border="0" cellspacing="1" cellpadding="1">
                    <tr>
                      <td bgcolor="#000000"><table width="100%" border="0" cellpadding="2" cellspacing="0">
                          <tr> 
                            <td align="center" class="cellule"><font class="grandTitre">ATTENTION
                                !</font><br> 
                              Installation compl&egrave;te = perte de toutes vos
                              données.<br> 
                              <br>
                              <span class="grandTitreangl"><i><b>WARNING !</b></i></span><br>
                              <font color="#333366">Full install = lost of all your data</font> 
                            </td>
                          </tr>
                        </table></td>
                    </tr>
                  </table></td>
              </tr>
              <tr> 
                <td>&nbsp;</td>
              </tr>
              <tr> 
                <td><table width="100%" border="0" cellspacing="1" cellpadding="1">
                    <tr>
                      <td bgcolor="#000000"><table width="100%" border="0" cellpadding="2" cellspacing="0">
                          <tr> 
                            <td align="center" class="celluleor"><span class="grandTitre">Avant
                                une mise &agrave; jour&nbsp;</span>!<br>
                              installez les
                              fichiers de la nouvelle version<br> 
                              <br>
                              Et faites une sauvegarde de l'ancienne base de
                              donn&eacute;es. 
                              <br> <br> 
                              <span class="grandTitreangl">Before an update !</span><br>
                              <font color="#333366"> do an 
                              upload
                              of all files of new release<br>
                              <br>
                            and backup  your old database.</font></td>
                          </tr>
                        </table></td>
                    </tr>
                  </table></td>
              </tr>
            </table>
            
          </td>
        </tr>
      </table>
			</tr>
  <tr> 
    <td colspan="2"><img src="images/conception.gif" width="780" height="59" usemap="#Map2" border="0" alt="GANESHA"></td>
  </tr>
</table>
<map name="Map">
  <area shape="rect" coords="22,59,83,74" href="index.php" target="_parent" alt="Accueil" title="Accueil">
  <area shape="rect" coords="146,40,323,59" href="http://www.anemalab.org" target="_blank" alt="Site support" title="Site support">
  <area shape="rect" coords="659,11,776,29" href="remerciements.html" target="_parent" alt="remerciements" title="remerciements">
  <area shape="rect" coords="654,39,762,56" href="../docs/man/index.htm" alt="Aide en ligne" title="Aide en ligne" target="_blank">
</map>
<map name="Map2">
  <area shape="rect" coords="521,4,739,57" href="http://www.anema-formation.fr" target="_blank" alt="Anema formation" title="Anema formation">
</map>
</body>
</html>
