pidgin/old.pidgin.im
Clone
Summary
Browse
Changes
Graph
Finally bump the version for windows as we have releases!!
2018-07-11, Gary Kramlich
10e1dfc96e42
Finally bump the version for windows as we have releases!!
<?php
// Figure out what browser we're working with
$useragent
=
$_SERVER
[
'HTTP_USER_AGENT'
];
// Default value
$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_type
=
"mac"
;
$download_os
=
"for Mac OS X"
;
$download_link
=
"/download/mac/"
;
}
else
{
$download_type
=
"source"
;
$download_os
=
"Source"
;
$download_link
=
"/download/"
;
}
?>