]> git.plutz.net Git - bookman/blobdiff - index.cgi
make "new folder" button visible again
[bookman] / index.cgi
index 039781678491d01a06e87f0992fedfe1a41a275c..e96c9f01e750c7c323a8b7d031177918f6c96e7f 100755 (executable)
--- a/index.cgi
+++ b/index.cgi
@@ -92,7 +92,7 @@ QRYID="$(GET    id |checkid)"
 BDB="users/${COKID}"
 
 if [ -n "$QRYID" ]; then
-  printf '%s 303 See Other\r\n' "$SERVER_PROTOCOL"
+  printf 'Status: 303 See Other\r\n'
   printf 'Location: %s\r\n' "${SCRIPT_NAME}?${QUERY_STRING#id=????????????}"
   SET_COOKIE +8640000 "id=${QRYID}"
   printf '\r\n'
@@ -103,6 +103,7 @@ elif [ -z "$COKID" -a -z "$QRYID" ]; then
   cat <<-EOF
        <!DOCTYPE HTML>
        <HTML><head>
+         <meta name="viewport" content="width=device-width" />
          <title>Bookman - New Collection</title>
        </head><body id="newcollection">
          <h1>You have not yet set up a collection on this server.</h1>
@@ -111,12 +112,13 @@ elif [ -z "$COKID" -a -z "$QRYID" ]; then
        EOF
   exit 0
 elif ! [ -d "${BDB}" ]; then
-  printf '%s 404 Not Found\r\n' "$SERVER_PROTOCOL"
+  printf 'Status: 404 Not Found\r\n'
   printf 'Content-Type: text/html; charset=utf-8\r\n\r\n'
 
   cat <<-EOF
        <!DOCTYPE HTML>
        <HTML><head>
+         <meta name="viewport" content="width=device-width" />
          <title>Bookman - 404</title>
        </head><body id="missingcollection">
          <h1>The collection you requested does not exist on this server.</h1>
@@ -132,7 +134,7 @@ case "$(GET action)" in
 
     { git init "users/${NEWID}" || mkdir -p "users/${NEWID}"; } >&-
 
-    printf '%s 303 See Other\r\n' "$SERVER_PROTOCOL"
+    printf 'Status: 303 See Other\r\n'
     printf 'Location: %s\r\n' "${SCRIPT_NAME}?id=${NEWID}"
     SET_COOKIE +8640000 "id=${NEWID}"
     printf '\r\n'
@@ -485,6 +487,7 @@ printf 'Content-Type: text/html; charset=utf-8\r\n\r\n'
 cat <<EOF
 <!DOCTYPE HTML>
 <HTML><head>
+  <meta name="viewport" content="width=device-width" />
   <title>Bookman - Your Collection</title>
   <link rel="stylesheet" type="text/css" href="bookmarks.css" />
 </head><body id="collection">