Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Nuke Treasury
Author Message
foofighter
New Member
New Member



Joined: Nov 01, 2007
Posts: 20
Location: Bonny Scotland

PostPosted: Sat Nov 17, 2007 4:35 pm Reply with quote

I have installed treasury 1.1, created the database etc but when i try to admin the treasury with the admin account i receive the following error:

"The document name you requested (/admin.php) could not be found on this server. However, we found documents with names similar to the one you requested.
Available documents:

/admin?op=Treasury (common basename)
"

Is this because i have renamed my admin.php when i originally installed my site? I have enable to module which does work with the link provided but trying to change the admin setting for the module only receives this error.

All help appreciated.
 
View user's profile Send private message
foofighter







PostPosted: Sat Nov 17, 2007 4:40 pm Reply with quote

i have tried to edit the

/admin/modules/treasury.php

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

and replace this with the new admin filename - but i still cannot access it.
 
Gremmie
Former Moderator in Good Standing



Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA

PostPosted: Sat Nov 17, 2007 4:51 pm Reply with quote

If you are using a patched nuke, it would be better if you replaced that check in treasury.php with:

Code:


if (!defined('ADMIN_FILE')) {
   die ("Access Denied");
}

_________________
GCalendar - An Event Calendar for PHP-Nuke
Member_Map - A Google Maps Nuke Module 
View user's profile Send private message
foofighter







PostPosted: Sun Nov 18, 2007 5:58 pm Reply with quote

thanks gremmie - but still get the same error message
 
Gremmie







PostPosted: Sun Nov 18, 2007 9:51 pm Reply with quote

So you renamed your admin.php file?

Does the admin/modules/treasury.php file have any other references to admin.php? It should be replaced with $admin_file if it does.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Nuke Treasury

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 ©