1
<?php
2
/**
3
 *   File functions:
4
 *
5
 *   @name                 : showerr.php                            
6
 *   @copyright            : (C) 2008-2009 Orodlin Team
7
 *   @author               : Jakub Stasiak <kuba.stasiak at gmail.com>
8
 *   @version              : 1.0
9
 *
10
 */
11
12
//
13
//
14
//       This program is free software; you can redistribute it and/or modify
15
//   it under the terms of the GNU General Public License as published by
16
//   the Free Software Foundation; either version 2 of the License, or
17
//   (at your option) any later version.
18
//
19
//   This program is distributed in the hope that it will be useful,
20
//   but WITHOUT ANY WARRANTY; without even the implied warranty of
21
//   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22
//   GNU General Public License for more details.
23
//
24
//   You should have received a copy of the GNU General Public License
25
//   along with this program; if not, write to the Free Software
26
//   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
27
28
require 'libs/Smarty.class.php';
29
require_once ('includes/config.php');
30
31
32
$smarty = new Smarty;
33
$smarty -> compile_check = true;
34
35
$strPage = "showerr.php";
36
include ('includes/getlang.php');
37
GetLang ();
38
//GetLoc ('mainpage');
39
GetLoc ('showerr');
40
41
switch ($_GET['code']) {
42
	case '404':
43
		$msg = MSG_404;
44
		break;
45
	case '403':
46
		$msg = MSG_403;
47
		break;
48
	case 'unknown':
49
	default:
50
		$msg = UNKNOWN;
51
		break;
52
}
53
54
$msg .= ' <a href="./">'.BACK.'</a>';
55
$smarty->assign ('Error', $msg);
56
$smarty -> display('error.tpl');
57
58
?>