Set permissions for a page to a custom php login
Permalink
On our current website, when a customer wants to log into support, they click the "Support" link and that opens up a dialog for customerid/password. This is controlled by some php just before the beginning of the html:
<?php
global $userok;
include 'scripts/checkUser.php';
if($userok!=1)
return;
?>
<html>
With concrete5, we tossed around the idea of creating individual logins for each customer, but don't really want to do that. Right now the login is per company, not per individual. So we'd really rather use what we already have.
I can see that I can change the permissions for a given page so that it won't show up unless someone logs in and is part of a group, but how can I instead just use the block above? How do I get this php block inserted for the page?
Any help would be appreciated!
Thanks,
Heather
<?php
global $userok;
include 'scripts/checkUser.php';
if($userok!=1)
return;
?>
<html>
With concrete5, we tossed around the idea of creating individual logins for each customer, but don't really want to do that. Right now the login is per company, not per individual. So we'd really rather use what we already have.
I can see that I can change the permissions for a given page so that it won't show up unless someone logs in and is part of a group, but how can I instead just use the block above? How do I get this php block inserted for the page?
Any help would be appreciated!
Thanks,
Heather