<%
include("/jagg/jagg.jag");


(function () {
    var mod, obj, result, username,
            action = request.getParameter("action"),
            site = require("/site/conf/site.json"),
            msg = require("/site/conf/ui-messages.jag");
    if (action === "logout") {
        jagg.setUser(null);
        print({
            error:false
        });
    } else {
        print({
            error:true,
            message:msg.error.invalidAction(action)
        });
    }
}());
%>