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 = $portalNames[$PORTALID]['Titel']." ".$VIDS." ".$WATCHNOW;
$VIDEO_TXT = $WATCHNOW;
?>
if ($PORTALID == "9999"){
include 'livecam.php';
}
elseif ($PORTALID == "9998"){
include 'livecam2.php';
}
else {
if ($PORTALID == "18") {
$ContentDataURL = 'https://sexgoesmobile.net/swg/service/videos/?id='.$replacePid.$refid.'&catid=2110848&quantity='.$NRVIDS.'&portal='.$PORTALID.'&clientip='.$_SERVER['REMOTE_ADDR'];
}
else {
$ContentDataURL = 'https://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";
}
}
}
if ($PORTALID == "9999"){
$MOREVIDS = "MORE CAMS";
}
?>