4images Forum & Community

4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started by: vietdragon on December 12, 2005, 09:26:49 AM

Title: how can 4images auto chmod to 777 for new folder?
Post by: vietdragon on December 12, 2005, 09:26:49 AM
After i creat new cat , have a new folder creat but it's chmod is 755 , how can it auto chmod to 777 ?

Thank !
Title: Re: how can 4images auto chmod to 777 for new folder?
Post by: V@no on December 12, 2005, 02:30:05 PM
1) try set it in includes/constants.php:
Code: [Select]
// Chmod for files and directories created by 4images
define('CHMOD_FILES', 0666);
define('CHMOD_DIRS', 0777);
2) if that doesnt work, then in admin/categories.php set it in this line:
Code: [Select]
      $result = mkdir($path, 0755);
Title: Re: how can 4images auto chmod to 777 for new folder?
Post by: vietdragon on December 13, 2005, 07:09:18 AM
Done , it working now , thanks ! :)