Prev | Current Page 383 | Next

Emilian Balanescu and Cristian Darie

"Beginning PHP and MySQL E-Commerce: From Novice to Professional, Second Edition"

This method isn??™t as flexible as using the database, but it??™s fast and easy to implement. When
storing the username and password data, you can choose to store the password either in clear
text or as hashed text with a hashing algorithm such as MD5 or SHA-1.
In the following exercise, you??™ll simply store the password in clear text, but it??™s good to know
you have other options as well. You??™ll learn more about hashing in Chapter 16.
Exercise: Implementing the Skeleton of the Admin Page
1. Modify the presentation/templates/first_page_contents.tpl file to add a link to the administration
page. Note that adding this link is optional, as it only helps with easier access to the page while developing
the site. If you decide not to add the link, skip this step and the next one.
{* first_page_contents.tpl *}
{load_presentation_object filename="first_page_contents" assign="obj"}


We hope you have fun developing TShirtShop, the e-commerce store from
Beginning PHP and MySQL E-Commerce: From Novice to Professional!



We have the largest collection of t-shirts with postal stamps on Earth!
Browse our departments and categories to find your favorite!


Access the admin page.


{include file="products_list.tpl"}
2. Create a new file named first_page_contents.


Pages:
371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395