svn path=/trunk/; revision=3
ACTION="$(echo "$_GET[\"action\"]" |egrep '^[a-zA-Z0-9_-]+$')"
ACTION="${_EXEC}/actions/${ACTION}.sh"
-[ -x "$ACTION" ] || echo -n "Location: http://$HTTP_HOST/?page=error\n\n"
+[ -x "$ACTION" ] || echo -n "Location: /?p=error\n\n"
. $ACTION
echo -n "Content-Type: text/html;charset=utf-8\n\n"
-PAGE="$(echo "$_GET[\"page\"]" |egrep '^[a-zA-Z0-9_-]+$')"
+PAGE="$(echo "$_GET[\"p\"]" |egrep '^[a-zA-Z0-9_-]+$')"
PAGE="${_EXEC}/pages/${PAGE}.sh"
[ -x "$PAGE" ] || PAGE="${_EXEC}/pages/error.sh"
for each in "${_EXEC}"/pages/*.sh; do
link="$(echo "$each" |sed -r "s:^.*/([^/]*)\.sh$:\1:")"
title="$($each title)"
- [ -n "$title" ] && echo "/?page=$link $title"
+ [ -n "$title" ] && echo "/?p=$link $title"
done
}