Notifies the user when an email is not valid.
[platal.git] / classes / platallogger.php
index 7ebdab0..9e9e535 100644 (file)
@@ -45,7 +45,7 @@ class PlatalLogger extends PlLogger
         $this->session = $this->writeSession($uid, $suid);
 
         // retrieve available actions
-        $res = XDB::iterRow("SELECT id, text FROM logger.actions");
+        $res = XDB::iterRow("SELECT id, text FROM #logger#.actions");
 
         while (list($action_id, $action_text) = $res->next()) {
             $this->actions[$action_text] = $action_id;
@@ -74,7 +74,7 @@ class PlatalLogger extends PlLogger
             $proxy = 'proxy';
         }
 
-        XDB::execute("INSERT INTO logger.sessions
+        XDB::execute("INSERT INTO #logger#.sessions
                          SET uid={?}, host={?}, ip={?}, forward_ip={?}, forward_host={?}, browser={?}, suid={?}, flags={?}",
                      $uid, $host, ip_to_uint($ip), ip_to_uint($forward_ip), $forward_host, $browser, $suid, $proxy);
         if ($forward_ip) {
@@ -91,7 +91,7 @@ class PlatalLogger extends PlLogger
     }
 
     public function saveLastSession() {
-        XDB::execute('REPLACE INTO  logger.last_sessions (uid, id)
+        XDB::execute('REPLACE INTO  #logger#.last_sessions (uid, id)
                             VALUES  ({?}, {?})',
                      $this->uid, $this->session);
     }
@@ -109,7 +109,7 @@ class PlatalLogger extends PlLogger
     public function log($action, $data = null)
     {
         if (isset($this->actions[$action])) {
-            XDB::execute("INSERT INTO logger.events
+            XDB::execute("INSERT INTO #logger#.events
                              SET session={?}, action={?}, data={?}",
                          $this->session, $this->actions[$action], $data);
         } else {