Allow for hidden files in puzzler

This commit is contained in:
Neale Pickett 2009-10-05 11:03:27 -06:00
parent 597748984b
commit 3c3c03775e
4 changed files with 4 additions and 3 deletions

View File

@ -62,7 +62,8 @@ for cat in os.listdir(opts.puzzles):
f.write('<ul>\n')
for fn, path in files:
shutil.copy(path, outdir)
f.write('<li><a href="%s">%s</a></li>\n' % (fn, fn))
if not fn.startswith(','):
f.write('<li><a href="%s">%s</a></li>\n' % (fn, fn))
f.write('</ul>\n')
f.write('''
<form action="%(cgi)s" method="post">

View File

Before

Width:  |  Height:  |  Size: 626 B

After

Width:  |  Height:  |  Size: 626 B

View File

@ -2,7 +2,7 @@ html,body {
height: 100%;
min-height: 100%;
background-color: #000000;
background-image: url("binary.png");
background-image: url(",binary.png");
background-repeat: repeat-x repeat-y;
margin: 0;
padding: 0;

View File

@ -10,7 +10,7 @@ print '''
<html>
<head>
<title>1</title>
<link rel="stylesheet" type="text/css" href="ctf.css" media="all" />
<link rel="stylesheet" type="text/css" href=",ctf.css" media="all" />
<!-- key = ktFfb8R1Bw -->
</head>
<body>