Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function KeyGen($salt) {
- $salt = !empty($salt) ? trim($salt) : $modx->getOption('discount_salt',null,'spacosmetic');
- $key = md5(mktime() + $salt);
- $new_key = implode('-',str_split(substr($key,0,16),4));
- return strtoupper($new_key);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement