include_once("../../php5/db_loader.php5");
$function = $_POST["function"];
if($function == "") {
$function = $_GET["function"];
}
if($function == "create_mydictionary_db") {
$dl = new db_loader();
$dl->xml_to_db_bulk("mydict","../../mydict/schema.xml","",$dl->CREATE_NEW_DATABASE);
echo "Thank you for creating a My Dictionary database! Please click here to login to your My Dictionary.
";
echo "Please click here to return Nahuatl Setup.";
}
else if($function == "create_user_db") {
$dl = new db_loader();
$dl->xml_to_db_bulk("user","../../user/schema.xml","",$dl->CREATE_NEW_DATABASE);
echo "Thank you for creating a User database! Please click on here to create your first account.
";
echo "Please click here to return Nahuatl Setup.";
}
?>