Re: Re: 1 last error to fix before the application is done!
| From: | Jason Pruim | Date: | Wed, 15 Oct 2008 10:58:50 +0000 |
| Subject: | Re: Re: 1 last error to fix before the application is done! | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-281945@lists.php.net to get a copy of this message | ||
On Oct 14, 2008, at 7:24 PM, Jochem Maas wrote:
Colin Guthrie schreef: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@raoset.comJochem Maas wrote: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 :-)Jason Pruim schreef: if(isset($_SESSION['userInfo']['loggedin']) && $_SESSION['userInfo']['loggedin'] == TRUE) {Or, seeing as I'm a stickler for compact code: