forked from cod3cow/Blank
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patherror.php
executable file
·46 lines (40 loc) · 1.36 KB
/
error.php
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
<?php defined( '_JEXEC' ) or die;
// variables
$app = JFactory::getApplication();
$doc = JFactory::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 JText::_('JERROR_LAYOUT_REQUESTED_RESOURCE_WAS_NOT_FOUND');
}
?>
</p>
<p>
<?php echo JText::_('JERROR_LAYOUT_GO_TO_THE_HOME_PAGE'); ?>:
<a href="<?php echo $this->baseurl; ?>/"><?php echo JText::_('JERROR_LAYOUT_HOME_PAGE'); ?></a>.
</p>
<?php // render module mod_search
$module = new stdClass();
$module->module = 'mod_search';
echo JModuleHelper::renderModule($module);
?>
</div>
</div>
</body>
</html>