You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 53 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Need suggestion [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
morgue
Nuke Cadet
Nuke Cadet


Joined: Feb 24, 2003
Posts: 9

Location: Tokyo / Japan

PostPosted: Fri Mar 28, 2003 7:11 am Reply with quoteBack to top

I've been struggling to modify nuke more user friendly especially to my fellow Japanese users. It's OK so far, nuke works fine and now I'm thinking about modifying Your_Account module. And on that point, I have a question.

To be more precise, as of now nuke accepts user names in English (alphabetic characters) only. I'd like to allow them to use other characters like Japanese, Korean, Chinese or whatever.

But modifying Your_Account is not so easy because it holds important clues to security. I can't be too careful to keep it secure so I want you guys to ask for good advice.

Code:
if ((!$uname) || ($uname=="") || (ereg("[^a-zA-Z0-9_-]",$uname))) $stop = "<center>"._ERRORINVNICK."</center><br>";


Above is in Your_Account/index.php and this checks input strings. "ereg" kicks out any non-alphabetic character. My question is about this part. I want to modify it to reject only improper characters, and make it to accept Japanese and other language. Will you give me some tips? Any suggestion is welcome.

# Phew... It's quite difficult to explain such things in non-native language. Wink

Thank you in advance.
Find all posts by morgueView user's profileSend private message
Imago
Captain
Captain


Joined: Jan 17, 2003
Posts: 629

Location: Europe

PostPosted: Fri Mar 28, 2003 11:32 am Reply with quoteBack to top

To avoid the junk between the Roman alphabet and the Cyrillic one, I just add the Cyrillic range after the Roman one, like that:

a-zа-яA-ZА-Я

I suppose, you should first check whether Japanese characters are being accepted by the Forum Registration filter, and if positive, then simply shut up the mainway registration via Your Account.
Find all posts by ImagoView user's profileSend private messageVisit poster's website
morgue
Nuke Cadet
Nuke Cadet


Joined: Feb 24, 2003
Posts: 9

Location: Tokyo / Japan

PostPosted: Fri Mar 28, 2003 8:42 pm Reply with quoteBack to top

Thanks. If I remember right, I could register to phpBB2 with Japanese user name. That's nice and handy-way.
Find all posts by morgueView user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.153 Seconds - 161 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::