mirror of
https://gitlab.com/animath/si/plateforme-corres2math.git
synced 2025-06-25 02:20:29 +02:00
Phase 1 : envoi des vidéos (en cours)
This commit is contained in:
@ -8,6 +8,17 @@ elseif (isset($new_video))
|
||||
echo "<h2>Votre vidéo a bien été envoyée !</h2>";
|
||||
?>
|
||||
|
||||
<?php
|
||||
while (($data = $videos_req->fetch()) !== false) {
|
||||
$link = $data["link"];
|
||||
echo "<a href=\"$link\">$link</a><br />";
|
||||
if (preg_match("#https?\://www\.youtube\.com\/watch\?v=(.*)#", $link, $matches)) {
|
||||
$code = $matches[1];
|
||||
echo "<center><iframe width=\"560\" height=\"315\" src=\"https://www.youtube.com/embed/$code\" frameborder=\"0\" allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen></iframe></center><br />";
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<form method="POST">
|
||||
<table style="width: 100%;">
|
||||
<tbody>
|
||||
|
Reference in New Issue
Block a user