Posted By

patriksvenssonmpsbroadbandcom on 05/11/11


Tagged


Versions (?)

PlayHash


 / Published in: PHP
 

  1. function mpp_plugin_createPlayHash( $sw = 'secretword1', $v = '0.1', $ttlsec = 300, $ip = '213.132.103.66' ){
  2. $ttl = time() + $ttlsec; //unix epoch timestamp + 300
  3. return $v . dechex($ttl) . md5($ip . $ttl . $sw);
  4. }

Report this snippet  

You need to login to post a comment.