From dd918eed6c6f23dd67e3c1c12825f03a535190b6 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 24 May 2005 07:53:40 +0000 Subject: [PATCH] Only show W3c errors ich the file dow3ccheck.chk, exists git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@362 594d385d-05f5-0310-b6e9-bd551577e9d8 --- html/main.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/html/main.php b/html/main.php index 50cee3faf..66b48334b 100644 --- a/html/main.php +++ b/html/main.php @@ -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; -- 2.30.2