Page 1 of 1

Quick and dirty Superuser functionality

Posted: Sat 27. Jun 2009, 12:17
by Oliver Georgi
Hey folks,

this is a really dirty solution but it works well and should be a fine quick hack to let users work with admin rights but not edit admin section without special superuser check.

Unzip the attached file
navi_text.inc.php.zip
(1021 Bytes) Downloaded 730 times
and replace navi_text.inc.php at include/inc_lib/ (maybe make a backup of original navi_text.inc.php).

Inside that file you can find a new "hidden" word - set it

Code: Select all

$phpwcms['superuser_checkword'] = 'muschi';
to whatever you like and keep it in mind.

By default the you will never see the admin menu until you type in the superuser URI like that:
mysite.com/phpwcms.php?superuser=muschi

See the images:
2009-06-27_113522.png
2009-06-27_113522.png (3.53 KiB) Viewed 18570 times
2009-06-27_113541.png
2009-06-27_113541.png (2.89 KiB) Viewed 18570 times
2009-06-27_113558.png
2009-06-27_113558.png (4.05 KiB) Viewed 18570 times
Then the superuser is registered in session and admin menu will be available as long as your session is active.

Oliver

Re: Quick and dirty Superuser functionality

Posted: Mon 18. Dec 2017, 17:56
by Oliver Georgi
Which link do you mean?