| Author |
Message |
Raven
General


Joined: Mar 22, 2003
Posts: 5233
Location: USA
|
Posted:
Tue Jun 03, 2003 5:35 am |
  |
To disable the security code check, do this
| Code: |
Find the 7 occurrences of exactly this:
extension_loaded("gd")
There will be five in the modules/Your_Account/index.php, one in the admin.php, and one in the auth.php.
Change all 7 to this:
0
So, the 'if' statements will go from looking like this
if (extension_loaded("gd")
to this
if (0
or if you're really concerned about squeezing out cycles, change the whole 'if' statement to
if (0)
or comment out that whole 'if' block!
|
You may also have to do similar coding to any customized Site Info or User Info blocks  |
_________________ Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff |
|
    |
 |
Cody
Premium


Joined: Jun 12, 2003
Posts: 58
|
Posted:
Wed Jul 02, 2003 8:10 am |
  |
Hello Raven,
I have commented out the seven IF statements and I can login fine; however, now, it isn't keeping me logged in. I haven't changed any cookie settings, and I can still login and it takes me to the Your_Account page, but when I click on anything else, it states I am no longer logged in.
http://www.codydecker.com
u/p = phpbb / ilovephpbb
Any ideas?
Thanks,
Cody |
|
|
   |
 |
Raven
General


Joined: Mar 22, 2003
Posts: 5233
Location: USA
|
Posted:
Wed Jul 02, 2003 8:14 am |
  |
Hmmmm. I and many others have used this successfully. I would suggest that your commenting out may have commented out too much . Try restoring the file and then just modifying the code instead of commenting it out. |
_________________ Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff |
|
    |
 |
Cody
Premium


Joined: Jun 12, 2003
Posts: 58
|
Posted:
Wed Jul 02, 2003 8:39 am |
  |
Hello,
I think I found the problem...
In one of the IF statements in modules/Your_Account/index.php, an ELSE statement (which saves the cookie) is part of the IF statement. I moved the ELSE statement, changed the brackets, and everything worked fine..
Cody |
|
|
   |
 |
shooterfpga
Nuke Cadet


Joined: Jul 19, 2003
Posts: 3
|
Posted:
Sat Jul 19, 2003 6:40 pm |
  |
i modified the code first with if (0) then with if (0, because the first had given me problems with parse second one solved em for the auth, and admin, but when it came to the index.php in your account folder none of them worked not commenting, not modifying....here is my error
Parse error: parse error in /home/nicolemi/public_html/modules/Your_Account/index.php on line 467
and the line from 467
if (0 { |
|
|
   |
 |
Raven
General


Joined: Mar 22, 2003
Posts: 5233
Location: USA
|
Posted:
Sat Jul 19, 2003 6:43 pm |
  |
|
    |
 |
earplane
Nuke Cadet


Joined: Apr 08, 2003
Posts: 2
|
Posted:
Tue Aug 19, 2003 9:42 am |
  |
This trick doesn't seem to work for the admin login. What's the additional story here?
 |
|
|
    |
 |
enemee
Nuke Cadet


Joined: Sep 04, 2003
Posts: 7
|
Posted:
Thu Sep 04, 2003 2:50 am |
  |
well I commented out everything all 7 of them , I even changed the block_login.php
so the security thing is gone on the main page and on admin.php but only the admin login will work, registered users cant login they keep getting this error
::Soundbwoy Entertainment::: Access Denied
You are trying to access a restricted area.
We are Sorry, but this section of our site is for Registered Users Only.
You can register for free by clicking here, then you can
access this section without restrictions. Thanks.
[ Go Back ]
please help |
|
|
   |
 |
Raven
General


Joined: Mar 22, 2003
Posts: 5233
Location: USA
|
Posted:
Thu Sep 04, 2003 3:15 am |
  |
Your Account has to be set for All Users, not Registered Users to work. |
_________________ Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff |
|
    |
 |
duhduhdude
Corporal


Joined: Mar 30, 2003
Posts: 58
|
Posted:
Sun Sep 21, 2003 8:59 am |
  |
Commented out the whole if (extension) thing in the admin.php and uploaded, now the thing just won't work.
when i enter my username and password, it just takes me back to the same admin page. |
_________________ http://www.nascarace.com |
|
   |
 |
thinkfire
Sergeant


Joined: Oct 04, 2003
Posts: 99
|
Posted:
Sun Oct 05, 2003 7:40 am |
  |
i just want to disable this security for the user login only, I still want it to work everywhere else.... I am on 6.5 ATM |
|
|
   |
 |
HardTrancid
Nuke Soldier


Joined: Oct 02, 2003
Posts: 34
Location: Canada
|
Posted:
Sun Oct 05, 2003 10:09 am |
  |
So each occurence of if (extension_loaded("gd") AND $code != $_POST[gfx_check]) {
Will look like,
if (0) AND $code != $_POST [gfx_check]) {
? or do I just replace the whole line with if (0)
Thanks, I am not having any luck with this for some reason!  |
_________________ Hard Trancid
The Bassline Cartel
http://www.thebasslinecartel.com |
|
     |
 |
thinkfire
Sergeant


Joined: Oct 04, 2003
Posts: 99
|
Posted:
Sun Oct 05, 2003 10:17 am |
  |
me neither
think maybe someone could clarify this a little better? |
|
|
   |
 |
Larcen
Nuke Soldier


Joined: Oct 06, 2003
Posts: 33
|
Posted:
Mon Oct 06, 2003 9:14 am |
  |
THANK YOU!
Sorry, I got carried away. But thanks a million, that thing has been driving me nuts since it 'all of a sudden' appeared last night. |
|
|
   |
 |
thinkfire
Sergeant


Joined: Oct 04, 2003
Posts: 99
|
Posted:
Wed Oct 08, 2003 6:04 am |
  |
|
   |
 |
|
|