Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.6
Author Message
RamHead
New Member
New Member



Joined: Jan 04, 2005
Posts: 5

PostPosted: Tue Jan 04, 2005 9:46 pm Reply with quote

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
 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Wed Jan 05, 2005 7:28 am Reply with quote

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>";
 
View user's profile Send private message
RamHead







PostPosted: Wed Jan 05, 2005 9:02 am Reply with quote

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







PostPosted: Wed Jan 05, 2005 9:08 am Reply with quote

mainfile.php in the foreach logic and possibly config.php.
 
RamHead







PostPosted: Wed Jan 05, 2005 9:23 am Reply with quote

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







PostPosted: Wed Jan 05, 2005 11:17 am Reply with quote

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







PostPosted: Wed Jan 05, 2005 11:20 am Reply with quote

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 Smile
 
RamHead







PostPosted: Wed Jan 05, 2005 11:24 am Reply with quote

got it working thank you for all your help
 
Raven







PostPosted: Wed Jan 05, 2005 11:26 am Reply with quote

RavensScripts
 
drmike
Worker
Worker



Joined: Jul 15, 2004
Posts: 108
Location: Charlotte, NC

PostPosted: Wed Jan 05, 2005 11:53 am Reply with quote

Raven's own cheering section.

Smile

-drmike

_________________
The Daria - Jane Conspiracy 
View user's profile Send private message Visit poster's website ICQ Number
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.6

View next topic
View previous 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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©