/[H9]/trunk/tntnet/dynamic/adm_template.ecpp
ViewVC logotype

Diff of /trunk/tntnet/dynamic/adm_template.ecpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 83 by torben, Wed Nov 28 17:03:27 2007 UTC revision 195 by torben, Sat Dec 8 16:47:03 2007 UTC
# Line 14  std::string userName; Line 14  std::string userName;
14  bool isAdmin;  bool isAdmin;
15  </%session>  </%session>
16    
17    <{
18    if (userName.size() == 0)
19    {
20            reply.setHeader("Location", "index");
21            return HTTP_MOVED_TEMPORARILY;
22    }
23    }>
24    
25    
26  <&header title="--Template--">  <&header title="--Template--">
27  </&header>  </&header>
 <{  
28    
29  if (userName.size() == 0)  <{
     reply.setHeader("Refresh", "0; url=login");  
30    
31  tntdb::Connection conn = tntdb::connect(dburl);  tntdb::Connection conn = tntdb::connectCached(dburl);
32    
33  }>  }>
34    

Legend:
Removed from v.83  
changed lines
  Added in v.195

  ViewVC Help
Powered by ViewVC 1.1.20