Allowing Special Characters In Names

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Allowing Special Characters In Names
jamiet
CZ Newbie
jamiet has been a member for over 20 year's 20 Year Member
uk.gif
Gender: Male
Status: Offline
Joined: Nov 06, 2004
0.00 posts per day
Posts: 13
Points: 1,144
   
I recently replied to a topic in this forum, but I have seen other posts about it, so I decided to make a new topic.

If you put special characters in superadmin or usernames, with superadmins, it will load a page simply saying "Begone" (I do not know what it does for normal members).


Here is how you do it:

For enabling special characters in admin names do the following:

Open up the directory where PHP Nuke is installed on your site hoster's file manager. In PHP Nuke's root directory is a file called "auth.php". Open it for editing.
Not too far down you will see this:
}
    if (ereg("[^a-zA-Z0-9_-",trim($aid))) {
    die("Begone");
    }


"[^a-zA-Z0-9_-" are the characters allowed in names ([,],^, letters a-z, letters A-Z, numbers 0-9, underscore (_) and hyphen (-))

So, if only those symbols are in your name, at carries out "die("Begone");"
The die command stops the page Begone from appearing.

So, simply add the symbols you want in your name to the list!

I know this because I had to do it, because the first Superuser I created was |*|STATIC|*|. So, I had to find something like that, as I could create no more superusers, seen as I could not login!

So mine looks like this:
}
    if (ereg("[^a-zA-Z0-9_-|*]",trim($aid))) {
    die("Begone");
    }


Notice I have added | and * to the list.



Then simply save the file auth.php, and the added charaters can now be used!

|*|STATIC|*|


Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum