locales modifications. left joins are for a future release
[old-projects.git] / philter / philter / include / plugin.inc.php
index 1f3bdfc..f4ddb87 100644 (file)
@@ -26,9 +26,8 @@ class Plugin {
     /** gives the LEFT JOIN to add to the sql request to have all this plugin datas
      * @return  the LEFT JOIN string, "" if irrelevant
      */
-    function sql_get() { return ""; }
-
-    function sql_clean($_uid, $_rid) { }
+    // function sql_get() { return ""; }
+    // function sql_clean($_uid, $_rid) { }
     
     /** stores the data to the mysql database
      * @param   $_uid   the id of the filter
@@ -66,7 +65,7 @@ class ActionPlugin extends Plugin {
     function ActionPlugin() { $this->Plugin(); }
     
     function sql_store($_uid, $_rid, $_data) {
-        mysql_query("INSERT INTO actions SET uid='$_uid',rid='$_rid',pid='{$_data[0]}',data='{$_data[1]}'");
+        mysql_query("INSERT INTO ".bd()."actions SET uid='$_uid',rid='$_rid',pid='{$_data[0]}',data='{$_data[1]}'");
     }
 }
 
@@ -82,9 +81,9 @@ class MatchPlugin extends Plugin {
 
     function sql_store($_uid, $_rid, $_data) {
         if($this->global)
-            mysql_query("INSERT INTO matches SET uid='$_uid',rid='0',pid='{$_data[0]}',data='{$_data[1]}'");
+            mysql_query("INSERT INTO ".bd()."matches SET uid='$_uid',rid='0',pid='{$_data[0]}',data='{$_data[1]}'");
         else
-            mysql_query("INSERT INTO matches SET uid='$_uid',rid='$_rid',pid='{$_data[0]}',data='{$_data[1]}'");
+            mysql_query("INSERT INTO ".bd()."matches SET uid='$_uid',rid='$_rid',pid='{$_data[0]}',data='{$_data[1]}'");
     }
 
     /** true if the plugin is used as global rule