Minor display cleanup
[mirrors/Kyberia-bloodline.git] / wwwroot / backend / mysql / backend.inc
index 4bdcc8c0d8568f5455ae9bb9847e338708f93b7b..554ba63c37358dc693def85738493c7f5443d1a6 100644 (file)
@@ -715,10 +715,10 @@ public static function resetPassword($login_id,$login,$vercode,$password) {
                return $error;
        }
 
-       if ($login_id = 0) {
+       if ($login_id == 0) {
                $set=$db->query("select * from users where login='$login'");
        } else {
-               $set=$db->query("select * from users where user_id='$login'");
+               $set=$db->query("select * from users where user_id='$login_id'");
        }
 
        $set->next();
@@ -739,5 +739,19 @@ public static function resetPassword($login_id,$login,$vercode,$password) {
        return $error;
 }
 
+// levenshteinLog
+
+// Log user action for later analysis
+// Secure.
+
+public static function levenshteinLog($userid,$nodeid) {
+       global $db;
+
+       $q="insert delayed into levenshtein set user_id='".$userid."',node_id='".$node_id."'";
+       $db->update($q);
+       
+}
+
+
 }
 ?>
This page took 0.113137 seconds and 4 git commands to generate.