{dynamic}{php} # Only do this if not logged into nterchange if (substr( $_SERVER['REQUEST_URI'], 0, 11 ) !== "/nterchange") { $URL = $_SERVER['PUBLIC_URL']; # Check if session id is passed $cookie = (isset($_GET['sid'])) ? urldecode($_GET['sid']) : false; $email = (isset($_GET['email'])) ? urldecode($_GET['email']) : false; # Ensure valid session exists $session = NModel::factory('shareholder_session'); if ($session->validate($email, $cookie)) { # Good to go # Bad session } else { # Prevent loops if (substr( $_SERVER['REQUEST_URI'], 0, 23 ) !== "/investors/shareholders") { header("Location: ".$URL."_page49"); exit; } } } {/php} {/dynamic} {include file="page/head.html" template="protected"}