<?php

	// Cache
	require_once('dis_cache.php');

	$path = explode('/', trim($_SERVER['REQUEST_URI'], '/'));
	if(array_shift($path) != 'neue'){
		$ERROR404 = 'bad url';
		require_once('dis_404.php');
	}

	$type = 'auto';
	$type_id = 'neue';
	$PAGE = 0;
	$canonical_url = '/neue/';
	if(count($path) == 1 && preg_match('!^seite([0-9]+).html$!', $path[0], $r)){
		$PAGE = max(0, $r[1]-1);
	}
	if($PAGE > 0){
		$canonical_url .= 'seite'.($PAGE+1).'.html';
	}
	if($_SERVER['REQUEST_URI'] != $canonical_url){
		header('HTTP/1.1 301 Moved Permanently');
		header('Location: '.$canonical_url);
		die();
	}
	$PICTOOLS_LOG = 'neue';
	$DISPLAY_TOP20_FULL = true;
	require_once('dis_list.php');

?>