<?php
// Keep the public policy URLs already used by Google Play working after the
// static BookTop website replaces the previous CMS.
$id = isset($_GET['id']) ? (string) $_GET['id'] : '';

if ($id === '167') {
    $target = '/terms.html';
} elseif ($id === '168') {
    $target = '/privacy.html';
} else {
    $target = '/';
}

header('Location: ' . $target, true, 301);
exit;

