Table 26.1. Files in the Content Management Application
|
Name |
Type |
Description |
|
create_database.sql |
SQL |
SQL to set up the content database and some sample data |
|
include_fns.php |
Functions |
Collection of include files for this application
|
|
db_fns.php |
Functions |
Collection of functions for connecting to content database
|
|
select_fns.php |
Functions |
Collection of functions to aid creation of SELECT lists
|
|
user_auth_fns.php |
Functions |
Collection of functions for authenticating users
|
|
header.php |
Template |
Shown at the top of every content page
|
|
footer.php |
Template |
Shown at the bottom of every content page |
|
logo.gif |
Image |
The logo file displayed in header.php |
|
headlines.php |
Application |
Shows the most recent headline from each page of the site |
|
page.php |
Application |
Lists the headlines and story text for a particular page |
|
resize_image.php |
Application |
Resizes an image on-the-fly for headlines.php |
|
search_form.php |
Application |
Form to enter keywords for searching the site content |
|
search.php |
Application |
Displays headlines of content matching keyword criteria |
|
login.php |
Application |
Authenticates a user's password and logs her in to the system |
|
logout.php |
Application |
Logs a user out of the system |
|
stories.php |
Application |
Lists stories that the logged-in user has written with an option to add, modify, or delete stories |
|
story.php |
Application |
The story detail screen for editing or adding a new story |
|
story_submit.php |
Application |
Adds new story or commits changes from data entered in story.php |
|
delete_story.php |
Application |
Processes story delete request from stories.php |
|
keywords.php |
Application |
Lists keywords for a story with option to add or delete keywords |
|
keyword_add.php |
Application |
Processes keyword add request from
keywords.php |
|
keyword_delete.php |
Application |
Processes keyword delete request from keywords.php
|
|
publish.php
|
Application |
Editor's list of stories showing which ones are published with an option to toggle each one's status |
|
publish_story.php |
Application |
Processes a publish request from publish.php
|
|
unpublish_story.php |
Application |
Processes an unpublish request from publish.php |