02.06.2013 Views

Pro PHP and jQuery by Jason Lengstorf.pdf - Computer Science ...

Pro PHP and jQuery by Jason Lengstorf.pdf - Computer Science ...

Pro PHP and jQuery by Jason Lengstorf.pdf - Computer Science ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

include_once 'assets/common/footer.inc.php';<br />

?><br />

CHAPTER 6 ■ PASSWORD PROTECTION SENSITIVE ACTIONS AND AREAS<br />

Now save this code <strong>and</strong> try to directly access http://localhost/confirmdelete.php while logged out.<br />

As expected, you’ll be redirected to http://localhost/ instead.<br />

Summary<br />

In this chapter, you learned how to add user authorization to your calendar app, which means only<br />

authorized users can now make modifications to the calendar. You learned how to create the Admin<br />

class, check login credentials, display admin tools to admins only, <strong>and</strong> limit access to admin pages.<br />

In the next chapter, you’ll start integrating <strong>jQuery</strong> into the application to progressively enhance the user<br />

experience.<br />

231

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!