Please do not visit, its a trap for bots
NukeXchange Network

          

Nuke Sites Link Directory
Nuke Fixes NukeForums NukeZone Hosting Nuke Sites Nuke Skins
Nuke Resources
 :: Home  :: Downloads  :: Your Account  :: Forums  :: Advertise :: 
Login or Register
Main Menu
General
 Main
 AvantGo
 Banner_Clients
 cfaq
 Donations
 Downloads
 Forums
 Members_List
 Private_Messages
 Search
 Stories_Archive
 Submit_News
 Surveys
 Topics
 Web_Links
 Your_Account

Your Account
 Login
 Register
 Lost Pass

Modules
Quick Links
Domain Names
. Game Quest
Learning Linux
. MateMaker
NukeFixes
NukeForums
Nuke Sites
Nuke Skins
NukeZone Hosting
. SearchDevil
Other Options

Download Resources
Nuke Downloads
Add a Link
New Files
Top Rated
Most Popular

Web Site Resources
Nuke Sites
Add A Site
New Sites
Top Rated
Most Popular

Support
NukeZone Hosting
NukeSkins.com
NukeForums.com
phpnuke.org
NukeFixes.com
Information
NukeForums
·403 Forbidden

Forbidden

You don't have permission to access /backend.phpon this server.

Additionally, a 403 Forbiddenerror was encountered while trying to use an ErrorDocument to handle the request.

" target="_blank">403 Forbidden


read more...
Top10 Links
· 1: Nuke Forums
· 2: Windows Installation: PHP
· 3: PHPNukeFiles
· 4: NukeSkins
· 5: Nuke Templates
· 6: EcomJunk
· 7: FLASH-FOR-NUKE
· 8: MDesign
· 9: Dezina
· 10: Global Dream News Sharing Portal!
Site Visitors
User Login:

Nickname:
Password:
Security Code: Security Code
Type Security Code Here:

Members List Membership:
Latest: TommiePea
Today: 0
Yesterday: 0
Overall: 24467

Visitation:
Guests: 227
Members: 0
Total: 227


You are Anonymous user. You can register for free by clicking here
Sponsor Links
Download the Best Archiver in the World
Download the Best Archiver in the World

NukeResources :: View topic - PHP-Nuke v8.0 Patched 3.4 Bug
NukeResources Forum Index

NukeResources Forum Index -> Bug Reports -> PHP-Nuke v8.0 Patched 3.4 Bug
Post new topic  Reply to topic    View previous topic :: View next topic 
PHP-Nuke v8.0 Patched 3.4 Bug
PostPosted: Mon Sep 24, 2007 12:20 pm Reply with quote
zxurian
Resource Seeker
Resource Seeker
 
Joined: Sep 11, 2005
Posts: 2




mainfile.php - Line 845 - 867

Code:
function check_words($Message) {
   global $CensorMode, $CensorReplace;
   include("config.php");
   if ($CensorMode != 0) {
      if (is_array($CensorList)) {
         $Replace = $CensorReplace;
         if ($CensorMode == 1) {
            for ($i = 0; $i < count($CensorList); $i++) {
               $EditedMessage = eregi_replace("$CensorList[$i]([^a-zA-Z0-9])","$Replace\\1",$Message);
            }
         } elseif ($CensorMode == 2) {
            for ($i = 0; $i < count($CensorList); $i++) {
               $EditedMessage = eregi_replace("(^|[^[:alnum:]])$CensorList[$i]","\\1$Replace",$Message);
            }
         } elseif ($CensorMode == 3) {
            for ($i = 0; $i < count($CensorList); $i++) {
               $EditedMessage = eregi_replace("$CensorList[$i]","$Replace",$Message);
            }
         }
      }
   }
   return $EditedMessage;
}


if $CensorMode is equal to zero (ie, no censoring), then it returns a nullstring, as $EditedMessage doesn't get set. This leads to a blank page load, as several initial string settings are put through this function.

I've corrected it by changing it to the following:
Code:
function check_words($Message) {
   global $CensorMode, $CensorReplace;
   include("config.php");
   if ($CensorMode != 0) {
      if (is_array($CensorList)) {
         $Replace = $CensorReplace;
         if ($CensorMode == 1) {
            for ($i = 0; $i < count($CensorList); $i++) {
               $EditedMessage = eregi_replace("$CensorList[$i]([^a-zA-Z0-9])","$Replace\\1",$Message);
            }
         } elseif ($CensorMode == 2) {
            for ($i = 0; $i < count($CensorList); $i++) {
               $EditedMessage = eregi_replace("(^|[^[:alnum:]])$CensorList[$i]","\\1$Replace",$Message);
            }
         } elseif ($CensorMode == 3) {
            for ($i = 0; $i < count($CensorList); $i++) {
               $EditedMessage = eregi_replace("$CensorList[$i]","$Replace",$Message);
            }
         }
      }
   } else {
      $EditedMessage = $Message;
   }
   return $EditedMessage;
}


just adding an else statement to the $CensorMode != 0, to set $EditedMessage so that it returns the correct string.
View user's profile Send private message
PostPosted: Thu Sep 27, 2007 10:57 pm Reply with quote
chatserv
Site Admin
Site Admin
 
Joined: Apr 21, 2002
Posts: 1732
Location: Puerto Rico




I had recoded mainfile.php in 8.0 recently and overlooked matching that function to that of the patches for other Nuke versions, while the code is not exactly the one you use (which will also do the job), the basics are the same. Thanks for the heads up.

_________________
NukeResources | ScriptHeaven
View user's profile Send private message Visit poster's website
PHP-Nuke v8.0 Patched 3.4 Bug
 NukeResources Forum Index -> Bug Reports
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
All times are GMT - 4 Hours  
Page 1 of 1  

  
  
 Post new topic  Reply to topic     



Powered by phpBB © 2001-2005 phpBB Group.     Theme created by Vjacheslav Trushkin.
There have been 101 unique hit(s) in the past 24 hours.
Forums ©
Need to find your IP fast?


Best viewed with a Browser
All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest 2001 - 2007 by NukeResources.com
You can syndicate our news using the file .backend.php or ultramode.txt
PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.70 Seconds

:: Eos phpbb2 style by Cyberalien :: PHP-Nuke theme by www.nukemods.com ::