filter pages accessible in bookmarker
authorpaul <paul@plutz.net>
Mon, 9 Apr 2018 05:58:58 +0000 (05:58 +0000)
committerpaul <paul@plutz.net>
Mon, 9 Apr 2018 05:58:58 +0000 (05:58 +0000)
svn path=/trunk/; revision=161

templates/frame.html.sh

index 90e0e32..a2d8fee 100755 (executable)
@@ -44,8 +44,8 @@ cat <<EOF
         $(for page in "${_EXEC}/pages/"*.sh; do
           page="${page##*/}"
           page="${page%.sh}"
-          printf '<a href="?p=%s">%s</a>' "${page}" "$(l10n "p_${page}")"
-        done)
+          printf '<a href="?p=%s">%s</a>\n' "${page}" "$(l10n "p_${page}")"
+        done |grep -E '^<a href="\?p='"${page_filter}" )
         $(if grep -qF "$REQUEST_URI" "$bmfile"; then
           printf '<input type="hidden" name="bm_url" value="%s" />
                   <input type="text" name="bm_name" value="%s" readonly="readonly" /