--- trunk/tntnet/dynamic/adm_template.ecpp 2007/11/28 17:03:27 83 +++ trunk/tntnet/dynamic/adm_template.ecpp 2007/12/08 16:47:03 195 @@ -14,15 +14,21 @@ 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); +tntdb::Connection conn = tntdb::connectCached(dburl); }>