summaryrefslogtreecommitdiffstats
path: root/database/sqlite/administration.c
diff options
context:
space:
mode:
authorDavid Sommerseth <davids@redhat.com>2009-05-07 15:10:00 +0200
committerDavid Sommerseth <davids@redhat.com>2009-05-07 15:10:00 +0200
commitbbfeb72250428609c464a9abbb1c1a95ca83f882 (patch)
tree7f80a6fc7722cf64b8f303cdf15925f5171bafc2 /database/sqlite/administration.c
parente81e2357a03c26903a48c664b6b5d5be62e16f23 (diff)
downloadeurephia-bbfeb72250428609c464a9abbb1c1a95ca83f882.tar.gz
eurephia-bbfeb72250428609c464a9abbb1c1a95ca83f882.tar.xz
eurephia-bbfeb72250428609c464a9abbb1c1a95ca83f882.zip
Completed the attempts command in eurephiadm
Added functionality for resetting and deleting attempt records
Diffstat (limited to 'database/sqlite/administration.c')
-rw-r--r--database/sqlite/administration.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/database/sqlite/administration.c b/database/sqlite/administration.c
index e75dccd..f831c69 100644
--- a/database/sqlite/administration.c
+++ b/database/sqlite/administration.c
@@ -1565,7 +1565,7 @@ xmlDoc *eDBadminGetLastlog(eurephiaCTX *ctx, xmlDoc *srch, const char *sortkeys)
// The search XML document format is:
// <eurephia format="1">
-// <attemptslog mode="{search|add|delete}">
+// <attemptslog mode="{search|reset|delete}">
// <fieldMapping table="attempts">
// <{field name}>{field value}</{field field}>
// </fieldMapping>
@@ -1575,7 +1575,7 @@ xmlDoc *eDBadminGetLastlog(eurephiaCTX *ctx, xmlDoc *srch, const char *sortkeys)
// It can be several search field tags to limit the search even more.
//
xmlDoc *attempts_list(eurephiaCTX *ctx, eDBfieldMap *fmap);
-xmlDoc *attempts_add(eurephiaCTX *ctx, eDBfieldMap *fmap);
+xmlDoc *attempts_reset(eurephiaCTX *ctx, eDBfieldMap *fmap);
xmlDoc *attempts_delete(eurephiaCTX *ctx, eDBfieldMap *fmap);
xmlDoc *eDBadminAttemptsLog(eurephiaCTX *ctx, xmlDoc *qryxml) {
@@ -1612,8 +1612,8 @@ xmlDoc *eDBadminAttemptsLog(eurephiaCTX *ctx, xmlDoc *qryxml) {
if( strcmp(mode, "list") == 0 ) {
resxml = attempts_list(ctx, fmap);
- } else if( strcmp(mode, "add") == 0 ) {
- resxml = attempts_add(ctx, fmap);
+ } else if( strcmp(mode, "reset") == 0 ) {
+ resxml = attempts_reset(ctx, fmap);
} else if( strcmp(mode, "delete") == 0 ) {
resxml = attempts_delete(ctx, fmap);
} else {