Marcel Hartmann wrote:
Hi,

I just set up web-cyradm on my CentOS LAN Server to develop on it, and For Testing purposes only.

I have created a LAN Zone "snitched.local". But if i will add this Domain in Web-cyradm He say's i should add a valid Domain! Are there any tld checks in the php code? And if so, Where are they?

Greets Marcel


I have found the Regular expression for limit the tlds.
eregi("^[[:alnum:]]([.-]?[[:alnum:]])*[.][a-wyz][[:alpha:]](g|l|m|t|u|v|f|ro
|fo|op|pa|me|seum)?$",$domain)

How i can add .local to it? To allos 5 characters after the .? I have no
idea for doing that and have
Return true; at all times in this php file.

But if someone can tell me the right syntax, it would be nice for me.

Only "local":
eregi("^[[:alnum:]]([.-]?[[:alnum:]])*[.][a-wyz][[:alpha:]](g|l|m|t|u|v|f|ro|fo|op|pa|me|seum|cal)?$",$domain)

5 characters after ".":
eregi("^[[:alnum:]]([.-]?[[:alnum:]])*[.][a-wyz][[:alpha:]][[:alpha:]](o|p|a|e|eum)?$",$domain)

5 characters after "." and "local":
eregi("^[[:alnum:]]([.-]?[[:alnum:]])*[.][a-wyz][[:alpha:]][[:alpha:]](o|p|a|e|eum|al)?$",$domain)

Best rgds,
Lukasz
_______________________________________________
This mailing list is hosted and supported
by bit-heads GmbH | http://www.bit-heads.ch

_______________________________________________
Web-cyradm mailing list
[email protected]
http://www.web-cyradm.org/mailman/listinfo/web-cyradm

Reply via email to