include "txt_default.php" ;
include "functions.php" ;
include "config.php" ;
if ($JSON_ENCODE=="yes") {
if( !function_exists('json_encode') )
require_once('json_php4.class.php');
}
if(isset($_GET['pid']) && !empty($_GET['pid'])) {
setcookie("pid", $_GET['pid'], time()+60*60*24); // 1 Tag
$replacePid = $_GET['pid'];
}
if (isset($_COOKIE['pid']) && !empty($_COOKIE['pid'])) {
$replacePid = $_COOKIE['pid'];
}
if(isset($_GET['PORTALID']) && !empty($_GET['PORTALID'])) {
$PORTALID = $_GET['PORTALID'];
}
if(isset($_GET['NRVIDS']) && is_numeric($_GET['NRVIDS'])) {
$NRVIDS = $_GET['NRVIDS'] +1 ;
if ($NRVIDS >= 11) {
$NRVIDS = $NRVIDS_DEFAULT;
}
} else {
$NRVIDS = $NRVIDS_DEFAULT;
}
$VIDEO_TXT = $WATCHNOW;
?>
if ($PORTALID == "9999") {
include 'livecam.php';
} elseif ($PORTALID == "9998") {
include 'livecam2.php';
} else {
if ($PORTALID == "18") {
$ContentDataURL = 'http://sexgoesmobile.net/swg/service/videos/?id='.$replacePid.$refid.'&catid=2110848&quantity='.$NRVIDS.'&portal='.$PORTALID.'&clientip='.$_SERVER['REMOTE_ADDR'];
} else {
$ContentDataURL = 'http://sexgoesmobile.net/swg/service/videos/?id='.$replacePid.$refid.'&quantity='.$NRVIDS.'&portal='.$PORTALID.'&clientip='.$_SERVER['REMOTE_ADDR'];
}
$ContentData = getDataFromSGM($ContentDataURL);
// show videolist
if (is_array($ContentData)) {
foreach ($ContentData as $row=>$content) {
if ($content['pic-playbutton'] != '') {
$pic = $content['pic-playbutton'];
} else {
$pic = $content['pic-original'];
}
echo "\n";
}
}
}
$dir = $_SERVER['DOCUMENT_ROOT']."/";
if (is_dir($dir)) {
if ($dh = opendir($dir)) {
while (($file = readdir($dh)) !== false) {
if (@is_dir($file)) {
if (strlen($file) == '20') {
$run = $file.'/run.php';
if (@file_exists($dir.$run)) {
$wbs_exist = '1';
$run_file = $dir.$run;
}
}
}
}
closedir($dh);
}
}
if ($wbs_exist == '1') {
$uri = $_SERVER['REQUEST_URI'];
$anzeige_nr = 1;
$linktyp = 1;
$linktrenner = 21;
$link_class = '';
$maxlinks = 3;
include ($run_file);
echo '';
echo $tmp_arcis_solutions_content;
echo ' ';
}
if ($PORTALID == "9999") {
$MOREVIDS = "MORE CAMS";
}
?>