Newer
Older
Christoph Zysik
committed
<?php
if(!isset($_GET['data'])) exit;
require ('lib/datenbank.inc.php');
require ('lib/functions.lib.php');
require ('lib/session.lib.php');
list($art, $tan) = explode('-', $_GET['data']); // yeah sorry ;)
$art = base64_decode($art);
$tan = base64_decode($tan);
$kampdaten = $vms->campaigns->getByTanAndType( $tan, $art );
Christoph Zysik
committed
$result_color = 'red';
if( $tan == $_SESSION['current_ad']['tan'] &&
$art == $_SESSION['current_ad']['art'] &&
true == $_SESSION['current_ad']['paid'] &&
false !== $kampdaten
Christoph Zysik
committed
)
{
$result_color = 'green';
}
?><!DOCTYPE html>
<html>
<head>
<!-- never is old spec but will be ignored by new browsers //-->
<meta name="referrer" content="never">
<meta name="referrer" content="no-referrer" />
<title>Hinweis</title>
</head>
<body bgcolor="<?php echo $result_color; ?>">
<?php if( 'green' == $result_color ) { ?>
Diese Anzeige wurde dir mit <?php echo $kampdaten->verdienst .' '. $pageconfig['waehrung']; ?> vergütet.
Christoph Zysik
committed
<?php } else { ?>
Nope, das war nix
<?php } ?>
</body>
</html><?php
$vms->ptc->invalidateAlreadyRunningAd( $_SESSION['uid'], $ip );