<?
include_once('version.php');
require_once('connect.php');




Get_AX_Version($AX_MOCASTER,$AX_PLAYER);
$smarty->assign('ax_player',$AX_PLAYER);



$pocket_content=$pcdb->get_article($_GET['id']);
$pss_ip_content=$pcdb->get_pssip($pocket_content['path']);
	if($pocket_content[mimetype] == 'application/sdp') {
		$url = "rtsp://$pss_ip_content/$pocket_content[postid]";
	} else if($pocket_content[path]!='0') {
		$url = "rtsp://$pss_ip_content/Record/$pocket_content[postid]/$pocket_content[videoname]";
	} else {
		$url = "http://$blog_ip/pocket/video/$pocket_content[videoname]";
	}
	//$url='<rtsp://59.124.187.50/Record/test1/test1_Rec1106022420_OTHER.3gp>E<controller=false autoplay=true scale=tofit>' ;
	
/*
if($pocket_content['mimetype'] == 'application/sdp' or $pocket_content['path']!='1'){
	$url = $pocket_content['path'];
}else{
	$url = $VIDEO_DIR.$pocket_content['videoname'];			
}
*/
$smarty->assign('pocket_url',$url);
$smarty->assign('pocket_content',$pocket_content);




// 選取最新五筆
$pocket_id = "'".$pocket_content['postid']."'";
$pocket_list=$pcdb->get_user($pocket_id,5);

$smarty->assign('pocket_list',$pocket_list);


$smarty->assign('onload','onLoad="init()"');


$smarty->assign('content','detail.tpl');

$smarty->display('index.tpl');
?>