public function test_decryptURL()
 {
     $url = getPrettyLink();
     $enc = new LogiksEncryption();
     $cx = $enc->encode($url);
     $result = decryptURL($cx);
     $this->assertEquals($url, $result);
 }
Example #2
0
 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;
 }
Example #3
0
 function _site($site = SITENAME, $page = "")
 {
     return getPrettyLink($page, $site);
 }