[phpcvsview-cvs-updates] phpcvsview cvsview.php,1.26,1.27 func_DirListing.php,1.11,1.12 phpcvs.php,1
Status: Pre-Alpha
Brought to you by:
bcheesem
From: Brian C. <bch...@us...> - 2005-08-07 03:33:44
|
Update of /cvsroot/phpcvsview/phpcvsview In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18279 Modified Files: cvsview.php func_DirListing.php phpcvs.php phpcvsmime.php Log Message: Index: phpcvsmime.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/phpcvsmime.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** phpcvsmime.php 1 Feb 2005 15:11:01 -0000 1.6 --- phpcvsmime.php 7 Aug 2005 03:33:35 -0000 1.7 *************** *** 10,15 **** * @version $Id$ * @copyright 2003-2005 Brian A Cheeseman ! **/ $MIME_TYPES = array( 'ez' => 'application/andrew-inset', --- 10,23 ---- * @version $Id$ * @copyright 2003-2005 Brian A Cheeseman ! */ + /** + * Special global variable holding a list of file extension to mime + * type conversion strings. + * @global array $MIME_TYPES + * @name $MIME_TYPES + */ + global $MIME_TYPES; + $MIME_TYPES = array( 'ez' => 'application/andrew-inset', Index: cvsview.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/cvsview.php,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -d -r1.26 -r1.27 *** cvsview.php 16 Apr 2005 02:39:09 -0000 1.26 --- cvsview.php 7 Aug 2005 03:33:35 -0000 1.27 *************** *** 1,5 **** <?php ! /** * This source code is distributed under the terms as layed out in the * GNU General Public License. --- 1,5 ---- <?php ! /* * This source code is distributed under the terms as layed out in the * GNU General Public License. *************** *** 10,14 **** * @version $Id$ * @copyright 2003-2005 Brian A Cheeseman ! **/ require_once 'config.php'; --- 10,14 ---- * @version $Id$ * @copyright 2003-2005 Brian A Cheeseman ! */ require_once 'config.php'; Index: phpcvs.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/phpcvs.php,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** phpcvs.php 24 Feb 2005 06:33:15 -0000 1.24 --- phpcvs.php 7 Aug 2005 03:33:35 -0000 1.25 *************** *** 13,32 **** **/ require_once 'Net/Socket.php'; class CVS_PServer { ! ! var $CVS_REPOSITORY; // Storage of the CVS Repository file system path. ! var $CVS_USERNAME; // Username to use when authenticating with the PServer. ! var $CVS_PASSWORD; // Password for the account above. ! var $CVS_PSERVER; // Hostname of the server running the PServer. ! var $CVS_PORT; // Port number the PServer listener is running on. ! var $CVS_TIMEOUT; // Timeout in seconds for all socket operations. ! var $CVS_VALID_REQUESTS; // List of valid requests the PServer accepts. ! var $SOCKET; // The socket handle for communicating with the PServer. ! var $ALLOWED_RESPONSES = array( // A hashed array of responses that we are capable of ! // processing and the contents is the name of the function ! // to process it through. "ok" => "processOk", "error" => "processError", --- 13,86 ---- **/ + /** + * Part of the PEAR packages, and is used to enable TCP communication with the + * hosting CVS pserver. + */ require_once 'Net/Socket.php'; + /** + * The CVS_PServer class provides a simplified interface to the CVS pserver. + * @subpackage PServer + */ class CVS_PServer { ! /** ! * Storage of the CVS Repository file system path. ! * @access private ! * @var string ! */ ! var $CVS_REPOSITORY; ! ! /** ! * Username to use when authenticating with the PServer. ! * @access private ! * @var string ! * @see $CVS_PASSWORD ! */ ! var $CVS_USERNAME; ! ! /** ! * Password for the account specified in $CVS_USERNAME. ! * @access private ! * @var string ! * @see $CVS_USERNAME ! */ ! var $CVS_PASSWORD; ! ! /** ! * Hostname of the server providing PServer services. ! * @access private ! * @var string ! */ ! var $CVS_PSERVER; ! ! /** ! * Port number the PServer listener is running on. ! * @access private ! * @var string ! */ ! var $CVS_PORT; ! ! /** ! * Timeout in seconds for all socket operations. ! * @access private ! * @var string ! */ ! var $CVS_TIMEOUT; ! ! /** ! * The socket handle for communicating with the PServer. ! * @access private ! * @var Net/Socket ! */ ! var $SOCKET; ! ! /** ! * A hashed array of responses that we are capable of processing and the ! * contents is the name of the function to process it through. ! * @access private ! * @var array ! */ ! var $ALLOWED_RESPONSES = array( "ok" => "processOk", "error" => "processError", *************** *** 63,72 **** ); ! var $ALLOWED_REQUESTS = array(); // A hashed array of requests we are allowed to send. ! var $FINAL_RESPONSE; // A state variable for tracking whether the final response ! // in a chain of lines was a success or failure. ! var $STDERR; // Standard Error output. (Does not mean that an error occured). ! var $MESSAGE_CONTENT; // Message contents. (Standard Out) ! var $FOLDERS = array(); // An array of the folders in the current module. var $FILES = array(); // An array of the files in the current module. var $CURRENT_FOLDER; // The current folder we are building up. --- 117,155 ---- ); ! /** ! * List of valid requests the PServer will accept from clients. ! * @access private ! * @var array ! */ ! var $ALLOWED_REQUESTS = array(); ! ! /** ! * A state variable for track whether this is the final line we are expecting ! * to receive from the CVS PServer. ! * @access private ! * @var boolean ! */ ! var $FINAL_RESPONSE; ! ! /* ! * Standard Error output. (Does not mean that an error occured). ! * @access private ! * @var string ! */ ! var $STDERR; ! ! /* ! * Message contents. (Standard Out) ! * @access private ! * @var string ! */ ! var $MESSAGE_CONTENT; ! ! /* ! * A list of the folders in the current module and/or directory. ! * @access public ! * @var array ! */ ! var $FOLDERS = array(); var $FILES = array(); // An array of the files in the current module. var $CURRENT_FOLDER; // The current folder we are building up. Index: func_DirListing.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/func_DirListing.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** func_DirListing.php 4 Feb 2005 09:41:35 -0000 1.11 --- func_DirListing.php 7 Aug 2005 03:33:35 -0000 1.12 *************** *** 28,31 **** --- 28,33 ---- $Response = $CVSServer->Authenticate(); if ($Response !== true) { + + echo "<h3>ERROR: ".$Response."</h3>"; return; } |