summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d8fd81b)
raw | patch | inline | side by side (parent: d8fd81b)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 24 May 2005 07:53:40 +0000 (07:53 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 24 May 2005 07:53:40 +0000 (07:53 +0000) |
html/main.php | patch | blob | history |
diff --git a/html/main.php b/html/main.php
index 50cee3fafa69798aa20f28a47815a60ee1f1b612..66b48334b4e0b361f6ca1fc1925a3f9339d06e53 100644 (file)
--- a/html/main.php
+++ b/html/main.php
$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;