[Mapbender-commits] r6198 - trunk/mapbender/http/php
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Wed May 12 06:19:33 EDT 2010
Author: verenadiewald
Date: 2010-05-12 06:19:25 -0400 (Wed, 12 May 2010)
New Revision: 6198
Added:
trunk/mapbender/http/php/mb_js_exception.php
Log:
file for js logging
Added: trunk/mapbender/http/php/mb_js_exception.php
===================================================================
--- trunk/mapbender/http/php/mb_js_exception.php (rev 0)
+++ trunk/mapbender/http/php/mb_js_exception.php 2010-05-12 10:19:25 UTC (rev 6198)
@@ -0,0 +1,20 @@
+<?php
+require_once(dirname(__FILE__)."/../php/mb_validateSession.php");
+
+$message = $_POST['text'];
+$level = $_POST['level'];
+
+if ($level == "warning") {
+ $e = new mb_warning($message);
+}
+else if ($level == "notice") {
+ $e = new mb_notice($message);
+}
+else if ($level == "error") {
+ $e = new mb_exception($message);
+}
+else {
+ $e = new mb_exception($message);
+}
+echo $type . " '" . $message . "' thrown.";
+?>
\ No newline at end of file
More information about the Mapbender_commits
mailing list