Programming Advice : Adding Security features..
Posted: Fri Jul 29, 2005 7:11 pm
I'm about to add security features to some scripts i've written and was wondering what 'the best way' to do this would. By that, is there a standard programming way of doing it.
Aliitle background, currently my app allows me to view, edit, delete and print code from the DB.
I wish to lock this down so only admin can edit and delete whilst other users have only view/print access.
So, do I leave the code as is and just add "if user == admin display this else display that".
Or do you create 2 pages with very similar code one for Admin the other for Users?
Any pointers or websites to rewad would be FAB!
Cheers, Will.
Aliitle background, currently my app allows me to view, edit, delete and print code from the DB.
I wish to lock this down so only admin can edit and delete whilst other users have only view/print access.
So, do I leave the code as is and just add "if user == admin display this else display that".
Or do you create 2 pages with very similar code one for Admin the other for Users?
Any pointers or websites to rewad would be FAB!
Cheers, Will.