-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherror.php
More file actions
338 lines (338 loc) · 13.4 KB
/
error.php
File metadata and controls
338 lines (338 loc) · 13.4 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
<?php
defined('_JEXEC') or die ('Restricted access');
$app = JFactory::getApplication();
jimport( 'joomla.application.module.helper' );
$params = JFactory::getApplication()->getTemplate(true)->params;
$doc = JFactory::getDocument();
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title><?php echo $this->error->getCode(); ?> - <?php echo htmlspecialchars($this->error->getMessage()); ?></title>
<?php $template_path = JURI::base() . 'templates/' . $app->getTemplate(); ?>
<script type="text/javascript" src="<?php echo $template_path?>/jquery.js">
</script>
<script type="text/javascript">$.noConflict();</script>
<script type="text/javascript" src="<?php echo $template_path?>/Customjs.js">
</script>
<?php if ($this->error->getCode()>=400 && $this->error->getCode() < 500) { ?>
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/general.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/bootstrap.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/template.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/new.css" type="text/css" />
<!--[if lte IE 8]>
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/menuie.css" type="text/css"/>
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/vmenuie.css" type="text/css"/>
<![endif]-->
<script type="text/javascript" src="<?php echo $template_path?>/height.js">
</script>
<?php
$doc = JFactory::getDocument();
$doc->addScript(JURI::base() .'/templates/' . $this->template . '/js/jui/jquery-ui-1.9.2.custom.min.js', 'text/javascript');
unset($this->_scripts[JURI::root(true).'/media/jui/js/bootstrap.min.js']);
$doc->addScript(JURI::base() .'/templates/' . $this->template . '/js/jui/bootstrap.min.js', 'text/javascript');
?>
<script type="text/javascript" src="<?php echo $template_path?>/totop.js">
</script>
<!--[if IE 7]>
<style type="text/css" media="screen">
.ttr_vmenu_items li.ttr_vmenu_items_parent {display:inline;}
</style>
<![endif]-->
<style type="text/css" media="screen">
.ttr_menu_items {height:auto !important;}
</style>
<!--[if lt IE 9]>
<script type="text/javascript" src="<?php echo $template_path?>/html5shiv.js">
</script>
<script type="text/javascript" src="<?php echo $template_path?>/respond.min.js">
</script>
<![endif]-->
</head>
<body>
<div class="totopshow">
<a href="#" class="back-to-top"><img alt="Back to Top" src="<?php echo $template_path?>/images/gototop.png"/></a>
</div>
<div style="height:0px;width:0px;overflow:hidden;-webkit-margin-top-collapse: separate;"></div>
<header id="ttr_header">
<div id="ttr_header_inner">
<?php $linkpath = $params->get('site_logo_navigation');
if( !empty($linkpath) && $params->get('enable_site_logo') && $params->get('enable_site_logo_link'))
{
?>
<a class="logo" href=<?php echo $linkpath; ?> target="_self">
<?php } ?>
<?php if ($params->get('enable_site_logo')): ?>
<img <?php if($params->get('site_logo_Image')!=""):?> src="<?php echo $params->get('site_logo_Image');?>" <?php else: ?> src="<?php echo (JURI::base() . 'templates/' . $app->getTemplate().'/logo.png')?>" <?php endif; ?> class="ttr_header_logo" alt="logo" />
<?php endif; ?>
<?php if( !empty($linkpath) && $params->get('enable_site_logo_link'))
{
echo "</a>";
} ?>
</div>
</div>
</div>
</header>
<div style="height:0px;width:0px;overflow:hidden;-webkit-margin-top-collapse: separate;"></div>
<?php if (count(JModuleHelper::getModules('Menu'))):?>
<nav id="ttr_menu">
<div id="ttr_menu_inner_in">
</div>
</nav>
<?php endif; ?>
<div id="ttr_page" class="container">
<div id="ttr_content_and_sidebar_container">
<div id="ttr_content">
<div id="ttr_content_margin">
<div style="height:0px;width:0px;overflow:hidden;-webkit-margin-top-collapse: separate;"></div>
<?php
if( count(JModuleHelper::getModules('CAModulePosition00'))|| count(JModuleHelper::getModules('CAModulePosition01'))|| count(JModuleHelper::getModules('CAModulePosition02'))|| count(JModuleHelper::getModules('CAModulePosition03'))):
?>
<div class="contenttopcolumn0">
<?php
$showcolumn= count(JModuleHelper::getModules('CAModulePosition00'));
?>
<?php if($showcolumn): ?>
<div style="width:3%;float:left;">
<div class="topcolumn1">
<jdoc:include type="modules" name="CAModulePosition00" style="<?php if($params->get('CAModulePosition00') == 'block'): echo "block"; else: echo "xhtml"; endif;?>"/>
</div>
</div>
<?php else: ?>
<div style="width:3%;float:left;background-color:transparent;">
</div>
<?php endif; ?>
<?php
$showcolumn= count(JModuleHelper::getModules('CAModulePosition01'));
?>
<?php if($showcolumn): ?>
<div style="width:3%;float:left;">
<div class="topcolumn2">
<jdoc:include type="modules" name="CAModulePosition01" style="<?php if($params->get('CAModulePosition01') == 'block'): echo "block"; else: echo "xhtml"; endif;?>"/>
</div>
</div>
<?php else: ?>
<div style="width:3%;float:left;background-color:transparent;">
</div>
<?php endif; ?>
<?php
$showcolumn= count(JModuleHelper::getModules('CAModulePosition02'));
?>
<?php if($showcolumn): ?>
<div style="width:3%;float:left;">
<div class="topcolumn3">
<jdoc:include type="modules" name="CAModulePosition02" style="<?php if($params->get('CAModulePosition02') == 'block'): echo "block"; else: echo "xhtml"; endif;?>"/>
</div>
</div>
<?php else: ?>
<div style="width:3%;float:left;background-color:transparent;">
</div>
<?php endif; ?>
<?php
$showcolumn= count(JModuleHelper::getModules('CAModulePosition03'));
?>
<?php if($showcolumn): ?>
<div style="width:3%;float:right;">
<div class="topcolumn4">
<jdoc:include type="modules" name="CAModulePosition03" style="<?php if($params->get('CAModulePosition03') == 'block'): echo "block"; else: echo "xhtml"; endif;?>"/>
</div>
</div>
<?php else: ?>
<div style="width:3%;float:right;background-color:transparent;">
</div>
<?php endif; ?>
<div style="clear:both;">
</div>
</div>
<?php endif; ?>
<h2><?php echo JText::_('JERROR_AN_ERROR_HAS_OCCURRED'); ?><br />
<?php echo JText::_('JERROR_LAYOUT_PAGE_NOT_FOUND'); ?></h2>
<div id="searchbox">
<p><?php echo JText::_('JERROR_LAYOUT_SEARCH'); ?></p>
<?php $module = JModuleHelper::getModule( 'search' );
echo JModuleHelper::renderModule( $module); ?>
<p><a href="<?php echo $this->baseurl; ?>/index.php" title="<?php echo JText::_('JERROR_LAYOUT_GO_TO_THE_HOME_PAGE'); ?>"><?php echo JText::_('JERROR_LAYOUT_HOME_PAGE'); ?></a></p>
</div>
<p><?php echo $this->error->getCode() ; echo $this->error->getMessage();?><br />
<?php echo JText::_('JERROR_LAYOUT_PLEASE_CONTACT_THE_SYSTEM_ADMINISTRATOR'); ?>.</p>
<?php if ($this->debug) :
echo $this->renderBacktrace();
endif; ?>
<?php
if( count(JModuleHelper::getModules('CBModulePosition00'))|| count(JModuleHelper::getModules('CBModulePosition01'))|| count(JModuleHelper::getModules('CBModulePosition02'))|| count(JModuleHelper::getModules('CBModulePosition03'))):
?>
<div class="contentbottomcolumn0">
<?php
$showcolumn= count(JModuleHelper::getModules('CBModulePosition00'));
?>
<?php if($showcolumn): ?>
<div style="width:3%;float:left;">
<div class="bottomcolumn1">
<jdoc:include type="modules" name="CBModulePosition00" style="<?php if($params->get('CBModulePosition00') == 'block'): echo "block"; else: echo "xhtml"; endif;?>"/>
</div>
</div>
<?php else: ?>
<div style="width:3%;float:left;background-color:transparent;">
</div>
<?php endif; ?>
<?php
$showcolumn= count(JModuleHelper::getModules('CBModulePosition01'));
?>
<?php if($showcolumn): ?>
<div style="width:3%;float:left;">
<div class="bottomcolumn2">
<jdoc:include type="modules" name="CBModulePosition01" style="<?php if($params->get('CBModulePosition01') == 'block'): echo "block"; else: echo "xhtml"; endif;?>"/>
</div>
</div>
<?php else: ?>
<div style="width:3%;float:left;background-color:transparent;">
</div>
<?php endif; ?>
<?php
$showcolumn= count(JModuleHelper::getModules('CBModulePosition02'));
?>
<?php if($showcolumn): ?>
<div style="width:3%;float:left;">
<div class="bottomcolumn3">
<jdoc:include type="modules" name="CBModulePosition02" style="<?php if($params->get('CBModulePosition02') == 'block'): echo "block"; else: echo "xhtml"; endif;?>"/>
</div>
</div>
<?php else: ?>
<div style="width:3%;float:left;background-color:transparent;">
</div>
<?php endif; ?>
<?php
$showcolumn= count(JModuleHelper::getModules('CBModulePosition03'));
?>
<?php if($showcolumn): ?>
<div style="width:3%;float:right;">
<div class="bottomcolumn4">
<jdoc:include type="modules" name="CBModulePosition03" style="<?php if($params->get('CBModulePosition03') == 'block'): echo "block"; else: echo "xhtml"; endif;?>"/>
</div>
</div>
<?php else: ?>
<div style="width:3%;float:right;background-color:transparent;">
</div>
<?php endif; ?>
<div style="clear:both;">
</div>
</div>
<?php endif; ?>
<div style="height:0px;width:0px;overflow:hidden;-webkit-margin-top-collapse: separate;"></div>
</div>
</div>
<div style="clear:both;">
</div>
</div>
<div style="height:0px;width:0px;overflow:hidden;-webkit-margin-top-collapse: separate;"></div>
<footer id="ttr_footer">
<div class="ttr_footer_bottom_footer">
<div class="ttr_footer_bottom_footer_inner">
<div id="ttr_footer_designed_by_links">
<a href="http://templatetoaster.com" target="_self" style="font-size:<?php echo $params->get('Designed_By_Link_FontSize'); ?>px;color:<?php echo $params->get('footer_designed_by_link_color');?>">
Joomla Template
</a>
<span id="ttr_footer_designed_by" style="font-size:<?php echo $params->get('Designed_By_FontSize'); ?>px;color:<?php echo $params->get('footer_designed_by_color');?>">
Designed With TemplateToaster
</span>
</div>
</div>
</div>
</footer>
<div style="height:0px;width:0px;overflow:hidden;-webkit-margin-top-collapse: separate;"></div>
</div>
<?php $showcolumn = count(JModuleHelper::getModules('debug'));
if ($showcolumn){ ?>
<jdoc:include type="modules" name="debug" style="block" />
<?php } ?>
<script type="text/javascript">
WebFontConfig = {
google: { families: [ 'Montserrat','Kurale::cyrillic'] }
};
(function() {
var wf = document.createElement('script');
wf.src = ('https:' == document.location.protocol ? 'https' : 'http') + '://ajax.googleapis.com/ajax/libs/webfont/1.0.31/webfont.js';
wf.type = 'text/javascript';
wf.async = 'true';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(wf, s);
})();
</script>
</body>
</html>
<?php } else { ?>
<?php
if (!isset($this->error)) {
$this->error = JError::raiseWarning(404, JText::_('JERROR_ALERTNOAUTHOR'));
$this->debug = false;
}
?>
<link rel="stylesheet" href="<?php echo $this->baseurl; ?>/templates/system/css/error.css" type="text/css" />
</head>
<body>
<div id="ttr_body_texture">
<div id="ttr_body_specialeffect">
<div class="error">
<div id="outline">
<div id="errorboxoutline">
<div id="errorboxheader"> <?php echo $this->title; ?></div>
<div id="errorboxbody">
<p><strong><?php echo JText::_('JERROR_LAYOUT_NOT_ABLE_TO_VISIT'); ?></strong></p>
<ol>
<li><?php echo JText::_('JERROR_LAYOUT_AN_OUT_OF_DATE_BOOKMARK_FAVOURITE'); ?></li>
<li><?php echo JText::_('JERROR_LAYOUT_SEARCH_ENGINE_OUT_OF_DATE_LISTING'); ?></li>
<li><?php echo JText::_('JERROR_LAYOUT_MIS_TYPED_ADDRESS'); ?></li>
<li><?php echo JText::_('JERROR_LAYOUT_YOU_HAVE_NO_ACCESS_TO_THIS_PAGE'); ?></li>
<li><?php echo JText::_('JERROR_LAYOUT_REQUESTED_RESOURCE_WAS_NOT_FOUND'); ?></li>
<li><?php echo JText::_('JERROR_LAYOUT_ERROR_HAS_OCCURRED_WHILE_PROCESSING_YOUR_REQUEST'); ?></li>
</ol>
<p><strong><?php echo JText::_('JERROR_LAYOUT_PLEASE_TRY_ONE_OF_THE_FOLLOWING_PAGES'); ?></strong></p>
<ul>
<li><a href="<?php echo $this->baseurl; ?>/index.php" title="<?php echo JText::_('JERROR_LAYOUT_GO_TO_THE_HOME_PAGE'); ?>"><?php echo JText::_('JERROR_LAYOUT_HOME_PAGE'); ?></a></li>
<li><a href="<?php echo $this->baseurl; ?>/index.php?option=com_search" title="<?php echo JText::_('JERROR_LAYOUT_SEARCH_PAGE'); ?>"><?php echo JText::_('JERROR_LAYOUT_SEARCH_PAGE'); ?></a></li>
</ul>
<p><?php echo JText::_('JERROR_LAYOUT_PLEASE_CONTACT_THE_SYSTEM_ADMINISTRATOR'); ?>.</p>
<div id="techinfo">
<p><?php echo $this->error->getMessage(); ?></p>
<p>
<?php if ($this->debug) :
echo $this->renderBacktrace();
endif; ?>
</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php $showcolumn = count(JModuleHelper::getModules('debug'));
if ($showcolumn){ ?>
<jdoc:include type="modules" name="debug" style="block" />
<?php } ?>
<script type="text/javascript">
WebFontConfig = {
google: { families: [ 'Montserrat','Kurale::cyrillic'] }
};
(function() {
var wf = document.createElement('script');
wf.src = ('https:' == document.location.protocol ? 'https' : 'http') + '://ajax.googleapis.com/ajax/libs/webfont/1.0.31/webfont.js';
wf.type = 'text/javascript';
wf.async = 'true';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(wf, s);
})();
</script>
</body>
</html>
<?php } ?>