1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" >
<head>
<title>Guitar-Gathering.com</title>
<meta name="Description" content="Guitar-Gathering est une communaute de guitariste ou vous pourrez apprendre la guitare, consulter des tablatures, et meme vous faire connaitre vous ou votre groupe">
<meta name="Keywords" content="tablature, apprendre, guitare, groupe, classique, electrique">
<meta name="Author" content="Tavarez">
<meta name="Content-language" content="fr">
<link rel="stylesheet" type="text/css" href="/styles/style.css" /></head>
<body>
<?php
if(isset($_FILES['video']))
{$dbcnx = @mysql_connect("xxx",
"xxx", "xxx");
if (!$dbcnx) {
echo( "<p>Impossible de se connecter " .
"au serveur en ce moment.</p>" );
exit();
}
if (! @mysql_select_db("xxx") ) {
echo( "<p>Impossible de trouver la base de donnees " .
"<votre-bdd> en ce moment.</p>" );
exit();
}
$artiste=$_POST['artiste'];
$titre=$_POST['titre'];
$cat = $_POST['categorie'];
$repertoireDestination = "videos/";
$nomDestination = $login.'_'.$_FILES['video']['name'];
move_uploaded_file($_FILES['video']['tmp_name'],
$repertoireDestination.$nomDestination);
mysql_query("INSERT INTO videos VALUES('','$artiste','$titre','$login','$nomDestination','$cat')");
mysql_close();
echo '<script>alert("Votre video a bien ete ajoutee")</script>
<a href="index.php?page=tablatures">Retourner a la liste des videos</a><br />
<a href="index.php?page=ajouter_tablature">Ajouter une autre video</a> ';
}
?>
</body>
</html> |
Partager