diff options
Diffstat (limited to 'package/webif/files/usr/lib/webif/categories.awk')
-rw-r--r-- | package/webif/files/usr/lib/webif/categories.awk | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/package/webif/files/usr/lib/webif/categories.awk b/package/webif/files/usr/lib/webif/categories.awk deleted file mode 100644 index 00312c93d..000000000 --- a/package/webif/files/usr/lib/webif/categories.awk +++ /dev/null @@ -1,27 +0,0 @@ -BEGIN { - n = 0 - sel = 0 - FS=":" -} -($3 == "category") && (categories !~ /:$4:/) { - categories = categories ":" $4 ":"; - n++ - if ($4 ~ "^" selected "$") sel = n - c[n] = $4 - if (f[$4] == "") f[$4] = rootdir "/" indexpage "?cat=" $4 -} -($3 == "name") && ((p[$4] == 0) || (p[$4] > int($5))) { - gsub(/^.*\//, "", $1); - p[$4] = int($5) + 1 - f[$4] = rootdir "/" $1 -} -END { - print "<div id=\"mainmenu\"><h3><strong>@TR<<Categories>>:</strong></h3><ul>" - - for (i = 1; i <= n; i++) { - if (sel == i) print "<li class=\"selected-maincat\"><a href=\"" f[c[i]] "\">»@TR<<" c[i] ">>«</a></li>" - else print "<li><a href=\"" f[c[i]] "\"> @TR<<" c[i] ">> </a></li>"; - } - - print "</ul></div>" -} |