コード例 #1
0
ファイル: Base.php プロジェクト: menatwork/ctocommunication
 /**
  * @param string           $mixPost
  * @param CodifyengineBase $objCodifyEngine
  *
  * @return mixed Anything you want like string, int, objects, array and so on
  * @internal param string $strPost The string from POST
  *
  */
 public function InputPost($mixPost, $objCodifyEngine)
 {
     $mixPost = base64_decode($mixPost);
     $mixPost = gzuncompress($mixPost);
     $mixPost = $objCodifyEngine->Decrypt($mixPost);
     $mixPost = unserialize($mixPost);
     $mixPost = $mixPost["data"];
     if (is_null($mixPost)) {
         return null;
     } else {
         return $mixPost;
     }
 }
コード例 #2
0
ファイル: Base.php プロジェクト: menatwork/ctocommunication
 /**
  * Return name of the codifyengine
  *
  * @return string
  */
 public function getCodifyengine()
 {
     return $this->objCodifyengine->getName();
 }