You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 43 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Disabling the security code graphic and logic [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Tue Jun 03, 2003 5:35 am Reply with quoteBack to top

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 Wink

_________________
Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff
Find all posts by RavenView user's profileSend private messageVisit poster's website
Cody
Premium
Premium


Joined: Jun 12, 2003
Posts: 58


PostPosted: Wed Jul 02, 2003 8:10 am Reply with quoteBack to top

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
Find all posts by CodyView user's profileSend private message
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Wed Jul 02, 2003 8:14 am Reply with quoteBack to top

Hmmmm. I and many others have used this successfully. I would suggest that your commenting out may have commented out too much Wink. 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
Find all posts by RavenView user's profileSend private messageVisit poster's website
Cody
Premium
Premium


Joined: Jun 12, 2003
Posts: 58


PostPosted: Wed Jul 02, 2003 8:39 am Reply with quoteBack to top

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
Find all posts by CodyView user's profileSend private message
shooterfpga
Nuke Cadet
Nuke Cadet


Joined: Jul 19, 2003
Posts: 3


PostPosted: Sat Jul 19, 2003 6:40 pm Reply with quoteBack to top

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 {
Find all posts by shooterfpgaView user's profileSend private message
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Sat Jul 19, 2003 6:43 pm Reply with quoteBack to top

You are missing your closing )

Change
if (0 {
to
if (0) {

_________________
Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff
Find all posts by RavenView user's profileSend private messageVisit poster's website
earplane
Nuke Cadet
Nuke Cadet


Joined: Apr 08, 2003
Posts: 2


PostPosted: Tue Aug 19, 2003 9:42 am Reply with quoteBack to top

This trick doesn't seem to work for the admin login. What's the additional story here?
Question
Find all posts by earplaneView user's profileSend private messageVisit poster's website
enemee
Nuke Cadet
Nuke Cadet


Joined: Sep 04, 2003
Posts: 7


PostPosted: Thu Sep 04, 2003 2:50 am Reply with quoteBack to top

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
Find all posts by enemeeView user's profileSend private message
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Thu Sep 04, 2003 3:15 am Reply with quoteBack to top

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
Find all posts by RavenView user's profileSend private messageVisit poster's website
duhduhdude
Corporal
Corporal


Joined: Mar 30, 2003
Posts: 58


PostPosted: Sun Sep 21, 2003 8:59 am Reply with quoteBack to top

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
Find all posts by duhduhdudeView user's profileSend private message
thinkfire
Sergeant
Sergeant


Joined: Oct 04, 2003
Posts: 99


PostPosted: Sun Oct 05, 2003 7:40 am Reply with quoteBack to top

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
Find all posts by thinkfireView user's profileSend private message
HardTrancid
Nuke Soldier
Nuke Soldier


Joined: Oct 02, 2003
Posts: 34

Location: Canada

PostPosted: Sun Oct 05, 2003 10:09 am Reply with quoteBack to top

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! Crying or Very sad

_________________
Hard Trancid
The Bassline Cartel
http://www.thebasslinecartel.com
Find all posts by HardTrancidView user's profileSend private messageVisit poster's websiteICQ Number
thinkfire
Sergeant
Sergeant


Joined: Oct 04, 2003
Posts: 99


PostPosted: Sun Oct 05, 2003 10:17 am Reply with quoteBack to top

me neither

think maybe someone could clarify this a little better?
Find all posts by thinkfireView user's profileSend private message
Larcen
Nuke Soldier
Nuke Soldier


Joined: Oct 06, 2003
Posts: 33


PostPosted: Mon Oct 06, 2003 9:14 am Reply with quoteBack to top

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.
Find all posts by LarcenView user's profileSend private message
thinkfire
Sergeant
Sergeant


Joined: Oct 04, 2003
Posts: 99


PostPosted: Wed Oct 08, 2003 6:04 am Reply with quoteBack to top

clarification please?
Find all posts by thinkfireView user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next 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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.228 Seconds - 264 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::