File: /home/httpd/html/tubeshemale.com/public_html/playerConfig.php
<?
include('admin/config.php');
include('admin/adultCentro.config.php');
include('admin/webmasterCentral.config.php');
function getMediaLink($filename) {
$secret = "ihatelighttpd";
$uri_prefix = "/dl/";
$filename = rawurldecode($filename);
$f = "/".$filename;
$t = time();
$t_hex = sprintf("%08x", $t);
$m = md5($secret.$f.$t_hex);
$link = 'http://media.asfd.com/dl/'.$m.'/'.$t_hex.$f;
return $link;
}
function getWebmasterCentralVideo($vid) {
global $webmasterCentralUID;
global $webmasterCentralSecretKey;
$strDateStamp=strftime('%m/%d/%Y %H:%M:%S %p');
$strHash = MD5($webmasterCentralSecretKey.'/'.$strDateStamp);
$URLen = urlencode($strDateStamp);
$strSendFlash = 'http://xml.webmastercentral.com/XML_HD_flowplayer.xml?vid='.$vid.'&uid='.$webmasterCentralUID.'&e='.$URLen.'&h='.$strHash;
$xml = simplexml_load_string(file_get_contents($strSendFlash));
foreach($xml as $set) {
$file = $set->location;
}
return $file;
}
function getAdultCentroVideo($cid) {
global $adultCentroPassword;
global $adultCentroSecureValueForHash;
global $adultCentroBaseUrl;
global $adultCentroAuthUser;
global $adultCentroAuthAdd;
global $adultCentroAuthAlias;
$adultCentroExpirationTimestamp = time()+600;
$authaliasRequired = false;
$link = $adultCentroBaseUrl.'content/downloadapp.php?cid='.$cid.'&format=14&hash=2f4488affd57a5fcd98032af3b7ec850';
$videoLink = preg_replace('/&?hash\s*=\s*[^&]*/i', '', $link);
$videoLink .= '&till=' . $adultCentroExpirationTimestamp . ($authaliasRequired ? '&alias=' . $adultCentroAuthAlias : '');
$hash = md5($videoLink . md5($adultCentroPassword) . $adultCentroSecureValueForHash . $adultCentroExpirationTimestamp . (empty($checkIp) ? '' : $_SERVER['REMOTE_ADDR']));
$final_url = $videoLink . '&hash=' . $hash;
return $final_url;
}
$file = explode('&',$_SERVER['QUERY_STRING']);
$file = explode("|",$file[0]);
$paysiteid = $file[1];
$file = $file[0];
if(stripos($file,'webmastercentral') !== false) {
$fileId = str_replace('webmastercentral','',$file);
$file = getWebmasterCentralVideo($fileId);
$seekParam = '&starttime=';
}
if(stripos($file,'adultcentro') !== false) {
$fileId = str_replace('adultcentro','',$file);
$acHeaders = get_headers(getAdultCentroVideo($fileId));
foreach($acHeaders as $ac) {
if(stripos($ac,'Location:') !== false) {
$file = str_ireplace("Location: ","",$ac);
break;
}
}
$seekParam = '&ec_seek=';
}
if(is_numeric($_GET[paysiteid])) {
$cacheName = "paysite".$id;
$cacheResult = getCache($cacheName);
if($cacheResult) {
$prow = $cacheResult;
} else {
$result = mysql_query("SELECT * FROM paysites WHERE record_num = '$paysiteid'") or die(mysql_error());
$prow = mysql_fetch_assoc($result);
}
if($prow[inline_xml_url]) {
$player_inline_ad_url = $prow[inline_xml_url];
}
if($prow[pre_xml_url]) {
$player_pre_ads_url = $prow[pre_xml_url];
}
if($prow[pause_xml_url]) {
$player_pause_ads_url = $prow[pause_xml_url];
}
if($prow[post_xml_url]) {
$player_post_ads_url = $prow[post_xml_url];
}
}
if(eregi('http',rawurldecode($file))) {
$player_streamer = 'lighttpd';
if(eregi('http:/',rawurldecode($file)) && !eregi('http://',rawurldecode($file))) {
$video_file = str_replace('http:/','http://',rawurldecode($file));
}
else {
$video_file = rawurldecode($file);
}
}
else {
$video_file = rawurldecode($file);
$row[filename] = $video_file;
$subdir = $row[filename][0].'/'.$row[filename][1].'/'.$row[filename][2].'/'.$row[filename][3].'/'.$row[filename][4].'/';
$video_file = $video_url.'/'.$subdir.$file;
}
if($player_streamer == 'rtmp') {
$subdir = $row[filename][0].'/'.$row[filename][1].'/'.$row[filename][2].'/'.$row[filename][3].'/'.$row[filename][4].'/';
$video_file = $subdir.$file;
}
if(!$seekParam) {
$seekParam = '?start=';
}
?>
main{
streaming:<? echo $player_streamer; ?>;
flvMask:<? echo $video_file; ?>;
currentDomain:;
useSecure:false;
autoPlay:<? echo $player_autoplay; ?>;
bufferTime:<? echo $player_buffertime; ?>;
siteCallback:false;
domains:site.com;
defaultVideo:<? echo $video_file; ?>;
seekingParameter:<? echo $seekParam; ?>;
}
rtmp{
conn:<? echo $player_rtmp; ?>;
}
ads{
showPre:<? echo $player_pre_ads; ?>;
showPause:<? echo $player_pause_ads; ?>;
showPost:<? echo $player_post_ads; ?>;
}
ads.settings{
showMiddleButton:true;
maxHeight:180;
}
ads.display.pre{
type:image;
url:<? echo $player_pre_ads_url; ?>;
}
ads.display.pause{
type:image;
url:<? echo $player_pause_ads_url; ?>;
}
ads.display.post{
type:image;
url:<? echo $player_post_ads_url; ?>;
}
modules{
load:[<? if($player_use_inline_ad == 'true') { echo 'InlineAd'; } ?>];
}
modules.InlineAd{
time:0;
useExternal:true;
font:Verdana;
}
/*
Default stuff not used if useExternal is set
*/
modules.InlineAd.text{
by:;
title:Free Porn;
desc:Check here for More FREE Porn;
link:<? echo $basehttp; ?>;
bottom:An example ad;
}
modules.InlineAd.external{
url:<? echo $player_inline_ad_url; ?>;
params:[];
method:GET;
}
modules.InlineAd.colors{
by:0xFFFFFF;
title:0xFFFFFF;
desc:0xFFFFFF;
link:0xE0E0E0;
}
enhancements{
load:[ControlBar,Player];
}
ui{
background:0x000000;
}
ui.video{
defaultSize:FIT_SCREEN;
}
ui.overlay{
fullHeight:false;
}
ui.rightclick.1{
setting:<? echo $player_right_click_url; ?>;
display:<? echo $player_right_click_display; ?>;
target:<? echo $player_right_click_target; ?>;
sepratorBefore:false;
action:url;
}
ui.rightclick.2{
setting:LOW;
display:Low Q (Faster);
action:quality;
sepratorBefore:true;
}
ui.rightclick.3{
setting:MEDIUM;
display:Medium Q;
action:quality;
sepratorBefore:false;
}
ui.rightclick.4{
setting:HIGH;
display:High Q (Better);
action:quality;
sepratorBefore:false;
}
ui.watermarks{
showWatermark:<? echo $player_show_watermark; ?>;
alwaysShowWatermark:<? echo $player_always_show_watermark ?>;
}
ui.watermarks.display.mysite{
link:<? echo $player_watermark_link; ?>;
target:<? echo $player_watermark_target; ?>;
paddingLeft:<? echo $player_watermark_padding_left; ?>;
opacity:<? echo $player_watermark_opacity; ?>;
paddingRight:<? echo $player_watermark_padding_right; ?>;
url:<? echo $player_watermark_url; ?>;
paddingTop:<? echo $player_watermark_padding_top; ?>;
paddingBottom:<? echo $player_watermark_padding_bottom; ?>;
placement:<? echo $player_watermark_placement; ?>;
}
/* EDIT PLAYER SKIN COLORS BELOW */
ui.skin{
file:default;
<? /*useColors:false; */ ?>
}
ui.skin.colors{
background:0x000000;
}
ui.skin.colors.back{
top:0xFFFFFF;
}
ui.skin.opacity.back{
top:10;
}
ui.skin.colors.icons.playIcon{
base:0xFFC700;
inner:0xFFFFFF;
}
ui.skin.colors.time{
totalText:0x58B0F3;
elaspedText:0xFFFFFF;
}
ui.skin.opacity.seek{
rail:0;
}
ui.skin.colors.rewind{
rewindButton:0x58B0F3;
}
ui.skin.colors.playpause{
playButton:0x58B0F3;
pauseButton:0x58B0F3;
}
ui.skin.colors.seek{
bounds:0x222222;
progress:0xeeeeee;
rail:default;
dragger:default;
}
ui.skin.colors.volume{
bounds:0x222222;
dragger:0x000000;
progress:0xeeeeee;
rail:default;
volume_on:0x58B0F3;
volume_off:0x58B0F3;
}
ui.skin.colors.video{
fit:0x58B0F3;
original:0x58B0F3;
}
ui.skin.colors.fullscreen{
fullscreen_enter:0x58B0F3;
fullscreen_exit:0x58B0F3;
}
<?
/*
enhancements.ControlBar{
moveVideoControlsToTop:true;
}
*/
?>