SHOW:
|
|
- or go back to the newest paste.
1 | //Identifier is just a random 40 digit var, used to authenticate the user (as if I submitted the steamid directly people could submit a random steamid when authenticating with socket io) saved in the database with the users steam id and details | |
2 | $identifierLength = 40; | |
3 | $todaysDate = date("m.d.y.h.s"); // e.g. "03.10.01" | |
4 | $identifier = substr(hash('md5', $todaysDate + mt_rand(0,1000000000)), 0, $identifierLength); |