Commit 6d4c7cd7 authored by 98WuG's avatar 98WuG
Browse files

initial proof of concept - not working. communication channels working

# YouTube downloader
A "nice-looking" open-source YouTube downloader, powered by `youtube-dl`.
Current status: Not functional.
$sanitized = filter_var($url, FILTER_VALIDATE_URL);
if($sanitized == FALSE) {
echo "Invalid URL, please try again";
} else {
$output = shell_exec("./ $sanitized");
echo "$output";
echo "Shell script received \"$@\""
<html lang="en">
<!-- Useless boilerplate garbage -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<!-- Font Awesome -->
<link rel="stylesheet" href="">
<link rel="stylesheet" href="">
<!-- Bootstrap core CSS -->
<link href="" rel="stylesheet">
<!-- Material Design Bootstrap -->
<link href="" rel="stylesheet">
<!-- Cerebral CSS -->
<link rel="stylesheet" href="style.css">
<title>YouTube Downloader</title>
<div class="container">
<div class="row">
<div class="col col-lg-12 text-center mt-4">
<form id="youtube-dl"
<p class="h1 card-title text-center py-4">YouTube Downloader</p>
<div class="form-row text-center">
<div class="col-lg-12">
<div class="md-form">
<input type="text" class="form-control" name="url" id="url" required />
<label for="url" class="font-weight-light">URL</label>
<div class="form-row text-center">
<div class="col-lg-4 mx-auto">
<button type="submit" class="btn btn-primary" value="Download">Download</button>
<!-- SCRIPTS -->
<!-- JQuery -->
<script type="text/javascript" src=""></script>
<!-- Bootstrap tooltips -->
<script type="text/javascript" src=""></script>
<!-- Bootstrap core JavaScript -->
<script type="text/javascript" src=""></script>
<!-- MDB core JavaScript -->
<script type="text/javascript" src=""></script>
<script type="text/javascript">
function download() {
url: "download.php",
type: "post",
data: { "url" : $("#url").val() },
success: function(response) {
.vertical-center {
min-height: 100%;
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
flex-flow: column wrap;
//word-wrap: break-word;
//word-break: break-all;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment