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, 83 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 - Where to put the bit of code for the mainfile.php ?? [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
This forum is locked: you cannot post, reply to, or edit topics.  This topic is locked: you cannot edit posts or make replies.printer-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
bigboy177
Lieutenant
Lieutenant


Joined: Jun 23, 2004
Posts: 152


PostPosted: Tue Jul 06, 2004 8:24 am Reply with quoteBack to top

I've read the instructions about how to install fortress... It says to put some bits of code before and after these lines...

Code:

foreach ($HTTP_GET_VARS as $secvalue) {         // Current code
    if ((eregi("<[^>]*script*\"?[^>]*>", $secvalue)) ||   // Current code
        (eregi("<[^>]*iframe*\"?[^>]*>", $secvalue)) ||   // Current code
        (eregi("<[^>]*object*\"?[^>]*>", $secvalue)) ||   // Current code
        (eregi("<[^>]*applet*\"?[^>]*>", $secvalue)) ||   // Current code
        (eregi("<[^>]*meta*\"?[^>]*>", $secvalue)) ||   // Current code
        (eregi("<[^>]*style*\"?[^>]*>", $secvalue)) ||   // Current code
        (eregi("<[^>]*form*\"?[^>]*>", $secvalue)) ||   // Current code
        (eregi("<[^>]*img*\"?[^>]*>", $secvalue)) ||   // Current code
        (eregi("\"", $secvalue))) {         // Current code
#       die ("The html tags you attempted to use are not allowed"); // Current code but either delete or comment out


But I don't have these lines...
I patched my mainfile.php like chatserv recomended... And the code isn't there...
Instead I've got...

Code:

foreach ($_GET as $secvalue) {
if ((eregi("<[^>]*script*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*object*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*iframe*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*applet*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*meta*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*style*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*form*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*img*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*onmouseover*\"?[^>]*>", $secvalue)) ||
(eregi("\([^>]*\"?[^)]*\)", $secvalue)) ||
(eregi("\"", $secvalue))) {
die ("<center><img src=images/logo.gif><br><br><b>The html tags you attempted to use are not allowed</b><br><br>[ <a href=\"javascript:history.go(-1)\"><b>Go Back</b></a> ]");
}
}

Should I add the fortress before and after that code??
Find all posts by bigboy177View user's profileSend private message
bigboy177
Lieutenant
Lieutenant


Joined: Jun 23, 2004
Posts: 152


PostPosted: Tue Jul 06, 2004 5:44 pm Reply with quoteBack to top

OK... So nobody knows if I should put the Code in there... Sad
Find all posts by bigboy177View user's profileSend private message
madman
Support Mod
Support Mod


Joined: Feb 15, 2004
Posts: 806


PostPosted: Wed Jul 07, 2004 8:01 am Reply with quoteBack to top

You can put Fortess code either before or after those lines. You don't have to replace the actual lines (the last one as shown above).

_________________
I'm Image
Find all posts by madmanView user's profileSend private messageVisit poster's websiteYahoo MessengerMSN Messenger
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.printer-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.200 Seconds - 191 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::