Location: PHPKode > projects > FtpREadmin > ftpreadmin-0.2/index.php
<?php
/* ftpREadmin (ProFTPd MySQL Admin with Quota), Copyright (C) 2008 Vaidotas Gaidelis
 * ftpREadmin comes with ABSOLUTELY NO WARRANTY.
 * This is free software, and you are welcome to redistribute it
 * under the terms of the GNU General Public License.
 * Read 'COPYING' for further information.
 */
 
try {
	/* Include config and main class */
	require_once('config/config.inc.php');
	require_once('class/ftpREadmin.class.php');
	$login = new ftpREadmin($confArr);
	if (isset($_POST['submit'])) {
		$username = $_POST['username'];
		$password = $_POST['password'];
		
		/* Verify the login details are correct and redirect to secure.php */
		$login->verifyLogin($username, $password);
	}
}
catch(Exception $error) {
	$errorMSG = $error->getMessage();
}

/* Include the template for the form */
require_once('template/form.tpl.php');
?>
Return current item: FtpREadmin