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