summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a871661)
raw | patch | inline | side by side (parent: a871661)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 28 Jun 2005 07:15:30 +0000 (07:15 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 28 Jun 2005 07:15:30 +0000 (07:15 +0000) |
contrib/gosa.conf | patch | blob | history | |
include/php_setup.inc | patch | blob | history |
diff --git a/contrib/gosa.conf b/contrib/gosa.conf
index 1cb7f8567a02745b645dd04a8dea32fd1ed845fb..a45dbb93f603ff334f34c0761b95f865bdb77715 100644 (file)
--- a/contrib/gosa.conf
+++ b/contrib/gosa.conf
iconsize="48x48"
pwminlen="6"
forceglobals="false"
- smbhash='{SMBHASH}'>
+ smbhash='{SMBHASH}'
+ displayerros="false">
<location name="{LOCATIONNAME}"
uidbase="1000"
diff --git a/include/php_setup.inc b/include/php_setup.inc
index c6769741cf2e655bdff4ada2bd1594980f1d9443..5fcfd69d0689d6628d27cd9d06c0b0dfa7dcd0d6 100644 (file)
--- a/include/php_setup.inc
+++ b/include/php_setup.inc
function gosaRaiseError($errno, $errstr, $errfile, $errline)
{
- global $error_collector;
+ global $error_collector,$config;
/* Return if error reporting is set to zero */
if (error_reporting() == 0){
}
}
+ if((isset($config->data))){
+ if((isset($config->data['MAIN']['DISPLAYERRORS']))&&(!preg_match("/true/i",$config->data['MAIN']['DISPLAYERRORS']))){
+ /* Write to syslog */
+ gosa_log ("PHP error: $errstr ($errfile, line $errline)");
+ return;
+ }
+ }
+
+
/* Create header as needed */
if ($error_collector == ""){
if ($_SESSION['js']==FALSE){
/* Close error table */
$error_collector.= "</table>";
- /* Write to syslog */
- gosa_log ("PHP error: $errstr ($errfile, line $errline)");
-
/* Flush in case of fatal errors */
if (preg_match('/^fatal/i', $errstr)){
echo $error_collector."</div>";