--- trunk/tntnet/dynamic/adm_template.ecpp 2007/11/29 07:34:54 93 +++ trunk/tntnet/dynamic/adm_template.ecpp 2007/11/29 08:04:13 94 @@ -14,16 +14,19 @@ bool isAdmin; - -<&header title="--Template--"> - <{ - if (userName.size() == 0) { - reply.setHeader("Refresh", "0; url=login"); - return HTTP_OK; + reply.setHeader("Location", "index"); + return HTTP_MOVED_TEMPORARILY; } +}> + + +<&header title="--Template--"> + + +<{ tntdb::Connection conn = tntdb::connect(dburl);