diff options
Diffstat (limited to 'includes/inc_video.php')
-rwxr-xr-x | includes/inc_video.php | 117 |
1 files changed, 0 insertions, 117 deletions
diff --git a/includes/inc_video.php b/includes/inc_video.php deleted file mode 100755 index 8fc9208..0000000 --- a/includes/inc_video.php +++ /dev/null @@ -1,117 +0,0 @@ -<?php - -$mediapath = $_REQUEST['mediapath']; -$subdir = $_REQUEST['subdir']; -$mediapath = stripslashes($mediapath); -$subdir = stripslashes($subdir); - -/* Add last slash to dirs */ -if ($mediapath[strlen($mediapath)-1] != '/') - $mediapath = $mediapath .'/'; -if ($subdir[strlen($subdir)-1] != '/') - $subdir = $subdir .'/'; - -print "<body onorientationchange=\"updateOrientation();\" onload=\"updateOrientation();\">\r\n"; -print "<div id=\"topbar\" class=\"transparent\">\r\n"; - -print "<div id=\"leftnav\">\r\n"; - -if ($subdir == '/') - print "<a href=\"index.php\"><img alt=\"home\" src=\"images/home.png\" /></a></div>\r\n"; -else -{ - print "<a href=\"javascript:sendForm('getback')\">Back</a></div>\r\n"; - print "<div id=\"rightnav\">\r\n"; - print "<a href=\"index.php\"><img alt=\"home\" src=\"images/home.png\" /></a></div>\r\n"; -} - -print "<div id=\"title\">iStreamdev</div>\r\n"; -print "</div>\r\n"; - -print "<div id=\"content\">\r\n"; -print " <span class=\"graytitle\">Media</span>\r\n"; -print " <br>"; -print " <ul class=\"pageitem\">"; -print " <li class=\"textbox\"><span class=\"header\">Current path:</span><p>" . stripslashes($subdir) . "</p></li>"; - -$noslashdir = stripslashes($mediapath.$subdir); -$dir_handle = @opendir($noslashdir); - -if (!$dir_handle) -{ - print "Unable to open $mediapath .$subdir"; -} -else while ($medianame = readdir($dir_handle)) -{ - if($medianame == "." || $medianame == ".." || $medianame == 'lost+found') - continue; - - $medianame_array[] = $medianame; -} - -if ($medianame_array[0]) -{ - // Alphabetical sorting - sort($medianame_array); - - $audiocnt=0; - - foreach($medianame_array as $value) - { - $medianame2=addslashes($value); - - switch (mediagettype($mediapath .$subdir .$value)) - { - // Dir - case 3: - { - print "<li class=\"menu\">\r\n"; - print " <a class=\"noeffect\" href=\"javascript:sendForm('$medianame2');\">\r\n"; - print " <span class=\"name\">$value</span><span class=\"arrow\"></span>\r\n"; - print " </a>\r\n"; - print "</li>\r\n"; - print "<form name=\"$value\" id=\"$value\" method=\"post\" action=\"index.php\">"; - print " <input name=\"action\" type=\"hidden\" id=\"action\" value=\"video\"/>"; - print " <input name=\"mediapath\" type=\"hidden\" id=\"mediapath\" value=\"{$mediapath}\" />"; - print " <input name=\"subdir\" type=\"hidden\" id=\"subdir\" value=\"" .stripslashes($subdir) .stripslashes($value) ."\" />\r\n"; - print "</form>\r\n"; - break; - } - // Video - case 1: - { - print "<li class=\"menu\">\r\n"; - print " <a class=\"noeffect\" href=\"javascript:sendForm('$medianame2');\">\r\n"; - print " <img src=\"images/pictos/video.png\" />\r\n"; - print " <span class=\"name\">$value</span><span class=\"arrow\"></span>\r\n"; - print " </a>\r\n"; - print "</li>\r\n"; - print "<form name=\"$value\" id=\"$value\" method=\"post\" action=\"index.php\">"; - print " <input name=\"action\" type=\"hidden\" id=\"action\" value=\"stream\"/>"; - print " <input name=\"type\" type=\"hidden\" id=\"type\" value=3 />"; - print " <input name=\"mediapath\" type=\"hidden\" id=\"mediapath\" value=\"{$mediapath}\" />"; - print " <input name=\"subdir\" type=\"hidden\" id=\"subdir\" value=\"{$subdir}\" />\r\n"; - print " <input name=\"name\" type=\"hidden\" id=\"name\" value=\"{$mediapath}{$subdir}{$value}\" />"; - print "</form>\r\n"; - break; - } - // Rest of files - default: - continue; - } - } -} - -$upsubdir = dirname($subdir); - -print "<form name=\"getback\" id=\"getback\" method=\"post\" action=\"index.php\">\r\n"; -print " <input name=\"action\" type=\"hidden\" id=\"action\" value=\"video\"/>\r\n"; -print " <input name=\"mediapath\" type=\"hidden\" id=\"mediapath\" value=\"{$mediapath}\" />\r\n"; -print " <input name=\"subdir\" type=\"hidden\" id=\"subdir\" value=\"{$upsubdir}\" />\r\n"; -print "</form>\r\n"; - -if ($dir_handle) - closedir($dir_handle); - -print "</ul></div>\r\n"; -?> |