svn: /web/doc-editor/trunk/php/ class.php
| From: | Yannick Torres | Date: | Wed, 11 Nov 2009 20:51:44 +0000 |
| Subject: | svn: /web/doc-editor/trunk/php/ class.php | ||
| Groups: | php.doc.web | ||
| Request: | Send a blank email to doc-web+get-1121@lists.php.net to get a copy of this message | ||
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.