From 6796a96ba1c646699cf176130d0f668910c0fad9 Mon Sep 17 00:00:00 2001 From: onefang Date: Mon, 6 Jun 2022 19:21:58 +1000 Subject: Move SledjChisl header and footer to external SSI files. --- src/sledjchisl/sledjchisl.c | 144 +++++++++++--------------------------------- 1 file changed, 35 insertions(+), 109 deletions(-) (limited to 'src') diff --git a/src/sledjchisl/sledjchisl.c b/src/sledjchisl/sledjchisl.c index adfc2f9..ec24b22 100644 --- a/src/sledjchisl/sledjchisl.c +++ b/src/sledjchisl/sledjchisl.c @@ -488,7 +488,7 @@ struct _reqData { lua_State *L; qhashtbl_t *configs, *queries, *body, *cookies, *headers, *valid, *stuff, *database, *Rcookies, *Rheaders; - char *Scheme, *Host, *Method, *Script, *Path, *RUri, *doit, *form, *output, *outQuery; + char *Scheme, *Host, *Method, *Script, *Path, *RUri, *doit, *form, *output, *outQuery, *title; sesh shs, *lnk; gridStats *stats; qlist_t *errors, *messages; @@ -4689,53 +4689,6 @@ struct _fragment char *text; }; -static void HTMLdebug(qgrow_t *reply) -{ - reply->addstrf(reply, - "
\n" - "
DEBUG
\n" - "This account manager system is currently experimental, and under heavy development. " - " Which means it's not all written yet, and things may break.
\n" - "To create an account, choose a name and password, type them in, click the 'create account' button.
" - "On the next page, fill in all your details, then click on the 'confirm' button.
" - "We follow the usual web site registration process, which sends a validation email, with a link to click. " - " When you get that email, click on the link, or copy it into a web browser.
" - "You will then be logged off. Now you have to wait for an admin to approve your new account. " - " They should check with the person you listed as vouching for you first. They will tell you after they approve your account.
" - "Missing bits that are still being written - editing accounts, listing accounts, deleting accounts.
\n" - "In the bottom right corner is an experimental chat thingy, based on Jabber / XMPP.
\n" - "Click on the 'Toggle chat' button to pop it up, then use your grid user name for the 'XMPP Address:' field. " - " Your user name has to be in the format 'first.last', two words with a dot in the middle. " - " Then put your grid account password in the 'Password' field and click the 'Log in' button. " - " Ignore the 'Don't have a chat account? Create an account' bit.
\n" - "Note that the chat windows can be resized by dragging their top or left edges, which I suggest you do, coz the default size is too small.
\n" - "You can also use any other Jabber / XMPP client as well.
\n" - "Remember this is EXPERIMENTAL, I'll be changing things. Next I'll make it so you don't have to log in to both this chat thingy and the account page separataly.
" - "
P.S. Yes, I hate the default theme to. lol
\n" - "