예제 #1
0
/*
 * Si creation database demandee, il est possible de faire un choix
 */
$disabled="";
if (! $error && ! empty($_POST["db_create_database"]))
{
	$disabled="";
}else{
	$disabled="disabled";
}

if (! $error && $db->connected)
{
	if (! empty($_POST["db_create_database"]))
	{
		$result=$db->select_db($_POST["db_name"]);
		if ($result)
		{
			print '<div class="error">'.$langs->trans("ErrorDatabaseAlreadyExists",$_POST["db_name"]).'</div>';
			print $langs->trans("IfDatabaseExistsGoBackAndCheckCreate").'<br><br>';
			print $langs->trans("ErrorGoBackAndCorrectParameters");
			$error++;
		}
	}
}

if (! $error && $db->connected)
{
	?>
<table border="0" cellpadding="1" cellspacing="0" width="100%">