question

JayC

Always Learning
Aug 8, 2013
5,493
1,398
Block illegal characters in the form ,after the submit, by adding another IF statement

For more security you can use javascript to test what characters they push and if they push something thats not a letter/number it could automatically backspace
 

Jerry

not rly active lol
Jul 8, 2013
1,956
522
Actually, it is possible.. I made a code for my RP for RevCMS..

Steps:
1. Go to class.users.php in app/
2. Open the file and go to line between 21-22 or this code something like this > final public function validName($username)..
3. Replace that whole code with this
PHP:
final public function validName($username)    
    {
        if(strlen($username) <= 25 && !preg_match("/[^a-z\-]/i", $username))        
         {            
             return true;        
         }                 
        
         return false;    
    }
4. Save the file then you're set! :)
 

Stevee

Posting Freak
Mar 29, 2011
580
35
Actually, it is possible.. I made a code for my RP for RevCMS..

Steps:
1. Go to class.users.php in app/
2. Open the file and go to line between 21-22 or this code something like this > final public function validName($username)..
3. Replace that whole code with this
PHP:
final public function validName($username)   
    {
        if(strlen($username) <= 25 && !preg_match("/[^a-z\-]/i", $username))       
         {           
             return true;       
         }                
       
         return false;   
    }
4. Save the file then you're set! :)
worked thank you
 

Jerry

not rly active lol
Jul 8, 2013
1,956
522
Code:
UPDATE server_settings SET enable_securesessions = '0';
UPDATE server_settings SET enable_antiddos = '1';
UPDATE server_settings SET ip_lastforbans = '1';
 

Data

Posting Freak
May 19, 2013
593
97
On Topic:
Just make a beta script so they need a valid key in order to signup.
Or just comment out register function until you launch your site.

Off Topic:
Thanks for ignoring me on kik :)
 

Users who are viewing this thread

Top