<?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_ftp_check($_POST)) header("location: install.php?step=2"); ?>
			</div>
	
		<?php } ?>
		
		<form method="post" action="install.php" name="frm">
		<input type="hidden" name="step" value="1" />
			<p><?php echo $lang['txt_step_1']; ?></p>
			<table width="100%">
				<tr>	
					<td><label for="frm_ftp_servername"><?php echo $lang['txt_step_1_ftp_server'];?></label></td>
					<td><input type="text" name="frm_ftp_servername" value="<?php echo isset($_POST['frm_ftp_servername']) ? $_POST['frm_ftp_servername'] : ''; ?>"/></td>	
				</tr>
				<tr>
					<td><label><?php echo $lang['txt_step_1_ftp_username']; ?></label></td>
					<td><input type="text" name="frm_ftp_username" value="<?php echo isset($_POST['frm_ftp_username']) ? $_POST['frm_ftp_username'] : ''; ?>" /></td>
				</tr>				
				<tr>
					<td><label><?php echo $lang['txt_step_1_ftp_password']; ?></label></td>
					<td><input type="text" name="frm_ftp_password" value="<?php echo isset($_POST['frm_ftp_password']) ? $_POST['frm_ftp_password'] : ''; ?>"/></td>
				</tr>
				<tr>
					<td></td>
					<td>					
						<p align="right">
							<input type="submit" value="<?php echo $lang['frm_step_1_next_step'];?>" name="frm_send"/>					
						</p>
					</td>
				</tr>
			</table>
		</form>
