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

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

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

revision 143 by torben, Tue Dec 4 13:25:32 2007 UTC revision 195 by torben, Sat Dec 8 16:47:03 2007 UTC
# Line 11  dburl; Line 11  dburl;
11    
12  <%session scope="global">  <%session scope="global">
13  std::string userName;  std::string userName;
 bool isAdmin;  
14  </%session>  </%session>
15    
16  <{  <{
# Line 30  if (userName.size() == 0) Line 29  if (userName.size() == 0)
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)
# Line 44  if (qparam.param("submit").size() > 0) Line 43  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);

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

  ViewVC Help
Powered by ViewVC 1.1.20