Top

Comments

  (4)  RSS
redalert19882000's
Noutrious
Comments: 355
 
mIRC Snippet:  High Security (Login/Register Script)
Posted on May 5, 2008 3:23 pm
This actually ain't high security, i have my version of high security user system, i will give you it's features for you to make yourself them (if you want to)
- User status is getted by $status($nick,logged), $status($nick,level) etc. - in the alias status headers you add checking of IP address which was used to login and the IP address user has at the moment, when $status is executed.
Example: (taken from my script with bit of re-edit)
Code:
if ($address($1,2)) && ($readini($userdb($nick),active,ip)) && ($address($1,2) != $readini($userdb($nick),active,ip)) { remini -n $userdb($nick) active | msg $nick $bold($txt(error,$nick)) You have been logged out because of security. If you are the person that registered this account, feel free to login again - else please do not use this system with this nickname. | halt }


- When user uses .reg command it generates $md5($ticks) activation key which is saved into $userdb($nick) main activation contents in it's ini and it has been sent to the e-mail which user shown after .reg command (.reg Neisen@Neisen.lv for example) afterwards the user must .activate [key] to get his account active in next 15 minutes. (timer for that to disable the account)

- When user activates the account, he gets automatically logged in and the password sent to his mail - $+($rand(A,Z),$rand(1,9),$rand(1,9),$rand(1,9),$rand(A,Z)) which was saved into his database when registering. Also, here his ip address and login time (in $ctime format) is saved in the ini for later checking..

Well, that is the idea - pretty long but useful.
Quote:
¬ 11:22:08pm| &Neisen: !help
¬ 11:22:08pm| --> NOTICE: From [ ChatQuery (Query@Chat) ] : Commands: !Mychans .Logout .Password
¬ 11:22:08pm| --> NOTICE: From [ ChatQuery (Query@Chat) ] : Statistical: !Record !Channel !Top !Place
¬ 11:22:08pm| --> NOTICE: From [ ChatQuery (Query@Chat) ] : Other: !Server !Players !Namedays
¬ 11:22:08pm| --> NOTICE: From [ ChatQuery (Query@Chat) ] : #afterShock: !Set !Protect !shoot
¬ 11:22:08pm| --> NOTICE: From [ ChatQuery (Query@Chat) ] : Administrator: !Restart !Exit !Part !Join !Addchan !Delchan

Afterwards you can make things like these easily.. ;)

Greetings,
Neisen
redalert19882000
Comments: 2
 
mIRC Snippet:  High Security (Login/Register Script)
Posted on May 5, 2008 8:38 am
oups yes.. you are right!i forgot it... i will change this
napa182
Comments: 1,152
 
mIRC Snippet:  High Security (Login/Register Script)
Posted on May 4, 2008 3:00 pm
redalert19882000 said:
Quote:
Change this line if ($nick == redalert19882000 || $nick == harrym || $nick == V_tec || $nick == FiLLio) to speficy the admins.. :)


why dont you use $istok for that?
Code:
if ($istok(nick1 nick2 nick3,$nick,32)) {

redalert19882000
Comments: 2
 
mIRC Snippet:  High Security (Login/Register Script)
Posted on May 4, 2008 2:51 pm
Change this line if ($nick == redalert19882000 || $nick == harrym || $nick == V_tec || $nick == FiLLio) to speficy the admins.. :)
Bottom