Good mod but do not work with multyservers. For more info go to class.video_player.php and you will find it. :D
something like this i think
Code:if ($this->video_info['video_server_id'] == 0) { $file = VSHARE_URL . '/flvideo/' . $video_folder . $this->video_info['video_flv_name']; $video_id = $this->video_info['video_id']; } else { $sql = "SELECT * FROM `servers` WHERE `id`='" . (int) $this->video_info['video_server_id'] . "'"; $result = mysql_query($sql) or mysql_die($sql); $server_info = mysql_fetch_assoc($result); $video_id = $this->video_info['video_id']; if ($server_info['server_type'] == 2) { $uri_prefix = '/dl/'; $f = '/' . $this->video_info['video_folder'] . $this->video_info['video_flv_name']; $t = time(); $t_hex = sprintf('%08x', $t); $m = md5($server_info['server_secdownload_secret'] . $f . $t_hex); $file = $server_info['url'] . $uri_prefix . $m . '/' . $t_hex . $f; } else { $file = $server_info['url'] . '/' . $this->video_info['video_folder'] . $this->video_info['video_flv_name']; } } } function youtube() { echo 'Video download disabled'; exit(); } function revver() { echo 'Video download disabled'; exit(); } function metcafe() { echo 'Video download disabled'; exit(); } function embedded_code() { echo 'Video download disabled'; exit(); } function flv_url() { global $config; $file = $this->video_info['video_embed_code']; $video_id = $this->video_info['video_id']; $video_folder = $this->video_info['video_folder']; }




Reply With Quote
Bookmarks