Uridium Posted November 13, 2010 Posted November 13, 2010 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 Quote
ColdBlooded Posted November 13, 2010 Posted November 13, 2010 Great way of doing things, We have seen many versions come and go, paid and unpaid, but non allows you to actually accept multi accounts, such a great share! Quote
Uridium Posted November 13, 2010 Author Posted November 13, 2010 There will be an addition to this script so staff can view accept or isloate the User will start work on this later Quote
$-Chinion-$ Posted March 13, 2011 Posted March 13, 2011 Where you have put "Now for the staff section" would I create a new file called "staff_multis.php" I would like to asap if you don't mind. Quote
Djkanna Posted March 13, 2011 Posted March 13, 2011 Create a new file called staff_multiaccept.php and copy&paste that code into it. Quote
03laceys Posted March 15, 2011 Posted March 15, 2011 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. Quote
Uridium Posted March 15, 2011 Author Posted March 15, 2011 I kinda forgot about this script oops :) Quote
Andrewelli Posted May 12, 2011 Posted May 12, 2011 function usermulti_dropdown($connection,$ddname="user",$sel ected=-1) not a big deal but should be selected not seperated XD Quote
Bennyh789 Posted December 1, 2011 Posted December 1, 2011 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 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.