Aaaaaaah ..... mit /src gehts ein Stück weiter. Nun schimpft er aber beim Klick auf den "Editor-Link"
HTTP ERROR 403
Problem accessing /cometVISU/src/editor/. Reason:
ForbiddenPowered by Jetty://
und beim klick auf den config-chek-Link sieht's total wild aus:
<\\1\\2\\3>",$s); $s = preg_replace("#<([\?])(.*)([\?])>#sU", "[COLOR=\"#800000\"]<\\1\\2\\3>[/COLOR]",$s); $s = preg_replace("#<([^\s\?/=])(.*)([\[\s/]|>)#iU", "<[COLOR=\"#808000\"]\\1\\2[/COLOR]\\3",$s); $s = preg_replace("#<([/])([^\s]*?)([\s\]]*?)>#iU", "<\\1[COLOR=\"#808000\"]\\2[/COLOR]\\3>",$s); $s = preg_replace("#([^\s]*?)\=("|')(.*)("|')#isU", "[COLOR=\"#800080\"]\\1[/COLOR]=[COLOR=\"#FF00FF\"]\\2\\3\\4[/COLOR]",$s); $s = preg_replace("#<(.*)(\[)(.*)(\])>#isU", "<\\1[COLOR=\"#800080\"]\\2\\3\\4[/COLOR]>",$s); return preg_replace( '#
$#', '', nl2br($s) ); } function libxml_display_error( $error ) { global $lines, $error_array; $error_array[] = $error->line; switch ($error->level) { case LIBXML_ERR_WARNING: $return .= 'Warning ' . $error->code . ': '; break; case LIBXML_ERR_ERROR: $return .= 'Error ' . $error->code . ': '; break; case LIBXML_ERR_FATAL: $return .= 'Fatal Error ' . $error->code . ': '; break; } $return .= trim( $error->message ); $return .= ' on line ' . $error->line . ''; $return .= ''; for( $i = max( 0, $error->line - 1 - 3); $i <= $error->line - 1 + 3; $i++ ) { if( $i == $error->line - 1 ) $return .= ''; $return .= sprintf( '%4d: ', $i+1 ); $return .= xml_highlight( $lines[ $i ] ); if( $i == $error->line - 1 ) $return .= ''; } $return .= ''; return $return; } function checkVersion( $dom ) { echo ''; $fileVersion = $dom->getElementsByTagName("pages")->item(0)->getAttribute('lib_version'); echo "The config file uses a library version of '" . $fileVersion . "', current version is '" . LIBRARY_VERSION . "', so this is " . ($fileVersion==LIBRARY_VERSION?'':'NOT ') . "up to date."; if( $fileVersion != LIBRARY_VERSION ) echo ' Pleiase run Configuration Upgrade when you are sure that the config file is valid XML.'; } // Enable user error handling libxml_use_internal_errors(true); $dom = new DomDocument(); $conffile = 'config/visu_config'; if ($_GET['config']) { $conffile .= "_" . $_GET['config']; } $conffile .= '.xml'; if ( false === is_readable( $conffile ) ) { $conffile = 'config/demo/visu_config'; if ($_GET['config']) { $conffile .= "_" . $_GET['config']; } $conffile .= '.xml'; } if( false === is_readable( $conffile ) ) { $old_conffile = 'visu_config'; if ($_GET['config']) { $old_conffile .= "_" . $_GET['config']; } $old_conffile .= '.xml'; if( true === is_readable( $old_conffile ) ) { $conffile = $old_conffile; echo 'WARNING: Depreciated position of config file!'; } else { echo "File $conffile (nor the depreciated $old_conffile) does not exist!"; echo ''; exit; } } $lines = file( $conffile ); $dom->load( $conffile ); if( $dom->schemaValidate( 'visu_config.xsd' ) ) { print ("config " . $conffile . " is valid XML
"); checkVersion( $dom ); } else { print ("config " . $conffile . " is NOT valid XML"); checkVersion( $dom ); echo ''; $errors = libxml_get_errors(); foreach( $errors as $error ) { echo libxml_display_error( $error ); } libxml_clear_errors(); } echo ''; echo ''; foreach( $lines as $line_num => $line ) { $error_in_line = in_array( $line_num+1, $error_array ); if( $error_in_line ) echo ''; printf( '%4d: ', $line_num, $line_num+1 ); echo xml_highlight( $line ); if( $error_in_line ) echo ''; } echo ''; ?>
HTTP ERROR 403
Problem accessing /cometVISU/src/editor/. Reason:
ForbiddenPowered by Jetty://
und beim klick auf den config-chek-Link sieht's total wild aus:
<\\1\\2\\3>",$s); $s = preg_replace("#<([\?])(.*)([\?])>#sU", "[COLOR=\"#800000\"]<\\1\\2\\3>[/COLOR]",$s); $s = preg_replace("#<([^\s\?/=])(.*)([\[\s/]|>)#iU", "<[COLOR=\"#808000\"]\\1\\2[/COLOR]\\3",$s); $s = preg_replace("#<([/])([^\s]*?)([\s\]]*?)>#iU", "<\\1[COLOR=\"#808000\"]\\2[/COLOR]\\3>",$s); $s = preg_replace("#([^\s]*?)\=("|')(.*)("|')#isU", "[COLOR=\"#800080\"]\\1[/COLOR]=[COLOR=\"#FF00FF\"]\\2\\3\\4[/COLOR]",$s); $s = preg_replace("#<(.*)(\[)(.*)(\])>#isU", "<\\1[COLOR=\"#800080\"]\\2\\3\\4[/COLOR]>",$s); return preg_replace( '#
$#', '', nl2br($s) ); } function libxml_display_error( $error ) { global $lines, $error_array; $error_array[] = $error->line; switch ($error->level) { case LIBXML_ERR_WARNING: $return .= 'Warning ' . $error->code . ': '; break; case LIBXML_ERR_ERROR: $return .= 'Error ' . $error->code . ': '; break; case LIBXML_ERR_FATAL: $return .= 'Fatal Error ' . $error->code . ': '; break; } $return .= trim( $error->message ); $return .= ' on line ' . $error->line . ''; $return .= ''; for( $i = max( 0, $error->line - 1 - 3); $i <= $error->line - 1 + 3; $i++ ) { if( $i == $error->line - 1 ) $return .= ''; $return .= sprintf( '%4d: ', $i+1 ); $return .= xml_highlight( $lines[ $i ] ); if( $i == $error->line - 1 ) $return .= ''; } $return .= ''; return $return; } function checkVersion( $dom ) { echo ''; $fileVersion = $dom->getElementsByTagName("pages")->item(0)->getAttribute('lib_version'); echo "The config file uses a library version of '" . $fileVersion . "', current version is '" . LIBRARY_VERSION . "', so this is " . ($fileVersion==LIBRARY_VERSION?'':'NOT ') . "up to date."; if( $fileVersion != LIBRARY_VERSION ) echo ' Pleiase run Configuration Upgrade when you are sure that the config file is valid XML.'; } // Enable user error handling libxml_use_internal_errors(true); $dom = new DomDocument(); $conffile = 'config/visu_config'; if ($_GET['config']) { $conffile .= "_" . $_GET['config']; } $conffile .= '.xml'; if ( false === is_readable( $conffile ) ) { $conffile = 'config/demo/visu_config'; if ($_GET['config']) { $conffile .= "_" . $_GET['config']; } $conffile .= '.xml'; } if( false === is_readable( $conffile ) ) { $old_conffile = 'visu_config'; if ($_GET['config']) { $old_conffile .= "_" . $_GET['config']; } $old_conffile .= '.xml'; if( true === is_readable( $old_conffile ) ) { $conffile = $old_conffile; echo 'WARNING: Depreciated position of config file!'; } else { echo "File $conffile (nor the depreciated $old_conffile) does not exist!"; echo ''; exit; } } $lines = file( $conffile ); $dom->load( $conffile ); if( $dom->schemaValidate( 'visu_config.xsd' ) ) { print ("config " . $conffile . " is valid XML
"); checkVersion( $dom ); } else { print ("config " . $conffile . " is NOT valid XML"); checkVersion( $dom ); echo ''; $errors = libxml_get_errors(); foreach( $errors as $error ) { echo libxml_display_error( $error ); } libxml_clear_errors(); } echo ''; echo ''; foreach( $lines as $line_num => $line ) { $error_in_line = in_array( $line_num+1, $error_array ); if( $error_in_line ) echo ''; printf( '%4d: ', $line_num, $line_num+1 ); echo xml_highlight( $line ); if( $error_in_line ) echo ''; } echo ''; ?>
Kommentar