Fixing My scrips

Junior Spellweaver
Joined
Mar 15, 2009
Messages
106
Reaction score
0
Hello since i dont really know how to do it i will ask you guys here on ragezone
i orgianlly use unokal.de reg and change pw scrips but i edited so capcha aint needed now i most do so
the minumum is 3 and maximum is 12 letters in Login ID , Password and Secret Number on both scrips
but i dont know how to do that so it work and my mates dosent either so please fix or tell me how to fix those 2 scrips so min is 3 and max is 12 on ID, PW , SN
 

Attachments

Code:
if(strlen($password) < 3){ 
$error['password'] = sprintf(UI_ERROR,'Password is to short');}
elseif (strlen($password) > 12){
$error['password'] = sprintf(UI_ERROR,'Password is to long');}

But for the max lenght u can also change a line in html
just change
Code:
 <input type="password" name="password">
to this
Code:
<input type="password" name="password" MAXLENGTH="12">
 
Upvote 0
INDEX.php
Code:
<?php
//Set banned IP 
$banned  = '123.123.123.123'; 
//get user IP address 
$userip = $_SERVER['REMOTE_ADDR']; 

//check for banned IP address 
if($userip == $banned){  
    echo "<center><BR>Get Fuck Off! You are Banned!</center>"; 
    exit();  
} 
/**
 * Registration handling
 *
 * @author     Claus J
 
Upvote 0
index.php
Code:
if(strlen($password) < 3){ 
$error['password'] = sprintf(UI_ERROR,'Password is to short');}
elseif (strlen($password) > 12){
$error['password'] = sprintf(UI_ERROR,'Password is to long');}

under
Code:
if(!is_numeric($scode)){
        $error['scode'] = sprintf(UI_ERROR,'Illigal characters in the Secret Number');
   }

Registration.tpl
Replace
Code:
<input type="password" name="password">
with
Code:
<input type="password" name="password" MAXLENGTH="12">

BTW i advise to keep the captcha, if you want it easier just use numbers!
:thumbup1:
 
Upvote 0
index.php
Code:
if(strlen($password) < 3){ 
$error['password'] = sprintf(UI_ERROR,'Password is to short');}
elseif (strlen($password) > 12){
$error['password'] = sprintf(UI_ERROR,'Password is to long');}

under
Code:
if(!is_numeric($scode)){
        $error['scode'] = sprintf(UI_ERROR,'Illigal characters in the Secret Number');
   }

Registration.tpl
Replace
Code:
<input type="password" name="password">
with
Code:
<input type="password" name="password" MAXLENGTH="12">

BTW i advise to keep the captcha, if you want it easier just use numbers!
:thumbup1:

i deleted capcha couse <iframe> dident work using that
register now works 100% thanks to you ^^

but at change pw there seems to be something that is wrong couse min 3 max 12 works on everything eccept new password there is a ss of what i mean
WorldWideGM - Fixing My scrips - RaGEZONE Forums
And here is the code for this
Code:
<?php
	//Set banned IP 
	$banned  = 'localhost'; 
	//get user IP address 
	$userip = $_SERVER['REMOTE_ADDR']; 

	//check for banned IP address 
	if($userip == $banned){  
		echo "<center><BR>Get Fuck Off! You are Banned!</center>"; 
	exit();  
	} 
	/**
	* Registration handling
	*
	* @author     Claus J
 
Upvote 0
Back