Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
55 lines (50 sloc) 2.19 KB
// playlist.php - Edit video files for television broadcasts
// Copyright (C) 2009 St. lokale omroep Midvliet
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// GNU Affero General Public License for more details.
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <>.
// This file is partly based on Basic TODO list (todo.php) written by
// Amadeus Stevenson. See acknowledgements.txt for the license of todo.php
require_once ('tvfunctions.php'); // Functions for TV scripts
require_once ('tvconfig.php'); // Settings for TV scripts
testConfiguration(); // Test if configuration of directorys is OK
if (isset ($_FILES['userfile']['tmp_name'])) {
// Process "Upload"
move_uploaded_file($_FILES['userfile']['tmp_name'], VIDEODIR."/".CleanFileName($_FILES['userfile']['name']));
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "">
<html xmlns="" xml:lang="en" >
<title><?php echo OWNER;?></title>
<link rel="stylesheet" href="tv.css" type="text/css" />
<form method="post" enctype="multipart/form-data">
<b>TV Upload pagina, versie <?php echo VERSION;?></b><br /><br />
<fieldset class="navigation">
<?php echo 'Gebruiker: ', $_SERVER['PHP_AUTH_USER']; ?>
<fieldset class="main">
<fieldset class="buttons">
<input name="userfile" type="file" style="float: left;" /> <input type="submit" value="Upload" class="button" />
Jump to Line
Something went wrong with that request. Please try again.