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.
Joined: Jun 05, 2007
Last Visit: 05 Nov 2007
Posts: 23 Points: 1173
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 :)
Ped
Reputation: 913.3 votes: 17
Local time: 12:21 PM Location: Great British Empire
Status: Offline
3.02 posts per day Medals: 2 (View more...)
Clan Themes Theme Guru Joined: Nov 13, 2006
Last Visit: 17 May 2008
Posts: 1663 Points: 5596
Re: Problem solved - want to sharePosted:
Sun Jul 01, 2007 10:07 pm
Thx Gator
White Devil is a gifted lad !
Could you explain why this is floppy if you see this thread... thx
Joined: Jun 05, 2007
Last Visit: 05 Nov 2007
Posts: 23 Points: 1173
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:
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
fext
Reputation: 463.4
Local time: 11:21 AM Location: The Unknown
Status: Offline
0.24 posts per day Medals: 0
Joined: Mar 26, 2007
Last Visit: 17 Sep 2007
Posts: 100 Points: 1494
Joined: Jun 05, 2007
Last Visit: 05 Nov 2007
Posts: 23 Points: 1173
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
fext
Reputation: 463.4
Local time: 11:21 AM Location: The Unknown
Status: Offline
0.24 posts per day Medals: 0
Joined: Mar 26, 2007
Last Visit: 17 Sep 2007
Posts: 100 Points: 1494
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?
Joined: Jun 05, 2007
Last Visit: 05 Nov 2007
Posts: 23 Points: 1173
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
Ped
Reputation: 913.3 votes: 17
Local time: 12:21 PM Location: Great British Empire
Status: Offline
3.02 posts per day Medals: 2 (View more...)
Clan Themes Theme Guru Joined: Nov 13, 2006
Last Visit: 17 May 2008
Posts: 1663 Points: 5596
Re:Posted:
Thu Jul 05, 2007 7:18 am
Nice to see you two working together in resolving this problem