Ok Can anyone see a problem with this code - particularly the header parts. the else statement takes the user to another location buyt
I can see one way around this as it probably isnt working because of the confusing headers.
can someone help me modify the 'else' statement to send the users to the following location
http://www.soi.city.ac.uk/organisation/ ... index.html
with a message saying You do not have admin rights please contact the administrator at top of the page.
php:
Code: Select all
<?php
include "perm.inc";
if ( permcheck($REMOTE_USER,$ADMIN_USERS)) {
//Do nothing and carry on rendering the page
}
else {
header("Location: https://wwws.soi.city.ac.uk/intranet/plo/test/");
exit;
}
?>