14 |
bool isAdmin; |
bool isAdmin; |
15 |
</%session> |
</%session> |
16 |
|
|
|
|
|
|
<&header title="--Template--"> |
|
|
</&header> |
|
17 |
<{ |
<{ |
|
|
|
18 |
if (userName.size() == 0) |
if (userName.size() == 0) |
19 |
{ |
{ |
20 |
reply.setHeader("Refresh", "0; url=login"); |
reply.setHeader("Location", "index"); |
21 |
return HTTP_OK; |
return HTTP_MOVED_TEMPORARILY; |
22 |
} |
} |
23 |
|
}> |
24 |
|
|
25 |
|
|
26 |
|
<&header title="--Template--"> |
27 |
|
</&header> |
28 |
|
|
29 |
|
<{ |
30 |
|
|
31 |
tntdb::Connection conn = tntdb::connect(dburl); |
tntdb::Connection conn = tntdb::connectCached(dburl); |
32 |
|
|
33 |
}> |
}> |
34 |
|
|