Projekt

Allgemein

Profil

GX-Bug #54934 » Categories404Fix.patch

Till Tepelmann, 26.01.2018 19:05

Unterschiede anzeigen:

src/includes/application_top.php (revision )
1485 1485
	unset($_SESSION['last_redirect_url']);
1486 1486
}
1487 1487

  
1488
if ($pageNotFound)
1489
{
1490
	header('Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0');
1491
	header('Expires: Sat, 26 Jul 1997 05:00:00 GMT');
1492
	header("HTTP/1.0 404 Not Found");
1493

  
1494
	if(file_exists(DIR_FS_CATALOG.'error404.html')) {
1495
		include(DIR_FS_CATALOG.'error404.html');
1496
		xtc_db_close();
1497
		exit();
1498
	}
1499
	
1500
	if(file_exists(DIR_FS_CATALOG.'error404.php')) {
1501
		include(DIR_FS_CATALOG.'error404.php');
1502
		xtc_db_close();
1503
		exit();
1504
	}
1505
}
1506

  
1507 1488
/* EOF GM SEO MOD */
1508 1489
// new m URLS
1509 1490
if (isset ($_GET['manu']) && !isset($_GET['no_boost'])) {
......
1675 1656
			
1676 1657
			/* eof gm seo */
1677 1658
		} else {
1659
			$pageNotFound = true;
1660
			unset($_GET['cat']);
1678 1661
			break;
1679 1662
		}
1680 1663
	}
......
1686 1669
	$breadcrumb->add($manufacturers['manufacturers_name']);
1687 1670

  
1688 1671
}
1672

  
1673
if ($pageNotFound)
1674
{
1675
	header('Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0');
1676
	header('Expires: Sat, 26 Jul 1997 05:00:00 GMT');
1677
	header("HTTP/1.0 404 Not Found");
1678

  
1679
	if(file_exists(DIR_FS_CATALOG.'error404.html')) {
1680
		include(DIR_FS_CATALOG.'error404.html');
1681
		xtc_db_close();
1682
		exit();
1683
	}
1684

  
1685
	if(file_exists(DIR_FS_CATALOG.'error404.php')) {
1686
		include(DIR_FS_CATALOG.'error404.php');
1687
		xtc_db_close();
1688
		exit();
1689
	}
1690
}
1691

  
1689 1692

  
1690 1693
// add the products model/name to the breadcrumb trail
1691 1694
if ($product->isProduct()) {
    (1-1/1)