You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
astrXbian/www/boris/youtube_add_video_aux.php

23 lines
391 B

<?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;