From c923c71eeb61fc005ce8e7977d3f7e3fb29c2700 Mon Sep 17 00:00:00 2001 From: senator Date: Wed, 2 Feb 2011 11:14:26 +0000 Subject: initial release of sunlock functionality --- server/src/macrotool/macrotool.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'server/src/macrotool/macrotool.cc') diff --git a/server/src/macrotool/macrotool.cc b/server/src/macrotool/macrotool.cc index b811c29..0445927 100644 --- a/server/src/macrotool/macrotool.cc +++ b/server/src/macrotool/macrotool.cc @@ -46,6 +46,7 @@ #include "fieldnames.h" #include "filehandler.h" #include "export.h" +#include "sunlock.h" static const char version_str[] = "Pracro server v" VERSION "\n" @@ -75,6 +76,8 @@ static const char usage_str[] = " ('fieldnames help' to see list of entities).\n" " filehandler entity Handle macro files ('filehandler help' to see list of entities).\n" " export entity Export data from database to comma separated file ('export help' to see list of entities)\n" +" sunlock sid Sets the status of a session id in the database" + " to 'idle'.\n" ; ConfigurationParser *configparser = NULL; @@ -161,6 +164,7 @@ int main(int argc, char *argv[]) if(command == "fieldnames") macrotool_fieldnames(params); if(command == "filehandler") macrotool_filehandler(params); if(command == "export") macrotool_export(params); + if(command == "sunlock") macrotool_sunlock(params); return 0; } -- cgit v1.2.3