Website Summary Files Commits Branches @commit @diff @stats
path: root / views / archive / index.php
blob: 7e85c708e99a66ed24a9ba09a083d6610221e602 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
    include '../meta.php';
    $page = null;
    runController('archive');
?>

<?php if ($page !== null): ?>
    <iframe>
        <!-- /archives/$page->WID -->
    </iframe>
    <?php foreach (Database\Webpage::allArchives($page->URL) as $page): ?>
        <section>
            <?php echo $page->Date ?>
        </section>
    <?php endforeach; ?>

<?php else: ?>
    <h2>This page hasn't been archived yet!</h2>
    <form action="/sample_archive/index.php" method="POST">
        <input type="hidden" name="page_url" value="<?php echo $_GET["page_url"] ?>">
        <input type="submit" value="Archive Now!">
    </form>

<?php endif; ?>