Fossil SCM
Change the name of the /test_env page to /test-env for consistency. The old name is retained as an alias for backwards compatibility.
Commit
caf286d7480727d3341aceeb0c4a2f7b655af03e8c04df1c56ba08ac484bb56a
Parent
e8f3f411a5794c3…
4 files changed
+2
-2
+1
-1
+1
-1
+4
-3
+2
-2
| --- src/setup.c | ||
| +++ src/setup.c | ||
| @@ -462,11 +462,11 @@ | ||
| 462 | 462 | @ and "require a mouse event" should be turned on. These values only come |
| 463 | 463 | @ into play when the main auto-hyperlink settings is 2 ("UserAgent and |
| 464 | 464 | @ Javascript").</p> |
| 465 | 465 | @ |
| 466 | 466 | @ <p>To see if Javascript-base hyperlink enabling mechanism is working, |
| 467 | - @ visit the <a href="%R/test_env">/test_env</a> page (from a separate | |
| 467 | + @ visit the <a href="%R/test-env">/test-env</a> page (from a separate | |
| 468 | 468 | @ web browser that is not logged in, even as "anonymous") and verify |
| 469 | 469 | @ that the "g.jsHref" value is "1".</p> |
| 470 | 470 | @ <p>(Properties: "auto-hyperlink", "auto-hyperlink-delay", and |
| 471 | 471 | @ "auto-hyperlink-mouseover"")</p> |
| 472 | 472 | } |
| @@ -604,11 +604,11 @@ | ||
| 604 | 604 | @ in the CGI script. |
| 605 | 605 | @ </ol> |
| 606 | 606 | @ (Property: "localauth") |
| 607 | 607 | @ |
| 608 | 608 | @ <hr> |
| 609 | - onoff_attribute("Enable /test_env", | |
| 609 | + onoff_attribute("Enable /test-env", | |
| 610 | 610 | "test_env_enable", "test_env_enable", 0, 0); |
| 611 | 611 | @ <p>When enabled, the %h(g.zBaseURL)/test_env URL is available to all |
| 612 | 612 | @ users. When disabled (the default) only users Admin and Setup can visit |
| 613 | 613 | @ the /test_env page. |
| 614 | 614 | @ (Property: "test_env_enable") |
| 615 | 615 |
| --- src/setup.c | |
| +++ src/setup.c | |
| @@ -462,11 +462,11 @@ | |
| 462 | @ and "require a mouse event" should be turned on. These values only come |
| 463 | @ into play when the main auto-hyperlink settings is 2 ("UserAgent and |
| 464 | @ Javascript").</p> |
| 465 | @ |
| 466 | @ <p>To see if Javascript-base hyperlink enabling mechanism is working, |
| 467 | @ visit the <a href="%R/test_env">/test_env</a> page (from a separate |
| 468 | @ web browser that is not logged in, even as "anonymous") and verify |
| 469 | @ that the "g.jsHref" value is "1".</p> |
| 470 | @ <p>(Properties: "auto-hyperlink", "auto-hyperlink-delay", and |
| 471 | @ "auto-hyperlink-mouseover"")</p> |
| 472 | } |
| @@ -604,11 +604,11 @@ | |
| 604 | @ in the CGI script. |
| 605 | @ </ol> |
| 606 | @ (Property: "localauth") |
| 607 | @ |
| 608 | @ <hr> |
| 609 | onoff_attribute("Enable /test_env", |
| 610 | "test_env_enable", "test_env_enable", 0, 0); |
| 611 | @ <p>When enabled, the %h(g.zBaseURL)/test_env URL is available to all |
| 612 | @ users. When disabled (the default) only users Admin and Setup can visit |
| 613 | @ the /test_env page. |
| 614 | @ (Property: "test_env_enable") |
| 615 |
| --- src/setup.c | |
| +++ src/setup.c | |
| @@ -462,11 +462,11 @@ | |
| 462 | @ and "require a mouse event" should be turned on. These values only come |
| 463 | @ into play when the main auto-hyperlink settings is 2 ("UserAgent and |
| 464 | @ Javascript").</p> |
| 465 | @ |
| 466 | @ <p>To see if Javascript-base hyperlink enabling mechanism is working, |
| 467 | @ visit the <a href="%R/test-env">/test-env</a> page (from a separate |
| 468 | @ web browser that is not logged in, even as "anonymous") and verify |
| 469 | @ that the "g.jsHref" value is "1".</p> |
| 470 | @ <p>(Properties: "auto-hyperlink", "auto-hyperlink-delay", and |
| 471 | @ "auto-hyperlink-mouseover"")</p> |
| 472 | } |
| @@ -604,11 +604,11 @@ | |
| 604 | @ in the CGI script. |
| 605 | @ </ol> |
| 606 | @ (Property: "localauth") |
| 607 | @ |
| 608 | @ <hr> |
| 609 | onoff_attribute("Enable /test-env", |
| 610 | "test_env_enable", "test_env_enable", 0, 0); |
| 611 | @ <p>When enabled, the %h(g.zBaseURL)/test_env URL is available to all |
| 612 | @ users. When disabled (the default) only users Admin and Setup can visit |
| 613 | @ the /test_env page. |
| 614 | @ (Property: "test_env_enable") |
| 615 |
+1
-1
| --- src/sitemap.c | ||
| +++ src/sitemap.c | ||
| @@ -285,11 +285,11 @@ | ||
| 285 | 285 | style_header("Test Page Map"); |
| 286 | 286 | style_adunit_config(ADUNIT_RIGHT_OK); |
| 287 | 287 | } |
| 288 | 288 | @ <ul id="sitemap" class="columns" style="column-width:20em"> |
| 289 | 289 | if( g.perm.Admin || db_get_boolean("test_env_enable",0) ){ |
| 290 | - @ <li>%z(href("%R/test_env"))CGI Environment Test</a></li> | |
| 290 | + @ <li>%z(href("%R/test-env"))CGI Environment Test</a></li> | |
| 291 | 291 | } |
| 292 | 292 | if( g.perm.Read ){ |
| 293 | 293 | @ <li>%z(href("%R/test-rename-list"))List of file renames</a></li> |
| 294 | 294 | } |
| 295 | 295 | @ <li>%z(href("%R/test-builtin-files"))List of built-in files</a></li> |
| 296 | 296 |
| --- src/sitemap.c | |
| +++ src/sitemap.c | |
| @@ -285,11 +285,11 @@ | |
| 285 | style_header("Test Page Map"); |
| 286 | style_adunit_config(ADUNIT_RIGHT_OK); |
| 287 | } |
| 288 | @ <ul id="sitemap" class="columns" style="column-width:20em"> |
| 289 | if( g.perm.Admin || db_get_boolean("test_env_enable",0) ){ |
| 290 | @ <li>%z(href("%R/test_env"))CGI Environment Test</a></li> |
| 291 | } |
| 292 | if( g.perm.Read ){ |
| 293 | @ <li>%z(href("%R/test-rename-list"))List of file renames</a></li> |
| 294 | } |
| 295 | @ <li>%z(href("%R/test-builtin-files"))List of built-in files</a></li> |
| 296 |
| --- src/sitemap.c | |
| +++ src/sitemap.c | |
| @@ -285,11 +285,11 @@ | |
| 285 | style_header("Test Page Map"); |
| 286 | style_adunit_config(ADUNIT_RIGHT_OK); |
| 287 | } |
| 288 | @ <ul id="sitemap" class="columns" style="column-width:20em"> |
| 289 | if( g.perm.Admin || db_get_boolean("test_env_enable",0) ){ |
| 290 | @ <li>%z(href("%R/test-env"))CGI Environment Test</a></li> |
| 291 | } |
| 292 | if( g.perm.Read ){ |
| 293 | @ <li>%z(href("%R/test-rename-list"))List of file renames</a></li> |
| 294 | } |
| 295 | @ <li>%z(href("%R/test-builtin-files"))List of built-in files</a></li> |
| 296 |
+1
-1
| --- src/stat.c | ||
| +++ src/stat.c | ||
| @@ -166,11 +166,11 @@ | ||
| 166 | 166 | style_submenu_element("Artifacts", "bloblist"); |
| 167 | 167 | if( sqlite3_compileoption_used("ENABLE_DBSTAT_VTAB") ){ |
| 168 | 168 | style_submenu_element("Table Sizes", "repo-tabsize"); |
| 169 | 169 | } |
| 170 | 170 | if( g.perm.Admin || g.perm.Setup || db_get_boolean("test_env_enable",0) ){ |
| 171 | - style_submenu_element("Environment", "test_env"); | |
| 171 | + style_submenu_element("Environment", "test-env"); | |
| 172 | 172 | } |
| 173 | 173 | @ <table class="label-value"> |
| 174 | 174 | fsize = file_size(g.zRepositoryName, ExtFILE); |
| 175 | 175 | @ <tr><th>Repository Size:</th><td>%,lld(fsize) bytes</td> |
| 176 | 176 | @ </td></tr> |
| 177 | 177 |
| --- src/stat.c | |
| +++ src/stat.c | |
| @@ -166,11 +166,11 @@ | |
| 166 | style_submenu_element("Artifacts", "bloblist"); |
| 167 | if( sqlite3_compileoption_used("ENABLE_DBSTAT_VTAB") ){ |
| 168 | style_submenu_element("Table Sizes", "repo-tabsize"); |
| 169 | } |
| 170 | if( g.perm.Admin || g.perm.Setup || db_get_boolean("test_env_enable",0) ){ |
| 171 | style_submenu_element("Environment", "test_env"); |
| 172 | } |
| 173 | @ <table class="label-value"> |
| 174 | fsize = file_size(g.zRepositoryName, ExtFILE); |
| 175 | @ <tr><th>Repository Size:</th><td>%,lld(fsize) bytes</td> |
| 176 | @ </td></tr> |
| 177 |
| --- src/stat.c | |
| +++ src/stat.c | |
| @@ -166,11 +166,11 @@ | |
| 166 | style_submenu_element("Artifacts", "bloblist"); |
| 167 | if( sqlite3_compileoption_used("ENABLE_DBSTAT_VTAB") ){ |
| 168 | style_submenu_element("Table Sizes", "repo-tabsize"); |
| 169 | } |
| 170 | if( g.perm.Admin || g.perm.Setup || db_get_boolean("test_env_enable",0) ){ |
| 171 | style_submenu_element("Environment", "test-env"); |
| 172 | } |
| 173 | @ <table class="label-value"> |
| 174 | fsize = file_size(g.zRepositoryName, ExtFILE); |
| 175 | @ <tr><th>Repository Size:</th><td>%,lld(fsize) bytes</td> |
| 176 | @ </td></tr> |
| 177 |
+4
-3
| --- src/style.c | ||
| +++ src/style.c | ||
| @@ -1375,11 +1375,12 @@ | ||
| 1375 | 1375 | @ </form> |
| 1376 | 1376 | style_finish_page(); |
| 1377 | 1377 | } |
| 1378 | 1378 | |
| 1379 | 1379 | /* |
| 1380 | -** WEBPAGE: test_env | |
| 1380 | +** WEBPAGE: test-env | |
| 1381 | +** WEBPAGE: test_env alias | |
| 1381 | 1382 | ** |
| 1382 | 1383 | ** Display CGI-variables and other aspects of the run-time |
| 1383 | 1384 | ** environment, for debugging and trouble-shooting purposes. |
| 1384 | 1385 | */ |
| 1385 | 1386 | void page_test_env(void){ |
| @@ -1438,11 +1439,11 @@ | ||
| 1438 | 1439 | ** |
| 1439 | 1440 | ** For administators, or if the test_env_enable setting is true, then |
| 1440 | 1441 | ** details of the request environment are displayed. Otherwise, just |
| 1441 | 1442 | ** the error message is shown. |
| 1442 | 1443 | ** |
| 1443 | -** If zFormat is an empty string, then this is the /test_env page. | |
| 1444 | +** If zFormat is an empty string, then this is the /test-env page. | |
| 1444 | 1445 | */ |
| 1445 | 1446 | void webpage_error(const char *zFormat, ...){ |
| 1446 | 1447 | int showAll = 0; |
| 1447 | 1448 | char *zErr = 0; |
| 1448 | 1449 | int isAuth = 0; |
| @@ -1538,11 +1539,11 @@ | ||
| 1538 | 1539 | } |
| 1539 | 1540 | @ <hr> |
| 1540 | 1541 | P("HTTP_USER_AGENT"); |
| 1541 | 1542 | P("SERVER_SOFTWARE"); |
| 1542 | 1543 | cgi_print_all(showAll, 0, 0); |
| 1543 | - @ <p><form method="POST" action="%R/test_env"> | |
| 1544 | + @ <p><form method="POST" action="%R/test-env"> | |
| 1544 | 1545 | @ <input type="hidden" name="showall" value="%d(showAll)"> |
| 1545 | 1546 | @ <input type="submit" name="post-test-button" value="POST Test"> |
| 1546 | 1547 | @ </form> |
| 1547 | 1548 | if( showAll && blob_size(&g.httpHeader)>0 ){ |
| 1548 | 1549 | @ <hr> |
| 1549 | 1550 |
| --- src/style.c | |
| +++ src/style.c | |
| @@ -1375,11 +1375,12 @@ | |
| 1375 | @ </form> |
| 1376 | style_finish_page(); |
| 1377 | } |
| 1378 | |
| 1379 | /* |
| 1380 | ** WEBPAGE: test_env |
| 1381 | ** |
| 1382 | ** Display CGI-variables and other aspects of the run-time |
| 1383 | ** environment, for debugging and trouble-shooting purposes. |
| 1384 | */ |
| 1385 | void page_test_env(void){ |
| @@ -1438,11 +1439,11 @@ | |
| 1438 | ** |
| 1439 | ** For administators, or if the test_env_enable setting is true, then |
| 1440 | ** details of the request environment are displayed. Otherwise, just |
| 1441 | ** the error message is shown. |
| 1442 | ** |
| 1443 | ** If zFormat is an empty string, then this is the /test_env page. |
| 1444 | */ |
| 1445 | void webpage_error(const char *zFormat, ...){ |
| 1446 | int showAll = 0; |
| 1447 | char *zErr = 0; |
| 1448 | int isAuth = 0; |
| @@ -1538,11 +1539,11 @@ | |
| 1538 | } |
| 1539 | @ <hr> |
| 1540 | P("HTTP_USER_AGENT"); |
| 1541 | P("SERVER_SOFTWARE"); |
| 1542 | cgi_print_all(showAll, 0, 0); |
| 1543 | @ <p><form method="POST" action="%R/test_env"> |
| 1544 | @ <input type="hidden" name="showall" value="%d(showAll)"> |
| 1545 | @ <input type="submit" name="post-test-button" value="POST Test"> |
| 1546 | @ </form> |
| 1547 | if( showAll && blob_size(&g.httpHeader)>0 ){ |
| 1548 | @ <hr> |
| 1549 |
| --- src/style.c | |
| +++ src/style.c | |
| @@ -1375,11 +1375,12 @@ | |
| 1375 | @ </form> |
| 1376 | style_finish_page(); |
| 1377 | } |
| 1378 | |
| 1379 | /* |
| 1380 | ** WEBPAGE: test-env |
| 1381 | ** WEBPAGE: test_env alias |
| 1382 | ** |
| 1383 | ** Display CGI-variables and other aspects of the run-time |
| 1384 | ** environment, for debugging and trouble-shooting purposes. |
| 1385 | */ |
| 1386 | void page_test_env(void){ |
| @@ -1438,11 +1439,11 @@ | |
| 1439 | ** |
| 1440 | ** For administators, or if the test_env_enable setting is true, then |
| 1441 | ** details of the request environment are displayed. Otherwise, just |
| 1442 | ** the error message is shown. |
| 1443 | ** |
| 1444 | ** If zFormat is an empty string, then this is the /test-env page. |
| 1445 | */ |
| 1446 | void webpage_error(const char *zFormat, ...){ |
| 1447 | int showAll = 0; |
| 1448 | char *zErr = 0; |
| 1449 | int isAuth = 0; |
| @@ -1538,11 +1539,11 @@ | |
| 1539 | } |
| 1540 | @ <hr> |
| 1541 | P("HTTP_USER_AGENT"); |
| 1542 | P("SERVER_SOFTWARE"); |
| 1543 | cgi_print_all(showAll, 0, 0); |
| 1544 | @ <p><form method="POST" action="%R/test-env"> |
| 1545 | @ <input type="hidden" name="showall" value="%d(showAll)"> |
| 1546 | @ <input type="submit" name="post-test-button" value="POST Test"> |
| 1547 | @ </form> |
| 1548 | if( showAll && blob_size(&g.httpHeader)>0 ){ |
| 1549 | @ <hr> |
| 1550 |