» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 66
0 members and 66 guests
No Members online
Most users ever online was 611, 03-21-2008 at 10:10 PM.
» .::.
Web Hosting - web hosting, dedicated servers and web design services
Online Degree - search for 1000+ online degrees, online colleges & online universities.
tattoo - we are a group of tattoo enthusiasts
Gexa Energy - your absolute best choice in electric service
Texas electricity - save on electric rates
buy Rimonabant - Help dieters achieve significant weight loss without having to slog in the gym

Register Now! Contact Us

About this Page
This is a discussion on Broken Security Image fix within the FAQ/Fixes forums, part of the Nukemods category; Ok - here it is. We were having a deep discussion on 'what' was happening and I was finding little or ...



Go Back   Nukemods Forum » Nukemods » FAQ/Fixes

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-24-2003, 06:16 PM
Junior Member
 
Join Date: Jul 2003
Posts: 7
The actual fix!
Ok - here it is. We were having a deep discussion on 'what' was happening and I was finding little or no correlation between analysis rendering and the module ‘not’ rendering. After extensive (many hours) searching of various files I came to the conclusion the PHPNuke uses many ‘dynamic’ variables (e.g. $module, instead of actually naming it). This is when the light clicked on. Where are these names defined, and why are they defined.

With PHPNuke (I admit I cheated a bit because I modded out my menu block to support images) you notice it is used around the world and many languages. Common items are defined in ‘language files’ to be cross-language compatible. This requires a lookup to the current language selection and then the ‘indexing’ of that current language file. In my case it was an “English” language file. As you might have guessed, the language file did contain spaces after the closing tag ‘?>’ which prevented the dynamic operation of generating the image because the English lang. file was not indexed.

This was the tip-off
Code:
    $rcode = hexdec(md5($_SERVER[HTTP_USER_AGENT] . $sitekey . $random_num . $datekey)); 
    $code = substr($rcode, 2, 6); 
    $image = ImageCreateFromJPEG("modules/$module_name/images/code_bg.jpg");
The global and operation on the fly DEPENDING on the proper definition in the language file.

So to fix your security image issues you MUST perform these steps:
- Run ‘analyze.php’ to determine proper GD version/options enabled
- Ensure analyze can render, if it cannot this is an image problem or permissions issue with the folder (analyze will tell you if it cannot locate the image. If it cannot the image is either missing or the wrong CHMOD/CHOWN value is present on one or more of the folders/files containing the image)
- Remove spaces in Config.php, Mainfile.php, and your default language file in the language folder after ‘?>’

Want to make it even more simple? If you are having a problem with the security image and see a red ‘x’ check the ‘alt’ or ‘description’ of that image. If it states ‘X_SECURITYIMAGE’ you should know RIGHT AWAY that this is an issue with the language file and to remove the space at the end.

Sorry to ramble on and on about it. It was troubling to see so many users with the issue and no one had an answer – not even the maker of the CMS – so this is a fine day indeed for the support community.

Steven G.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Broken Image Link - News Section DaLizard Nuke 7.x - General 4 01-09-2005 09:38 PM
Broken Dl's MurphDog nukemods.com 16 07-28-2003 04:02 AM
PHP generated image help, setting bg image? Zathu_Koon Open topics 1 07-24-2003 11:10 AM
Site Visitors Block Security code image placement MurphDog Nuke 6.5 to 6.9 - Blocks 6 07-15-2003 09:36 PM
Nukemods security image IACOJ nukemods.com 3 05-25-2003 05:44 PM


All times are GMT -5. The time now is 07:38 PM.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.

LinkBacks Enabled by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31