From: cajus Date: Fri, 24 Jun 2005 07:06:48 +0000 (+0000) Subject: Prepared W3C check for tidy use X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4e8037174dfad351ee1c71b18198974678316632;p=gosa.git Prepared W3C check for tidy use git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@823 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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... */