svn commit: r50 - trunk/mapbender/http/classes/class_mb_exception.php

uli at osgeo.org uli at osgeo.org
Thu Apr 13 17:00:27 EDT 2006


Author: uli
Date: 2006-04-13 21:00:27+0000
New Revision: 50

Added:
   trunk/mapbender/http/classes/class_mb_exception.php

Log:
import Mapbender source without history

Added: trunk/mapbender/http/classes/class_mb_exception.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/classes/class_mb_exception.php?view=auto&rev=50
==============================================================================
--- (empty file)
+++ trunk/mapbender/http/classes/class_mb_exception.php	2006-04-13 21:00:27+0000
@@ -0,0 +1,44 @@
+<?php
+
+# $Id: class_mb_exception.php,v 1.5 2005/09/13 16:23:31 c_baudson Exp $
+# $Header: /cvsroot/mapbender/mapbender/http/classes/class_mb_exception.php,v 1.5 2005/09/13 16:23:31 c_baudson Exp $
+# Copyright (C) 2002 CCGIS 
+#
+# This program 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 2, or (at your option)
+# any later version.
+#
+# This program 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, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+/*
+* class exception
+*
+*/
+class mb_exception{
+	
+	var $dir = "../../log/";
+	
+	function mb_exception($n){
+		if(is_dir($this->dir)){
+			$logfile = $this->dir . "mb_error_" . date("Y_m_d") . ".log";
+			if(!$h = @fopen($logfile,"a")){
+			}
+			else{
+				$content = date("Y.m.d") . "," . date("H:i:s") . "," . $n .chr(13).chr(10);
+				if(!fwrite($h,$content)){
+					#exit;
+				}
+				fclose($h);
+			}
+		}
+	}
+}
+?>
\ No newline at end of file




More information about the Mapbender_commits mailing list