Nuke Toolbar

          
Quick Links 
 [Home Page ][ Category Listings ][ Forum Listings][ Forum FAQs]
[ HomeDNS - Domains ]  [ Nuke Resources ]  [ Nuke Skins and Themes ]  [ Nuke Sites Link Directory ]
[ LearningLinux.com ]  [ Nuke Fixes ]
[ NukeZone Hosting ]  [ Domain Name Database ]
Nuke Forums Forum Index

Nuke Sites Link Directory


Admin Security login jpeg not showing
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Nuke Forums Forum Index -> PHP-Nuke 6.x Installation
View previous topic :: View next topic  
Author Message
findit
Guest






PostPosted: Thu May 01, 2003 3:06 pm    Post subject: Reply with quote

All users having image problem

Hi All

Update on this problem....Flexi installed my version of the nuke 6.5 for me after i got fed-up with the security image not showing.....

Still did not show in any format ext gif, png or jpg

After formating my computer, and doing a clean install...all the images in any format now displaed on all of the sites that i visited...before the format, none of these sites would display the image...this has led me to believe that it is not a problem with the program code...but the browser itself.......have tried it a couple of times....once i install a fresh IE 5.5 all the images show in all the above formats without any problems.

Have been looking into this problem...have nailed it down to the cacheing or cookies in the browser you are using.

Any more ideas (as mine is sorted now)

Richard
Back to top
Darius
Guest






PostPosted: Wed May 14, 2003 9:52 am    Post subject: Reply with quote

Quote:
On 2003-04-30 11:10, Humpa wrote:
In the Your_Account/index.php in the function main is this:
Code:
<img src='modules.php?name=$module_name&op=gfx&random_num=$random_num' border='1' alt='"._SECURITYCODE."' title='"._SECURITYCODE."'>
Change it to this:
Code:
<img src='gfx.php?random_num=$random_num' border='1' alt='"._SECURITYCODE."' title='"._SECURITYCODE."'>
That's it!

You will have to change this in the new_user function as well.

(Don't forget to read the rest of this procedure in Humpa's description above!!!)

[ This Message was edited by: Darius on 2003-05-14 12:53 ]
Back to top
Humpa
President
President


Joined: 23 Apr 2002
Posts: 3429


PostPosted: Wed May 14, 2003 10:03 am    Post subject: Reply with quote

I have posted a lot of info and some "hacks" to try and get the security image to work.

I believe that if you have JPEG Support enabled (as per the gd_info), and you get a red X for the security image, then you edited the config.php (and/or other php files) with Notepad/Wordpad

... but, here is a consolidation of my thoughts on the security image:
http://www.humpa.com/help (number 3)
Back to top
View user's profile Send private message
Jay2k
Private
Private


Joined: 18 Jul 2004
Posts: 1


PostPosted: Sun Jul 18, 2004 5:50 pm    Post subject: Reply with quote

Hi all,

I found that the config.php file bundled in 7.2 has a carriage return after the final ?> in the file, which when removed fixed my security image problems instantly.

Check it out, could be your problem too - none of the gfx function or file suggestions worked, but this did.

Jay2k.
Back to top
View user's profile Send private message
ShotoKan
Chief Warrant Officer
Chief Warrant Officer


Joined: 19 May 2004
Posts: 137


PostPosted: Tue Aug 17, 2004 7:06 pm    Post subject: Reply with quote

Hi Humpa

Sorry if I did not get something right. But i just upgraded from 7.1 to 7.3 and my problem is not a broken image. I don't see any image at all.
My GD version says "GD Version bundled (2.0.15 compatible)" on analyze.php.

You can see my page here http://www.csbkb.com/admin.php.

Do you think i would solve my problem with one of your previous codes on this thread? I just don't want start changling a lot of things when i am not sure what i am doing. I also don't know exactly if my Gd has "jpg" available or not because i don't know much about this.

Thanks in adance for your help on this.
esossai
Back to top
View user's profile Send private message
chatserv
President
President


Joined: 19 Aug 2001
Posts: 3258


PostPosted: Tue Aug 17, 2004 8:23 pm    Post subject: Reply with quote

You will find the following setting in config.php:
Code:
$gfx_chk = 0;

With it you can select where the security image will appear, by default it is set to 0 which means no image will be used, change it to the value you want.

Code:
0: No check
1: Administrators login only
2: Users login only
3: New users registration only
4: Both, users login and new users registration only
5: Administrators and users login only
6: Administrators and new users registration only
7: Everywhere on all login options (Admins and Users)
Back to top
View user's profile Send private message Visit poster's website
ShotoKan
Chief Warrant Officer
Chief Warrant Officer


Joined: 19 May 2004
Posts: 137


PostPosted: Wed Aug 18, 2004 12:25 pm    Post subject: Reply with quote

chatserv

Thanks for your tip on the security code. Now would be possible to help on onother issue that is even more important at this point?

I am able to login on my website as admin without any problem and execute any admin function but when a normal player that are really registered (i checked personlayy using phpmyadmin into mysql) they login they got the screen below:
Quote:
[img]
Personal Information: esossai

Actual User Status: Offline

Last 10 News Submissions sent by esossai: [/img]

The problem starts when they try to access the download modules for instance, they get a message "restricted area" as they were not registered.

To solve it temporarily I put downloads to "all visitors" but i really want this module only to registered users and not to everyone.

I even created a regular user to myself and it happen to me as well.

do you think you can help me?
Back to top
View user's profile Send private message
chatserv
President
President


Joined: 19 Aug 2001
Posts: 3258


PostPosted: Wed Aug 18, 2004 1:17 pm    Post subject: Reply with quote

If the site is hosted on a Windows server try this:

http://www.nukeforums.com/forums/viewtopic.php?t=18366&highlight=actual+user+status+offline
Back to top
View user's profile Send private message Visit poster's website
ShotoKan
Chief Warrant Officer
Chief Warrant Officer


Joined: 19 May 2004
Posts: 137


PostPosted: Wed Aug 18, 2004 1:45 pm    Post subject: Reply with quote

you're the best.
thanks
Back to top
View user's profile Send private message
mevzubahis
Private
Private


Joined: 02 Dec 2004
Posts: 1


PostPosted: Thu Dec 02, 2004 2:28 am    Post subject: Reply with quote

Humpa wrote:
ok ... I did some testing, and I can get the security image to fail.

I think this will fix the broken security image for anyone who has the GD extension loaded (with jpeg support), but still see the broken image.

Make a new file, name it gfx.php, and use this code:
Code:
<?php
    global $prefix, $db;
    require("config.php");
    $datekey = date("F j");
    $rcode = hexdec(md5($_SERVER[HTTP_USER_AGENT] . $sitekey . $random_num . $datekey));
    $code = substr($rcode, 2, 6);
    $image = ImageCreateFromJPEG("images/admin/code_bg.jpg");
    $text_color = ImageColorAllocate($image, 80, 80, 80);
    Header("Content-type: image/jpeg");
    ImageString ($image, 5, 12, 2, $code, $text_color);
    ImageJPEG($image, '', 75);
    ImageDestroy($image);
?>

Upload it to your phpnuke directory (with the config.php, mainfile.php, etc).

Now, you just need to edit the img tags for the security image.
By default, there is just the one in the admin.php and in the modules/Your_Account/index.php (if you have modified Login and/or User_Info blocks, do the same thing).

In the admin.php in the function login, the img tag is this:
Code:
<img src='admin.php?op=gfx&random_num=$random_num' border='1' alt='"._SECURITYCODE."' title='"._SECURITYCODE."'>

Change to:
Code:
<img src='gfx.php?random_num=$random_num' border='1' alt='"._SECURITYCODE."' title='"._SECURITYCODE."'>

In the Your_Account/index.php in the function main is this:
Code:
<img src='modules.php?name=$module_name&op=gfx&random_num=$random_num' border='1' alt='"._SECURITYCODE."' title='"._SECURITYCODE."'>

Change it to this:
Code:
<img src='gfx.php?random_num=$random_num' border='1' alt='"._SECURITYCODE."' title='"._SECURITYCODE."'>

That's it!

<font size=-1>[ This Message was edited by: Humpa on 2003-04-30 11:12 ]</font>


This works for admin login and your account login.
But the problem continiues on home page in the login block!!
So in the blocks/login.php file I found this

Code:
<img src='modules.php?name=Your_Account&op=gfx&random_num=$random_num' border='1' alt='"._SECURITYCODE."' title='"._SECURITYCODE."'>


and changed it with the same code:

Code:
<img src='gfx.php?random_num=$random_num' border='1' alt='"._SECURITYCODE."' title='"._SECURITYCODE."'>


So home page login block also works.
Back to top
View user's profile Send private message
fishoonet
Private
Private


Joined: 18 Jul 2006
Posts: 3


PostPosted: Tue Jul 18, 2006 6:35 pm    Post subject: Security Code not working in 7.9 Reply with quote

I too am having the same problem. However, the fix you mention doesn't work on 7.9! The code is completely different, so how do I implement the fix?
Back to top
View user's profile Send private message
darklord
Staff Sergeant
Staff Sergeant


Joined: 16 May 2006
Posts: 37


PostPosted: Tue Jul 18, 2006 8:35 pm    Post subject: Reply with quote

That code actually forces it to look elsewhere and not in the nuke.

Heres the edits to make to get this file to work properly with 7.9


admin.php

<img src='gfx.php?random_num=$random_num' border='1' alt='"._SECURITYCODE."' title='"._SECURITYCODE."'>

An the same for the your account. It just looks different, Its not really.
Back to top
View user's profile Send private message Yahoo Messenger
emma_leigh
Private
Private


Joined: 29 Jun 2007
Posts: 4


PostPosted: Fri Jun 29, 2007 12:19 am    Post subject: Reply with quote

Humpa wrote:
ok ... I did some testing, and I can get the security image to fail.

I think this will fix the broken security image for anyone who has the GD extension loaded (with jpeg support), but still see the broken image.

Make a new file, name it gfx.php, and use this code:
Code:
<?php
    global $prefix, $db;
    require("config.php");
    $datekey = date("F j");
    $rcode = hexdec(md5($_SERVER[HTTP_USER_AGENT] . $sitekey . $random_num . $datekey));
    $code = substr($rcode, 2, 6);
    $image = ImageCreateFromJPEG("images/admin/code_bg.jpg");
    $text_color = ImageColorAllocate($image, 80, 80, 80);
    Header("Content-type: image/jpeg");
    ImageString ($image, 5, 12, 2, $code, $text_color);
    ImageJPEG($image, '', 75);
    ImageDestroy($image);
?>

Upload it to your phpnuke directory (with the config.php, mainfile.php, etc).

Now, you just need to edit the img tags for the security image.
By default, there is just the one in the admin.php and in the modules/Your_Account/index.php (if you have modified Login and/or User_Info blocks, do the same thing).

In the admin.php in the function login, the img tag is this:
Code:
<img src='admin.php?op=gfx&random_num=$random_num' border='1' alt='"._SECURITYCODE."' title='"._SECURITYCODE."'>

Change to:
Code:
<img src='gfx.php?random_num=$random_num' border='1' alt='"._SECURITYCODE."' title='"._SECURITYCODE."'>

In the Your_Account/index.php in the function main is this:
Code:
<img src='modules.php?name=$module_name&op=gfx&random_num=$random_num' border='1' alt='"._SECURITYCODE."' title='"._SECURITYCODE."'>

Change it to this:
Code:
<img src='gfx.php?random_num=$random_num' border='1' alt='"._SECURITYCODE."' title='"._SECURITYCODE."'>

That's it!

<font size=-1>[ This Message was edited by: Humpa on 2003-04-30 11:12 ]</font>


I followed this exactly and still my security image doesnt show, what can I do. I have never asked for help before because I have always found the answer but I have looked through all the posts on this topic and nothing seems to work, but I really want the security image to show, any ideas?? You can take a look at www.puremadonna.com
Back to top
View user's profile Send private message
aksakhirn
Private
Private


Joined: 06 Nov 2007
Posts: 1


PostPosted: Tue Nov 06, 2007 7:21 am    Post subject: Reply with quote

Hi Humpa !!

Well always the same thing : troubles with security image !

I'd like to tell you first that i've tried all the solutions described in the forum but nothing happen.

For me the problem is a little bit different : the security image is working fine with something like 99% of the skins i've tried.
But it didn't work with the only one i'd like to use !!
And by searching a solution i finally saw that... it didn't work with "analyze.php" !!
The bg image is ok, everything is ok in analyze.php but the security image never appear and there is just the red cross !! :'(

Hope you will be able to help me !!!

Thx a lot in advance,
Huges from france !!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Nuke Forums Forum Index -> PHP-Nuke 6.x Installation All times are GMT - 8 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
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




Forum Options
Main Menu
index.php?sid=0d2b4dd77820be415bebc70a6a1a102cForums Index
    - Collaped View
    + Expanded View
FAQFAQ
SearchSearch
MemberlistMemberlist
UsergroupsUsergroups
RegisterRegister
ProfileProfile
Log in to check your private messagesLog in to check your private messages
Log inLog in

Visitor Options
 
Subscribe
Unsubscribe


Keep informed of updates, bug fixes, software releases, news and more!
Installation or Upgrade Services for phpNuke or PostNuke? Require site maintenance, addons, modules or custom themes? Send private message or e-mail for rates and availablity.

Quick Links
  Domain Names
  Firewall Forums
  Joke Crazy
  Learning Linux
  Find your IP Fast!
  Purchase WinRAR

Trusted Nuke Sites
  NukeZone Hosting
  CMS Focus
  NukeFixes.com
  NukeResources.com
  NukeSkins.com
  NukeSites.com
  PHPNuke.org

Sponsor Links


NukeZone Hosting