From 4e8037174dfad351ee1c71b18198974678316632 Mon Sep 17 00:00:00 2001 From: cajus Date: Fri, 24 Jun 2005 07:06:48 +0000 Subject: [PATCH] Prepared W3C check for tidy use git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@823 594d385d-05f5-0310-b6e9-bd551577e9d8 --- html/main.php | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/html/main.php b/html/main.php index c73b24a8f..4ca6a634e 100644 --- a/html/main.php +++ b/html/main.php @@ -24,10 +24,6 @@ require_once ("../include/php_setup.inc"); require_once ("functions.inc"); header("Content-type: text/html; charset=UTF-8"); -/* Reset error handler */ -$error_collector= ""; -set_error_handler('gosaRaiseError'); - /* Find all class files and include them */ get_dir_list("$BASE_DIR/plugins"); @@ -283,19 +279,8 @@ $smarty->assign("w3c", ""); $display= $header.$smarty->fetch(get_template_path('framework.tpl')); /* For development, perform a W3C conformance check if specified in gosa.conf */ -if (isset($config->data['MAIN']['W3CTEST'])) { - $fp = fopen("/tmp/gosa.html","w+"); - fwrite($fp, $display, strlen($display)); - $url= $config->data['MAIN']['W3CTEST']; - $str = shell_exec( "curl -F uploaded_file=@/tmp/gosa.html $url/check"); - if(!preg_match("/This Page Is Valid/i",$str )){ - /* Show errors */ - echo $str; - } else { - /* Re-render page with W3C logo */ - $smarty->assign("w3c", "\"\""); - $display= $header.$smarty->fetch(get_template_path('framework.tpl')); - } +if (isset($config->data['MAIN']['W3CTEST']) && preg_match('/true/i', $config->data['MAIN']['W3CTEST'])) { +# $display= ""; } /* Show page... */ -- 2.30.2