Fossil SCM

On the text descriptions of the various administrator settings, identify the property in the CONFIG table that is being modified.

drh 2017-07-03 19:07 trunk
Commit 3ca935ef556ef2da9659c70da75bccd13a880379dfb5b65135f10656d6e7ab25
1 file changed +55 -25
+55 -25
--- src/setup.c
+++ src/setup.c
@@ -1106,18 +1106,20 @@
11061106
11071107
style_header("Access Control Settings");
11081108
db_begin_transaction();
11091109
@ <form action="%s(g.zTop)/setup_access" method="post"><div>
11101110
login_insert_csrf_secret();
1111
+ @ <input type="submit" name="submit" value="Apply Changes" /></p>
11111112
@ <hr />
11121113
onoff_attribute("Redirect to HTTPS on the Login page",
11131114
"redirect-to-https", "redirhttps", 0, 0);
11141115
@ <p>When selected, force the use of HTTPS for the Login page.
11151116
@ <p>Details: When enabled, this option causes the $secureurl TH1
11161117
@ variable is set to an "https:" variant of $baseurl. Otherwise,
11171118
@ $secureurl is just an alias for $baseurl. Also when enabled, the
11181119
@ Login page redirects to https if accessed via http.
1120
+ @ (Property: "redirhttps")
11191121
@ <hr />
11201122
onoff_attribute("Require password for local access",
11211123
"localauth", "localauth", 0, 0);
11221124
@ <p>When enabled, the password sign-in is always required for
11231125
@ web access. When disabled, unrestricted web access from 127.0.0.1
@@ -1138,67 +1140,74 @@
11381140
@ <a href="%R/help/server">fossil http</a> commands
11391141
@ without the "--localauth" option.
11401142
@ <li> The server is started from CGI without the "localauth" keyword
11411143
@ in the CGI script.
11421144
@ </ol>
1145
+ @ (Property: "localauth")
11431146
@
11441147
@ <hr />
11451148
onoff_attribute("Enable /test_env",
11461149
"test_env_enable", "test_env_enable", 0, 0);
11471150
@ <p>When enabled, the %h(g.zBaseURL)/test_env URL is available to all
11481151
@ users. When disabled (the default) only users Admin and Setup can visit
11491152
@ the /test_env page.
1153
+ @ (Property: "test_env_enable")
11501154
@ </p>
11511155
@
11521156
@ <hr />
11531157
onoff_attribute("Allow REMOTE_USER authentication",
11541158
"remote_user_ok", "remote_user_ok", 0, 0);
11551159
@ <p>When enabled, if the REMOTE_USER environment variable is set to the
11561160
@ login name of a valid user and no other login credentials are available,
11571161
@ then the REMOTE_USER is accepted as an authenticated user.
1162
+ @ (Property: "remote_user_ok")
11581163
@ </p>
11591164
@
11601165
@ <hr />
11611166
onoff_attribute("Allow HTTP_AUTHENTICATION authentication",
11621167
"http_authentication_ok", "http_authentication_ok", 0, 0);
11631168
@ <p>When enabled, allow the use of the HTTP_AUTHENTICATION environment
11641169
@ variable or the "Authentication:" HTTP header to find the username and
11651170
@ password. This is another way of supporting Basic Authenitication.
1171
+ @ (Property: "http_authentication_ok")
11661172
@ </p>
11671173
@
11681174
@ <hr />
11691175
entry_attribute("IP address terms used in login cookie", 3,
11701176
"ip-prefix-terms", "ipt", "2", 0);
11711177
@ <p>The number of octets of of the IP address used in the login cookie.
11721178
@ Set to zero to omit the IP address from the login cookie. A value of
11731179
@ 2 is recommended.
1180
+ @ (Property: "ip-prefix-terms")
11741181
@ </p>
11751182
@
11761183
@ <hr />
11771184
entry_attribute("Login expiration time", 6, "cookie-expire", "cex",
11781185
"8766", 0);
11791186
@ <p>The number of hours for which a login is valid. This must be a
11801187
@ positive number. The default is 8766 hours which is approximately equal
1181
- @ to a year.</p>
1188
+ @ to a year.
1189
+ @ (Property: "cookie-expire")</p>
11821190
11831191
@ <hr />
11841192
entry_attribute("Download packet limit", 10, "max-download", "mxdwn",
11851193
"5000000", 0);
11861194
@ <p>Fossil tries to limit out-bound sync, clone, and pull packets
11871195
@ to this many bytes, uncompressed. If the client requires more data
11881196
@ than this, then the client will issue multiple HTTP requests.
11891197
@ Values below 1 million are not recommended. 5 million is a
1190
- @ reasonable number.</p>
1198
+ @ reasonable number. (Property: "max-download")</p>
11911199
11921200
@ <hr />
11931201
entry_attribute("Download time limit", 11, "max-download-time", "mxdwnt",
11941202
"30", 0);
11951203
11961204
@ <p>Fossil tries to spend less than this many seconds gathering
11971205
@ the out-bound data of sync, clone, and pull packets.
11981206
@ If the client request takes longer, a partial reply is given similar
1199
- @ to the download packet limit. 30s is a reasonable default.</p>
1207
+ @ to the download packet limit. 30s is a reasonable default.
1208
+ @ (Property: "max-download-time")</p>
12001209
12011210
@ <hr />
12021211
entry_attribute("Server Load Average Limit", 11, "max-loadavg", "mxldavg",
12031212
"0.0", 0);
12041213
@ <p>Some expensive operations (such as computing tarballs, zip archives,
@@ -1205,11 +1214,12 @@
12051214
@ or annotation/blame pages) are prohibited if the load average on the host
12061215
@ computer is too large. Set the threshold for disallowing expensive
12071216
@ computations here. Set this to 0.0 to disable the load average limit.
12081217
@ This limit is only enforced on Unix servers. On Linux systems,
12091218
@ access to the /proc virtual filesystem is required, which means this limit
1210
- @ might not work inside a chroot() jail.</p>
1219
+ @ might not work inside a chroot() jail.
1220
+ @ (Property: "max-loadavg")</p>
12111221
12121222
@ <hr />
12131223
onoff_attribute(
12141224
"Enable hyperlinks for \"nobody\" based on User-Agent and Javascript",
12151225
"auto-hyperlink", "autohyperlink", 1, 0);
@@ -1219,41 +1229,42 @@
12191229
@ being and not a robot or spider and (2) the user agent is able to
12201230
@ run Javascript in order to set the href= attribute of hyperlinks. Bots
12211231
@ and spiders can forge a User-Agent string that makes them seem to be a
12221232
@ normal browser and they can run javascript just like browsers. But most
12231233
@ bots do not go to that much trouble so this is normally an effective
1224
- @ defense.</p>
1234
+ @ defense.<p>
12251235
@
12261236
@ <p>You do not normally want a bot to walk your entire repository because
12271237
@ if it does, your server will end up computing diffs and annotations for
12281238
@ every historical version of every file and creating ZIPs and tarballs of
12291239
@ every historical check-in, which can use a lot of CPU and bandwidth
12301240
@ even for relatively small projects.</p>
12311241
@
12321242
@ <p>Additional parameters that control this behavior:</p>
12331243
@ <blockquote>
1234
- onoff_attribute("Enable hyperlinks for humans (as deduced from the UserAgent "
1235
- " HTTP header string)",
1236
- "auto-hyperlink-ishuman", "ahis", 0, 0);
1244
+ onoff_attribute("Enable hyperlinks for humans as deduced from the UserAgent "
1245
+ "string", "auto-hyperlink-ishuman", "ahis", 0, 0);
12371246
@ <br />
12381247
onoff_attribute("Require mouse movement before enabling hyperlinks",
12391248
"auto-hyperlink-mouseover", "ahmo", 0, 0);
12401249
@ <br />
1241
- entry_attribute("Delay before enabling hyperlinks (milliseconds)", 5,
1250
+ entry_attribute("Delay in milliseconds before enabling hyperlinks", 5,
12421251
"auto-hyperlink-delay", "ah-delay", "10", 0);
12431252
@ </blockquote>
12441253
@ <p>Hyperlinks for user "nobody" are normally enabled as soon as the page
12451254
@ finishes loading. But the first check-box below can be set to require mouse
12461255
@ movement before enabling the links. One can also set a delay prior to enabling
12471256
@ links by enter a positive number of milliseconds in the entry box above.</p>
1257
+ @ (Properties: "auto-hyperlink", "auto-hyperlink-ishuman",
1258
+ @ "auto-hyperlink-mouseover", and "auto-hyperlink-delay")</p>
12481259
12491260
@ <hr />
12501261
onoff_attribute("Require a CAPTCHA if not logged in",
12511262
"require-captcha", "reqcapt", 1, 0);
12521263
@ <p>Require a CAPTCHA for edit operations (appending, creating, or
12531264
@ editing wiki or tickets or adding attachments to wiki or tickets)
1254
- @ for users who are not logged in.</p>
1265
+ @ for users who are not logged in. (Property: "require-captcha")</p>
12551266
12561267
@ <hr />
12571268
entry_attribute("Public pages", 30, "public-pages",
12581269
"pubpage", "", 0);
12591270
@ <p>A comma-separated list of glob patterns for pages that are accessible
@@ -1260,10 +1271,11 @@
12601271
@ without needing a login and using the privileges given by the
12611272
@ "Default privileges" setting below. Example use case: Set this field
12621273
@ to "/doc/trunk/www/*" to give anonymous users read-only permission to the
12631274
@ latest version of the embedded documentation in the www/ folder without
12641275
@ allowing them to see the rest of the source code.
1276
+ @ (Property: "public-pages")
12651277
@ </p>
12661278
12671279
@ <hr />
12681280
onoff_attribute("Allow users to register themselves",
12691281
"self-register", "selfregister", 0, 0);
@@ -1270,29 +1282,30 @@
12701282
@ <p>Allow users to register themselves through the HTTP UI.
12711283
@ The registration form always requires filling in a CAPTCHA
12721284
@ (<em>auto-captcha</em> setting is ignored). Still, bear in mind that anyone
12731285
@ can register under any user name. This option is useful for public projects
12741286
@ where you do not want everyone in any ticket discussion to be named
1275
- @ "Anonymous".</p>
1287
+ @ "Anonymous". (Property: "self-register")</p>
12761288
12771289
@ <hr />
12781290
entry_attribute("Default privileges", 10, "default-perms",
12791291
"defaultperms", "u", 0);
12801292
@ <p>Permissions given to users that... <ul><li>register themselves using
12811293
@ the self-registration procedure (if enabled), or <li>access "public"
12821294
@ pages identified by the public-pages glob pattern above, or <li>
12831295
@ are users newly created by the administrator.</ul>
1296
+ @ (Property: "default-perms")
12841297
@ </p>
12851298
12861299
@ <hr />
12871300
onoff_attribute("Show javascript button to fill in CAPTCHA",
12881301
"auto-captcha", "autocaptcha", 0, 0);
12891302
@ <p>When enabled, a button appears on the login screen for user
12901303
@ "anonymous" that will automatically fill in the CAPTCHA password.
12911304
@ This is less secure than forcing the user to do it manually, but is
12921305
@ probably secure enough and it is certainly more convenient for
1293
- @ anonymous users.</p>
1306
+ @ anonymous users. (Property: "auto-captcha")</p>
12941307
12951308
@ <hr />
12961309
@ <p><input type="submit" name="submit" value="Apply Changes" /></p>
12971310
@ </div></form>
12981311
db_end_transaction(0);
@@ -1440,28 +1453,31 @@
14401453
style_header("Timeline Display Preferences");
14411454
db_begin_transaction();
14421455
@ <form action="%s(g.zTop)/setup_timeline" method="post"><div>
14431456
login_insert_csrf_secret();
14441457
1458
+ @ <p><input type="submit" name="submit" value="Apply Changes" /></p>
14451459
@ <hr />
14461460
onoff_attribute("Allow block-markup in timeline",
14471461
"timeline-block-markup", "tbm", 0, 0);
14481462
@ <p>In timeline displays, check-in comments can be displayed with or
1449
- @ without block markup (paragraphs, tables, etc.)</p>
1463
+ @ without block markup such as paragraphs, tables, etc.
1464
+ @ (Property: "timeline-block-markup")</p>
14501465
14511466
@ <hr />
14521467
onoff_attribute("Plaintext comments on timelines",
14531468
"timeline-plaintext", "tpt", 0, 0);
14541469
@ <p>In timeline displays, check-in comments are displayed literally,
1455
- @ without any wiki or HTML interpretation. (Note: Use CSS to change
1456
- @ display formatting features such as fonts and line-wrapping behavior.)</p>
1470
+ @ without any wiki or HTML interpretation. Use CSS to change
1471
+ @ display formatting features such as fonts and line-wrapping behavior.
1472
+ @ (Property: "timeline-plaintext")</p>
14571473
14581474
@ <hr />
14591475
onoff_attribute("Truncate comment at first blank line",
14601476
"timeline-truncate-at-blank", "ttb", 0, 0);
14611477
@ <p>In timeline displays, check-in comments are displayed only through
1462
- @ the first blank line.</p>
1478
+ @ the first blank line. (Property: "timeline-truncate-at-blank")</p>
14631479
14641480
@ <hr />
14651481
onoff_attribute("Use Universal Coordinated Time (UTC)",
14661482
"timeline-utc", "utc", 1, 0);
14671483
@ <p>Show times as UTC (also sometimes called Greenwich Mean Time (GMT) or
@@ -1478,32 +1494,35 @@
14781494
sqlite3_snprintf(sizeof(zTmDiff), zTmDiff, "%.1f", -tmDiff);
14791495
@ %s(zTmDiff) hours behind UTC.</p>
14801496
}else{
14811497
@ %s(zTmDiff) hours ahead of UTC.</p>
14821498
}
1483
-
1499
+ @ <p>(Property: "timeline-utc")
14841500
@ <hr />
14851501
multiple_choice_attribute("Per-Item Time Format", "timeline-date-format",
14861502
"tdf", "0", count(azTimeFormats)/2, azTimeFormats);
14871503
@ <p>If the "HH:MM" or "HH:MM:SS" format is selected, then the date is shown
14881504
@ in a separate box (using CSS class "timelineDate") whenever the date changes.
14891505
@ With the "YYYY-MM-DD&nbsp;HH:MM" and "YYMMDD ..." formats, the complete date
1490
- @ and time is shown on every timeline entry (using the CSS class "timelineTime").</p>
1506
+ @ and time is shown on every timeline entry using the CSS class "timelineTime".
1507
+ @ (Preperty: "timeline-date-format")</p>
14911508
14921509
@ <hr />
14931510
onoff_attribute("Show version differences by default",
14941511
"show-version-diffs", "vdiff", 0, 0);
14951512
@ <p>The version-information pages linked from the timeline can either
14961513
@ show complete diffs of all file changes, or can just list the names of
14971514
@ the files that have changed. Users can get to either page by
1498
- @ clicking. This setting selects the default.</p>
1515
+ @ clicking. This setting selects the default.
1516
+ @ (Property: "show-version-diffs")</p>
14991517
15001518
@ <hr />
15011519
entry_attribute("Max timeline comment length", 6,
15021520
"timeline-max-comment", "tmc", "0", 0);
15031521
@ <p>The maximum length of a comment to be displayed in a timeline.
1504
- @ "0" there is no length limit.</p>
1522
+ @ "0" there is no length limit.
1523
+ @ (Property: "timeline-max-comment")</p>
15051524
15061525
@ <hr />
15071526
@ <p><input type="submit" name="submit" value="Apply Changes" /></p>
15081527
@ </div></form>
15091528
db_end_transaction(0);
@@ -1609,33 +1628,38 @@
16091628
16101629
style_header("WWW Configuration");
16111630
db_begin_transaction();
16121631
@ <form action="%s(g.zTop)/setup_config" method="post"><div>
16131632
login_insert_csrf_secret();
1633
+ @ <input type="submit" name="submit" value="Apply Changes" /></p>
16141634
@ <hr />
16151635
entry_attribute("Project Name", 60, "project-name", "pn", "", 0);
1616
- @ <p>Give your project a name so visitors know what this site is about.
1636
+ @ <p>A brief project name so visitors know what this site is about.
16171637
@ The project name will also be used as the RSS feed title.
1638
+ @ (Property: "project-name")
16181639
@ </p>
16191640
@ <hr />
16201641
textarea_attribute("Project Description", 3, 80,
16211642
"project-description", "pd", "", 0);
16221643
@ <p>Describe your project. This will be used in page headers for search
1623
- @ engines as well as a short RSS description.</p>
1644
+ @ engines as well as a short RSS description.
1645
+ @ (Property: "project-description")</p>
16241646
@ <hr />
16251647
entry_attribute("Tarball and ZIP-archive Prefix", 20, "short-project-name", "spn", "", 0);
16261648
@ <p>This is used as a prefix on the names of generated tarballs and ZIP archive.
16271649
@ For best results, keep this prefix brief and avoid special characters such
16281650
@ as "/" and "\".
16291651
@ If no tarball prefix is specified, then the full Project Name above is used.
1652
+ @ (Property: "short-project-name")
16301653
@ </p>
16311654
@ <hr />
16321655
onoff_attribute("Enable WYSIWYG Wiki Editing",
16331656
"wysiwyg-wiki", "wysiwyg-wiki", 0, 0);
16341657
@ <p>Enable what-you-see-is-what-you-get (WYSIWYG) editing of wiki pages.
16351658
@ The WYSIWYG editor generates HTML instead of markup, which makes
1636
- @ subsequent manual editing more difficult.</p>
1659
+ @ subsequent manual editing more difficult.
1660
+ @ (Property: "wysiwyg-wiki")</p>
16371661
@ <hr />
16381662
entry_attribute("Index Page", 60, "index-page", "idxpg", "/home", 0);
16391663
@ <p>Enter the pathname of the page to display when the "Home" menu
16401664
@ option is selected and when no pathname is
16411665
@ specified in the URL. For example, if you visit the url:</p>
@@ -1653,10 +1677,11 @@
16531677
@
16541678
@ <p>Note: To avoid a redirect loop or other problems, this entry must
16551679
@ begin with "/" and it must specify a valid page. For example,
16561680
@ "<b>/home</b>" will work but "<b>home</b>" will not, since it omits the
16571681
@ leading "/".</p>
1682
+ @ <p>(Property: "index-page")
16581683
@ <hr />
16591684
onoff_attribute("Use HTML as wiki markup language",
16601685
"wiki-use-html", "wiki-use-html", 0, 0);
16611686
@ <p>Use HTML as the wiki markup language. Wiki links will still be parsed
16621687
@ but all other wiki formatting will be ignored. This option is helpful
@@ -1667,10 +1692,11 @@
16671692
@ No sanitization is done. This means that it is very possible for malicious
16681693
@ users to inject dangerous HTML, CSS and JavaScript code into your wiki.</p>
16691694
@ <p>This should <strong>only</strong> be enabled when wiki editing is limited
16701695
@ to trusted users. It should <strong>not</strong> be used on a publically
16711696
@ editable wiki.</p>
1697
+ @ (Property: "wiki-use-html")
16721698
@ <hr />
16731699
@ <p><input type="submit" name="submit" value="Apply Changes" /></p>
16741700
@ </div></form>
16751701
db_end_transaction(0);
16761702
style_footer();
@@ -1699,11 +1725,11 @@
16991725
@ by a ticket moderator - a user with the "q" or Mod-Tkt privilege.
17001726
@ Ticket changes enter the system and are shown locally, but are not
17011727
@ synced until they are approved. The moderator has the option to
17021728
@ delete the change rather than approve it. Ticket changes made by
17031729
@ a user who has the Mod-Tkt privilege are never subject to
1704
- @ moderation.
1730
+ @ moderation. (Property: "modreq-tkt")
17051731
@
17061732
@ <hr />
17071733
onoff_attribute("Moderate wiki changes",
17081734
"modreq-wiki", "modreq-wiki", 0, 0);
17091735
@ <p>When enabled, any change to wiki is subject to the approval
@@ -1710,11 +1736,11 @@
17101736
@ by a wiki moderator - a user with the "l" or Mod-Wiki privilege.
17111737
@ Wiki changes enter the system and are shown locally, but are not
17121738
@ synced until they are approved. The moderator has the option to
17131739
@ delete the change rather than approve it. Wiki changes made by
17141740
@ a user who has the Mod-Wiki privilege are never subject to
1715
- @ moderation.
1741
+ @ moderation. (Property: "modreq-wiki")
17161742
@ </p>
17171743
17181744
@ <hr />
17191745
@ <p><input type="submit" name="submit" value="Apply Changes" /></p>
17201746
@ </div></form>
@@ -1763,10 +1789,12 @@
17631789
@ <b>Ad-Unit Notes:</b><ul>
17641790
@ <li>Leave both Ad-Units blank to disable all advertising.
17651791
@ <li>The "Banner Ad-Unit" is used for wide pages.
17661792
@ <li>The "Right-Column Ad-Unit" is used on pages with tall, narrow content.
17671793
@ <li>If the "Right-Column Ad-Unit" is blank, the "Banner Ad-Unit" is used on all pages.
1794
+ @ <li>Properties: "adunit", "adunit-right", "adunit-omit-if-admin", and
1795
+ @ "adunit-omit-if-user".
17681796
@ <li>Suggested <a href="setup_skinedit?w=0">CSS</a> changes:
17691797
@ <blockquote><pre>
17701798
@ div.adunit_banner {
17711799
@ margin: auto;
17721800
@ width: 100%%;
@@ -1888,10 +1916,11 @@
18881916
@ Logo Image file:
18891917
@ <input type="file" name="logoim" size="60" accept="image/*" />
18901918
@ <p align="center">
18911919
@ <input type="submit" name="setlogo" value="Change Logo" />
18921920
@ <input type="submit" name="clrlogo" value="Revert To Default" /></p>
1921
+ @ <p>(Properties: "logo-image" and "logo-mimetype")
18931922
@ </div></form>
18941923
@ <hr />
18951924
@
18961925
@ <p>The current background image has a MIME-Type of <b>%h(zBgMime)</b>
18971926
@ and looks like this:</p>
@@ -1911,10 +1940,11 @@
19111940
@ <input type="file" name="bgim" size="60" accept="image/*" />
19121941
@ <p align="center">
19131942
@ <input type="submit" name="setbg" value="Change Background" />
19141943
@ <input type="submit" name="clrbg" value="Revert To Default" /></p>
19151944
@ </div></form>
1945
+ @ <p>(Properties: "background-image" and "background-mimetype")
19161946
@ <hr />
19171947
@
19181948
@ <p><span class="note">Note:</span> Your browser has probably cached these
19191949
@ images, so you may need to press the Reload button before changes will
19201950
@ take effect. </p>
19211951
--- src/setup.c
+++ src/setup.c
@@ -1106,18 +1106,20 @@
1106
1107 style_header("Access Control Settings");
1108 db_begin_transaction();
1109 @ <form action="%s(g.zTop)/setup_access" method="post"><div>
1110 login_insert_csrf_secret();
 
1111 @ <hr />
1112 onoff_attribute("Redirect to HTTPS on the Login page",
1113 "redirect-to-https", "redirhttps", 0, 0);
1114 @ <p>When selected, force the use of HTTPS for the Login page.
1115 @ <p>Details: When enabled, this option causes the $secureurl TH1
1116 @ variable is set to an "https:" variant of $baseurl. Otherwise,
1117 @ $secureurl is just an alias for $baseurl. Also when enabled, the
1118 @ Login page redirects to https if accessed via http.
 
1119 @ <hr />
1120 onoff_attribute("Require password for local access",
1121 "localauth", "localauth", 0, 0);
1122 @ <p>When enabled, the password sign-in is always required for
1123 @ web access. When disabled, unrestricted web access from 127.0.0.1
@@ -1138,67 +1140,74 @@
1138 @ <a href="%R/help/server">fossil http</a> commands
1139 @ without the "--localauth" option.
1140 @ <li> The server is started from CGI without the "localauth" keyword
1141 @ in the CGI script.
1142 @ </ol>
 
1143 @
1144 @ <hr />
1145 onoff_attribute("Enable /test_env",
1146 "test_env_enable", "test_env_enable", 0, 0);
1147 @ <p>When enabled, the %h(g.zBaseURL)/test_env URL is available to all
1148 @ users. When disabled (the default) only users Admin and Setup can visit
1149 @ the /test_env page.
 
1150 @ </p>
1151 @
1152 @ <hr />
1153 onoff_attribute("Allow REMOTE_USER authentication",
1154 "remote_user_ok", "remote_user_ok", 0, 0);
1155 @ <p>When enabled, if the REMOTE_USER environment variable is set to the
1156 @ login name of a valid user and no other login credentials are available,
1157 @ then the REMOTE_USER is accepted as an authenticated user.
 
1158 @ </p>
1159 @
1160 @ <hr />
1161 onoff_attribute("Allow HTTP_AUTHENTICATION authentication",
1162 "http_authentication_ok", "http_authentication_ok", 0, 0);
1163 @ <p>When enabled, allow the use of the HTTP_AUTHENTICATION environment
1164 @ variable or the "Authentication:" HTTP header to find the username and
1165 @ password. This is another way of supporting Basic Authenitication.
 
1166 @ </p>
1167 @
1168 @ <hr />
1169 entry_attribute("IP address terms used in login cookie", 3,
1170 "ip-prefix-terms", "ipt", "2", 0);
1171 @ <p>The number of octets of of the IP address used in the login cookie.
1172 @ Set to zero to omit the IP address from the login cookie. A value of
1173 @ 2 is recommended.
 
1174 @ </p>
1175 @
1176 @ <hr />
1177 entry_attribute("Login expiration time", 6, "cookie-expire", "cex",
1178 "8766", 0);
1179 @ <p>The number of hours for which a login is valid. This must be a
1180 @ positive number. The default is 8766 hours which is approximately equal
1181 @ to a year.</p>
 
1182
1183 @ <hr />
1184 entry_attribute("Download packet limit", 10, "max-download", "mxdwn",
1185 "5000000", 0);
1186 @ <p>Fossil tries to limit out-bound sync, clone, and pull packets
1187 @ to this many bytes, uncompressed. If the client requires more data
1188 @ than this, then the client will issue multiple HTTP requests.
1189 @ Values below 1 million are not recommended. 5 million is a
1190 @ reasonable number.</p>
1191
1192 @ <hr />
1193 entry_attribute("Download time limit", 11, "max-download-time", "mxdwnt",
1194 "30", 0);
1195
1196 @ <p>Fossil tries to spend less than this many seconds gathering
1197 @ the out-bound data of sync, clone, and pull packets.
1198 @ If the client request takes longer, a partial reply is given similar
1199 @ to the download packet limit. 30s is a reasonable default.</p>
 
1200
1201 @ <hr />
1202 entry_attribute("Server Load Average Limit", 11, "max-loadavg", "mxldavg",
1203 "0.0", 0);
1204 @ <p>Some expensive operations (such as computing tarballs, zip archives,
@@ -1205,11 +1214,12 @@
1205 @ or annotation/blame pages) are prohibited if the load average on the host
1206 @ computer is too large. Set the threshold for disallowing expensive
1207 @ computations here. Set this to 0.0 to disable the load average limit.
1208 @ This limit is only enforced on Unix servers. On Linux systems,
1209 @ access to the /proc virtual filesystem is required, which means this limit
1210 @ might not work inside a chroot() jail.</p>
 
1211
1212 @ <hr />
1213 onoff_attribute(
1214 "Enable hyperlinks for \"nobody\" based on User-Agent and Javascript",
1215 "auto-hyperlink", "autohyperlink", 1, 0);
@@ -1219,41 +1229,42 @@
1219 @ being and not a robot or spider and (2) the user agent is able to
1220 @ run Javascript in order to set the href= attribute of hyperlinks. Bots
1221 @ and spiders can forge a User-Agent string that makes them seem to be a
1222 @ normal browser and they can run javascript just like browsers. But most
1223 @ bots do not go to that much trouble so this is normally an effective
1224 @ defense.</p>
1225 @
1226 @ <p>You do not normally want a bot to walk your entire repository because
1227 @ if it does, your server will end up computing diffs and annotations for
1228 @ every historical version of every file and creating ZIPs and tarballs of
1229 @ every historical check-in, which can use a lot of CPU and bandwidth
1230 @ even for relatively small projects.</p>
1231 @
1232 @ <p>Additional parameters that control this behavior:</p>
1233 @ <blockquote>
1234 onoff_attribute("Enable hyperlinks for humans (as deduced from the UserAgent "
1235 " HTTP header string)",
1236 "auto-hyperlink-ishuman", "ahis", 0, 0);
1237 @ <br />
1238 onoff_attribute("Require mouse movement before enabling hyperlinks",
1239 "auto-hyperlink-mouseover", "ahmo", 0, 0);
1240 @ <br />
1241 entry_attribute("Delay before enabling hyperlinks (milliseconds)", 5,
1242 "auto-hyperlink-delay", "ah-delay", "10", 0);
1243 @ </blockquote>
1244 @ <p>Hyperlinks for user "nobody" are normally enabled as soon as the page
1245 @ finishes loading. But the first check-box below can be set to require mouse
1246 @ movement before enabling the links. One can also set a delay prior to enabling
1247 @ links by enter a positive number of milliseconds in the entry box above.</p>
 
 
1248
1249 @ <hr />
1250 onoff_attribute("Require a CAPTCHA if not logged in",
1251 "require-captcha", "reqcapt", 1, 0);
1252 @ <p>Require a CAPTCHA for edit operations (appending, creating, or
1253 @ editing wiki or tickets or adding attachments to wiki or tickets)
1254 @ for users who are not logged in.</p>
1255
1256 @ <hr />
1257 entry_attribute("Public pages", 30, "public-pages",
1258 "pubpage", "", 0);
1259 @ <p>A comma-separated list of glob patterns for pages that are accessible
@@ -1260,10 +1271,11 @@
1260 @ without needing a login and using the privileges given by the
1261 @ "Default privileges" setting below. Example use case: Set this field
1262 @ to "/doc/trunk/www/*" to give anonymous users read-only permission to the
1263 @ latest version of the embedded documentation in the www/ folder without
1264 @ allowing them to see the rest of the source code.
 
1265 @ </p>
1266
1267 @ <hr />
1268 onoff_attribute("Allow users to register themselves",
1269 "self-register", "selfregister", 0, 0);
@@ -1270,29 +1282,30 @@
1270 @ <p>Allow users to register themselves through the HTTP UI.
1271 @ The registration form always requires filling in a CAPTCHA
1272 @ (<em>auto-captcha</em> setting is ignored). Still, bear in mind that anyone
1273 @ can register under any user name. This option is useful for public projects
1274 @ where you do not want everyone in any ticket discussion to be named
1275 @ "Anonymous".</p>
1276
1277 @ <hr />
1278 entry_attribute("Default privileges", 10, "default-perms",
1279 "defaultperms", "u", 0);
1280 @ <p>Permissions given to users that... <ul><li>register themselves using
1281 @ the self-registration procedure (if enabled), or <li>access "public"
1282 @ pages identified by the public-pages glob pattern above, or <li>
1283 @ are users newly created by the administrator.</ul>
 
1284 @ </p>
1285
1286 @ <hr />
1287 onoff_attribute("Show javascript button to fill in CAPTCHA",
1288 "auto-captcha", "autocaptcha", 0, 0);
1289 @ <p>When enabled, a button appears on the login screen for user
1290 @ "anonymous" that will automatically fill in the CAPTCHA password.
1291 @ This is less secure than forcing the user to do it manually, but is
1292 @ probably secure enough and it is certainly more convenient for
1293 @ anonymous users.</p>
1294
1295 @ <hr />
1296 @ <p><input type="submit" name="submit" value="Apply Changes" /></p>
1297 @ </div></form>
1298 db_end_transaction(0);
@@ -1440,28 +1453,31 @@
1440 style_header("Timeline Display Preferences");
1441 db_begin_transaction();
1442 @ <form action="%s(g.zTop)/setup_timeline" method="post"><div>
1443 login_insert_csrf_secret();
1444
 
1445 @ <hr />
1446 onoff_attribute("Allow block-markup in timeline",
1447 "timeline-block-markup", "tbm", 0, 0);
1448 @ <p>In timeline displays, check-in comments can be displayed with or
1449 @ without block markup (paragraphs, tables, etc.)</p>
 
1450
1451 @ <hr />
1452 onoff_attribute("Plaintext comments on timelines",
1453 "timeline-plaintext", "tpt", 0, 0);
1454 @ <p>In timeline displays, check-in comments are displayed literally,
1455 @ without any wiki or HTML interpretation. (Note: Use CSS to change
1456 @ display formatting features such as fonts and line-wrapping behavior.)</p>
 
1457
1458 @ <hr />
1459 onoff_attribute("Truncate comment at first blank line",
1460 "timeline-truncate-at-blank", "ttb", 0, 0);
1461 @ <p>In timeline displays, check-in comments are displayed only through
1462 @ the first blank line.</p>
1463
1464 @ <hr />
1465 onoff_attribute("Use Universal Coordinated Time (UTC)",
1466 "timeline-utc", "utc", 1, 0);
1467 @ <p>Show times as UTC (also sometimes called Greenwich Mean Time (GMT) or
@@ -1478,32 +1494,35 @@
1478 sqlite3_snprintf(sizeof(zTmDiff), zTmDiff, "%.1f", -tmDiff);
1479 @ %s(zTmDiff) hours behind UTC.</p>
1480 }else{
1481 @ %s(zTmDiff) hours ahead of UTC.</p>
1482 }
1483
1484 @ <hr />
1485 multiple_choice_attribute("Per-Item Time Format", "timeline-date-format",
1486 "tdf", "0", count(azTimeFormats)/2, azTimeFormats);
1487 @ <p>If the "HH:MM" or "HH:MM:SS" format is selected, then the date is shown
1488 @ in a separate box (using CSS class "timelineDate") whenever the date changes.
1489 @ With the "YYYY-MM-DD&nbsp;HH:MM" and "YYMMDD ..." formats, the complete date
1490 @ and time is shown on every timeline entry (using the CSS class "timelineTime").</p>
 
1491
1492 @ <hr />
1493 onoff_attribute("Show version differences by default",
1494 "show-version-diffs", "vdiff", 0, 0);
1495 @ <p>The version-information pages linked from the timeline can either
1496 @ show complete diffs of all file changes, or can just list the names of
1497 @ the files that have changed. Users can get to either page by
1498 @ clicking. This setting selects the default.</p>
 
1499
1500 @ <hr />
1501 entry_attribute("Max timeline comment length", 6,
1502 "timeline-max-comment", "tmc", "0", 0);
1503 @ <p>The maximum length of a comment to be displayed in a timeline.
1504 @ "0" there is no length limit.</p>
 
1505
1506 @ <hr />
1507 @ <p><input type="submit" name="submit" value="Apply Changes" /></p>
1508 @ </div></form>
1509 db_end_transaction(0);
@@ -1609,33 +1628,38 @@
1609
1610 style_header("WWW Configuration");
1611 db_begin_transaction();
1612 @ <form action="%s(g.zTop)/setup_config" method="post"><div>
1613 login_insert_csrf_secret();
 
1614 @ <hr />
1615 entry_attribute("Project Name", 60, "project-name", "pn", "", 0);
1616 @ <p>Give your project a name so visitors know what this site is about.
1617 @ The project name will also be used as the RSS feed title.
 
1618 @ </p>
1619 @ <hr />
1620 textarea_attribute("Project Description", 3, 80,
1621 "project-description", "pd", "", 0);
1622 @ <p>Describe your project. This will be used in page headers for search
1623 @ engines as well as a short RSS description.</p>
 
1624 @ <hr />
1625 entry_attribute("Tarball and ZIP-archive Prefix", 20, "short-project-name", "spn", "", 0);
1626 @ <p>This is used as a prefix on the names of generated tarballs and ZIP archive.
1627 @ For best results, keep this prefix brief and avoid special characters such
1628 @ as "/" and "\".
1629 @ If no tarball prefix is specified, then the full Project Name above is used.
 
1630 @ </p>
1631 @ <hr />
1632 onoff_attribute("Enable WYSIWYG Wiki Editing",
1633 "wysiwyg-wiki", "wysiwyg-wiki", 0, 0);
1634 @ <p>Enable what-you-see-is-what-you-get (WYSIWYG) editing of wiki pages.
1635 @ The WYSIWYG editor generates HTML instead of markup, which makes
1636 @ subsequent manual editing more difficult.</p>
 
1637 @ <hr />
1638 entry_attribute("Index Page", 60, "index-page", "idxpg", "/home", 0);
1639 @ <p>Enter the pathname of the page to display when the "Home" menu
1640 @ option is selected and when no pathname is
1641 @ specified in the URL. For example, if you visit the url:</p>
@@ -1653,10 +1677,11 @@
1653 @
1654 @ <p>Note: To avoid a redirect loop or other problems, this entry must
1655 @ begin with "/" and it must specify a valid page. For example,
1656 @ "<b>/home</b>" will work but "<b>home</b>" will not, since it omits the
1657 @ leading "/".</p>
 
1658 @ <hr />
1659 onoff_attribute("Use HTML as wiki markup language",
1660 "wiki-use-html", "wiki-use-html", 0, 0);
1661 @ <p>Use HTML as the wiki markup language. Wiki links will still be parsed
1662 @ but all other wiki formatting will be ignored. This option is helpful
@@ -1667,10 +1692,11 @@
1667 @ No sanitization is done. This means that it is very possible for malicious
1668 @ users to inject dangerous HTML, CSS and JavaScript code into your wiki.</p>
1669 @ <p>This should <strong>only</strong> be enabled when wiki editing is limited
1670 @ to trusted users. It should <strong>not</strong> be used on a publically
1671 @ editable wiki.</p>
 
1672 @ <hr />
1673 @ <p><input type="submit" name="submit" value="Apply Changes" /></p>
1674 @ </div></form>
1675 db_end_transaction(0);
1676 style_footer();
@@ -1699,11 +1725,11 @@
1699 @ by a ticket moderator - a user with the "q" or Mod-Tkt privilege.
1700 @ Ticket changes enter the system and are shown locally, but are not
1701 @ synced until they are approved. The moderator has the option to
1702 @ delete the change rather than approve it. Ticket changes made by
1703 @ a user who has the Mod-Tkt privilege are never subject to
1704 @ moderation.
1705 @
1706 @ <hr />
1707 onoff_attribute("Moderate wiki changes",
1708 "modreq-wiki", "modreq-wiki", 0, 0);
1709 @ <p>When enabled, any change to wiki is subject to the approval
@@ -1710,11 +1736,11 @@
1710 @ by a wiki moderator - a user with the "l" or Mod-Wiki privilege.
1711 @ Wiki changes enter the system and are shown locally, but are not
1712 @ synced until they are approved. The moderator has the option to
1713 @ delete the change rather than approve it. Wiki changes made by
1714 @ a user who has the Mod-Wiki privilege are never subject to
1715 @ moderation.
1716 @ </p>
1717
1718 @ <hr />
1719 @ <p><input type="submit" name="submit" value="Apply Changes" /></p>
1720 @ </div></form>
@@ -1763,10 +1789,12 @@
1763 @ <b>Ad-Unit Notes:</b><ul>
1764 @ <li>Leave both Ad-Units blank to disable all advertising.
1765 @ <li>The "Banner Ad-Unit" is used for wide pages.
1766 @ <li>The "Right-Column Ad-Unit" is used on pages with tall, narrow content.
1767 @ <li>If the "Right-Column Ad-Unit" is blank, the "Banner Ad-Unit" is used on all pages.
 
 
1768 @ <li>Suggested <a href="setup_skinedit?w=0">CSS</a> changes:
1769 @ <blockquote><pre>
1770 @ div.adunit_banner {
1771 @ margin: auto;
1772 @ width: 100%%;
@@ -1888,10 +1916,11 @@
1888 @ Logo Image file:
1889 @ <input type="file" name="logoim" size="60" accept="image/*" />
1890 @ <p align="center">
1891 @ <input type="submit" name="setlogo" value="Change Logo" />
1892 @ <input type="submit" name="clrlogo" value="Revert To Default" /></p>
 
1893 @ </div></form>
1894 @ <hr />
1895 @
1896 @ <p>The current background image has a MIME-Type of <b>%h(zBgMime)</b>
1897 @ and looks like this:</p>
@@ -1911,10 +1940,11 @@
1911 @ <input type="file" name="bgim" size="60" accept="image/*" />
1912 @ <p align="center">
1913 @ <input type="submit" name="setbg" value="Change Background" />
1914 @ <input type="submit" name="clrbg" value="Revert To Default" /></p>
1915 @ </div></form>
 
1916 @ <hr />
1917 @
1918 @ <p><span class="note">Note:</span> Your browser has probably cached these
1919 @ images, so you may need to press the Reload button before changes will
1920 @ take effect. </p>
1921
--- src/setup.c
+++ src/setup.c
@@ -1106,18 +1106,20 @@
1106
1107 style_header("Access Control Settings");
1108 db_begin_transaction();
1109 @ <form action="%s(g.zTop)/setup_access" method="post"><div>
1110 login_insert_csrf_secret();
1111 @ <input type="submit" name="submit" value="Apply Changes" /></p>
1112 @ <hr />
1113 onoff_attribute("Redirect to HTTPS on the Login page",
1114 "redirect-to-https", "redirhttps", 0, 0);
1115 @ <p>When selected, force the use of HTTPS for the Login page.
1116 @ <p>Details: When enabled, this option causes the $secureurl TH1
1117 @ variable is set to an "https:" variant of $baseurl. Otherwise,
1118 @ $secureurl is just an alias for $baseurl. Also when enabled, the
1119 @ Login page redirects to https if accessed via http.
1120 @ (Property: "redirhttps")
1121 @ <hr />
1122 onoff_attribute("Require password for local access",
1123 "localauth", "localauth", 0, 0);
1124 @ <p>When enabled, the password sign-in is always required for
1125 @ web access. When disabled, unrestricted web access from 127.0.0.1
@@ -1138,67 +1140,74 @@
1140 @ <a href="%R/help/server">fossil http</a> commands
1141 @ without the "--localauth" option.
1142 @ <li> The server is started from CGI without the "localauth" keyword
1143 @ in the CGI script.
1144 @ </ol>
1145 @ (Property: "localauth")
1146 @
1147 @ <hr />
1148 onoff_attribute("Enable /test_env",
1149 "test_env_enable", "test_env_enable", 0, 0);
1150 @ <p>When enabled, the %h(g.zBaseURL)/test_env URL is available to all
1151 @ users. When disabled (the default) only users Admin and Setup can visit
1152 @ the /test_env page.
1153 @ (Property: "test_env_enable")
1154 @ </p>
1155 @
1156 @ <hr />
1157 onoff_attribute("Allow REMOTE_USER authentication",
1158 "remote_user_ok", "remote_user_ok", 0, 0);
1159 @ <p>When enabled, if the REMOTE_USER environment variable is set to the
1160 @ login name of a valid user and no other login credentials are available,
1161 @ then the REMOTE_USER is accepted as an authenticated user.
1162 @ (Property: "remote_user_ok")
1163 @ </p>
1164 @
1165 @ <hr />
1166 onoff_attribute("Allow HTTP_AUTHENTICATION authentication",
1167 "http_authentication_ok", "http_authentication_ok", 0, 0);
1168 @ <p>When enabled, allow the use of the HTTP_AUTHENTICATION environment
1169 @ variable or the "Authentication:" HTTP header to find the username and
1170 @ password. This is another way of supporting Basic Authenitication.
1171 @ (Property: "http_authentication_ok")
1172 @ </p>
1173 @
1174 @ <hr />
1175 entry_attribute("IP address terms used in login cookie", 3,
1176 "ip-prefix-terms", "ipt", "2", 0);
1177 @ <p>The number of octets of of the IP address used in the login cookie.
1178 @ Set to zero to omit the IP address from the login cookie. A value of
1179 @ 2 is recommended.
1180 @ (Property: "ip-prefix-terms")
1181 @ </p>
1182 @
1183 @ <hr />
1184 entry_attribute("Login expiration time", 6, "cookie-expire", "cex",
1185 "8766", 0);
1186 @ <p>The number of hours for which a login is valid. This must be a
1187 @ positive number. The default is 8766 hours which is approximately equal
1188 @ to a year.
1189 @ (Property: "cookie-expire")</p>
1190
1191 @ <hr />
1192 entry_attribute("Download packet limit", 10, "max-download", "mxdwn",
1193 "5000000", 0);
1194 @ <p>Fossil tries to limit out-bound sync, clone, and pull packets
1195 @ to this many bytes, uncompressed. If the client requires more data
1196 @ than this, then the client will issue multiple HTTP requests.
1197 @ Values below 1 million are not recommended. 5 million is a
1198 @ reasonable number. (Property: "max-download")</p>
1199
1200 @ <hr />
1201 entry_attribute("Download time limit", 11, "max-download-time", "mxdwnt",
1202 "30", 0);
1203
1204 @ <p>Fossil tries to spend less than this many seconds gathering
1205 @ the out-bound data of sync, clone, and pull packets.
1206 @ If the client request takes longer, a partial reply is given similar
1207 @ to the download packet limit. 30s is a reasonable default.
1208 @ (Property: "max-download-time")</p>
1209
1210 @ <hr />
1211 entry_attribute("Server Load Average Limit", 11, "max-loadavg", "mxldavg",
1212 "0.0", 0);
1213 @ <p>Some expensive operations (such as computing tarballs, zip archives,
@@ -1205,11 +1214,12 @@
1214 @ or annotation/blame pages) are prohibited if the load average on the host
1215 @ computer is too large. Set the threshold for disallowing expensive
1216 @ computations here. Set this to 0.0 to disable the load average limit.
1217 @ This limit is only enforced on Unix servers. On Linux systems,
1218 @ access to the /proc virtual filesystem is required, which means this limit
1219 @ might not work inside a chroot() jail.
1220 @ (Property: "max-loadavg")</p>
1221
1222 @ <hr />
1223 onoff_attribute(
1224 "Enable hyperlinks for \"nobody\" based on User-Agent and Javascript",
1225 "auto-hyperlink", "autohyperlink", 1, 0);
@@ -1219,41 +1229,42 @@
1229 @ being and not a robot or spider and (2) the user agent is able to
1230 @ run Javascript in order to set the href= attribute of hyperlinks. Bots
1231 @ and spiders can forge a User-Agent string that makes them seem to be a
1232 @ normal browser and they can run javascript just like browsers. But most
1233 @ bots do not go to that much trouble so this is normally an effective
1234 @ defense.<p>
1235 @
1236 @ <p>You do not normally want a bot to walk your entire repository because
1237 @ if it does, your server will end up computing diffs and annotations for
1238 @ every historical version of every file and creating ZIPs and tarballs of
1239 @ every historical check-in, which can use a lot of CPU and bandwidth
1240 @ even for relatively small projects.</p>
1241 @
1242 @ <p>Additional parameters that control this behavior:</p>
1243 @ <blockquote>
1244 onoff_attribute("Enable hyperlinks for humans as deduced from the UserAgent "
1245 "string", "auto-hyperlink-ishuman", "ahis", 0, 0);
 
1246 @ <br />
1247 onoff_attribute("Require mouse movement before enabling hyperlinks",
1248 "auto-hyperlink-mouseover", "ahmo", 0, 0);
1249 @ <br />
1250 entry_attribute("Delay in milliseconds before enabling hyperlinks", 5,
1251 "auto-hyperlink-delay", "ah-delay", "10", 0);
1252 @ </blockquote>
1253 @ <p>Hyperlinks for user "nobody" are normally enabled as soon as the page
1254 @ finishes loading. But the first check-box below can be set to require mouse
1255 @ movement before enabling the links. One can also set a delay prior to enabling
1256 @ links by enter a positive number of milliseconds in the entry box above.</p>
1257 @ (Properties: "auto-hyperlink", "auto-hyperlink-ishuman",
1258 @ "auto-hyperlink-mouseover", and "auto-hyperlink-delay")</p>
1259
1260 @ <hr />
1261 onoff_attribute("Require a CAPTCHA if not logged in",
1262 "require-captcha", "reqcapt", 1, 0);
1263 @ <p>Require a CAPTCHA for edit operations (appending, creating, or
1264 @ editing wiki or tickets or adding attachments to wiki or tickets)
1265 @ for users who are not logged in. (Property: "require-captcha")</p>
1266
1267 @ <hr />
1268 entry_attribute("Public pages", 30, "public-pages",
1269 "pubpage", "", 0);
1270 @ <p>A comma-separated list of glob patterns for pages that are accessible
@@ -1260,10 +1271,11 @@
1271 @ without needing a login and using the privileges given by the
1272 @ "Default privileges" setting below. Example use case: Set this field
1273 @ to "/doc/trunk/www/*" to give anonymous users read-only permission to the
1274 @ latest version of the embedded documentation in the www/ folder without
1275 @ allowing them to see the rest of the source code.
1276 @ (Property: "public-pages")
1277 @ </p>
1278
1279 @ <hr />
1280 onoff_attribute("Allow users to register themselves",
1281 "self-register", "selfregister", 0, 0);
@@ -1270,29 +1282,30 @@
1282 @ <p>Allow users to register themselves through the HTTP UI.
1283 @ The registration form always requires filling in a CAPTCHA
1284 @ (<em>auto-captcha</em> setting is ignored). Still, bear in mind that anyone
1285 @ can register under any user name. This option is useful for public projects
1286 @ where you do not want everyone in any ticket discussion to be named
1287 @ "Anonymous". (Property: "self-register")</p>
1288
1289 @ <hr />
1290 entry_attribute("Default privileges", 10, "default-perms",
1291 "defaultperms", "u", 0);
1292 @ <p>Permissions given to users that... <ul><li>register themselves using
1293 @ the self-registration procedure (if enabled), or <li>access "public"
1294 @ pages identified by the public-pages glob pattern above, or <li>
1295 @ are users newly created by the administrator.</ul>
1296 @ (Property: "default-perms")
1297 @ </p>
1298
1299 @ <hr />
1300 onoff_attribute("Show javascript button to fill in CAPTCHA",
1301 "auto-captcha", "autocaptcha", 0, 0);
1302 @ <p>When enabled, a button appears on the login screen for user
1303 @ "anonymous" that will automatically fill in the CAPTCHA password.
1304 @ This is less secure than forcing the user to do it manually, but is
1305 @ probably secure enough and it is certainly more convenient for
1306 @ anonymous users. (Property: "auto-captcha")</p>
1307
1308 @ <hr />
1309 @ <p><input type="submit" name="submit" value="Apply Changes" /></p>
1310 @ </div></form>
1311 db_end_transaction(0);
@@ -1440,28 +1453,31 @@
1453 style_header("Timeline Display Preferences");
1454 db_begin_transaction();
1455 @ <form action="%s(g.zTop)/setup_timeline" method="post"><div>
1456 login_insert_csrf_secret();
1457
1458 @ <p><input type="submit" name="submit" value="Apply Changes" /></p>
1459 @ <hr />
1460 onoff_attribute("Allow block-markup in timeline",
1461 "timeline-block-markup", "tbm", 0, 0);
1462 @ <p>In timeline displays, check-in comments can be displayed with or
1463 @ without block markup such as paragraphs, tables, etc.
1464 @ (Property: "timeline-block-markup")</p>
1465
1466 @ <hr />
1467 onoff_attribute("Plaintext comments on timelines",
1468 "timeline-plaintext", "tpt", 0, 0);
1469 @ <p>In timeline displays, check-in comments are displayed literally,
1470 @ without any wiki or HTML interpretation. Use CSS to change
1471 @ display formatting features such as fonts and line-wrapping behavior.
1472 @ (Property: "timeline-plaintext")</p>
1473
1474 @ <hr />
1475 onoff_attribute("Truncate comment at first blank line",
1476 "timeline-truncate-at-blank", "ttb", 0, 0);
1477 @ <p>In timeline displays, check-in comments are displayed only through
1478 @ the first blank line. (Property: "timeline-truncate-at-blank")</p>
1479
1480 @ <hr />
1481 onoff_attribute("Use Universal Coordinated Time (UTC)",
1482 "timeline-utc", "utc", 1, 0);
1483 @ <p>Show times as UTC (also sometimes called Greenwich Mean Time (GMT) or
@@ -1478,32 +1494,35 @@
1494 sqlite3_snprintf(sizeof(zTmDiff), zTmDiff, "%.1f", -tmDiff);
1495 @ %s(zTmDiff) hours behind UTC.</p>
1496 }else{
1497 @ %s(zTmDiff) hours ahead of UTC.</p>
1498 }
1499 @ <p>(Property: "timeline-utc")
1500 @ <hr />
1501 multiple_choice_attribute("Per-Item Time Format", "timeline-date-format",
1502 "tdf", "0", count(azTimeFormats)/2, azTimeFormats);
1503 @ <p>If the "HH:MM" or "HH:MM:SS" format is selected, then the date is shown
1504 @ in a separate box (using CSS class "timelineDate") whenever the date changes.
1505 @ With the "YYYY-MM-DD&nbsp;HH:MM" and "YYMMDD ..." formats, the complete date
1506 @ and time is shown on every timeline entry using the CSS class "timelineTime".
1507 @ (Preperty: "timeline-date-format")</p>
1508
1509 @ <hr />
1510 onoff_attribute("Show version differences by default",
1511 "show-version-diffs", "vdiff", 0, 0);
1512 @ <p>The version-information pages linked from the timeline can either
1513 @ show complete diffs of all file changes, or can just list the names of
1514 @ the files that have changed. Users can get to either page by
1515 @ clicking. This setting selects the default.
1516 @ (Property: "show-version-diffs")</p>
1517
1518 @ <hr />
1519 entry_attribute("Max timeline comment length", 6,
1520 "timeline-max-comment", "tmc", "0", 0);
1521 @ <p>The maximum length of a comment to be displayed in a timeline.
1522 @ "0" there is no length limit.
1523 @ (Property: "timeline-max-comment")</p>
1524
1525 @ <hr />
1526 @ <p><input type="submit" name="submit" value="Apply Changes" /></p>
1527 @ </div></form>
1528 db_end_transaction(0);
@@ -1609,33 +1628,38 @@
1628
1629 style_header("WWW Configuration");
1630 db_begin_transaction();
1631 @ <form action="%s(g.zTop)/setup_config" method="post"><div>
1632 login_insert_csrf_secret();
1633 @ <input type="submit" name="submit" value="Apply Changes" /></p>
1634 @ <hr />
1635 entry_attribute("Project Name", 60, "project-name", "pn", "", 0);
1636 @ <p>A brief project name so visitors know what this site is about.
1637 @ The project name will also be used as the RSS feed title.
1638 @ (Property: "project-name")
1639 @ </p>
1640 @ <hr />
1641 textarea_attribute("Project Description", 3, 80,
1642 "project-description", "pd", "", 0);
1643 @ <p>Describe your project. This will be used in page headers for search
1644 @ engines as well as a short RSS description.
1645 @ (Property: "project-description")</p>
1646 @ <hr />
1647 entry_attribute("Tarball and ZIP-archive Prefix", 20, "short-project-name", "spn", "", 0);
1648 @ <p>This is used as a prefix on the names of generated tarballs and ZIP archive.
1649 @ For best results, keep this prefix brief and avoid special characters such
1650 @ as "/" and "\".
1651 @ If no tarball prefix is specified, then the full Project Name above is used.
1652 @ (Property: "short-project-name")
1653 @ </p>
1654 @ <hr />
1655 onoff_attribute("Enable WYSIWYG Wiki Editing",
1656 "wysiwyg-wiki", "wysiwyg-wiki", 0, 0);
1657 @ <p>Enable what-you-see-is-what-you-get (WYSIWYG) editing of wiki pages.
1658 @ The WYSIWYG editor generates HTML instead of markup, which makes
1659 @ subsequent manual editing more difficult.
1660 @ (Property: "wysiwyg-wiki")</p>
1661 @ <hr />
1662 entry_attribute("Index Page", 60, "index-page", "idxpg", "/home", 0);
1663 @ <p>Enter the pathname of the page to display when the "Home" menu
1664 @ option is selected and when no pathname is
1665 @ specified in the URL. For example, if you visit the url:</p>
@@ -1653,10 +1677,11 @@
1677 @
1678 @ <p>Note: To avoid a redirect loop or other problems, this entry must
1679 @ begin with "/" and it must specify a valid page. For example,
1680 @ "<b>/home</b>" will work but "<b>home</b>" will not, since it omits the
1681 @ leading "/".</p>
1682 @ <p>(Property: "index-page")
1683 @ <hr />
1684 onoff_attribute("Use HTML as wiki markup language",
1685 "wiki-use-html", "wiki-use-html", 0, 0);
1686 @ <p>Use HTML as the wiki markup language. Wiki links will still be parsed
1687 @ but all other wiki formatting will be ignored. This option is helpful
@@ -1667,10 +1692,11 @@
1692 @ No sanitization is done. This means that it is very possible for malicious
1693 @ users to inject dangerous HTML, CSS and JavaScript code into your wiki.</p>
1694 @ <p>This should <strong>only</strong> be enabled when wiki editing is limited
1695 @ to trusted users. It should <strong>not</strong> be used on a publically
1696 @ editable wiki.</p>
1697 @ (Property: "wiki-use-html")
1698 @ <hr />
1699 @ <p><input type="submit" name="submit" value="Apply Changes" /></p>
1700 @ </div></form>
1701 db_end_transaction(0);
1702 style_footer();
@@ -1699,11 +1725,11 @@
1725 @ by a ticket moderator - a user with the "q" or Mod-Tkt privilege.
1726 @ Ticket changes enter the system and are shown locally, but are not
1727 @ synced until they are approved. The moderator has the option to
1728 @ delete the change rather than approve it. Ticket changes made by
1729 @ a user who has the Mod-Tkt privilege are never subject to
1730 @ moderation. (Property: "modreq-tkt")
1731 @
1732 @ <hr />
1733 onoff_attribute("Moderate wiki changes",
1734 "modreq-wiki", "modreq-wiki", 0, 0);
1735 @ <p>When enabled, any change to wiki is subject to the approval
@@ -1710,11 +1736,11 @@
1736 @ by a wiki moderator - a user with the "l" or Mod-Wiki privilege.
1737 @ Wiki changes enter the system and are shown locally, but are not
1738 @ synced until they are approved. The moderator has the option to
1739 @ delete the change rather than approve it. Wiki changes made by
1740 @ a user who has the Mod-Wiki privilege are never subject to
1741 @ moderation. (Property: "modreq-wiki")
1742 @ </p>
1743
1744 @ <hr />
1745 @ <p><input type="submit" name="submit" value="Apply Changes" /></p>
1746 @ </div></form>
@@ -1763,10 +1789,12 @@
1789 @ <b>Ad-Unit Notes:</b><ul>
1790 @ <li>Leave both Ad-Units blank to disable all advertising.
1791 @ <li>The "Banner Ad-Unit" is used for wide pages.
1792 @ <li>The "Right-Column Ad-Unit" is used on pages with tall, narrow content.
1793 @ <li>If the "Right-Column Ad-Unit" is blank, the "Banner Ad-Unit" is used on all pages.
1794 @ <li>Properties: "adunit", "adunit-right", "adunit-omit-if-admin", and
1795 @ "adunit-omit-if-user".
1796 @ <li>Suggested <a href="setup_skinedit?w=0">CSS</a> changes:
1797 @ <blockquote><pre>
1798 @ div.adunit_banner {
1799 @ margin: auto;
1800 @ width: 100%%;
@@ -1888,10 +1916,11 @@
1916 @ Logo Image file:
1917 @ <input type="file" name="logoim" size="60" accept="image/*" />
1918 @ <p align="center">
1919 @ <input type="submit" name="setlogo" value="Change Logo" />
1920 @ <input type="submit" name="clrlogo" value="Revert To Default" /></p>
1921 @ <p>(Properties: "logo-image" and "logo-mimetype")
1922 @ </div></form>
1923 @ <hr />
1924 @
1925 @ <p>The current background image has a MIME-Type of <b>%h(zBgMime)</b>
1926 @ and looks like this:</p>
@@ -1911,10 +1940,11 @@
1940 @ <input type="file" name="bgim" size="60" accept="image/*" />
1941 @ <p align="center">
1942 @ <input type="submit" name="setbg" value="Change Background" />
1943 @ <input type="submit" name="clrbg" value="Revert To Default" /></p>
1944 @ </div></form>
1945 @ <p>(Properties: "background-image" and "background-mimetype")
1946 @ <hr />
1947 @
1948 @ <p><span class="note">Note:</span> Your browser has probably cached these
1949 @ images, so you may need to press the Reload button before changes will
1950 @ take effect. </p>
1951

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button