PHP Web Host - Quality Web Hosting For All PHP Applications Just Great Software
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
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 Back to top

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
New Member
New Member


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

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

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.
View user's profile Send private message
Gremmie
Former Moderator in Good Standing


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

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

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");
}
View user's profile Send private message
foofighter
New Member
New Member


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

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

thanks gremmie - but still get the same error message
View user's profile Send private message
Gremmie
Former Moderator in Good Standing


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

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

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.
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum