2010-08-08, 00:46:47
While developing a site (e.g. in localhost, before going live) it can be annoying having to log in again when your session expires.
This patch gives you anonymous access to the admin panel, no login.
** USE WITH CARE!! **
(not for public sites)
Edit admin/inc/cookie_funcions.php, and look for this (around line 50):
Just below (before the "if..." line) insert this:
If you want to have to login again, just remove that line from the file.
This patch gives you anonymous access to the admin panel, no login.
** USE WITH CARE!! **
(not for public sites)
Edit admin/inc/cookie_funcions.php, and look for this (around line 50):
Code:
function cookie_check($cookie_name=FALSE) {
Just below (before the "if..." line) insert this:
Code:
return TRUE; break; // NO LOGIN!!
If you want to have to login again, just remove that line from the file.