astroport-webui/youtube_add_video.php

45 lines
903 B
PHP

<?php
ini_set('max_execution_time', 1000);
require_once('conf/conf.php');
require_once('functions.php');
?><!DOCTYPE html>
<html>
<head>
<title>Astrobunker</title>
<link rel="stylesheet" href="styles/crowdbunker/crowdbunker.css" type="text/css" />
<link rel="icon" type="image/png" href="styles/crowdbunker/astrobunker.png" />
</head>
<body>
<header>
<h1 class="sitetitle">
<a href="youtube.php"><?php echo SITENAME; ?></a>
</h1>
<p class="usp">
<?php echo USP; ?>
</p>
</header>
<main>
<article>
Votre vidéo est en cours de téléchargement.
</article>
</main>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>
$.ajax({
method: "POST",
url: "youtube_add_video_aux.php",
data: { youtube_url: "<?php echo $_POST['youtube_url']; ?>" }
})
.done(function( response ) {
console.log(response);
});
</script>
</body>
</html>