public function test_decryptURL() { $url = getPrettyLink(); $enc = new LogiksEncryption(); $cx = $enc->encode($url); $result = decryptURL($cx); $this->assertEquals($url, $result); }
function redirectTo($relink = null, $carryForwardQuery = true) { echo "<h5>Redirecting To Application ...</h5>"; if (substr($relink, 0, 7) == "http://" || substr($relink, 0, 8) == "https://") { header("Location:{$relink}"); } else { $relink = getPrettyLink($relink); header("Location:{$relink}"); } exit; }
function _site($site = SITENAME, $page = "") { return getPrettyLink($page, $site); }