Ross Tang - 2016-06-01

vi /etc/svn-access-manager/config.inc.php
106 # valid values for pwcrypt are sha, apr-md5, md5, or crypt
107 // $CONF['pwcrypt'] = 'md5';
108 $CONF['pwcrypt'] = 'none';
...
207 // SVN server is svnserve or not
208 $CONF['svnserve'] = 'YES';

vi /usr/share/svn-access-manager/include/createAuthFiles.php
46 if( $fileHandle = @fopen( $tempfile, 'w' ) ) {
47 if( ($CONF['svnserve'] == "YES") ) {
48 @fwrite( $fileHandle, "[users]\n" );
49 }
...
171 if( $fileHandle = @fopen( $tempfile, 'w' ) ) {
172
173 if( ($CONF['svnserve'] == "YES") ) {
174 @fwrite( $fileHandle, "[users]\n" );
175 }

vi /usr/share/svn-access-manager/login.php
93 $salt = "";
94
95 if( ($CONF['pwcrypt'] != "none") ) {
96 $salt = $row['password'];
97 }
98
99 $password = addslashes( pacrypt ($fPassword, $salt) );

vi /usr/share/svn-access-manager/password.php
72 $salt = "";
73
74 if( (($CONF['pwcrypt'] != "none")) ) {
75 $salt = $row['password'];
76 }
77
78 $checked_password = addslashes( pacrypt ($fPassword_current, $salt) );