459
460
461
462
463
464
465
466
467
468
469
470
471
472
|
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
|
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
|
db_set(zVar, zQ);
zVal = zQ;
}
@ <input type="text" name="%s(zQParm)" value="%h(zVal)" size="%d(width)">
@ %s(zLabel)
}
/*
** Generate a text box for an attribute.
*/
static void textarea_attribute(
const char *zLabel, /* The text label on the textarea */
int rows, /* Rows in the textarea */
int cols, /* Columns in the textarea */
const char *zVar, /* The corresponding row in the VAR table */
const char *zQParm, /* The query parameter */
const char *zDflt /* Default value if VAR table entry does not exist */
){
const char *zVal = db_get(zVar, zDflt);
const char *zQ = P(zQParm);
if( zQ && strcmp(zQ,zVal)!=0 ){
db_set(zVar, zQ);
zVal = zQ;
}
@ <textarea name="%s(zQParm)" rows="%d(rows)" cols="%d(cols)">%h(zVal)</textarea>
@ %s(zLabel)
}
/*
** WEBPAGE: setup_access
*/
void setup_access(void){
login_check_credentials();
|
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
|
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
|
-
+
+
+
+
+
+
+
+
+
|
@ (documented separately) and with the ".tkt" suffix.</p>
entry_attribute("Wiki subdirectory", 60, "wiki-subdir", "wsd", "");
@ <p>A subdirectory in the file hierarchy that contains wiki pages.
@ Leave this blank to disable wiki. Wiki pages are
@ files within this subdirectory whose name is he wiki page title
@ and with the suffix ".wiki".</p>
entry_attribute("RSS Feed Title", 60, "rss-title", "rst", "");
@ <p>The title of the RSS feed that publishes the changes to the
@ repository. If left blank, the system will generate a generic
@ title that, unfortunantly, not very helpful.</p>
textarea_attribute("RSS Feed Description", 5, 60, "rss-description", "rsd", "");
@ <p>The description of the RSS feed that publishes the changes to
@ the repository. If left blank, the system will use the RSS Feed Title.
@ <hr>
@ <p><input type="submit" name="submit" value="Apply Changes"></p>
@ </form>
db_end_transaction(0);
style_footer();
}
|