Re: Re: 1 last error to fix before the application is done!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux