Author |
Message |
JRSweets
Worker


Joined: Aug 06, 2004
Posts: 192
|
Posted:
Fri Sep 03, 2004 4:48 pm |
|
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. |
|
|
|
 |
JRSweets

|
Posted:
Fri Sep 03, 2004 5:06 pm |
|
Never mind, I am sorry for taking up your time. I some how delete code_bg.jpg from the images folder.  |
|
|
|
 |
BobMarion
Former Admin in Good Standing

Joined: Oct 30, 2002
Posts: 1037
Location: RedNeck Land (known as Kentucky)
|
Posted:
Fri Sep 03, 2004 5:48 pm |
|
Opps, I hate it when that happens  |
_________________ Bob Marion
Codito Ergo Sum
Only registered users can see links on this board! Get registered or login! |
|
|
 |
JRSweets

|
Posted:
Fri Sep 03, 2004 6:39 pm |
|
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


Joined: Jul 15, 2004
Posts: 252
Location: OKC, OK
|
Posted:
Fri Sep 03, 2004 7:31 pm |
|
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! |
|
|
 |
Raven
Site Admin/Owner

Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Fri Sep 03, 2004 7:38 pm |
|
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. |
|
|
|
 |
JRSweets

|
Posted:
Sat Sep 04, 2004 12:35 am |
|
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 .= " <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

|
Posted:
Sat Sep 04, 2004 12:42 am |
|
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

|
Posted:
Sat Sep 04, 2004 1:14 am |
|
Works perfectly, thank you.  |
|
|
|
 |
Raven

|
Posted:
Sat Sep 04, 2004 9:08 pm |
|
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. |
|
|
|
 |
|