diff options
author | Urban Müller | 2007-08-28 15:19:15 +0000 |
---|---|---|
committer | Urban Müller | 2007-08-28 15:19:15 +0000 |
commit | 5623afdcd732ce3d89f9b78b17473a387718c050 (patch) | |
tree | a347a56ce0d1766feb08c0e804d083ca47912119 | |
parent | a61b8eafb5814f51846f93e7c06bf20e9163dc30 (diff) | |
download | itools-5623afdcd732ce3d89f9b78b17473a387718c050.tar.gz itools-5623afdcd732ce3d89f9b78b17473a387718c050.tar.bz2 itools-5623afdcd732ce3d89f9b78b17473a387718c050.zip |
always show alerts on devel
-rw-r--r-- | it.class | 22 |
1 files changed, 15 insertions, 7 deletions
@@ -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); |