aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoronefang2020-05-07 11:16:04 +1000
committeronefang2020-05-07 11:16:04 +1000
commitfbe7e0224704f0ab1dff0a438323d8519ecca75e (patch)
treea7f008e03ffcfe3c43a2885bc4ba5bd9870c9d26
parentRewrite the web session stuff. (diff)
downloadopensim-SC_OLD-fbe7e0224704f0ab1dff0a438323d8519ecca75e.zip
opensim-SC_OLD-fbe7e0224704f0ab1dff0a438323d8519ecca75e.tar.gz
opensim-SC_OLD-fbe7e0224704f0ab1dff0a438323d8519ecca75e.tar.bz2
opensim-SC_OLD-fbe7e0224704f0ab1dff0a438323d8519ecca75e.tar.xz
Various comment tweaks.
-rw-r--r--src/sledjchisl/sledjchisl.c21
1 files changed, 18 insertions, 3 deletions
diff --git a/src/sledjchisl/sledjchisl.c b/src/sledjchisl/sledjchisl.c
index c1f6f13..55e70f7 100644
--- a/src/sledjchisl/sledjchisl.c
+++ b/src/sledjchisl/sledjchisl.c
@@ -4920,6 +4920,7 @@ static void accountEditWeb(reqData *Rd, inputForm *oF, inputValue *oV)
4920 HTMLhidden(Rd->reply, "user", name); 4920 HTMLhidden(Rd->reply, "user", name);
4921 Rd->reply->addstrf(Rd->reply, "<p><font size='5'><span style='font-size: x-large'><b>Name :</b></span></font> %s</p>", name); 4921 Rd->reply->addstrf(Rd->reply, "<p><font size='5'><span style='font-size: x-large'><b>Name :</b></span></font> %s</p>", name);
4922 Rd->reply->addstrf(Rd->reply, "<p><font size='5'><span style='font-size: x-large'><b>Email :</b></span></font> %s</p>", email); 4922 Rd->reply->addstrf(Rd->reply, "<p><font size='5'><span style='font-size: x-large'><b>Email :</b></span></font> %s</p>", email);
4923// TODO - add aboutMe here in read only mode.
4923 Rd->reply->addstrf(Rd->reply, "<p><font size='5'><span style='font-size: x-large'><b>Voucher :</b></span></font> %s</p>", voucher); 4924 Rd->reply->addstrf(Rd->reply, "<p><font size='5'><span style='font-size: x-large'><b>Voucher :</b></span></font> %s</p>", voucher);
4924 4925
4925 if (200 <= Rd->shs.level) 4926 if (200 <= Rd->shs.level)
@@ -5164,6 +5165,7 @@ static int accountDelSub(reqData *Rd, inputForm *iF, inputValue *iV)
5164 return ret; 5165 return ret;
5165} 5166}
5166 5167
5168// The [create member] button on accountLoginWeb()
5167static int accountCreateSub(reqData *Rd, inputForm *iF, inputValue *iV) 5169static int accountCreateSub(reqData *Rd, inputForm *iF, inputValue *iV)
5168{ 5170{
5169 int ret = 0; 5171 int ret = 0;
@@ -5200,6 +5202,7 @@ static int accountCreateSub(reqData *Rd, inputForm *iF, inputValue *iV)
5200 return ret; 5202 return ret;
5201} 5203}
5202 5204
5205// The [confirm] button on accountAddWeb()
5203static int accountAddSub(reqData *Rd, inputForm *iF, inputValue *iV) 5206static int accountAddSub(reqData *Rd, inputForm *iF, inputValue *iV)
5204{ 5207{
5205 int ret = 0; 5208 int ret = 0;
@@ -5290,6 +5293,7 @@ static int accountSaveSub(reqData *Rd, inputForm *iF, inputValue *iV)
5290 return ret; 5293 return ret;
5291} 5294}
5292 5295
5296// The unique validation URL sent in email.
5293static int accountValidateSub(reqData *Rd, inputForm *iF, inputValue *iV) 5297static int accountValidateSub(reqData *Rd, inputForm *iF, inputValue *iV)
5294{ 5298{
5295 int ret = 0; 5299 int ret = 0;
@@ -5411,6 +5415,17 @@ static int accountOutSub(reqData *Rd, inputForm *iF, inputValue *iV)
5411 return ret; 5415 return ret;
5412} 5416}
5413 5417
5418/* TODO - instead of searching through all the users, ...
5419 have a bunch of separate folders with symlinks
5420 scData/users/aaproved
5421 scData/users/disabled
5422 scData/users/god
5423 onefang_rejected.lua -> ../uuid.lua
5424 scData/users/newbie
5425 foo_bar.lua -> ../uuid.lua
5426 scData/users/validated
5427
5428*/
5414typedef struct _RdAndListTbl RdAndListTbl; 5429typedef struct _RdAndListTbl RdAndListTbl;
5415struct _RdAndListTbl 5430struct _RdAndListTbl
5416{ 5431{
@@ -6138,6 +6153,7 @@ void account_html(char *file, reqData *Rd, HTMLfile *thisFile)
6138 else 6153 else
6139 { 6154 {
6140 // Redirect to a GET if it was a POST. 6155 // Redirect to a GET if it was a POST.
6156 // The reason here is to avoid a refresh turning into a rePOST.
6141 if ((strcmp("POST", Rd->Method) == 0)) 6157 if ((strcmp("POST", Rd->Method) == 0))
6142 { 6158 {
6143 if ('\0' != Rd->form[0]) 6159 if ('\0' != Rd->form[0])
@@ -6161,7 +6177,7 @@ void account_html(char *file, reqData *Rd, HTMLfile *thisFile)
6161 E("Building output ERROR page %s, coz of %d errors.", iF->name, e); 6177 E("Building output ERROR page %s, coz of %d errors.", iF->name, e);
6162 else 6178 else
6163 D("Building alternate output page %s", iF->name); 6179 D("Building alternate output page %s", iF->name);
6164 // First just sort out groups, then get the data from Rd->stuff. 6180 // First just sort out input groups, then get the data from Rd->stuff.
6165 count = iF->fields->size(iF->fields); 6181 count = iF->fields->size(iF->fields);
6166 iV = xzalloc(count * sizeof(inputValue)); 6182 iV = xzalloc(count * sizeof(inputValue));
6167 collectFields(Rd, iF, iV, -1); 6183 collectFields(Rd, iF, iV, -1);
@@ -6536,7 +6552,7 @@ jit library is loaded or the JIT compiler will not be activated.
6536// TODO - it looks like OpenSim invented their own half arsed backwards INI file include system. 6552// TODO - it looks like OpenSim invented their own half arsed backwards INI file include system.
6537// I doubt qLibc supports it, like it supports what seems to be the standard include system. 6553// I doubt qLibc supports it, like it supports what seems to be the standard include system.
6538// Not sure if we need to worry about it just yet. 6554// Not sure if we need to worry about it just yet.
6539// TODO - this leaks memory, but I suspect it's a bug in qLibc. 6555// TODO - this leaks memory, but it's a bug in qLibc. Send the bug fix upstream.
6540 qlisttbl_t *qconfig = qconfig_parse_file(NULL, toybuf, '='); 6556 qlisttbl_t *qconfig = qconfig_parse_file(NULL, toybuf, '=');
6541 if (NULL == qconfig) 6557 if (NULL == qconfig)
6542 { 6558 {
@@ -7045,7 +7061,6 @@ fcgiDone:
7045 } 7061 }
7046 7062
7047 for (i = 0; i < sims->num; i++) 7063 for (i = 0; i < sims->num; i++)
7048// for (i = 0; i < 2; i++)
7049 { 7064 {
7050 char *sim = sims->sims[i], *name = getSimName(sims->sims[i]); 7065 char *sim = sims->sims[i], *name = getSimName(sims->sims[i]);
7051 7066