summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
df47e7e)
svn path=/trunk/; revision=6
echo -n "Content-Type: text/html;charset=utf-8\n\n"
PAGE="$(echo "$_GET[\"page\"]" |egrep '^[a-zA-Z0-9_-]+$')"
echo -n "Content-Type: text/html;charset=utf-8\n\n"
PAGE="$(echo "$_GET[\"page\"]" |egrep '^[a-zA-Z0-9_-]+$')"
-PAGE="${_EXEC}/ifcomponent/page_${PAGE}.sh"
-[ -x "$PAGE" ] || PAGE="${_EXEC}/ifcomponent/page_error.sh"
-
-TITLE=$($PAGE title)
+PAGE="${_EXEC}/pages/${PAGE}.sh"
+[ -x "$PAGE" ] || PAGE="${_EXEC}/pages/error.sh"
- for each in "${_EXEC}/ifcomponent"/page_*.sh; do
- link="$(echo "$each" |sed -r "s:^.*page_(.*)\.sh$:\1:")"
+ for each in "${_EXEC}"/pages/*.sh; do
+ link="$(echo "$each" |sed -r "s:^.*/([^/]*)\.sh$:\1:")"
title="$($each title)"
[ -n "$title" ] && echo "/?page=$link $title"
done
}
title="$($each title)"
[ -n "$title" ] && echo "/?page=$link $title"
done
}
-. ${_EXEC}/ifcomponent/frame.sh
+. ${_EXEC}/templates/frame.html.sh
cat <<EOF
<!Doctype HTML>
<html>
<head>
cat <<EOF
<!Doctype HTML>
<html>
<head>
+ <title>$($PAGE title)</title>
<style type="text/css">
<!--
<style type="text/css">
<!--
+
+# vi:set filetype=html: