forked from axiom-team/astrXbian
23 lines
391 B
PHP
23 lines
391 B
PHP
<?php
|
|
ini_set('max_execution_time', 1000);
|
|
|
|
require_once('conf.php');
|
|
require_once('functions.php');
|
|
|
|
if (isset($_POST['youtube_url'])) {
|
|
|
|
$youtube_url = $_POST['youtube_url'];
|
|
|
|
} elseif (isset($_GET['youtube_url'])) {
|
|
|
|
$youtube_url = $_GET['youtube_url'];
|
|
}
|
|
|
|
|
|
|
|
exec("/bin/bash -c './ajouter_video_youtube.sh \"". $youtube_url ."\"'", $output);
|
|
|
|
$out = implode("\n", $output);
|
|
|
|
echo $out;
|