Fossil SCM
Back out check-in [fc23960258211b5bc]. This will close ticket [a534227710d3e5] but re-open ticket [3b1533a090eebd09d].
Commit
f7ec914037f76c94968af7072d107d6e3ecb45e0
Parent
822133a7638132c…
2 files changed
+33
-45
+33
-45
+33
-45
| --- src/setup.c | ||
| +++ src/setup.c | ||
| @@ -86,12 +86,10 @@ | ||
| 86 | 86 | "Show artifacts that are shunned by this repository"); |
| 87 | 87 | setup_menu_entry("Log", "rcvfromlist", |
| 88 | 88 | "A record of received artifacts and their sources"); |
| 89 | 89 | setup_menu_entry("Stats", "stat", |
| 90 | 90 | "Display repository statistics"); |
| 91 | - setup_menu_entry("Sync now", "setup_sync", | |
| 92 | - "Sync this repository with the 'remote-url' it was set up with"); | |
| 93 | 91 | @ </table> |
| 94 | 92 | |
| 95 | 93 | style_footer(); |
| 96 | 94 | } |
| 97 | 95 | |
| @@ -183,14 +181,14 @@ | ||
| 183 | 181 | @ <tr><td valign="top"><b>s</b></td> |
| 184 | 182 | @ <td><i>Setup/Super-user:</i> Setup and configure this website</td></tr> |
| 185 | 183 | @ <tr><td valign="top"><b>t</b></td> |
| 186 | 184 | @ <td><i>Tkt-Report:</i> Create new bug summary reports</td></tr> |
| 187 | 185 | @ <tr><td valign="top"><b>u</b></td> |
| 188 | - @ <td><i>Reader:</i> Inherit privileges of | |
| 186 | + @ <td><i>Reader:</i> Inherit privileges of | |
| 189 | 187 | @ user <tt>reader</tt></td></tr> |
| 190 | 188 | @ <tr><td valign="top"><b>v</b></td> |
| 191 | - @ <td><i>Developer:</i> Inherit privileges of | |
| 189 | + @ <td><i>Developer:</i> Inherit privileges of | |
| 192 | 190 | @ user <tt>developer</tt></td></tr> |
| 193 | 191 | @ <tr><td valign="top"><b>w</b></td> |
| 194 | 192 | @ <td><i>Write-Tkt:</i> Edit tickets</td></tr> |
| 195 | 193 | @ <tr><td valign="top"><b>z</b></td> |
| 196 | 194 | @ <td><i>Zip download:</i> Download a baseline via the |
| @@ -600,11 +598,11 @@ | ||
| 600 | 598 | @ Login is prohibited if the password is an empty string. |
| 601 | 599 | @ </p></li> |
| 602 | 600 | @ </ul> |
| 603 | 601 | @ |
| 604 | 602 | @ <h2>Special Logins</h2> |
| 605 | - @ | |
| 603 | + @ | |
| 606 | 604 | @ <ul> |
| 607 | 605 | @ <li><p> |
| 608 | 606 | @ No login is required for user "<b>nobody</b>". The capabilities |
| 609 | 607 | @ of the <b>nobody</b> user are inherited by all users, regardless of |
| 610 | 608 | @ whether or not they are logged in. To disable universal access |
| @@ -757,11 +755,11 @@ | ||
| 757 | 755 | entry_attribute("Download packet limit", 10, "max-download", "mxdwn", |
| 758 | 756 | "5000000"); |
| 759 | 757 | @ <p>Fossil tries to limit out-bound sync, clone, and pull packets |
| 760 | 758 | @ to this many bytes, uncompressed. If the client requires more data |
| 761 | 759 | @ than this, then the client will issue multiple HTTP requests. |
| 762 | - @ Values below 1 million are not recommended. 5 million is a | |
| 760 | + @ Values below 1 million are not recommended. 5 million is a | |
| 763 | 761 | @ reasonable number.</p> |
| 764 | 762 | |
| 765 | 763 | @ <hr> |
| 766 | 764 | onoff_attribute("Show javascript button to fill in CAPTCHA", |
| 767 | 765 | "auto-captcha", "autocaptcha", 0); |
| @@ -811,11 +809,11 @@ | ||
| 811 | 809 | @ show complete diffs of all file changes, or can just list the names of |
| 812 | 810 | @ the files that have changed. Users can get to either page by |
| 813 | 811 | @ clicking. This setting selects the default.</p> |
| 814 | 812 | |
| 815 | 813 | @ <hr> |
| 816 | - entry_attribute("Max timeline comment length", 6, | |
| 814 | + entry_attribute("Max timeline comment length", 6, | |
| 817 | 815 | "timeline-max-comment", "tmc", "0"); |
| 818 | 816 | @ <p>The maximum length of a comment to be displayed in a timeline. |
| 819 | 817 | @ "0" there is no length limit.</p> |
| 820 | 818 | |
| 821 | 819 | @ <hr> |
| @@ -856,65 +854,65 @@ | ||
| 856 | 854 | @ <hr> |
| 857 | 855 | onoff_attribute("Sign all commits with GPG", |
| 858 | 856 | "clearsign", "clearsign", 0); |
| 859 | 857 | @ <p>When enabled (the default), fossil will attempt to |
| 860 | 858 | @ sign all commits with GPG. When disabled, commits will |
| 861 | - @ be unsigned.</p> | |
| 862 | - | |
| 859 | + @ be unsigned.</p> | |
| 860 | + | |
| 863 | 861 | @ <hr> |
| 864 | 862 | onoff_attribute("Require local authentication", |
| 865 | 863 | "localauth", "localauth", 0); |
| 866 | 864 | @ <p>If enabled, require that HTTP connections from |
| 867 | 865 | @ 127.0.0.1 be authenticated by password. If |
| 868 | 866 | @ false, all HTTP requests from localhost have |
| 869 | - @ unrestricted access to the repository.</p> | |
| 870 | - | |
| 867 | + @ unrestricted access to the repository.</p> | |
| 868 | + | |
| 871 | 869 | @ <hr> |
| 872 | 870 | onoff_attribute("Modification times used to detect changes", |
| 873 | 871 | "mtime-changes", "mtime-changes", 0); |
| 874 | - @ <p>Use file modification times (mtimes) to detect when files have been modified.</p> | |
| 872 | + @ <p>Use file modification times (mtimes) to detect when files have been modified.</p> | |
| 875 | 873 | |
| 876 | 874 | @ <hr> |
| 877 | 875 | entry_attribute("File Ignore Glob", 40, |
| 878 | 876 | "ignore-glob", "ignore-glob", ""); |
| 879 | 877 | @ <p>Cause the 'extra' command to ignore files matching the glob. Example: |
| 880 | 878 | @ '*.o,*.a,*.bck,*~'</p> |
| 881 | - | |
| 879 | + | |
| 882 | 880 | @ <hr> |
| 883 | - entry_attribute("Diff Command", 16, | |
| 881 | + entry_attribute("Diff Command", 16, | |
| 884 | 882 | "diff-command", "diff-command", "diff"); |
| 885 | - @ <p>External command used to generate a textual diff</p> | |
| 886 | - | |
| 883 | + @ <p>External command used to generate a textual diff</p> | |
| 884 | + | |
| 887 | 885 | @ <hr> |
| 888 | - entry_attribute("Gdiff Command", 16, | |
| 886 | + entry_attribute("Gdiff Command", 16, | |
| 889 | 887 | "gdiff-command", "gdiff-command", "gdiff"); |
| 890 | - @ <p>External command to run when performing a graphical diff. If undefined, text diff will be used.</p> | |
| 891 | - | |
| 888 | + @ <p>External command to run when performing a graphical diff. If undefined, text diff will be used.</p> | |
| 889 | + | |
| 892 | 890 | @ <hr> |
| 893 | - entry_attribute("Editor", 16, | |
| 891 | + entry_attribute("Editor", 16, | |
| 894 | 892 | "editor", "editor", ""); |
| 895 | - @ <p>Text editor command used for check-in comments.</p> | |
| 896 | - | |
| 893 | + @ <p>Text editor command used for check-in comments.</p> | |
| 894 | + | |
| 897 | 895 | @ <hr> |
| 898 | - entry_attribute("HTTP port", 16, | |
| 896 | + entry_attribute("HTTP port", 16, | |
| 899 | 897 | "http-port", "http-port", "8080"); |
| 900 | - @ <p>The TCP/IP port number to use by the "server" and "ui" commands. Default: 8080</p> | |
| 898 | + @ <p>The TCP/IP port number to use by the "server" and "ui" commands. Default: 8080</p> | |
| 901 | 899 | |
| 902 | 900 | @ <hr> |
| 903 | - entry_attribute("PGP Command", 32, | |
| 901 | + entry_attribute("PGP Command", 32, | |
| 904 | 902 | "pgp-command", "pgp-command", "gpg --clearsign -o "); |
| 905 | - @ <p>Command used to clear-sign manifests at check-in.The default is "gpg --clearsign -o ".</p> | |
| 906 | - | |
| 903 | + @ <p>Command used to clear-sign manifests at check-in.The default is "gpg --clearsign -o ".</p> | |
| 904 | + | |
| 907 | 905 | @ <hr> |
| 908 | - entry_attribute("Proxy", 32, | |
| 906 | + entry_attribute("Proxy", 32, | |
| 909 | 907 | "proxy", "proxy", "off"); |
| 910 | - @ <p>URL of the HTTP proxy.</p> | |
| 911 | - | |
| 908 | + @ <p>URL of the HTTP proxy.</p> | |
| 909 | + | |
| 912 | 910 | @ <hr> |
| 913 | - entry_attribute("Web browser", 32, | |
| 911 | + entry_attribute("Web browser", 32, | |
| 914 | 912 | "web-browser", "web-browser", ""); |
| 915 | - @ <p>Default web browser for "fossil ui".</p> | |
| 913 | + @ <p>Default web browser for "fossil ui".</p> | |
| 916 | 914 | |
| 917 | 915 | @ <hr> |
| 918 | 916 | @ <p><input type="submit" name="submit" value="Apply Changes"></p> |
| 919 | 917 | @ </form> |
| 920 | 918 | db_end_transaction(0); |
| @@ -1012,11 +1010,11 @@ | ||
| 1012 | 1010 | @ <p><b>Note:</b> Press your browser Reload button after modifying the |
| 1013 | 1011 | @ CSS in order to pull in the modified CSS file.</p> |
| 1014 | 1012 | @ <hr> |
| 1015 | 1013 | @ The default CSS is shown below for reference. Other examples |
| 1016 | 1014 | @ of CSS files can be seen on the <a href="setup_skin">skins page</a>. |
| 1017 | - @ See also the <a href="setup_header">header</a> and | |
| 1015 | + @ See also the <a href="setup_header">header</a> and | |
| 1018 | 1016 | @ <a href="setup_footer">footer</a> editing screens. |
| 1019 | 1017 | @ <blockquote><pre> |
| 1020 | 1018 | @ %h(zDefaultCSS) |
| 1021 | 1019 | @ </pre></blockquote> |
| 1022 | 1020 | style_footer(); |
| @@ -1115,11 +1113,11 @@ | ||
| 1115 | 1113 | db_begin_transaction(); |
| 1116 | 1114 | if( P("set")!=0 && zMime && zMime[0] && szImg>0 ){ |
| 1117 | 1115 | Blob img; |
| 1118 | 1116 | Stmt ins; |
| 1119 | 1117 | blob_init(&img, aImg, szImg); |
| 1120 | - db_prepare(&ins, | |
| 1118 | + db_prepare(&ins, | |
| 1121 | 1119 | "REPLACE INTO config(name, value)" |
| 1122 | 1120 | " VALUES('logo-image',:bytes)" |
| 1123 | 1121 | ); |
| 1124 | 1122 | db_bind_blob(&ins, ":bytes", &img); |
| 1125 | 1123 | db_step(&ins); |
| @@ -1139,11 +1137,11 @@ | ||
| 1139 | 1137 | } |
| 1140 | 1138 | style_header("Edit Project Logo"); |
| 1141 | 1139 | @ <p>The current project logo has a MIME-Type of <b>%h(zMime)</b> and looks |
| 1142 | 1140 | @ like this:</p> |
| 1143 | 1141 | @ <blockquote><img src="%s(g.zTop)/logo" alt="logo"></blockquote> |
| 1144 | - @ | |
| 1142 | + @ | |
| 1145 | 1143 | @ <p>The logo is accessible to all users at this URL: |
| 1146 | 1144 | @ <a href="%s(g.zBaseURL)/logo">%s(g.zBaseURL)/logo</a>. |
| 1147 | 1145 | @ The logo may or may not appear on each |
| 1148 | 1146 | @ page depending on the <a href="setup_editcss">CSS</a> and |
| 1149 | 1147 | @ <a href="setup_header">header setup</a>.</p> |
| @@ -1164,15 +1162,5 @@ | ||
| 1164 | 1162 | @ changing the logo to provoke your browser to reload the new logo image. |
| 1165 | 1163 | @ </p> |
| 1166 | 1164 | style_footer(); |
| 1167 | 1165 | db_end_transaction(0); |
| 1168 | 1166 | } |
| 1169 | - | |
| 1170 | -/* | |
| 1171 | -** WEBPAGE: setup_sync | |
| 1172 | -*/ | |
| 1173 | -void setup_sync(void){ | |
| 1174 | - sync_cmd(); | |
| 1175 | - style_header("Synchronized"); | |
| 1176 | - @ <p>The project has been synchronized</p> | |
| 1177 | - style_footer(); | |
| 1178 | -} | |
| 1179 | 1167 |
| --- src/setup.c | |
| +++ src/setup.c | |
| @@ -86,12 +86,10 @@ | |
| 86 | "Show artifacts that are shunned by this repository"); |
| 87 | setup_menu_entry("Log", "rcvfromlist", |
| 88 | "A record of received artifacts and their sources"); |
| 89 | setup_menu_entry("Stats", "stat", |
| 90 | "Display repository statistics"); |
| 91 | setup_menu_entry("Sync now", "setup_sync", |
| 92 | "Sync this repository with the 'remote-url' it was set up with"); |
| 93 | @ </table> |
| 94 | |
| 95 | style_footer(); |
| 96 | } |
| 97 | |
| @@ -183,14 +181,14 @@ | |
| 183 | @ <tr><td valign="top"><b>s</b></td> |
| 184 | @ <td><i>Setup/Super-user:</i> Setup and configure this website</td></tr> |
| 185 | @ <tr><td valign="top"><b>t</b></td> |
| 186 | @ <td><i>Tkt-Report:</i> Create new bug summary reports</td></tr> |
| 187 | @ <tr><td valign="top"><b>u</b></td> |
| 188 | @ <td><i>Reader:</i> Inherit privileges of |
| 189 | @ user <tt>reader</tt></td></tr> |
| 190 | @ <tr><td valign="top"><b>v</b></td> |
| 191 | @ <td><i>Developer:</i> Inherit privileges of |
| 192 | @ user <tt>developer</tt></td></tr> |
| 193 | @ <tr><td valign="top"><b>w</b></td> |
| 194 | @ <td><i>Write-Tkt:</i> Edit tickets</td></tr> |
| 195 | @ <tr><td valign="top"><b>z</b></td> |
| 196 | @ <td><i>Zip download:</i> Download a baseline via the |
| @@ -600,11 +598,11 @@ | |
| 600 | @ Login is prohibited if the password is an empty string. |
| 601 | @ </p></li> |
| 602 | @ </ul> |
| 603 | @ |
| 604 | @ <h2>Special Logins</h2> |
| 605 | @ |
| 606 | @ <ul> |
| 607 | @ <li><p> |
| 608 | @ No login is required for user "<b>nobody</b>". The capabilities |
| 609 | @ of the <b>nobody</b> user are inherited by all users, regardless of |
| 610 | @ whether or not they are logged in. To disable universal access |
| @@ -757,11 +755,11 @@ | |
| 757 | entry_attribute("Download packet limit", 10, "max-download", "mxdwn", |
| 758 | "5000000"); |
| 759 | @ <p>Fossil tries to limit out-bound sync, clone, and pull packets |
| 760 | @ to this many bytes, uncompressed. If the client requires more data |
| 761 | @ than this, then the client will issue multiple HTTP requests. |
| 762 | @ Values below 1 million are not recommended. 5 million is a |
| 763 | @ reasonable number.</p> |
| 764 | |
| 765 | @ <hr> |
| 766 | onoff_attribute("Show javascript button to fill in CAPTCHA", |
| 767 | "auto-captcha", "autocaptcha", 0); |
| @@ -811,11 +809,11 @@ | |
| 811 | @ show complete diffs of all file changes, or can just list the names of |
| 812 | @ the files that have changed. Users can get to either page by |
| 813 | @ clicking. This setting selects the default.</p> |
| 814 | |
| 815 | @ <hr> |
| 816 | entry_attribute("Max timeline comment length", 6, |
| 817 | "timeline-max-comment", "tmc", "0"); |
| 818 | @ <p>The maximum length of a comment to be displayed in a timeline. |
| 819 | @ "0" there is no length limit.</p> |
| 820 | |
| 821 | @ <hr> |
| @@ -856,65 +854,65 @@ | |
| 856 | @ <hr> |
| 857 | onoff_attribute("Sign all commits with GPG", |
| 858 | "clearsign", "clearsign", 0); |
| 859 | @ <p>When enabled (the default), fossil will attempt to |
| 860 | @ sign all commits with GPG. When disabled, commits will |
| 861 | @ be unsigned.</p> |
| 862 | |
| 863 | @ <hr> |
| 864 | onoff_attribute("Require local authentication", |
| 865 | "localauth", "localauth", 0); |
| 866 | @ <p>If enabled, require that HTTP connections from |
| 867 | @ 127.0.0.1 be authenticated by password. If |
| 868 | @ false, all HTTP requests from localhost have |
| 869 | @ unrestricted access to the repository.</p> |
| 870 | |
| 871 | @ <hr> |
| 872 | onoff_attribute("Modification times used to detect changes", |
| 873 | "mtime-changes", "mtime-changes", 0); |
| 874 | @ <p>Use file modification times (mtimes) to detect when files have been modified.</p> |
| 875 | |
| 876 | @ <hr> |
| 877 | entry_attribute("File Ignore Glob", 40, |
| 878 | "ignore-glob", "ignore-glob", ""); |
| 879 | @ <p>Cause the 'extra' command to ignore files matching the glob. Example: |
| 880 | @ '*.o,*.a,*.bck,*~'</p> |
| 881 | |
| 882 | @ <hr> |
| 883 | entry_attribute("Diff Command", 16, |
| 884 | "diff-command", "diff-command", "diff"); |
| 885 | @ <p>External command used to generate a textual diff</p> |
| 886 | |
| 887 | @ <hr> |
| 888 | entry_attribute("Gdiff Command", 16, |
| 889 | "gdiff-command", "gdiff-command", "gdiff"); |
| 890 | @ <p>External command to run when performing a graphical diff. If undefined, text diff will be used.</p> |
| 891 | |
| 892 | @ <hr> |
| 893 | entry_attribute("Editor", 16, |
| 894 | "editor", "editor", ""); |
| 895 | @ <p>Text editor command used for check-in comments.</p> |
| 896 | |
| 897 | @ <hr> |
| 898 | entry_attribute("HTTP port", 16, |
| 899 | "http-port", "http-port", "8080"); |
| 900 | @ <p>The TCP/IP port number to use by the "server" and "ui" commands. Default: 8080</p> |
| 901 | |
| 902 | @ <hr> |
| 903 | entry_attribute("PGP Command", 32, |
| 904 | "pgp-command", "pgp-command", "gpg --clearsign -o "); |
| 905 | @ <p>Command used to clear-sign manifests at check-in.The default is "gpg --clearsign -o ".</p> |
| 906 | |
| 907 | @ <hr> |
| 908 | entry_attribute("Proxy", 32, |
| 909 | "proxy", "proxy", "off"); |
| 910 | @ <p>URL of the HTTP proxy.</p> |
| 911 | |
| 912 | @ <hr> |
| 913 | entry_attribute("Web browser", 32, |
| 914 | "web-browser", "web-browser", ""); |
| 915 | @ <p>Default web browser for "fossil ui".</p> |
| 916 | |
| 917 | @ <hr> |
| 918 | @ <p><input type="submit" name="submit" value="Apply Changes"></p> |
| 919 | @ </form> |
| 920 | db_end_transaction(0); |
| @@ -1012,11 +1010,11 @@ | |
| 1012 | @ <p><b>Note:</b> Press your browser Reload button after modifying the |
| 1013 | @ CSS in order to pull in the modified CSS file.</p> |
| 1014 | @ <hr> |
| 1015 | @ The default CSS is shown below for reference. Other examples |
| 1016 | @ of CSS files can be seen on the <a href="setup_skin">skins page</a>. |
| 1017 | @ See also the <a href="setup_header">header</a> and |
| 1018 | @ <a href="setup_footer">footer</a> editing screens. |
| 1019 | @ <blockquote><pre> |
| 1020 | @ %h(zDefaultCSS) |
| 1021 | @ </pre></blockquote> |
| 1022 | style_footer(); |
| @@ -1115,11 +1113,11 @@ | |
| 1115 | db_begin_transaction(); |
| 1116 | if( P("set")!=0 && zMime && zMime[0] && szImg>0 ){ |
| 1117 | Blob img; |
| 1118 | Stmt ins; |
| 1119 | blob_init(&img, aImg, szImg); |
| 1120 | db_prepare(&ins, |
| 1121 | "REPLACE INTO config(name, value)" |
| 1122 | " VALUES('logo-image',:bytes)" |
| 1123 | ); |
| 1124 | db_bind_blob(&ins, ":bytes", &img); |
| 1125 | db_step(&ins); |
| @@ -1139,11 +1137,11 @@ | |
| 1139 | } |
| 1140 | style_header("Edit Project Logo"); |
| 1141 | @ <p>The current project logo has a MIME-Type of <b>%h(zMime)</b> and looks |
| 1142 | @ like this:</p> |
| 1143 | @ <blockquote><img src="%s(g.zTop)/logo" alt="logo"></blockquote> |
| 1144 | @ |
| 1145 | @ <p>The logo is accessible to all users at this URL: |
| 1146 | @ <a href="%s(g.zBaseURL)/logo">%s(g.zBaseURL)/logo</a>. |
| 1147 | @ The logo may or may not appear on each |
| 1148 | @ page depending on the <a href="setup_editcss">CSS</a> and |
| 1149 | @ <a href="setup_header">header setup</a>.</p> |
| @@ -1164,15 +1162,5 @@ | |
| 1164 | @ changing the logo to provoke your browser to reload the new logo image. |
| 1165 | @ </p> |
| 1166 | style_footer(); |
| 1167 | db_end_transaction(0); |
| 1168 | } |
| 1169 | |
| 1170 | /* |
| 1171 | ** WEBPAGE: setup_sync |
| 1172 | */ |
| 1173 | void setup_sync(void){ |
| 1174 | sync_cmd(); |
| 1175 | style_header("Synchronized"); |
| 1176 | @ <p>The project has been synchronized</p> |
| 1177 | style_footer(); |
| 1178 | } |
| 1179 |
| --- src/setup.c | |
| +++ src/setup.c | |
| @@ -86,12 +86,10 @@ | |
| 86 | "Show artifacts that are shunned by this repository"); |
| 87 | setup_menu_entry("Log", "rcvfromlist", |
| 88 | "A record of received artifacts and their sources"); |
| 89 | setup_menu_entry("Stats", "stat", |
| 90 | "Display repository statistics"); |
| 91 | @ </table> |
| 92 | |
| 93 | style_footer(); |
| 94 | } |
| 95 | |
| @@ -183,14 +181,14 @@ | |
| 181 | @ <tr><td valign="top"><b>s</b></td> |
| 182 | @ <td><i>Setup/Super-user:</i> Setup and configure this website</td></tr> |
| 183 | @ <tr><td valign="top"><b>t</b></td> |
| 184 | @ <td><i>Tkt-Report:</i> Create new bug summary reports</td></tr> |
| 185 | @ <tr><td valign="top"><b>u</b></td> |
| 186 | @ <td><i>Reader:</i> Inherit privileges of |
| 187 | @ user <tt>reader</tt></td></tr> |
| 188 | @ <tr><td valign="top"><b>v</b></td> |
| 189 | @ <td><i>Developer:</i> Inherit privileges of |
| 190 | @ user <tt>developer</tt></td></tr> |
| 191 | @ <tr><td valign="top"><b>w</b></td> |
| 192 | @ <td><i>Write-Tkt:</i> Edit tickets</td></tr> |
| 193 | @ <tr><td valign="top"><b>z</b></td> |
| 194 | @ <td><i>Zip download:</i> Download a baseline via the |
| @@ -600,11 +598,11 @@ | |
| 598 | @ Login is prohibited if the password is an empty string. |
| 599 | @ </p></li> |
| 600 | @ </ul> |
| 601 | @ |
| 602 | @ <h2>Special Logins</h2> |
| 603 | @ |
| 604 | @ <ul> |
| 605 | @ <li><p> |
| 606 | @ No login is required for user "<b>nobody</b>". The capabilities |
| 607 | @ of the <b>nobody</b> user are inherited by all users, regardless of |
| 608 | @ whether or not they are logged in. To disable universal access |
| @@ -757,11 +755,11 @@ | |
| 755 | entry_attribute("Download packet limit", 10, "max-download", "mxdwn", |
| 756 | "5000000"); |
| 757 | @ <p>Fossil tries to limit out-bound sync, clone, and pull packets |
| 758 | @ to this many bytes, uncompressed. If the client requires more data |
| 759 | @ than this, then the client will issue multiple HTTP requests. |
| 760 | @ Values below 1 million are not recommended. 5 million is a |
| 761 | @ reasonable number.</p> |
| 762 | |
| 763 | @ <hr> |
| 764 | onoff_attribute("Show javascript button to fill in CAPTCHA", |
| 765 | "auto-captcha", "autocaptcha", 0); |
| @@ -811,11 +809,11 @@ | |
| 809 | @ show complete diffs of all file changes, or can just list the names of |
| 810 | @ the files that have changed. Users can get to either page by |
| 811 | @ clicking. This setting selects the default.</p> |
| 812 | |
| 813 | @ <hr> |
| 814 | entry_attribute("Max timeline comment length", 6, |
| 815 | "timeline-max-comment", "tmc", "0"); |
| 816 | @ <p>The maximum length of a comment to be displayed in a timeline. |
| 817 | @ "0" there is no length limit.</p> |
| 818 | |
| 819 | @ <hr> |
| @@ -856,65 +854,65 @@ | |
| 854 | @ <hr> |
| 855 | onoff_attribute("Sign all commits with GPG", |
| 856 | "clearsign", "clearsign", 0); |
| 857 | @ <p>When enabled (the default), fossil will attempt to |
| 858 | @ sign all commits with GPG. When disabled, commits will |
| 859 | @ be unsigned.</p> |
| 860 | |
| 861 | @ <hr> |
| 862 | onoff_attribute("Require local authentication", |
| 863 | "localauth", "localauth", 0); |
| 864 | @ <p>If enabled, require that HTTP connections from |
| 865 | @ 127.0.0.1 be authenticated by password. If |
| 866 | @ false, all HTTP requests from localhost have |
| 867 | @ unrestricted access to the repository.</p> |
| 868 | |
| 869 | @ <hr> |
| 870 | onoff_attribute("Modification times used to detect changes", |
| 871 | "mtime-changes", "mtime-changes", 0); |
| 872 | @ <p>Use file modification times (mtimes) to detect when files have been modified.</p> |
| 873 | |
| 874 | @ <hr> |
| 875 | entry_attribute("File Ignore Glob", 40, |
| 876 | "ignore-glob", "ignore-glob", ""); |
| 877 | @ <p>Cause the 'extra' command to ignore files matching the glob. Example: |
| 878 | @ '*.o,*.a,*.bck,*~'</p> |
| 879 | |
| 880 | @ <hr> |
| 881 | entry_attribute("Diff Command", 16, |
| 882 | "diff-command", "diff-command", "diff"); |
| 883 | @ <p>External command used to generate a textual diff</p> |
| 884 | |
| 885 | @ <hr> |
| 886 | entry_attribute("Gdiff Command", 16, |
| 887 | "gdiff-command", "gdiff-command", "gdiff"); |
| 888 | @ <p>External command to run when performing a graphical diff. If undefined, text diff will be used.</p> |
| 889 | |
| 890 | @ <hr> |
| 891 | entry_attribute("Editor", 16, |
| 892 | "editor", "editor", ""); |
| 893 | @ <p>Text editor command used for check-in comments.</p> |
| 894 | |
| 895 | @ <hr> |
| 896 | entry_attribute("HTTP port", 16, |
| 897 | "http-port", "http-port", "8080"); |
| 898 | @ <p>The TCP/IP port number to use by the "server" and "ui" commands. Default: 8080</p> |
| 899 | |
| 900 | @ <hr> |
| 901 | entry_attribute("PGP Command", 32, |
| 902 | "pgp-command", "pgp-command", "gpg --clearsign -o "); |
| 903 | @ <p>Command used to clear-sign manifests at check-in.The default is "gpg --clearsign -o ".</p> |
| 904 | |
| 905 | @ <hr> |
| 906 | entry_attribute("Proxy", 32, |
| 907 | "proxy", "proxy", "off"); |
| 908 | @ <p>URL of the HTTP proxy.</p> |
| 909 | |
| 910 | @ <hr> |
| 911 | entry_attribute("Web browser", 32, |
| 912 | "web-browser", "web-browser", ""); |
| 913 | @ <p>Default web browser for "fossil ui".</p> |
| 914 | |
| 915 | @ <hr> |
| 916 | @ <p><input type="submit" name="submit" value="Apply Changes"></p> |
| 917 | @ </form> |
| 918 | db_end_transaction(0); |
| @@ -1012,11 +1010,11 @@ | |
| 1010 | @ <p><b>Note:</b> Press your browser Reload button after modifying the |
| 1011 | @ CSS in order to pull in the modified CSS file.</p> |
| 1012 | @ <hr> |
| 1013 | @ The default CSS is shown below for reference. Other examples |
| 1014 | @ of CSS files can be seen on the <a href="setup_skin">skins page</a>. |
| 1015 | @ See also the <a href="setup_header">header</a> and |
| 1016 | @ <a href="setup_footer">footer</a> editing screens. |
| 1017 | @ <blockquote><pre> |
| 1018 | @ %h(zDefaultCSS) |
| 1019 | @ </pre></blockquote> |
| 1020 | style_footer(); |
| @@ -1115,11 +1113,11 @@ | |
| 1113 | db_begin_transaction(); |
| 1114 | if( P("set")!=0 && zMime && zMime[0] && szImg>0 ){ |
| 1115 | Blob img; |
| 1116 | Stmt ins; |
| 1117 | blob_init(&img, aImg, szImg); |
| 1118 | db_prepare(&ins, |
| 1119 | "REPLACE INTO config(name, value)" |
| 1120 | " VALUES('logo-image',:bytes)" |
| 1121 | ); |
| 1122 | db_bind_blob(&ins, ":bytes", &img); |
| 1123 | db_step(&ins); |
| @@ -1139,11 +1137,11 @@ | |
| 1137 | } |
| 1138 | style_header("Edit Project Logo"); |
| 1139 | @ <p>The current project logo has a MIME-Type of <b>%h(zMime)</b> and looks |
| 1140 | @ like this:</p> |
| 1141 | @ <blockquote><img src="%s(g.zTop)/logo" alt="logo"></blockquote> |
| 1142 | @ |
| 1143 | @ <p>The logo is accessible to all users at this URL: |
| 1144 | @ <a href="%s(g.zBaseURL)/logo">%s(g.zBaseURL)/logo</a>. |
| 1145 | @ The logo may or may not appear on each |
| 1146 | @ page depending on the <a href="setup_editcss">CSS</a> and |
| 1147 | @ <a href="setup_header">header setup</a>.</p> |
| @@ -1164,15 +1162,5 @@ | |
| 1162 | @ changing the logo to provoke your browser to reload the new logo image. |
| 1163 | @ </p> |
| 1164 | style_footer(); |
| 1165 | db_end_transaction(0); |
| 1166 | } |
| 1167 |
+33
-45
| --- src/setup.c | ||
| +++ src/setup.c | ||
| @@ -86,12 +86,10 @@ | ||
| 86 | 86 | "Show artifacts that are shunned by this repository"); |
| 87 | 87 | setup_menu_entry("Log", "rcvfromlist", |
| 88 | 88 | "A record of received artifacts and their sources"); |
| 89 | 89 | setup_menu_entry("Stats", "stat", |
| 90 | 90 | "Display repository statistics"); |
| 91 | - setup_menu_entry("Sync now", "setup_sync", | |
| 92 | - "Sync this repository with the 'remote-url' it was set up with"); | |
| 93 | 91 | @ </table> |
| 94 | 92 | |
| 95 | 93 | style_footer(); |
| 96 | 94 | } |
| 97 | 95 | |
| @@ -183,14 +181,14 @@ | ||
| 183 | 181 | @ <tr><td valign="top"><b>s</b></td> |
| 184 | 182 | @ <td><i>Setup/Super-user:</i> Setup and configure this website</td></tr> |
| 185 | 183 | @ <tr><td valign="top"><b>t</b></td> |
| 186 | 184 | @ <td><i>Tkt-Report:</i> Create new bug summary reports</td></tr> |
| 187 | 185 | @ <tr><td valign="top"><b>u</b></td> |
| 188 | - @ <td><i>Reader:</i> Inherit privileges of | |
| 186 | + @ <td><i>Reader:</i> Inherit privileges of | |
| 189 | 187 | @ user <tt>reader</tt></td></tr> |
| 190 | 188 | @ <tr><td valign="top"><b>v</b></td> |
| 191 | - @ <td><i>Developer:</i> Inherit privileges of | |
| 189 | + @ <td><i>Developer:</i> Inherit privileges of | |
| 192 | 190 | @ user <tt>developer</tt></td></tr> |
| 193 | 191 | @ <tr><td valign="top"><b>w</b></td> |
| 194 | 192 | @ <td><i>Write-Tkt:</i> Edit tickets</td></tr> |
| 195 | 193 | @ <tr><td valign="top"><b>z</b></td> |
| 196 | 194 | @ <td><i>Zip download:</i> Download a baseline via the |
| @@ -600,11 +598,11 @@ | ||
| 600 | 598 | @ Login is prohibited if the password is an empty string. |
| 601 | 599 | @ </p></li> |
| 602 | 600 | @ </ul> |
| 603 | 601 | @ |
| 604 | 602 | @ <h2>Special Logins</h2> |
| 605 | - @ | |
| 603 | + @ | |
| 606 | 604 | @ <ul> |
| 607 | 605 | @ <li><p> |
| 608 | 606 | @ No login is required for user "<b>nobody</b>". The capabilities |
| 609 | 607 | @ of the <b>nobody</b> user are inherited by all users, regardless of |
| 610 | 608 | @ whether or not they are logged in. To disable universal access |
| @@ -757,11 +755,11 @@ | ||
| 757 | 755 | entry_attribute("Download packet limit", 10, "max-download", "mxdwn", |
| 758 | 756 | "5000000"); |
| 759 | 757 | @ <p>Fossil tries to limit out-bound sync, clone, and pull packets |
| 760 | 758 | @ to this many bytes, uncompressed. If the client requires more data |
| 761 | 759 | @ than this, then the client will issue multiple HTTP requests. |
| 762 | - @ Values below 1 million are not recommended. 5 million is a | |
| 760 | + @ Values below 1 million are not recommended. 5 million is a | |
| 763 | 761 | @ reasonable number.</p> |
| 764 | 762 | |
| 765 | 763 | @ <hr> |
| 766 | 764 | onoff_attribute("Show javascript button to fill in CAPTCHA", |
| 767 | 765 | "auto-captcha", "autocaptcha", 0); |
| @@ -811,11 +809,11 @@ | ||
| 811 | 809 | @ show complete diffs of all file changes, or can just list the names of |
| 812 | 810 | @ the files that have changed. Users can get to either page by |
| 813 | 811 | @ clicking. This setting selects the default.</p> |
| 814 | 812 | |
| 815 | 813 | @ <hr> |
| 816 | - entry_attribute("Max timeline comment length", 6, | |
| 814 | + entry_attribute("Max timeline comment length", 6, | |
| 817 | 815 | "timeline-max-comment", "tmc", "0"); |
| 818 | 816 | @ <p>The maximum length of a comment to be displayed in a timeline. |
| 819 | 817 | @ "0" there is no length limit.</p> |
| 820 | 818 | |
| 821 | 819 | @ <hr> |
| @@ -856,65 +854,65 @@ | ||
| 856 | 854 | @ <hr> |
| 857 | 855 | onoff_attribute("Sign all commits with GPG", |
| 858 | 856 | "clearsign", "clearsign", 0); |
| 859 | 857 | @ <p>When enabled (the default), fossil will attempt to |
| 860 | 858 | @ sign all commits with GPG. When disabled, commits will |
| 861 | - @ be unsigned.</p> | |
| 862 | - | |
| 859 | + @ be unsigned.</p> | |
| 860 | + | |
| 863 | 861 | @ <hr> |
| 864 | 862 | onoff_attribute("Require local authentication", |
| 865 | 863 | "localauth", "localauth", 0); |
| 866 | 864 | @ <p>If enabled, require that HTTP connections from |
| 867 | 865 | @ 127.0.0.1 be authenticated by password. If |
| 868 | 866 | @ false, all HTTP requests from localhost have |
| 869 | - @ unrestricted access to the repository.</p> | |
| 870 | - | |
| 867 | + @ unrestricted access to the repository.</p> | |
| 868 | + | |
| 871 | 869 | @ <hr> |
| 872 | 870 | onoff_attribute("Modification times used to detect changes", |
| 873 | 871 | "mtime-changes", "mtime-changes", 0); |
| 874 | - @ <p>Use file modification times (mtimes) to detect when files have been modified.</p> | |
| 872 | + @ <p>Use file modification times (mtimes) to detect when files have been modified.</p> | |
| 875 | 873 | |
| 876 | 874 | @ <hr> |
| 877 | 875 | entry_attribute("File Ignore Glob", 40, |
| 878 | 876 | "ignore-glob", "ignore-glob", ""); |
| 879 | 877 | @ <p>Cause the 'extra' command to ignore files matching the glob. Example: |
| 880 | 878 | @ '*.o,*.a,*.bck,*~'</p> |
| 881 | - | |
| 879 | + | |
| 882 | 880 | @ <hr> |
| 883 | - entry_attribute("Diff Command", 16, | |
| 881 | + entry_attribute("Diff Command", 16, | |
| 884 | 882 | "diff-command", "diff-command", "diff"); |
| 885 | - @ <p>External command used to generate a textual diff</p> | |
| 886 | - | |
| 883 | + @ <p>External command used to generate a textual diff</p> | |
| 884 | + | |
| 887 | 885 | @ <hr> |
| 888 | - entry_attribute("Gdiff Command", 16, | |
| 886 | + entry_attribute("Gdiff Command", 16, | |
| 889 | 887 | "gdiff-command", "gdiff-command", "gdiff"); |
| 890 | - @ <p>External command to run when performing a graphical diff. If undefined, text diff will be used.</p> | |
| 891 | - | |
| 888 | + @ <p>External command to run when performing a graphical diff. If undefined, text diff will be used.</p> | |
| 889 | + | |
| 892 | 890 | @ <hr> |
| 893 | - entry_attribute("Editor", 16, | |
| 891 | + entry_attribute("Editor", 16, | |
| 894 | 892 | "editor", "editor", ""); |
| 895 | - @ <p>Text editor command used for check-in comments.</p> | |
| 896 | - | |
| 893 | + @ <p>Text editor command used for check-in comments.</p> | |
| 894 | + | |
| 897 | 895 | @ <hr> |
| 898 | - entry_attribute("HTTP port", 16, | |
| 896 | + entry_attribute("HTTP port", 16, | |
| 899 | 897 | "http-port", "http-port", "8080"); |
| 900 | - @ <p>The TCP/IP port number to use by the "server" and "ui" commands. Default: 8080</p> | |
| 898 | + @ <p>The TCP/IP port number to use by the "server" and "ui" commands. Default: 8080</p> | |
| 901 | 899 | |
| 902 | 900 | @ <hr> |
| 903 | - entry_attribute("PGP Command", 32, | |
| 901 | + entry_attribute("PGP Command", 32, | |
| 904 | 902 | "pgp-command", "pgp-command", "gpg --clearsign -o "); |
| 905 | - @ <p>Command used to clear-sign manifests at check-in.The default is "gpg --clearsign -o ".</p> | |
| 906 | - | |
| 903 | + @ <p>Command used to clear-sign manifests at check-in.The default is "gpg --clearsign -o ".</p> | |
| 904 | + | |
| 907 | 905 | @ <hr> |
| 908 | - entry_attribute("Proxy", 32, | |
| 906 | + entry_attribute("Proxy", 32, | |
| 909 | 907 | "proxy", "proxy", "off"); |
| 910 | - @ <p>URL of the HTTP proxy.</p> | |
| 911 | - | |
| 908 | + @ <p>URL of the HTTP proxy.</p> | |
| 909 | + | |
| 912 | 910 | @ <hr> |
| 913 | - entry_attribute("Web browser", 32, | |
| 911 | + entry_attribute("Web browser", 32, | |
| 914 | 912 | "web-browser", "web-browser", ""); |
| 915 | - @ <p>Default web browser for "fossil ui".</p> | |
| 913 | + @ <p>Default web browser for "fossil ui".</p> | |
| 916 | 914 | |
| 917 | 915 | @ <hr> |
| 918 | 916 | @ <p><input type="submit" name="submit" value="Apply Changes"></p> |
| 919 | 917 | @ </form> |
| 920 | 918 | db_end_transaction(0); |
| @@ -1012,11 +1010,11 @@ | ||
| 1012 | 1010 | @ <p><b>Note:</b> Press your browser Reload button after modifying the |
| 1013 | 1011 | @ CSS in order to pull in the modified CSS file.</p> |
| 1014 | 1012 | @ <hr> |
| 1015 | 1013 | @ The default CSS is shown below for reference. Other examples |
| 1016 | 1014 | @ of CSS files can be seen on the <a href="setup_skin">skins page</a>. |
| 1017 | - @ See also the <a href="setup_header">header</a> and | |
| 1015 | + @ See also the <a href="setup_header">header</a> and | |
| 1018 | 1016 | @ <a href="setup_footer">footer</a> editing screens. |
| 1019 | 1017 | @ <blockquote><pre> |
| 1020 | 1018 | @ %h(zDefaultCSS) |
| 1021 | 1019 | @ </pre></blockquote> |
| 1022 | 1020 | style_footer(); |
| @@ -1115,11 +1113,11 @@ | ||
| 1115 | 1113 | db_begin_transaction(); |
| 1116 | 1114 | if( P("set")!=0 && zMime && zMime[0] && szImg>0 ){ |
| 1117 | 1115 | Blob img; |
| 1118 | 1116 | Stmt ins; |
| 1119 | 1117 | blob_init(&img, aImg, szImg); |
| 1120 | - db_prepare(&ins, | |
| 1118 | + db_prepare(&ins, | |
| 1121 | 1119 | "REPLACE INTO config(name, value)" |
| 1122 | 1120 | " VALUES('logo-image',:bytes)" |
| 1123 | 1121 | ); |
| 1124 | 1122 | db_bind_blob(&ins, ":bytes", &img); |
| 1125 | 1123 | db_step(&ins); |
| @@ -1139,11 +1137,11 @@ | ||
| 1139 | 1137 | } |
| 1140 | 1138 | style_header("Edit Project Logo"); |
| 1141 | 1139 | @ <p>The current project logo has a MIME-Type of <b>%h(zMime)</b> and looks |
| 1142 | 1140 | @ like this:</p> |
| 1143 | 1141 | @ <blockquote><img src="%s(g.zTop)/logo" alt="logo"></blockquote> |
| 1144 | - @ | |
| 1142 | + @ | |
| 1145 | 1143 | @ <p>The logo is accessible to all users at this URL: |
| 1146 | 1144 | @ <a href="%s(g.zBaseURL)/logo">%s(g.zBaseURL)/logo</a>. |
| 1147 | 1145 | @ The logo may or may not appear on each |
| 1148 | 1146 | @ page depending on the <a href="setup_editcss">CSS</a> and |
| 1149 | 1147 | @ <a href="setup_header">header setup</a>.</p> |
| @@ -1164,15 +1162,5 @@ | ||
| 1164 | 1162 | @ changing the logo to provoke your browser to reload the new logo image. |
| 1165 | 1163 | @ </p> |
| 1166 | 1164 | style_footer(); |
| 1167 | 1165 | db_end_transaction(0); |
| 1168 | 1166 | } |
| 1169 | - | |
| 1170 | -/* | |
| 1171 | -** WEBPAGE: setup_sync | |
| 1172 | -*/ | |
| 1173 | -void setup_sync(void){ | |
| 1174 | - sync_cmd(); | |
| 1175 | - style_header("Synchronized"); | |
| 1176 | - @ <p>The project has been synchronized</p> | |
| 1177 | - style_footer(); | |
| 1178 | -} | |
| 1179 | 1167 |
| --- src/setup.c | |
| +++ src/setup.c | |
| @@ -86,12 +86,10 @@ | |
| 86 | "Show artifacts that are shunned by this repository"); |
| 87 | setup_menu_entry("Log", "rcvfromlist", |
| 88 | "A record of received artifacts and their sources"); |
| 89 | setup_menu_entry("Stats", "stat", |
| 90 | "Display repository statistics"); |
| 91 | setup_menu_entry("Sync now", "setup_sync", |
| 92 | "Sync this repository with the 'remote-url' it was set up with"); |
| 93 | @ </table> |
| 94 | |
| 95 | style_footer(); |
| 96 | } |
| 97 | |
| @@ -183,14 +181,14 @@ | |
| 183 | @ <tr><td valign="top"><b>s</b></td> |
| 184 | @ <td><i>Setup/Super-user:</i> Setup and configure this website</td></tr> |
| 185 | @ <tr><td valign="top"><b>t</b></td> |
| 186 | @ <td><i>Tkt-Report:</i> Create new bug summary reports</td></tr> |
| 187 | @ <tr><td valign="top"><b>u</b></td> |
| 188 | @ <td><i>Reader:</i> Inherit privileges of |
| 189 | @ user <tt>reader</tt></td></tr> |
| 190 | @ <tr><td valign="top"><b>v</b></td> |
| 191 | @ <td><i>Developer:</i> Inherit privileges of |
| 192 | @ user <tt>developer</tt></td></tr> |
| 193 | @ <tr><td valign="top"><b>w</b></td> |
| 194 | @ <td><i>Write-Tkt:</i> Edit tickets</td></tr> |
| 195 | @ <tr><td valign="top"><b>z</b></td> |
| 196 | @ <td><i>Zip download:</i> Download a baseline via the |
| @@ -600,11 +598,11 @@ | |
| 600 | @ Login is prohibited if the password is an empty string. |
| 601 | @ </p></li> |
| 602 | @ </ul> |
| 603 | @ |
| 604 | @ <h2>Special Logins</h2> |
| 605 | @ |
| 606 | @ <ul> |
| 607 | @ <li><p> |
| 608 | @ No login is required for user "<b>nobody</b>". The capabilities |
| 609 | @ of the <b>nobody</b> user are inherited by all users, regardless of |
| 610 | @ whether or not they are logged in. To disable universal access |
| @@ -757,11 +755,11 @@ | |
| 757 | entry_attribute("Download packet limit", 10, "max-download", "mxdwn", |
| 758 | "5000000"); |
| 759 | @ <p>Fossil tries to limit out-bound sync, clone, and pull packets |
| 760 | @ to this many bytes, uncompressed. If the client requires more data |
| 761 | @ than this, then the client will issue multiple HTTP requests. |
| 762 | @ Values below 1 million are not recommended. 5 million is a |
| 763 | @ reasonable number.</p> |
| 764 | |
| 765 | @ <hr> |
| 766 | onoff_attribute("Show javascript button to fill in CAPTCHA", |
| 767 | "auto-captcha", "autocaptcha", 0); |
| @@ -811,11 +809,11 @@ | |
| 811 | @ show complete diffs of all file changes, or can just list the names of |
| 812 | @ the files that have changed. Users can get to either page by |
| 813 | @ clicking. This setting selects the default.</p> |
| 814 | |
| 815 | @ <hr> |
| 816 | entry_attribute("Max timeline comment length", 6, |
| 817 | "timeline-max-comment", "tmc", "0"); |
| 818 | @ <p>The maximum length of a comment to be displayed in a timeline. |
| 819 | @ "0" there is no length limit.</p> |
| 820 | |
| 821 | @ <hr> |
| @@ -856,65 +854,65 @@ | |
| 856 | @ <hr> |
| 857 | onoff_attribute("Sign all commits with GPG", |
| 858 | "clearsign", "clearsign", 0); |
| 859 | @ <p>When enabled (the default), fossil will attempt to |
| 860 | @ sign all commits with GPG. When disabled, commits will |
| 861 | @ be unsigned.</p> |
| 862 | |
| 863 | @ <hr> |
| 864 | onoff_attribute("Require local authentication", |
| 865 | "localauth", "localauth", 0); |
| 866 | @ <p>If enabled, require that HTTP connections from |
| 867 | @ 127.0.0.1 be authenticated by password. If |
| 868 | @ false, all HTTP requests from localhost have |
| 869 | @ unrestricted access to the repository.</p> |
| 870 | |
| 871 | @ <hr> |
| 872 | onoff_attribute("Modification times used to detect changes", |
| 873 | "mtime-changes", "mtime-changes", 0); |
| 874 | @ <p>Use file modification times (mtimes) to detect when files have been modified.</p> |
| 875 | |
| 876 | @ <hr> |
| 877 | entry_attribute("File Ignore Glob", 40, |
| 878 | "ignore-glob", "ignore-glob", ""); |
| 879 | @ <p>Cause the 'extra' command to ignore files matching the glob. Example: |
| 880 | @ '*.o,*.a,*.bck,*~'</p> |
| 881 | |
| 882 | @ <hr> |
| 883 | entry_attribute("Diff Command", 16, |
| 884 | "diff-command", "diff-command", "diff"); |
| 885 | @ <p>External command used to generate a textual diff</p> |
| 886 | |
| 887 | @ <hr> |
| 888 | entry_attribute("Gdiff Command", 16, |
| 889 | "gdiff-command", "gdiff-command", "gdiff"); |
| 890 | @ <p>External command to run when performing a graphical diff. If undefined, text diff will be used.</p> |
| 891 | |
| 892 | @ <hr> |
| 893 | entry_attribute("Editor", 16, |
| 894 | "editor", "editor", ""); |
| 895 | @ <p>Text editor command used for check-in comments.</p> |
| 896 | |
| 897 | @ <hr> |
| 898 | entry_attribute("HTTP port", 16, |
| 899 | "http-port", "http-port", "8080"); |
| 900 | @ <p>The TCP/IP port number to use by the "server" and "ui" commands. Default: 8080</p> |
| 901 | |
| 902 | @ <hr> |
| 903 | entry_attribute("PGP Command", 32, |
| 904 | "pgp-command", "pgp-command", "gpg --clearsign -o "); |
| 905 | @ <p>Command used to clear-sign manifests at check-in.The default is "gpg --clearsign -o ".</p> |
| 906 | |
| 907 | @ <hr> |
| 908 | entry_attribute("Proxy", 32, |
| 909 | "proxy", "proxy", "off"); |
| 910 | @ <p>URL of the HTTP proxy.</p> |
| 911 | |
| 912 | @ <hr> |
| 913 | entry_attribute("Web browser", 32, |
| 914 | "web-browser", "web-browser", ""); |
| 915 | @ <p>Default web browser for "fossil ui".</p> |
| 916 | |
| 917 | @ <hr> |
| 918 | @ <p><input type="submit" name="submit" value="Apply Changes"></p> |
| 919 | @ </form> |
| 920 | db_end_transaction(0); |
| @@ -1012,11 +1010,11 @@ | |
| 1012 | @ <p><b>Note:</b> Press your browser Reload button after modifying the |
| 1013 | @ CSS in order to pull in the modified CSS file.</p> |
| 1014 | @ <hr> |
| 1015 | @ The default CSS is shown below for reference. Other examples |
| 1016 | @ of CSS files can be seen on the <a href="setup_skin">skins page</a>. |
| 1017 | @ See also the <a href="setup_header">header</a> and |
| 1018 | @ <a href="setup_footer">footer</a> editing screens. |
| 1019 | @ <blockquote><pre> |
| 1020 | @ %h(zDefaultCSS) |
| 1021 | @ </pre></blockquote> |
| 1022 | style_footer(); |
| @@ -1115,11 +1113,11 @@ | |
| 1115 | db_begin_transaction(); |
| 1116 | if( P("set")!=0 && zMime && zMime[0] && szImg>0 ){ |
| 1117 | Blob img; |
| 1118 | Stmt ins; |
| 1119 | blob_init(&img, aImg, szImg); |
| 1120 | db_prepare(&ins, |
| 1121 | "REPLACE INTO config(name, value)" |
| 1122 | " VALUES('logo-image',:bytes)" |
| 1123 | ); |
| 1124 | db_bind_blob(&ins, ":bytes", &img); |
| 1125 | db_step(&ins); |
| @@ -1139,11 +1137,11 @@ | |
| 1139 | } |
| 1140 | style_header("Edit Project Logo"); |
| 1141 | @ <p>The current project logo has a MIME-Type of <b>%h(zMime)</b> and looks |
| 1142 | @ like this:</p> |
| 1143 | @ <blockquote><img src="%s(g.zTop)/logo" alt="logo"></blockquote> |
| 1144 | @ |
| 1145 | @ <p>The logo is accessible to all users at this URL: |
| 1146 | @ <a href="%s(g.zBaseURL)/logo">%s(g.zBaseURL)/logo</a>. |
| 1147 | @ The logo may or may not appear on each |
| 1148 | @ page depending on the <a href="setup_editcss">CSS</a> and |
| 1149 | @ <a href="setup_header">header setup</a>.</p> |
| @@ -1164,15 +1162,5 @@ | |
| 1164 | @ changing the logo to provoke your browser to reload the new logo image. |
| 1165 | @ </p> |
| 1166 | style_footer(); |
| 1167 | db_end_transaction(0); |
| 1168 | } |
| 1169 | |
| 1170 | /* |
| 1171 | ** WEBPAGE: setup_sync |
| 1172 | */ |
| 1173 | void setup_sync(void){ |
| 1174 | sync_cmd(); |
| 1175 | style_header("Synchronized"); |
| 1176 | @ <p>The project has been synchronized</p> |
| 1177 | style_footer(); |
| 1178 | } |
| 1179 |
| --- src/setup.c | |
| +++ src/setup.c | |
| @@ -86,12 +86,10 @@ | |
| 86 | "Show artifacts that are shunned by this repository"); |
| 87 | setup_menu_entry("Log", "rcvfromlist", |
| 88 | "A record of received artifacts and their sources"); |
| 89 | setup_menu_entry("Stats", "stat", |
| 90 | "Display repository statistics"); |
| 91 | @ </table> |
| 92 | |
| 93 | style_footer(); |
| 94 | } |
| 95 | |
| @@ -183,14 +181,14 @@ | |
| 181 | @ <tr><td valign="top"><b>s</b></td> |
| 182 | @ <td><i>Setup/Super-user:</i> Setup and configure this website</td></tr> |
| 183 | @ <tr><td valign="top"><b>t</b></td> |
| 184 | @ <td><i>Tkt-Report:</i> Create new bug summary reports</td></tr> |
| 185 | @ <tr><td valign="top"><b>u</b></td> |
| 186 | @ <td><i>Reader:</i> Inherit privileges of |
| 187 | @ user <tt>reader</tt></td></tr> |
| 188 | @ <tr><td valign="top"><b>v</b></td> |
| 189 | @ <td><i>Developer:</i> Inherit privileges of |
| 190 | @ user <tt>developer</tt></td></tr> |
| 191 | @ <tr><td valign="top"><b>w</b></td> |
| 192 | @ <td><i>Write-Tkt:</i> Edit tickets</td></tr> |
| 193 | @ <tr><td valign="top"><b>z</b></td> |
| 194 | @ <td><i>Zip download:</i> Download a baseline via the |
| @@ -600,11 +598,11 @@ | |
| 598 | @ Login is prohibited if the password is an empty string. |
| 599 | @ </p></li> |
| 600 | @ </ul> |
| 601 | @ |
| 602 | @ <h2>Special Logins</h2> |
| 603 | @ |
| 604 | @ <ul> |
| 605 | @ <li><p> |
| 606 | @ No login is required for user "<b>nobody</b>". The capabilities |
| 607 | @ of the <b>nobody</b> user are inherited by all users, regardless of |
| 608 | @ whether or not they are logged in. To disable universal access |
| @@ -757,11 +755,11 @@ | |
| 755 | entry_attribute("Download packet limit", 10, "max-download", "mxdwn", |
| 756 | "5000000"); |
| 757 | @ <p>Fossil tries to limit out-bound sync, clone, and pull packets |
| 758 | @ to this many bytes, uncompressed. If the client requires more data |
| 759 | @ than this, then the client will issue multiple HTTP requests. |
| 760 | @ Values below 1 million are not recommended. 5 million is a |
| 761 | @ reasonable number.</p> |
| 762 | |
| 763 | @ <hr> |
| 764 | onoff_attribute("Show javascript button to fill in CAPTCHA", |
| 765 | "auto-captcha", "autocaptcha", 0); |
| @@ -811,11 +809,11 @@ | |
| 809 | @ show complete diffs of all file changes, or can just list the names of |
| 810 | @ the files that have changed. Users can get to either page by |
| 811 | @ clicking. This setting selects the default.</p> |
| 812 | |
| 813 | @ <hr> |
| 814 | entry_attribute("Max timeline comment length", 6, |
| 815 | "timeline-max-comment", "tmc", "0"); |
| 816 | @ <p>The maximum length of a comment to be displayed in a timeline. |
| 817 | @ "0" there is no length limit.</p> |
| 818 | |
| 819 | @ <hr> |
| @@ -856,65 +854,65 @@ | |
| 854 | @ <hr> |
| 855 | onoff_attribute("Sign all commits with GPG", |
| 856 | "clearsign", "clearsign", 0); |
| 857 | @ <p>When enabled (the default), fossil will attempt to |
| 858 | @ sign all commits with GPG. When disabled, commits will |
| 859 | @ be unsigned.</p> |
| 860 | |
| 861 | @ <hr> |
| 862 | onoff_attribute("Require local authentication", |
| 863 | "localauth", "localauth", 0); |
| 864 | @ <p>If enabled, require that HTTP connections from |
| 865 | @ 127.0.0.1 be authenticated by password. If |
| 866 | @ false, all HTTP requests from localhost have |
| 867 | @ unrestricted access to the repository.</p> |
| 868 | |
| 869 | @ <hr> |
| 870 | onoff_attribute("Modification times used to detect changes", |
| 871 | "mtime-changes", "mtime-changes", 0); |
| 872 | @ <p>Use file modification times (mtimes) to detect when files have been modified.</p> |
| 873 | |
| 874 | @ <hr> |
| 875 | entry_attribute("File Ignore Glob", 40, |
| 876 | "ignore-glob", "ignore-glob", ""); |
| 877 | @ <p>Cause the 'extra' command to ignore files matching the glob. Example: |
| 878 | @ '*.o,*.a,*.bck,*~'</p> |
| 879 | |
| 880 | @ <hr> |
| 881 | entry_attribute("Diff Command", 16, |
| 882 | "diff-command", "diff-command", "diff"); |
| 883 | @ <p>External command used to generate a textual diff</p> |
| 884 | |
| 885 | @ <hr> |
| 886 | entry_attribute("Gdiff Command", 16, |
| 887 | "gdiff-command", "gdiff-command", "gdiff"); |
| 888 | @ <p>External command to run when performing a graphical diff. If undefined, text diff will be used.</p> |
| 889 | |
| 890 | @ <hr> |
| 891 | entry_attribute("Editor", 16, |
| 892 | "editor", "editor", ""); |
| 893 | @ <p>Text editor command used for check-in comments.</p> |
| 894 | |
| 895 | @ <hr> |
| 896 | entry_attribute("HTTP port", 16, |
| 897 | "http-port", "http-port", "8080"); |
| 898 | @ <p>The TCP/IP port number to use by the "server" and "ui" commands. Default: 8080</p> |
| 899 | |
| 900 | @ <hr> |
| 901 | entry_attribute("PGP Command", 32, |
| 902 | "pgp-command", "pgp-command", "gpg --clearsign -o "); |
| 903 | @ <p>Command used to clear-sign manifests at check-in.The default is "gpg --clearsign -o ".</p> |
| 904 | |
| 905 | @ <hr> |
| 906 | entry_attribute("Proxy", 32, |
| 907 | "proxy", "proxy", "off"); |
| 908 | @ <p>URL of the HTTP proxy.</p> |
| 909 | |
| 910 | @ <hr> |
| 911 | entry_attribute("Web browser", 32, |
| 912 | "web-browser", "web-browser", ""); |
| 913 | @ <p>Default web browser for "fossil ui".</p> |
| 914 | |
| 915 | @ <hr> |
| 916 | @ <p><input type="submit" name="submit" value="Apply Changes"></p> |
| 917 | @ </form> |
| 918 | db_end_transaction(0); |
| @@ -1012,11 +1010,11 @@ | |
| 1010 | @ <p><b>Note:</b> Press your browser Reload button after modifying the |
| 1011 | @ CSS in order to pull in the modified CSS file.</p> |
| 1012 | @ <hr> |
| 1013 | @ The default CSS is shown below for reference. Other examples |
| 1014 | @ of CSS files can be seen on the <a href="setup_skin">skins page</a>. |
| 1015 | @ See also the <a href="setup_header">header</a> and |
| 1016 | @ <a href="setup_footer">footer</a> editing screens. |
| 1017 | @ <blockquote><pre> |
| 1018 | @ %h(zDefaultCSS) |
| 1019 | @ </pre></blockquote> |
| 1020 | style_footer(); |
| @@ -1115,11 +1113,11 @@ | |
| 1113 | db_begin_transaction(); |
| 1114 | if( P("set")!=0 && zMime && zMime[0] && szImg>0 ){ |
| 1115 | Blob img; |
| 1116 | Stmt ins; |
| 1117 | blob_init(&img, aImg, szImg); |
| 1118 | db_prepare(&ins, |
| 1119 | "REPLACE INTO config(name, value)" |
| 1120 | " VALUES('logo-image',:bytes)" |
| 1121 | ); |
| 1122 | db_bind_blob(&ins, ":bytes", &img); |
| 1123 | db_step(&ins); |
| @@ -1139,11 +1137,11 @@ | |
| 1137 | } |
| 1138 | style_header("Edit Project Logo"); |
| 1139 | @ <p>The current project logo has a MIME-Type of <b>%h(zMime)</b> and looks |
| 1140 | @ like this:</p> |
| 1141 | @ <blockquote><img src="%s(g.zTop)/logo" alt="logo"></blockquote> |
| 1142 | @ |
| 1143 | @ <p>The logo is accessible to all users at this URL: |
| 1144 | @ <a href="%s(g.zBaseURL)/logo">%s(g.zBaseURL)/logo</a>. |
| 1145 | @ The logo may or may not appear on each |
| 1146 | @ page depending on the <a href="setup_editcss">CSS</a> and |
| 1147 | @ <a href="setup_header">header setup</a>.</p> |
| @@ -1164,15 +1162,5 @@ | |
| 1162 | @ changing the logo to provoke your browser to reload the new logo image. |
| 1163 | @ </p> |
| 1164 | style_footer(); |
| 1165 | db_end_transaction(0); |
| 1166 | } |
| 1167 |