summaryrefslogtreecommitdiffstats
path: root/examples/server/trust.php
blob: 62a860ab53ce059ebab0bd4699ac9b3d11e34dd6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php

require_once "common.php";

init();

if (!isset($_SESSION['request'])) {
    // Should not happen
    redirect($server_url);
}

$info = unserialize($_SESSION['request']);

unset($_SESSION['request']);

if (isset($_POST['trust'])) {
    // This is a trusted site, so continue
    succeed($info);
} else {
    redirect($info->getCancelURL());
}

?>