--- trunk/tntnet/dynamic/adm_template.ecpp 2007/11/29 05:21:04 92 +++ trunk/tntnet/dynamic/adm_template.ecpp 2007/12/08 16:47:03 195 @@ -14,18 +14,21 @@ 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); +tntdb::Connection conn = tntdb::connectCached(dburl); }>