コード例 #1
0
 public static function decryptIdValue(&$value_id)
 {
     if (ENVIRONMENT == 'development') {
         return;
     }
     if (empty($value_id)) {
         return;
     }
     $encryption_key = Helper_App_Session::getEncryptionKey();
     $value_id = Helper_Encrypt::decryptId($value_id, $encryption_key);
     if (!is_numeric($value_id)) {
         exit('Violacion de seguridad');
     }
 }