[Mapbender-commits] r8077 - in branches/2.7/http: classes
extensions javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Sun Aug 28 10:35:04 EDT 2011
Author: astrid_emde
Date: 2011-08-28 07:35:04 -0700 (Sun, 28 Aug 2011)
New Revision: 8077
Modified:
branches/2.7/http/classes/class_log.php
branches/2.7/http/classes/class_mb_exception.php
branches/2.7/http/extensions/ext_weldMaps.php
branches/2.7/http/javascripts/mod_log.js
Log:
define directory for log files in mapbender.conf and not in system.php
Modified: branches/2.7/http/classes/class_log.php
===================================================================
--- branches/2.7/http/classes/class_log.php 2011-08-28 14:30:28 UTC (rev 8076)
+++ branches/2.7/http/classes/class_log.php 2011-08-28 14:35:04 UTC (rev 8077)
@@ -8,7 +8,7 @@
require_once(dirname(__FILE__)."/../../core/globalSettings.php");
class log {
- var $dir = "../../log/";
+ var $dir = LOG_DIR;
var $log_username = true;
var $url = array();
Modified: branches/2.7/http/classes/class_mb_exception.php
===================================================================
--- branches/2.7/http/classes/class_mb_exception.php 2011-08-28 14:30:28 UTC (rev 8076)
+++ branches/2.7/http/classes/class_mb_exception.php 2011-08-28 14:35:04 UTC (rev 8077)
@@ -21,7 +21,7 @@
require_once(dirname(__FILE__)."/../classes/class_mb_log.php");
/**
- * Logs messages to a specified file, for example "../log/mb_error_log_<date>.log"
+ * Logs messages to a specified file, for example "../log/mb_error_log_<date>.log". Define LOG_DIR in mapbender.conf
*
* @package exceptionHandling
*/
@@ -42,4 +42,4 @@
*/
private $level = "error";
}
-?>
\ No newline at end of file
+?>
Modified: branches/2.7/http/extensions/ext_weldMaps.php
===================================================================
--- branches/2.7/http/extensions/ext_weldMaps.php 2011-08-28 14:30:28 UTC (rev 8076)
+++ branches/2.7/http/extensions/ext_weldMaps.php 2011-08-28 14:35:04 UTC (rev 8077)
@@ -36,7 +36,7 @@
function weldMaps($map_urls, $factor){
#{ file | false }
- #$debug_file = "/data/mapbender2/log/print.log";
+ #$debug_file = LOG_DIR."/print.log";
$debug_file = false;
settype($factor, "integer");
@@ -117,4 +117,4 @@
$map_urls = explode("###",Mapbender::session()->get("mb_print_url"));
$output = new weldMaps($map_urls, Mapbender::session()->get("mb_print_resolution"));
-?>
\ No newline at end of file
+?>
Modified: branches/2.7/http/javascripts/mod_log.js
===================================================================
--- branches/2.7/http/javascripts/mod_log.js 2011-08-28 14:30:28 UTC (rev 8076)
+++ branches/2.7/http/javascripts/mod_log.js 2011-08-28 14:35:04 UTC (rev 8077)
@@ -4,7 +4,7 @@
* Description:
* Logs the accesses to the guis in the database or a logfile
* The accesses will be written in the mapbender database on table mb_log or
- * into mapbender/log/mb_access_$DATE.log.
+ * into LOG_DIR/mb_access_$DATE.log.
* The log mode can be set via the element_var logtype (file or db).
*
* Files:
More information about the Mapbender_commits
mailing list