@@ -1472,7 +1472,7 @@ function update($event_name, $data) {
14721472 if (!is_dir ($ data ['new ' ]['document_root ' ].'/ ' . $ web_folder . '/stats ' )) $ app ->system ->mkdir ($ data ['new ' ]['document_root ' ].'/ ' . $ web_folder . '/stats ' );
14731473 $ ht_file = "AuthType Basic \nAuthName \"Members Only \"\nAuthUserFile " .$ data ['new ' ]['document_root ' ]."/web/stats/.htpasswd_stats \nrequire valid-user " ;
14741474 $ app ->system ->file_put_contents ($ data ['new ' ]['document_root ' ].'/ ' . $ web_folder . '/stats/.htaccess ' , $ ht_file );
1475- $ app ->system ->chmod ($ data ['new ' ]['document_root ' ].'/ ' . $ web_folder . '/stats/.htaccess ' , 0755 );
1475+ $ app ->system ->chmod ($ data ['new ' ]['document_root ' ].'/ ' . $ web_folder . '/stats/.htaccess ' , 0751 );
14761476 unset($ ht_file );
14771477 //}
14781478
@@ -1482,7 +1482,7 @@ function update($event_name, $data) {
14821482 $ app ->system ->web_folder_protection ($ data ['new ' ]['document_root ' ], false );
14831483 $ app ->system ->file_put_contents ($ data ['new ' ]['document_root ' ].'/web/stats/.htpasswd_stats ' , $ htp_file );
14841484 $ app ->system ->web_folder_protection ($ data ['new ' ]['document_root ' ], true );
1485- $ app ->system ->chmod ($ data ['new ' ]['document_root ' ].'/web/stats/.htpasswd_stats ' , 0755 );
1485+ $ app ->system ->chmod ($ data ['new ' ]['document_root ' ].'/web/stats/.htpasswd_stats ' , 0751 );
14861486 unset($ htp_file );
14871487 }
14881488 }
@@ -2009,7 +2009,7 @@ function web_folder_user($event_name, $data) {
20092009 //* Create empty .htpasswd file, if it does not exist
20102010 if (!is_file ($ folder_path .'.htpasswd ' )) {
20112011 $ app ->system ->touch ($ folder_path .'.htpasswd ' );
2012- $ app ->system ->chmod ($ folder_path .'.htpasswd ' , 0750 );
2012+ $ app ->system ->chmod ($ folder_path .'.htpasswd ' , 0751 );
20132013 $ app ->system ->chown ($ folder_path .'.htpasswd ' , $ website ['system_user ' ]);
20142014 $ app ->system ->chgrp ($ folder_path .'.htpasswd ' , $ website ['system_group ' ]);
20152015 $ app ->log ('Created file ' .$ folder_path .'.htpasswd ' , LOGLEVEL_DEBUG );
@@ -2063,7 +2063,7 @@ function web_folder_user($event_name, $data) {
20632063 unset($ old_content );
20642064
20652065 $ app ->system ->file_put_contents ($ folder_path .'.htaccess ' , $ ht_file );
2066- $ app ->system ->chmod ($ folder_path .'.htaccess ' , 0750 );
2066+ $ app ->system ->chmod ($ folder_path .'.htaccess ' , 0751 );
20672067 $ app ->system ->chown ($ folder_path .'.htaccess ' , $ website ['system_user ' ]);
20682068 $ app ->system ->chgrp ($ folder_path .'.htaccess ' , $ website ['system_group ' ]);
20692069 $ app ->log ('Created/modified file ' .$ folder_path .'.htaccess ' , LOGLEVEL_DEBUG );
@@ -2225,15 +2225,15 @@ function web_folder_update($event_name, $data) {
22252225 }
22262226
22272227 $ app ->system ->file_put_contents ($ new_folder_path .'.htaccess ' , $ ht_file );
2228- $ app ->system ->chmod ($ new_folder_path .'.htaccess ' , 0750 );
2228+ $ app ->system ->chmod ($ new_folder_path .'.htaccess ' , 0751 );
22292229 $ app ->system ->chown ($ new_folder_path .'.htaccess ' , $ website ['system_user ' ]);
22302230 $ app ->system ->chgrp ($ new_folder_path .'.htaccess ' , $ website ['system_group ' ]);
22312231 $ app ->log ('Created/modified file ' .$ new_folder_path .'.htaccess ' , LOGLEVEL_DEBUG );
22322232
22332233 //* Create empty .htpasswd file, if it does not exist
22342234 if (!is_file ($ folder_path .'.htpasswd ' )) {
22352235 $ app ->system ->touch ($ new_folder_path .'.htpasswd ' );
2236- $ app ->system ->chmod ($ new_folder_path .'.htpasswd ' , 0750 );
2236+ $ app ->system ->chmod ($ new_folder_path .'.htpasswd ' , 0751 );
22372237 $ app ->system ->chown ($ new_folder_path .'.htpasswd ' , $ website ['system_user ' ]);
22382238 $ app ->system ->chgrp ($ new_folder_path .'.htpasswd ' , $ website ['system_group ' ]);
22392239 $ app ->log ('Created file ' .$ new_folder_path .'.htpasswd ' , LOGLEVEL_DEBUG );
0 commit comments