On Oct 14, 2008, at 7:24 PM, Jochem Maas wrote:
Colin Guthrie schreef:
Jochem Maas wrote:
Jason Pruim schreef:
if(isset($_SESSION['userInfo']['loggedin']) &&
$_SESSION['userInfo']['loggedin'] == TRUE) {
Or, seeing as I'm a stickler for compact code:
me too, I also like to be able to change stuff at a single point
in the code so I usually wrap this kind of thing inside a function/
class
where I don't have to look at the length of the LOC that does the
actual work :-)
I probably should have mentioned that this was in a function to do the
heavy lifting for authentication :) I just didn't paste the whole
function since 90% of it worked just fine :)
Now I just need to get better and separating presentation and code :)
--
Jason Pruim
Raoset Inc.
Technology Manager
MQC Specialist
11287 James St
Holland, MI 49424
www.raoset.com
japruim@xxxxxxxxxx
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php