mirror of https://github.com/dirtbags/moth.git
s/cgi/cgi-bin/g
This commit is contained in:
parent
5ac606be09
commit
e30d00ad23
|
@ -53,7 +53,7 @@ EOF
|
||||||
|
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
<section id="form">
|
<section id="form">
|
||||||
<form id="puzzler" action="../../cgi/puzzler.cgi" method="get" accept-charset="utf-8" autocomplete="off">
|
<form id="puzzler" action="../../cgi-bin/puzzler.cgi" method="get" accept-charset="utf-8" autocomplete="off">
|
||||||
<input type="hidden" name="c" value="$cat">
|
<input type="hidden" name="c" value="$cat">
|
||||||
<input type="hidden" name="p" value="$points">
|
<input type="hidden" name="p" value="$points">
|
||||||
<div>Team hash:<input name="t" size="8"></div>
|
<div>Team hash:<input name="t" size="8"></div>
|
||||||
|
|
2
bin/once
2
bin/once
|
@ -24,7 +24,7 @@ find state/points.new -type f | while read fn; do
|
||||||
done
|
done
|
||||||
|
|
||||||
# Generate new puzzles.html
|
# Generate new puzzles.html
|
||||||
if www/cgi/puzzles.cgi > www/puzzles.new; then
|
if www/cgi-bin/puzzles.cgi > www/puzzles.new; then
|
||||||
mv www/puzzles.new www/puzzles.html
|
mv www/puzzles.new www/puzzles.html
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
4
install
4
install
|
@ -45,7 +45,7 @@ setup() {
|
||||||
|
|
||||||
|
|
||||||
echo "Figuring out web user..."
|
echo "Figuring out web user..."
|
||||||
for www in www-data http _; do
|
for www in www-data http tc _; do
|
||||||
id $www && break
|
id $www && break
|
||||||
done
|
done
|
||||||
if [ $www = _ ]; then
|
if [ $www = _ ]; then
|
||||||
|
@ -72,4 +72,4 @@ git ls-files | while read fn; do
|
||||||
echo "??? $fn"
|
echo "??? $fn"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#! /usr/bin/lua
|
#! /usr/bin/lua
|
||||||
|
|
||||||
package.path = "?.lua;cgi/?.lua;www/cgi/?.lua"
|
package.path = "?.lua;cgi-bin/?.lua;www/cgi-bin/?.lua"
|
||||||
|
|
||||||
local cgi = require "cgi"
|
local cgi = require "cgi"
|
||||||
local koth = require "koth"
|
local koth = require "koth"
|
|
@ -1,6 +1,6 @@
|
||||||
#! /usr/bin/lua
|
#! /usr/bin/lua
|
||||||
|
|
||||||
package.path = "?.lua;cgi/?.lua;www/cgi/?.lua"
|
package.path = "?.lua;cgi-bin/?.lua;www/cgi-bin/?.lua"
|
||||||
|
|
||||||
local koth = require "koth"
|
local koth = require "koth"
|
||||||
|
|
||||||
|
@ -46,4 +46,4 @@ end
|
||||||
body = body .. "</dl>\n"
|
body = body .. "</dl>\n"
|
||||||
body = body .. "<p>Reloading this page periodically may yield updated puzzle lists.</p>"
|
body = body .. "<p>Reloading this page periodically may yield updated puzzle lists.</p>"
|
||||||
|
|
||||||
koth.page("Open Puzzles", body)
|
koth.page("Open Puzzles", body)
|
|
@ -1,6 +1,6 @@
|
||||||
#! /usr/bin/lua
|
#! /usr/bin/lua
|
||||||
|
|
||||||
package.path = "?.lua;cgi/?.lua;www/cgi/?.lua"
|
package.path = "?.lua;cgi-bin/?.lua;www/cgi-bin/?.lua"
|
||||||
|
|
||||||
|
|
||||||
local cgi = require "cgi"
|
local cgi = require "cgi"
|
|
@ -24,7 +24,7 @@
|
||||||
you don't need to do it again.
|
you don't need to do it again.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<form method="get" action="cgi/register.cgi">
|
<form method="get" action="cgi-bin/register.cgi">
|
||||||
<label>Team Hash:</label>
|
<label>Team Hash:</label>
|
||||||
<input type="text" name="h">
|
<input type="text" name="h">
|
||||||
<br>
|
<br>
|
||||||
|
|
Loading…
Reference in New Issue