Clan Adverts

Custom PHPNuke Scripts

www.clan-themes.co.uk :: View topic - Security GFX Problem In PhpNuke 8 [SOLVED]

 Welcome To Clan Themes 

As the board grows please remember the Search Option and we hope you find our community useful.

We also monitor Private Messages to stop members from abusing our sites system.
If you are asking for assistance please provide your site link and nuke version, Thanks.

Security GFX Problem In PhpNuke 8 [SOLVED]

9 Replies / 2150 Views


Post new topic   Reply to topic  

   www.clan-themes.co.uk Forum Index » General PhpNuke

View previous topic :: View next topic


gator81
Reputation: 470.1
Local time: 12:54 AM

blank.gif

Status: Offline
0.06 posts per day
Medals: 0

Joined: Jun 05, 2007
Last Visit: 03 Nov 2008
Posts: 34
Points: 1118 

Post Security GFX Problem In PhpNuke 8 [SOLVED] Posted: Sun Jul 01, 2007 7:05 pm   

well I have been looking for quite some time to get this working and finally a user on another site named White_Devil resolved the issue that I was having. I wanted to share the info here in case anyone else may of had the problem.

On phpnuke 8, I could not get the security code grafix to work. Everything was correct and working on the server, but the graphix would not work. I didnt get a red x or anything. Finally after alot lf searching this was told to me:
Look for lines... THERE IS 2 of em...
Code:

   ImageJPEG($image, '', 75);


Change em to
Code:

   ImageJPEG($image, '', 9);

this resolved my problem and it is now working.

Another thing that I came across that i thought was really good, and there could of been talk about this already, but its a program called xampp and this allowed me to put my site on my local machine for testing. Most of you probally know about it, but I thought I would still share the info :)
 

 
View user's profileSend private message Reply with quote

Ped
Reputation: 336.9
votes: 17
Local time: 6:54 AM
Location: Great British Empire
uk.gif

Status: Offline
2.35 posts per day
Medals: 2 (View more...)
Dedicated User (Amount: 1)
Clan Themes Theme Guru
Clan Themes Theme Guru
Joined: Nov 13, 2006
Last Visit: 01 Dec 2008
Posts: 1765
Points: 15745 

View user's profileSend private messageSend e-mailVisit poster's website Reply with quote

gator81
Reputation: 470.1
Local time: 12:54 AM

blank.gif

Status: Offline
0.06 posts per day
Medals: 0

Joined: Jun 05, 2007
Last Visit: 03 Nov 2008
Posts: 34
Points: 1118 

Post Posted: Mon Jul 02, 2007 6:54 pm   

I would like to post some additional information to this. One of the issues I seem to be having when doing this seemed that the code that was generated was cramped. "all in the same line" So asked white about getting a return so the code would be shown on another line. So in the block folder block-login.php file the line:
Code:

$content .= ""._SECURITYCODE.": <img src='?gfx=gfx&random_num=$random_num' border='1' alt='"._SECURITYCODE."' title='"._SECURITYCODE."'><br>\n";

and just added the <br> so it looked like this
Code:

$content .= ""._SECURITYCODE.": <br><img src='?gfx=gfx&random_num=$random_num' border='1' alt='"._SECURITYCODE."' title='"._SECURITYCODE."'><br>\n";


now this gave me the return and looked like some extra room, so i started changing the '9' to a higher number, just a little at a time and I have it up to '60' and the numbers seem to look a little more clear. I can not explain how this all happened, I can only think that it was because the graphix was on another line and gave it more room.

Just wanted to share my findings
 

 
View user's profileSend private message Reply with quote




fext
Reputation: 463.4
Local time: 5:54 AM
Location: The Unknown
uk.gif

Status: Offline
0.16 posts per day
Medals: 0

Joined: Mar 26, 2007
Last Visit: 17 Sep 2007
Posts: 100
Points: 1494 

Post Posted: Tue Jul 03, 2007 11:02 am   

Shop Purchases:
Multi Gaming (Warrior) Theme · Clan Roster v1.7 Php Nuke Module ·  · Clan Themes Green PhpNuke Theme

Nice find - i got a question:

You refer to these lines:

ImageJPEG($image, '', 75);

change to

ImageJPEG($image, '', 9);


What file do i change these lines in?

I have a problem with my site at the moment...

On the homepage you can see the GFX but on the new registration page you can't - it only shows the ALT text [Security Code].

This is the link it calls but does not show an image: http://www.neophytez.com/Raven/modules.php?name=Your_Account&op=gfx&random_num=XXXXXX

*XXXXXX replaces random number generated by script on site.

Will the intial fix in first post fix this?

My Nuke version is Raven.
 

FEXT Web Designer / 360 Gamer robertyoungdesign.com [personal] neophytez.com [clan]  
View user's profileSend private messageVisit poster's websiteMSN Messenger Reply with quote

gator81
Reputation: 470.1
Local time: 12:54 AM

blank.gif

Status: Offline
0.06 posts per day
Medals: 0

Joined: Jun 05, 2007
Last Visit: 03 Nov 2008
Posts: 34
Points: 1118 

Post Posted: Tue Jul 03, 2007 6:45 pm   

dont think so, I am running phpnuke 8 and in the main folder there is a file called mainfile.php and at the bottom is the place where I can change the graphic size....but 8 uses code_bg.jpg and code_bg_little.jpg as graphics and I belive that raven uses the captcha instead. I did a search on there site and there was alot of info that may answer your problem here is the direct link, but you may need to go create an account and search for your answer : http://ravenphpscripts.com/forums-search-results.html or just http://ravenphpscripts.com

hope that helps
 

 
View user's profileSend private message Reply with quote

fext
Reputation: 463.4
Local time: 5:54 AM
Location: The Unknown
uk.gif

Status: Offline
0.16 posts per day
Medals: 0

Joined: Mar 26, 2007
Last Visit: 17 Sep 2007
Posts: 100
Points: 1494 

Post Posted: Wed Jul 04, 2007 12:33 pm   

Shop Purchases:
Multi Gaming (Warrior) Theme · Clan Roster v1.7 Php Nuke Module ·  · Clan Themes Green PhpNuke Theme

Ok i found a resource but it was not a good one.

It told me to effectively do what you said so prior to doing this i made a site back up and another backup of the file i was about to change - 'mainfile.php'.

Seeing as my change never worked after upload i proceeded to upload the backup file - still retunring the same errors.

I get this:


Warning: main(includes/nmatch_functions.php) [function.main]: failed to open stream: No such file or directory in /home/neophyte/public_html/Raven/mainfile.php on line 1357

Warning: main() [function.include]: Failed opening 'includes/nmatch_functions.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/neophyte/public_html/Raven/mainfile.php on line 1357

Fatal error: Cannot redeclare makepass() in /home/neophyte/public_html/Raven/modules/Your_Account/index.php on line 42

Now i have edited the line '1357' but then i still get the error that refers to line 42 in the 'Your_Account/index.php' file.

I tried to change that but i got even more errors so i reinstated things to the first error.

Now i can access the site via admin.php and also look at other sections such as Modules and Forums but i cannot see the homepage [it redirects back to my current site] and also cannot see any account sections - these either return errors or jump to old site.

Reason i have two sites [in case anyone asks] is because my old site was an unstable install but is still running and the new site was a raven install - better security and more stable.

Does anyone have any ideas on this?

I have asked my host if they can perform a rollback on the server and hopefully that will fix it - but does anyone know what is wrong?
 

 
View user's profileSend private messageVisit poster's websiteMSN Messenger Reply with quote




gator81
Reputation: 470.1
Local time: 12:54 AM

blank.gif

Status: Offline
0.06 posts per day
Medals: 0

Joined: Jun 05, 2007
Last Visit: 03 Nov 2008
Posts: 34
Points: 1118 

Post Posted: Thu Jul 05, 2007 7:02 am   

I may not be the best to answer this, but I will try to pass on what I have learned.

1. what version of raven nuke are you running? I went to line1357 in the latest release and there is no edits on what I see that would change anything. this is in the mainfile.php file on the root of the site.
2. do you know if the site has the graphix mod installed that will show the graphics? I am not for sure right off hand but there has be be a version that will allow this to run.
3. does your old site have the security?
4. you may find and download analizer or something in that spelling and that will tell you about your setup.

On your second site, you might want to make sure everything is deleted, and all the sql has been moved that you will use for the 2nd site. and do a fresh install, following the directions step by step. I did this for someone else and everything worked for me.

1. created a sql with login/pw
2. I took the long way and unzipped on my machine and uploaded everything
3. I went the the site /install and filled out the info
4 i then had to do something else to get it to write all the sql tables
5 went back and finished the install
6 went into the admin and created a super user, and configed some of the stuff
7. loaded the main page and everything was working

Now i didnt have a userbase to move, or alot of mods to add to this install, but everything seem to work fine.

again i recomend going to http://ravenphpscripts.com and setup you an account and ask there, I have had quick responces to any problems that I have had.

hope some of this helps
 

 
View user's profileSend private message Reply with quote

Ped
Reputation: 336.9
votes: 17
Local time: 6:54 AM
Location: Great British Empire
uk.gif

Status: Offline
2.35 posts per day
Medals: 2 (View more...)
Forums MoD (Amount: 1)
Clan Themes Theme Guru
Clan Themes Theme Guru
Joined: Nov 13, 2006
Last Visit: 01 Dec 2008
Posts: 1765
Points: 15745 

View user's profileSend private messageSend e-mailVisit poster's website Reply with quote

gator81
Reputation: 470.1
Local time: 12:54 AM

blank.gif

Status: Offline
0.06 posts per day
Medals: 0

Joined: Jun 05, 2007
Last Visit: 03 Nov 2008
Posts: 34
Points: 1118 

View user's profileSend private message Reply with quote




fext
Reputation: 463.4
Local time: 5:54 AM
Location: The Unknown
uk.gif

Status: Offline
0.16 posts per day
Medals: 0

Joined: Mar 26, 2007
Last Visit: 17 Sep 2007
Posts: 100
Points: 1494 

View user's profileSend private messageVisit poster's websiteMSN Messenger Reply with quote
Post new topic   Reply to topic  
   www.clan-themes.co.uk Forum Index » General PhpNuke


 
9 Replies / 2150 Views
Page 1 of 1
All times are GMT
Display posts from previous:   
 
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
You cannot attach files in this forum
You can download files in this forum