Skip to content

Instantly share code, notes, and snippets.

@adamuncommon
Forked from anonymous/Clickthrough Splash
Created July 11, 2024 15:13
Show Gist options
  • Select an option

  • Save adamuncommon/e93b4547bbd2978eb2779353c2053a9d to your computer and use it in GitHub Desktop.

Select an option

Save adamuncommon/e93b4547bbd2978eb2779353c2053a9d to your computer and use it in GitHub Desktop.

Revisions

  1. @invalid-email-address Anonymous created this gist Dec 5, 2014.
    32 changes: 32 additions & 0 deletions Clickthrough Splash
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,32 @@
    <html>
    <head>
    <title>Welcome to Public WiFi</title>
    </head>
    <body>
    <h1>Welcome to Public WiFi</h1>

    <?php
    $base_grant_url = urldecode($_GET['base_grant_url']);
    $user_continue_url = urldecode($_GET['user_continue_url']);
    $override_continue_url = 'http://mycompany.com/you_are_now_authenticated';

    $override_the_users_request = false;
    if ($override_the_users_request) {
    $grant_url = $base_grant_url . "?continue_url=" . urlencode($override_continue_url);
    } else {
    $grant_url = $base_grant_url . "?continue_url=" . urlencode($user_continue_url);
    }

    // The following parameters may be used for tracking purposes. They are not necessary for authentication.
    $node_id = urldecode($_GET['node_id']);
    $gateway_id = urldecode($_GET['gateway_id']);
    $client_ip = urldecode($_GET['client_ip']);
    ?>

    <div>
    <p>Thank you for associating to Public WiFi. By continuing you agree to our terms of service.</p>
    <a href="<?php print $grant_url ?>">Click here to continue to the internet</a>
    </div>

    </body>
    </html>