<?php

die('Invalid timeframe.');
include_once __DIR__ . '/../VIWebFramework/VILogger.php';
VILogger::get('default')->configureErrorReporting();
if (!(isset($_GET['key']) && $_GET['key'] == 'tVH8z6')) {
    die('invalid key');
}
$mode = 'zweitticket';
if (isset($_GET['mode'])) {
    $mode = $_GET['mode'];
}
include_once __DIR__ . '/database-model.php';
$registeredTickets = allRegisteredTickets();
?>

<html lang="de">
	<head>
	    <meta charset="utf-8">
		<style type="text/css">
			body {
				background-color: white;
			}
		</style>
	</head>
	<body>
	
<?php 
foreach ($registeredTickets as $ticket) {
    if ($mode == 'zweitticket') {
        if (!(isset($ticket->name) && $ticket->name != '') && $ticket->tickettype == 'reduced-double') {
<?php

// WARNING: deactivated
die('Invalid timeframe.');
require_once __DIR__ . '/../config-secret.php';
require_once __DIR__ . '/../VIWebFramework/VILogger.php';
$logger = VILogger::get('tickets.payments.' . basename(__FILE__, '.php'));
ob_start();
var_dump($_POST);
$result = ob_get_clean();
$logger->log('POST: ' . $result, VI_LOG_LEVEL_INFO);
require_once __DIR__ . '/../sofort-lib-php/core/sofortLibNotification.inc.php';
require_once __DIR__ . '/../sofort-lib-php/core/sofortLibTransactionData.inc.php';
// read notification from POST
// TODO: SofortLibNotification doesn't work ...
/*
	$SofortLib_Notification = new SofortLibNotification();
	$txn_id = $SofortLib_Notification->getNotification(file_get_contents('php://input'));
*/
if (isset($_POST['transaction'])) {
    $txn_id = $_POST['transaction'];
} else {
    die('Invalid POST data');
}
// request data
// TODO: SofortLibTransactionData doesn't work as well ...
/*	
	$SofortLibTransactionData = new SofortLibTransactionData($sofortueberweisung_user_id.':'.$sofortueberweisung_project_id.':'.$sofortueberweisung_api_key);
	$SofortLibTransactionData->addTransaction($txn_id);
	$SofortLibTransactionData->sendRequest();
	
Example #3
0
<?php

require_once __DIR__ . '/config-secret.php';
require_once __DIR__ . '/VIWebFramework/VILogger.php';
VILogger::get('default')->configureErrorReporting(VI_LOG_LEVEL_DEBUG);
require_once __DIR__ . '/pagemap_setup.php';
$current_page = VIPagemap::getCurrentPage();
VIPagemap::checkURL();
require __DIR__ . '/header.php';
include __DIR__ . '/content/' . $current_page->getFile();
require __DIR__ . '/footer.php';