WPS

Contents - Part II

BACKHOMENEXT
MENU
-

Part I contains chapters 1 through 9.
Part II contains chapters 10 through 20.

10 * 11 * 12 * 13 * 14 * 15 * 16 * 17 * 18 * 19 * 20 * TOP
-

Chapter 10: DNS Administration

Caught in a BIND?

The InterNIC: Not Exactly Old Faithful

Solution: A DNS Administration Application

  • DNS Administration Requirements
  • Implementation Approaches
    • E-Mail domain action request and parser
    • HTML forms-based DNS tracker database
    • The innards

Mail-Order Domains: parse.in.www.mail.pl

  • The Domain Registration Form: domreg.form
  • The New DNS Form Template: new.dns.form
  • Common Variables for parse.in.www.mail.pl
  • Parsing the Mail: Headers and Contents
  • Making Everything Consistent
  • Processing the NIC's Reply
  • Processing a New Request

The User Interface: dns_lines.pl

  • The Necessities
  • Bring on the Form
    • Display the domains
    • Bringing it all home

My Own Private InterNIC: dns_edit.pl

  • The Standard Fare
  • Grabbing the Form Data
  • Taming named
  • Processing a Domain Request
  • Checking the Request
  • The Main Body
    • Mailing the domain registration form
    • Register a domain
    • View domain
    • Completed Domain
    • Failed domain registration

Making the Request Known: dns_action.pl

  • Even More Variables
  • Working with the Web Variables
  • Sending the Mail to the NIC

Installing the DNS Administration Application

  • The DNS Data Directories
  • Putting Everything in Its Place
  • Calling the Scripts

Using the CGI

DNS Extensions

10 * 11 * 12 * 13 * 14 * 15 * 16 * 17 * 18 * 19 * 20 * TOP
-

Chapter 11: A CGI-Based Fax Viewer

Through Rain, Sleet, and Line Noise

  • Everybody’s Doing It . . . With Fax Modems
  • Benefits of Computer-Based Faxing

Faxes and the Web

  • Why Webify a Fax System?
  • What We’ll Cover

Specifications for the Fax Viewer

  • The Fax Receiver
  • The Fax Translator
    • A prime candidate for a script
  • The Fax Administration Screen
    • A choice blend of HTML and Perl
  • The Admin Back-End
    • You guessed it: HTML and Perl again!

Receiving Faxes: mgetty

Translating the Faxes: g3togif.pl

  • g3topbm
  • pnmtops
  • Ghostscript (gs)
  • Defining Constants
  • Listing Fax Files
  • Getting Rid of the Rabble
  • The Conversion Experience
  • Post-Conversion Cleanup

The Fax Administration Screen: get_fax.pl

  • The Startup Variables and Constants
  • Reading the Fax Directory
  • The HTML Form

The Admin Screen Back-End: view_fax.pl

  • Things Required and Optional
  • Parsing Form Data
  • Deleting Faxes
  • Viewing Faxes
  • Viewing Thumbnails

Installing the Fax Viewer

  • Our CGI Scripts
    • Calling g3togif.pl
    • get_fax.pl and view_fax.pl
    • The GIF file directory
  • The Third-Party Utilities

Future Directions for the Fax Viewer

  • A Print Option
  • A Fax Forwarding Option
  • An E-Mail Option

10 * 11 * 12 * 13 * 14 * 15 * 16 * 17 * 18 * 19 * 20 * TOP
-

Chapter 12: Building a Better Interface: Majordomo Administration Via the Web

The Case for a Facelift

...And the Web Shall Inherit the Earth

Pearls Before Perls

Maitre-d: Design Goals

Pre-Code Blues

Tiptoe Through the Code

  • Preamble
    • Initialization and security
    • POST or GET?
  • A simple menu and a complex login
    • Majordomo Owner Commands
    • Disabling lists
    • Generating a new list in Majordomo
    • Also Known as aliases
  • List Administrator Tasks
    • An informal contest
    • Edit list configuration
    • Writing changes to the configuration file
    • No more forms!
    • Head of the class
    • The seventh wonder of the HTML world
    • Committing the configuration file to disk
    • Bits and pieces
  • Concluding Remarks

10 * 11 * 12 * 13 * 14 * 15 * 16 * 17 * 18 * 19 * 20 * TOP
-

Chapter 13: Web-Based Calendaring and Scheduling

Using the Web’s Availability

Rally ‘Round the Calendar

Solution: The Web-Based Calendar

  • Designing a Web-Based Calendar
  • The Roles of the Game
  • Organizing the Data
  • Situating End-User and Administrative Elements
  • Modeling the Data Flows
  • Picking Up the Pieces
    • cal.pl
    • request_event.pl
    • cal2.pl
    • caladmin.pl
    • create_event.pl
    • notify.pl
  • Installing the Calendar System
  • The Calendar Suggestion Box

Summary

10 * 11 * 12 * 13 * 14 * 15 * 16 * 17 * 18 * 19 * 20 * TOP
-

Chapter 14: The Online HTML Editor

Web Introspection

  • Important Considerations
  • Security

Developing the Editor

  • Setup and Initialization
  • Debugging Tools
  • Determining the Script’s Mode
  • Supplying the Editor Interface
  • Extracting Data and Modifying the Original File
  • This Old Home Page
  • Extending the Editor
    • Advanced parsing
    • Preferences
    • Access to multiple files

Summary

10 * 11 * 12 * 13 * 14 * 15 * 16 * 17 * 18 * 19 * 20 * TOP
-

Chapter 15: Web Commerce Options

Is the Net Zoned Commercial?

  • Web Commerce: A Hypermall or Just Hype?
    • Hasn’t this been done before?
    • One world, one Net
    • So why hasn’t it caught on?
    • The security question
  • Implementing Commerce in Your Web Development
    • Secure communications
    • A trusted third party

Secure Communications

  • Ensuring Secure and Reliable Communications
    • Authentication
    • Encryption
    • Integrity
  • So What Is Public Key Cryptography?
    • Secret key cryptography and DES
  • The RSA Public Key Cryptosystem (PKC)
    • How the RSA PKC works

Secure Hypertext Transfer Protocol (S-HTTP)

  • The Design of S-HTTP
    • Message-based security
    • Encryption, authentication, and integrity support
    • S-HTTP implementation as an end user
    • S-HTTP implementation as a Web developer
  • S-HTTP Web Servers and Browsers
    • Secure NCSA httpd and Mosaic: Members only!
    • Open Market’s Secure WebServer
    • CompuServe’s S-HTTP offerings

The Secure Sockets Layer (SSL) Protocol

  • The Design of SSL
    • Connection-based security
    • Encryption, authentication, and integrity support
    • Implementing SSL
  • SSL Web Servers and Browsers
    • Netscape’s Commerce Server and Navigator
    • SSLeay: A (sort of) free implementation of SSL
    • Apache-SSL

Which Protocol Should You Use?

  • Speed: The One Disadvantage Both Have
  • So Which Protocol Is Winning?

Trusted Third-Party Web Commerce

  • How Does First Virtual Do It?
    • Setting up an account
    • Conducting a sale
  • Web Commerce Programming Using First Virtual
    • First Virtual’s Green Commerce Model of Internet financial transactions
    • First Virtual’s API
    • A sample commerce CGI
    • Benefits and drawbacks of trusted third-party systems

Secure Communications Versus Trusted Third-Party Commerce

It Doesn’t End Here

10 * 11 * 12 * 13 * 14 * 15 * 16 * 17 * 18 * 19 * 20 * TOP
-

Chapter 16: A Web-Based UNIX Account Manager

UNIX Account Management: A Challenge for Newbies and Gurus Alike

  • "Pay No Attention to the Man Behind the Curtain!": UNIX Wizardry Revealed
  • What We’re Dealing with

Current User Management Tools Versus a Web-Based Tool

  • Command-Line Interactive Tools
    • Limitations of adduser
  • Menu-Driven Terminal Tools
    • Limitations of Menu-Driven Terminal Tools
  • X Windows GUI Tools
    • Limitations of X Windows Tools
  • Why Not Use the Web?
    • A Simple GUI
    • A Flexible and Portable CGI Language
    • It Can Be Accessed Globally
    • Are There Any Limitations?

Designing Our Web-Based UNIX Account Manager

  • A Two-Part Application
    • Crafting the GUI: Should it Be Static or Dynamic?
    • The Back-End Script

Managing UNIX User Accounts: view_user.html.pl

  • Configuration Values and Other Building Blocks
  • Join the Club: Displaying Available Groups
  • Sonny Selects Shells with a Sun Station
  • Displaying the Account Information
  • Calling the Functions in the Main Body

The Sysadmin’s Right Hand: change_user.pl

  • Preparing the CGI for Webspeak
  • Putting Variables and Constants in Their Places
  • There Can’t Be Two of You!
    • I’ve Got Your Number
  • Making the Changes
    • Opening and Reading the Password File
    • Processing Changes
    • Modifying the Lines
    • Making the Changes Stick
  • Putting Our Subroutines to Task
    • A Modicum of Security
    • Processing the Selections

    Installing the Account Manager

    • Tuning the Manager to Your System
    • Location and Permissions for Account Manager Files

    Security Concerns with the Account Manager

    • Copying the New Password File Over the Original
      • Make the Sysadmin Copy the File By Hand
      • Copy the File in a cron Job
    • Log Everything
    • Create Backups
    • Password Protect the CGIs
    • Don’t Put the Account Manager on a Publicly Accessible Web Server
    • Use a Secure Web Server
    • Keep Up with What’s Going On in Security

    Enhancements to the Account Manager

    • Make the Account Manager More Like adduser
    • Add the Ability to Modify Groups
    • Send "New User" Information to Someone Whose Account Was Just Created

    Summary

10 * 11 * 12 * 13 * 14 * 15 * 16 * 17 * 18 * 19 * 20 * TOP
-

From a Program Usage Statement to an HTML Form

Program Usage Statement Markup Language (PUML)

  • PUML DTD
    • Elements
  • puml2html.pl
    • esis2html
  • HTML Generation
    • Checkbox
    • Radio
    • Text
    • Textarea
    • Select

Setting Up Your Own Transformation Environment

  • Step 1: Download a WebTechs HTML Check Toolkit
    • sp
    • sgmls
  • Step 2: Install the WebTechs HTML Check Toolkit
  • Step 3: Download, Install, and Test the puml2html Distribution

The Missing Pieces

Summary

10 * 11 * 12 * 13 * 14 * 15 * 16 * 17 * 18 * 19 * 20 * TOP
-

Chapter 18: Web-Assisted UNIX for End Users

UNIX System Commands

Generating a PUML Instance for a System Command

  • UNIX kill Command
    • kill.puml
    • kill-form.html
    • chmod.puml
    • chmod-form.html
  • UNIX cp Command
    • cp.puml
    • cp-form.html

Other PUML and HTML Examples

    • chown
    • chown.puml
    • chown-form.html
    • find
    • find.puml
    • find-form.html
    • ls
    • ls.puml
    • ls-form.html
    • mv
    • mv.puml
    • mv-form.html
    • rm
    • rm.puml
    • rm-form.html
    • rmdir
    • rmdir.puml
    • rmdir-form.html
    • </HTML>compress
    • compress.puml
    • compress-form.html
    • uncompress
    • uncompress.puml
    • uncompress-form.html
    • gunzip
    • gunzip.puml
    • gunzip-form.html
    • gzip
    • gzip.puml
    • gzip-form.html
    • ps
    • ps.puml
    • ps-form.html
    • grep
    • grep.puml
    • grep-form.html

Summary

10 * 11 * 12 * 13 * 14 * 15 * 16 * 17 * 18 * 19 * 20 * TOP
-

Chapter 19: A Customer Quote Generator

Selling on the Web

  • A First Step to Web Commerce: The Online Catalog
    • Other limitations of online catalogs

The Quote Generator

  • Who Needs It?
    • Sample case: The Internet Service Provider
  • Designing Our Quote Generator
    • The user interface
    • The Quote Processor
    • The Quote Delivery System

The Front Page: quote_page.html

  • Ready for Action?
  • Goods and Services
  • Some Useful Extensions

Our Silent Partner: quote

  • Command-Line Oriented
  • Other Hidden Goodies
  • Don’t quote Us!

Making It All Fit: web_quote.pl

  • web_quote.pl’s Startup Items
  • Working with the Form Data
  • Speaking to the Quote Processor
  • Is Anyone Home?
  • Reach Out and Quote Someone
    • Back to the command line
    • Calling the Quote Delivery System
    • The mail condition
    • Faxing a quote
    • Printing or viewing quotes
    • Keeping track of our quotes

The World’s Fastest Quotes: gen_quote.pl

  • Some External Program Definitions
  • Chewing Through Our Options
  • More Constants and Variables
  • Getting Our Quote with quote
  • E-Mailing the Quote
  • Faxing the Quote
    • The first step: A conversion to PostScript
    • Looking official: Generating a fax cover page
    • Making PostScript faxable
    • The final pages

Installing the Quote Generator

  • Editing the Variables
  • Placing the CGI
  • Limiting Access

Using the Quote Generator

Future Additions to the CGI

10 * 11 * 12 * 13 * 14 * 15 * 16 * 17 * 18 * 19 * 20 * TOP
-

Chapter 20: Automatic Creation of a MOMspider Instruction File

Walking a Web with MOMspider

  • Global Directives
  • Traversal Tasks
    • Traversal Types
    • Task Directives

Using HTML Forms to Create MOMspider Instruction File

  • The Cogs of the Machine
    • MOM-inst-form.html
    • MOM-inst.pl
    • MOM-task.pl
    • MOM-preview-task.pl
    • MOM-preview-add-task.pl
    • MOM-add-task.pl

HTML and CGI Script Sources

  • MOM-inst-form.html
  • MOM-inst.pl
  • MOM-task.pl
  • MOM-preview-task.pl
  • MOM-preview-add-task.pl
  • MOM-add-task.pl

Summary

10 * 11 * 12 * 13 * 14 * 15 * 16 * 17 * 18 * 19 * 20 * TOP
-

HTML 2.0 Checked! E-Mail: Web Programming Secrets at wps@lanw.com
URL: http://www.lanw.com/wps/content2.htm
Authors: Tittel, Gaither, Hassinger, & Erwin.
Web Copyright © 1996, LANWrights & IMPACT Online.
Revised -- March 15th, 1996 [James Michael Stewart]
BACKHOMENEXT
MENU

Netscape Now This site is best when served over Netscape 2.0.