@ -51,17 +51,17 @@ bool CQnetDB::Update(const char *mycall, const char *sfx, const char *urcall, co
{
if (NULL == db)
return false;
std::string sql = "REPLACE INTO LHEARD (mycall,sfx,urcall,module,gateway,lasttime) VALUES (";
std::string sql = "REPLACE INTO LHEARD (mycall,sfx,urcall,module,gateway,lasttime) VALUES ('";
sql.append(mycall);
sql.append("\",\"");
sql.append("','");
sql.append(sfx);
sql.append(urcall);
sql.append(module);
sql.append(gateway);
sql.append("\",");
sql.append("',");
sql.append("strftime('%s','now'));");
char *eMsg;
@ -31,6 +31,7 @@
function GetCFGValue(string $key)
global $cfg, $defaults;
if (array_key_exists($key, $cfg))
return $cfg[$key];
if ('module_' == substr($key, 0, 7)) {
Powered by TurnKey Linux.