diff options
author | Thomas Schwinge <tschwinge@gnu.org> | 2007-08-10 15:56:44 +0200 |
---|---|---|
committer | Thomas Schwinge <tschwinge@gnu.org> | 2007-08-10 15:56:44 +0200 |
commit | 1c6d9a52d3e0bace25ec83f37342423489ef73ea (patch) | |
tree | 33c7c2926276c061718f7fbe3dc51f06fdb0028d /Main | |
parent | 783c7838d24e5d506ae644e7ea4ce77490ef9f28 (diff) | |
parent | 312d0bf2c9b288a78064fd9b8d010a3162a5b76c (diff) |
Merge branch 'iki-master' of kepler:tmp/hurd/wiki/hurd-wiki.p into merge_pub
Diffstat (limited to 'Main')
-rw-r--r-- | Main/HurdGnuFansOrg/twikiRobot121x54.gif | bin | 0 -> 5320 bytes | |||
-rw-r--r-- | Main/HurdGnuFansOrgDiscuss/hurdwikigen.cgi | 81 | ||||
-rw-r--r-- | Main/JoachimNilsson/crash.jpg | bin | 0 -> 1847 bytes | |||
-rw-r--r-- | Main/JoachimNilsson/jo.jpg | bin | 0 -> 61759 bytes | |||
-rw-r--r-- | Main/MySQL/myodbc-2.50.39-nt.zip | bin | 0 -> 1529264 bytes | |||
-rw-r--r-- | Main/WebPreferences/logo.jpg | bin | 0 -> 7785 bytes | |||
-rw-r--r-- | Main/WebPreferences/logo.png | bin | 0 -> 17674 bytes |
7 files changed, 81 insertions, 0 deletions
diff --git a/Main/HurdGnuFansOrg/twikiRobot121x54.gif b/Main/HurdGnuFansOrg/twikiRobot121x54.gif Binary files differnew file mode 100644 index 00000000..832c5498 --- /dev/null +++ b/Main/HurdGnuFansOrg/twikiRobot121x54.gif diff --git a/Main/HurdGnuFansOrgDiscuss/hurdwikigen.cgi b/Main/HurdGnuFansOrgDiscuss/hurdwikigen.cgi new file mode 100644 index 00000000..feea04d0 --- /dev/null +++ b/Main/HurdGnuFansOrgDiscuss/hurdwikigen.cgi @@ -0,0 +1,81 @@ +#!/usr/bin/python +# This is a crude python script used to cut out the contents of +# a wiki page for use in an ordinary page. +# +# Original version for WikiMoinMoin by <JAkov AT vmlinux DOT org> +# Refined and added caching including conversion to TWiki, but +# still a big hack, by <Joachim AT vmlinux DOT org> +# +# This script can be used freely under the traditional BSD license, +# without the advertising clause. +# + + +import fileinput +import string +import os +import os.path +from os.path import getmtime, exists +import sys +import cgi +from types import ListType + + +# Set an appropriate CGI header. +print "Content-type: text/html\r\n\r\n" + +## +# Creates a HTML page, filename, from the given URL. +# The HTML is extracted with lynx and parsed for the occurrence of +# the <!-- MESSAGESEPARATOR --> comment tag. All HTML between the +# first and last tag is written to filename. +# +def create_html (filename, url): + f = open (filename, 'w') + raw_data = os.popen ('/usr/bin/lynx -source ' + url).read () + cooked_data = string.replace (raw_data, "PageTop", "PageBottom") + raw_data = string.split (cooked_data, "<a name=\"PageBottom\"></a>") + f.write (raw_data[1]) + f.close () + return + +form = cgi.FieldStorage () +web = form.getvalue ("web", "") +page = form.getvalue ("topic", "") +#page = sys.argv[1] + +wiki_file = '/home/virtual/gnufans.org/hurd/data/' + web + '/' + page + '.txt' +wiki_url = 'http://hurd.gnufans.org/bin/view/' + web +'/' + page + '?skin=plain' +html_file = '/home/virtual/gnufans.org/hurd/spool/' + web + "-" + page + +#print "<h2Debugging info:</h2>" +#print 'wiki_file="' + wiki_file + '"' +#print 'wiki_url="' + wiki_url + '"' +#print 'html_file=' + html_file + '"' + + +if not exists (wiki_file): + print "The page " + wiki_url + "does not exist!" + exit + +if not exists (html_file): +# print "Creating html file." + create_html (html_file, wiki_url) +else: +# print "Reading file modification times." + wiki_file_time = getmtime (wiki_file) + html_file_time = getmtime (html_file) + +# print wiki_file_time +# print html_file_time + + if wiki_file_time > html_file_time: +# print "Wiki file newer than html file." + create_html (html_file, wiki_url) + +# Print contents of spool file to stdout +document = open (html_file, 'r') +content = document.read () + +print content + diff --git a/Main/JoachimNilsson/crash.jpg b/Main/JoachimNilsson/crash.jpg Binary files differnew file mode 100644 index 00000000..a91fafff --- /dev/null +++ b/Main/JoachimNilsson/crash.jpg diff --git a/Main/JoachimNilsson/jo.jpg b/Main/JoachimNilsson/jo.jpg Binary files differnew file mode 100644 index 00000000..ff19de28 --- /dev/null +++ b/Main/JoachimNilsson/jo.jpg diff --git a/Main/MySQL/myodbc-2.50.39-nt.zip b/Main/MySQL/myodbc-2.50.39-nt.zip Binary files differnew file mode 100644 index 00000000..38db1c1b --- /dev/null +++ b/Main/MySQL/myodbc-2.50.39-nt.zip diff --git a/Main/WebPreferences/logo.jpg b/Main/WebPreferences/logo.jpg Binary files differnew file mode 100644 index 00000000..b8ff2779 --- /dev/null +++ b/Main/WebPreferences/logo.jpg diff --git a/Main/WebPreferences/logo.png b/Main/WebPreferences/logo.png Binary files differnew file mode 100644 index 00000000..2090f9db --- /dev/null +++ b/Main/WebPreferences/logo.png |