Dont know how many people are interested in it, but i have got the password protected directories module running on windows. Only required a few modifications to the module to get it working fully.
The things that were preventing the module from running properly:
File: controller.ext.php
Line: 415
Issue: The if statement is checking if the user is staying in there home directory, only issue is that linux path separators are not being converted to windows
Before: if( 0 !== strpos($realPath, self::getHostDir() . self::getCurrentUsername() . '/'))
After: if( 0 !== strpos($realPath, realpath(self::getHostDir() . self::getCurrentUsername() . '/')))
File: controller.ext.php
Line: 424 & 849
Issue: The method of encrypting the password that is used does not work on windows. We fix it by adding a method to the bottom of the code that works on all platforms and replacing the calls to crypt.
Before: $encryptedPassword = crypt($password, base64_encode($password));
After: $encryptedPassword = self::crypt_apr1_md5($password);
After these changes i was able to create, delete, as well as modify users as well as the actual password files.
To install just download my already modified zip, run the SQL script in phpmyadmin on the sentora_core database to create the required tables, and install the module zpp.
The things that were preventing the module from running properly:
File: controller.ext.php
Line: 415
Issue: The if statement is checking if the user is staying in there home directory, only issue is that linux path separators are not being converted to windows
Before: if( 0 !== strpos($realPath, self::getHostDir() . self::getCurrentUsername() . '/'))
After: if( 0 !== strpos($realPath, realpath(self::getHostDir() . self::getCurrentUsername() . '/')))
File: controller.ext.php
Line: 424 & 849
Issue: The method of encrypting the password that is used does not work on windows. We fix it by adding a method to the bottom of the code that works on all platforms and replacing the calls to crypt.
Before: $encryptedPassword = crypt($password, base64_encode($password));
After: $encryptedPassword = self::crypt_apr1_md5($password);
After these changes i was able to create, delete, as well as modify users as well as the actual password files.
To install just download my already modified zip, run the SQL script in phpmyadmin on the sentora_core database to create the required tables, and install the module zpp.