-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
klaida.php
48 lines (44 loc) · 953 Bytes
/
klaida.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
47
48
<?php
/**
* @Projektas: MightMedia TVS
* @Puslapis: www.coders.lt
* @$Author$
* @copyright CodeRS ©2008
* @license GNU General Public License v2
* @$Revision$
* @$Date$
**/
ob_start();
header( "Cache-control: public" );
header( "Content-type: text/html; charset=utf-8" );
include_once( "priedai/conf.php" );
$status = isset( $_SERVER['REDIRECT_STATUS'] ) ? $_SERVER['REDIRECT_STATUS'] : 500;
switch ( $status ) {
case 403:
{
$tipas = $lang['system']['nohacking'];
break;
}
case 404:
{
$tipas = $lang['system']['nopage'];
break;
}
default:
{
$tipas = $lang['system']['error'];
break;
}
}
header( ' ', TRUE, $status );
?>
<html>
<head>
<title><?php echo $status . ' - ' . $tipas; ?></title>
</head>
<body>
<h1 style="color:red"><?php echo $tipas; ?></h1>
<hr />
<?php echo $lang['system']['contact_admin'] . $conf['Pastas'];?>.
</body>
</html><?php ob_end_flush(); ?>