Zubrag.com :: Forum

Programmers Lounge => PHP / MySql / Smarty Questions => Topic started by: ilixsuda on November 04, 2012, 04:26:06 PM



Title: Zubrag - password-protect - easy to allow only certain users to a specific page?
Post by: ilixsuda on November 04, 2012, 04:26:06 PM
Hi Zubrag/all,

Great script, thank you for the password-protect. I was just wondering if it'd be easy add some code to allow users that are designated as admins to access a restricted page? I.e. all users have access to index.php, but admins can also access admins.php to edit a database? Non-admins get booted back to index.php. I'm currently only allowing login by password (username is irrelevant), so is it possible without vetting the username?

I'm a script kiddie, so don't want to throw spanners in the works hacking my way through perfectly good code.

many thanks for any help you can give