added a commented line to change the umask of created files
authorMarc MAURICE <dooblempub@positon.org>
Thu, 28 Apr 2011 15:44:02 +0000 (17:44 +0200)
committerMarc MAURICE <dooblempub@positon.org>
Thu, 28 Apr 2011 15:44:02 +0000 (17:44 +0200)
index.php

index 828b06c..2013ed7 100644 (file)
--- a/index.php
+++ b/index.php
@@ -69,6 +69,9 @@ function getPreview($imgFile, $maxSize = THUMB_SIZE)
                        return $imgFile;
                }
 
+               # uncomment this if you need group writable files
+               #umask(0002);
+
                # create the thumbs directory recursively
                if (! is_dir(dirname($newImgFile))) mkdir(dirname($newImgFile), 0777, true);