Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Add a web-page, where we can see the details on how SQLite was compiled (pragma compile_options), as sub-page for "stat". |
|---|---|
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
eac405d7d6557fee8371dede5da148ff |
| User & Date: | jan.nijtmans 2017-01-04 10:40:02.547 |
Context
|
2017-01-04
| ||
| 10:42 | Restore executable flags, accidently changed in previous commit check-in: 5972c3310f user: jan.nijtmans tags: trunk | |
| 10:40 | Add a web-page, where we can see the details on how SQLite was compiled (pragma compile_options), as sub-page for "stat". check-in: eac405d7d6 user: jan.nijtmans tags: trunk | |
| 09:34 | Update the built-in SQLite to the 3.16.1 release check-in: a8cd1e5427 user: jan.nijtmans tags: trunk | |
Changes
ajax/cgi-bin/fossil-json.cgi.example became executable.
autosetup/test-tclsh became a regular file.
| ︙ | ︙ |
Changes to src/main.c.
| ︙ | ︙ | |||
1020 1021 1022 1023 1024 1025 1026 |
**
** Query parameters:
**
** verbose Show all available details.
*/
void test_version_page(void){
Blob versionInfo;
| | | > > > > > > > > > > > > > > | > | | | | 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 |
**
** Query parameters:
**
** verbose Show all available details.
*/
void test_version_page(void){
Blob versionInfo;
const char *verboseFlag;
login_check_credentials();
if( !g.perm.Read ){ login_needed(g.anon.Read); return; }
verboseFlag = P("verbose");
style_header("Version Information");
style_submenu_element("Stat", "stat");
if( verboseFlag != 0 && !strcmp(verboseFlag, "2") ){
Stmt loop;
style_submenu_element("Fossil version", "version?verbose=1");
blob_zero(&versionInfo);
blob_appendf(&versionInfo, "SQLite %s %.30s\n",
sqlite3_libversion(), sqlite3_sourceid());
db_prepare(&loop, "pragma compile_options;");
while( db_step(&loop)==SQLITE_ROW ){
blob_appendf(&versionInfo, "%s\n", db_column_text(&loop, 0));
}
db_finalize(&loop);
}else{
style_submenu_element("SQLite version", "version?verbose=2");
get_version_blob(&versionInfo, verboseFlag != 0);
}
cgi_printf("<blockquote><pre>\n"
"%h\n"
"</pre></blockquote>\n",(blob_str(&versionInfo)));
style_footer();
}
/*
** Set the g.zBaseURL value to the full URL for the toplevel of
** the fossil tree. Set g.zTop to g.zBaseURL without the
|
| ︙ | ︙ |
Changes to src/stat.c.
| ︙ | ︙ | |||
179 180 181 182 183 184 185 |
}
/* @ <tr><th>Server ID:</th><td>%h(db_get("server-code",""))</td></tr> */
@ <tr><th>Fossil Version:</th><td>
@ %h(MANIFEST_DATE) %h(MANIFEST_VERSION)
@ (%h(RELEASE_VERSION)) <a href='version?verbose=1'>(details)</a>
@ </td></tr>
@ <tr><th>SQLite Version:</th><td>%.19s(sqlite3_sourceid())
| | > | 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 |
}
/* @ <tr><th>Server ID:</th><td>%h(db_get("server-code",""))</td></tr> */
@ <tr><th>Fossil Version:</th><td>
@ %h(MANIFEST_DATE) %h(MANIFEST_VERSION)
@ (%h(RELEASE_VERSION)) <a href='version?verbose=1'>(details)</a>
@ </td></tr>
@ <tr><th>SQLite Version:</th><td>%.19s(sqlite3_sourceid())
@ [%.10s(&sqlite3_sourceid()[20])] (%s(sqlite3_libversion()))
@ <a href='version?verbose=2'>(details)</a></td></tr>
@ <tr><th>Schema Version:</th><td>%h(g.zAuxSchema)</td></tr>
@ <tr><th>Repository Rebuilt:</th><td>
@ %h(db_get_mtime("rebuilt","%Y-%m-%d %H:%M:%S","Never"))
@ By Fossil %h(db_get("rebuilt","Unknown"))</td></tr>
@ <tr><th>Database Stats:</th><td>
@ %d(db_int(0, "PRAGMA repository.page_count")) pages,
@ %d(db_int(0, "PRAGMA repository.page_size")) bytes/page,
|
| ︙ | ︙ |