'}"> '}"> Script Info ######################################################### ### ### Guestbook - This guestbook was written in Miva for the use of ### SimpleNet customers. It is freeware, but any modifications to this ### code have no guarantees. If you wish to get help with any Miva ### applications, then visit their site at http://www.miva.com. ### ### Release 2.0 December 1998 ### Tim Traver & Michael Sussna ### ### INSTRUCTIONS ############################################################# ### ### You are welcome to modify certain portions of this Miva active document ### which contain material that will appear on your guestbook pages, for ### example the page heading or the entry form. There are areas of the ### admin configuration settings form for modifying general header and footer ### information, for example, so you don't need to change some things ### within this document. ### ### Areas where you are allowed to modify content are marked clearly. They ### begin with "********* YOU MAY MODIFY THE FOLLOWING **********" and end ### with "********* YOU MAY MODIFY THE PRECEDING **********." ### # # # CHANGE LOG # # # # Version 1.1: # # # # Rearranged code replacing ascii 255 (yumlaut) with escaped version. # # # ############################################################################## path name short name SUBROUTINES ############################################## ### Do NOT change unless you know what you are doing, or feel ### adventurous... ### ################################################################## MAIN PROCESSING END OF MAIN PROCESSING Done til input errors fixed ## 1st time in Don't have title yet, but don't care If we just came from ShowProvideIdentity &[title]; ]'}"> View Guestbook ]'}"> Post Entry ]'}"> IMPORTANT NOTE: If db fields have same name as form input fields (e.g. "email"), the input fields get clobbered (thus call db field something like "dbemail," or use the d.fieldname convention). This chunk of htmlscript figures out the date and time of the entry, accounting for the different time zones. You have set the "time_zone" field in the beginning of this script. If not daylight savings, subtract one hour Make this check *after* you do the ampm logic! Make this check *after* you do the ampm logic! ###################################################################### # Convert tags to long form. E.g. becomes <xxx> # # # # This is necessary because Internet Explorer won't display textareas with # # their HTML intact, but rather "executes" it as HTML. So we have to convert # # HTML to harmless display form for display, and then back to active form # # when receiving the textarea as submitted in a form for storage and actual use.# # # ##################################################################### THE IMPORTANCE, TIMING, AND LOCATION OF Y-UMLAUT REPLACEMENT: Y-umlaut, which is ascii 255, means end of file to Miva. If it is encountered at any point by a Miva script, the script terminates immediately, whether that is the desired action or not. If there are any form input fields being input to an invocation of the script, and they are used in macros in the script, e.g. within tags echoing back out the contents of the form field, then if a y-umlaut exists in such a macro'd field, you must use ÿ to replace it with an escaped, safe version, The script will break if there is a function that *physically* follows the occurrence of the macro of the form field containing the y-umlaut, and the function is called before the y-umlaut replacement code has executed. This occurs even if the code that the macro occurs in is not executed. The error concerns the function not being defined. So make sure that y-umlaut replacement occurs, that it occurs as early in processing as reasonable, and that any functions called before it occurs are physically before any macro'd input fields. Of course the replacement code itself, if it is in a called function, must also physically occur before the macro'd input field. ###################################################################### # Convert tags to short form. E.g. <xxx> becomes # # # # This is necessary because Internet Explorer won't display textareas with # # their HTML intact, but rather "executes" it as HTML. So we have to convert # # HTML to harmless display form for display, and then back to active form # # when receiving the textarea as submitted in a form for storage and actual use.# # # ##################################################################### MAIN OUTPUT ######################################################### ### This is where you should customize your script for your html style. ### You can change anything after the tag except the macro ### commands ( &[macro]; ) and the beginning and final statements ### ################################################################## GUESTBOOK SUBMISSION ################################################ ### The HTML in this section is what you see after the user has made an ### entry into your guestbook... ### Only change the html between the and tags... ### It does some error checking, and then will send it back to ### the same screen if it finds errors. ### ################################################################## If a required field is missing Record the data, and print out the response. Write the entry to the database file. &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; ********** YOU MAY MODIFY THE FOLLOWING ********** &[ON];Guestbook&[crlf];&[OFF]; ********** YOU MAY MODIFY THE PRECEDING ********** &[ON];&[crlf];&[OFF]; &[ON];&[header];&[crlf];&[OFF]; ********** YOU MAY MODIFY THE FOLLOWING ********** &[ON];
&[crlf];&[OFF]; &[ON];
Thank you for signing my guestbook!
&[crlf];&[OFF]; &[ON];
Come back and visit us again soon.

&[crlf];&[OFF]; ********** YOU MAY MODIFY THE PRECEDING ********** &[ON];
&[banner_ad];&[footer];&[crlf];&[OFF]; GUESTBOOK ENTRY ###################################################### ### The HTML in this section is for when the user wishes to make an ### entry into your guestbook... ### ################################################################## &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; ********** YOU MAY MODIFY THE FOLLOWING ********** &[ON];Guestbook&[crlf];&[OFF]; ********** YOU MAY MODIFY THE PRECEDING ********** &[ON];&[crlf];&[OFF]; &[ON];&[header];&[crlf];&[OFF]; ********** YOU MAY MODIFY THE FOLLOWING ********** &[ON];

&[crlf];&[OFF]; &[ON];We would like more information in your guestbook entry!!&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];
    &[crlf];&[OFF]; &[ON];
&[crlf];&[OFF]; &[ON];
&[crlf];&[OFF]; ********** YOU MAY MODIFY THE PRECEDING **********
********** YOU MAY MODIFY THE FOLLOWING ********** &[ON];

Sign My Guestbook

&[crlf];&[OFF]; ********** YOU MAY MODIFY THE PRECEDING ********** &[ON];
&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; ********** YOU MAY MODIFY THE FOLLOWING ********** &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];
&[crlf];&[OFF]; &[ON];Your Name&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];
&[crlf];&[OFF]; &[ON];Your E-Mail Address&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];
&[crlf];&[OFF]; &[ON];Your Web Site&[crlf];&[OFF]; &[ON];http://&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];
&[crlf];&[OFF]; &[ON];Your City&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];
&[crlf];&[OFF]; &[ON];Your State or Province&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];
&[crlf];&[OFF]; &[ON];Your Country&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];
&[crlf];&[OFF]; &[ON];Your Comments&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];


&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];
&[crlf];&[OFF]; ********** YOU MAY MODIFY THE PRECEDING ********** &[ON];&[banner_ad];&[footer];&[crlf];&[OFF]; GUESTBOOK VIEWING ################################################### ### The HTML in this section is for when the user wishes to view ### entries in your guestbook... ### Only change the html between the and tags..., but you ### need to leave the entries macro to show the entries... ### ################################################################## &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; ********** YOU MAY MODIFY THE FOLLOWING ********** &[ON];Guestbook&[crlf];&[OFF]; ********** YOU MAY MODIFY THE PRECEDING ********** &[ON];&[crlf];&[OFF]; &[ON];&[header];&[crlf];&[OFF]; ********** YOU MAY MODIFY THE FOLLOWING ********** &[ON];

Welcome to My Guestbook

&[crlf];&[OFF]; &[ON];
&[crlf];&[OFF]; ********** YOU MAY MODIFY THE PRECEDING ********** &[ON];&[entries_heading];&[crlf];&[OFF]; &[ON];&[entries];&[crlf];&[OFF]; &[ON];
&[crlf];&[OFF]; &[ON];&[banner_ad];&[footer];&[crlf];&[OFF]; &[title]; ]'}"> Post Message ]'}"> &[title2]; ]'}"> Omit faq link if not to be shown &[ON];&[general_data_area];&[crlf];&[OFF]; From and to are already filled in if we're coming back in from viewing ######################################################## ## This loop is making a single variable to hold all of the ## ## entries so we can just use the variable in the final ## ## page output to represent the entire set of entries ## ## It is also putting the entries in reverse order. ## ## Be careful if you change this area. ## ## #################################################### ********** YOU MAY MODIFY THE FOLLOWING ********** ' $ &[dbname];.d.dbemail $ '&[crlf];' $ 'Site: http://' $ '&[crlf];' $ &[dbname];.d.dbwebsite $ '&[crlf];' $ '' $ '&[crlf];' $ 'Location:' $ '&[crlf];' $ ' ' $ &[dbname];.d.dbcity $ ', ' $ &[dbname];.d.dbstate $ ', ' $ &[dbname];.d.dbcountry $ '&[crlf];' $ 'Comments:' $ '&[crlf];' $ ' ' $ &[dbname];.d.dbcomment1 $ &[dbname];.d.dbcomment2 $ &[dbname];.d.dbcomment3 $ '&[crlf];' $ '
'}">
********** YOU MAY MODIFY THE PRECEDING **********
&[ON];
&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; Not last page First page &[ON];&[crlf];&[OFF]; Not first page Last page &[ON];&[crlf];&[OFF]; Not first page &[ON];&[crlf];&[OFF]; &[ON];
&[crlf];&[OFF];
GUESTBOOK MAILING ################################################### ### This section is for when you wish to receive the guestbook entry as ### a mail message...(Set the mail variables in the configuration settings page.) ### ################################################################## ********** YOU MAY MODIFY THE FOLLOWING ********** &[ON]; Received an entry from your guestbook. Date : &[OFF];&[ON]; Time : &[OFF];&[ON]; Name : &[OFF];&[ON]; Email : &[OFF];&[ON]; Web Site : http://&[OFF];&[ON]; Location : &[OFF]; &[ON];, &[OFF]; &[ON];, &[OFF];&[ON]; Comments : &[OFF];&[ON]; &[OFF]; ********** YOU MAY MODIFY THE FOLLOWING ********** ********** YOU MAY MODIFY THE FOLLOWING ********** ********** YOU MAY MODIFY THE PRECEDING ********** ################################################################################ # Admin Functions # ############################################################################### Not scrolling Not scrolling &[ON];&[header];&[title]; Administration&[crlf];&[OFF]; &[ON];

&[title]; Administration

&[crlf];&[OFF]; &[ON];

&[crlf];&[OFF]; &[ON];
      &[crlf];&[OFF]; &[ON];
    • Change Configuration Settings&[crlf];&[OFF]; &[ON];
      &[crlf];&[OFF]; &[ON];
    • Remove Entries&[crlf];&[OFF]; &[ON];
      &[crlf];&[OFF]; &[ON];
    • Change User Name or Password&[crlf];&[OFF]; &[ON];
      &[crlf];&[OFF]; &[ON];
    • View &[title];&[crlf];&[OFF]; &[ON];
        &[crlf];&[OFF]; &[ON];
      • &[title];&[crlf];&[OFF]; &[ON];
      &[crlf];&[OFF]; &[ON];
    &[crlf];&[OFF]; &[ON];

&[admin_banner_ad];&[footer];&[crlf];&[OFF];
########################################################################################### SETTINGS FUNCTIONS ########################################################################################### ############################################################################## # Change Installation Settings # # # # This form is used to change Guestbook variables such as the time zone, # # the number of postings to show at a time, and so on. The administrator # # must supply a password after the first time. # # # ############################################################################# &[ON];&[header];&[title2]; - Change Configuration Settings&[crlf];&[OFF]; &[ON];

&[title2]; - Change Settings

&[crlf];&[OFF]; &[ON];
      &[crlf];&[OFF]; &[ON];

      Use this Change Settings form to change configuration variable settings. If you want to&[crlf];&[OFF]; &[ON];see the default settings, click the "Show Defaults" button below.

      &[crlf];&[OFF]; &[ON];This and other Admin functions are available through the main Admin menu.&[crlf];&[OFF]; &[ON];Click here to visit the &[title2]; Main Menu.&[crlf];&[OFF]; &[ON];To view the guestbook, click on &[title];.&[crlf];&[OFF]; &[ON];

      You are allowed to edit the Miva document (guestbook.mv) to modify&[crlf];&[OFF]; &[ON];other information appearing in your guestbook pages. Use a text editor&[crlf];&[OFF]; &[ON];to edit it and read the INSTRUCTIONS at the top of the file.

      &[crlf];&[OFF]; &[ON];
&[crlf];&[OFF]; &[ON];

&[crlf];&[OFF]; &[ON];

&[crlf];&[OFF]; &[ON];

&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];
    &[crlf];&[OFF]; &[ON];
    &[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];
    Entries per Page in GuestbookHow many entries per page?
    Entries per Page in Admin Remove FunctionHow many entries per page?
    Mail to Me?Do you wish to receive the guestbook entry as a mail message?
    Mail toE-mail address of recipient (for mail to me)
    Mail hostHost name (for mail to me)
    Mail fromE-mail address of sender (for mail to me)
    Time ZoneRelative to GMT (e.g. Pacific is -8).
    Application TitleUsed in headings.
    Page HeaderIf you want to supply your own header, do it here.
    Link LineIf you want to supply your own line of links, do it here.
    Page FooterIf you want to supply your own footer, do it here.
&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];
&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];
&[crlf];&[OFF]; &[ON];


&[admin_banner_ad];&[footer];&[crlf];&[OFF];
&[ON];&[header];Remove Entries&[crlf];&[OFF]; &[ON];

Remove Entries from &[title];

&[crlf];&[OFF]; &[ON];
    Select below those entries you wish to remove.&[crlf];&[OFF]; &[ON];

&[crlf];&[OFF]; &[ON];
&[crlf];&[OFF]; &[ON];[ &[title2]; ]&[crlf];&[OFF]; &[ON];

&[crlf];&[OFF]; &[ON];

&[crlf];&[OFF]; &[ON];

&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];
&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF];&[crlf];&[OFF]; &[ON];
Remove?DateTimeAuthorBeginning of Comments
&[crlf];&[OFF]; &[ON];

&[crlf];&[OFF]; &[ON]; &[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];

&[crlf];&[OFF]; &[ON];
&[crlf];&[OFF]; &[ON];[ &[title2]; ]&[crlf];&[OFF]; &[ON];
&[crlf];&[OFF]; &[ON];
&[crlf];&[OFF];
&[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[dbdate];&[crlf];&[OFF]; &[ON];&[dbtime];&[crlf];&[OFF]; &[ON];&[dbname1];&[crlf];&[OFF]; &[ON];&[print_comment];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; ################################################################# # Remove Action # # # # Go through only those database records in the range of the # # entries appearing on the page just displayed. If the entry # # is marked for deletion, remove it. # ################################################################ If checked for removal &[ON];&[header];&[crlf];&[OFF]; &[ON];

Results of &[title]; Entry Removal

&[crlf];&[OFF]; &[ON];
Below is a short summary of what entries were removed.&[crlf];&[OFF]; &[ON];


&[crlf];&[OFF]; &[ON];

Entries Removed:&[crlf];&[OFF]; &[ON];&[w2];&[longspace];&[crlf];&[OFF]; &[ON];

&[crlf];&[OFF]; &[ON];Entries That Could Not Be Deleted:&[crlf];&[OFF]; &[ON];&[w2];&[longspace];&[crlf];&[OFF]; &[ON];

&[crlf];&[OFF]; &[ON];Entries Not Found:&[crlf];&[OFF]; &[ON];&[w2];&[longspace];&[crlf];&[OFF]; &[ON];

&[crlf];&[OFF]; &[ON];


&[crlf];&[OFF]; &[ON];[ Remove Entries ] &[crlf];&[OFF]; &[ON];[ &[title2]; ]&[crlf];&[OFF]; &[ON];

&[crlf];&[OFF]; &[ON];
&[admin_banner_ad];&[footer];&[crlf];&[OFF];
########################################################################## # Change Settings # ######################################################################### Show Defaults ' CIN form_linkline}"> ' CIN form_footer}">
' $ '&[crlf];' }">
' $ '&[crlf];' $ links $ '&[crlf];' $ '
' $ '&[crlf];' $ '
' $ '&[crlf];' }">
Take an incoming string that should contain an e-mail address or addresses and format it for use with strict address format checking. First, convert tab to space, just in case they got one in there somehow. Be super paranoid, smash extra spaces Now convert single spaces to commas Just in case something weird happened, turn double commas into single Now we take the comma delimited list and make sure every item is valid and is enclosed in angle brackets. Strip the trailing comma for neatness' sake ########################################################################################### IDENTITY FUNCTIONS ########################################################################################### &[ON];&[header];&[crlf];&[OFF]; &[ON];

&[title]; Admin Identity Changed

&[crlf];&[OFF]; &[ON];
    Your Identity for &[title]; Admin has been changed! Results are below:


    &[crlf];&[OFF]; &[ON];User Name: &[new_usrname];

    &[crlf];&[OFF]; &[ON];Password: &[passwd_1];

    &[crlf];&[OFF]; &[ON];


&[crlf];&[OFF]; &[ON];

    Do not forget these, since they are now encoded in a file and not readable!.

&[crlf];&[OFF]; &[ON];
[ &[title2]; ]
&[crlf];&[OFF]; &[ON];
&[admin_banner_ad];&[footer];&[crlf];&[OFF];
######################################################### # Subroutine used for Welcome name/password checking only # ######################################################## ############################################################################ # Provide Username and Password # # To use admin, user must provide name and password matching # # stored values. # ################################################################ &[ON];&[header];Welcome to Guestbook Administration!&[crlf];&[OFF]; &[ON];

Welcome to Guestbook Administration!

&[crlf];&[OFF]; &[ON];
Please provide your user name and password below. All admin functions&[crlf];&[OFF]; &[ON];require name and password.&[crlf];&[OFF]; &[ON];


&[crlf];&[OFF]; &[ON];

&[crlf];&[OFF]; &[ON];

&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];
&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];
Username:
Password:
&[crlf];&[OFF]; &[ON];

&[crlf];&[OFF];
######################################################################### # Provide Username and Password # # The first time in, the admin must set up his or her password. # ######################################################################### &[ON];&[header];Welcome to Guestbook Administration!&[crlf];&[OFF]; &[ON];

Welcome to Guestbook Administration!

&[crlf];&[OFF]; &[ON];
    Fill out the form below to provide your user name and password.&[crlf];&[OFF]; &[ON];Please make a note of these values. All admin functions require name and password.&[crlf];&[OFF]; &[ON];

    To use Guestbook Admin after this, make sure you bookmark this page now.&[crlf];&[OFF]; &[ON];


    &[crlf];&[OFF]; &[ON];

&[crlf];&[OFF]; &[ON];

&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];
&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];
Username:
Password:
Re-type Password:
&[crlf];&[OFF]; &[ON];


&[admin_banner_ad];&[footer];&[crlf];&[OFF];
########################################################################## # Change Identity # # By calling this section of the script, the admin can change his or # # her password. # ######################################################################### &[ON];&[header];Change &[title]; Admin User Name or Password&[crlf];&[OFF]; &[ON];

Change &[title]; Admin
User Name or Password

&[crlf];&[OFF]; &[ON];
    Fill out the form below to change your user name or password.&[crlf];&[OFF]; &[ON];If new user name is left blank, your old one will be assumed.&[crlf];&[OFF]; &[ON];

&[crlf];&[OFF]; &[ON];
&[crlf];&[OFF]; &[ON];

&[crlf];&[OFF]; &[ON];

&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];
&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];&[crlf];&[OFF]; &[ON];
User Name:
Password:
New User Name:
New Password:
Re-type New Password:
&[crlf];&[OFF]; &[ON];

&[crlf];&[OFF]; &[ON];
&[crlf];&[OFF]; &[ON];
[ &[title2]; ]
&[crlf];&[OFF];
If admin forgot password, we delete just passwd file, they get welcome page, they fill in info, should get admin menu --- this won't happen if action still set to "provide_identity", so clear it now. If changed or not, new_usrname has curr val &[ON];

You entered an invalid password.&[crlf];&[OFF]; &[ON];Please try again.

&[crlf];&[OFF]; &[ON];

You entered an invalid user name.&[crlf];&[OFF]; &[ON];Please try again.

&[crlf];&[OFF]; &[ON];

Blanks are not permitted in the user name.&[crlf];&[OFF]; &[ON];Please try again.

&[crlf];&[OFF]; &[ON];

Blanks are not permitted in the password.&[crlf];&[OFF]; &[ON];Please try again.

&[crlf];&[OFF]; &[ON];

You did not enter a new user name or password.&[crlf];&[OFF]; &[ON];Please try again.

&[crlf];&[OFF]; &[ON];

You did not enter a password. Please try again.&[crlf];&[OFF]; &[ON];

&[crlf];&[OFF]; &[ON];

Could not open the password file for reading!&[crlf];&[OFF]; &[ON];Check permissions and try again.

&[crlf];&[OFF]; &[ON];

The passwords that you typed in for your new password&[crlf];&[OFF]; &[ON];were not the same. You may have mistyped, please try again.

&[crlf];&[OFF]; &[ON];

The two passwords you typed were not the same.&[crlf];&[OFF]; &[ON];Please try again.

&[crlf];&[OFF]; &[ON];

Could not open the password file for writing!&[crlf];&[OFF]; &[ON];Password not changed!

&[crlf];&[OFF]; &[ON];

You did not fill in your user name.&[crlf];&[OFF]; &[ON];

&[crlf];&[OFF]; &[ON];

You must fill in the user name that you want&[crlf];&[OFF]; &[ON];to use for administration.

&[crlf];&[OFF]; &[ON];

&[mailto_result];&[crlf];&[OFF]; &[ON];

&[crlf];&[OFF]; &[ON];

&[mailfrom_result];&[crlf];&[OFF]; &[ON];

&[crlf];&[OFF]; &[ON];


&[admin_banner_ad];&[footer];&[crlf];&[OFF];
######################################################################### # First time in, show welcome and continue button. # ######################################################################### &[ON];&[header];Welcome to Guestbook Administration!&[crlf];&[OFF]; &[ON];

Welcome to Guestbook Administration!

&[crlf];&[OFF]; &[ON];
&[crlf];&[OFF]; &[ON];



&[crlf];&[OFF]; &[ON];
&[crlf];&[OFF]; &[ON];
&[admin_banner_ad];&[footer];&[crlf];&[OFF];