diff options
Diffstat (limited to 'ur/downloads/get')
-rw-r--r-- | ur/downloads/get/definitions.ini | 584 | ||||
-rw-r--r-- | ur/downloads/get/definitions.php | 18 | ||||
-rw-r--r-- | ur/downloads/get/index.php | 272 | ||||
-rw-r--r-- | ur/downloads/get/lib.php | 152 |
4 files changed, 0 insertions, 1026 deletions
diff --git a/ur/downloads/get/definitions.ini b/ur/downloads/get/definitions.ini deleted file mode 100644 index f2e1e1485..000000000 --- a/ur/downloads/get/definitions.ini +++ /dev/null @@ -1,584 +0,0 @@ -; Downloads definitions file. -; This is a whitelist for what can be downloaded from mageia.org -; through the download redirector (to official Mageia mirrors). -; - -; mgaonline RPM -[mgaonline] -type = rpm -hidden = true -name = mgaonline -size = 196 KB -page_title = mgaonline -post_link = /migrate/ -post_title = Go back to the migration page -path = distrib/1/i586/media/core/release -file = mgaonline-2.77.29-1.mga1.noarch.rpm - - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;; Mageia 1 -;;;;;;;;;;;;;;;;;;;;; - -[mageia-1-dvd-i586] -file = "mageia-dvd-1-i586.iso" -path = "iso/1" -name = "Mageia 1 32bit DVD" -size = "4 GB" -md5 = "535c53fabfaea25ad6ad49edbbf6ce0a" -sha1 = "1146008d408d5929ed07580070e453f6b4e64277" -torrent = "iso/1/torrents/mageia-dvd-1-i586.torrent" - -[mageia-1-dvd-x86_64] -file = "mageia-dvd-1-x86_64.iso" -name = "Mageia 1 64bit DVD" -path = "iso/1" -size = "4 GB" -md5 = "7e65859068810b5c2da7593e4254293a" -sha1 = "e9679d433afbea721e33f830691c4044055f13ae" -torrent = "iso/1/torrents/mageia-dvd-1-x86_64.torrent" - -; Dual arch -[mageia-1-cd-dualarch] -file = "mageia-dual-1.iso" -path = "iso/1" -name = "Mageia 1 Dual Arch CD" -size = "700 MB" -md5 = "bedf0e4aed931d238c61b08ea5d6bb9d" -sha1 = "416d8272a2423fe7a0816786f0189e2320e74958" -torrent = "iso/1/torrents/mageia-dual-1.torrent" - -; KDE LiveCDs (32-bit) -[mageia-1-live-kde-europe1-cd-i586] -file = "mageia-livecd-1-KDE4-europe1-americas-cdrom-i586.iso" -path = "iso/1" -name = "Mageia 1 KDE Europe1 LiveCD" -size = "700 MB" -lang = "Europa set 1" -langs = "de|en|es|fr|it|pl|pt|ru" -md5 = "4977f5a974dec5b937a891e29cce5fdb" -sha1 = "ca68b6c642e91ad21026f872d097439d32457d30" -torrent = "iso/1/torrents/mageia-livecd-1-KDE4-europe1-americas-cdrom-i586.torrent" - -[mageia-1-live-kde-europe2-cd-i586] -file = "mageia-livecd-1-KDE4-europe2-cdrom-i586.iso" -path = "iso/1" -name = "Mageia 1 KDE Europe2 LiveCD" -size = "700 MB" -lang = "Europa set 2" -langs = -md5 = "90768c05344ab250ae84f985e1b849c1" -sha1 = "715fca8f8411fa6d36b16c192a6566dd29ef4915" -torrent = "iso/1/torrents/mageia-livecd-1-KDE4-europe2-cdrom-i586.torrent" - -[mageia-1-live-kde-asia-cd-i586] -file = "mageia-livecd-1-KDE4-asia-noindia-cdrom-i586.iso" -path = "iso/1" -name = "Mageia 1 KDE Asia LiveCD" -size = "700 MB" -lang = "Asia set" -langs = -md5 = "1b904aa607a464c7c712209acd109710" -sha1 = "a53fa906c143e591082442d076c2b3b202fe8a47" -torrent = "iso/1/torrents/mageia-livecd-1-KDE4-asia-noindia-cdrom-i586.torrent" - -[mageia-1-live-kde-africa-cd-i586] -file = "mageia-livecd-1-KDE4-africa-india-cdrom-i586.iso" -path = "iso/1" -name = "Mageia 1 KDE Africa LiveCD" -size = "700 MB" -lang = "Africa/India set" -langs = -md5 = "f7fc7ea64b38b04874ad7d3d6d904461" -sha1 = "072eeef7eedc0ca7ad070ed2f45403e7b2a601e6" -torrent = "iso/1/torrents/mageia-livecd-1-KDE4-africa-india-cdrom-i586.torrent" - -; GNOME LiveCDs (32-bit) -[mageia-1-live-gnome-europe1-cd-i586] -file = "mageia-livecd-1-GNOME-europe1-americas-cdrom-i586.iso" -path = "iso/1" -name = "Mageia 1 GNOME Europe1 LiveCD" -size = "700 MB" -lang = "Europa set 1" -langs = "de|en|es|fr|it|pl|pt|ru" -md5 = "be86c06cc4ad27b0ae36f673ddbfc489" -sha1 = "fd648c7a21d54c2a52f9ed66cf1093f82acd828c" -torrent = "iso/1/torrents/mageia-livecd-1-GNOME-europe1-americas-cdrom-i586.torrent" - -[mageia-1-live-gnome-europe2-cd-i586] -file = "mageia-livecd-1-GNOME-europe2-cdrom-i586.iso" -path = "iso/1" -name = "Mageia 1 GNOME Europe2 LiveCD" -size = "700 MB" -lang = "Europa set 2" -langs = -md5 = "a8550c9932d7a7430fa4f574895f881e" -sha1 = "fc191d30cf822ef5dfffcfbb0d228e442db00530" -torrent = "iso/1/torrents/mageia-livecd-1-GNOME-europe2-cdrom-i586.torrent" - -[mageia-1-live-gnome-asia-cd-i586] -file = "mageia-livecd-1-GNOME-asia-noindia-cdrom-i586.iso" -path = "iso/1" -name = "Mageia 1 GNOME Asia LiveCD" -size = "700 MB" -lang = "Asia set" -langs = -md5 = "b415d0d8b7f0384c16ebc18dcaccbbb0" -sha1 = "1cd93b7c34149bf326b22b61afa47bf7144a9921" -torrent = "iso/1/torrents/mageia-livecd-1-GNOME-asia-noindia-cdrom-i586.torrent" - -[mageia-1-live-gnome-africa-cd-i586] -file = "mageia-livecd-1-GNOME-africa-india-cdrom-i586.iso" -path = "iso/1" -name = "Mageia 1 GNOME Africa LiveCD" -size = "700 MB" -lang = "Africa/India set" -langs = -md5 = "621f4e965c04e49b8602b4ec670e8466" -sha1 = "753afcd28978ff89dc0a8840f8f33b65bf8dad30" -torrent = "iso/1/torrents/mageia-livecd-1-GNOME-africa-india-cdrom-i586.torrent" - -; boot.iso -[mageia-1-netboot-i586] -file = "boot.iso" -path = "distrib/1/i586/install/images" -name = "Mageia 1 Boot 32bit CD ISO" -size = "40 MB" -md5 = "a82ae1a364b5f3bf3d2b783c881c726d" - -[mageia-1-netboot-x86_64] -file = "boot.iso" -path = "distrib/1/x86_64/install/images" -name = "Mageia 1 Boot 64bit CD ISO" -size = "40 MB" -md5 = "7de996b937b5e5d650514e7b3d6f2f15" - - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;; Mageia 2 -;;;;;;;;;;;;;;;;;;;;; - -; -[Mageia-2-Boot-i586-CD.iso] -file = boot.iso -md5 = "15e8ea443bc8da183a8cd3671f8225e2" -sha1 = "a847284c1aa0c5c81af14364eaa0a9159d3af7e6" -path = "distrib/2/i586/install/images" -name = "Mageia 2 Boot 32bit CD ISO" -size = "33 MB" - -; -[Mageia-2-Boot-x86_64-CD.iso] -file = boot.iso -md5 = "7355af37254e07186ef2104b1cf89d0d" -sha1 = "024d8de0eeff1e72d5038f7b528ecf256ff18e1c" -path = "distrib/2/x86_64/install/images" -name = "Mageia 2 Boot 64bit CD ISO" -size = "17 MB" - -; -[Mageia-2-Boot-nonfree-i586-CD.iso] -file = boot-nonfree.iso -md5 = "ea18e237452a61948e4c2eb61675bbd1" -sha1 = "c3b9865bb0815fe6ed0961b826896b8df168a3a5" -path = "distrib/2/i586/install/images" -name = "Mageia 2 Boot Nonfree 32bit CD ISO" -size = "48 MB" - -; -[Mageia-2-Boot-nonfree-x86_64-CD.iso] -file = boot-nonfree.iso -md5 = "4a0ed5f18c1aa20f42728efd995ba040" -sha1 = "82c655975f3042f58f982297c633a6bae46334c1" -path = "distrib/2/x86_64/install/images" -name = "Mageia 2 Boot Nonfree 64bit CD ISO" -size = "25 MB" - -; -[Mageia-2-LiveCD-GNOME-Africa-India-i586-CD.iso] -file = "Mageia-2-LiveCD-GNOME-Africa-India-i586-CD.iso" -md5 = "f6630721bde476813a615eb175801072" -sha1 = "7d649e35a36cc14c80e4fe145d2ebf71d2014f3e" -langs = "Afrikaans (af), Amharic (am), Arabic (ar), Assamese (as), Berber (ber), Bengali (bn), English (American) (en_US), Hausa (ha), Hebrew (he), Hindi (hi), Igbo (ig), Kannada (kn), Malayalam (ml), Marathi (mr), Punjabi (gurmukhi) (pa_IN), Tamil (ta), Tswana (tn), Tsonga (ts), Venda (ve), Xhosa (xh), Yoruba (yo), Zulu (zu)" -path = "iso/2/Mageia-2-LiveCD-GNOME-Africa-India-i586-CD" -torrent = "iso/2/torrents/Mageia-2-LiveCD-GNOME-Africa-India-i586-CD.torrent" -name = "Mageia 2 LiveCD GNOME Africa India 32bit CD" -size = "644 MB" - -; -[Mageia-2-LiveCD-GNOME-Africa-India-x86_64-CD.iso] -file = "Mageia-2-LiveCD-GNOME-Africa-India-x86_64-CD.iso" -md5 = "5ee8ba0a25ebe7f994bacdb7330a9f4d" -sha1 = "0b3c4656cf4f9330822768c6b6226c96fdd0e41d" -langs = "Afrikaans (af), Amharic (am), Arabic (ar), Assamese (as), Berber (ber), Bengali (bn), English (American) (en_US), Hausa (ha), Hebrew (he), Hindi (hi), Igbo (ig), Kannada (kn), Malayalam (ml), Marathi (mr), Punjabi (gurmukhi) (pa_IN), Tamil (ta), Tswana (tn), Tsonga (ts), Venda (ve), Xhosa (xh), Yoruba (yo), Zulu (zu)" -path = "iso/2/Mageia-2-LiveCD-GNOME-Africa-India-x86_64-CD" -torrent = "iso/2/torrents/Mageia-2-LiveCD-GNOME-Africa-India-x86_64-CD.torrent" -name = "Mageia 2 LiveCD GNOME Africa India 64bit CD" -size = "669 MB" - -; -[Mageia-2-LiveCD-GNOME-Asia-no-India-i586-CD.iso] -file = "Mageia-2-LiveCD-GNOME-Asia-no-India-i586-CD.iso" -md5 = "67215966e381297821cd5dfbd83005b7" -sha1 = "16c60d09a9edfd94fcb7fb8ef06732a69b88a69e" -langs = "English (American) (en_US), Indonesian (id), Japanese (ja), Korean (ko), Thai (th), Vietnamese (vi), Chinese Simplified (zh_CN), Chinese Traditional (zh_TW)" -path = "iso/2/Mageia-2-LiveCD-GNOME-Asia-no-India-i586-CD" -torrent = "iso/2/torrents/Mageia-2-LiveCD-GNOME-Asia-no-India-i586-CD.torrent" -name = "Mageia 2 LiveCD GNOME Asia no India 32bit CD" -size = "679 MB" - -; -[Mageia-2-LiveCD-GNOME-Asia-no-India-x86_64-CD.iso] -file = "Mageia-2-LiveCD-GNOME-Asia-no-India-x86_64-CD.iso" -md5 = "23029d4ed8f44148cf7cdf2ed13b2310" -sha1 = "fa513c5bdd176c4042576dcfbca526c921788217" -langs = "English (American) (en_US), Indonesian (id), Japanese (ja), Korean (ko), Thai (th), Vietnamese (vi), Chinese Simplified (zh_CN), Chinese Traditional (zh_TW)" -path = "iso/2/Mageia-2-LiveCD-GNOME-Asia-no-India-x86_64-CD" -torrent = "iso/2/torrents/Mageia-2-LiveCD-GNOME-Asia-no-India-x86_64-CD.torrent" -name = "Mageia 2 LiveCD GNOME Asia no India 64bit CD" -size = "697 MB" - -; -[Mageia-2-LiveCD-GNOME-Europe1-Americas-i586-CD.iso] -file = "Mageia-2-LiveCD-GNOME-Europe1-Americas-i586-CD.iso" -md5 = "f02da0d0ad82e4ef06fae901a3f3623e" -sha1 = "f0af3e4763d35329e21cea269688a0b2066014e3" -langs = "Czech (cs), German (de), Greek (el), English (Australia) (en_AU), English (Canada) (en_CA), English (en_GB), English (Ireland) (en_IE), English (New-Zealand) (en_NZ), English (American) (en_US), English (South Africa) (en_ZA), Spanish (es), French (fr), Italian (it), Dutch (nl), Portuguese (pt), Portuguese Brazil (pt_BR), Slovenian (sl), Turkish (tr)" -path = "iso/2/Mageia-2-LiveCD-GNOME-Europe1-Americas-i586-CD" -torrent = "iso/2/torrents/Mageia-2-LiveCD-GNOME-Europe1-Americas-i586-CD.torrent" -name = "Mageia 2 LiveCD GNOME Europe1 Americas 32bit CD" -size = "671 MB" - -; -[Mageia-2-LiveCD-GNOME-Europe1-Americas-x86_64-CD.iso] -file = "Mageia-2-LiveCD-GNOME-Europe1-Americas-x86_64-CD.iso" -md5 = "05dcab35e8f5190f727f3d4d1eb27b70" -sha1 = "f9741792aa50b3c73c7c60ad2751fadaec369bb4" -langs = "Czech (cs), German (de), Greek (el), English (Australia) (en_AU), English (Canada) (en_CA), English (en_GB), English (Ireland) (en_IE), English (New-Zealand) (en_NZ), English (American) (en_US), English (South Africa) (en_ZA), Spanish (es), French (fr), Italian (it), Dutch (nl), Portuguese (pt), Portuguese Brazil (pt_BR), Slovenian (sl), Turkish (tr)" -path = "iso/2/Mageia-2-LiveCD-GNOME-Europe1-Americas-x86_64-CD" -torrent = "iso/2/torrents/Mageia-2-LiveCD-GNOME-Europe1-Americas-x86_64-CD.torrent" -name = "Mageia 2 LiveCD GNOME Europe1 Americas 64bit CD" -size = "696 MB" - -; -[Mageia-2-LiveCD-GNOME-Europe2-i586-CD.iso] -file = "Mageia-2-LiveCD-GNOME-Europe2-i586-CD.iso" -md5 = "57cb6f5cd2d95c9c58ea6c9e688723ba" -sha1 = "bf3e5ba0f2c5cf65ae56647fbf4fc3d95e317831" -langs = "Bulgarian (bg), Danish (da), English (American) (en_US), Estonian (et), Finnish (Suomi) (fi), Croatian (hr), Hungarian (hu), Lithuanian (lt), Latvian (lv), Norwegian Bokmaal (nb), Norwegian Nynorsk (nn), Polish (pl), Romanian (ro), Russian (ru), Swedish (sv), Ukrainian (uk), Uzbek (uz), Uzbek (cyrillic) (uz@cyrillic)" -path = "iso/2/Mageia-2-LiveCD-GNOME-Europe2-i586-CD" -torrent = "iso/2/torrents/Mageia-2-LiveCD-GNOME-Europe2-i586-CD.torrent" -name = "Mageia 2 LiveCD GNOME Europe2 32bit CD" -size = "666 MB" - -; -[Mageia-2-LiveCD-GNOME-Europe2-x86_64-CD.iso] -file = "Mageia-2-LiveCD-GNOME-Europe2-x86_64-CD.iso" -md5 = "3aa9194c9715c3437dfed98763929c92" -sha1 = "b13593a32070eed8f62cd23158635c67437eecb0" -langs = "Bulgarian (bg), Danish (da), English (American) (en_US), Estonian (et), Finnish (Suomi) (fi), Croatian (hr), Hungarian (hu), Lithuanian (lt), Latvian (lv), Norwegian Bokmaal (nb), Norwegian Nynorsk (nn), Polish (pl), Romanian (ro), Russian (ru), Swedish (sv), Ukrainian (uk), Uzbek (uz), Uzbek (cyrillic) (uz@cyrillic)" -path = "iso/2/Mageia-2-LiveCD-GNOME-Europe2-x86_64-CD" -torrent = "iso/2/torrents/Mageia-2-LiveCD-GNOME-Europe2-x86_64-CD.torrent" -name = "Mageia 2 LiveCD GNOME Europe2 64bit CD" -size = "689 MB" - -; -[Mageia-2-LiveCD-KDE4-Africa-India-i586-CD.iso] -file = "Mageia-2-LiveCD-KDE4-Africa-India-i586-CD.iso" -md5 = "864aaa312f61c385c077b51cc54f50c0" -sha1 = "c3c4d02a6659ac61ef4daa24b9d8fc2af376c1a7" -langs = "Afrikaans (af), Amharic (am), Arabic (ar), Assamese (as), Berber (ber), Bengali (bn), English (American) (en_US), Hausa (ha), Hebrew (he), Hindi (hi), Igbo (ig), Kannada (kn), Malayalam (ml), Marathi (mr), Punjabi (gurmukhi) (pa_IN), Tamil (ta), Tswana (tn), Tsonga (ts), Venda (ve), Xhosa (xh), Yoruba (yo), Zulu (zu)" -path = "iso/2/Mageia-2-LiveCD-KDE4-Africa-India-i586-CD" -torrent = "iso/2/torrents/Mageia-2-LiveCD-KDE4-Africa-India-i586-CD.torrent" -name = "Mageia 2 LiveCD KDE4 Africa India 32bit CD" -size = "635 MB" - -; -[Mageia-2-LiveCD-KDE4-Africa-India-x86_64-CD.iso] -file = "Mageia-2-LiveCD-KDE4-Africa-India-x86_64-CD.iso" -md5 = "7df71d9b8a2c10cc4d677131de940655" -sha1 = "5535975f3dd93990181ee989c46434984655fcb6" -langs = "Afrikaans (af), Amharic (am), Arabic (ar), Assamese (as), Berber (ber), Bengali (bn), English (American) (en_US), Hausa (ha), Hebrew (he), Hindi (hi), Igbo (ig), Kannada (kn), Malayalam (ml), Marathi (mr), Punjabi (gurmukhi) (pa_IN), Tamil (ta), Tswana (tn), Tsonga (ts), Venda (ve), Xhosa (xh), Yoruba (yo), Zulu (zu)" -path = "iso/2/Mageia-2-LiveCD-KDE4-Africa-India-x86_64-CD" -torrent = "iso/2/torrents/Mageia-2-LiveCD-KDE4-Africa-India-x86_64-CD.torrent" -name = "Mageia 2 LiveCD KDE4 Africa India 64bit CD" -size = "658 MB" - -; -[Mageia-2-LiveCD-KDE4-Asia-no-India-i586-CD.iso] -file = "Mageia-2-LiveCD-KDE4-Asia-no-India-i586-CD.iso" -md5 = "81b453bd2764beb5d9fc06a84e5173d0" -sha1 = "3fc039b8ae168146cf3ec79da5cb1f1ecac31779" -langs = "English (American) (en_US), Indonesian (id), Japanese (ja), Korean (ko), Thai (th), Vietnamese (vi), Chinese Simplified (zh_CN), Chinese Traditional (zh_TW)" -path = "iso/2/Mageia-2-LiveCD-KDE4-Asia-no-India-i586-CD" -torrent = "iso/2/torrents/Mageia-2-LiveCD-KDE4-Asia-no-India-i586-CD.torrent" -name = "Mageia 2 LiveCD KDE4 Asia no India 32bit CD" -size = "682 MB" - -; -[Mageia-2-LiveCD-KDE4-Asia-no-India-x86_64-CD.iso] -file = "Mageia-2-LiveCD-KDE4-Asia-no-India-x86_64-CD.iso" -md5 = "83614598b14dd3c95aa3eb9d497b8186" -sha1 = "144ff90f2d7f621e43471e54cf14251c076c112f" -langs = "English (American) (en_US), Indonesian (id), Japanese (ja), Korean (ko), Thai (th), Vietnamese (vi), Chinese Simplified (zh_CN), Chinese Traditional (zh_TW)" -path = "iso/2/Mageia-2-LiveCD-KDE4-Asia-no-India-x86_64-CD" -torrent = "iso/2/torrents/Mageia-2-LiveCD-KDE4-Asia-no-India-x86_64-CD.torrent" -name = "Mageia 2 LiveCD KDE4 Asia no India 64bit CD" -size = "698 MB" - -; -[Mageia-2-LiveCD-KDE4-Europe1-Americas-i586-CD.iso] -file = "Mageia-2-LiveCD-KDE4-Europe1-Americas-i586-CD.iso" -md5 = "f587db8c82f987a3210e1a827878061b" -sha1 = "5fc0d6f4182ac3500df3d4fe234ab1a0daecc4da" -langs = "Czech (cs), German (de), Greek (el), English (Australia) (en_AU), English (Canada) (en_CA), English (en_GB), English (Ireland) (en_IE), English (New-Zealand) (en_NZ), English (American) (en_US), English (South Africa) (en_ZA), Spanish (es), French (fr), Italian (it), Dutch (nl), Portuguese (pt), Portuguese Brazil (pt_BR), Slovenian (sl), Turkish (tr)" -path = "iso/2/Mageia-2-LiveCD-KDE4-Europe1-Americas-i586-CD" -torrent = "iso/2/torrents/Mageia-2-LiveCD-KDE4-Europe1-Americas-i586-CD.torrent" -name = "Mageia 2 LiveCD KDE4 Europe1 Americas 32bit CD" -size = "675 MB" - -; -[Mageia-2-LiveCD-KDE4-Europe1-Americas-x86_64-CD.iso] -file = "Mageia-2-LiveCD-KDE4-Europe1-Americas-x86_64-CD.iso" -md5 = "635577c075e5ebed1d4f111d14ebc644" -sha1 = "ead920da052fbf3c9151ca1960318584f4e86661" -langs = "Czech (cs), German (de), Greek (el), English (Australia) (en_AU), English (Canada) (en_CA), English (en_GB), English (Ireland) (en_IE), English (New-Zealand) (en_NZ), English (American) (en_US), English (South Africa) (en_ZA), Spanish (es), French (fr), Italian (it), Dutch (nl), Portuguese (pt), Portuguese Brazil (pt_BR), Slovenian (sl), Turkish (tr)" -path = "iso/2/Mageia-2-LiveCD-KDE4-Europe1-Americas-x86_64-CD" -torrent = "iso/2/torrents/Mageia-2-LiveCD-KDE4-Europe1-Americas-x86_64-CD.torrent" -name = "Mageia 2 LiveCD KDE4 Europe1 Americas 64bit CD" -size = "696 MB" - -; -[Mageia-2-LiveCD-KDE4-Europe2-i586-CD.iso] -file = "Mageia-2-LiveCD-KDE4-Europe2-i586-CD.iso" -md5 = "114f3b6469968bfb067b99d96f3b1e63" -sha1 = "359eeb84253274adfe802d7d8c9a63576427cac3" -langs = "Bulgarian (bg), Danish (da), English (American) (en_US), Estonian (et), Finnish (Suomi) (fi), Croatian (hr), Hungarian (hu), Lithuanian (lt), Latvian (lv), Norwegian Bokmaal (nb), Norwegian Nynorsk (nn), Polish (pl), Romanian (ro), Russian (ru), Swedish (sv), Ukrainian (uk), Uzbek (uz), Uzbek (cyrillic) (uz@cyrillic)" -path = "iso/2/Mageia-2-LiveCD-KDE4-Europe2-i586-CD" -torrent = "iso/2/torrents/Mageia-2-LiveCD-KDE4-Europe2-i586-CD.torrent" -name = "Mageia 2 LiveCD KDE4 Europe2 32bit CD" -size = "696 MB" - -; -[Mageia-2-LiveCD-KDE4-Europe2-x86_64-CD.iso] -file = "Mageia-2-LiveCD-KDE4-Europe2-x86_64-CD.iso" -md5 = "5cf6bca267fb323a3138c920e35ed3be" -sha1 = "691913cd41488fb27d3670b785c988e6f2eb6af4" -langs = "Bulgarian (bg), Danish (da), English (American) (en_US), Estonian (et), Finnish (Suomi) (fi), Croatian (hr), Hungarian (hu), Lithuanian (lt), Latvian (lv), Norwegian Bokmaal (nb), Norwegian Nynorsk (nn), Polish (pl), Romanian (ro), Russian (ru), Swedish (sv), Ukrainian (uk), Uzbek (uz), Uzbek (cyrillic) (uz@cyrillic)" -path = "iso/2/Mageia-2-LiveCD-KDE4-Europe2-x86_64-CD" -torrent = "iso/2/torrents/Mageia-2-LiveCD-KDE4-Europe2-x86_64-CD.torrent" -name = "Mageia 2 LiveCD KDE4 Europe2 64bit CD" -size = "703 MB" - -; -[Mageia-2-dual-CD.iso] -file = "Mageia-2-dual-CD.iso" -md5 = "d6a1a76b04fb0aca908347a13acb13d7" -sha1 = "8bd811fb6c8bbfa0f8dd1aa385bb7f7a1b4e6694" -path = "iso/2/Mageia-2-dual-CD" -torrent = "iso/2/torrents/Mageia-2-dual-CD.torrent" -name = "Mageia 2 dual CD" -size = "685 MB" - -; -[Mageia-2-i586-DVD.iso] -file = "Mageia-2-i586-DVD.iso" -md5 = "b734a23a43e5f2950dc485876372de09" -sha1 = "672fdcb32f2b0f546a7c7d8e052c0ae71e0738d6" -path = "iso/2/Mageia-2-i586-DVD" -torrent = "iso/2/torrents/Mageia-2-i586-DVD.torrent" -name = "Mageia 2 32bit DVD" -size = "3.5 GB" - -; -[Mageia-2-x86_64-DVD.iso] -file = "Mageia-2-x86_64-DVD.iso" -md5 = "0274423b95aed09b53286b5fc7282fef" -sha1 = "c70f0e87f186dee7c6f552fe0de62a8149eaafe9" -path = "iso/2/Mageia-2-x86_64-DVD" -torrent = "iso/2/torrents/Mageia-2-x86_64-DVD.torrent" -name = "Mageia 2 64bit DVD" -size = "3.5 GB" - - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;;; Mageia 3 beta2 & 3 (2013-03-10, rda) -;;;;;;;;;;;;;;;;;;;;; - -; -[Mageia-3-beta2-Boot-i586-CD.iso] -file = boot.iso -path = "distrib/cauldron/i586/install/images" -name = "Mageia 3 beta2 Boot 32bit CD ISO" - -; -[Mageia-3-beta2-Boot-x86_64-CD.iso] -file = boot.iso -path = "distrib/cauldron/x86_64/install/images" -name = "Mageia 3 beta2 Boot 64bit CD ISO" - -; -[Mageia-3-beta2-Boot-nonfree-i586-CD.iso] -file = boot-nonfree.iso -path = "distrib/cauldron/i586/install/images" -name = "Mageia 3 beta2 Boot Nonfree 32bit CD ISO" - -; -[Mageia-3-beta2-Boot-nonfree-x86_64-CD.iso] -file = boot-nonfree.iso -path = "distrib/cauldron/x86_64/install/images" -name = "Mageia 3 beta2 Boot Nonfree 64bit CD ISO" - -; -[Mageia-3-beta2-LiveCD-GNOME-en-i586-CD.iso] -file = "Mageia-3-beta2-LiveCD-GNOME-en-i586-CD.iso" -md5 = "ddc5d6ef404e8e202fee90e2f0b85e4c" -sha1 = "4bafd4114121e289c50ba88225848815ef74b224" -langs = "English (Australia) (en_AU), English (Canada) (en_CA), English (en_GB), English (Ireland) (en_IE), English (New-Zealand) (en_NZ), English (American) (en_US), English (South Africa) (en_ZA)" -path = "iso/cauldron/Mageia-3-beta2-LiveCD-GNOME-en-i586-CD" -torrent = "iso/cauldron/torrents/Mageia-3-beta2-LiveCD-GNOME-en-i586-CD.torrent" -name = "Mageia 3 beta2 LiveCD GNOME en 32bit CD" -size = "673 MB" - -; -[Mageia-3-beta2-LiveCD-KDE4-en-i586-CD.iso] -file = "Mageia-3-beta2-LiveCD-KDE4-en-i586-CD.iso" -md5 = "7f4caaee6cd7fe7c8477ccb8fed489cc" -sha1 = "082b9f551a749f7b4afc84903e6cc25843251b92" -langs = "English (Australia) (en_AU), English (Canada) (en_CA), English (en_GB), English (Ireland) (en_IE), English (New-Zealand) (en_NZ), English (American) (en_US), English (South Africa) (en_ZA)" -path = "iso/cauldron/Mageia-3-beta2-LiveCD-KDE4-en-i586-CD" -torrent = "iso/cauldron/torrents/Mageia-3-beta2-LiveCD-KDE4-en-i586-CD.torrent" -name = "Mageia 3 beta2 LiveCD KDE4 en 32bit CD" -size = "677 MB" - -; -[Mageia-3-beta2-LiveDVD-GNOME-i586-DVD.iso] -file = "Mageia-3-beta2-LiveDVD-GNOME-i586-DVD.iso" -md5 = "abe531ffe62934ddac4bb2c47529ed6f" -sha1 = "36ba594ea27f3a8173b91e6233ffd0b9d2207232" -langs = "All supported languages" -path = "iso/cauldron/Mageia-3-beta2-LiveDVD-GNOME-i586-DVD" -torrent = "iso/cauldron/torrents/Mageia-3-beta2-LiveDVD-GNOME-i586-DVD.torrent" -name = "Mageia 3 beta2 LiveDVD GNOME 32bit DVD" -size = "1.4 GB" - -; -[Mageia-3-beta2-LiveDVD-GNOME-x86_64-DVD.iso] -file = "Mageia-3-beta2-LiveDVD-GNOME-x86_64-DVD.iso" -md5 = "92b4e46d19e77df32e875027043c9af5" -sha1 = "c9a90e5d64f6e883b0af302fedeec64270944a0e" -langs = "All supported languages" -path = "iso/cauldron/Mageia-3-beta2-LiveDVD-GNOME-x86_64-DVD" -torrent = "iso/cauldron/torrents/Mageia-3-beta2-LiveDVD-GNOME-x86_64-DVD.torrent" -name = "Mageia 3 beta2 LiveDVD GNOME 64bit DVD" -size = "1.4 GB" - -; -[Mageia-3-beta2-LiveDVD-KDE4-i586-DVD.iso] -file = "Mageia-3-beta2-LiveDVD-KDE4-i586-DVD.iso" -md5 = "f75e8cd97dc6eeb4fc10983d513a84b5" -sha1 = "af6171a367752282f5493beaf74418302cb39ef3" -langs = "All supported languages" -path = "iso/cauldron/Mageia-3-beta2-LiveDVD-KDE4-i586-DVD" -torrent = "iso/cauldron/torrents/Mageia-3-beta2-LiveDVD-KDE4-i586-DVD.torrent" -name = "Mageia 3 beta2 LiveDVD KDE4 32bit DVD" -size = "1.4 GB" - -; -[Mageia-3-beta2-LiveDVD-KDE4-x86_64-DVD.iso] -file = "Mageia-3-beta2-LiveDVD-KDE4-x86_64-DVD.iso" -md5 = "92ab494006975b58cc1f195dee36787d" -sha1 = "4835f94f7a995c4cb369a5d73c78bc518f23cbe2" -langs = "All supported languages" -path = "iso/cauldron/Mageia-3-beta2-LiveDVD-KDE4-x86_64-DVD" -torrent = "iso/cauldron/torrents/Mageia-3-beta2-LiveDVD-KDE4-x86_64-DVD.torrent" -name = "Mageia 3 beta2 LiveDVD KDE4 64bit DVD" -size = "1.4 GB" - -; -[Mageia-3-beta2-i586-DVD.iso] -file = "Mageia-3-beta2-i586-DVD.iso" -md5 = "d8e9dfa5d7f4741d1e55fd49754564fb" -sha1 = "752a1a67a15ceaa8c3c28c8d724fd07b9a756224" -path = "iso/cauldron/Mageia-3-beta2-i586-DVD" -torrent = "iso/cauldron/torrents/Mageia-3-beta2-i586-DVD.torrent" -name = "Mageia 3 beta2 32bit DVD" -size = "3.9 GB" - -; -[Mageia-3-beta2-x86_64-DVD.iso] -file = "Mageia-3-beta2-x86_64-DVD.iso" -md5 = "4fac433fe6ed90a487c875a8ed2a6740" -sha1 = "6260c0311be8d1185e35bba72be28be79230c816" -path = "iso/cauldron/Mageia-3-beta2-x86_64-DVD" -torrent = "iso/cauldron/torrents/Mageia-3-beta2-x86_64-DVD.torrent" -name = "Mageia 3 beta2 64bit DVD" -size = "4.0 GB" - - -; -[Mageia-3-beta3-LiveCD-GNOME-en-i586-CD.iso] -file = "Mageia-3-beta3-LiveCD-GNOME-en-i586-CD.iso" -md5 = "063947d246d8d0996ba06bb1e36ede28" -sha1 = "388f2c1ab5d2c4f3abee16f1168eaefffb1e0959" -langs = "English (Australia) (en_AU), English (Canada) (en_CA), English (en_GB), English (Ireland) (en_IE), English (New-Zealand) (en_NZ), English (American) (en_US), English (South Africa) (en_ZA)" -path = "iso/cauldron/Mageia-3-beta3-LiveCD-GNOME-en-i586-CD" -torrent = "iso/cauldron/torrents/Mageia-3-beta3-LiveCD-GNOME-en-i586-CD.torrent" -name = "Mageia 3 beta3 LiveCD GNOME en 32bit CD" -size = "672 MB" - -; -[Mageia-3-beta3-LiveCD-KDE4-en-i586-CD.iso] -file = "Mageia-3-beta3-LiveCD-KDE4-en-i586-CD.iso" -md5 = "f428273f849c92282d1a31aefed2d2f4" -sha1 = "16d27af98050ec8675ef70536f4f913e916c1174" -langs = "English (Australia) (en_AU), English (Canada) (en_CA), English (en_GB), English (Ireland) (en_IE), English (New-Zealand) (en_NZ), English (American) (en_US), English (South Africa) (en_ZA)" -path = "iso/cauldron/Mageia-3-beta3-LiveCD-KDE4-en-i586-CD" -torrent = "iso/cauldron/torrents/Mageia-3-beta3-LiveCD-KDE4-en-i586-CD.torrent" -name = "Mageia 3 beta3 LiveCD KDE4 en 32bit CD" -size = "673 MB" - -; -[Mageia-3-beta3-LiveDVD-GNOME-i586-DVD.iso] -file = "Mageia-3-beta3-LiveDVD-GNOME-i586-DVD.iso" -md5 = "0ff500d734f9292f4062625541b0e97d" -sha1 = "1e49346185c5da06c0f18acddd3d15926ff4f26f" -langs = "English (American) (en_US)" -path = "iso/cauldron/Mageia-3-beta3-LiveDVD-GNOME-i586-DVD" -torrent = "iso/cauldron/torrents/Mageia-3-beta3-LiveDVD-GNOME-i586-DVD.torrent" -name = "Mageia 3 beta3 LiveDVD GNOME 32bit DVD" -size = "1.3 GB" - -; -[Mageia-3-beta3-LiveDVD-GNOME-x86_64-DVD.iso] -file = "Mageia-3-beta3-LiveDVD-GNOME-x86_64-DVD.iso" -md5 = "c9fbcdc531ba47ebf7b327c3f08dbcd4" -sha1 = "c258bb193b147f4d7b9464c2fc3fd716e624d430" -langs = "English (American) (en_US)" -path = "iso/cauldron/Mageia-3-beta3-LiveDVD-GNOME-x86_64-DVD" -torrent = "iso/cauldron/torrents/Mageia-3-beta3-LiveDVD-GNOME-x86_64-DVD.torrent" -name = "Mageia 3 beta3 LiveDVD GNOME 64bit DVD" -size = "1.3 GB" - -; -[Mageia-3-beta3-LiveDVD-KDE4-i586-DVD.iso] -file = "Mageia-3-beta3-LiveDVD-KDE4-i586-DVD.iso" -md5 = "a6916ee8a984436e66b7b5efc6598468" -sha1 = "d91f0c7fcc2b5d27ae9321fede9a6c1f4432ff76" -langs = "English (American) (en_US)" -path = "iso/cauldron/Mageia-3-beta3-LiveDVD-KDE4-i586-DVD" -torrent = "iso/cauldron/torrents/Mageia-3-beta3-LiveDVD-KDE4-i586-DVD.torrent" -name = "Mageia 3 beta3 LiveDVD KDE4 32bit DVD" -size = "1.3 GB" - -; -[Mageia-3-beta3-LiveDVD-KDE4-x86_64-DVD.iso] -file = "Mageia-3-beta3-LiveDVD-KDE4-x86_64-DVD.iso" -md5 = "458ff88facaca19a63d3fa0129bab9fc" -sha1 = "5ba94479360e45d63c58f50221696ab20defce6a" -langs = "English (American) (en_US)" -path = "iso/cauldron/Mageia-3-beta3-LiveDVD-KDE4-x86_64-DVD" -torrent = "iso/cauldron/torrents/Mageia-3-beta3-LiveDVD-KDE4-x86_64-DVD.torrent" -name = "Mageia 3 beta3 LiveDVD KDE4 64bit DVD" -size = "1.4 GB" - diff --git a/ur/downloads/get/definitions.php b/ur/downloads/get/definitions.php deleted file mode 100644 index 28f2fa653..000000000 --- a/ur/downloads/get/definitions.php +++ /dev/null @@ -1,18 +0,0 @@ -<?php - -$ini = parse_ini_file('definitions.ini', true); - -foreach ($ini as $section => $values) { - - echo '<section><h2>', $section, '</h2>'; - echo sprintf('<section><h2>%s</h2><ul><li><code>%s</code></li><li>%s</li></section>', - $values['name'], - '$MIRROR/' . $values['path'] . $values['file'], - $values['size'] - ); - - echo '<ul>'; - foreach ($values as $k => $v) - echo '<li>', $k, ' = ', $v, '</li>'; - echo '</ul></section>'; -}
\ No newline at end of file diff --git a/ur/downloads/get/index.php b/ur/downloads/get/index.php deleted file mode 100644 index 56bdf14ca..000000000 --- a/ur/downloads/get/index.php +++ /dev/null @@ -1,272 +0,0 @@ -<?php -/** - * Main download redirector. - * - * Takes these data: - * - product to download (GET[product]) - * - download mode (normal or GET[torrent] is set) - * - products whitelist with a checksum for each one - * - list of available up-to-date mirrors for this product - * - * product: - * - id - * - name - * - checksums - * - size - * - * mirror(product): - * - name - * - host - * - country - * - city - * - speed - * - link - * - * - * PHP version 5.4 - * - * @category Mageia - * @package Mageia\Web\www - * @author rda <rda@mageia.org> - * @license http://www.gnu.org/licenses/gpl-2.0.html GPL-2+ - * @link http://www.mageia.org/ - * -*/ - -require 'lib.php'; - -// request -$product = get('q'); -$debug = get('d'); -$torrent = isset($_GET['torrent']) ? true : false; - -if (is_null($product)) { - header('Location: /downloads/'); - die; -} - -define('HLANG', true); -require '../../../langs.php'; - -_lang_load($locale, "downloads/get"); - -session_start(); - -$download = null; -$js_redirect = null; -$reason = null; - -try { - // TODO simplify and wrap all this in a single interface: - // list(dl_template, mirrors) = get_download_options_for(product) - // Step 1. - include '../../../lib/Downloads.php'; - $product = get_info_for_product($product); - $all_mirrors = get_mirrors_for($product['file'], 'en', get('country')); - $one_mirror = $all_mirrors[0]; - $alt_mirrors = $all_mirrors[1]; - $download_tmpl = get_download_link($product, $torrent); - - // Step 2. Make the actual download link against the preferred mirror returned. - $download = str_replace('$MIRROR', $one_mirror['mirror_url'], $download_tmpl); - - // TODO do not redirect if it's a bot! - $js_redirect = sprintf( - '<script>(function(){setTimeout("document.location=\'%s\';", 6000);})();</script>', - $download - ); - - // Step 3. Build alternative mirrors list of links (URL manipulation, HTML) - $g_mirs2 = array(); - foreach ($alt_mirrors as $country => $mirs): - if (substr($country, 0, 3) == '_C:') - continue; - - foreach ($mirs as $mir): - $g_mirs2[$countries[$country]][$mir['city']][] = $mir['url']; - endforeach; - endforeach; - - ksort($g_mirs2); - - $alternative_mirrors = ''; - foreach ($g_mirs2 as $country => $cities) { - $s = array(); - foreach ($cities as $city => $mirrors2) { - $mirs = array(); - foreach ($mirrors2 as $m) { - $pm = parse_url($m); - $alt_dl_link = str_replace('$MIRROR', $m, $download_tmpl); - $mirs[] = sprintf( - '%s://<a href="%s" rel="nofollow">%s</a>', - $pm['scheme'], $alt_dl_link, $pm['host'] - ); - } - $s[] = sprintf('<td>%s</td><td>%s</td>', rewrite_city($city), implode(', ', $mirs)); - } - $alternative_mirrors .= sprintf('<tr><td rowspan="%d">%s</td>%s</tr>', count($cities), $country, implode('</tr><tr>', $s)); - } - - // Feedback about current mirror location + trigger for alt mirrors. - $dl2_mirror_alt = sprintf( - _t('This <a href="%s">%s</a> download mirror is located in %s (%s).'), - $one_mirror['mirror_url'], - $one_mirror['mirror_host'], - rewrite_city($one_mirror['city']) . ', ' . $countries[$one_mirror['country']], - $one_mirror['country'] - ) - . ' ' . _t('If it does not work well for you, <a href="#om" id="other_mirrors_btn">check out these other mirrors</a>.'); - - - // at the end of this block we expect the following vars to be available from here: - // - $product (mixed) - // - $download (URL) - // - $js_redirect (JS snippet) - // - $alternative_mirrors (HTML snippet) - // - $dl2_mirror_alt (HTML snippet) -} -catch (NoProductFoundError $e) { - // sorry, no such product found/available. redirect? - $reason = 'This file is not available for download.'; -} -catch (NoMirrorFoundError $e) { - // sorry, no mirror found. next time? - $reason = 'No mirror found for this file to download.'; -} -catch (Exception $e) { - // don't translate $reason as it's for debuging purposes - $reason = 'I do not know either!'; -} - -if (!$download) { - header('HTTP/1.0 404 Not Found'); - header('Status: 404 Not Found'); - header('Cache-Control: public, max-age=600, s-max-age=900'); - $title = '404 Not Found'; - $js_redirect = null; -} else { - header('Pragma: no-cache'); - header('Cache-Control: s-maxage=0, max-age=0, must-revalidate, no-cache'); - $title = $product['name']; -} - -if ($debug) - $js_redirect = null; - -?><!DOCTYPE html> -<html lang="<?php echo $locale; ?>"> -<head> - <meta charset="utf-8"> - <title><?php echo $title; ?> | <?php _e('Mageia Downloads') ?></title> - <meta name="robots" content="noindex,nofollow,nosnippet"> - <link rel="stylesheet" type="text/css" href="/g/style/all.css"> - <?php -if (!isset($_ENV['APP_MODE']) || $_ENV['APP_MODE'] == 'prod') { - include '../../../analytics.php'; - echo $js_redirect; -} - ?> -</head> -<body class="downloads"> - <?php echo $hsnav; ?> - <h1 id="mgnavt"><?php echo sprintf(_t('Download %s'), '<em class="tag">' . $title . '</em>')?></h1> - <div id="doc4" class="yui-t7"> - <div id="bd" role="main"> - <?php if (!is_null($download)): ?> - <div class="yui-g"><div class="para" style="padding-top: 2em;"> - <p><?php - echo - sprintf(_t('Your download of %s should start within a few seconds'), '<em class="tag">' . $product['name'] . '</em>' . ($torrent ? ' (torrent)' : '')), - ' ', sprintf(_t('(download size is about %s).'), $product['size']), - ' ', sprintf(_t('If the download does not start, <a href="%s" rel="nofollow" title="%s">click here</a>.'), $download, $download); - ?></p> - - <div class="dlinfo"> - <p><?php echo $dl2_mirror_alt; ?></p> - <?php - if (((isset($product['md5']) && strlen($product['md5']) > 0) - || (isset($product['sha1'])) && strlen($product['sha1']) > 0) - && !$torrent - ): ?> - <p><?php _e('As soon as your download is complete, you should check that the signatures match:') ?></p> - <div id="check-signs"> - <pre class="term"> -<?php if (strlen($product['md5'])): ?>$ md5sum <?php echo basename($download), "\n<strong>", $product['md5'], "</strong>\n"; endif; ?> - -<?php if (strlen($product['sha1'])): ?>$ sha1sum <?php echo basename($download), "\n<strong>", $product['sha1'], "</strong>\n"; endif; ?> -</pre> - <p><?php _e('If signatures do not match, <strong>DO NOT use this ISO</strong>. Double-check and try to download again.'); ?></p> - <!-- TODO (rda): add direct download links to checksum and signature files as a backup. --> - </div> - <?php endif; ?> - <p><?php - echo sprintf( - _t('Your IP address is %s and you seem to be in %s, %s.'), - $_SESSION['ip'], $_SESSION['country'], $_SESSION['continent'] - ); - ?></p> - </div> - - <!-- alternative mirrors table --> - <table class="dlt2 dlinfo" id="other_mirrors" style="display: none;"> - <thead><tr><th><?php _e('Country'); ?></th> - <th><?php _e('City'); ?></th> - <th><?php _e('Download mirrors'); ?></th></tr></thead> - <tbody><?php echo $alternative_mirrors; ?></tbody> - </table> - - <hr /> - - - </div></div> - <div class="yui-g" style="border-top: 1px solid #ddd;"> - <div class="yui-g first"><div class="para"> - </div></div> - <div class="yui-g" style="border-left: 1px solid #ddd"><div class="para"> - <p><?php echo sprintf(_t('The making and the distribution of Mageia worldwide is made possible by all the <a href="%s">people and organizations that mirror our software</a> and that <a href="%s">donate money, hardware, hosting and more</a>.'), 'http://mirrors.mageia.org/', '../../thank-you/'); ?></p> - <p><?php echo sprintf(_t('Want to help? %sJoin Us!%s'), '<a href="../../contribute/">', '</a>'); ?></p> - </div></div> - </div> - <?php else: ?> - <div class="yui-g"><div class="para" style="padding-top: 2em;"> - <h2><?php _e('Sorry!'); ?> :-(</h2> - <p><?php echo sprintf(_t('Your download could not complete, as we could not find this file. Please try again from the <a href="%s">main downloads page</a>.'), '../../downloads/'); ?></p> - - <p><?php echo sprintf(_t('If you still encounter this error and think IT SHOULD NOT HAPPEN – please tell us:')); ?></p> - <ul> - <li><?php _e('directly on <a href="irc://irc.freenode.net/#mageia-web">#mageia-web on Freenode IRC</a>,'); ?></li> - <li><?php _e('or <a href="http://twitter.com/mageia_org">via our Tweeter account</a>,'); ?></li> - <li><?php _e('or with a <a href="https://www.mageia.org/mailman/listinfo/mageia-webteam">notice on the Web team mailing-list</a>,'); ?></li> - <li><?php _e('or a <a href="https://bugs.mageia.org/enter_bug.cgi?product=Websites&format=guided&component=www.mageia.org">bug report</a>.'); ?></li> - </ul> - - <p><?php _e('You may embed this debug info if you like:'); ?></p> - <pre class="term small"><?php echo $reason, "\n", (json_encode(strip_tags($_GET))); ?></pre> - <p><?php _e('Thanks!'); ?></p> - <p><a href="/<?php echo $locale; ?>">« <?php _e('back to that awesome Mageia home page'); ?></a></p> - </div></div> - <?php endif; ?> - </div> -<script> -document.getElementById("other_mirrors_btn").onclick = function () { - var el = document.getElementById("other_mirrors"); - el.style.display = (el.style.display != 'none' ? 'none' : '' ); -}; -</script> -<div class="yui-gb" style="border-top: 1px solid #ccc; background:#f8fcff; text-align: center;"> - <div class="yui-u first"><div class="para" style="background: transparent;"> - <a href="https://twitter.com/mageia_org" class="twitter-follow-button" data-show-count="true" data-lang="<?php echo $locale; ?>">Follow @mageia_org</a> - <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script> - </div></div> - <div class="yui-u"><div class="para" style="background: transparent;"> - <g:plusone href="http://mageia.org/"></g:plusone> - </div></div> - <div class="yui-u"><div class="para" style="background: transparent;"> - <div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:facepile href="facebook.com/Mageia" width="270" max_rows="1"></fb:facepile> - </div></div> -</div> -<script type="text/javascript" src="https://apis.google.com/js/plusone.js"> - {lang: '<?php echo $locale; ?>'} -</script> -</body> -</html> diff --git a/ur/downloads/get/lib.php b/ur/downloads/get/lib.php deleted file mode 100644 index 975de2291..000000000 --- a/ur/downloads/get/lib.php +++ /dev/null @@ -1,152 +0,0 @@ -<?php -/** - * PHP version 5.4 - * - * @category Mageia - * @package Mageia\Web\www - * @author rda <rda@mageia.org> - * @license http://www.gnu.org/licenses/gpl-2.0.html GPL-2+ - * @link http://www.mageia.org/ - * -*/ - -// note, we use geographical country names -$countries = array( - 'AU' => 'Australia', - 'BE' => 'Belgique', - 'BR' => 'Brasil', - 'BY' => 'Беларусь', // Belarus - 'CA' => 'Canada', - 'CH' => 'Switzerland', - 'CN' => '中国', // China - 'CZ' => 'Česko', // Czechia - 'DE' => 'Deutschland', - 'ES' => 'España', - 'FR' => 'France', - 'GR' => 'Ελλάδα', // Greece - 'GT' => 'Guatemala', - 'ID' => 'Indonesia', - 'IT' => 'Italia', - 'JP' => '日本国', // Japan - 'NC' => 'Nouvelle-Calédonie', - 'NL' => 'Nederlands', - 'PL' => 'Polska', - 'RU' => 'Россия', - 'SE' => 'Sverige', - 'TW' => '臺灣', // Taiwan - 'UK' => 'the UK', - 'US' => 'the USA', -); - -/** - * Rewrite city name in the local official language. - * - * @param string $name city name - * - * @return string -*/ -function rewrite_city($name) -{ - $cities = array( - 'HsinChu' => '新竹市', // .tw - 'Yonezawa' => '米沢市', // .jp - 'Beijing' => '北京', // .cn - 'Moscow' => 'Москва', // .ru - 'Minsk' => 'Мінск', // .by - 'Heraklion' => 'Ηράκλειο', // .gr - 'Prague' => 'Praha', // .cz - ); - if (array_key_exists($name, $cities)) { - return $cities[$name]; - } - - return $name; -} - -/** - * Return $_GET value for $s key if it exists. - * - * @param string $s key - * - * @return mixed -*/ -function get($s) -{ - return isset($_GET[$s]) ? trim($_GET[$s]) : null; -} - -class NoProductFoundError extends Exception {} -class NoMirrorFoundError extends Exception {} - -/** - * TODO use aliases, so that downloads asking for alpha3 - * get redirected to beta1 for instance? (on migration) - * - * @param array $product array definition - * @param string $def_file definition file - * - * @return array -*/ -function get_info_for_product($product, $def_file = null) -{ - $def_file = is_null($def_file) ? 'definitions.ini' : $def_file; - - $defs = parse_ini_file($def_file, true); - - if (array_key_exists($product, $defs)) { - return $defs[$product]; - } - - throw new NoProductFoundError; -} - -/** - * Return mirrors for $file. - * First mirror returned is the preferred one for auto redirection. - * - * @param string $file id of the file to download/find a mirror for - * @param string $locale hint for selecting a mirror - * @param string $country hint for selecting a mirror - * - * @return array - * mirror(product): - * name - * host - * country - * city - * speed - * link -*/ -function get_mirrors_for($file, $locale = null, $country = null) -{ - //include '../../../lib/Downloads.php'; - - $mirrors = Downloads::get_all_mirrors(); - $wsd = new Downloads(); - $one = $wsd->prepare_download(true, $country); - - return array($one, $mirrors); -} - -/** - * Simplifies things. - * - * @param array $product _one_ product definition array - * @param boolean $torrent_preferred do we prefer to get a torrent, if available? - * - * @return string -*/ -function get_download_link($product, $torrent_preferred = false) -{ - if ($torrent_preferred === true - && isset($product['torrent']) - && strlen($product['torrent']) > 0 - ) { - - $path = $product['torrent']; - } else { - $path = $product['path'] . '/' . $product['file']; - } - - return '$MIRROR/' . $path; -}
\ No newline at end of file |