Customizing SMF > Modifications and Packages

Invitation System

<< < (2/34) > >>

ɔɔɔɔɔɔuɥoɾ:
It installed perfectly, however, I have yet to try it out, I have so many members that only comeby once in a while, like mayby 80,000, I will prune the inactive ones and setup invitations only soon, just one question.

What are the odds that someone with half a brain at least, would use this mod on another smf forum, and generate a working key for any other smf forum?

hadesflames:
You know, I honestly never thought of that! XD

The odds are actually very quite low. Like, if it happened, it would truly be a site to see, however I doubt it will happen. None the less I'll come up with something in the generation function to eliminate those extremely low chances.

ɔɔɔɔɔɔuɥoɾ:
So, you used the  uniqid  to generate the random string for the key?

I have not gone through the code yet lol

hadesflames:
Nah, I Generate random numbers, toss them into a string about 100 times, then I get the sha1 hash of that string, and compare it to the DB to make sure it doesn't already exist.

Edit:

Ok, I made the keys a bit more unique, I HIGHLY doubt someone will be able to use a key generated elsewhere now, not only that, keys expire after 7 days, so the possibility is nearly non-existent.

ɔɔɔɔɔɔuɥoɾ:
Nice, :) will download later :)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version