aboutsummaryrefslogtreecommitdiffstats
path: root/en
diff options
context:
space:
mode:
authorRomain d'Alverny <rda@mageia.org>2011-04-26 13:07:43 +0000
committerRomain d'Alverny <rda@mageia.org>2011-04-26 13:07:43 +0000
commitf38875c320cfa729d9c5d76fddae2f598cd5ba3a (patch)
tree8531130bbceca82c789c16ea702c7c85b6f15d91 /en
parent97b339ca9005c8b9de9580382420fdd5110c6184 (diff)
downloadwww-f38875c320cfa729d9c5d76fddae2f598cd5ba3a.tar
www-f38875c320cfa729d9c5d76fddae2f598cd5ba3a.tar.gz
www-f38875c320cfa729d9c5d76fddae2f598cd5ba3a.tar.bz2
www-f38875c320cfa729d9c5d76fddae2f598cd5ba3a.tar.xz
www-f38875c320cfa729d9c5d76fddae2f598cd5ba3a.zip
use js for download redirection
Diffstat (limited to 'en')
-rw-r--r--en/downloads/dl.php14
1 files changed, 3 insertions, 11 deletions
diff --git a/en/downloads/dl.php b/en/downloads/dl.php
index 1c19458e0..65624bf5a 100644
--- a/en/downloads/dl.php
+++ b/en/downloads/dl.php
@@ -51,14 +51,6 @@ else {
$dl_link = sprintf('%s/%s', $a['mirror_url'], $product_dl_link);
}
-// @fixme (rda) actually, http-equiv="refresh" is deprecated behaviour now.
-// @fixme (rda) see http://www.w3.org/TR/WCAG10-HTML-TECHS/#meta-element
-// @fixme (rda) possible alternative: post-load setTimeOut("document.location=url;", 5000); but requires JS
-
-$relocation = null;
-if (!is_null($dl_link))
- $relocation = sprintf('<meta http-equiv="refresh" content="3;%s">', $dl_link);
-
$title = 'Mageia 1 beta1';
$dl_alt_mirrors_table = '';
@@ -79,8 +71,6 @@ $dl2_mirror_alt = sprintf($_t['dl_mirror_loc'],
$a['mirror_url'], $a['mirror_host'], $countries[$a['country']], $a['country'])
. ' ' . $_t['dl_alt_mirrors'];
-
-$relocation = '';
?><!DOCTYPE html>
<html lang="<?php echo $locale; ?>">
<head>
@@ -88,8 +78,10 @@ $relocation = '';
<title><?php echo $title; ?> | Mageia Downloads</title>
<meta name="robots" content="noindex,nofollow,nosnippet">
<link rel="stylesheet" type="text/css" href="/g/style/all.css" >
- <?php echo $relocation; ?>
<?php include '../../analytics.php'; ?>
+ <?php if (!is_null($dl_link)): ?>
+ <script>(function () { setTimeout("document.location='<?php echo $dl_link; ?>';", 3000); })();</script>
+ <?php endif; ?>
</head>
<body>
<?php include '../../langs.php'; ?>