diff --git a/html/main.php b/html/main.php
index fc69a2c031000744a1fdb71c8f1994233c4cf447..492b3478c2af0ac3009f5d85b54f751ea0391eda 100644 (file)
--- a/html/main.php
+++ b/html/main.php
$smarty->assign("help_method", "href='helpviewer.php$plug' target='_new'");
} else {
$smarty->assign("javascript", "true");
- $smarty->assign("help_method","href='' onclick=\"return popup('helpviewer.php$plug','GOsa help');\"");
+ $smarty->assign("help_method"," onclick=\"return popup('helpviewer.php$plug','GOsa help');\"");
}
$smarty->assign ("username", $ui->username);
@@ -287,22 +287,18 @@ if (isset($config->data['MAIN']['W3CTEST']) && preg_match('/true/i', $config->da
$config = array('indent' => TRUE,
'output-xhtml' => TRUE,
'wrap' => 200);
-
- $tidy = tidy_parse_string($display, $config, 'UTF8');
- tidy_clean_repair($tidy);
-//$tidy->diagnose();
- $cnt = tidy_error_count($tidy);
-// if($cnt != 0){
- echo nl2br(htmlentities($tidy->errorBuffer));
-// }
- tidy_clean_repair($tidy);
-
-echo $tidy;
-}else{
- /* Show page... */
- echo $display;
+ $display = tidy_parse_string($display, $config, 'UTF8');
+ tidy_clean_repair($display);
+ $cnt = (tidy_error_count($display))+(tidy_warning_count($display));
+ if($cnt != 0){
+ echo "<div style='background:#FFFFFF;'>".nl2br(htmlentities($display->errorBuffer))."</div>";
+ }
+ tidy_clean_repair($display);
}
+/* Show page... */
+echo $display;
+
/* Save plist */
$_SESSION['plist']= $plist;