%PDF- %PDF-
Direktori : /home/nailstv/public_html/ |
Current File : /home/nailstv/public_html/video.php |
<?php require_once 'config/config.php'; Registry::set('debug', false); $p['title'] = ''; $p['desc'] = ''; $p['keywords'] = ''; $p['pagename'] = 'Kép'; $page = new Page(Registry::get('site'), false, $p, false); Registry::set('page', $page); //////////////////////////////////////////////////////////////////////////////// if(isset($_GET['id']) && settype($_GET['id'], 'integer')){ $db = Registry::get('db'); $c = new Content(); settype($_GET['id'], 'integer'); $bind = array($_GET['id']); $sql = "SELECT v.id, v.cim, v.szoveg, v.file, k.file as kep FROM video v LEFT JOIN kep k ON k.galeria_id = v.id AND k.tipus = 'video' AND k.def = 't' WHERE v.storno = 'f' AND v.aktiv = 't' AND v.id = ?"; $row = $db->GetRow($sql, $bind); generateXML($row); } else { die; } function generateXML($video) { $video_file = Registry::get('wwwroot') . '/video/' . $video['file']; $video_kep = Registry::get('wwwroot') . '/video/' . $video['id'] . '/680_382/' . $video['kep']; $out = '<?xml version="1.0" encoding="utf-8"?> <VIDEO> <auto_play><![CDATA[false]]></auto_play> <share><![CDATA[false]]></share> <download_btn><![CDATA[false]]></download_btn> <video_share_link><![CDATA[]]></video_share_link> <video_title><![CDATA[]]></video_title> <video_desc><![CDATA[]]></video_desc> <main_video_src><![CDATA['.$video_file.']]></main_video_src> <video_download_link><![CDATA[]]></video_download_link> <video_poster_img><![CDATA['.$video_kep.']]></video_poster_img> <buffer><![CDATA[20]]></buffer> <init_volume><![CDATA[2]]></init_volume> </VIDEO> '; echo $out; die; } ?>