Parent Directory | Revision Log
Web - code sync
1 | <%pre> |
2 | #include <tntdb/connect.h> |
3 | #include <tntdb/connection.h> |
4 | #include <tntdb/result.h> |
5 | #include <tntdb/row.h> |
6 | </%pre> |
7 | |
8 | <%config> |
9 | dburl; |
10 | </%config> |
11 | |
12 | <%session scope="global"> |
13 | std::string userName; |
14 | bool isAdmin; |
15 | </%session> |
16 | |
17 | |
18 | <&header title="--Template--"> |
19 | </&header> |
20 | <{ |
21 | |
22 | if (userName.size() == 0) |
23 | reply.setHeader("Refresh", "0; url=login"); |
24 | |
25 | tntdb::Connection conn = tntdb::connect(dburl); |
26 | |
27 | }> |
28 | |
29 | <&footer> |
30 | </&footer> |
ViewVC Help | |
Powered by ViewVC 1.1.20 |