Author |
Message |
RamHead
New Member


Joined: Jan 04, 2005
Posts: 5
|
Posted:
Tue Jan 04, 2005 9:46 pm |
|
with the recent attacks on php sites. My gaming clan had to switch to phpnuke. When we did this we had to start our member list over.
but now none of our clan or other clans that come to the site can not use there clan tags example( (A.S.S) , [ARC] )
i have seen other post on other forums about this but no answers. any help would be nice |
|
|
|
 |
Raven
Site Admin/Owner

Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Wed Jan 05, 2005 7:28 am |
|
In modules/Your_Account/index.php is this code (or similar)Code: if ((!$username) || ($username=="") || (ereg("[^a-zA-Z0-9_-]",$username))) $stop = "<center>"._ERRORINVNICK."</center><br>";
|
Try changing it to (not tested)Code: if ((!$username) || ($username=="") || (ereg("[^a-zA-Z0-9_-\[\]\(\)]",$username))) $stop = "<center>"._ERRORINVNICK."</center><br>";
|
|
|
|
|
 |
RamHead

|
Posted:
Wed Jan 05, 2005 9:02 am |
|
hey that worked. but when the site sends the New User Account Activation email and you follow the link. it takes you to a page that says The html tags you attempted to use are not allowed. is there another file that has to be changed also.
or is there something in the data base. |
|
|
|
 |
Raven

|
Posted:
Wed Jan 05, 2005 9:08 am |
|
mainfile.php in the foreach logic and possibly config.php. |
|
|
|
 |
RamHead

|
Posted:
Wed Jan 05, 2005 9:23 am |
|
sorry about that but the error is Warning: ereg(): REG_ERANGE in /webroot/a/s/asscl001/www/modules/Your_Account/index.php on line 30
this is my line 30
if ((!$username) || ($username=="") || (ereg("[^a-zA-Z0-9_-\(\)\[\]\{\}]",$username))) $stop = "<center>"._ERRORINVNICK."</center><br>"; |
|
|
|
 |
RamHead

|
Posted:
Wed Jan 05, 2005 11:17 am |
|
ok i fixed the error in line 30 with this
if ((!$username) || ($username=="") || (ereg("[^a-zA-Z0-9\(\)\[\]\{\}\|_-]",$username))) $stop = "<center>"._ERRORINVNICK."</center><br>";
but when the site sends the New User Account Activation email and you follow the link.it takes you to a page that says The html tags you attempted to use are not allowed.
i have tried the no email hack but still the same thing The html tags you attempted to use are not allowed. |
|
|
|
 |
Raven

|
Posted:
Wed Jan 05, 2005 11:20 am |
|
Raven wrote: | mainfile.php in the foreach logic and possibly config.php. | You need to tweak the mainfile.php code. There are several threads on this if you look  |
|
|
|
 |
RamHead

|
Posted:
Wed Jan 05, 2005 11:24 am |
|
got it working thank you for all your help |
|
|
|
 |
Raven

|
Posted:
Wed Jan 05, 2005 11:26 am |
|
|
|
 |
drmike
Worker


Joined: Jul 15, 2004
Posts: 108
Location: Charlotte, NC
|
Posted:
Wed Jan 05, 2005 11:53 am |
|
Raven's own cheering section.
-drmike |
_________________ Only registered users can see links on this board! Get registered or login! |
|
 |
 |
|