+------------------+ | Model files: PHP | +------------------+ Location: /PhotoSite/model/php Filename: connect.php ----------------------- Purpose: Connect to the database and establish a database handler Filename: userFunctions.php ----------------------------- Purpose: Aggregate all user functions focused on login and registration Features: 1) Functions to validate usernames, usernames/passwords 2) Function to insert new users into photo_users table 3) Uses SHA-1 encryption and salt to generate passwords Filename: photoFunctions.php ------------------------------ Purpose: Aggregate all DB functions related to photos Features: 1) Function to insert a photo, which must perform the insert, then use the new file_id to insert any hashtag records associated with that photo. 2) Registration of here-to-fore unseen tags into photo_tags 3) ...and many more! Filename: tagFunctions.php ---------------------------- Purpose: Aggregate all DB functions related to tags Features: 1) Performs a JSON encode of the results from the database queries