Ejemplo n.º 1
0
 /**
  * @return put return description here..
  * @param param :  parameter passed to function
  * @desc decode :  put function description here ... 
  */
 function decode($string)
 {
     // Write Function Code Here
     $string = base64_decode($string);
     $tokens = explode($this->getSeparator(), $string);
     if ($tokens[1] != $this->getSalt()) {
         $thisError = new errorHandler();
         $thisError->setUserErrorMessage("Data Tampering Detected !! Administrator has been notified ! ");
         $thisError->setProgramErrorMessage("POST DATA TAMPERING");
         $thisError->setErrorPage($_SERVER['PHP_SELF']);
         $thisError->setQuitProgram(true);
         $thisError->handleError();
     }
     return $tokens[0];
 }