Web site - 454 Part III: Developing E-mail Solutions . If

454 Part III: Developing E-mail Solutions . If the update operation is successful, the authorized and denied IPs are added to the database using the addAccessIPs() and addDeniedIPs() methods of the AccessControl class after deleting the previous IPs. And then a successful update message is shown to the user. deleteForm() This method is used for deleting forms. This works as follows: . First, it checks whether the form ID has been supplied or not. If not, it shows an alert message and returns null. . Then a new Form object, $frmObj, is created and the deleteForm() method of $frmObj is used to delete the form. . If the deletion succeeds, the AccessControl class is used to delete the related IPs from the authorized and banned tables for the form. . At the end, a status message is shown depending on the outcome of the deletion operation. Creating a Tell-a-Friend Message Manager Application This application, taf_msg_mngr.php, is responsible for managing all messages for the system. This application is included on the CD-ROM in the ch13/apps directory. It implements the following functionality: . Allows any user to add a new message. . Allows users from authenticated IP addresses to delete or modify the selected message. This application has the following methods. run() When the application is run, this method is called. It does the following: . First, it retrieves the $cmd value from the user request. . Depending on the $cmd value, different methods are called.

Leave a Reply