redirectTo("https://" . $_SERVER['SERVER_NAME'] . $this->ap()); } /* * Security check * Assert that the current connection to this server is NOT secure. Redirects if not. */ function sec_forbid_https() { if (isset($_SERVER['HTTPS'])) $this->redirectTo("http://" . $_SERVER['SERVER_NAME'] . $this->ap()); } } ?>