My personal website. http://www.ultrasonicmadness.org/

[[ 🗃 ^bvV3E usm-website ]] :: [📥 Inbox] [📤 Outbox] [🐤 Followers] [🤝 Collaborators] [🛠 Commits]

Clone

HTTPS: git clone https://vervis.peers.community/repos/bvV3E

SSH: git clone USERNAME@vervis.peers.community:bvV3E

Branches

Tags

master :: public_html / agegate /

index.php

<?php
    /*
     * Personal website of UltrasonicMadness
     * Copyright (C) 2018 UltrasonicMadness
     *
     * This program is free software: you can redistribute it and/or modify
     * it under the terms of the GNU Affero General Public License as
     * published by the Free Software Foundation, either version 3 of the
     * License, or (at your option) any later version.
     *
     * This program is distributed in the hope that it will be useful,
     * but WITHOUT ANY WARRANTY; without even the implied warranty of
     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     * GNU Affero General Public License for more details.
     *
     * You should have received a copy of the GNU Affero General Public License
     * along with this program.  If not, see <http://www.gnu.org/licenses/>. 
     */

    $nexturl = '';
    $FORBIDDEN_CHARS = array('<', '>', '"', "'");
    $injection_warn = false;
    
    for ($i = 0; $i < count($FORBIDDEN_CHARS); $i++)
    {
        if(strstr($_GET['nexturl'], $FORBIDDEN_CHARS[$i])) {
            $injection_warn = true;
        }
    }
    
    if ($injection_warn)
    {
        $nexturl = '/';
    }
    else
    {
        $nexturl = $_GET['nexturl'];
    }
?>

<!DOCTYPE html>
<html>
    <head>
        <title>Warning - UltrasonicMadness</title>
        <link href="/common/style/agegatemobile.css" media="screen" rel="stylesheet" type="text/css" />
        <link href="/common/style/agegate.css" media="screen and (max-resolution: 191dpi), screen and (min-width:1024px)" rel="stylesheet" type="text/css" />
    </head>
    
    <body>
        <main>
            <img alt="Warning" src="/common/images/warning.png" />
            <p>By accessing this portion of ultrasonicmadness.org, you agree that you are 18 years of age or older and you consent to being exposed to material with adult themes.</p>
            
            <?php
                if ($injection_warn)
                {
                    print("<p>It looks like a code injection was attempted on this page. As a result, the agree link has been disabled. Please contact me on contact@ultrasonicmadness.org if a page on this website caused this message to be shown.</p>");
                }
            ?>
            
            <div id="link_panel">
                <?php
                    if (!$injection_warn)
                    {
                        print("<a class='accept_link' href='${nexturl}'>I agree</a>");
                    }
                ?>
                <a class="return_link" href="/">Return to homepage</a>
            </div>
        </main>
    </body>
</html>

[See repo JSON]