Specifications

Building a Content Management System
C
HAPTER 26
26
CONTENT
MANAGEMENT
SYSTEMS
603
FIGURE 26.5
The story management page for writers.
These screens are not formatted inside the header and footer files, although they could be if
desired. Because only the writers and editor will use these scripts, in our example we have
chosen only to format as much as needed to create a usable system. The code for stories.php
is shown in Listing 26.5.
LISTING 26.5 stories.php Is the Interface for Writers to Manage Their Stories
<?
include (“include_fns.php”);
session_register(“auth_user”);
if (!check_auth_user()) {
?>
<FORM ACTION=”login.php” METHOD=POST>
<TABLE BORDER=0>
<TR>
<TD>Username</TD>
<TD><INPUT SIZE=16 NAME=”username”></TD>
</TR>
<TR>
<TD>Password</TD>
<TD><INPUT SIZE=16 TYPE=”PASSWORD” NAME=”password”></TD>
32 7842 ch26 3/6/01 3:36 PM Page 603