diff options
author | the little girl <yui@blekksprut.net> | 2014-02-21 14:59:05 +0100 |
---|---|---|
committer | the little girl <yui@blekksprut.net> | 2014-02-21 14:59:05 +0100 |
commit | 827c442ab3586e6019b97714ca0b925a4625a361 (patch) | |
tree | 1c90b0c7d62a2a3043249eecd33cb5ce061cf691 | |
parent | 1df69d24a8ff337393e9cdd6cdfbba81f008d374 (diff) | |
download | ukulele-827c442ab3586e6019b97714ca0b925a4625a361.tar.xz |
ikke lenger hardkode home
-rw-r--r-- | config.def.h | 3 | ||||
-rw-r--r-- | wiki.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/config.def.h b/config.def.h index ea4a312..f2c5857 100644 --- a/config.def.h +++ b/config.def.h @@ -1,12 +1,13 @@ static char *title = "a wiki"; static char *id = "anonymous"; +static char *home = "home"; static char *loft = ".loft"; static char *links[][2] = { { "home", "home" }, { "planer", "planer" }, - 0 + { 0 } }; static char *(*authenticate)() = NULL; @@ -270,7 +270,7 @@ int main(int argc, char **argv) { if(!base) base = strdup(dirname(strdup(script))); if(authenticate && !(id = authenticate())) return unauthorized(401); - if(!legit(page++)) return redirect("hei"); + if(!legit(page++)) return redirect(home); setenv("MARXUP_HEADER", "2", 1); setenv("MARXUP_PREFIX", base, 1); |