Jump to content
MakeWebGames

Recommended Posts

Posted

Someone asked me earlier to write a script to block multiple Accounts but to also allows same accounts if in the same household there are many scripts that will do this like email validation but that doesnt always catch people out. and as I did them for Free only only fair I share with you..

SQLS first off

[mysql]CREATE TABLE IF NOT EXISTS `multis` (

`userid` int(11) NOT NULL AUTO_INCREMENT,

`username` varchar(255) NOT NULL DEFAULT '',

`login_name` varchar(255) NOT NULL,

`userpass` varchar(255) NOT NULL DEFAULT '',

`uncoded` varchar(255) NOT NULL DEFAULT '',

`gender` enum('Male','Female') NOT NULL DEFAULT 'Male',

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

`email` varchar(255) NOT NULL DEFAULT '',

`lastip` varchar(255) NOT NULL DEFAULT '',

`lastip_signup` varchar(255) NOT NULL DEFAULT '127.0.0.1',

`frozen` varchar(3) NOT NULL DEFAULT 'no',

PRIMARY KEY (`userid`)

) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

[/mysql]

Now open up global_func.php and add this.

 

You're unable to view this code.

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

 

Now for the staff section..

 

You're unable to view this code.

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

 

add a few links to smenu.php

 

You're unable to view this code.

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

 

now open up register.php and find

$q2=$db->query("SELECT * FROM users WHERE email='{$_POST['email']}'");

Underneathe add

$q3=$db->query("SELECT lastip, lastip_signup FROM users");

Now find

print "E-Mail already in use. Choose another.

>Back";

}

and OVERWRITE with this..

 

You're unable to view this code.

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

 

Now you can Accept or Freeze Multis

  • 3 months later...
Posted

Arrgh illusions stop posting haha.

I had just started work on something similar for my game a tad more advanced but only the one extra function o well may aswell use yours and add to it lol.

Great work as always.

  • 1 month later...
  • 6 months later...
Posted

i know this thread is oldish

but when ever a user tries to sign up it always says:

This IP has already been used to signup.

Even when they havnt

I have changed my last ip etc from cpanel and tried signing up but it still doesnt work,

how can i fix this?

thanks

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...