* @author Alê Borba <*****@*****.**>
 * @version 0.0.1
 * @license <a href="http://www.opensource.org/licenses/bsd-license.php">BSD License</a>
 */
//Get the flag sended via $_GET
$infos = isset($_GET['config']) && $_GET['config'] == true ? $_GET['config'] : false;
if ($infos) {
    include_once 'autoload.inc.php';
    //Get the informations sended via $_POST
    $hostname = isset($_POST['dbhost']) ? $_POST['dbhost'] : null;
    $database = isset($_POST['dbname']) ? $_POST['dbname'] : null;
    $user = isset($_POST['dbuser']) ? $_POST['dbuser'] : null;
    $pass = isset($_POST['dbpass']) ? $_POST['dbpass'] : null;
    $nasp = new MoIPNASP();
    $nasp->setDatabase($hostname, $database, $user, $pass);
    $nasp->createTable();
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>NASP's Database Configuration</title>
        <style type="text/css">
            .conteudo{
                width: 75%;
                margin: auto;
                margin-top: 100px;
            }
            .logoMoip{
                text-align: center;