[0.1.13] Access (CHMOD, UNLINK, MKDIR) listed uncorrectly

Want to share what MODs you've gotten to work with EM? Happy about all the time your're saving? Want to say "thanks"? Here's the place.
Forum rules
DO NOT give out any FTP passwords to anyone! There is no reason to do so! If you need help badly enough, create a temporary FTP account that is restricted to only the files that you need help with and give the information for that. Giving out FTP information can be very dangerous!
Locked
User avatar
HSorgYves
Registered User
Posts: 4
Joined: Wed May 04, 2005 9:28 pm
Location: Luxembourg
Contact:

[0.1.13] Access (CHMOD, UNLINK, MKDIR) listed uncorrectly

Post by HSorgYves » Wed May 18, 2005 9:57 pm

The original code (in easymod_display_functions.php)

Code: Select all

else
	{
		// check for server chmod access
		$access['chmod_access'] = check_access_chmod( $access_msg) ;
		$variables['ACCESS_CHMOD'] = ($access['copy_access']) ? $ok_msg &#58 $no_msg ;

		// check for server unlink access
		$access['unlink_access'] = check_access_unlink( $access_msg) ;
		$variables['ACCESS_UNLINK'] = ($access['copy_access']) ? $ok_msg &#58 $no_msg ;

		// check for server mkdir access
		$access['mkdir_access'] = check_access_mkdir( $access_msg) ;
		$variables['ACCESS_MKDIR'] = ($access['copy_access']) ? $ok_msg &#58 $no_msg ;
	}
always uses $access['copy_access']. Shouldn't it be:

Code: Select all

		// check for server chmod access
		$access['chmod_access'] = check_access_chmod( $access_msg) ;
		$variables['ACCESS_CHMOD'] = ($access['chmod_access']) ? $ok_msg &#58 $no_msg ;

		// check for server unlink access
		$access['unlink_access'] = check_access_unlink( $access_msg) ;
		$variables['ACCESS_UNLINK'] = ($access['unlink_access']) ? $ok_msg &#58 $no_msg ;

		// check for server mkdir access
		$access['mkdir_access'] = check_access_mkdir( $access_msg) ;
		$variables['ACCESS_MKDIR'] = ($access['mkdir_access']) ? $ok_msg &#58 $no_msg ;

Locked