blob: 32b8e58ec725ea6a1807f5f83f0b0444ba431017 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
<?php
/*
* Copyright 2004 Matt Brubeck
* This file is licensed under a Creative Commons license:
* http://creativecommons.org/licenses/by/2.0/
*/
// Guess which download to offer, based on the user's OS.
function which_download() {
$useragent = $_SERVER["HTTP_USER_AGENT"];
if (eregi("Mac", $useragent))
return "mac";
else if (eregi("X11", $useragent))
return "source";
else
return "windows";
}
?>
|