Author |
Message |
mrix
Client

Joined: Dec 04, 2004
Posts: 757
|
Posted:
Wed Dec 08, 2004 6:42 am |
|
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 |
|
|
|
 |
Mesum
Useless

Joined: Aug 23, 2002
Posts: 213
Location: Chicago
|
Posted:
Wed Dec 08, 2004 7:23 am |
|
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. |
|
|
|
 |
mrix

|
Posted:
Wed Dec 08, 2004 10:53 am |
|
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
|
Posted:
Wed Dec 08, 2004 11:29 am |
|
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. |
|
|
|
 |
mrix

|
Posted:
Wed Dec 08, 2004 11:40 am |
|
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

|
Posted:
Wed Dec 08, 2004 3:13 pm |
|
Oh thats ok thats the new code that loads pages faster. |
|
|
|
 |
PHrEEkie
Subject Matter Expert

Joined: Feb 23, 2004
Posts: 358
|
Posted:
Wed Dec 08, 2004 5:18 pm |
|
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...
PHrEEk |
_________________ PHP - Breaking your legacy scripts one build at a time. |
|
|
 |
Guardian2003
Site Admin

Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam
|
Posted:
Wed Dec 08, 2004 5:41 pm |
|
|
|
 |
|