aboutsummaryrefslogtreecommitdiff
path: root/frontend
diff options
context:
space:
mode:
authorWojciech Polak <polak@gnu.org>2010-06-02 21:25:09 +0200
committerWojciech Polak <polak@gnu.org>2010-06-02 21:25:09 +0200
commit1935d4acd9c09820d7cbf40acd25f91e6aaff207 (patch)
treef35332612a94c4f620b0943e2ed2548456d5cb8d /frontend
parent845697f610f5842fc5464e22fe3efee776b46786 (diff)
downloadcheetah-1935d4acd9c09820d7cbf40acd25f91e6aaff207.tar.gz
cheetah-1935d4acd9c09820d7cbf40acd25f91e6aaff207.tar.bz2
Minor change.
Diffstat (limited to 'frontend')
-rw-r--r--frontend/html/404.php42
-rw-r--r--frontend/html/error.php15
2 files changed, 51 insertions, 6 deletions
diff --git a/frontend/html/404.php b/frontend/html/404.php
new file mode 100644
index 0000000..0004578
--- /dev/null
+++ b/frontend/html/404.php
@@ -0,0 +1,42 @@
+<?php
+
+/*
+ Cheetah News html/404.php
+ Copyright (C) 2010 Wojciech Polak.
+
+ This program is free software; you can redistribute it and/or modify it
+ under the terms of the GNU General Public License as published by the
+ Free Software Foundation; either version 3 of the License, or (at your
+ option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License along
+ with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
+require_once '../lib/include.php';
+require_once '../lib/d-sigs.php';
+
+header ('HTTP/1.0 404 Not Found');
+header ("Content-Type: text/html; charset=UTF-8");
+
+?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+
+<head>
+<title>Not Found</title>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+<link rel="stylesheet" href="<?php echo 'http://'.$CONF['site'].'/'.dsp('css.login'); ?>" type="text/css" />
+<link rel="icon" href="http://<?=$CONF['site']?>/images/favicon.png" type="image/png" />
+</head>
+<body>
+<div id="main">
+ <div id="message"><?php echo _('404: Page not found'); ?></div>
+</div><!-- /main -->
+</body>
+</html>
diff --git a/frontend/html/error.php b/frontend/html/error.php
index 095e436..41dbd3b 100644
--- a/frontend/html/error.php
+++ b/frontend/html/error.php
@@ -2,7 +2,7 @@
/*
Cheetah News html/error.php
- Copyright (C) 2005 Wojciech Polak.
+ Copyright (C) 2005, 2010 Wojciech Polak.
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
@@ -18,7 +18,8 @@
with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-require '../lib/include.php';
+require_once '../lib/include.php';
+require_once '../lib/d-sigs.php';
start_session (null, false);
$session->auth ('iflogged');
@@ -27,15 +28,17 @@ header ("Content-Type: text/html; charset=UTF-8");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
-<?php echo '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="'.$CHEETAH_LANG.'" lang="'.$CHEETAH_LANG.'">'."\n"; ?>
<head>
<title>Cheetah News</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
-<link rel="stylesheet" href="../d?q=css.notice" type="text/css" />
-<link rel="icon" href="../images/favicon.png" type="image/png" />
+<link rel="stylesheet" href="<?php echo 'http://'.$CONF['site'].'/'.dsp('css.login'); ?>" type="text/css" />
+<link rel="icon" href="http://<?=$CONF['site']?>/images/favicon.png" type="image/png" />
</head>
<body>
- <div class="error"><?php printf (_('Error %s: %s'), $s, $st); ?></div>
+<div id="main">
+ <div id="message"><?php printf (_('Error %s: %s'), $s, $st); ?></div>
+</div><!-- /main -->
</body>
</html>

Return to:

Send suggestions and report system problems to the System administrator.