Begin importing the website.
Add the files from the website's top-level directory. Note that recent.cgi still uses the old rlgall module.
This commit is contained in:
parent
44aa9d52d1
commit
ba999f774b
4 changed files with 117 additions and 0 deletions
20
web/recent.cgi
Executable file
20
web/recent.cgi
Executable file
|
|
@ -0,0 +1,20 @@
|
|||
#!/usr/bin/python
|
||||
# CGI script creating page of recent games
|
||||
|
||||
import sys
|
||||
import time
|
||||
import rlgall
|
||||
|
||||
# The required header
|
||||
sys.stdout.write("Content-type: text/html\r\n\r\n")
|
||||
# The top of the page
|
||||
sys.stdout.write(rlgall.phead.format("Recent Games"))
|
||||
sys.stdout.write(rlgall.ptop);
|
||||
sys.stdout.write(rlgall.navtop.format("Recent"));
|
||||
sys.stdout.write(rlgall.pti.format("Recent Expeditions"))
|
||||
|
||||
for game in rlgall.gamelist:
|
||||
game.tablerecent(sys.stdout)
|
||||
|
||||
sys.stdout.write(rlgall.pend)
|
||||
exit()
|
||||
Loading…
Add table
Add a link
Reference in a new issue