Jump to content
MakeWebGames

Recommended Posts

Posted

basic idea with this mod you add one value to your users table called locked and if the player dose something that breaks the rules they cant do anything but login and logout... it wont let them access links..

----------in Mainmenu.php add------------

if($ir['locked'] > 0) {

print "

<td align=center></td>

";

die('<table border = "1" >

 

 

<td><font color =red>!! Your Account Has Been Locked There Is No Way Around This!! </font>

 

&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp[ Logout ]</td>');

}

then add a field to users called "locked"

`locked` int(11) NOT NULL DEFAULT '0',

then add a button in viewusers.php in the staff section

with

mysql_query("UPDATE users SET locked = 1 WHERE userid=$userid",$c);

to unlock the account simply add a button to unlock it

mysql_query("UPDATE users SET locked = 0 WHERE userid=$userid",$c);

Posted

Re: Locked Account Mod [V2]

Ya This Would Be A Good Mod If The User Try's To Login In To His Account 4 Times And It Dose Not Let Him In Because Of The Wrong Password Then It Locks His Account For A Day. But I Just Use Fed Jail For Something Like This It Seems Like The Same Thing.

Posted

Re: Locked Account Mod [V2]

 

Ya This Would Be A Good Mod If The User Try's To Login In To His Account 4 Times And It Dose Not Let Him In Because Of The Wrong Password Then It Locks His Account For A Day. But I Just Use Fed Jail For Something Like This It Seems Like The Same Thing.

Think about what you just said. You are suggesting an automatic lock on an account if the "user" inputs the wrong password more than 4 times.

If that was so, whats stopping someone locking anyones account themselves out of spite? Example:

-User1 falls out with User2.

-User1 decides to log out and try to login to User2's account.

-By intentionally inputing the wrong password 4 times, he has User2 banned for a day.

Im not sure this was what you was suggesting but it would not work :-P

Posted

Re: Locked Account Mod [V2]

then you have an account locker, why not use a cookie something ive been thinking about / working on is a passkey file that you gotta have on your pc to access certain things, like admin account, example call the file Pass.txt it would be on your local drive C:\Pass.txt when logining in it looks for that file, so even if the admin account gets hacked if they dont have Pass.txt in the C:\ directory then they litterly cannot get into the staff pannel eliminateing the hacker getting in and totally changeing things, like giveing the users millions of (insert item / cash here ?) my thoughts.

Posted

Re: Locked Account Mod [V2]

 

Ya This Would Be A Good Mod If The User Try's To Login In To His Account 4 Times And It Dose Not Let Him In Because Of The Wrong Password Then It Locks His Account For A Day. But I Just Use Fed Jail For Something Like This It Seems Like The Same Thing.

Think about what you just said. You are suggesting an automatic lock on an account if the "user" inputs the wrong password more than 4 times.

If that was so, whats stopping someone locking anyones account themselves out of spite? Example:

-User1 falls out with User2.

-User1 decides to log out and try to login to User2's account.

-By intentionally inputing the wrong password 4 times, he has User2 banned for a day.

Im not sure this was what you was suggesting but it would not work :-P

Ok How About Part Two That You Just Helped Me Come Up With The Locked User Logins In And His Accounts Blocked For A Day But He Had The Right User Name And Pass Word. It Come Up And Says "Your Account Has Been Locked For A Day Because Someone Tried To Login In Your Account And Failed Four Times. To Un-Lock Your Account Click Below". And There Will Be A Like To A File That Sends The User A Email That Has A Link In The E-Mail That He Must Click To Un-Lock His Account. I Think This Is A Good Mod. :-D

Posted

Re: Locked Account Mod [V2]

 

Why do you capatilise every word?

Yeah takes longer to read there post when they do that. lol

I never actually noticed that but its true, it does take longer. Weird lol

Posted

Re: Locked Account Mod [V2]

 

Why do you capatilise every word?

Yeah takes longer to read there post when they do that. lol

I never actually noticed that but its true, it does take longer. Weird lol

Yup. :lol:

Posted

Re: Locked Account Mod [V2]

Yeah, Marc, that's why it takes me so dang long to read your MSN messages, because you do that capitalize stuff.

Anyways, nice seeing you here.

...Back on subject. In the first place, user's should not have the same login name and username. If you put a lock on the login name, it wouldn't be so bad. But, I wouldn't want a complete lock. At least let them be able to mail a staff member, talking about what happened. Not just lock after 4 attempts. I have so many passwords, that it takes me a couple times to go through my list. lol.

Posted

Re: Locked Account Mod [V2]

I told a friend of mine about my mod idea and hes helping me come up with some stuff. We go this so far.

It works off a COOKIE but I want something eles I dont want to use COOKIES on my web site.

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...