Code

better w3c test
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 24 May 2005 13:52:40 +0000 (13:52 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 24 May 2005 13:52:40 +0000 (13:52 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@382 594d385d-05f5-0310-b6e9-bd551577e9d8

html/main.php

index d0d182243bdac9a02fd5641f15a3b524fe5149df..9cea4577fc827f95b9b241096bd3b8723c213aef 100644 (file)
@@ -286,6 +286,12 @@ if(file_exists("dow3ccheck.chk"))
   $str = shell_exec( "curl -F uploaded_file=@/tmp/current.html http://127.0.0.1/w3c-markup-validator/check ");
   if(!preg_match("/This Page Is Valid/",$str ))
     print $str;
+  else
+    print '<p>
+      <a href="http://dyn-209/w3c-markup-validator/check?uri=referer"><img border="0"
+          src="http://dyn-209/w3c-markup-validator/images/vh401.png"
+          alt="Valid HTML 4.01!" height="31" width="88"></a>
+    </p>';
   }
 
 $_SESSION['plist']= $plist;