summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a1faedd)
raw | patch | inline | side by side (parent: a1faedd)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 24 Jun 2005 07:06:48 +0000 (07:06 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 24 Jun 2005 07:06:48 +0000 (07:06 +0000) |
html/main.php | patch | blob | history |
diff --git a/html/main.php b/html/main.php
index c73b24a8f39cc44f7f30cc39d091f35db7f4b008..4ca6a634ee2d39473975346c97d4dd97badb5547 100644 (file)
--- a/html/main.php
+++ b/html/main.php
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");
$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", "<a href=\"$url/check?uri=referer\"><img alt=\"\" border=\"0\" src=\"$url/images/vh401.png\" alt=\"Valid HTML 4.01!\" height=\"31\" width=\"88\"></a>");
- $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... */