<?php

$title = "Id.ly Lockbox Bouncer";
$protocol_idly = "idly://lockbox/";
$key_payload = 'm';
$payload  = (isset($_GET[$key_payload]) && !empty($_GET[$key_payload]))
          ? filter_var($_GET[$key_payload], FILTER_SANITIZE_EMAIL)
          : '';

header("Location: ".$protocol_idly.$payload);
exit;

?>

<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title><? echo $title; ?></title>
    </head>
    <body>
        
        <div style="max-width: 480px; margin: 0 auto;">
	    <p><strong><? echo $title; ?></strong></p>
	    <p>Unreachable section. Something probably failed.</p>
        </div>
    </body>
</html>
