Quick and dirty Superuser functionality

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
User avatar
Oliver Georgi
Site Admin
Posts: 9938
Joined: Fri 3. Oct 2003, 22:22
Location: Dessau-Roßlau
Contact:

Quick and dirty Superuser functionality

Post 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 861 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 29933 times
2009-06-27_113541.png
2009-06-27_113541.png (2.89 KiB) Viewed 29933 times
2009-06-27_113558.png
2009-06-27_113558.png (4.05 KiB) Viewed 29933 times
Then the superuser is registered in session and admin menu will be available as long as your session is active.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn
User avatar
Oliver Georgi
Site Admin
Posts: 9938
Joined: Fri 3. Oct 2003, 22:22
Location: Dessau-Roßlau
Contact:

Re: Quick and dirty Superuser functionality

Post by Oliver Georgi »

Which link do you mean?
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn
Post Reply