-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
828 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"php.version": "8.3" | ||
{ | ||
"php.version": "8.3" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
function nextStep(step) { | ||
document.querySelectorAll('.step').forEach(function(div) { | ||
div.classList.add('hidden'); | ||
}); | ||
document.getElementById('step' + step).classList.remove('hidden'); | ||
|
||
if (step === 3) { | ||
document.getElementById('displayLogin').textContent = document.getElementById('username').value; | ||
document.getElementById('displayEmail').textContent = document.getElementById('email').value; | ||
} | ||
} | ||
|
||
document.getElementById('registrationForm').addEventListener('submit', function(event) { | ||
event.preventDefault(); | ||
|
||
var username = document.getElementById('username').value; | ||
var email = document.getElementById('email').value; | ||
var password = document.getElementById('password').value; | ||
|
||
var formData = new FormData(); | ||
formData.append('register', '1'); // Ajouter 'register' | ||
formData.append('userpower', '0'); // Ajouter 'register' | ||
formData.append('username', username); | ||
formData.append('email', email); | ||
formData.append('password', password); | ||
|
||
fetch('php/inscription.php', { | ||
method: 'POST', | ||
body: formData | ||
}) | ||
.then(response => { | ||
if (!response.ok) { | ||
throw new Error('Network response was not ok'); | ||
} | ||
return response.text(); | ||
}) | ||
.then(data => { | ||
console.log('Success:', data); // Utiliser console.log pour voir la réponse du serveur | ||
alert('Response from server: ' + data); // Afficher la réponse du serveur | ||
}) | ||
.catch(error => { | ||
console.error('Error:', error); | ||
alert('Error submitting form: ' + error.message); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,15 @@ | ||
<?php | ||
define('HOST', 'localhost'); | ||
define('DB_NAME', 'Connexion'); | ||
define('DB_NAME', 'test'); | ||
define('USER', 'root'); | ||
define('PASS', 'root'); | ||
define('PASS', 'Quadrastream1!'); | ||
|
||
|
||
try { | ||
// Création de l'objet de connexion PDO | ||
$pdo = new PDO("mysql:host=" . HOST . ";dbname=" . DB_NAME, USER, PASS); | ||
// Configuration pour afficher les erreurs PDO | ||
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); | ||
} catch (PDOException $e) { | ||
// Afficher l'erreur | ||
echo "Erreur de connexion à la base de données : " . $e->getMessage(); | ||
// Arrêter l'exécution du script | ||
die(); | ||
} | ||
?> | ||
|
||
} catch (PDOException $e) {} | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
$(document).ready(function() { | ||
// Attachez un gestionnaire d'événements au champ de recherche | ||
$("#search").on("input", function() { | ||
// Obtenez la valeur du champ de recherche | ||
var query = $(this).val(); | ||
|
||
// Vérifiez si la valeur est vide | ||
if (query === "") { | ||
$("#searchResults").empty(); | ||
} else { | ||
// Utilisez Ajax pour interroger l'API et obtenir les suggestions | ||
$.ajax({ | ||
url: "../suggest.php", // Créez un fichier PHP pour gérer les suggestions | ||
type: "GET", | ||
data: { search: query }, | ||
success: function(data) { | ||
// Mettez à jour la liste des suggestions | ||
$("#searchResults").html(data); | ||
} | ||
}); | ||
} | ||
}); | ||
}); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<section class="bg-yellow-400 rounded-xl"> | ||
<div class="py-4 px-2 mx-auto max-w-screen-xl sm:py-16 lg:px-6"> | ||
<div class="mx-auto max-w-screen-sm text-center"> | ||
<h2 class="mb-4 text-4xl tracking-tight font-extrabold leading-tight text-gray-900 ">Start your free trial today</h2> | ||
<p class="mb-6 text-white md:text-lg">Try quadra streaming for 30 days free. No credit card required.</p> | ||
<a href="#" class="text-yellow-400 bg-blue-800 hover:opacity-70 font-medium rounded-lg text-sm px-5 py-2.5 mr-2 mb-2 ">Free trial for 30 days</a> | ||
</div> | ||
</div> | ||
</section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<?php include 'php/comp/cta.php'; ?> | ||
<?php include 'php/comp/action.php'; ?> |
Oops, something went wrong.