Introduction
Introduction Statistics Contact Development Disclaimer Help
!/usr/pkg/bin/python
mport os
mport sys
ib_folder = "/ftp/pub/users/octotep/downloads/gophercgi"
ys.path.insert(0, lib_folder)
mport gophercgi
rint_text = gophercgi.print_text
rint_error = gophercgi.print_error
rint_link = gophercgi.print_link
rint_special = gophercgi.print_special
rint_telnet = gophercgi.print_telnet
lank_line = gophercgi.print_line
ome_dir = "/users/octotep/downloads/gophercgi"
ase_dir = "/users/octotep/downloads"
ost = "sdf.org"
lease_stay = "...but please don't leave yet, we have an excellent \
emonstration lined up for you."
elcome = "Hello and welcome to the gophercgi demonstration. Please \
ave a seat, the show will be starting shortly..."
rint_link(1, "Back to gophercgi directory...", home_dir, host)
rint_text(please_stay)
lank_line()
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."
rint_text(thanks)
lank_line()
rint_link(0, "0. Documetation, anyone?", "%s/documentation.txt" % (home_dir), h…
rint_link(1, "1. Floodgap systems", "", "gopher.floodgap.com")
rint_link(2, "2. CSO at ns.uic.edu", "", "ns.uic.edu", 105)
rint_link(3, "3. Holy schmoley! It's an error!", "", "error.host")
rint_link(4, "4. Macintosh binhex (just a binary file)", "%s/gophercgi.py" % (h…
rint_link(5, "5. PC Binary (just a binary file)", "%s/gophercgi.py" % (home_dir…
rint_link(6, "6. Uuencoded binary (binary file)", "%s/gophercgi.py" % (home_dir…
rint_link(7, "7. Search gopher with Veronica search engine", "/v2/vs", "gopher.…
rint_link(8, "8. Connect to SDF public access unix system (telnet)", "", "sdf.o…
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."
rint_text(cool)
lank_line()
pecial = "Now, how about some special links. Instead of print_link(),\
hese links use print_telnet() and print_special()."
rint_text(special)
lank_line()
rint_telnet("Connect to SDF (again)", "sdf.org", "23")
rint_special("Check out my webspace", "http://octotep.sdf.org")
rint_special("Securely browse with DuckDuckGo", "https://duckduckgo.com")
rint_special("SSH to SDF (browser must know how to handle ssh://)", "ssh://sdf.…
rint_special("Even a mailto link", "mailto:[email protected]")
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!"
rint_text(inter)
rint_link(1, "load_args() test", "%s/tests/args_test.cgi?ha:he:hi:ho:hu" % (hom…
rint_link(1, "Conversion test", "%s/tests/conv_test.cgi" % (home_dir), host)
You are viewing proxied material from sdf.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.