aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbie <bie@blekksprut.net>2016-11-11 03:01:40 +0900
committerbie <bie@blekksprut.net>2016-11-11 03:01:40 +0900
commitd57d5d4c678069a539cb8300ca124b929361bd3f (patch)
treeb56dbfc6e90cdf0ee3146c7ef7b101debe24acb7
parente79217f01e9a7bc7ff1fd900338dc7b15ec1298c (diff)
downloadukulele-d57d5d4c678069a539cb8300ca124b929361bd3f.tar.xz
sette orz-url
-rw-r--r--config.def.h3
-rw-r--r--ukulele.c2
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";
diff --git a/ukulele.c b/ukulele.c
index f1b87af..96f592c 100644
--- a/ukulele.c
+++ b/ukulele.c
@@ -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))