mirror of
https://github.com/pierre42100/comunic
synced 2024-11-17 02:51:13 +00:00
65 lines
2.5 KiB
PHP
65 lines
2.5 KiB
PHP
|
<?php
|
||
|
/**
|
||
|
* Video upload form
|
||
|
*
|
||
|
* @author Pierre HUBERT
|
||
|
*/
|
||
|
|
||
|
if(!isset($verification))
|
||
|
die(); //Sécurité
|
||
|
|
||
|
?><!DOCTYPE html>
|
||
|
<html>
|
||
|
<head>
|
||
|
<title>Envoi d'une vidéo en ligne</title>
|
||
|
<?php
|
||
|
/**
|
||
|
* Third Party elements inclusion
|
||
|
*/
|
||
|
//Gestionnaire upload
|
||
|
echo code_inc_css(url_3rdparty('gestionnaire_upload/css/main.css'));
|
||
|
echo code_inc_js(url_3rdparty('gestionnaire_upload/js/script.js'));
|
||
|
|
||
|
?>
|
||
|
|
||
|
</head>
|
||
|
<body>
|
||
|
<h1>Mise en ligne d'une vidéo</h1>
|
||
|
|
||
|
<div class="upload_form_cont">
|
||
|
<form id="upload_form" enctype="multipart/form-data" method="post" action="upload.php.txt">
|
||
|
<div>
|
||
|
<div><label for="file">Veuillez choisir votre vidéo</label></div>
|
||
|
<div><input type="file" name="file" id="image_file fime" onchange="fileSelected();" /></div>
|
||
|
</div>
|
||
|
<div>
|
||
|
<input type="button" value="Mise en ligne" onclick='startUploading("<?php echo $urlsite; ?>action.php?actionid=11")' />
|
||
|
</div>
|
||
|
<div id="fileinfo">
|
||
|
<div id="filename"></div>
|
||
|
<div id="filesize"></div>
|
||
|
<div id="filetype"></div>
|
||
|
<div id="filedim"></div>
|
||
|
</div>
|
||
|
<div id="error"></div>
|
||
|
<div id="error2">Une erreur est survenue lors de l'envoi de la vidéo. Merci de réessayer ultérieurement.</div>
|
||
|
<div id="abort">L'envoi a été annulé ou votre navigateur web a interrompu la connexion.</div>
|
||
|
<div id="warnsize">Votre vidéo est trop lourde. Nous ne pouvons pas l'accepter.</div>
|
||
|
|
||
|
<div id="progress_info">
|
||
|
<div id="progress"></div>
|
||
|
<div id="progress_percent"> </div>
|
||
|
<div class="clear_both"></div>
|
||
|
<div>
|
||
|
<div id="speed"> </div>
|
||
|
<div id="remaining"> </div>
|
||
|
<div id="b_transfered"> </div>
|
||
|
<div class="clear_both"></div>
|
||
|
</div>
|
||
|
<div id="upload_response"></div>
|
||
|
</div>
|
||
|
</form>
|
||
|
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|