\n";exit('404');}$uri = $url;$html = preg_replace( '~([ -]href="'.$url.'")~', '$1 data-link-state="on"', $html );while( substr_count( $uri, '/' ) > 1 ){$uri = substr( $uri, 0, strrpos( $uri, '/' ) );$html = preg_replace( '~([ -]href="'.$uri.'")~', '$1 data-link-state="in"', $html );}if( $html && strpos( $html, 'data-wip-menu' ) >= 0 ){$html = preg_replace_callback( '~[uo]l)\b(?P[^<>]*)\bdata-wip-menu="(?P[0-9a-z_-]+)"(?P[^<>]*)/?>(?:)?~', function( $m ){$uol = $m['tag'];$before = $m['before'];$after = $m['after'];$signature = $m['signature'];$url = strtok( $_SERVER['REQUEST_URI'], '?' );$menupath = ROOT.'/wipmenu/'. $signature .'.htm';if( is_file( $menupath ) ){$menu = file_get_contents( $menupath );$menu = preg_replace('/[\t\n\r]+/', '', $menu );$menu = preg_replace( '~(
  • ]*> 1 ){$url = substr( $url, 0, strrpos( $url, '/' ) );$menu = preg_replace( '~(
  • )~', '$1 in$2', $menu );}$menu = preg_replace( '~^
      ~', '', $menu );if( $uol == 'ul' ) $menu = preg_replace('~(])~', '$1ul$2', $menu );}return $menu;}, $html );}$html = preg_replace('/[\t\n\r]+/', '', $html );}header('Expires: Sat, 26 Jul 1997 05:00:00 GMT');header('Last-Modified: '.gmdate("D, d M Y H:i:s").' GMT');header('Cache-Control: no-store, no-cache, must-revalidate'); // HTTP/1.1header('Cache-Control: post-check=0, pre-check=0', false);header('Pragma: no-cache'); // HTTP/1.0header('Cache-control: private');exit( $html );?>