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 20:51:44 +0000

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

Log:
Remove checkCvsAuth's method from class.php. This method is present in CvsClient.php as authenticate'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 20:47:51 UTC (rev 290522)
+++ web/doc-editor/trunk/php/class.php	2009-11-11 20:51:44 UTC (rev 290523)
@@ -496,35 +496,6 @@
     }

     /**
-     * Test the CVS credentials against the server
-     *
-     * @return TRUE if the loggin success, error message otherwise.
-     */
-    function checkCvsAuth() {
-
-        $fp = fsockopen(DOC_EDITOR_CVS_SERVER_HOST, DOC_EDITOR_CVS_SERVER_PORT);
-        fwrite($fp, "BEGIN AUTH REQUEST\n");
-        fwrite($fp, DOC_EDITOR_CVS_SERVER_PATH . "\n");
-        fwrite($fp, $this->cvsLogin."\n");
-
-        fwrite($fp, $this->encodeCvsPass($this->cvsPasswd,"A")."\n");
-        fwrite($fp, "END AUTH REQUEST\n");
-
-        $r = trim(fread($fp, 1024));
-
-        if ($r != 'I LOVE YOU')  {
-            if ($r == 'I HATE YOU') {
-                return 'Bad password';
-            } else {
-                return $r;
-            }
-        } else {
-            return true;
-        }
-
-    }
-
-    /**
      * Get Cvs log of a specified file.
      *
      * @param $Path The path of the file.
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.