commit
da5c066312
@ -1,3 +1,4 @@
|
|||||||
|
ErrorDocument 404 /index.php?page=error&action=404
|
||||||
RedirectMatch 404 /templates(/|$)
|
RedirectMatch 404 /templates(/|$)
|
||||||
RedirectMatch 404 /include(/|$)
|
RedirectMatch 404 /include(/|$)
|
||||||
RedirectMatch 404 /.git(/|$)
|
RedirectMatch 404 /.git(/|$)
|
||||||
|
|||||||
9
public/include/pages/error.inc.php
Normal file
9
public/include/pages/error.inc.php
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
// Make sure we are called from index.php
|
||||||
|
if (!defined('SECURITY'))
|
||||||
|
die('Hacking attempt');
|
||||||
|
|
||||||
|
// Tempalte specifics
|
||||||
|
$smarty->assign("CONTENT", "default.tpl");
|
||||||
|
?>
|
||||||
9
public/include/pages/error/404.inc.php
Normal file
9
public/include/pages/error/404.inc.php
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
// Make sure we are called from index.php
|
||||||
|
if (!defined('SECURITY'))
|
||||||
|
die('Hacking attempt');
|
||||||
|
|
||||||
|
// Tempalte specifics
|
||||||
|
$smarty->assign("CONTENT", "default.tpl");
|
||||||
|
?>
|
||||||
@ -51,7 +51,13 @@ if (is_dir(INCLUDE_DIR . '/pages/')) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Set a default action here if no page has been requested
|
// Set a default action here if no page has been requested
|
||||||
$page = isset($_REQUEST['page']) && isset($arrPages[$_REQUEST['page']]) ? $_REQUEST['page'] : 'home';
|
if (isset($_REQUEST['page']) && isset($arrPages[$_REQUEST['page']])) {
|
||||||
|
$page = $_REQUEST['page'];
|
||||||
|
} else if (isset($_REQUEST['page']) && ! isset($arrPages[$_REQUEST['page']])) {
|
||||||
|
$page = 'error';
|
||||||
|
} else {
|
||||||
|
$page = 'home';
|
||||||
|
}
|
||||||
|
|
||||||
// Create our pages array from existing files
|
// Create our pages array from existing files
|
||||||
if (is_dir(INCLUDE_DIR . '/pages/' . $page)) {
|
if (is_dir(INCLUDE_DIR . '/pages/' . $page)) {
|
||||||
|
|||||||
3
public/templates/mmcFE/error/404/default.tpl
Normal file
3
public/templates/mmcFE/error/404/default.tpl
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{include file="global/block_header.tpl" BLOCK_HEADER="{$GLOBAL.website.name}" BLOCK_STYLE="clear:none; margin-left:13px; margin-top:15px;"}
|
||||||
|
<p>The page you requested was not found.</p>
|
||||||
|
{include file="global/block_footer.tpl"}
|
||||||
3
public/templates/mmcFE/error/default.tpl
Normal file
3
public/templates/mmcFE/error/default.tpl
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{include file="global/block_header.tpl" BLOCK_HEADER="{$GLOBAL.website.name}" BLOCK_STYLE="clear:none; margin-left:13px; margin-top:15px;"}
|
||||||
|
<p>The page you requested was not found.</p>
|
||||||
|
{include file="global/block_footer.tpl"}
|
||||||
1
public/templates/mobile/error/404/default.tpl
Normal file
1
public/templates/mobile/error/404/default.tpl
Normal file
@ -0,0 +1 @@
|
|||||||
|
<p>The page you requested was not found.</p>
|
||||||
1
public/templates/mobile/error/default.tpl
Normal file
1
public/templates/mobile/error/default.tpl
Normal file
@ -0,0 +1 @@
|
|||||||
|
<p>The page you requested was not found.</p>
|
||||||
6
public/templates/mpos/error/404/default.tpl
Normal file
6
public/templates/mpos/error/404/default.tpl
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<article class="module width_full">
|
||||||
|
<header><h3>{$GLOBAL.website.name}</h3></header>
|
||||||
|
<div class="module_content">
|
||||||
|
<p>The page you requested was not found.</p>
|
||||||
|
</div>
|
||||||
|
</article>
|
||||||
6
public/templates/mpos/error/default.tpl
Normal file
6
public/templates/mpos/error/default.tpl
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<article class="module width_full">
|
||||||
|
<header><h3>{$GLOBAL.website.name}</h3></header>
|
||||||
|
<div class="module_content">
|
||||||
|
<p>The page you requested was not found.</p>
|
||||||
|
</div>
|
||||||
|
</article>
|
||||||
Loading…
Reference in New Issue
Block a user