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, 52 guest(s) and 1 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Forum - Module in Admin Pannel Returning Access Denied [ ]
 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
gemini7
Nuke Soldier
Nuke Soldier


Joined: Jan 24, 2006
Posts: 12


PostPosted: Tue Feb 28, 2006 6:41 am Reply with quoteBack to top

Okay here is the problem.

Everything seems to be fine EXCEPT I can't configure my forum from the Admin Panel. Which means no Forum Creation....this will not do.

I get the returned Access Denied when logged in as Admin. [Even logged in as the God Account]

Now I had a similar problem before as you can see here.

I think it has something to do with me changing my admin.php file name, however I can't locate the check in the Forums module that is returning the error.

Any assistance would be greatly appreciated.

I'd like to have things up and running by this afternoon.

I am running 7.6 3.1 w/ 2.0.11 bbtonuke

[I know I need to upgrade, however I would like to identify and fix this problem first. I already upgraded from .10 to .11 and have had the same error]
Find all posts by gemini7View user's profileSend private messageAIM AddressYahoo MessengerMSN Messenger
gemini7
Nuke Soldier
Nuke Soldier


Joined: Jan 24, 2006
Posts: 12


PostPosted: Tue Feb 28, 2006 9:58 am Reply with quoteBack to top

Well I've been looking at the code all morning and I think something like this

Code:

global $admin_file;
if (!eregi("".$admin_file.".php", $_SERVER['PHP_SELF'])) { die ("Access Denied"); }
    adminmenu("".$admin_file.".php?op=forums", "Forums", "forums.gif");


found in Forum\admin\links.php is returning the access denied, but I have tried modifying it with no luck.

Any ideas on a possible solutions are greatly appreciated

I found someone who had a similar problem that discussion definitely leads me to believe that SOMEWHERE in the code of the forum the path is wrong. but where I have no idea....this is very frustrating Rolling Eyes
Find all posts by gemini7View user's profileSend private messageAIM AddressYahoo MessengerMSN Messenger
gemini7
Nuke Soldier
Nuke Soldier


Joined: Jan 24, 2006
Posts: 12


PostPosted: Tue Feb 28, 2006 12:56 pm Reply with quoteBack to top

Okay I found it...

Line 31 of nuke_root\modules\Forums\admin\forums.php

Code:

if (!eregi("admin.php", $_SERVER['SCRIPT_NAME'])) { die ("Access Denied");


That needs to be:

Code:

if (!eregi("".$admin_file.".php", $_SERVER['PHP_SELF'])) { die ("Access Denied"); }


The problem stems from actually calling up admin.php instead of the variable $admin_file which can be set in config.php to the changed admin file name.

I do have a question though... what exactly is the different between $_SERVER['SCRIPT_NAME'] and $_SERVER['PHP_SELF'] I know both are used to check that the instruction is comming from the server itself, but if someone could elaborate on why one is better than the other or specifically what the differences are between ['SCRIPT_NAME'] and ['PHP_SELF]

Thanks
Find all posts by gemini7View user's profileSend private messageAIM AddressYahoo MessengerMSN Messenger
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12389


PostPosted: Wed Mar 01, 2006 5:27 pm Reply with quoteBack to top

If there's a signficant difference, I haven't found it yet. 'SCRIPT_NAME' is something defined for the HTTP standard, while 'PHP_SELF' is only used in PHP

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
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.185 Seconds - 125 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::