]> git.plutz.net Git - lobster/blobdiff - cards/index.cgi
quick fix: put temp file into lock, should switch to session_lock functions
[lobster] / cards / index.cgi
index 24f7a86e33c11bd3adefe79befbdaa97c744d8de..b48e54e02677e19b40530790bdfdc0481de3b3da 100755 (executable)
@@ -1,17 +1,10 @@
 #!/bin/sh
 
-if [ "$_PATH" = "/cards/cards.css" ]; then
-  . $_EXEC/cgilite/file.sh
-  FILE $_EXEC/cards/cards.css
-  return 0
-fi
-
 . $_EXEC/pdiread.sh
 . $_EXEC/cards/l10n.sh
 . $_EXEC/cards/widgets.sh
 . $_EXEC/cards/list.sh
 
-#unescape() { [ $# = 0 ] && sed -E 's;\\(.);\1;g' || printf %s "$*" |sed -E 's;\\(.);\1;g'; }
 upcase=' y;abcdefghijklmnopqrstuvwxyzäöüé;ABCDEFGHIJKLMNOPQRSTUVWXYZÄÖÜÉ;; '
 
 filter="$(GET f)"
@@ -30,8 +23,8 @@ list_hi_companies(){
   printf '
   [form class="newcard" action="/cards/new_card.sh" method="POST"
     [button type="submit" %s]
-  ]' "$(l10n newcard)"
-
+    [a href="#top" . %s]
+  ]' "$(l10n newcard)" "$(l10n page_top)"
   [ "$edit" ] && edit_card "$edit"
   list_cards
-} | yield_page cards /cards/cards.css
+} | yield_page cards #/cards/cards.css