11 |
|
|
12 |
<%session scope="global"> |
<%session scope="global"> |
13 |
std::string userName; |
std::string userName; |
|
bool isAdmin; |
|
14 |
</%session> |
</%session> |
15 |
|
|
16 |
<{ |
<{ |
29 |
std::string phonenr; |
std::string phonenr; |
30 |
|
|
31 |
|
|
32 |
tntdb::Connection conn = tntdb::connect(dburl); |
tntdb::Connection conn = tntdb::connectCached(dburl); |
33 |
|
|
34 |
|
|
35 |
if (qparam.param("submit").size() > 0) |
if (qparam.param("submit").size() > 0) |
43 |
|
|
44 |
|
|
45 |
tntdb::Result res = conn.select("SELECT name,value FROM config"); |
tntdb::Result res = conn.select("SELECT name,value FROM config"); |
46 |
for (int i=0; i<res.size(); ++i) |
for (unsigned int i=0; i<res.size(); ++i) |
47 |
{ |
{ |
48 |
std::string name = res[i].getString(0); |
std::string name = res[i].getString(0); |
49 |
std::string value = res[i].getString(1); |
std::string value = res[i].getString(1); |