From d243f0d64e0ac26dabf9f420491a4afd2667db5c Mon Sep 17 00:00:00 2001 From: "psychoticwolf%carolina.rr.com" Date: Sun, 28 Nov 2004 17:14:47 +0000 Subject: [PATCH] Bug 269343, Mozila Update has problems remembering OS. git-svn-id: svn://10.0.0.236/trunk@165850 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/update/core/inc_global.php | 6 ++--- mozilla/webtools/update/core/inc_header.php | 27 ++++++--------------- mozilla/webtools/update/index.php | 12 ++++----- 3 files changed, 16 insertions(+), 29 deletions(-) diff --git a/mozilla/webtools/update/core/inc_global.php b/mozilla/webtools/update/core/inc_global.php index 5b96f34f9d7..1e9f456c4f8 100644 --- a/mozilla/webtools/update/core/inc_global.php +++ b/mozilla/webtools/update/core/inc_global.php @@ -145,13 +145,13 @@ function checkFormKey() // ----------------------------- function uriparams() { - global $app_version, $application, $items_per_page, $category, $OS; + global $app_version, $application, $items_per_page, $category, $OS, $uriparams_skip; $uriparams = ""; - if ($application) { $uriparams .="application=$application"; } + if ($application and $uriparams_skip !="application") { $uriparams .="application=$application"; } if ($app_version) { $uriparams .="&version=$app_version"; } if ($OS) { $uriparams .="&os=$OS"; } - if ($category) { $uriparams .="&category=$category"; } + if ($category and $uriparams_skip !="category") { $uriparams .="&category=$category"; } if ($items_per_page) { $uriparams .="&numpg=$items_per_page"; } return $uriparams; diff --git a/mozilla/webtools/update/core/inc_header.php b/mozilla/webtools/update/core/inc_header.php index b942cc60ffd..9a9134193d7 100644 --- a/mozilla/webtools/update/core/inc_header.php +++ b/mozilla/webtools/update/core/inc_header.php @@ -76,26 +76,13 @@ -Firefox: Extensions Themes Search Plugins | -Thunderbird: Extensions Themes | -Mozilla Suite: Extensions Themes - - - - - - -
- -
-Welcome! -">Your Profile | Home |Logout - -
-
+Firefox: application=firefox">Extensions application=firefox">Themes Search Plugins | +Thunderbird: application=thunderbird">Extensions application=thunderbird">Themes | +Mozilla Suite: application=mozilla">Extensions application=mozilla">Themes \ No newline at end of file +unset($uriparams_skip); +?> + \ No newline at end of file diff --git a/mozilla/webtools/update/index.php b/mozilla/webtools/update/index.php index 594625990df..0a8c133b937 100644 --- a/mozilla/webtools/update/index.php +++ b/mozilla/webtools/update/index.php @@ -61,7 +61,7 @@ include"$page_header";
-

">Get Extensions

+

">Get Extensions

Thunderbird

Extensions are small add-ons that add new functionality. They can add anything from a toolbar button to a completely new feature.

@@ -74,10 +74,10 @@ WHERE `Type` = 'E' AND `AppName` = '$application' AND `minAppVer_int`<='$curr $sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE); $numextensions = mysql_num_rows($sql_result); ?> - ">Browse extensions
( available for )
+ ">Browse extensions
( available for )
-

">Get Themes

+

">Get Themes

Mozilla

Themes are skins for Firefox, they allow you to change the look and feel of the browser and personalize it to your tastes.

- ">Browse themes
( available for ) + ">Browse themes
( available for )

Get Plugins

@@ -189,7 +189,7 @@ WHERE `Type` = 'E' AND `AppName` = '$application' AND `pick`='YES' ORDER BY `rID $bodylength = strlen($body); if ($bodylength>"250") { $body = substr($body,0,250); - $body .= " [More...]"; + $body .= " [More...]"; } @@ -228,7 +228,7 @@ WHERE `Type` = 'T' AND `AppName` = '$application' AND `pick`='YES' ORDER BY `rID $bodylength = strlen($body); if ($bodylength>"250") { $body = substr($body,0,250); - $body .= " [More...]"; + $body .= " [More...]"; }