summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2007-08-06 15:00:31 +0000
committerUrban Müller2007-08-06 15:00:31 +0000
commit2f4f6cb0931561d47b0e7a6da202c815278c2a32 (patch)
treef6f551c222acbfd0cebee75c30aa003f66e11810
parent1dc3cdb969ab035325061613b2d7cdeeb97917b1 (diff)
downloaditools-2f4f6cb0931561d47b0e7a6da202c815278c2a32.tar.gz
itools-2f4f6cb0931561d47b0e7a6da202c815278c2a32.tar.bz2
itools-2f4f6cb0931561d47b0e7a6da202c815278c2a32.zip
ensure correct permissions
-rw-r--r--it.class1
1 files changed, 1 insertions, 0 deletions
diff --git a/it.class b/it.class
index a10f003..26b15c2 100644
--- a/it.class
+++ b/it.class
@@ -118,6 +118,7 @@ function error($p = array(), $body = "", $to = "")
if ($sendalert && (time() - @filemtime($lastsentfn)) > 3600)
{
@mkdir("/tmp/alertdata");
+ @chmod("/tmp/alertdata", 0777);
touch($lastsentfn);
$url = ($_SERVER['HTTPS'] ? "https://" : "http://") . $_SERVER['HTTP_HOST'] .$_SERVER['REQUEST_URI'];