-- Leo's gemini proxy
-- Connecting to git.thebackupbox.net:1965...
-- Connected
-- Sending request
-- Meta line: 20 text/gemini
repo: fmrl action: commit revision: path_from: revision_from: 311fa88f72050ec1c6800e0193b32d299263da8b: path_to: revision_to:
commit 311fa88f72050ec1c6800e0193b32d299263da8b Author: epoch <epoch@hack.thebackupbox.net> Date: Tue Jan 4 07:14:33 2022 +0000 changed some paths to be new install target instead of my weird paths diff --git a/index.cgi b/index.cgi
--- a/index.cgi +++ b/index.cgi @@ -1,6 +1,7 @@ #!/usr/bin/env bash -. /var/www/sites/hacking/cgi-bin/lib/xface.cgi -cd /var/www/sites/hacking/fmrl +. /var/www/cgilib/xface.cgi +### TODO: make this not an absolute path. +cd /var/www/fmrl if [ "$PATH_INFO" ];then case "$PATH_INFO" in /user/*) @@ -10,10 +11,10 @@ case "$PATH_INFO" in ;; /update/) printf "Content-Type: text/html\r\n\r\n" - . /var/www/sites/hacking/cgi-bin/lib/remote_host.cgi + . /var/www/cgilib/remote_host.cgi if [ "$REQUEST_METHOD" = "POST" ];then export QUERY_STRING="$(head -c "$HTTP_CONTENT_LENGTH")" - . /var/www/sites/hacking/cgi-bin/lib/ident.cgi + . /var/www/cgilib/ident.cgi avatar="$(query_param avatar | uriunescape)" if [ ! "$avatar" ];then @@ -178,7 +179,7 @@ echo '<body>' echo '<form onsubmit="javascript:refuse_to_submit(this);return false">' echo ' <select name="user">' -for user in /var/www/sites/hacking/fmrl/.users/*;do +for user in /var/www/fmrl/.users/*;do user="$(basename "$user")" printf ' <option value="%s">%s</option>' "$user" "$user" done
-----END OF PAGE-----
-- Response ended
-- Page fetched on Sun Jun 2 15:15:46 2024