--- trunk/tntnet/dynamic/header.ecpp 2007/11/28 12:40:20 77 +++ trunk/tntnet/dynamic/header.ecpp 2007/11/28 14:00:17 78 @@ -1,11 +1,19 @@ <%args> title; +<%session scope="global"> +std::string userName; +bool isAdmin; + <{ if (title.size() > 0) { title = std::string(" - ") + title; } + +//Cache control +reply.setHeader("Cache-Control", "no-cache, must-revalidate"); // Http/1.1 +reply.setHeader("Expires", "Mon, 26 Jul 1997 05:00:00 GMT"); //date in the past }> @@ -69,8 +77,22 @@ Index
Critical systems
Customers & installations
- -


+ +
+ +<{ +if (userName.size() > 0) { +}> + + Logout
+ +<{ +} else { +}> + Login +<{ +} //endif +}>