Fossil SCM
The access-log should default to ON, in all cases. [forum:/forumpost/a16a4e1556|Forum post a16a4e1556].
Commit
fc79c57c591759dc351281a7159b4a97bbbf6b546fbda8c63d721529dec5ecd7
Parent
9225f7d3e001d54…
2 files changed
+1
-1
+1
-1
+1
-1
| --- src/login.c | ||
| +++ src/login.c | ||
| @@ -199,11 +199,11 @@ | ||
| 199 | 199 | const char *zUsername, /* Name of user logging in */ |
| 200 | 200 | const char *zIpAddr, /* IP address from which they logged in */ |
| 201 | 201 | int bSuccess /* True if the attempt was a success */ |
| 202 | 202 | ){ |
| 203 | 203 | db_unprotect(PROTECT_READONLY); |
| 204 | - if( db_get_boolean("access-log", 0) ){ | |
| 204 | + if( db_get_boolean("access-log", 1) ){ | |
| 205 | 205 | create_accesslog_table(); |
| 206 | 206 | db_multi_exec( |
| 207 | 207 | "INSERT INTO accesslog(uname,ipaddr,success,mtime)" |
| 208 | 208 | "VALUES(%Q,%Q,%d,julianday('now'));", |
| 209 | 209 | zUsername, zIpAddr, bSuccess |
| 210 | 210 |
| --- src/login.c | |
| +++ src/login.c | |
| @@ -199,11 +199,11 @@ | |
| 199 | const char *zUsername, /* Name of user logging in */ |
| 200 | const char *zIpAddr, /* IP address from which they logged in */ |
| 201 | int bSuccess /* True if the attempt was a success */ |
| 202 | ){ |
| 203 | db_unprotect(PROTECT_READONLY); |
| 204 | if( db_get_boolean("access-log", 0) ){ |
| 205 | create_accesslog_table(); |
| 206 | db_multi_exec( |
| 207 | "INSERT INTO accesslog(uname,ipaddr,success,mtime)" |
| 208 | "VALUES(%Q,%Q,%d,julianday('now'));", |
| 209 | zUsername, zIpAddr, bSuccess |
| 210 |
| --- src/login.c | |
| +++ src/login.c | |
| @@ -199,11 +199,11 @@ | |
| 199 | const char *zUsername, /* Name of user logging in */ |
| 200 | const char *zIpAddr, /* IP address from which they logged in */ |
| 201 | int bSuccess /* True if the attempt was a success */ |
| 202 | ){ |
| 203 | db_unprotect(PROTECT_READONLY); |
| 204 | if( db_get_boolean("access-log", 1) ){ |
| 205 | create_accesslog_table(); |
| 206 | db_multi_exec( |
| 207 | "INSERT INTO accesslog(uname,ipaddr,success,mtime)" |
| 208 | "VALUES(%Q,%Q,%d,julianday('now'));", |
| 209 | zUsername, zIpAddr, bSuccess |
| 210 |
+1
-1
| --- src/user.c | ||
| +++ src/user.c | ||
| @@ -777,11 +777,11 @@ | ||
| 777 | 777 | if( skip ){ |
| 778 | 778 | style_submenu_element("Newer", "%R/user_log?o=%d&n=%d&y=%d", |
| 779 | 779 | skip>=n ? skip-n : 0, n, y); |
| 780 | 780 | } |
| 781 | 781 | rc = db_prepare_ignore_error(&q, "%s", blob_sql_text(&sql)); |
| 782 | - fLogEnabled = db_get_boolean("access-log", 0); | |
| 782 | + fLogEnabled = db_get_boolean("access-log", 1); | |
| 783 | 783 | @ <div align="center">User logging is %s(fLogEnabled?"on":"off"). |
| 784 | 784 | @ (Change this on the <a href="setup_settings">settings</a> page.)</div> |
| 785 | 785 | @ <table border="1" cellpadding="5" class="sortable" align="center" \ |
| 786 | 786 | @ data-column-types='Ttt' data-init-sort='1'> |
| 787 | 787 | @ <thead><tr><th width="33%%">Date</th><th width="34%%">User</th> |
| 788 | 788 |
| --- src/user.c | |
| +++ src/user.c | |
| @@ -777,11 +777,11 @@ | |
| 777 | if( skip ){ |
| 778 | style_submenu_element("Newer", "%R/user_log?o=%d&n=%d&y=%d", |
| 779 | skip>=n ? skip-n : 0, n, y); |
| 780 | } |
| 781 | rc = db_prepare_ignore_error(&q, "%s", blob_sql_text(&sql)); |
| 782 | fLogEnabled = db_get_boolean("access-log", 0); |
| 783 | @ <div align="center">User logging is %s(fLogEnabled?"on":"off"). |
| 784 | @ (Change this on the <a href="setup_settings">settings</a> page.)</div> |
| 785 | @ <table border="1" cellpadding="5" class="sortable" align="center" \ |
| 786 | @ data-column-types='Ttt' data-init-sort='1'> |
| 787 | @ <thead><tr><th width="33%%">Date</th><th width="34%%">User</th> |
| 788 |
| --- src/user.c | |
| +++ src/user.c | |
| @@ -777,11 +777,11 @@ | |
| 777 | if( skip ){ |
| 778 | style_submenu_element("Newer", "%R/user_log?o=%d&n=%d&y=%d", |
| 779 | skip>=n ? skip-n : 0, n, y); |
| 780 | } |
| 781 | rc = db_prepare_ignore_error(&q, "%s", blob_sql_text(&sql)); |
| 782 | fLogEnabled = db_get_boolean("access-log", 1); |
| 783 | @ <div align="center">User logging is %s(fLogEnabled?"on":"off"). |
| 784 | @ (Change this on the <a href="setup_settings">settings</a> page.)</div> |
| 785 | @ <table border="1" cellpadding="5" class="sortable" align="center" \ |
| 786 | @ data-column-types='Ttt' data-init-sort='1'> |
| 787 | @ <thead><tr><th width="33%%">Date</th><th width="34%%">User</th> |
| 788 |