Web server logs - 312 Part II: Developing Intranet Solutions By changing
312 Part II: Developing Intranet Solutions By changing the following configuration parameters in contact.conf, you can modify the directory structure to fit your site requirements: $APP_FRAMEWORK_DIR=$_SERVER[ DOCUMENT_ROOT ] . /framework ; $PEAR =$_SERVER[ DOCUMENT_ROOT ] . /pear ; $PHPLIB =$_SERVER[ DOCUMENT_ROOT ] . /phplib ; $ROOT_PATH = $_SERVER[ DOCUMENT_ROOT ]; $REL_ROOT_PATH = /contact_mngr ; $REL_APP_PATH = $REL_ROOT_PATH . /apps ; $REL_PHOTO_DIR = /photos ; $PHOTO_DIR = $ROOT_PATH . $REL_PHOTO_DIR; $TEMPLATE_DIR = $ROOT_PATH . $REL_APP_PATH . /templates ; $THEME_TEMPLATE_DIR = $TEMPLATE_DIR . /themes ; $CLASS_DIR = $ROOT_PATH . $REL_APP_PATH . /class ; $REL_TEMPLATE_DIR = $REL_APP_PATH . /templates/ ; The messages file The messages displayed by the contact manager applications are stored in the ch9/apps/contact.messages file in the CDROM. You can change the messages using a text editor. The errors file The error messages displayed by the contact manager applications are stored in the ch9/apps/contact.errors file in the CDROM. You can modify the error messages using a text editor. The Application Templates The HTML interface templates needed for the contact manager system applications are included on the CD-ROM. These templates contain various template tags to display necessary information dynamically. They are named in the contact.conf file. These templates are discussed in Table 9-3. TABLE 9-3 HTML TEMPLATES Configuration Variable Template File Purpose $STATUS_TEMPLATE contact_status.html Shows status message. $CONTACT_HOME_TEMPLATE contact_home.html Contact index template.