svn: /web/doc-editor/trunk/php/ class.php

[email protected] (Yannick Torres)
Newsgroups php.doc.web
Message-ID <[email protected]>
yannick                                  Wed, 11 Nov 2009 21:04:04 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=290528

Log:
Remove registerUser's method from class.php. This method is present in AccountManager.php as register's method

Changed paths:
    U   web/doc-editor/trunk/php/class.php

Modified: web/doc-editor/trunk/php/class.php
===================================================================
--- web/doc-editor/trunk/php/class.php	2009-11-11 21:02:59 UTC (rev 290527)
+++ web/doc-editor/trunk/php/class.php	2009-11-11 21:04:04 UTC (rev 290528)
@@ -452,19 +452,6 @@
     }

     /**
-     * Register a new valid user on the application.
-     *
-     * @todo The CVS password is stored in plain text into the database for later use. We need to find something better
-     * @return int The database insert id
-     */
-    function registerUser()
-    {
-        $s = sprintf('INSERT INTO `users` (`cvs_login`, `cvs_passwd`) VALUES ("%s", "%s")', $this->cvsLogin, $this->cvsPasswd);
-        $this->db->query($s) or die('Error: '.$this->db->error.'|'.$s);
-        return $this->db->insert_id;
-    }
-
-    /**
      * Parse a string to find all attributs.
      *
      * @param $tags_attrs The string to parse.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.