PHP-Code:
<noscript>
JavaScript einschalten bitte.
</noscript>
@require_once ('lib/functions.lib.php');
@db_connect();
@require_once ('lib/session.lib.php');
if (!isset($_GET['art'])) $_GET['art'] = "";
if (!isset($forced['tan'])) $forced['tan'] = "";
if (!isset($forced['ziel'])) $forced['ziel'] = "";
// SecVMS change begin
$_GET['tan'] = addslashes ($_GET['tan']);
// SecVMS change end
$forced = mysql_fetch_array(db_query("SELECT * FROM ".$db_prefix."_gebuchte_werbung WHERE tan='".$_GET['tan']."' LIMIT 1"));
@db_close();
//für Noscript und Cookies Test
$frame3 = '';
$zufallstest = rand(1,50); // Höhere Zahl = Weniger Checks
if ($zufallstest == 10) {
function verstuemmeln($derstring, $derkey) {
$stummel = "";
for($i=0; $i<strlen($derstring);$i++) {
$stummel .= chr(ord($derstring{$i})^ord($derkey{$i%strlen($derkey)}));
}
return base64_encode($stummel);
}
$jcheck = verstuemmeln(base64_encode($_SESSION['uid']), $percode);
@require_once "lib/domaincheck.php";
$zufall = rand(1,count($cd));
$ged = verstuemmeln($cd[$zufall], $percode);
$frame3 = '<frame name="check" src="klickcheck.php?check='.$jcheck.'&code='.$ged.'" scrolling="no"
frameborder="0">';
$file5 = './klickcheck/TEMP_'.$_SESSION['uid'].'.php';
$arr = 'Test';
$fopen=@fopen($file5,"w");
@fwrite($fopen,$arr);
@fclose($fopen);
}
//end noscript-cookie-test
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title><?=$seitenname;?> Paidbanner </title>
</head>
<frameset rows="75,*" border="0">
<frame name="abuse" src="/topframe_forced.php?tan=<?=$forced['tan'];?>" scrolling="no" frameborder="0">
<frame name="werbung" src="<?=$forced['ziel'];?>" scrolling="auto" frameborder="0">
<?=$frame3;?>
</frameset><noframes></noframes>
</body>
</html>