clr_str($_GET["v"]); $ad_type = $class_filter->clr_str($_GET["t"]); if ($ad_key == '' or $ad_type == '') { return; } $u = $db->execute(sprintf("SELECT * FROM `db_%sadentries` WHERE `ad_key`='%s' LIMIT 1;", $ad_type, $ad_key)); $ad_duration = gmdate("H:i:s", $u->fields["ad_duration"]); $ad_click_url = $u->fields["ad_click_url"]; $ad_custom_url = $u->fields["ad_custom_url"]; $ad_click_url = $ad_custom_url != '' ? $ad_custom_url : $u->fields["ad_click_url"]; $ad_file = $class_database->singleFieldValue('db_jwadcodes', 'db_code', 'db_key', $u->fields["ad_custom"]); $ad_file_type = $class_database->singleFieldValue('db_jwadcodes', 'db_type', 'db_key', $u->fields["ad_custom"]); $ad_file_loc = $ad_file_type == 'code' ? $ad_file : $cfg["player_url"] . '/ad_files/' . $ad_file; $ad_ext = VFileinfo::getExtension($ad_file); $ad_width = $u->fields["ad_width"]; $ad_width = (intval($ad_width) > 0) ? ' width="' . $ad_width . '"' : null; $ad_height = $u->fields["ad_height"]; $ad_height = (intval($ad_height) > 0) ? ' height="' . $ad_height . '"' : null; $ad_bitrate = $u->fields["ad_bitrate"]; $ad_bitrate = (intval($ad_bitrate) > 0) ? ' bitrate="' . $ad_bitrate . '"' : null; $impr = $cfg["main_url"] . '/' . VHref::getKey("adv") . '?t=' . $ad_type . '&impression=' . $ad_key; $ctr = $cfg["main_url"] . '/' . VHref::getKey("adv") . '?t=' . $ad_type . '&click=' . $ad_key; $pixel = $cfg["player_url"] . '/ad_files/single-pixel-ar7.gif'; header("Content-type: text/xml"); echo ''; ?> VS EasyStream Static VAST Template 2.0 date of revision 10-04-14 ]]> 00:00:15 ]]> ]]> ]]> ]]> ]]> ]]> ]]> ]]> ]]> > ]]>