Changeset 2027

Show
Ignore:
Timestamp:
05/28/07 10:13:30 (6 years ago)
Author:
plg
Message:

Cosmetic: make get_comment_post_key function more readable.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/include/functions_comment.inc.php

    r1908 r2027  
    3131{ 
    3232  global $conf; 
     33   
    3334  $time = time(); 
    34   return $time.':'.hash_hmac('md5', $time.':'.$image_id, $conf['secret_key'] ); 
     35 
     36  return sprintf( 
     37    '%s:%s', 
     38    $time, 
     39    hash_hmac( 
     40      'md5', 
     41      $time.':'.$image_id, 
     42      $conf['secret_key'] 
     43      ) 
     44    ); 
    3545} 
    3646