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.

drh 2015-02-05 20:58 UTC form-submenu
Commit f9cfb7c7aa3117da680e8ac4c379804ccd4aff94
1 file changed +17
+17
--- src/setup.c
+++ src/setup.c
@@ -1263,10 +1263,27 @@
12631263
@ <p><form action="%s(g.zTop)/setup_login_group" method="post"><div>
12641264
login_insert_csrf_secret();
12651265
@ To leave this login group press
12661266
@ <input type="submit" value="Leave Login Group" name="leave">
12671267
@ </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);
12681285
}
12691286
style_footer();
12701287
}
12711288
12721289
/*
12731290
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button