diff --git a/mozilla/webtools/addons/public/htdocs/search.php b/mozilla/webtools/addons/public/htdocs/search.php index 9c4eecfd94a..866202945ed 100644 --- a/mozilla/webtools/addons/public/htdocs/search.php +++ b/mozilla/webtools/addons/public/htdocs/search.php @@ -48,10 +48,8 @@ if (isset($_GET['date'])&&$_GET['date']!='null'&&ctype_alpha($_GET['date'])) { } // Application. -if (isset($_GET['app'])&&$_GET['app']!='null'&&ctype_alpha($_GET['app'])) { - $clean['app'] = $_GET['app']; -} elseif ($_GET['app']=='null') { - unset($clean['app']); +if (isset($_GET['appfilter'])&&$_GET['appfilter']!='null'&&is_numeric($_GET['appfilter'])) { + $clean['appfilter'] = $_GET['appfilter']; } // Query. @@ -108,12 +106,6 @@ $sort = array( 'downloads' => 'Popularity' ); -$apps = array( - 'firefox' => 'Firefox', - 'thunderbird' => 'Thunderbird', - 'mozilla' => 'Mozilla' -); - $perpage = array( 10 => '10', 25 => '25', @@ -155,7 +147,7 @@ if (!empty($sql['platform'])) { if (!empty($sql['app'])) { $select .= " INNER JOIN applications ON version.AppID = applications.AppID "; - $where .= " applications.AppName = '{$sql['app']}' AND "; + $where .= " applications.AppID = '{$sql['appfilter']}' AND "; } if (!empty($sql['q'])) { @@ -270,7 +262,7 @@ $tpl->assign( 'clean' => $clean, 'cats' => $amo->getCats(), 'platforms' => $amo->getPlatforms(), - 'apps' => $apps, + 'apps' => $amo->getApps(), 'dates' => $dates, 'sort' => $sort, 'perpage' => $perpage, diff --git a/mozilla/webtools/addons/public/inc/config-dist.php b/mozilla/webtools/addons/public/inc/config-dist.php index 32fed82aea3..2d8a76fb665 100644 --- a/mozilla/webtools/addons/public/inc/config-dist.php +++ b/mozilla/webtools/addons/public/inc/config-dist.php @@ -178,6 +178,7 @@ $memcache_config = array( */ $contentType_config = array( 'update.php' => 'text/xml; charset=utf-8', - 'rss.php' => 'text/xml; charset=utf-8' + 'rss.php' => 'text/xml; charset=utf-8', + 'pfs.php' => 'text/xml; charset=utf-8' ); ?> diff --git a/mozilla/webtools/addons/public/tpl/inc/wrappers/default-header.tpl b/mozilla/webtools/addons/public/tpl/inc/wrappers/default-header.tpl index 7558df64d64..e722c6d9a2f 100644 --- a/mozilla/webtools/addons/public/tpl/inc/wrappers/default-header.tpl +++ b/mozilla/webtools/addons/public/tpl/inc/wrappers/default-header.tpl @@ -63,7 +63,7 @@ diff --git a/mozilla/webtools/addons/public/tpl/inc/wrappers/nonav-header.tpl b/mozilla/webtools/addons/public/tpl/inc/wrappers/nonav-header.tpl index ce1c4af3ffb..3a2d45c4334 100644 --- a/mozilla/webtools/addons/public/tpl/inc/wrappers/nonav-header.tpl +++ b/mozilla/webtools/addons/public/tpl/inc/wrappers/nonav-header.tpl @@ -62,7 +62,7 @@ diff --git a/mozilla/webtools/addons/public/tpl/pfs.tpl b/mozilla/webtools/addons/public/tpl/pfs.tpl new file mode 100644 index 00000000000..5ef929e6282 --- /dev/null +++ b/mozilla/webtools/addons/public/tpl/pfs.tpl @@ -0,0 +1,31 @@ + + + +{if $plugin.name} + + + + + + + + + + + + + + {$plugin.name|escape:html:"UTF-8"} + {$plugin.mimetype|escape:html:"UTF-8"} + {$plugin.guid|escape:html:"UTF-8"} + {$plugin.version|escape:html:"UTF-8"} + {$plugin.iconUrl|escape:html:"UTF-8"} + {$plugin.XPILocation|escape:html:"UTF-8"} + {$plugin.installerShowsUI|escape:html:"UTF-8"} + {$plugin.manualInstallationURL|escape:html:"UTF-8"} + {$plugin.licenseURL|escape:html:"UTF-8"} + {$plugin.needsRestart|escape:html:"UTF-8"} + +{/if} + + diff --git a/mozilla/webtools/addons/public/tpl/plugins.tpl b/mozilla/webtools/addons/public/tpl/plugins.tpl new file mode 100644 index 00000000000..084ec4c9ce6 --- /dev/null +++ b/mozilla/webtools/addons/public/tpl/plugins.tpl @@ -0,0 +1,113 @@ +
+ +
+ +
+ +
+ +

Common Plugins for Mozilla Firefox and Mozilla Suite

+

Plugins are programs that allow websites to provide content to you and have it appear in your browser.

+ +
+

Acrobat Reader

+

By Adobe Systems

+

For viewing and printing Adobe Portable Document Format (PDF) files

+

 Adobe Reader 7.0 requires Windows 2000 or later. If you are using Windows 98 SE, Windows Me, or Windows NT 4.0, you will need to use Adobe Reader 6.0.3

+

 Download

+
+
 For Windows:
  Version 7.0
6.02 Full / 6.03 Update
+
 For Linux:
  Version 5.10
+
 For MacOSX:
  Unsupported (Details)
+
+
 Support Documentation: Windows, Linux, MacOSX | Acrobat Reader FAQ
+
+ +
+

Flash Player

+

By Macromedia

+

Macromedia Flash Player is the universal rich client for delivering effective Macromedia Flash experiences across desktops and devices.

+

 Download

+
+
 For Windows:
  Version 8
+
 For Linux:
  Version 7
+
 For MacOSX:
  Version 8
+
+
 Support Documentation: Windows, Linux, MacOSX | Flash Player FAQ
+
+ +
+

Java

+

By Sun Microsystems

+

The Java Runtime Enviroment enables your computer to run applications and applets that use Java technology.

+

 Download

+
+
 For Windows:
  Version 5.0 Update 1
+
 For Linux:
  Version 5.0 Update 1
+
 For MacOSX:
  Details
+
+
 Support Documentation: Windows, Linux, MacOSX | Java Plugin FAQ
+
+ + +
+

Quicktime

+

By Apple Computer

+

QuickTime Player is an easy-to-use application for playing, interacting with or viewing video, audio, VR or graphics files.

+

 Download

+
+
 For Windows:
  Version 7
+
 For Linux:
  Unavailable
+
 For MacOSX:
  Version 7
+
+
 Support Documentation: Windows, MacOSX
+
+ +
+

RealPlayer

+

By Real Networks

+

RealPlayer enables your computer to play streaming RealVideo and RealAudio.

+

 Download

+
+
 For Windows:
  Version 10
+
 For Linux:
  Version 10
+
 For MacOSX:
  Version 10
+
+
 Support Documentation: Windows, Linux, MacOSX
+
+ +
+

Shockwave

+

By Macromedia

+

Shockwave Player displays Web content that has been created by Macromedia Director.

+

 Download

+
+
 For Windows:
  Version 10
+
 For Linux:
  Unavailable
+
 For MacOSX:
  Version 10
+
+
 Support Documentation: Windows, MacOSX
+
+ +
+

Windows Media Player

+

By Microsoft

+

Windows Media Player lets you play streaming audio, video, animations, and multimedia presentations on the web.

+

 Download

+
+
 For Windows:
  Vers. 10 for WinXP, Vers. 9
+
 For Linux:
  Unavailable
+
 For MacOSX:
  Version 9
+
+
 Support Documentation: Windows, MacOSX
+
+ +

Looking for a plugin not listed here?

+

This page only lists the most common and most popular plugins. For more information about other plugins available for Mozilla-based Browsers, visit PluginDoc.

+ +
+ +
diff --git a/mozilla/webtools/addons/public/tpl/search.tpl b/mozilla/webtools/addons/public/tpl/search.tpl index 09135b4d180..5a2e2e4e9a2 100644 --- a/mozilla/webtools/addons/public/tpl/search.tpl +++ b/mozilla/webtools/addons/public/tpl/search.tpl @@ -33,10 +33,10 @@
- - - {html_options options=$apps selected=$app} + {html_options options=$apps selected=$clean.appfilter}
diff --git a/mozilla/webtools/addons/shared/lib/amo.class.php b/mozilla/webtools/addons/shared/lib/amo.class.php index 83c04fcc7ee..7fd0039d0a2 100644 --- a/mozilla/webtools/addons/shared/lib/amo.class.php +++ b/mozilla/webtools/addons/shared/lib/amo.class.php @@ -126,7 +126,8 @@ class AMO_Object FROM applications WHERE - public_ver = 'YES' + public_ver = 'YES' AND + supported = 1 GROUP BY AppName ", SQL_INIT, SQL_ASSOC);