Location: PHPKode > projects > WebETB > install/index.php4
<?
/******************************************************************************/
/*	MODULE:	index.php4																			*/
/*																										*/
/* DATE:		13.06.2003, groh																	*/
/* DESC.:	Calls the installation scripts, depending on mode						*/
/*																										*/
/*	CHANGES:	.....																					*/
/*																										*/
/******************************************************************************/
include ('./header.php4');
$self = basename ($PHP_SELF);


// Give out form if script will be called the 1st time
if (!isset ($mode_set))
{
	
	?>
   <BR><BR><BR>
   <CENTER>   
   <TABLE BORDER="0">
   <FORM action="<?php echo $self ?>" method=post name="setup">
   <TR>
   	<TH COLSPAN="3" ALIGN="middle">Web-ETB Administration</TH>
   </TR>
   <tr>
      <td colspan="3"><p id="sw10_s">Bitte treffen Sie ein Auswahl:</p></td>
   </tr>
   <TR>
   	<TD><INPUT TYPE="radio" checked Value="check" NAME="stype" >Systemcheck</TD>
      <TD WIDTH=\"50\">&nbsp;</TD>
      <TD><FONT COLOR="GREEN">Pr&uuml;fung der Servervoraussetzungen zur Installation.</FONT></TD>
   </TR>   
   <TR>
   	<TD><INPUT TYPE="radio" Value="inst" NAME="stype" >Installation</TD>
      <TD WIDTH=\"50\">&nbsp;</TD>
      <TD>Die Datenbank, Tabellen, Scripts und Config-Files erstellen.</TD>
   </TR>
   <TR>
   	<TD><INPUT TYPE="radio" Value="conf" NAME="stype">Verwaltung</TD>
      <TD WIDTH=\"50\">&nbsp;</TD>
      <TD>Benutzer und Gruppen anlegen</TD>
   </TR>
   <TR>
   	<TD><INPUT TYPE="radio" Value="drop" NAME="stype">Deinstallation</TD>
      <TD WIDTH=\"50\">&nbsp;</TD>
      <TD><FONT COLOR="RED">Achtung: Es werden alle Tabellen gel&ouml;scht. Daten gehen verloren.</FONT></TD>
   </TR>
   </TABLE>
   <INPUT type="hidden" name="mode_set" value="true">
   <input type="submit" Value="Starten" style="border: 1px solid silver;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
   <input type="reset"  VALUE="Zur&uuml;ck" style="border: 1px solid silver;" onClick="history.back();">
   </FORM>
   </CENTER>
   <?
}
else 	
{
	// Which mode is selected (if none, reload form) ?
   if ( $stype == "inst" )
   {
   	echo "<meta http-equiv=\"refresh\" content=\"0; URL=install_0.php4\">\n";
      exit;   	
   }
   elseif ( $stype == "check" )
   {
   	echo "<meta http-equiv=\"refresh\" content=\"0; URL=install_check.php4\">\n";
      exit;
   }   
   elseif ( $stype == "conf" )
   {
   	echo "<meta http-equiv=\"refresh\" content=\"0; URL=install_2.php4\">\n";
      exit;
   }
   elseif ( $stype == "drop" )
   {
   	echo "<meta http-equiv=\"refresh\" content=\"0; URL=install_3.php4\">\n";
      exit;
   }
	else
   {
      $mode_set="";
      echo "<meta http-equiv=\"refresh\" content=\"0; URL=$self\">\n";
      exit;
   }  
      
}	
include ('./footer.php4');
?>
      
Return current item: WebETB