One easy way to achieve this is to create a second admin folder, say /admin2/ starting with a copy of the /admin/ folder but then deleting any scripts associated with the tools that you don't want to have access to from the secondary login.
Further, edit the new admin_menu.php and remove any links to the tools that you have deleted and then edit login.php and look for the following code at line 23:
header("Location: ".$config_baseHREF."admin/");
...and REPLACE with:
header("Location: ".$config_baseHREF."admin2/");
If you don't want the secondary admin area to have feed administration, you can replace index.php with just:
Finally, to enable separate passwords for each admin area, in config.advanced.php where you have the normal admin password set, for example at line 2 using "password1" as the password:
$config_adminPassword = "password1";
...REPLACE with:
if (strpos($_SERVER["REQUEST_URI"],"admin2/")!==FALSE)
{
// password for secondary admin area /admin2/
$config_adminPassword = "password2";
}
else
{
// password for original admin area /admin/
$config_adminPassword = "password1";
}
Hi Convergence,
One easy way to achieve this is to create a second admin folder, say /admin2/ starting with a copy of the /admin/ folder but then deleting any scripts associated with the tools that you don't want to have access to from the secondary login.
Further, edit the new admin_menu.php and remove any links to the tools that you have deleted and then edit login.php and look for the following code at line 23:
header("Location: ".$config_baseHREF."admin/");
...and REPLACE with:
header("Location: ".$config_baseHREF."admin2/");
If you don't want the secondary admin area to have feed administration, you can replace index.php with just:
<?php
require("../includes/common.php");
$admin_checkPassword = TRUE;
require("../includes/admin.php");
require("admin_header.php");
require("admin_menu.php");
require("admin_footer.php");
?>
Finally, to enable separate passwords for each admin area, in config.advanced.php where you have the normal admin password set, for example at line 2 using "password1" as the password:
$config_adminPassword = "password1";
...REPLACE with:
if (strpos($_SERVER["REQUEST_URI"],"admin2/")!==FALSE)
{
// password for secondary admin area /admin2/
$config_adminPassword = "password2";
}
else
{
// password for original admin area /admin/
$config_adminPassword = "password1";
}
Cheers,
David.
--
PriceTapestry.com