Professional Documents
Culture Documents
<script src="flowplayer/flowplayer-3.2.9.min.js"></script>
<?php
$filename=$_GET["q"];
$dir = "videos/";
$fileExtension = ".flv";
$files = scandir($dir);
$numFiles = count($files);
echo "<h1>".$filename."</h1>";
style=\"display:block;width:520px;height:330px\" id=\"player\"></a>";
3.2.10.swf\");</script>";
$bytes = disk_free_space(".");
$si_prefix = array( 'B', 'KB', 'MB', 'GB', 'TB', 'EB', 'ZB', 'YB' );
$base = 1024;
href=\"videos.php?q=".$value."\">".$value."</a><br>";
=\"files[]\"></li>";
}
echo "</ul></form><br>";
?>
SETTINGS
<?php include ('includes/header.php')?>
<script type="text/javascript">
var xmlhttp;
Opera, Safari
xmlhttp=new XMLHttpRequest();
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
xmlhttp.onreadystatechange = function(){
document.getElementById("success").innerHTML=xmlhttp.responseText;
xmlhttp.send(params);
function changeDate(){
var xmlhttp;
Opera, Safari
xmlhttp=new XMLHttpRequest();
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
xmlhttp.onreadystatechange = function(){
document.getElementById("dateSuccess").innerHTML=xmlhttp.responseTe
xt;
xmlhttp.setRequestHeader("Content-type", "application/xwww-
form-urlencoded");
xmlhttp.send(null);
function checkFilename(str){
if(str.length == 0){
document.getElementById('nameError').innerHTML="";
else if(!patt.test(str)){
</li><li>dot .</li></ul>";
else{
document.getElementById('nameError').innerHTML="";
</script>
onClick="changePassword()"></button>
<br><span id="success"></span><br>
Upload
<form enctype="multipart/form-data" action="uploader.php" method="POST">
<input type="hidden" name="MAX_FILE_SIZE" value="100000" />
Choose a file to upload: <input name="uploadedfile" type="file" /><br />
<input type="submit" value="Upload File" />
</form>
$target_path = "uploads/";
if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) {
echo "The file ". basename( $_FILES['uploadedfile']['name']).
" has been uploaded";
} else{
echo "There was an error uploading the file, please try again!";
}