pidgin/old.pidgin.im
// Figure out what browser we're working with $useragent = $_SERVER['HTTP_USER_AGENT']; $download_have_direct_link = false; $download_version = $pidgin_version; if (strstr($useragent, 'Win')) { $download_type = "windows"; $download_os = "for Windows"; $download_link = "http://sourceforge.net/projects/pidgin/files/Pidgin/$pidgin_win32_version/pidgin-$pidgin_win32_version.exe/download"; $download_have_direct_link = true; $download_version = $pidgin_win32_version; } else if (strstr($useragent, "Linux")) { $download_type = "linux"; $download_os = "for Linux"; $download_link = "/download/linux/"; } else if (strstr($useragent, "Mac")) { $download_os = "for Mac OS X"; $download_link = "/download/mac/"; $download_type = "source"; $download_link = "/download/";