summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2007-08-28 15:19:15 +0000
committerUrban Müller2007-08-28 15:19:15 +0000
commit5623afdcd732ce3d89f9b78b17473a387718c050 (patch)
treea347a56ce0d1766feb08c0e804d083ca47912119
parenta61b8eafb5814f51846f93e7c06bf20e9163dc30 (diff)
downloaditools-5623afdcd732ce3d89f9b78b17473a387718c050.tar.gz
itools-5623afdcd732ce3d89f9b78b17473a387718c050.tar.bz2
itools-5623afdcd732ce3d89f9b78b17473a387718c050.zip
always show alerts on devel
-rw-r--r--it.class22
1 files changed, 15 insertions, 7 deletions
diff --git a/it.class b/it.class
index 1a19b98..569599a 100644
--- a/it.class
+++ b/it.class
@@ -2,13 +2,21 @@
/*
** $Id$
**
-** ITools - the Internet Tools Library
+** Copyright (C) 1995-2007 by the ITools Authors.
+** This file is part of ITools - the Internet Tools Library
**
-** Copyright (C) 1995-2006 by the ITools Authors.
-** This program is free software; you can redistribute it and/or
-** modify it under the terms of either the GNU General Public License
-** or the GNU Lesser General Public License, as published by the Free
-** Software Foundation. See http://www.gnu.org/licenses/ for details.
+** ITools is free software; you can redistribute it and/or modify
+** it under the terms of the GNU General Public License as published by
+** the Free Software Foundation; either version 3 of the License, or
+** (at your option) any later version.
+**
+** ITools is distributed in the hope that it will be useful,
+** but WITHOUT ANY WARRANTY; without even the implied warranty of
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+** GNU General Public License for more details.
+**
+** You should have received a copy of the GNU General Public License
+** along with this program. If not, see <http://www.gnu.org/licenses/>.
**
** it.class - static functions
*/
@@ -115,7 +123,7 @@ function error($p = array(), $body = "", $to = "")
$sendalert = true;
}
- if ($sendalert && (time() - @filemtime($lastsentfn)) > 3600)
+ if ($sendalert && (!ereg('live', $GLOBALS['ULTRASERVERTYPE']) || (time() - @filemtime($lastsentfn)) > 3600))
{
@mkdir("/tmp/alertdata");
@chmod("/tmp/alertdata", 0777);