<?php

// -----------------------------------------------------------------------
// This file is part of AROUNDMe
//
// Copyright (C) 2003 - 2007 Barnraiser
// http://www.barnraiser.org/
// info@barnraiser.org
//
// 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, or (at your option) any
// later version.
//
// This program is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with program; see the file COPYING. If not, write to the Free
// Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
// 02110-1301, USA.
// -----------------------------------------------------------------------

?>

		<?php if (isset($_POST['frm_send'])) { ?>
		
			<div class="message">
				<p><b><?php echo $lang['txt_system_message'];?></b></p>
				<?php if (am_database_check($_POST)) { header("location: install.php?step=3"); exit; } ?>
			</div>
							
		<?php } ?>

		<form method="post" action="install.php" name="frm">
			<input type="hidden" name="step" value="2" />
			<p><?php echo $lang['txt_step_2']; ?></p>
			
			<table width="100%">
			<tr>	
			<td><label><?php echo $lang['txt_step_2_database_driver']; ?></label></td>
				<td>
					<select name="frm_database_driver">
						<option value="access">access</option>
						<option value="ado">ado</option>
						<option value="ado_access">ado_access</option>
						<option value="ado_mssql">ado_mssql</option>
						<option value="borland_ibase">borland_ibase</option>
						<option value="csv">csv</option>
						<option value="db2">db2</option>
						<option value="fbsql">fbsql</option>
						<option value="firebird">firebird</option>
						<option value="ibase">ibase</option>
						<option value="informix72">informix72</option>
						<option value="informix">informix</option>
						<option value="ldap">ldap</option>
						<option value="mssql">mssql</option>
						<option value="mssqlpo">mssqlpo</option>
						<option value="mysqli">mysqli</option>
						<option value="mysql" selected="selected">mysql</option>
						<option value="mysqlt">mysqlt</option>
						<option value="netezza">netezza</option>
						<option value="oci805">oci805</option>
						<option value="oci8">oci8</option>
						<option value="oci8po">oci8po</option>
						<option value="odbc">odbc</option>
						<option value="odbc_mssql">odbc_mssql</option>
						<option value="odbc_oracle">odbc_oracle</option>
						<option value="odbtp">odbtp</option>
						<option value="odbtp_unicode">odbtp_unicode</option>
						<option value="oracle">oracle</option>
						<option value="pdo">pdo</option>
						<option value="postgres64">postgres64</option>
						<option value="postgres7">postgres7</option>
						<option value="postgres">postgres</option>
						<option value="proxy">proxy</option>
						<option value="sapdb">sapdb</option>
						<option value="sqlanywhere">sqlanywhere</option>
						<option value="sqlite">sqlite</option>
						<option value="sqlitepo">sqlitepo</option>
						<option value="sybase">sybase</option>
						<option value="vfp">vfp</option>
					</select>
				</td>
			</tr>
			<tr>		
				<td><label><?php echo $lang['txt_step_2_database_host']; ?></label></td>
				<td><input type="text" name="frm_database_host" value="<?php echo isset($_REQUEST['frm_database_host']) ? $_REQUEST['frm_database_host'] : ''; ?>"/></td>
			</tr>
						
			<tr>	
				<td><label><?php echo $lang['txt_step_2_database_user']; ?></label></td>
				<td><input type="text" name="frm_database_user" value="<?php echo isset($_REQUEST['frm_database_user']) ? $_REQUEST['frm_database_user'] : ''; ?>"/></td>
			</tr>
			<tr>	
				<td><label><?php echo $lang['txt_step_2_database_password']; ?></label></td>
				<td><input type="text" name="frm_database_password" value="<?php echo isset($_REQUEST['frm_database_password']) ? $_REQUEST['frm_database_password'] : ''; ?>"/></td>
			</tr>
			<tr>
				<td></td>	
				<td>
					<p align="right">
						<input type="submit" value="<?php echo $lang['frm_step_2_next_step']; ?>" name="frm_send"/>					
					</p>
				</td>
			</tr>
			</table>					
		</form>		
		