blob: e0f7cb986e465c94ac0f6ef54cb703aba958dc5b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<?php
$mediapath = $_REQUEST['mediapath'];
$subdir = $_REQUEST['subdir'];
/* Add last slash to dirs */
if ($mediapath[strlen($mediapath)-1] != '/')
$mediapath = $mediapath .'/';
if ($subdir[strlen($subdir)-1] != '/')
$subdir = $subdir .'/';
// Use the right media type
if (mediadirhasaudio($mediapath .$subdir))
include ('includes/inc_audio.php');
else
include ('includes/inc_video.php');
?>
|