-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patherror.php
More file actions
executable file
·60 lines (52 loc) · 1.79 KB
/
error.php
File metadata and controls
executable file
·60 lines (52 loc) · 1.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?php
/**
* @author jtotal <support@jtotal.org>
* @link https://jtotal.org
* @copyright Copyright © 2023 JTOTAL All Rights Reserved
* @license GNU GPLv3 <http://www.gnu.org/licenses/gpl.html> or later
*/
use Joomla\CMS\Factory;
use Joomla\CMS\Helper\ModuleHelper;
use Joomla\CMS\Language\Text;
defined('_JEXEC') or die;
// variables
$app = Factory::getApplication();
$doc = Factory::getDocument();
$tpath = $this->baseurl . '/templates/' . $this->template;
?>
<!doctype html>
<html lang="<?php echo $this->language; ?>">
<head>
<title><?php echo $this->error->getCode(); ?> - <?php echo $this->title; ?></title>
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" />
<!-- mobile viewport optimized -->
<link rel="stylesheet" href="<?php echo $tpath; ?>/css/error.css?v=1">
</head>
<body>
<div align="center">
<div id="error">
<h1>
<?php echo htmlspecialchars($app->getCfg('sitename')); ?>
</h1>
<p>
<?php
echo $this->error->getCode() . ' - ' . $this->error->getMessage();
if (($this->error->getCode()) == '404') {
echo '<br />';
echo Text::_('JERROR_LAYOUT_REQUESTED_RESOURCE_WAS_NOT_FOUND');
}
?>
</p>
<p>
<?php echo Text::_('JERROR_LAYOUT_GO_TO_THE_HOME_PAGE'); ?>:
<a href="<?php echo $this->baseurl; ?>/"><?php echo Text::_('JERROR_LAYOUT_HOME_PAGE'); ?></a>.
</p>
<?php
$module = new stdClass();
$module->module = 'mod_search';
echo ModuleHelper::renderModule($module);
?>
</div>
</div>
</body>
</html>