From: hickert Date: Tue, 24 May 2005 07:53:40 +0000 (+0000) Subject: Only show W3c errors ich the file dow3ccheck.chk, exists X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=dd918eed6c6f23dd67e3c1c12825f03a535190b6;p=gosa.git 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 --- 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;