Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.5
Author Message
JRSweets
Worker
Worker



Joined: Aug 06, 2004
Posts: 192

PostPosted: Fri Sep 03, 2004 4:48 pm Reply with quote

I banned an IP address and now I can no longer see the security code when logging in. I get the red X.

I turned off the security code and unbanned the IP address but I can still no longer see the security code. I was reading the FAQ and it said check the lang files, config.php, and includes for extra spaces.

I have checked config.php and the lang_english.php in the admin and regular site. THere were no extra spaces. What includes should I check? Any other ideas? I'm stumpped and would really like to get it working again.
 
View user's profile Send private message
JRSweets







PostPosted: Fri Sep 03, 2004 5:06 pm Reply with quote

Never mind, I am sorry for taking up your time. I some how delete code_bg.jpg from the images folder. Embarassed
 
BobMarion
Former Admin in Good Standing



Joined: Oct 30, 2002
Posts: 1037
Location: RedNeck Land (known as Kentucky)

PostPosted: Fri Sep 03, 2004 5:48 pm Reply with quote

Opps, I hate it when that happens Bang Head

_________________
Bob Marion
Codito Ergo Sum
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Send e-mail Visit poster's website
JRSweets







PostPosted: Fri Sep 03, 2004 6:39 pm Reply with quote

Well that fixed the admin gfx sercurity code. The user login still wasn't working.

I did some checking, I just upgraded to nuke 7.5(maybe this should be moved to that forum) and in Your_Account\index.php the function for gfx is gone. Once I copied the function from nuke 7.4 Your_Account\index.php the code reappeared.

Did the function move files in the new version, or was it left out by mistake?
 
Tao_Man
Involved
Involved



Joined: Jul 15, 2004
Posts: 252
Location: OKC, OK

PostPosted: Fri Sep 03, 2004 7:31 pm Reply with quote

It has been lifted right out of there, it must be a mistake because it there is a case in the switch to call the gfx() function but it is gone.

_________________
------------------------------------------
To strive, to seek, to find, but not to yield!
I don't know Kara-te but I do know cra-zy, and I WILL use it! 
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Fri Sep 03, 2004 7:38 pm Reply with quote

The gfx() function is in mainfile.php. The admin.php file calls do_gfx(). That's all the farther I've gotten. At first glance it should be working.
 
View user's profile Send private message
JRSweets







PostPosted: Sat Sep 04, 2004 12:35 am Reply with quote

Yeah the admin was working, however my userinfo block was not. This is the code from the userinfo block.
Code:


   //LOGIN Box
   $content .= "<table border=\"0\">\n";
   $content .= "<form action=\"account.html\" method=\"post\">\n";
   $content .= "<tr><td><input type=\"text\" name=\"username\" size=\"15\" maxlength=\"25\" value=\"Username\" onFocus=\"if(this.value=='Username')this.value='';\"><CENTER></td></tr>\n";
   $content .= "<tr><td><input type=\"password\" name=\"user_password\" size=\"15\" maxlength=\"20\" value=\"Password\" onFocus=\"if(this.value=='Password')this.value='';\"></td></tr>\n";
   if (extension_loaded("gd") AND ($gfx_chk == 2 OR $gfx_chk == 4 OR $gfx_chk == 5 OR $gfx_chk == 7)) {
   $content .= "<tr><td colspan='2'>"._CZ_SECURITYCODE." <img src='modules.php?name=Your_Account&op=gfx&random_num=$random_num' border='1' alt='"._SECURITYCODE."' title='"._SECURITYCODE."'></td></tr>\n";
   $content .= "<tr><td colspan='2'>"._CZ_TYPESECCODE." <input type=\"text\" NAME=\"gfx_check\" SIZE=\"12\" MAXLENGTH=\"10\"></td></tr>\n";
   $content .= "<input type=\"hidden\" name=\"random_num\" value=\"$random_num\">\n";
       }
   $content .= "</table><input type=\"hidden\" name=\"redirect\" value=$redirect>\n";
   $content .= "<input type=\"hidden\" name=\"mode\" value=$mode>\n";
   $content .= "<input type=\"hidden\" name=\"f\" value=$f>\n";
   $content .= "<input type=\"hidden\" name=\"t\" value=$t>\n";
   $content .= "<input type=\"hidden\" name=\"op\" value=\"login\">\n";
   $content .= "&nbsp;<input type=\"submit\" value=\""._LOGIN."\"></form>\n";


It is still calling the old function thru Your_Account/index.php, not the one in mainfile.php how would I change that?
 
BobMarion







PostPosted: Sat Sep 04, 2004 12:42 am Reply with quote

See this line:
Code:
$content .= "<tr><td colspan='2'>"._CZ_SECURITYCODE." <img src='modules.php?name=Your_Account&op=gfx&random_num=$random_num' border='1' alt='"._SECURITYCODE."' title='"._SECURITYCODE."'></td></tr>\n";


Should be:
Code:
$content .= "<tr><td colspan='2'>"._CZ_SECURITYCODE." <img src='?gfx=gfx&random_num=$random_num' border='1' alt='"._SECURITYCODE."' title='"._SECURITYCODE."'></td></tr>\n";
 
JRSweets







PostPosted: Sat Sep 04, 2004 1:14 am Reply with quote

Works perfectly, thank you. Very Happy
 
Raven







PostPosted: Sat Sep 04, 2004 9:08 pm Reply with quote

Something is amiss! The 7.5 downloaded from here already has that code in it. Are you sure you have a valid copy of the 7.5 uploaded to your site? Check the local copy on your PC to see if that code was already there and just didn't get uploaded.
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.5

View next topic
View previous topic
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 can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©