Version von Download vom Do, 09/23/2010 - 21:11

Durch die Versionierung lassen sich die Unterschiede zwischen verschiedenen Versionen eines Beitrags verfolgen.

<?
if (function_exists(i18n_get_lang)) {
$lang = i18n_get_lang();
}
if ($_POST['iso']){
$url=strip_tags($_POST['mirror']."/".$_POST['edition']."_".$_POST['bits'].".iso");
$file=strip_tags($_POST['edition']."_".$_POST['bits'].".iso");
$type="iso";

if (preg_match("/.*sources.*/",$_POST['edition'] )){
//if ($_POST['edition'] == 'trisquel_2.2.2_sources'){
$url=strip_tags($_POST['mirror']."/".$_POST['edition'].".iso");
$file=strip_tags($_POST['edition'].".iso");
}

}

if ($_POST['torrent']){
$_POST['mirror']="http://archive.trisquel.info/iso";

$url=strip_tags($_POST['mirror']."/".$_POST['edition']."_".$_POST['bits'].".iso.torrent");
$file=strip_tags($_POST['edition']."_".$_POST['bits'].".iso.torrent");
$type="torrent";

if (preg_match("/.*sources.*/",$_POST['edition'] )){
$url=strip_tags($_POST['mirror']."/".$_POST['edition'].".iso.torrent");
$file=strip_tags($_POST['edition'].".iso.torrent");
}

}

if ($file){

$edition=strip_tags($_POST['edition']);
$mirror=strip_tags($_POST['mirror']);
$arch=strip_tags($_POST['bits']);
$ip=getenv('REMOTE_ADDR');
$useragent=getenv('HTTP_USER_AGENT');

if (! $_POST['email'])
db_query("INSERT INTO {trisquel_downloads} (date, mirror, edition, arch, type, ip, useragent) VALUES ( NOW(), '$mirror', '$edition','$arch','$type' ,'$ip' ,'$useragent')");

?>

var downloadLocation = '<? print $url ?>';
window.onload = function () {

t = setTimeout('document.location = downloadLocation', 1000);
}

<? print t('Thank you for downloading Trisquel!'); ?>

<? print t('If your download does not start in 15 seconds, use this'); ?> "><? print t('direct link'); ?>.

<? print t('

How to write a ISO image in a CD/DVD

To record this file, follow the instructions in the wiki
If your computer does not have a CD reader/recorder, read this'); ?>

<? print t('Would you like to download something else?');?>

<?}?>

/download" name="download">

<? print t('Select an edition');?>:

Trisquel 4.0 LTS Taranis

Trisquel
Trisquel Mini
NetInstall

<? print t('Sources DVD');?>

<? print t('Select a version');?>:

<? print t('32 bit, compatible with all PCs from Pentium Pro onwards, including 64 bit ones.');?>
<? print t('64 bit, when compatible, works faster and allows the use of more RAM.');?>
<? print t('This selection does not matter if you are downloading a source DVD');?>

<? print t('Select a mirror');?>:

><? print t('Spain (cdimage.trisquel.info)');?>

><? print t('USA (Free Software Foundation)');?>

<? print t('Spain (University of A Coruña)');?>

<? print t('Turkey (Linux Users Association)');?>

USA (trisquel.sweetandy.net)

<? /*
<? print t('USA (gnulinuxlibre.net)');?>

<? print t('Spain (GNU Spain)');?>

*/ ?>
<? print t('Chile (University Tarapacá of Arica)');?>

" name="iso" type="submit" />
" name="torrent" type="submit" />
<? print t('You can help us by downloading and seeding the torrent!');?>

<? print t('

License and Warranty

The programs included in our servers are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. This software comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law.');?>