From fc1cd1b952b0fa8f56f40f1a990b87f396cd8483 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 24 May 2005 05:14:36 +0000 Subject: [PATCH] W3c git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@352 594d385d-05f5-0310-b6e9-bd551577e9d8 --- html/main.php | 11 +++++++++-- ihtml/themes/default/framework.tpl | 6 +++--- ihtml/themes/default/headers.tpl | 6 +----- 3 files changed, 13 insertions(+), 10 deletions(-) diff --git a/html/main.php b/html/main.php index b8fe29024..7005a1646 100644 --- a/html/main.php +++ b/html/main.php @@ -223,7 +223,7 @@ if (isset($plug)){ } else { $smarty->assign ("plug", ""); } -$smarty->display(get_template_path('headers.tpl')); +$mtmp= $smarty->fetch(get_template_path('headers.tpl')); /* React on clicks */ if ($_SERVER["REQUEST_METHOD"] == "POST"){ @@ -273,7 +273,14 @@ if ($error_collector != ""){ } else { $smarty->assign("php_errors", ""); } -$smarty->display(get_template_path('framework.tpl')); +$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; + $_SESSION['plist']= $plist; // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: diff --git a/ihtml/themes/default/framework.tpl b/ihtml/themes/default/framework.tpl index e7337090f..28eaf1d34 100644 --- a/ihtml/themes/default/framework.tpl +++ b/ihtml/themes/default/framework.tpl @@ -2,7 +2,7 @@ {$php_errors}
- +
-
GOSA2 @@ -36,7 +36,7 @@
+
 
{$menu}
@@ -54,4 +54,4 @@
-
+
diff --git a/ihtml/themes/default/headers.tpl b/ihtml/themes/default/headers.tpl index 5a960cc49..926892d8c 100644 --- a/ihtml/themes/default/headers.tpl +++ b/ihtml/themes/default/headers.tpl @@ -1,9 +1,5 @@ - -- 2.30.2