aboutsummaryrefslogtreecommitdiffstats
path: root/404.php
diff options
context:
space:
mode:
authorThomas Backlund <tmb@mageia.org>2014-10-12 12:27:45 +0300
committerThomas Backlund <tmb@mageia.org>2014-10-12 12:27:45 +0300
commit9ce6d646ff718cd62f6434c9a4c94e450436612a (patch)
tree3ee82e5db7c0aee44a5573d9d17035c6ecac697d /404.php
parenta0b2d09125d7911656fe4cb286f20643c4432281 (diff)
downloadwww-9ce6d646ff718cd62f6434c9a4c94e450436612a.tar
www-9ce6d646ff718cd62f6434c9a4c94e450436612a.tar.gz
www-9ce6d646ff718cd62f6434c9a4c94e450436612a.tar.bz2
www-9ce6d646ff718cd62f6434c9a4c94e450436612a.tar.xz
www-9ce6d646ff718cd62f6434c9a4c94e450436612a.zip
Revert "Updated Estonian translation"
Diffstat (limited to '404.php')
-rw-r--r--404.php36
1 files changed, 36 insertions, 0 deletions
diff --git a/404.php b/404.php
new file mode 100644
index 000000000..17ee3656d
--- /dev/null
+++ b/404.php
@@ -0,0 +1,36 @@
+<?php
+define('HLANG', true);
+require 'langs.php'; // needs absolute path in some form to be link depth independent
+$dictionary = read_translation_file($locale, '404');
+
+header('HTTP/1.0 404 Not Found');
+header('Status: 404 Not Found');
+$locale = ($locale == '404' ? 'en' : $locale);
+?><!DOCTYPE html>
+<html dir="ltr" lang="<?php echo $locale; ?>">
+<head>
+ <meta charset="utf-8">
+ <title><?php _g('Sorry, we could not find this page.')?></title>
+ <meta http-equiv="expires" content="0">
+ <meta name="robots" content="noindex, nofollow">
+ <meta name="author" content="Mageia">
+ <link rel="stylesheet" type="text/css" href="/g/style/all.css">
+ <?php include 'analytics.php'; ?>
+</head>
+<body>
+ <?php echo $hsnav; ?>
+ <h1 id="mgnavt"><?php _g('Sorry, we could not find this page.')?></h1>
+ <div id="doc" class="yui-t7">
+ <div id="bd" role="main">
+ <div class="yui-g">
+ <div class="para values">
+ <ul class="hl"><?php
+ _g('Try searching it on <a href="%s">mageia.org site map</a>,', array("/$locale/map/"), 'li');
+ _g('or try to <a href="%s">search with DuckDuckGo</a>.', array('https://duckduckgo.com/?q=site%3Amageia.org&t=mageia'), 'li');
+ ?></ul>
+ </div>
+ </div>
+ </div>
+ </div>
+</body>
+</html>