3 HTTP_COOKIE='id=____________'
4 mkdir -p 'users/____________'
10 while [ -n "$seq" -a "${seq}" -gt 0 ]; do
11 # ^^ double condition seems necessary in dash
12 # (possibly due to faulty result caching?)
13 printf \\%o $((seq % 256))
20 | sed -n '2{y;+/;:_;;p}'
29 git init "${BDB}" || mkdir "${BDB}"
30 mkdir "${BDB}/favicons"
36 name="$(QUERY_STRING="$l" GET folder)"
37 file="${BDB}/${fid}.bm"
38 printf '%s\t%s\t%s\n' "$fid" "$(HTML "$name")" "$order" >"$file"
39 order="$(($order + 1000))"
41 printf 'Setting up Folder: %s\n' "$name"
44 title="$(QUERY_STRING="$l" GET title)"
47 uri="$(QUERY_STRING="$l" GET content |head -n1)"
48 if [ -f "$file" -a -n "$title" ]; then
50 printf '%s\t%s\t%s\n' "$bid" "$(HTML "$title")" "$uri" >>"$file"
51 getFavicon "$uri" "$bid" &
53 printf 'Added record "%s" to %s\n' "$title" "$file"
59 printf 'Finished import to collection: %s\n' "${BDB##*/}"