1 |
torben |
104 |
<%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 |
|
|
if (userName.size() == 0) |
19 |
|
|
{ |
20 |
|
|
reply.setHeader("Location", "index"); |
21 |
|
|
return HTTP_MOVED_TEMPORARILY; |
22 |
|
|
} |
23 |
|
|
}> |
24 |
|
|
|
25 |
|
|
|
26 |
|
|
<&header title="Send configuration"> |
27 |
|
|
</&header> |
28 |
|
|
|
29 |
|
|
<{ |
30 |
|
|
|
31 |
|
|
tntdb::Connection conn = tntdb::connect(dburl); |
32 |
|
|
|
33 |
|
|
}> |
34 |
|
|
|
35 |
|
|
<&footer> |
36 |
|
|
</&footer> |