diff options
Diffstat (limited to 'en')
-rw-r--r-- | en/6/download_index.php | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/en/6/download_index.php b/en/6/download_index.php index 36d0bce9e..2dc82b5e7 100644 --- a/en/6/download_index.php +++ b/en/6/download_index.php @@ -1,7 +1,8 @@ <?php $name = 'Mageia'; -$version = '6.1'; +$version = '6.1'; +$versionOld = '6'; //version for classical iso, no update since $release = ''; $torrentavailable=true; $classical=true; @@ -508,8 +509,13 @@ $('img.lazy').each(function(){ nat = (nat = $('input[name=nat]:checked').val()) == '-' ? '-' : '-' + nat + '-'; arch = $('input[name=arch]:checked').val(); getname ='<?php echo get_mageia($name, $version, $release)?>' + '-'; - file = $('#live').is(':checked') ? format + '-' + desktop + '-' + arch + '-' + 'DVD.iso' : $('#classical').is(':checked') ? arch + '-' + format + '.iso' : format + nat + arch + '-CD.iso'; - file = (this.id == 'torrentlink') ? getname + file + '&torrent=1' : getname + file ; +<?php if($versionOld){ ?> + getnameOld ='<?php echo get_mageia($name, $versionOld, $release)?>' + '-'; + file = $('#live').is(':checked') ? getname + format + '-' + desktop + '-' + arch + '-' + 'DVD.iso' : $('#classical').is(':checked') ? getnameOld + arch + '-' + format + '.iso' : getname + format + nat + arch + '-CD.iso'; +<?php }else{ ?> + file = $('#live').is(':checked') ? getname + format + '-' + desktop + '-' + arch + '-' + 'DVD.iso' : $('#classical').is(':checked') ? getname + arch + '-' + format + '.iso' : getname + format + nat + arch + '-CD.iso'; +<?php } ?> + file = (this.id == 'torrentlink') ? file + '&torrent=1' : file ; $("a.btn").attr('href','../downloads/get/?q=' + file); }); </script> |