1 diff -ur eventum-20051221/include/class.draft.php eventum-20051221.perms/include/class.draft.php
2 --- eventum-20051221/include/class.draft.php 2005-12-21 17:54:59.000000000 +0200
3 +++ eventum-20051221.perms/include/class.draft.php 2005-12-21 17:54:24.000000000 +0200
5 $fp = @fopen($path . $filename, 'w');
6 @fwrite($fp, $message);
8 - @chmod($path . $filename, 0777);
9 + @chmod($path . $filename, 0750);
13 diff -ur eventum-20051221/include/class.misc.php eventum-20051221.perms/include/class.misc.php
14 --- eventum-20051221/include/class.misc.php 2005-12-21 17:55:00.000000000 +0200
15 +++ eventum-20051221.perms/include/class.misc.php 2005-12-21 17:53:59.000000000 +0200
17 if (!is_writable($file)) {
18 if (!stristr(PHP_OS, "win")) {
19 // let's try to change the permissions ourselves
20 - @chmod($file, 0777);
21 + @chmod($file, 0750);
23 if (!is_writable($file)) {
25 diff -ur eventum-20051221/include/class.note.php eventum-20051221.perms/include/class.note.php
26 --- eventum-20051221/include/class.note.php 2005-12-21 17:55:00.000000000 +0200
27 +++ eventum-20051221.perms/include/class.note.php 2005-12-21 17:54:30.000000000 +0200
29 $fp = @fopen($path . $filename, 'w');
30 @fwrite($fp, $message);
32 - @chmod($path . $filename, 0777);
33 + @chmod($path . $filename, 0750);
37 diff -ur eventum-20051221/include/class.support.php eventum-20051221.perms/include/class.support.php
38 --- eventum-20051221/include/class.support.php 2005-12-21 17:55:00.000000000 +0200
39 +++ eventum-20051221.perms/include/class.support.php 2005-12-21 17:49:55.000000000 +0200
41 $fp = @fopen($path . $filename, 'w');
42 @fwrite($fp, $message);
44 - @chmod($path . $filename, 0777);
48 diff -ur eventum-20051221/include/jpgraph/jpgraph.php eventum-20051221.perms/include/jpgraph/jpgraph.php
49 --- eventum-20051221/include/jpgraph/jpgraph.php 2005-12-21 17:54:59.000000000 +0200
50 +++ eventum-20051221.perms/include/jpgraph/jpgraph.php 2005-12-21 17:53:53.000000000 +0200
52 $aFile = dirname($aFile);
54 for ($i = sizeof($dirs)-1; $i>=0; $i--) {
55 - if(! @mkdir($dirs[$i],0777) )
56 + if(! @mkdir($dirs[$i],0750) )
57 JpGraphError::Raise("<b>JpGraph Error:</b> Can't create directory in $aFile. Permission problems?");
59 // We also specify mode here after we have changed group.
61 if( CACHE_FILE_GROUP != "" ) {
63 $res =@chgrp($dirs[$i],CACHE_FILE_GROUP);
64 - $res &= @chmod($dirs[$i],0777);
65 + $res &= @chmod($dirs[$i],0750);
67 JpGraphError::Raise("<b>JpGraph Error:</b> Can't set permissions for $aFile. Permission problems?");
69 diff -ur eventum-20051221/setup/index.php eventum-20051221.perms/setup/index.php
70 --- eventum-20051221/setup/index.php 2005-12-21 17:55:00.000000000 +0200
71 +++ eventum-20051221.perms/setup/index.php 2005-12-21 17:53:18.000000000 +0200
73 if (!is_writable($file)) {
74 if (!stristr(PHP_OS, "win")) {
75 // let's try to change the permissions ourselves
76 - @chmod($file, 0777);
77 + @chmod($file, 0750);
79 if (!is_writable($file)) {
80 return "$desc is not writable";