summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3f20f5b)
raw | patch | inline | side by side (parent: 3f20f5b)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 24 Jun 2005 09:09:24 +0000 (09:09 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 24 Jun 2005 09:09:24 +0000 (09:09 +0000) |
html/main.php | patch | blob | history |
diff --git a/html/main.php b/html/main.php
index fe4448f2917211ad876c1e0611ca775232549713..fc69a2c031000744a1fdb71c8f1994233c4cf447 100644 (file)
--- a/html/main.php
+++ b/html/main.php
/* For development, perform a W3C conformance check if specified in gosa.conf */
if (isset($config->data['MAIN']['W3CTEST']) && preg_match('/true/i', $config->data['MAIN']['W3CTEST'])) {
-# $display= "";
-}
-/* Show page... */
-echo $display;
+ /* Use PHP tidy for debugging */
+ // Specify configuration
+
+ $tidy = new tidy();
+ $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;
+}
/* Save plist */
$_SESSION['plist']= $plist;