diff options
author | bie <bie@blekksprut.net> | 2016-11-11 03:01:40 +0900 |
---|---|---|
committer | bie <bie@blekksprut.net> | 2016-11-11 03:01:40 +0900 |
commit | d57d5d4c678069a539cb8300ca124b929361bd3f (patch) | |
tree | b56dbfc6e90cdf0ee3146c7ef7b101debe24acb7 | |
parent | e79217f01e9a7bc7ff1fd900338dc7b15ec1298c (diff) | |
download | ukulele-d57d5d4c678069a539cb8300ca124b929361bd3f.tar.xz |
sette orz-url
-rw-r--r-- | config.def.h | 3 | ||||
-rw-r--r-- | ukulele.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/config.def.h b/config.def.h index 74bcc14..09a60d7 100644 --- a/config.def.h +++ b/config.def.h @@ -1,6 +1,7 @@ -int orz = 0; int dirlist = 0; +static char *orz = 0; + static char *title = "a wiki"; static char *id = "anonymous"; static char *home = "home"; @@ -123,7 +123,7 @@ int edit(char *path) { printf("<form method='post'>\n"); printf("<p class='edit'>\n"); if(orz) - printf("<a id='orz' href='#'>{picto}</a><br>\n"); + printf("<a id='orz' data-url='%s' href='#'>{picto}</a><br>\n", orz); printf("<textarea name=t rows=24 cols=72>"); if(fp) while(fgets(buffer, sizeof(buffer), fp)) |