From 97f6cc0097345caecf952e4b689c733c43f134fc Mon Sep 17 00:00:00 2001 From: the lemons Date: Mon, 7 Feb 2022 08:57:23 -0600 Subject: remove UI for submitting images fcgiwrap is broken and will not support file uploads as big as an image. so, I plan to just manually add images for now. images can be displayed, but the administrator has to add them. --- debug/nginx.conf | 2 ++ zzcxz.cgi | 45 +++++++++++++++++++++++---------------------- 2 files changed, 25 insertions(+), 22 deletions(-) diff --git a/debug/nginx.conf b/debug/nginx.conf index 1ff0baf..dd560b1 100644 --- a/debug/nginx.conf +++ b/debug/nginx.conf @@ -19,6 +19,8 @@ http { gzip off; + proxy_temp_path /tmp; + server { listen 8080; diff --git a/zzcxz.cgi b/zzcxz.cgi index 606a76c..21fffa9 100755 --- a/zzcxz.cgi +++ b/zzcxz.cgi @@ -331,11 +331,11 @@ map["^/g/(%w%w%w%w%w)$"] = function(p) ]]):format(p, page.illustration) else - draw_this = ([[ -

- illustrate this -

- ]]):format(p) +-- draw_this = ([[ +--

+-- illustrate this +--

+-- ]]):format(p) end return base { @@ -454,7 +454,8 @@ local illustrate_template = template [[ $content

what does this look like?

-
+
]] -map["^/g/(%w%w%w%w%w)/illustrate"] = function(p) - local page = load_page(p) - if not page then return not_found() end - - if env "REQUEST_METHOD" ~= "POST" then - return base { - title = "illustration: " .. html_encode(page.title), - content = illustrate_template { - title = html_encode(page.title), - content = convert_markup(page.content), - page = p, - }, - } - else - end -end +-- map["^/g/(%w%w%w%w%w)/illustrate"] = function(p) +-- local page = load_page(p) +-- if not page then return not_found() end +-- +-- if env "REQUEST_METHOD" ~= "POST" then +-- return base { +-- title = "illustration: " .. html_encode(page.title), +-- content = illustrate_template { +-- title = html_encode(page.title), +-- content = convert_markup(page.content), +-- page = p, +-- }, +-- } +-- else +-- end +-- end map["^/i/(%w%w%w%w%w).(%w+)$"] = function(p, format) local page = load_page(p) -- cgit v1.2.3