Skip to content

Commit 8fc7f11

Browse files
committedJul 6, 2011
1 parent 4d2c770 commit 8fc7f11

File tree

5,398 files changed

+482149
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

5,398 files changed

+482149
-0
lines changed
 

‎404.php

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<?php
2+
/*
3+
* 2007-2011 PrestaShop
4+
*
5+
* NOTICE OF LICENSE
6+
*
7+
* This source file is subject to the Open Software License (OSL 3.0)
8+
* that is bundled with this package in the file LICENSE.txt.
9+
* It is also available through the world-wide-web at this URL:
10+
* http://opensource.org/licenses/osl-3.0.php
11+
* If you did not receive a copy of the license and are unable to
12+
* obtain it through the world-wide-web, please send an email
13+
* to license@prestashop.com so we can send you a copy immediately.
14+
*
15+
* DISCLAIMER
16+
*
17+
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
18+
* versions in the future. If you wish to customize PrestaShop for your
19+
* needs please refer to http://www.prestashop.com for more information.
20+
*
21+
* @author PrestaShop SA <contact@prestashop.com>
22+
* @copyright 2007-2011 PrestaShop SA
23+
* @version Release: $Revision: 6844 $
24+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25+
* International Registered Trademark & Property of PrestaShop SA
26+
*/
27+
28+
/* Send the proper status code in HTTP headers */
29+
header('HTTP/1.1 404 Not Found');
30+
header('Status: 404 Not Found');
31+
32+
if (in_array(substr($_SERVER['REQUEST_URI'], -3), array('png', 'jpg', 'gif')))
33+
{
34+
require_once(dirname(__FILE__).'/config/settings.inc.php');
35+
header('Location: '.__PS_BASE_URI__.'img/404.gif');
36+
exit;
37+
}
38+
elseif (in_array(substr($_SERVER['REQUEST_URI'], -3), array('.js', 'css')))
39+
die('');
40+
41+
require_once(dirname(__FILE__).'/config/config.inc.php');
42+
ControllerFactory::getController('PageNotFoundController')->run();

‎CHANGELOG

+3,384
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)
Please sign in to comment.