From 5623afdcd732ce3d89f9b78b17473a387718c050 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Tue, 28 Aug 2007 15:19:15 +0000 Subject: always show alerts on devel --- it.class | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) (limited to 'it.class') 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 . ** ** 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); -- cgit v1.2.3