Page 2 of 2

Posted: Thu Sep 18, 2003 1:37 pm
by m3rajk
actually all access codes and groups are in one file that used as an include. if i want to add another access level i change one file.


also using the sql UNIX_TIMESTAMP was able to fix it.

Posted: Thu Sep 18, 2003 6:30 pm
by McGruff
Glad you fixed your problem. Sorry I wasn't addressing that directly but I thought there were other, more important things to look at.
m3rajk wrote:actually all access codes and groups are in one file that used as an include. if i want to add another access level i change one file.
OK, but lines like this:

Code: Select all

<?php
elseif($fal==$pmember){ # resticted to paying members 
?>
..assign individual privileges in php scripts (ie the "view" privilege for this type of item). Hence the code is being used to describe part of the data model - personally I'd do that in the database.

In the same way that it's best to keep html tags out of scripts, I think it's best to separate out the data model into the db.
?>