Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.6
Author Message
mrix
Client



Joined: Dec 04, 2004
Posts: 757

PostPosted: Wed Dec 08, 2004 6:42 am Reply with quote

Hi all, as we all know when 7.6 got released one of its best features was being able to rename the admin.php file, but there is nothing anywhere as far as I have surfed to fin out how to go about it????, does anyone know anywhere?, I have renamed the admin.php file to something else and also added in the config.php file and I do manage to get into a part loaded adminastration panel but not one of the links work??
Cheer for any help
mrix
 
View user's profile Send private message Visit poster's website
Mesum
Useless



Joined: Aug 23, 2002
Posts: 213
Location: Chicago

PostPosted: Wed Dec 08, 2004 7:23 am Reply with quote

First thing is to upload EVERY file from "html" folder to the root directory of PHP-Nuke and then patch it from the main page of this site.

2: Rename your admin.php to whatever.php.

In config.php, make sure you have

Code:


$admin_file = "whatever";


NOT
Code:


$admin_file = "whatever.php";


See if that helps.
 
View user's profile Send private message Visit poster's website
mrix







PostPosted: Wed Dec 08, 2004 10:53 am Reply with quote

Hello I did what you sugested but when I go to login I can get into the control panel but it only loads half a page and ses access denied over the top of the backup database icon ...all icon dont work to be honest???
Thanks for your help anyway
p.s I have Sentinal installed ??? could that be a problem?

mind you I one of the patch files I could not upload was index.php because when I did I got a white screen with you cannot access this file directly???
 
DaveTomneyUK
Hangin' Around



Joined: Sep 27, 2003
Posts: 49

PostPosted: Wed Dec 08, 2004 11:29 am Reply with quote

In the backup.php file inside the /admin/modules/ check to see if you have this at the top.

Code:


global $prefix, $db, $admin_file;

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


Maknig sure you have $admin_file inside the global as well as in the file name for the !eregi if statement as shown above.
 
View user's profile Send private message
mrix







PostPosted: Wed Dec 08, 2004 11:40 am Reply with quote

Hi again no I dont have that code there, I did upload the 7.6 patch file from this site though and this is the code I have there

global $prefix, $db, $admin_file;
if (!stristr($_SERVER['SCRIPT_NAME'], "".$admin_file.".php")) { die ("Access Denied"); }

could you tell me what I should have instead
Thanks again
mrix
 
DaveTomneyUK







PostPosted: Wed Dec 08, 2004 3:13 pm Reply with quote

Oh thats ok thats the new code that loads pages faster.
 
PHrEEkie
Subject Matter Expert



Joined: Feb 23, 2004
Posts: 358

PostPosted: Wed Dec 08, 2004 5:18 pm Reply with quote

First thing to do is, don't bother with the sillyness involved in renaming files. Use the time you waste being locked out of your site and/or chasing down a zillion problems with this insanity, and instead take the wife/husband or significant other out for a nice dinner. Tell them the 'net phreek sends his best... Wink

PHrEEk

_________________
PHP - Breaking your legacy scripts one build at a time. 
View user's profile Send private message
Guardian2003
Site Admin



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

PostPosted: Wed Dec 08, 2004 5:41 pm Reply with quote

Cheers ROTFL
 
View user's profile Send private message Send e-mail
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.6

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 ©