Fossil SCM
Show some debugging information at the bottom of the Login Group Configuration screen: /setup_login_group. This is only visible by the admin.
Commit
f9cfb7c7aa3117da680e8ac4c379804ccd4aff94
Parent
9e2e48a4c395d6e…
1 file changed
+17
+17
| --- src/setup.c | ||
| +++ src/setup.c | ||
| @@ -1263,10 +1263,27 @@ | ||
| 1263 | 1263 | @ <p><form action="%s(g.zTop)/setup_login_group" method="post"><div> |
| 1264 | 1264 | login_insert_csrf_secret(); |
| 1265 | 1265 | @ To leave this login group press |
| 1266 | 1266 | @ <input type="submit" value="Leave Login Group" name="leave"> |
| 1267 | 1267 | @ </form></p> |
| 1268 | + @ <hr><h2>Implementation Details</h2> | |
| 1269 | + @ <p>The following are fields from the CONFIG table related to login-groups, | |
| 1270 | + @ provided here for instructional and debugging purposes:</p> | |
| 1271 | + @ <table border='1' id='configTab'> | |
| 1272 | + @ <thead><tr><th>Config.Name<th>Config.Value<th>Config.mtime</tr></thead><tbody> | |
| 1273 | + db_prepare(&q, "SELECT name, value, datetime(mtime,'unixepoch') FROM config" | |
| 1274 | + " WHERE name GLOB 'peer-*'" | |
| 1275 | + " OR name GLOB 'project-*'" | |
| 1276 | + " ORDER BY name"); | |
| 1277 | + while( db_step(&q)==SQLITE_ROW ){ | |
| 1278 | + @ <tr><td>%h(db_column_text(&q,0))</td> | |
| 1279 | + @ <td>%h(db_column_text(&q,1))</td> | |
| 1280 | + @ <td>%h(db_column_text(&q,2))</td></tr> | |
| 1281 | + } | |
| 1282 | + db_finalize(&q); | |
| 1283 | + @ </tbody></table> | |
| 1284 | + output_table_sorting_javascript("configTab","ttt",1); | |
| 1268 | 1285 | } |
| 1269 | 1286 | style_footer(); |
| 1270 | 1287 | } |
| 1271 | 1288 | |
| 1272 | 1289 | /* |
| 1273 | 1290 |
| --- src/setup.c | |
| +++ src/setup.c | |
| @@ -1263,10 +1263,27 @@ | |
| 1263 | @ <p><form action="%s(g.zTop)/setup_login_group" method="post"><div> |
| 1264 | login_insert_csrf_secret(); |
| 1265 | @ To leave this login group press |
| 1266 | @ <input type="submit" value="Leave Login Group" name="leave"> |
| 1267 | @ </form></p> |
| 1268 | } |
| 1269 | style_footer(); |
| 1270 | } |
| 1271 | |
| 1272 | /* |
| 1273 |
| --- src/setup.c | |
| +++ src/setup.c | |
| @@ -1263,10 +1263,27 @@ | |
| 1263 | @ <p><form action="%s(g.zTop)/setup_login_group" method="post"><div> |
| 1264 | login_insert_csrf_secret(); |
| 1265 | @ To leave this login group press |
| 1266 | @ <input type="submit" value="Leave Login Group" name="leave"> |
| 1267 | @ </form></p> |
| 1268 | @ <hr><h2>Implementation Details</h2> |
| 1269 | @ <p>The following are fields from the CONFIG table related to login-groups, |
| 1270 | @ provided here for instructional and debugging purposes:</p> |
| 1271 | @ <table border='1' id='configTab'> |
| 1272 | @ <thead><tr><th>Config.Name<th>Config.Value<th>Config.mtime</tr></thead><tbody> |
| 1273 | db_prepare(&q, "SELECT name, value, datetime(mtime,'unixepoch') FROM config" |
| 1274 | " WHERE name GLOB 'peer-*'" |
| 1275 | " OR name GLOB 'project-*'" |
| 1276 | " ORDER BY name"); |
| 1277 | while( db_step(&q)==SQLITE_ROW ){ |
| 1278 | @ <tr><td>%h(db_column_text(&q,0))</td> |
| 1279 | @ <td>%h(db_column_text(&q,1))</td> |
| 1280 | @ <td>%h(db_column_text(&q,2))</td></tr> |
| 1281 | } |
| 1282 | db_finalize(&q); |
| 1283 | @ </tbody></table> |
| 1284 | output_table_sorting_javascript("configTab","ttt",1); |
| 1285 | } |
| 1286 | style_footer(); |
| 1287 | } |
| 1288 | |
| 1289 | /* |
| 1290 |