" }w
;
: list.edit
"Wlistobj" getstat dup if match ok? not if
{ "
The object specified was not valid, reverting to $var/www
" }w
"$var/www" "Wlistobj" setstat
then else
{ "
The object was not specified, reverting to $var/www
" }w
"$var/www" "Wlistobj" setstat
then
"Wlistpath" getstat dup if pclean "wlistpath" setstat else "" "wlistpath" setstat then
{ "
Edit list
" }w
{ "" }w
;
: list.change
"webobj" post match ok? if
"submit" post "write" smatch if
"webobj" post match "webpath" post "page" raw setlist
{ "
... list was edited ...
" }w
then
"webobj" post "Wlistobj" setstat
"webpath" post "Wlistpath" setstat
else
{ "
The object specified was not valid.
" }w
then
list.edit
;
: page.edit
"Wwebobj" getstat dup if match ok? not if
{ "
The object specified was not valid, reverting to $var/www
" }w
"$var/www" "Wwebobj" setstat
then else
{ "
The object was not specified, reverting to $var/www
" }w
"$var/www" "Wwebobj" setstat
then
"Wwebpath" getstat dup if pclean "wwebpath" setstat else "" "wwebpath" setstat then
{ "
Edit page
" }w
{ "" }w
{ " View this page" }w
"Wlistobj" getstat "$var/www" smatch if
"Wlistpath" getstat not if
{ "
Be careful, you are editing the front page!
" }w
then
then
;
: page.change
"webobj" post match ok? if
"submit" post "write" smatch if
"webobj" post match "/_/www" "webpath" post dup if "/" swap strcat else pop "" then strcat "page" raw setlist
{ "
... page was edited ...
" }w
then
"webobj" post "Wwebobj" setstat
"webpath" post "Wwebpath" setstat
else
{ "
The object specified was not valid.
" }w
then
page.edit
;
: helpgen.edit
"Hwebobj" getstat dup if match ok? not if
{ "
The object specified was not valid, reverting to $var/www
" }w
"$var/www" "Hwebobj" setstat
then else
{ "
The object was not specified, reverting to $var/www
" }w
"$var/www" "Hwebobj" setstat
then
"Hwebpath" getstat dup if pclean "Hwebpath" setstat else "" "Hwebpath" setstat then
{ "
Edit help
" }w
{ "" }w
{ " View this page" }w
"Hlistobj" getstat "$var/www" smatch if
"Hlistpath" getstat not if
{ "
Be careful, you are editing the front page!
" }w
then
then
;
: helpgen.change
"webobj" post match ok? if
"submit" post "write" smatch if
"webobj" post match "/_/www" "webpath" post dup if "/" swap strcat else pop "" then strcat
"/_help" strcat "page" raw " " array_join astr setprop
{ "
... page was edited ...
" }w
then
"webobj" post "Hwebobj" setstat
"webpath" post "Hwebpath" setstat
else
{ "