PhoenixPHP 1 Account per IP
Ok So First thing is to Open up register/index.php
Find this
PHP Code:
<script type="text/javascript" src="http://ajax.microsoft.com/ajax/jquery.validate/1.7/jquery.validate.pack.js"></script>
</head>
After it add this
PHP Code:
<?php $sql = mysql_query("SELECT * FROM users WHERE ip_last='$_SERVER[REMOTE_ADDR]'");
if(mysql_num_rows($sql) > 0) {
echo '<script type="text/javascript">
<!--
alert ("You can only create 1 account per IP!")
// -->
</script>';
echo'<script type="text/javascript">
window.location = "/index.php"
</script>';
die;
}
?>
Credit's
idk who
Like This If this Helped you :D
Re: PhoenixPHP 1 Account per IP
this was released on otaku and it kinda useless but nice release.
Re: PhoenixPHP 1 Account per IP
... SOund like we wouldnt Test ... Like our Backup account :S... ... Its sound like its released on Otaku ....
Re: PhoenixPHP 1 Account per IP
I know it as been Released on Otaku But only for the Licence holder's only Im releasing it the forum that really needs it
Re: PhoenixPHP 1 Account per IP
What do i have to edit to make it 3 users per IP?
Re: PhoenixPHP 1 Account per IP
Quote:
Originally Posted by
tomad
What do i have to edit to make it 3 users per IP?
change that 0 in the if statement into 3
Re: PhoenixPHP 1 Account per IP
Umm i think this is weird phoenix has an option to add a character so why would you wanna add 1 account per ip
Re: PhoenixPHP 1 Account per IP
Quote:
Originally Posted by
tomad
What do i have to edit to make it 3 users per IP?
Change 0 to 2, 0 = 1 2 = 3 3 = 4 4 = 5 5 = 6 6 = 7 , etc..
Re: PhoenixPHP 1 Account per IP
Re: PhoenixPHP 1 Account per IP
Quote:
Originally Posted by
Resource
Umm i think this is weird phoenix has an option to add a character so why would you wanna add 1 account per ip
Is it possible to dont let them add a new character?
Re: PhoenixPHP 1 Account per IP
Quote:
Originally Posted by
jamieturner
lmao agreed, no point in having this if your using phoenix PHP cause you have a characters.php to add avatars....
Well if you put this on both /register/index.php and /register/step2.php it will work because when you press add character from character.php it sends your user data via session to step2.php where you choose a name and style for your person! :)
Re: PhoenixPHP 1 Account per IP
Thanks for re-releasing, Don't see how i could need but good anyways.
Re: PhoenixPHP 1 Account per IP
Re: PhoenixPHP 1 Account per IP
Thanks, kinda helpfull for my hotel.