Winestore
Use
Use the application
View Code
Main page
index.php (main page)
templates/index.tpl (main page template)
Authorisation code
includes/authenticate.inc (authentication functions)
auth/login.php (login form)
auth/logincheck.php (checks a login)
auth/logout.php (logout script)
auth/password.php (password change form)
templates/passwordreceipt.tpl (password change receipt)
auth/changepassword.php (processes password change)
auth/receipt.php (password change receipt)
Shopping Cart
cart/addtocart.php (adds an item to the cart)
cart/empty.cart (empties the cart)
cart/showcart.php (show the cart contents)
templates/showcart.tpl (cart template)
cart/updatecart.php (update cart quantities)
Customer
cust/details.php (show customer details)
cust/receipt.php (customer receipt)
templates/custreceipt.tpl (customer receipt template)
cust/validate.php (customer validation)
Order
order/order-step1.php (enter credit card)
order/order-step2.php (validate credit card)
order/order-step3.php (process purchase)
order/order-step4.php (send email receipt)
templates/email.tpl (email receipt template)
order/order-step5.php (order receipt page)
templates/orderreceipt.tpl (order receipt template)
Search
search/searchform.php (Search parameters form)
search/search.php (wine browser)
templates/search.tpl (wine browser template)
General-purpose
includes/custHandler.inc (custom error handler)
templates/winestore.tpl (skeleton template)
templates/details.tpl (general purpose form template)
includes/template.inc (template classes)
includes/validate.inc (form validation)
includes/winestore.inc (general purpose functions)
source.php (source viewer)
templates/source.tpl (source viewer template)
includes/db.inc (database settings -- confidential)