Code

Only show W3c errors ich the file dow3ccheck.chk, exists
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 24 May 2005 07:53:40 +0000 (07:53 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 24 May 2005 07:53:40 +0000 (07:53 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@362 594d385d-05f5-0310-b6e9-bd551577e9d8

html/main.php

index 50cee3fafa69798aa20f28a47815a60ee1f1b612..66b48334b4e0b361f6ca1fc1925a3f9339d06e53 100644 (file)
@@ -278,10 +278,13 @@ if ($error_collector != ""){
 $display = $mtmp.$smarty->fetch(get_template_path('framework.tpl'));
 print $display;
 
-$fp = fopen("/tmp/current.html","w+");
-fwrite($fp,$display,strlen($display));
-$str = shell_exec( "curl -F uploaded_file=@/tmp/current.html http://127.0.0.1/w3c-markup-validator/check ");
-print $str;
+if(file_exists("dow3ccheck.chk"))
+  {
+  $fp = fopen("/tmp/current.html","w+");
+  fwrite($fp,$display,strlen($display));
+  $str = shell_exec( "curl -F uploaded_file=@/tmp/current.html http://127.0.0.1/w3c-markup-validator/check ");
+  print $str;
+  }
 
 $_SESSION['plist']= $plist;