(???) !/usr/pkg/bin/python
mport os
mport sys
(???) ib_folder = "/ftp/pub/users/octotep/downloads/gophercgi"
(SND) ys.path.insert(0, lib_folder)
mport gophercgi
(PNG) rint_text = gophercgi.print_text
(PNG) rint_error = gophercgi.print_error
(PNG) rint_link = gophercgi.print_link
(PNG) rint_special = gophercgi.print_special
(PNG) rint_telnet = gophercgi.print_telnet
(???) lank_line = gophercgi.print_line
(HTM) ome_dir = "/users/octotep/downloads/gophercgi"
(???) ase_dir = "/users/octotep/downloads"
(HTM) ost = "sdf.org"
(PNG) lease_stay = "...but please don't leave yet, we have an excellent \
(DOC) emonstration lined up for you."
(???) elcome = "Hello and welcome to the gophercgi demonstration. Please \
(HTM) ave a seat, the show will be starting shortly..."
(PNG) rint_link(1, "Back to gophercgi directory...", home_dir, host)
(PNG) rint_text(please_stay)
(???) lank_line()
(PNG) rint_text(welcome)
(???) lank_line()
(???) hanks = "Ah. You've made a wise decision to stay. You're going to have \
(???) _great_ time here. Now as a little warm-up act, here's some links to \
(???) eep you occupied."
(PNG) rint_text(thanks)
(???) lank_line()
(PNG) rint_link(0, "0. Documetation, anyone?", "%s/documentation.txt" % (home_dir), host)
(PNG) rint_link(1, "1. Floodgap systems", "", "gopher.floodgap.com")
(PNG) rint_link(2, "2. CSO at ns.uic.edu", "", "ns.uic.edu", 105)
(PNG) rint_link(3, "3. Holy schmoley! It's an error!", "", "error.host")
(PNG) rint_link(4, "4. Macintosh binhex (just a binary file)", "%s/gophercgi.py" % (home_dir), host)
(PNG) rint_link(5, "5. PC Binary (just a binary file)", "%s/gophercgi.py" % (home_dir), host)
(PNG) rint_link(6, "6. Uuencoded binary (binary file)", "%s/gophercgi.py" % (home_dir), host)
(PNG) rint_link(7, "7. Search gopher with Veronica search engine", "/v2/vs", "gopher.floodgap.com")
(PNG) rint_link(8, "8. Connect to SDF public access unix system (telnet)", "", "sdf.org", "23")
(PNG) rint_link(9, "9. A _real_ binary file", "%s/gophercgi.py" % (home_dir), host)
(???) lank_line()
(???) ool = "Cool, right? You can print any link you want! All you need to do \
s fill in all appropriate fields, and *BAM*, you got yourself a link to \
(???) nything."
(PNG) rint_text(cool)
(???) lank_line()
(SND) pecial = "Now, how about some special links. Instead of print_link(),\
(???) hese links use print_telnet() and print_special()."
(PNG) rint_text(special)
(???) lank_line()
(PNG) rint_telnet("Connect to SDF (again)", "sdf.org", "23")
(PNG) rint_special("Check out my webspace", "http://octotep.sdf.org")
(PNG) rint_special("Securely browse with DuckDuckGo", "https://duckduckgo.com")
(PNG) rint_special("SSH to SDF (browser must know how to handle ssh://)", "ssh://sdf.org")
(PNG) rint_special("Even a mailto link", "mailto:octotep+gophcgiex@sdf.lonestar.org")
(PNG) rint_error("There's even print_error() !")
(???) lank_line()
nter = "Fantastic! Now, our portion of the show is finished, \
(???) ut please feel free to stay and watch the other acts lined up for you!"
(PNG) rint_text(inter)
(PNG) rint_link(1, "load_args() test", "%s/tests/args_test.cgi?ha:he:hi:ho:hu" % (home_dir), host)
(PNG) rint_link(1, "Conversion test", "%s/tests/conv_test.cgi" % (home_dir), host)