Land New Mozilla Update Look. Bug 260157.
|
@ -39,33 +39,32 @@
|
|||
<?php
|
||||
require"../core/config.php";
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html401/loose.dtd">
|
||||
<html lang="EN" dir="ltr">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
<meta http-equiv="Content-Language" content="en">
|
||||
<TITLE>Mozilla Update :: Frequently Asked Questions</TITLE>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<title>Mozilla Update :: Frequently Asked Questions</title>
|
||||
|
||||
<LINK REL="STYLESHEET" TYPE="text/css" HREF="/core/update.css">
|
||||
</HEAD>
|
||||
<BODY>
|
||||
<?php
|
||||
include"$page_header";
|
||||
?>
|
||||
<h2>Frequently Asked Questions</h2>
|
||||
|
||||
<div id="mBody">
|
||||
|
||||
<h1>Frequently Asked Questions</h1>
|
||||
|
||||
<?php
|
||||
$sql = "SELECT `title`, `text` FROM `t_faq` WHERE `active` = 'YES' ORDER BY `index` ASC, `title` ASC";
|
||||
$sql = "SELECT `title`, `text` FROM `faq` WHERE `active` = 'YES' ORDER BY `index` ASC, `title` ASC";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
while ($row = mysql_fetch_array($sql_result)) {
|
||||
$title = $row["title"];
|
||||
$text = nl2br($row["text"]);
|
||||
|
||||
echo"<h3>$title</h3>\n";
|
||||
echo"<h2>$title</h2>\n";
|
||||
echo"$text\n";
|
||||
}
|
||||
?>
|
||||
|
||||
</div>
|
||||
<?php
|
||||
include"$page_footer";
|
||||
?>
|
||||
|
|
|
@ -41,7 +41,7 @@ require"../core/config.php";
|
|||
|
||||
|
||||
//Check and see if the CommentID/ID is valid.
|
||||
$sql = "SELECT `ID`, `CommentID` FROM `t_feedback` WHERE `ID` = '".escape_string($_GET[id])."' AND `CommentID`='".escape_string($_GET["commentid"])."' LIMIT 1";
|
||||
$sql = "SELECT `ID`, `CommentID` FROM `feedback` WHERE `ID` = '".escape_string($_GET[id])."' AND `CommentID`='".escape_string($_GET["commentid"])."' LIMIT 1";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_ERROR);
|
||||
if(mysql_num_rows($sql_result)=="0") {
|
||||
unset($_GET["id"],$_GET["commentid"],$id,$commentid);
|
||||
|
@ -64,7 +64,7 @@ $sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mys
|
|||
}
|
||||
|
||||
//Get Data for the Comment Record as it stands.
|
||||
$sql = "SELECT `helpful-yes`,`helpful-no`,`helpful-rating` FROM `t_feedback` WHERE `CommentID` = '$commentid' LIMIT 1";
|
||||
$sql = "SELECT `helpful-yes`,`helpful-no`,`helpful-rating` FROM `feedback` WHERE `CommentID` = '$commentid' LIMIT 1";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_ERROR);
|
||||
$row = mysql_fetch_array($sql_result);
|
||||
$helpful_yes = $row["helpful-yes"];
|
||||
|
@ -88,7 +88,7 @@ $sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mys
|
|||
$helpful_rating = ($helpful_no/$total)*-100;
|
||||
}
|
||||
}
|
||||
$sql = "UPDATE `t_feedback` SET `helpful-yes`='$helpful_yes',`helpful-no`='$helpful_no',`helpful-rating`='$helpful_rating' WHERE `CommentID`='$commentid' LIMIT 1";
|
||||
$sql = "UPDATE `feedback` SET `helpful-yes`='$helpful_yes',`helpful-no`='$helpful_no',`helpful-rating`='$helpful_rating' WHERE `CommentID`='$commentid' LIMIT 1";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
|
||||
|
||||
|
|
|
@ -44,9 +44,9 @@
|
|||
include"dbconfig.php"; // Include Database Server Configuration File
|
||||
|
||||
// General Website Configuration Variables
|
||||
$websitepath = "D:/Websites/update/mozilla/webtools/update"; // Local Path to Site Files
|
||||
$repositorypath = "D:/Websites/update/mozilla/webtools/update/files/"; //Path to XPI/JAR Respository
|
||||
$sitehostname = "mozillaupdate.psychoticwolf.net"; // DNS Hostname
|
||||
$websitepath = "/opt/update-beta"; // Local Path to Site Files
|
||||
$repositorypath = "/opt/update-beta/files/"; //Path to XPI/JAR Respository
|
||||
$sitehostname = $_SERVER["SERVER_NAME"]; // DNS Hostname, ex. "update.mozilla.org"
|
||||
$ftpurl = "http://ftp.mozilla.org/pub/mozilla.org"; // URL to FTP site
|
||||
|
||||
// Page Header and Footer Path Variables
|
||||
|
@ -64,6 +64,4 @@ $time_start = getmicrotime();
|
|||
include"inc_guids.php"; // GUID --> AppName Handler
|
||||
include"inc_global.php"; // Global Functions - Variable Cleanup
|
||||
include"inc_browserdetection.php"; //Browser Detection - App Variable Handling
|
||||
//include"sessionconfig.php"; //Start Session
|
||||
|
||||
?>
|
||||
|
|
|
@ -40,11 +40,7 @@
|
|||
//$_SERVER["HTTP_USER_AGENT"] = "Mozilla/5.0 (Photon; U; QNX x86pc; en-US; rv:1.6a) Gecko/20030122";
|
||||
//$_SERVER["HTTP_USER_AGENT"] = "Mozilla/5.0 (BeOS; U; BeOS BePC; en-US; rv:1.4a) Gecko/20030305";
|
||||
//$_SERVER["HTTP_USER_AGENT"] = "Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.7b) Gecko/20040302";
|
||||
//$_SERVER["HTTP_USER_AGENT"] = "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040206 Lightninglizard/0.8";
|
||||
//$_SERVER["HTTP_USER_AGENT"] = "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7b) Gecko/20040322 Nuclearunicorn/0.8.0+ (Firefox/0.8.0+ rebrand)";
|
||||
//$_SERVER["HTTP_USER_AGENT"] = "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040626 Firefox/0.9";
|
||||
//$_SERVER["HTTP_USER_AGENT"] = "Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7) Gecko/20040803 Firefox/0.9.3";
|
||||
//$_SERVER["HTTP_USER_AGENT"] = "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040818 Firefox/0.9.1+";
|
||||
//$_SERVER["HTTP_USER_AGENT"] = "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20041001 Firefox/0.10.1";
|
||||
|
||||
|
||||
|
@ -76,9 +72,9 @@ if ($_GET["version"]=="auto-detect") {$_GET["version"]="";}//Clear Version For A
|
|||
break;
|
||||
}
|
||||
|
||||
$application = $_GET["application"];
|
||||
$app_version = $_GET["version"];
|
||||
$OS = $_GET["os"];
|
||||
$application = escape_string($_GET["application"]);
|
||||
$app_version = escape_string($_GET["version"]);
|
||||
$OS = escape_string($_GET["os"]);
|
||||
|
||||
//print("$application, $app_version, $OS<br>\n");
|
||||
|
||||
|
@ -139,7 +135,7 @@ if (!$application) { $application="firefox"; } //Default App is Firefox
|
|||
//App_Version
|
||||
//Get Max Version for Application Specified
|
||||
if (!$app_version) {
|
||||
$sql = "SELECT `major`,`minor`,`release`,`SubVer` FROM `t_applications` WHERE `AppName` = '$application' ORDER BY `major` DESC, `minor` DESC, `release` DESC, `SubVer` DESC LIMIT 1";
|
||||
$sql = "SELECT `major`,`minor`,`release`,`SubVer` FROM `applications` WHERE `AppName` = '$application' ORDER BY `major` DESC, `minor` DESC, `release` DESC, `SubVer` DESC LIMIT 1";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
$row = mysql_fetch_array($sql_result);
|
||||
$release = "$row[major].$row[minor]";
|
||||
|
@ -156,7 +152,7 @@ if (!$app_version) {
|
|||
|
||||
|
||||
//Check for Internal Versioning for the $app_version
|
||||
$sql = "SELECT `int_version`,`major`,`minor`,`release`,`SubVer` FROM `t_applications` WHERE `AppName`='$application' AND `int_version` IS NOT NULL ORDER BY `major` DESC, `minor` DESC, `release` DESC, `SubVer` DESC";
|
||||
$sql = "SELECT `int_version`,`major`,`minor`,`release`,`SubVer` FROM `applications` WHERE `AppName`='$application' AND `int_version` IS NOT NULL ORDER BY `major` DESC, `minor` DESC, `release` DESC, `SubVer` DESC";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
while ($row = mysql_fetch_array($sql_result)) {
|
||||
$release = "$row[major].$row[minor]";
|
||||
|
|
|
@ -36,43 +36,17 @@
|
|||
//
|
||||
// ***** END LICENSE BLOCK *****
|
||||
?>
|
||||
<!--Page Footer-->
|
||||
<hr class="hide">
|
||||
<div id="footer">
|
||||
<ul id="bn">
|
||||
<li><a href="/about/policies/">Terms of Use</a></li>
|
||||
<li><a href="/about/contact/">Contact Us</a></li>
|
||||
<li><a href="http://www.mozilla.org/foundation/donate.html">Donate</a></li>
|
||||
</ul>
|
||||
<p><strong>Update-Beta is a technology Preview. For internal use only.</strong><br>
|
||||
Copyright © 2004 The Mozilla Organization</p>
|
||||
</div>
|
||||
<hr class="hide">
|
||||
<div id="footer">
|
||||
<ul id="bn">
|
||||
<li><a href="/about/policies/">Terms of Use</a></li>
|
||||
<li><a href="/about/contact/">Contact Us</a></li>
|
||||
<li><a href="http://www.mozilla.org/foundation/donate.html">Donate</a></li>
|
||||
</ul>
|
||||
<p><strong>Update-Beta is a technology Preview of pre-release software.<br>It is not guaranteed to be current or available.</strong><br>
|
||||
Copyright © 2004 The Mozilla Organization</p>
|
||||
</div>
|
||||
<!-- closes #footer-->
|
||||
|
||||
</div>
|
||||
<!-- closes #container -->
|
||||
|
||||
<?php
|
||||
|
||||
|
||||
//if ($_SESSION["debug"]=="true") {
|
||||
//print(session_id());
|
||||
//echo"<PRE>";print_r($_SESSION); echo"</PRE><Br>\n";
|
||||
//echo"Current application data: $application - $app_version - $OS ";
|
||||
//}
|
||||
|
||||
|
||||
return;
|
||||
|
||||
//Site Timer Counter :: Debug-Mode Item Only
|
||||
$time_end = getmicrotime();
|
||||
//Returns in format: sss.mmmuuunnnppp ;-)
|
||||
// m = millisec, u=microsec, n=nansec, p=picosec
|
||||
$time = round($time_end - $time_start,"6");
|
||||
|
||||
echo"<DIV class=\"footer\">© 2004 <A HREF=\"http://www.mozilla.org\">The Mozilla Organization</A>"; if ($_SESSION["debug"]=="true") {echo" | Page Created in $time seconds"; } echo" | Terms of Use | Top</DIV>"; //Debug Time
|
||||
|
||||
if ($pos !== false) {
|
||||
echo"</div>\n";
|
||||
}
|
||||
?>
|
||||
|
|
|
@ -63,27 +63,19 @@ foreach ($_GET as $key => $val) {
|
|||
$_GET["$key"] = htmlentities(str_replace("\\","",strip_tags($_GET["$key"])));
|
||||
}
|
||||
|
||||
//Set Debug Mode session Variable
|
||||
if ($_GET["debug"]=="true") {$_SESSION["debug"]=$_GET["debug"]; } else if ($_GET["debug"]=="false") {unset($_SESSION["debug"]);}
|
||||
|
||||
// Bug 250596 Fixes for incoming $_GET variables.
|
||||
if ($_GET["application"]) {
|
||||
$_GET["application"] = escape_string(strtolower($_GET["application"]));
|
||||
$sql = "SELECT AppID FROM `t_applications` WHERE `AppName` = '".ucwords(strtolower($_GET["application"]))."' LIMIT 1";
|
||||
$sql = "SELECT AppID FROM `applications` WHERE `AppName` = '".ucwords(strtolower($_GET["application"]))."' LIMIT 1";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
if (mysql_num_rows($sql_result)===0) {unset($_GET["application"]);}
|
||||
}
|
||||
|
||||
//if ($_GET["version"]) {
|
||||
//$sql = "SELECT AppID FROM `t_applications` WHERE `Release` = '$_GET[version]' LIMIT 1";
|
||||
// $sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
// if (mysql_num_rows($sql_result)===0) {unset($_GET["application"]);}
|
||||
//}
|
||||
|
||||
if ($_GET["category"] AND $_GET["category"] !=="All"
|
||||
AND $_GET["category"] !=="Editors Pick" AND $_GET["category"] !=="Popular"
|
||||
AND $_GET["category"] !=="Top Rated" AND $_GET["category"] !=="Newest") {
|
||||
$sql = "SELECT CatName FROM `t_categories` WHERE `CatName` = '".escape_string(ucwords(strtolower($_GET["category"])))."' LIMIT 1";
|
||||
$sql = "SELECT CatName FROM `categories` WHERE `CatName` = '".escape_string(ucwords(strtolower($_GET["category"])))."' LIMIT 1";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
if (mysql_num_rows($sql_result)===0) {unset($_GET["category"]);}
|
||||
}
|
||||
|
@ -99,10 +91,9 @@ function page_error($reason, $custom_message) {
|
|||
global $page_header, $page_footer;
|
||||
|
||||
echo"<TITLE>Mozilla Update :: Error</TITLE>\n";
|
||||
echo"<LINK REL=\"STYLESHEET\" TYPE=\"text/css\" HREF=\"/core/update.css\">\n";
|
||||
|
||||
include"$page_header";
|
||||
|
||||
echo"<div id=\"mBody\">";
|
||||
echo"<h1>Mozilla Update :: Error</h1>\n";
|
||||
echo"<SPAN style=\"font-size: 12pt\">\n";
|
||||
echo"Mozilla Update has encountered an error and is unable to fulfill your request. Please try your request again later. If the
|
||||
|
@ -111,7 +102,7 @@ function page_error($reason, $custom_message) {
|
|||
Error $reason: $custom_message<BR><BR>
|
||||
<A HREF=\"javascript:history.back()\">«« Go Back to Previous Page</A>";
|
||||
echo"</SPAN>\n";
|
||||
|
||||
echo"</div>\n";
|
||||
include"$page_footer";
|
||||
echo"</body>\n</html>\n";
|
||||
exit;
|
||||
|
@ -119,7 +110,7 @@ function page_error($reason, $custom_message) {
|
|||
|
||||
function writeFormKey()
|
||||
{
|
||||
$sql = "SELECT UserPass FROM t_userprofiles WHERE UserID = '".$_SESSION["uid"]."'";
|
||||
$sql = "SELECT UserPass FROM userprofiles WHERE UserID = '".$_SESSION["uid"]."'";
|
||||
$res = mysql_query($sql) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
$row = mysql_fetch_array($res);
|
||||
echo "<input type=\"hidden\" name=\"formkey\" value=\"".md5($row["UserPass"])."\">\n";
|
||||
|
@ -128,7 +119,7 @@ function writeFormKey()
|
|||
function checkFormKey()
|
||||
{
|
||||
$key = $_POST["formkey"];
|
||||
$sql = "SELECT UserPass FROM t_userprofiles WHERE UserID = '".$_SESSION["uid"]."'";
|
||||
$sql = "SELECT UserPass FROM userprofiles WHERE UserID = '".$_SESSION["uid"]."'";
|
||||
$res = mysql_query($sql) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
$row = mysql_fetch_array($res);
|
||||
if ($key != md5($row["UserPass"]))
|
||||
|
@ -148,12 +139,14 @@ function uriparams() {
|
|||
global $app_version, $application, $items_per_page, $category, $OS, $uriparams_skip;
|
||||
$uriparams = "";
|
||||
|
||||
if ($application and $uriparams_skip !="application") { $uriparams .="application=$application"; }
|
||||
if ($app_version) { $uriparams .="&version=$app_version"; }
|
||||
if ($OS) { $uriparams .="&os=$OS"; }
|
||||
if ($category and $uriparams_skip !="category") { $uriparams .="&category=$category"; }
|
||||
if ($items_per_page) { $uriparams .="&numpg=$items_per_page"; }
|
||||
|
||||
if ($application and $uriparams_skip !="application") { $uriparams .="application=$application&"; }
|
||||
if ($app_version and $uriparams_skip !="application") { $uriparams .="version=$app_version&"; }
|
||||
if ($OS) { $uriparams .="os=$OS&"; }
|
||||
if ($category and $uriparams_skip !="category") { $uriparams .="category=$category&"; }
|
||||
if ($items_per_page) { $uriparams .="numpg=$items_per_page"; }
|
||||
if (substr($uriparams, -1)==";") {
|
||||
$uriparams = substr($uriparams,0,strlen($uriparams)-5);
|
||||
}
|
||||
return $uriparams;
|
||||
}
|
||||
|
||||
|
|
|
@ -37,52 +37,74 @@
|
|||
// ***** END LICENSE BLOCK *****
|
||||
?>
|
||||
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<meta name="keywords" content="web browser mozilla firefox firebird camino thunderbird bugzilla user agent web links cool sites">
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="/css/print.css" media="print">
|
||||
<link rel="stylesheet" type="text/css" href="/css/base/content.css" media="all">
|
||||
<link rel="stylesheet" type="text/css" href="/css/cavendish/content.css" title="Cavendish" media="all">
|
||||
<link rel="stylesheet" type="text/css" href="/css/base/template.css" media="screen">
|
||||
<link rel="stylesheet" type="text/css" href="/css/cavendish/template.css" title="Cavendish" media="screen">
|
||||
<link rel="stylesheet" type="text/css" href="/css/cavendish/home.css" title="Cavendish" media="screen">
|
||||
<link rel="stylesheet" type="text/css" href="/core/update.css" media="all">
|
||||
<link rel="icon" href="/images/mozilla-16.png" type="image/png">
|
||||
<link rel="home" title="Home" href="http://update.mozilla.org/">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta name="keywords" content="mozilla update, mozilla extensions, mozilla plugins, thunderbird themes, thunderbird extensions, firefox extensions, firefox themes,">
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="/css/print.css" media="print">
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="/css/base/content.css" media="all">
|
||||
<link rel="stylesheet" type="text/css" href="/css/cavendish/content.css" title="Cavendish" media="all">
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="/css/base/template.css" media="screen">
|
||||
<link rel="stylesheet" type="text/css" href="/css/cavendish/template.css" title="Cavendish" media="screen">
|
||||
|
||||
<link rel="icon" href="/images/favicon.png" type="image/png">
|
||||
|
||||
<link rel="home" title="Home" href="http://update.mozilla.org/">
|
||||
</head>
|
||||
|
||||
<body id="update-mozilla-org" class="homepage">
|
||||
<body id="update-mozilla-org">
|
||||
<div id="container">
|
||||
|
||||
<p class="skipLink"><a href="#mainContent" accesskey="2">Skip to main content</a></p>
|
||||
<p class="skipLink"><a href="#firefox-feature" accesskey="2">Skip to main content</a></p>
|
||||
|
||||
<div id="mozilla-org"><a href="http://www.mozilla.org/">Visit Mozilla.org</a></div>
|
||||
<div id="header">
|
||||
<h1><a href="/" title="Return to home page" accesskey="1">Mozilla Update</a></h1>
|
||||
<ul title="Main Site Sections">
|
||||
<li id="menu_aboutus"><a href="../about/" title="About Mozilla Update">About</a></li>
|
||||
<li id="menu_developers"><a href="../developers/" title="Using Mozilla's products for your own applications">Developers</a></li>
|
||||
<li id="menu_store"><a href="/" title="Available Space">---</a></li>
|
||||
<li id="menu_support"><a href="../themes/" title="Installation, trouble-shooting, and the knowledge base">Themes</a></li>
|
||||
<li id="menu_products"><a href="../extensions/" title="All software Mozilla currently offers">Extensions</a></li>
|
||||
</ul>
|
||||
<form id="search" method="get" action="http://www.google.com/custom" title="Mozilla.org Search">
|
||||
<div>
|
||||
<label for="q" title="Search update.mozilla.org">search update:</label>
|
||||
<input type="hidden" name="cof" value="LW:174;LH:60;L:http://www.mozilla.org/images/mlogosm.gif;GIMP:#cc0000;T:black;ALC:#0000ff;GFNT:grey;LC:#990000;BGC:white;AH:center;VLC:purple;GL:0;GALT:#666633;AWFID:9262c37cefe23a86;">
|
||||
<input type="hidden" name="domains" value="update.mozilla.org">
|
||||
<input type="hidden" name="sitesearch" value="update.mozilla.org">
|
||||
<input type="text" id="q" name="q" accesskey="s" size="30">
|
||||
<input type="submit" id="submit" value="Go">
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div id="key-title">
|
||||
<h1><a href="/" title="Return to home page" accesskey="1">Mozilla Update: Beta</a></h1>
|
||||
<ul>
|
||||
<li><a href="/" title="Learn More About Mozilla Updates">home</a></li>
|
||||
<li><a href="/about/" title="Learn More About Mozilla Updates">about</a></li>
|
||||
<li><a href="/developers/" title="Find Tools and Information for Developers">developers</a></li>
|
||||
<li>
|
||||
<form id="search" method="get" action="http://www.google.com/custom" title="Mozilla.org Search">
|
||||
<div>
|
||||
<label for="q" title="Search mozilla.org"s sites">search:</label>
|
||||
<input type="hidden" name="cof" value="">
|
||||
<input type="hidden" name="domains" value="update.mozilla.org">
|
||||
<input type="hidden" name="sitesearch" value="update.mozilla.org">
|
||||
<input type="text" id="q" name="q" accesskey="s" size="10">
|
||||
<select name="section" id="sectionsearch"><option value="1">Entire Site</option><option value="2">Extensions</option><option value="">Themes</option><!--<option value="3">Plugins</option><option value="4">Search Engines</option>--></select>
|
||||
<input type="submit" id="submit" value="Go">
|
||||
</div>
|
||||
</form>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<?php
|
||||
$uriparams_skip="application";
|
||||
?>
|
||||
<div id="key-menu">
|
||||
<dl id="menu-firefox">
|
||||
<dt>Firefox:</dt>
|
||||
<dd><a href="/extensions/?<?php echo"".uriparams()."&"; ?>application=firefox" title="Get Extensions for the Firefox Browser">Extensions</a>, <a href="/themes/?<?php echo"".uriparams()."&"; ?>application=firefox" title="Get Themes for the Firefox Browser">Themes</a>, <a href="/plugins/" title="Get Plugins for Firefox">Plugins</a><!--, <a href="/searchengines/" title="Get New Search Engines for the Search Box in Firefox">Search Engines</a>--></dd>
|
||||
</dl>
|
||||
<dl id="menu-thunderbird">
|
||||
<dt>Thunderbird:</dt>
|
||||
<dd><a href="/extensions/?<?php echo"".uriparams()."&"; ?>application=thunderbird" title="Get Extensions for Thunderbird Email">Extensions</a>, <a href="/themes/?<?php echo"".uriparams()."&"; ?>application=thunderbird" title="Get Themes for Thunderbird Email">Themes</a></dd>
|
||||
</dl>
|
||||
<dl id="menu-mozillasuite">
|
||||
<dt>Mozilla Suite:</dt>
|
||||
<dd><a href="/extensions/?<?php echo"".uriparams()."&"; ?>application=mozilla" title="Get Extensions for the Mozilla Suite">Extensions</a>, <a href="/themes/?<?php echo"".uriparams()."&"; ?>application=mozilla" title="Get Themes for the Mozilla Suite">Themes</a>, <a href="/plugins/" title="Get Plugins for Mozilla Suite">Plugins</a></dd>
|
||||
</dl>
|
||||
<div class="ie-clear-menu"> </div>
|
||||
</div>
|
||||
<?php
|
||||
unset($uriparams_skip);
|
||||
?>
|
||||
|
||||
</div>
|
||||
<?php
|
||||
$uriparams_skip="application";
|
||||
?>
|
||||
Firefox: <a href="/extensions/?<?php echo"".uriparams()."&"; ?>application=firefox">Extensions</a> <a href="/themes/?<?php echo"".uriparams()."&"; ?>application=firefox">Themes</a> <a href="/searchplugins/">Search Plugins</a> |
|
||||
Thunderbird: <a href="/extensions/?<?php echo"".uriparams()."&"; ?>application=thunderbird">Extensions</a> <a href="/themes/?<?php echo"".uriparams()."&"; ?>application=thunderbird">Themes</a> |
|
||||
Mozilla Suite: <a href="/extensions/?<?php echo"".uriparams()."&"; ?>application=mozilla">Extensions</a> <a href="/themes/?<?php echo"".uriparams()."&"; ?>application=mozilla">Themes</a>
|
||||
<?php
|
||||
unset($uriparams_skip);
|
||||
?>
|
||||
<!-- closes #header-->
|
||||
<!-- closes #header-->
|
||||
|
||||
<hr class="hide">
|
|
@ -41,7 +41,7 @@ require"../core/config.php";
|
|||
|
||||
//Get Full Information for the file requested.
|
||||
$uri = escape_string(str_replace(" ","+",$_GET["uri"]));
|
||||
$sql = "SELECT `vID`, TM.ID, `URI` FROM `t_version` TV INNER JOIN `t_main` TM ON TM.ID=TV.ID WHERE `URI`='$uri' LIMIT 1";
|
||||
$sql = "SELECT `vID`, TM.ID, `URI` FROM `version` TV INNER JOIN `main` TM ON TM.ID=TV.ID WHERE `URI`='$uri' LIMIT 1";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
if (mysql_num_rows($sql_result)=="0") {
|
||||
exit("Invalid URI cannot Continue");
|
||||
|
@ -63,29 +63,29 @@ $maxlife = date("YmdHis", mktime(date("H"), date("i")-10, date("s"), date("m"),
|
|||
$remote_addr = $_SERVER["REMOTE_ADDR"];
|
||||
}
|
||||
|
||||
$sql = "SELECT `dID` FROM `t_downloads` WHERE `ID`='$id' AND `vID`='$vid' AND `user_ip`='$remote_addr' AND `user_agent` = '$_SERVER[HTTP_USER_AGENT]' AND `date`>'$maxlife' AND `type`='download' LIMIT 1";
|
||||
$sql = "SELECT `dID` FROM `downloads` WHERE `ID`='$id' AND `vID`='$vid' AND `user_ip`='$remote_addr' AND `user_agent` = '$_SERVER[HTTP_USER_AGENT]' AND `date`>'$maxlife' AND `type`='download' LIMIT 1";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
if (mysql_num_rows($sql_result)=="0") {
|
||||
//Insert a record of this download for the next 10 minutes anyway. :-)
|
||||
$today=date("YmdHis");
|
||||
|
||||
$sql = "INSERT INTO `t_downloads` (`ID`,`date`,`vID`, `user_ip`, `user_agent`, `type`) VALUES ('$id','$today','$vid', '$remote_addr', '$_SERVER[HTTP_USER_AGENT]', 'download');";
|
||||
$sql = "INSERT INTO `downloads` (`ID`,`date`,`vID`, `user_ip`, `user_agent`, `type`) VALUES ('$id','$today','$vid', '$remote_addr', '$_SERVER[HTTP_USER_AGENT]', 'download');";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
|
||||
//Cleanup the Individual Downloads part of the table for old records
|
||||
$sql = "DELETE FROM `t_downloads` WHERE `date`<'$maxlife' AND `type`='download'";
|
||||
$sql = "DELETE FROM `downloads` WHERE `date`<'$maxlife' AND `type`='download'";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
|
||||
$today=date("Ymd")."000000";
|
||||
|
||||
//Per day download tracking -- Record hits for this day in the record (if it doesn't exist create it)
|
||||
$sql = "SELECT `dID` FROM `t_downloads` WHERE `ID`='$id' AND `date`='$today' AND `type`='count' LIMIT 1";
|
||||
$sql = "SELECT `dID` FROM `downloads` WHERE `ID`='$id' AND `date`='$today' AND `type`='count' LIMIT 1";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
if (mysql_num_rows($sql_result)=="0") {
|
||||
$sql = "INSERT INTO `t_downloads` (`ID`,`date`,`downloadcount`,`type`) VALUES ('$id','$today','1','count');";
|
||||
$sql = "INSERT INTO `downloads` (`ID`,`date`,`downloadcount`,`type`) VALUES ('$id','$today','1','count');";
|
||||
} else {
|
||||
$row = mysql_fetch_array($sql_result);
|
||||
$sql = "UPDATE `t_downloads` SET `downloadcount`=downloadcount+1 WHERE `dID`='$row[dID]' LIMIT 1";
|
||||
$sql = "UPDATE `downloads` SET `downloadcount`=downloadcount+1 WHERE `dID`='$row[dID]' LIMIT 1";
|
||||
}
|
||||
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
|
@ -94,22 +94,22 @@ $sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mys
|
|||
//Download Statistic Management Code -- Maintain the last 7 days record count
|
||||
$mindate = date("Ymd", mktime(0, 0, 0, date("m"), date("d")-7, date("Y")))."000000";
|
||||
$downloadcount="0";
|
||||
$sql = "SELECT `downloadcount` FROM `t_downloads` WHERE `ID`='$id' AND `date`>='$mindate' AND `type`='count' ORDER BY `date` DESC";
|
||||
$sql = "SELECT `downloadcount` FROM `downloads` WHERE `ID`='$id' AND `date`>='$mindate' AND `type`='count' ORDER BY `date` DESC";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
while ($row = mysql_fetch_array($sql_result)) {
|
||||
$downloadcount = $downloadcount+$row["downloadcount"];
|
||||
}
|
||||
|
||||
//Update the 7 day count in the main record.
|
||||
$sql = "UPDATE `t_main` SET `downloadcount`='$downloadcount' WHERE `ID`='$id' LIMIT 1";
|
||||
$sql = "UPDATE `main` SET `downloadcount`='$downloadcount' WHERE `ID`='$id' LIMIT 1";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
|
||||
//Update the total downloadcount in the main record.
|
||||
$sql = "UPDATE `t_main` SET `TotalDownloads`=TotalDownloads+1 WHERE `ID`='$id' LIMIT 1";
|
||||
$sql = "UPDATE `main` SET `TotalDownloads`=TotalDownloads+1 WHERE `ID`='$id' LIMIT 1";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
|
||||
//Clean up the Counts per day for >8 days.
|
||||
$sql = "DELETE FROM `t_downloads` WHERE `ID`='$id' AND `date`<'$mindate' AND `type`='count'";
|
||||
$sql = "DELETE FROM `downloads` WHERE `ID`='$id' AND `date`<'$mindate' AND `type`='count'";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
|
||||
}
|
||||
|
|
|
@ -41,7 +41,7 @@ require"../core/config.php";
|
|||
|
||||
|
||||
//Check and see if the ID/vID is valid.
|
||||
$sql = "SELECT TM.ID, TV.vID FROM `t_main` TM INNER JOIN `t_version` TV ON TM.ID=TV.ID WHERE TM.ID = '".escape_string($_POST[id])."' AND `vID`='".escape_string($_POST["vid"])."' LIMIT 1";
|
||||
$sql = "SELECT TM.ID, TV.vID FROM `main` TM INNER JOIN `version` TV ON TM.ID=TV.ID WHERE TM.ID = '".escape_string($_POST[id])."' AND `vID`='".escape_string($_POST["vid"])."' LIMIT 1";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_ERROR);
|
||||
if(mysql_num_rows($sql_result)=="0") {
|
||||
unset($_POST["id"],$_POST["vid"],$id,$vid);
|
||||
|
@ -76,9 +76,9 @@ $sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mys
|
|||
|
||||
|
||||
//Compile Info about What Version of the item this comment is about.
|
||||
$sql = "SELECT TV.Version, `OSName`, `AppName` FROM `t_version` TV
|
||||
INNER JOIN `t_os` TOS ON TOS.OSID=TV.OSID
|
||||
INNER JOIN `t_applications` TA ON TA.AppID=TV.AppID
|
||||
$sql = "SELECT TV.Version, `OSName`, `AppName` FROM `version` TV
|
||||
INNER JOIN `os` TOS ON TOS.OSID=TV.OSID
|
||||
INNER JOIN `applications` TA ON TA.AppID=TV.AppID
|
||||
WHERE TV.ID = '$id' AND TV.vID='$vid' LIMIT 1";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_ERROR);
|
||||
$row = mysql_fetch_array($sql_result);
|
||||
|
@ -98,18 +98,18 @@ $sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mys
|
|||
//Check the Formkey against the DB, and see if this has already been posted...
|
||||
$formkey = escape_string($_POST["formkey"]);
|
||||
$date = date("Y-m-d H:i:s", mktime(0, 0, 0, date("m"), date("d")-1, date("Y")));
|
||||
$sql = "SELECT `CommentID` FROM `t_feedback` WHERE `formkey` = '$formkey' AND `CommentDate`>='$date'";
|
||||
$sql = "SELECT `CommentID` FROM `feedback` WHERE `formkey` = '$formkey' AND `CommentDate`>='$date'";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_ERROR);
|
||||
if (mysql_num_rows($sql_result)=="0") {
|
||||
|
||||
//FormKey doesn't exist, go ahead and add their comment.
|
||||
$sql = "INSERT INTO `t_feedback` (`ID`, `CommentName`, `CommentVote`, `CommentTitle`, `CommentNote`, `CommentDate`, `commentip`, `email`, `formkey`, `VersionTagline`) VALUES ('$id', '$name', '$rating', '$title', '$comments', NOW(NULL), '$remote_addr', '$email', '$formkey', '$versiontagline');";
|
||||
$sql = "INSERT INTO `feedback` (`ID`, `CommentName`, `CommentVote`, `CommentTitle`, `CommentNote`, `CommentDate`, `commentip`, `email`, `formkey`, `VersionTagline`) VALUES ('$id', '$name', '$rating', '$title', '$comments', NOW(NULL), '$remote_addr', '$email', '$formkey', '$versiontagline');";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
|
||||
|
||||
//Get Rating Data and Create $ratingarray
|
||||
$date = date("Y-m-d H:i:s", mktime(0, 0, 0, date("m"), date("d")-30, date("Y")));
|
||||
$sql = "SELECT ID, CommentVote FROM `t_feedback` WHERE `ID` = '$id' AND `CommentDate`>='$date' AND `CommentVote` IS NOT NULL";
|
||||
$sql = "SELECT ID, CommentVote FROM `feedback` WHERE `ID` = '$id' AND `CommentDate`>='$date' AND `CommentVote` IS NOT NULL";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
while ($row = mysql_fetch_array($sql_result)) {
|
||||
$ratingarray[$row[ID]][] = $row["CommentVote"];
|
||||
|
@ -129,7 +129,7 @@ if (mysql_num_rows($sql_result)=="0") {
|
|||
}
|
||||
|
||||
|
||||
$sql = "UPDATE `t_main` SET `Rating`='$rating' WHERE `ID`='$id' LIMIT 1";
|
||||
$sql = "UPDATE `main` SET `Rating`='$rating' WHERE `ID`='$id' LIMIT 1";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
|
||||
}
|
||||
|
|
|
@ -41,7 +41,7 @@ require"../core/config.php";
|
|||
|
||||
|
||||
//Check and see if the CommentID/ID is valid.
|
||||
$sql = "SELECT `ID`, `CommentID` FROM `t_feedback` WHERE `ID` = '".escape_string($_GET[id])."' AND `CommentID`='".escape_string($_GET["commentid"])."' LIMIT 1";
|
||||
$sql = "SELECT `ID`, `CommentID` FROM `feedback` WHERE `ID` = '".escape_string($_GET[id])."' AND `CommentID`='".escape_string($_GET["commentid"])."' LIMIT 1";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_ERROR);
|
||||
if(mysql_num_rows($sql_result)=="0") {
|
||||
unset($_GET["id"],$_GET["commentid"],$id,$commentid);
|
||||
|
@ -62,7 +62,7 @@ $sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mys
|
|||
}
|
||||
|
||||
//Set Flag on the Comment Record
|
||||
$sql = "UPDATE `t_feedback` SET `flag`='YES' WHERE `CommentID`='$commentid' LIMIT 1";
|
||||
$sql = "UPDATE `feedback` SET `flag`='YES' WHERE `CommentID`='$commentid' LIMIT 1";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
|
||||
|
||||
|
@ -74,8 +74,6 @@ if ($_GET["type"]=="E") {
|
|||
}
|
||||
|
||||
$return_path="$type/moreinfo.php?id=$id&vid=$vid&".uriparams()."&page=comments&pageid=$_GET[pageid]#$commentid";
|
||||
//header("Location: http://$sitehostname/$return_path");
|
||||
//exit;
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html401/loose.dtd">
|
||||
<html lang="EN" dir="ltr">
|
||||
|
|
|
@ -1,492 +1,96 @@
|
|||
/* mozilla.org Base Styles
|
||||
* maintained by fantasai
|
||||
* (classes defined in the Markup Guide - http://mozilla.org/contribute/writing/markup )
|
||||
*/
|
||||
/* Suggested order:
|
||||
* display
|
||||
* list-style
|
||||
* position
|
||||
* float
|
||||
* clear
|
||||
* width
|
||||
* height
|
||||
* margin
|
||||
* padding
|
||||
* border
|
||||
* background
|
||||
* color
|
||||
* font
|
||||
* text-decoration
|
||||
* text-align
|
||||
* vertical-align
|
||||
* white-space
|
||||
* other text
|
||||
* content
|
||||
*
|
||||
*/
|
||||
body, td, th, h3, input { /* redundant rules for bad browsers */
|
||||
font-family: verdana, sans-serif;
|
||||
font-size: x-small;
|
||||
voice-family: "\"}\"";
|
||||
voice-family: inherit;
|
||||
font-size: small;
|
||||
}
|
||||
|
||||
/* TOC:
|
||||
Random HTML Styles
|
||||
Forms
|
||||
General Structure
|
||||
Navigation
|
||||
Quotations
|
||||
Comments and Other Asides
|
||||
Emphasis
|
||||
Computers - General
|
||||
Code
|
||||
Examples and Figures
|
||||
Q and A (FAQ)
|
||||
Tables
|
||||
Headers
|
||||
Meta
|
||||
Specific to Products Pages
|
||||
*/
|
||||
/* Random HTML Styles */
|
||||
body {
|
||||
color: #333;
|
||||
line-height: 140%;
|
||||
}
|
||||
|
||||
dt {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
dd {
|
||||
margin: 0 0 1em 1em;
|
||||
}
|
||||
|
||||
li {
|
||||
margin-top: 0.2em;
|
||||
margin-bottom: 0.2em;
|
||||
}
|
||||
|
||||
sup {
|
||||
font-size: 70%;
|
||||
}
|
||||
a:link { color: #039; }
|
||||
a:visited { color: #609; }
|
||||
a:hover { color: #333; }
|
||||
a:active { color: #000; }
|
||||
|
||||
form {
|
||||
margin: 0;
|
||||
display: inline;
|
||||
}
|
||||
#mBody li { padding-bottom: 0.5em; }
|
||||
|
||||
label {
|
||||
font-weight: bold;
|
||||
}
|
||||
.sidebar_content > h1,.sidebar_content > h2,.sidebar_content > h3,.sidebar_content > h4,.sidebar_content > h5,.sidebar_content > h6,.sidebar > h1,.sidebar_general > h2,.sidebar_general > h3,.sidebar_general > h4,.sidebar_general > h5,.sidebar_general > h6 {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.deepLevel #mainContent :link img,
|
||||
.deepLevel #mainContent :visited img {
|
||||
border: medium solid;
|
||||
}
|
||||
.sidebar_right {
|
||||
margin-left: 65%;
|
||||
}
|
||||
|
||||
/* General Structure */
|
||||
|
||||
.subtitle {
|
||||
font-style: italic;
|
||||
}
|
||||
.sidebar_general ul {
|
||||
margin-left: 0;
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
div.para {
|
||||
margin: 1em 0;
|
||||
}
|
||||
.sidebar_general li {
|
||||
padding: 0.2em 0;
|
||||
}
|
||||
|
||||
div.section {
|
||||
display: block;
|
||||
padding-left: 3%;
|
||||
}
|
||||
img.imgright {
|
||||
float: right;
|
||||
}
|
||||
|
||||
div.section > h2,
|
||||
div.section > h3,
|
||||
div.section > h4,
|
||||
div.section > h5,
|
||||
div.section > h6 {
|
||||
margin-left: -1.3%;
|
||||
}
|
||||
|
||||
.imgright {
|
||||
float: right;
|
||||
margin: 0 0 2em 2em;
|
||||
}
|
||||
|
||||
.first {
|
||||
margin-top: 0; /* For IE not understanding first:child */
|
||||
}
|
||||
img {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
/* Navigation */
|
||||
dt {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
:link img,
|
||||
:visited img {
|
||||
border: 0;
|
||||
}
|
||||
dd {
|
||||
margin: 0 0 1em 1em;
|
||||
}
|
||||
|
||||
.ex-ref {
|
||||
font-style: italic;
|
||||
}
|
||||
.skipLink {
|
||||
position: absolute;
|
||||
left: -1200px;
|
||||
width: 990px;
|
||||
}
|
||||
|
||||
dl.toc dt {
|
||||
margin-top: 1em;
|
||||
font-size: 110%;
|
||||
}
|
||||
dl.toc p {
|
||||
margin: 0;
|
||||
text-indent: 1em;
|
||||
}
|
||||
dl.toc p:first-child {
|
||||
text-indent: 0;
|
||||
}
|
||||
dl.toc > dd {
|
||||
margin-left: 1em;
|
||||
}
|
||||
.hide {
|
||||
display: none;
|
||||
}
|
||||
|
||||
ol.toc ol {
|
||||
list-style-type: circle;
|
||||
}
|
||||
ol.toc > li > ol {
|
||||
font-size: 90%;
|
||||
}
|
||||
ul.compact {
|
||||
margin-left: 0;
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
ul.snav {/* section navigation or short navigation, whichever you prefer */
|
||||
margin: 0.7em 10%;
|
||||
padding: .2em;
|
||||
text-align: center;
|
||||
}
|
||||
ul.snav > li {
|
||||
list-style-type: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
ul.snav > li {
|
||||
display: inline;
|
||||
}
|
||||
ul.snav > li:before {
|
||||
content: " | ";
|
||||
}
|
||||
ul.snav > li:first-child:before {
|
||||
content: "";
|
||||
}
|
||||
img.rss {
|
||||
float: right;
|
||||
margin: 0;
|
||||
padding: 4px 4px 0 0;
|
||||
}
|
||||
|
||||
a.cont {
|
||||
display: block;
|
||||
margin-right: 0;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
/* Quotations */
|
||||
|
||||
blockquote > address {
|
||||
padding-left: 1em;
|
||||
text-indent: -1em;
|
||||
}
|
||||
blockquote > address:before {
|
||||
content: "\2015";
|
||||
}
|
||||
|
||||
div.quote,
|
||||
div.epigraph {
|
||||
margin: 1em;
|
||||
}
|
||||
div.quote q,
|
||||
div.epigraph q {
|
||||
display: block;
|
||||
margin: 0 .5em;
|
||||
text-indent: -0.5em;
|
||||
}
|
||||
div.quote cite,
|
||||
div.epigraph cite {
|
||||
display: block;
|
||||
padding: 0 1em;
|
||||
text-align: right;
|
||||
text-indent: -1em;
|
||||
}
|
||||
div.quote cite:before,
|
||||
div.epigraph cite:before {
|
||||
content: "\2015";
|
||||
}
|
||||
|
||||
blockquote.epigraph,
|
||||
div.epigraph q {
|
||||
font-style: italic;
|
||||
text-align: right;
|
||||
}
|
||||
blockquote.epigraph em,
|
||||
div.epigraph q em {
|
||||
font-style: normal;
|
||||
}
|
||||
blockquote.epigraph address,
|
||||
div.epigraph cite {
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
/* Comments and other Asides */
|
||||
|
||||
.note {
|
||||
font-style: italic;
|
||||
}
|
||||
.note:before {
|
||||
content: "Note: ";
|
||||
}
|
||||
|
||||
.remark {
|
||||
font-size: smaller;
|
||||
}
|
||||
.remark:before {
|
||||
content: "[";
|
||||
}
|
||||
.remark:after {
|
||||
content: "]";
|
||||
}
|
||||
|
||||
.sidenote {
|
||||
/* clear: both; */
|
||||
margin: 0.75em 0.5em;
|
||||
padding: 0.2em;
|
||||
border: 1px solid;
|
||||
|
||||
/* Block NS4 from floating */ /*/*/
|
||||
float: right;
|
||||
width: 30%;
|
||||
min-width: 15em;
|
||||
/* */
|
||||
}
|
||||
/* Reduce main header sizes */
|
||||
.sidenote h1 {font-size: 1.40em;}
|
||||
.sidenote h2 {font-size: 1.25em;}
|
||||
.sidenote h3 {font-size: 1.10em;}
|
||||
|
||||
.key-point > h1:first-child,
|
||||
.key-point > h2:first-child,
|
||||
.key-point > h3:first-child,
|
||||
.key-point > h4:first-child,
|
||||
.key-point > h5:first-child,
|
||||
.key-point > h6:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
/* Emphasis */
|
||||
|
||||
/* em, strong */
|
||||
|
||||
strong.stronger {
|
||||
font-style: italic;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
strong.very-strong {
|
||||
font-weight: bold;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
*.important,
|
||||
div.important,
|
||||
p.important {
|
||||
margin: 1em;
|
||||
padding: 0.1em;
|
||||
border: solid #F00;
|
||||
font-size: larger;
|
||||
}
|
||||
|
||||
/* Computers - General */
|
||||
|
||||
pre.screen {
|
||||
overflow: auto;
|
||||
margin: 1em 0.5em;
|
||||
padding: 0.2em;
|
||||
border: solid 1px;
|
||||
font-family: monospace;
|
||||
white-space: pre;
|
||||
}
|
||||
|
||||
div.screen {
|
||||
margin: 1em .5em;
|
||||
padding: 0.2em;
|
||||
border: solid 1px;
|
||||
}
|
||||
|
||||
span.application {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
kbd.command,
|
||||
code.command {
|
||||
white-space: pre;
|
||||
}
|
||||
|
||||
code.filename {
|
||||
font-style: italic;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/* Code */
|
||||
|
||||
code {
|
||||
white-space: pre;
|
||||
}
|
||||
|
||||
pre.code {
|
||||
overflow: auto;
|
||||
margin: 1em .5em;
|
||||
padding: .2em;
|
||||
border: solid 1px;
|
||||
}
|
||||
|
||||
pre.code .remark {
|
||||
font-size: 1em;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
/* turn off content generation */
|
||||
pre.code .remark:before,
|
||||
pre.code .remark:after,
|
||||
pre.code .note:before {
|
||||
content: "";
|
||||
}
|
||||
|
||||
|
||||
/* Examples and Figures */
|
||||
|
||||
.example {
|
||||
margin: 1em 3%;
|
||||
padding: .25em;
|
||||
border: solid;
|
||||
}
|
||||
.example:before {
|
||||
display: block;
|
||||
font-weight: bold;
|
||||
content: "Example";
|
||||
}
|
||||
.example[title]:before {
|
||||
content: "Example: " attr(title);
|
||||
}
|
||||
|
||||
pre.bad,
|
||||
div.bad {
|
||||
border: dashed red 3px;
|
||||
}
|
||||
.bad.example:before {
|
||||
content: "Incorrect Example";
|
||||
}
|
||||
.bad.example[title]:before {
|
||||
content: "Incorrect Example: " attr(title);
|
||||
}
|
||||
|
||||
pre.good,
|
||||
div.good {
|
||||
border: double lime 3px;
|
||||
}
|
||||
.good.example:before {
|
||||
content: "Correct Example";
|
||||
}
|
||||
.good.example[title]:before {
|
||||
content: "Correct Example: " attr(title);
|
||||
}
|
||||
|
||||
.figure,
|
||||
.screenshot {
|
||||
display: block;
|
||||
margin: .75em auto;
|
||||
}
|
||||
.screenshot[title]:after,
|
||||
.figure[title]:after {
|
||||
display: block;
|
||||
margin: 0 8% .05em;
|
||||
font-style: italic;
|
||||
font-size: small;
|
||||
text-align: right;
|
||||
content: attr(title);
|
||||
}
|
||||
|
||||
.co,
|
||||
.callout {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* Q and A (FAQ) */
|
||||
|
||||
.qandaset .question {
|
||||
font-size: large;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.qandaset .answer {
|
||||
margin-top: 1em;
|
||||
}
|
||||
|
||||
/* Tables */
|
||||
|
||||
table.data {
|
||||
border-collapse: collapse;
|
||||
margin: 0.5em auto;
|
||||
border: 1px solid;
|
||||
}
|
||||
|
||||
table.data caption {
|
||||
margin: 1em auto 0.2em;
|
||||
font-size: small;
|
||||
font-style: italic;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
table.data th,
|
||||
table.data td {
|
||||
padding: 0.2em;
|
||||
border: 1px solid;
|
||||
}
|
||||
|
||||
/* Meta */
|
||||
|
||||
address {
|
||||
text-align: right;
|
||||
}
|
||||
.author {
|
||||
margin-bottom: 1em;
|
||||
text-align: left;
|
||||
}
|
||||
.first { margin-top: 0.2em; }
|
||||
|
||||
.requires img {
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
/* Headers */
|
||||
|
||||
#mainContent > h1:first-child,
|
||||
#mainContent > h2:first-child,
|
||||
#mainContent > h3:first-child,
|
||||
#mainContent > h4:first-child,
|
||||
#mainContent > h5:first-child,
|
||||
#mainContent > h6:first-child,
|
||||
#side > h1:first-child,
|
||||
#side > h2:first-child,
|
||||
#side > h3:first-child,
|
||||
#side > h4:first-child,
|
||||
#side > h5:first-child,
|
||||
#side > h6:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
|
||||
/* Specific to Products Pages */
|
||||
|
||||
.productlist {
|
||||
margin: 0;
|
||||
padding: 0 0 0 5px;
|
||||
}
|
||||
|
||||
.productlist li {
|
||||
clear: left;
|
||||
list-style: none;
|
||||
padding: 0 0 1em 0;
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.productlist h3 {
|
||||
margin: 0 0 0.2em 0;
|
||||
}
|
||||
|
||||
.productlist img {
|
||||
float: left;
|
||||
margin: 0 0.5em 1em 0;
|
||||
display: auto;
|
||||
}
|
||||
|
||||
/* Random Stuff That Needs To Be Cleaned Up / Deprecated */
|
||||
|
||||
.flLeft {
|
||||
float: left;
|
||||
margin: 5px 10px 5px 0;
|
||||
}
|
||||
.flRight {
|
||||
float: right;
|
||||
margin: 5px 0 5px 10px;
|
||||
}
|
||||
#mainContent > h1:first-child,
|
||||
#mainContent > h2:first-child,
|
||||
#mainContent > h3:first-child,
|
||||
#mainContent > h4:first-child,
|
||||
#mainContent > h5:first-child,
|
||||
#mainContent > h6:first-child,
|
||||
#side > h1:first-child,
|
||||
#side > h2:first-child,
|
||||
#side > h3:first-child,
|
||||
#side > h4:first-child,
|
||||
#side > h5:first-child,
|
||||
#side > h6:first-child {
|
||||
margin-top: 0;
|
||||
}
|
|
@ -1,104 +1,130 @@
|
|||
/* mozilla.org Base Template Styles
|
||||
* Initial Design by Dave Shea
|
||||
* Severely tweaked by David Baron
|
||||
* Reorganized by fantasai
|
||||
* Large Changes for new Cavendish default by Daniel Burka and Steven Garrity
|
||||
*/
|
||||
body {
|
||||
min-width: 700px;
|
||||
margin: 0 30px 2em 30px;
|
||||
}
|
||||
|
||||
/* Basic Structure */
|
||||
body {
|
||||
min-width: 610px;
|
||||
margin: 20px;
|
||||
}
|
||||
#container {
|
||||
max-width: 70em;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
#container {
|
||||
max-width: 70em;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
#mBody {
|
||||
/* clear: both; */
|
||||
padding: 0 0 1em 0;
|
||||
}
|
||||
#mBody {
|
||||
clear: both;
|
||||
padding: 1em 0;
|
||||
}
|
||||
|
||||
#side {
|
||||
float: left;
|
||||
width: 23%;
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
.sidebar_content {
|
||||
width: 60%;
|
||||
float: left;
|
||||
}
|
||||
|
||||
#mainContent {
|
||||
margin-left: 25%;
|
||||
}
|
||||
.nomenu #mainContent {
|
||||
margin-left: 0;
|
||||
}
|
||||
.bodyleft {
|
||||
margin-left: 25% ! important
|
||||
}
|
||||
#mainContent.right {
|
||||
float: left;
|
||||
width: 62%;
|
||||
margin-bottom: 1em;
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
#side.right {
|
||||
float: none;
|
||||
width: auto;
|
||||
margin-left: 65%;
|
||||
}
|
||||
#footer {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
/* Header */
|
||||
#side {
|
||||
float: left;
|
||||
width: 23%;
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
#header { margin-bottom: 1em; }
|
||||
#header ul {
|
||||
margin: 0 0 1em 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#header li {
|
||||
display: inline;
|
||||
padding: 0 20px 0 0;
|
||||
margin: 0;
|
||||
white-space: nowrap;
|
||||
}
|
||||
#mainContent {
|
||||
margin-left: 25%;
|
||||
}
|
||||
.nomenu #mainContent {
|
||||
margin-left: 0;
|
||||
}
|
||||
.bodyleft {
|
||||
margin-left: 25% ! important
|
||||
}
|
||||
#mainContent.right {
|
||||
float: left;
|
||||
width: 62%;
|
||||
margin-bottom: 1em;
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
#side.right {
|
||||
float: none;
|
||||
width: auto;
|
||||
margin-left: 65%;
|
||||
}
|
||||
|
||||
p.security-update {
|
||||
padding-left: 35px;
|
||||
background: url(../../images/security-update.png) no-repeat;
|
||||
margin-top: 0;
|
||||
min-height: 30px;
|
||||
}
|
||||
|
||||
/* Sidebar */
|
||||
|
||||
#getcd {
|
||||
margin: 1em 0 0 45px;
|
||||
}
|
||||
#nav:before {
|
||||
line-height: 0.1;
|
||||
font-size: 1px;
|
||||
background: transparent url("../../images/menu_tr.gif") no-repeat top right;
|
||||
margin: 0;
|
||||
height: 9px;
|
||||
display: block;
|
||||
border-bottom: 1px solid #ddd;
|
||||
content: url("../../images/key-point_tl.gif");
|
||||
}
|
||||
#nav {
|
||||
background: #E0E9E9 url("../../images/menu_back.gif") right repeat-y;
|
||||
}
|
||||
#nav:after {
|
||||
display: block;
|
||||
padding-top: 0;
|
||||
line-height: 0.1;
|
||||
font-size: 1px;
|
||||
content: url("../../images/key-point_bl.gif");
|
||||
margin: 0 0 0 0;
|
||||
height: 8px;
|
||||
background: transparent url("../../images/menu_br.gif") scroll no-repeat bottom right ;
|
||||
border-top: 1px solid #fff;
|
||||
}
|
||||
|
||||
/* Footer */
|
||||
#nav, #nav ul {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
#nav {
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
#nav li {
|
||||
display: inline;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#footer {
|
||||
/* clear: both; */
|
||||
margin-top: 1em;
|
||||
}
|
||||
|
||||
#footer ul {
|
||||
margin: 0 0 1em 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#footer li {
|
||||
display: inline;
|
||||
padding: 0 20px 0 0;
|
||||
margin: 0;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
#footer p {
|
||||
margin: 0.6em 0;
|
||||
}
|
||||
#nav li span { /* used for un-linked menu items */
|
||||
display: block;
|
||||
padding: 6px 10px;
|
||||
font-weight: bold;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
/*accessibility tweaks*/
|
||||
.skipLink {
|
||||
position: absolute;
|
||||
left: -999px;
|
||||
width: 990px;
|
||||
}
|
||||
hr.hide {
|
||||
display: none;
|
||||
}
|
||||
#nav li span#configParent, #nav li span #configuration {
|
||||
display: inline;
|
||||
font-weight: normal;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#nav li a {
|
||||
display: block;
|
||||
padding: 6px 10px;
|
||||
text-decoration: none;
|
||||
background: #EDF2F2;
|
||||
border-bottom: 1px solid #ddd;
|
||||
border-top: 1px solid #fff;
|
||||
border-right: 1px solid #ddd;
|
||||
}
|
||||
|
||||
#nav li a:hover {
|
||||
background: #E0E9E9;
|
||||
}
|
||||
|
||||
#nav ul li span,#nav ul li a {
|
||||
padding: 4px 8px 4px 20px;
|
||||
}
|
|
@ -1,349 +1,197 @@
|
|||
/* mozilla.org MezzoTan Content Styles
|
||||
* Initial Design by Dave Shea
|
||||
* Reorganized and Expanded to include Markup Reference classes by fantasai
|
||||
*/
|
||||
/* Suggested order:
|
||||
* display
|
||||
* list-style
|
||||
* position
|
||||
* float
|
||||
* clear
|
||||
* width
|
||||
* height
|
||||
* margin
|
||||
* padding
|
||||
* border
|
||||
* background
|
||||
* color
|
||||
* font
|
||||
* text-decoration
|
||||
* text-align
|
||||
* vertical-align
|
||||
* white-space
|
||||
* other text
|
||||
* content
|
||||
*
|
||||
*/
|
||||
#mBody h2 {
|
||||
font: 140% arial,helvetica,verdana,sans-serif;
|
||||
border-bottom: 1px solid #ccc;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
/* TOC:
|
||||
Body
|
||||
Random HTML Styles
|
||||
Forms
|
||||
General Structure
|
||||
Navigation
|
||||
Quotations
|
||||
Comments and Other Asides
|
||||
Emphasis
|
||||
Computers - General
|
||||
Code
|
||||
Examples and Figures
|
||||
Q and A (FAQ)
|
||||
Tables
|
||||
Meta
|
||||
*/
|
||||
#mBody h3 {
|
||||
font: 120% arial,helvetica,verdana,sans-serif;
|
||||
border-bottom: 1px solid #ccc;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
/* Body */
|
||||
#mBody h1 {
|
||||
font: 180% arial,helvetica,sans-serif;
|
||||
border-bottom: 1px solid #ccc;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
body {
|
||||
background: #fff;
|
||||
}
|
||||
.key-point:before {
|
||||
line-height: 0.1;
|
||||
font-size: 1px;
|
||||
background: transparent url("../../images/key-point_tr.gif") no-repeat top right;
|
||||
margin: -15px -15px 0 -15px;
|
||||
height: 15px;
|
||||
display: block;
|
||||
border: none;
|
||||
content: url("../../images/key-point_tl.gif");
|
||||
}
|
||||
.key-point {
|
||||
background: #EFF8CE url("../../images/key-point_back.gif") right repeat-y;
|
||||
padding: 15px;
|
||||
margin-top: 18px;
|
||||
}
|
||||
.key-point:after {
|
||||
display: block;
|
||||
padding-top: 15px;
|
||||
line-height: 0.1;
|
||||
font-size: 1px;
|
||||
content: url("../../images/key-point_bl.gif");
|
||||
margin: -15px;
|
||||
height: 8px;
|
||||
background: transparent url("../../images/key-point_br.gif") scroll no-repeat bottom right ;
|
||||
}
|
||||
|
||||
#mainContent, #side {
|
||||
background: #fff;
|
||||
line-height: 1.3; /* value other than 'normal' needed for WinIE */
|
||||
}
|
||||
.deepLevel #mainContent {
|
||||
line-height: 1.4;
|
||||
}
|
||||
#header form #submit {
|
||||
font-size: 100%;
|
||||
padding: 1px;
|
||||
font-family: tahoma, arial, sans-serif;
|
||||
}
|
||||
|
||||
/* Random HTML Styles */
|
||||
#header form #q {
|
||||
width: 90px;
|
||||
font-size: 100%;
|
||||
font-weight: normal;
|
||||
border: 1px solid #9097A2;
|
||||
padding: 2px;
|
||||
font-family: tahoma, arial, sans-serif;
|
||||
}
|
||||
|
||||
hr {
|
||||
height: 1px;
|
||||
background-color: #000;
|
||||
color: #000;
|
||||
margin: 2em 0;
|
||||
}
|
||||
#sectionsearch {
|
||||
font-size: 100%;
|
||||
font-weight: normal;
|
||||
font-family: tahoma, arial, sans-serif;
|
||||
}
|
||||
|
||||
input[type="submit"] {
|
||||
font-weight: bold;
|
||||
}
|
||||
.popularlist {
|
||||
font-size: 85%;
|
||||
}
|
||||
|
||||
/* General Structure */
|
||||
body, td, th, input { /* redundant rules for bad browsers */
|
||||
font-family: verdana, sans-serif;
|
||||
font-size: x-small;
|
||||
voice-family: "\"}\"";
|
||||
voice-family: inherit;
|
||||
font-size: small;
|
||||
}
|
||||
.popularlist span {
|
||||
color: #666;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
margin: 1em 0 0.2em 0;
|
||||
border-bottom: 1px solid #ccc;
|
||||
font-family: arial, verdana, sans-serif;
|
||||
}
|
||||
.install a {
|
||||
background: url(../../images/install.png) no-repeat;
|
||||
padding: 3px 0 8px 30px;
|
||||
display: block;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
#header h1 { border: 0; }
|
||||
.install a strong {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
h1 { font-size: 160%; font-weight: normal; }
|
||||
h2 { font-size: 150%; font-weight: normal; }
|
||||
h3 { font-size: 120%; }
|
||||
h4 { font-size: 100%; }
|
||||
h5 { font-size: 90%; }
|
||||
h6 { font-size: 90%; border: 0; }
|
||||
|
||||
/* Navigation */
|
||||
.install-box {
|
||||
width: 18em;
|
||||
}
|
||||
|
||||
a:link { color: #039; }
|
||||
a:visited { color: #636; }
|
||||
a:hover { color: #333; }
|
||||
a:active { color: #000; }
|
||||
#opinions h4 {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* Quotations */
|
||||
.opinions-date {
|
||||
font-size: 85%;
|
||||
margin: 0 0 0.5em 0;
|
||||
}
|
||||
|
||||
.opinions-date a {
|
||||
text-decoration: none;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
/* Comments and other Asides */
|
||||
.opinions-date a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.note {
|
||||
color: #666;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.remark {
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.sidenote {
|
||||
border: #666;
|
||||
}
|
||||
.opinions-text {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.key-point:before {
|
||||
line-height: 0.1;
|
||||
font-size: 1px;
|
||||
background: transparent url("../../images/key-point_tr.gif") no-repeat top right;
|
||||
margin: -15px -15px 0 -15px;
|
||||
height: 15px;
|
||||
display: block;
|
||||
border: none;
|
||||
content: url("../../images/key-point_tl.gif");
|
||||
}
|
||||
.key-point {
|
||||
background: #e4ecec url("../../images/key-point_back.gif") right repeat-y;
|
||||
padding: 15px;
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
.key-point:after {
|
||||
display: block;
|
||||
/* clear: both; */
|
||||
padding-top: 15px;
|
||||
line-height: 0.1;
|
||||
font-size: 1px;
|
||||
content: url("../../images/key-point_bl.gif");
|
||||
margin: -15px;
|
||||
height: 8px;
|
||||
background: transparent url("../../images/key-point_br.gif") scroll no-repeat bottom right ;
|
||||
}
|
||||
|
||||
.key-point h2, .key-point h3, .key-point h4, .key-point h5 {
|
||||
border: none;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.news dt {
|
||||
font-weight: normal;
|
||||
color: #666;
|
||||
}
|
||||
.news dt a {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
ul.compact {
|
||||
margin-left: 0;
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
/* Emphasis */
|
||||
.opinions-rating img {
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
/* Computers - General */
|
||||
.rating {
|
||||
float: right;
|
||||
font-size: 85%;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
kbd {
|
||||
margin: 0.1em;
|
||||
padding: 0.1em;
|
||||
border: 1px #ccc;
|
||||
}
|
||||
.rating img {
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
kbd.command,
|
||||
code.command {
|
||||
color: #6B5839;
|
||||
}
|
||||
.more-links {
|
||||
margin: 0.5em 0 0 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* Code */
|
||||
.more-links li {
|
||||
display: inline;
|
||||
margin: 0;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
pre.code {
|
||||
margin: 0.1em;
|
||||
padding: 0.1em;
|
||||
background: #EEECF6;
|
||||
}
|
||||
|
||||
code > em,
|
||||
code > strong,
|
||||
pre.code > em,
|
||||
pre.code > strong {
|
||||
font-style: normal;
|
||||
}
|
||||
.screenshot {
|
||||
float: right;
|
||||
background: #fff;
|
||||
padding: 0 0 2em 2em;
|
||||
}
|
||||
|
||||
/* Examples and Figures */
|
||||
.screenshot a {
|
||||
text-align: center;
|
||||
display: block;
|
||||
}
|
||||
|
||||
div.example {
|
||||
border-color: #554FA0;
|
||||
}
|
||||
div.example::before {
|
||||
color: #666;
|
||||
}
|
||||
/* Remaining Original Update Styles */
|
||||
|
||||
/* Tables */
|
||||
.item {
|
||||
border: #D2D6D6 1px solid;
|
||||
padding-left: 5px;
|
||||
padding-right: 6px;
|
||||
MARGIN-bottom: 10px;
|
||||
-moz-border-radius: 10px;
|
||||
}
|
||||
|
||||
table.data {
|
||||
border-style: none hidden;
|
||||
}
|
||||
|
||||
table.data thead {
|
||||
background: #EEECF6;
|
||||
}
|
||||
.item a {
|
||||
color: #00129c;
|
||||
text-decoration: none;
|
||||
}
|
||||
.item a:visited {
|
||||
color: #00129c;
|
||||
text-decoration: none;
|
||||
}
|
||||
.item a:hover {
|
||||
color: #fc5900;
|
||||
}
|
||||
|
||||
table.data th,
|
||||
table.data td {
|
||||
border: 1px dotted #D6CCBD;
|
||||
}
|
||||
|
||||
tr.odd {
|
||||
background: #F5F5F5;
|
||||
}
|
||||
.iconbar {
|
||||
padding-right: 15px;
|
||||
float: left;
|
||||
width: auto;
|
||||
height: 34px;
|
||||
text-align: top;
|
||||
}
|
||||
|
||||
/* Meta */
|
||||
.iconbar img {
|
||||
float:left;
|
||||
}
|
||||
|
||||
address {
|
||||
color: #666;
|
||||
}
|
||||
.iconbar a {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
/* Product Specific CSS */
|
||||
|
||||
.productlist h3 {
|
||||
border: none;
|
||||
}
|
||||
.selected a, .selected a:visited {
|
||||
color: #fc5900;
|
||||
}
|
||||
|
||||
.key-point h3 {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#product-desc h2 {
|
||||
text-indent: -700em;
|
||||
height: 25px;
|
||||
line-height: 2px;
|
||||
font-size: 2px;
|
||||
}
|
||||
|
||||
#product-desc p {
|
||||
padding-left: 170px;
|
||||
}
|
||||
|
||||
#product-side {
|
||||
margin-left: 65%;
|
||||
}
|
||||
|
||||
#product-side ul {
|
||||
margin-left: 0;
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
#product-side li {
|
||||
padding-bottom: 0.2em;
|
||||
}
|
||||
|
||||
#product-desc {
|
||||
padding: 40px 0 25px 0;
|
||||
color: #4C5C5C;
|
||||
width: 60%;
|
||||
float: left;
|
||||
line-height: 140%;
|
||||
}
|
||||
|
||||
.product-firefox {
|
||||
background: url("../../images/product-firefox-screen.png") no-repeat;
|
||||
}
|
||||
.product-thunderbird {
|
||||
background: url("../../images/product-thunderbird-screen.png") no-repeat;
|
||||
}
|
||||
.product-camino {
|
||||
background: url("../../images/product-camino-screen.png") no-repeat;
|
||||
}
|
||||
.product-mozilla {
|
||||
background: url("../../images/product-mozilla-screen.png") no-repeat;
|
||||
}
|
||||
|
||||
.download h3 {
|
||||
color: #1D9101;
|
||||
font-weight: bold;
|
||||
margin: 0;
|
||||
font-size: 140%;
|
||||
}
|
||||
|
||||
.download h3 a:link,
|
||||
.download h3 a:visited,
|
||||
.download h3 a:active {
|
||||
color: #1D9101;
|
||||
}
|
||||
|
||||
.download h3 a:hover {
|
||||
color: #156B01;
|
||||
}
|
||||
|
||||
.download:before {
|
||||
line-height: 0.1;
|
||||
font-size: 1px;
|
||||
margin: -15px -15px 0 -15px;
|
||||
height: 15px;
|
||||
display: block;
|
||||
border: none;
|
||||
content: url("../../images/download_tl.gif");
|
||||
}
|
||||
.download {
|
||||
background: #C4EFA1 url("../../images/download_back.gif") top right no-repeat;
|
||||
padding: 15px 45px 15px 15px;
|
||||
margin-bottom: 0.5em;
|
||||
}
|
||||
.download:after {
|
||||
display: block;
|
||||
padding-top: 15px;
|
||||
line-height: 0.1;
|
||||
font-size: 1px;
|
||||
content: url("../../images/download_bl.gif");
|
||||
margin: -10px -45px -15px -15px;
|
||||
height: 8px;
|
||||
background: transparent url("../../images/download_br.gif") scroll no-repeat bottom right ;
|
||||
}
|
||||
|
||||
.shop:before {
|
||||
line-height: 0.1;
|
||||
font-size: 1px;
|
||||
margin: -15px -15px 0 -15px;
|
||||
height: 15px;
|
||||
display: block;
|
||||
border: none;
|
||||
content: url("../../images/shop_tl.gif");
|
||||
}
|
||||
.shop {
|
||||
background: #C0DCDC url("../../images/shop_back.gif") top right no-repeat;
|
||||
padding: 15px 70px 15px 15px;
|
||||
}
|
||||
.shop:after {
|
||||
display: block;
|
||||
padding-top: 15px;
|
||||
line-height: 0.1;
|
||||
font-size: 1px;
|
||||
content: url("../../images/shop_bl.gif");
|
||||
margin: -10px -70px -15px -15px;
|
||||
height: 8px;
|
||||
background: transparent url("../../images/shop_br.gif") scroll no-repeat bottom right ;
|
||||
}
|
||||
.baseline {
|
||||
margin-top: 5px;
|
||||
border-top: #ccc 1px solid;
|
||||
padding: 3px;
|
||||
padding-left: 10px;
|
||||
font-size: 8pt;
|
||||
color: #333;
|
||||
}
|
|
@ -1,265 +1,152 @@
|
|||
/* mozilla.org Cavendish Template Styles
|
||||
* Initial Design by Daniel Burka and Steven Garrity
|
||||
*/
|
||||
body {
|
||||
background: #fff url("../../images/body_back.gif") repeat-x;
|
||||
}
|
||||
|
||||
/* Basic Structure */
|
||||
body {
|
||||
background: #fff url("../../images/body_back.gif") repeat-x;
|
||||
}
|
||||
#footer {
|
||||
border-top: 1px solid #666;
|
||||
margin: 2em 0;
|
||||
padding: 1em 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* Header */
|
||||
#footer ul {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
#header {
|
||||
background: #455372 url("../../images/header_bl.png") bottom left repeat-x;
|
||||
position: relative;
|
||||
min-height: 39px;
|
||||
height: 5em;
|
||||
padding: 0;
|
||||
voice-family: "\"}\"";
|
||||
voice-family: inherit;
|
||||
height: 3em;
|
||||
padding: 15px 0;
|
||||
} #ignored {}
|
||||
|
||||
#header h1 {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
margin: 0;
|
||||
font-size: 2px;
|
||||
background: url("../../images/header_tl.gif") no-repeat;
|
||||
height: 8px;
|
||||
z-index: 100; /* above the UL */
|
||||
}
|
||||
#header h1 a {
|
||||
display: block;
|
||||
width: 204px;
|
||||
height: 55px;
|
||||
background: transparent url("../../images/header_logo.gif") no-repeat;
|
||||
text-indent: -700em;
|
||||
text-decoration: none;
|
||||
}
|
||||
#header ul {
|
||||
width: auto;
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
margin: 0;
|
||||
padding: 0 15px 0 0;
|
||||
list-style: none;
|
||||
background: url("../../images/header_br.gif") no-repeat bottom right;
|
||||
z-index: 90; /* below the H1 */
|
||||
}
|
||||
#header li {
|
||||
float: right;
|
||||
background: transparent url("../../images/header_tab.gif") 100% -600px no-repeat;
|
||||
padding: 0 6px 0 0;
|
||||
margin: 0 1px 0 0;
|
||||
border-bottom: 1px solid #515358;
|
||||
}
|
||||
#header ul a {
|
||||
float: left;
|
||||
display: block;
|
||||
padding: 4px 4px 4px 10px;
|
||||
background: transparent url("../../images/header_tab.gif") 0% -600px no-repeat;
|
||||
font-weight: bold;
|
||||
color: #fff;
|
||||
text-decoration: none;
|
||||
}
|
||||
#header ul li:hover a { background-position: 0% -400px; }
|
||||
#header ul li:hover { background-position: 100% -400px; }
|
||||
|
||||
body.sectionAbout li#menu_aboutus,
|
||||
body.sectionProducts li#menu_products,
|
||||
body.sectionSupport li#menu_support,
|
||||
body.sectionDevelopers li#menu_developers {
|
||||
background-position: 100% -200px;
|
||||
}
|
||||
|
||||
body.sectionAbout li#menu_aboutus a,
|
||||
body.sectionProducts li#menu_products a,
|
||||
body.sectionSupport li#menu_support a,
|
||||
body.sectionDevelopers li#menu_developers a {
|
||||
background-position: 0% -200px;
|
||||
color: #039;
|
||||
}
|
||||
|
||||
body.sectionAbout li#menu_aboutus,
|
||||
body.sectionProducts li#menu_products,
|
||||
body.sectionSupport li#menu_support,
|
||||
body.sectionDevelopers li#menu_developers {
|
||||
border-bottom: 1px solid #fff;
|
||||
}
|
||||
|
||||
body.sectionAbout li#menu_aboutus:hover,
|
||||
body.sectionProducts li#menu_products:hover,
|
||||
body.sectionSupport li#menu_support:hover,
|
||||
body.sectionDevelopers li#menu_developers:hover {
|
||||
background-position: 100% 0%;
|
||||
}
|
||||
|
||||
body.sectionAbout li#menu_aboutus:hover a,
|
||||
body.sectionProducts li#menu_products:hover a,
|
||||
body.sectionSupport li#menu_support:hover a,
|
||||
body.sectionDevelopers li#menu_developers:hover a {
|
||||
background-position: 0% 0%;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
/* Search Field */
|
||||
#footer li {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
#header form {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
padding: 12px 20px 0 0;
|
||||
background: url("../../images/header_tr.gif") no-repeat top right;
|
||||
margin: 0; /* need for IE Mac */
|
||||
text-align: right; /* need for IE Mac */
|
||||
white-space: nowrap; /* for Opera */
|
||||
}
|
||||
#header form label { color: #fff; font-size: 85%; }
|
||||
#header form input { font-size: 85%; }
|
||||
|
||||
#header form #submit {
|
||||
font-size: 85%;
|
||||
background: #6A7389;
|
||||
color: #fff;
|
||||
padding: 1px 4px;
|
||||
border-right: 1px solid #283043;
|
||||
border-bottom: 1px solid #283043;
|
||||
border-top: 1px solid #9097A2;
|
||||
border-left: 1px solid #9097A2;
|
||||
}
|
||||
|
||||
#header form #q {
|
||||
width: 170px;
|
||||
font-size: 85%;
|
||||
border: 1px solid #9097A2;
|
||||
background: #D9DBE1;
|
||||
padding: 2px;
|
||||
}
|
||||
#header form #q:hover, #header form #q:focus {
|
||||
background: #fff;
|
||||
}
|
||||
#footer span,#footer a {
|
||||
white-space: nowrap;
|
||||
padding: 0 1em;
|
||||
}
|
||||
|
||||
/* Sidebar */
|
||||
#footer p span,#footer p a {
|
||||
white-space: nowrap;
|
||||
padding: 0 0.3em;
|
||||
}
|
||||
|
||||
#nav:before {
|
||||
line-height: 0.1;
|
||||
font-size: 1px;
|
||||
background: transparent url("../../images/menu_tr.gif") no-repeat top right;
|
||||
margin: 0;
|
||||
height: 9px;
|
||||
display: block;
|
||||
border-bottom: 1px solid #ddd;
|
||||
content: url("../../images/key-point_tl.gif");
|
||||
}
|
||||
#nav {
|
||||
background: #E0E9E9 url("../../images/menu_back.gif") right repeat-y;
|
||||
}
|
||||
#nav:after {
|
||||
display: block;
|
||||
/* clear: both; */
|
||||
padding-top: 0;
|
||||
line-height: 0.1;
|
||||
font-size: 1px;
|
||||
content: url("../../images/key-point_bl.gif");
|
||||
margin: 0 0 0 0;
|
||||
height: 8px;
|
||||
background: transparent url("../../images/menu_br.gif") scroll no-repeat bottom right ;
|
||||
border-top: 1px solid #fff;
|
||||
}
|
||||
|
||||
#nav, #nav ul {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
#nav {
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
#nav li {
|
||||
fdisplay: inline; /* need for IE spacing issue */
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#nav li span { /* used for un-linked menu items */
|
||||
display: block;
|
||||
padding: 6px 10px;
|
||||
font-weight: bold;
|
||||
color: #666;
|
||||
}
|
||||
#footer span a {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#nav li span#configParent, #nav li span #configuration {
|
||||
display: inline;
|
||||
font-weight: normal;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#nav li a {
|
||||
display: block;
|
||||
padding: 6px 10px;
|
||||
text-decoration: none;
|
||||
background: #EDF2F2;
|
||||
border-bottom: 1px solid #ddd;
|
||||
border-top: 1px solid #fff;
|
||||
border-right: 1px solid #ddd;
|
||||
}
|
||||
#footer p,#footer p a {
|
||||
color: #666;
|
||||
}
|
||||
|
||||
#nav li a:hover {
|
||||
background: #E0E9E9;
|
||||
}
|
||||
|
||||
#nav li li a {
|
||||
padding: 4px 8px 4px 20px;
|
||||
}
|
||||
|
||||
#oN {
|
||||
background-color: #E0E9E9;
|
||||
}
|
||||
#oN:hover {
|
||||
background-color: #C6DCDC;
|
||||
}
|
||||
#footer p a:hover {
|
||||
color: #000;
|
||||
}
|
||||
|
||||
/* Footer */
|
||||
/* Site Header */
|
||||
|
||||
#footer {
|
||||
border-top: 1px solid #666;
|
||||
margin: 2em 0;
|
||||
padding: 1em 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#footer ul {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
#footer li {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
#footer span,#footer a {
|
||||
white-space: nowrap;
|
||||
padding: 0 1em;
|
||||
}
|
||||
|
||||
#footer p span,#footer p a {
|
||||
white-space: nowrap;
|
||||
padding: 0 0.3em;
|
||||
}
|
||||
|
||||
#footer span a {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#footer p,#footer p a {
|
||||
color: #666;
|
||||
}
|
||||
|
||||
#footer p a:hover {
|
||||
color: #000;
|
||||
}
|
||||
#header {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
#header h1 {
|
||||
height: 46px;
|
||||
margin: 0;
|
||||
font-size: 2px;
|
||||
position: relative;
|
||||
top: 7px;
|
||||
}
|
||||
#header h1 a,#header h1 a:hover {
|
||||
display: block;
|
||||
width: 250px;
|
||||
height: 46px;
|
||||
background: url("../../images/title.gif") no-repeat;
|
||||
text-indent: -700em;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
#key-title { /* fixes background issue in IE6 */
|
||||
position: relative;
|
||||
}
|
||||
|
||||
#header ul {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 6px;
|
||||
margin-left: 200px;
|
||||
font-family: tahoma, arial, sans-serif;
|
||||
}
|
||||
|
||||
#header li {
|
||||
float: left;
|
||||
list-style: none;
|
||||
padding-left: 1em;
|
||||
font-size: 85%;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#header dl {
|
||||
margin: 0 1em 0 0;
|
||||
padding: 4px 0 4px 40px;
|
||||
float: left;
|
||||
min-height: 35px;
|
||||
}
|
||||
#header #menu-firefox {
|
||||
background: url("../../images/s-firefox.png") no-repeat 0 8px;
|
||||
}
|
||||
#header #menu-thunderbird {
|
||||
background: url("../../images/s-thunderbird.png") no-repeat 0 8px;
|
||||
}
|
||||
#header #menu-mozillasuite {
|
||||
background: url("../../images/s-mozillasuite.png") no-repeat 0 8px;
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
#header dt {
|
||||
font-size: 85%;
|
||||
}
|
||||
#header dd {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#key-menu:before {
|
||||
line-height: 0.1;
|
||||
font-size: 1px;
|
||||
background: transparent url("../../images/key-menu_tr.gif") no-repeat top right;
|
||||
margin: -8px -8px 0 -8px;
|
||||
height: 8px;
|
||||
display: block;
|
||||
border: none;
|
||||
content: url("../../images/key-menu_tl.gif");
|
||||
}
|
||||
#key-menu {
|
||||
background: #B2C1C8 url("../../images/key-menu_back.gif") right top no-repeat;
|
||||
padding: 8px;
|
||||
}
|
||||
#key-menu:after {
|
||||
display: block;
|
||||
clear: both;
|
||||
padding-top: 8px;
|
||||
line-height: 0.1;
|
||||
font-size: 1px;
|
||||
content: url("../../images/key-menu_bl.gif");
|
||||
margin: -8px;
|
||||
height: 8px;
|
||||
background: transparent url("../../images/key-menu_br.gif") scroll no-repeat bottom right ;
|
||||
}
|
||||
|
||||
.ie-clear-menu { /* needed to clear floats in IE */
|
||||
clear: both;
|
||||
height: 5px;
|
||||
font-size: 2px;
|
||||
}
|
||||
|
||||
#mozilla-org a {
|
||||
float: right;
|
||||
display: block;
|
||||
text-indent: -5000em;
|
||||
width: 110px;
|
||||
height: 25px;
|
||||
text-decoration: none;
|
||||
background: url(../../images/mozilla-org.gif) no-repeat;
|
||||
}
|
||||
|
||||
/* End Site Header */
|
|
@ -1,84 +0,0 @@
|
|||
/* mozilla.com print css
|
||||
by dave shea, http://www.mezzoblue.com/ */
|
||||
|
||||
/*html elements*/
|
||||
body {
|
||||
background: #fff;
|
||||
font: 12pt Verdana,Sans-serif;
|
||||
}
|
||||
|
||||
a img {
|
||||
border: 0;
|
||||
}
|
||||
form {
|
||||
margin: 0;
|
||||
display: inline;
|
||||
}
|
||||
label, input {
|
||||
font-weight: bold;
|
||||
}
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
margin: 0;
|
||||
}
|
||||
h1 {
|
||||
font-size: 120%;
|
||||
color: #955322;
|
||||
}
|
||||
h2 {
|
||||
font-size: 110%;
|
||||
color: #B26C38;
|
||||
}
|
||||
h2 a:visited {
|
||||
text-decoration: none;
|
||||
}
|
||||
h3 {
|
||||
color: #EC361D;
|
||||
font-size: 110%;
|
||||
}
|
||||
h4 {
|
||||
font-size: 110%;
|
||||
color: #666;
|
||||
}
|
||||
h5 {
|
||||
font-size: 100%;
|
||||
color: #955322;
|
||||
}
|
||||
h6 {
|
||||
color: #EC361D;
|
||||
font-size: 100%;
|
||||
}
|
||||
|
||||
p, li, dt, dd {
|
||||
font-size: 92%;
|
||||
}
|
||||
p {
|
||||
line-height: 150%;
|
||||
}
|
||||
sup {
|
||||
font-size: 70%;
|
||||
}
|
||||
a:link, a:visited {
|
||||
color: #554FA0;
|
||||
font-weight: bold;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
dt.im {
|
||||
float: left;
|
||||
}
|
||||
|
||||
#mainContent a:link:after, #mainContent a:visited:after {
|
||||
content: " (" attr(href) ") ";
|
||||
font-size: 70%;
|
||||
color: #000;
|
||||
}
|
||||
#mainContent a[href^="/"]:after {
|
||||
content: " (http://www.mozilla.org" attr(href) ") ";
|
||||
}
|
||||
|
||||
#tools, #search, #ad, #bn, #int, .skipLink, #brd {
|
||||
display: none;
|
||||
}
|
||||
#header + hr {
|
||||
display: none;
|
||||
}
|
|
@ -36,14 +36,13 @@
|
|||
#
|
||||
# ***** END LICENSE BLOCK *****
|
||||
|
||||
|
||||
-- phpMyAdmin SQL Dump
|
||||
-- version 2.6.0-rc1
|
||||
-- version 2.6.0
|
||||
-- http://www.phpmyadmin.net
|
||||
--
|
||||
-- Host: localhost
|
||||
-- Generation Time: Sep 12, 2004 at 05:07 AM
|
||||
-- Server version: 4.0.18
|
||||
-- Generation Time: Dec 07, 2004 at 02:18 AM
|
||||
-- Server version: 4.0.21
|
||||
-- PHP Version: 4.3.8
|
||||
--
|
||||
-- Database: `mozillaupdate`
|
||||
|
@ -52,51 +51,64 @@
|
|||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `t_applications`
|
||||
-- Table structure for table `applications`
|
||||
--
|
||||
|
||||
CREATE TABLE `t_applications` (
|
||||
CREATE TABLE `applications` (
|
||||
`AppID` int(11) NOT NULL auto_increment,
|
||||
`AppName` varchar(30) NOT NULL default '',
|
||||
`Version` varchar(10) NOT NULL default '',
|
||||
`Version` varchar(15) NOT NULL default '',
|
||||
`major` int(3) NOT NULL default '0',
|
||||
`minor` int(3) NOT NULL default '0',
|
||||
`release` int(3) NOT NULL default '0',
|
||||
`build` int(14) NOT NULL default '0',
|
||||
`SubVer` enum('a','b','final','','+') NOT NULL default 'final',
|
||||
`SubVer` varchar(5) NOT NULL default 'final',
|
||||
`GUID` varchar(50) NOT NULL default '',
|
||||
`int_version` varchar(5) default NULL,
|
||||
`public_ver` enum('YES','NO') NOT NULL default 'YES',
|
||||
`shortname` char(2) NOT NULL default '',
|
||||
PRIMARY KEY (`AppID`),
|
||||
KEY `AppName` (`AppName`)
|
||||
) TYPE=InnoDB PACK_KEYS=0 AUTO_INCREMENT=25 ;
|
||||
) TYPE=InnoDB PACK_KEYS=0;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `t_approvallog`
|
||||
-- Table structure for table `approvallog`
|
||||
--
|
||||
|
||||
CREATE TABLE `t_approvallog` (
|
||||
CREATE TABLE `approvallog` (
|
||||
`LogID` int(5) NOT NULL auto_increment,
|
||||
`ID` varchar(11) NOT NULL default '',
|
||||
`vID` varchar(11) NOT NULL default '',
|
||||
`UserID` varchar(11) NOT NULL default '',
|
||||
`action` varchar(255) NOT NULL default '',
|
||||
`date` datetime NOT NULL default '0000-00-00 00:00:00',
|
||||
`Installation` enum('','YES','NO') NOT NULL default '',
|
||||
`Uninstallation` enum('','YES','NO') NOT NULL default '',
|
||||
`NewChrome` enum('','YES','NO') NOT NULL default '',
|
||||
`AppWorks` enum('','YES','NO') NOT NULL default '',
|
||||
`VisualErrors` enum('','YES','NO') NOT NULL default '',
|
||||
`AllElementsThemed` enum('','YES','NO') NOT NULL default '',
|
||||
`CleanProfile` enum('','YES','NO') NOT NULL default '',
|
||||
`WorksAsDescribed` enum('','YES','NO') NOT NULL default '',
|
||||
`TestBuild` varchar(255) default NULL,
|
||||
`TestOS` varchar(255) default NULL,
|
||||
`comments` text NOT NULL,
|
||||
PRIMARY KEY (`LogID`),
|
||||
KEY `ID` (`ID`),
|
||||
KEY `vID` (`vID`),
|
||||
KEY `UserID` (`UserID`),
|
||||
KEY `UserID_2` (`UserID`)
|
||||
) TYPE=InnoDB AUTO_INCREMENT=430 ;
|
||||
) TYPE=InnoDB;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `t_authorxref`
|
||||
-- Table structure for table `authorxref`
|
||||
--
|
||||
|
||||
CREATE TABLE `t_authorxref` (
|
||||
CREATE TABLE `authorxref` (
|
||||
`ID` int(11) NOT NULL default '0',
|
||||
`UserID` int(11) NOT NULL default '0',
|
||||
KEY `ID` (`ID`),
|
||||
|
@ -106,24 +118,25 @@ CREATE TABLE `t_authorxref` (
|
|||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `t_categories`
|
||||
-- Table structure for table `categories`
|
||||
--
|
||||
|
||||
CREATE TABLE `t_categories` (
|
||||
CREATE TABLE `categories` (
|
||||
`CategoryID` int(11) NOT NULL auto_increment,
|
||||
`CatName` varchar(30) NOT NULL default '',
|
||||
`CatDesc` varchar(100) NOT NULL default '',
|
||||
`CatType` enum('E','T','P') NOT NULL default 'E',
|
||||
`CatApp` varchar(25) NOT NULL default '',
|
||||
PRIMARY KEY (`CategoryID`)
|
||||
) TYPE=InnoDB AUTO_INCREMENT=28 ;
|
||||
) TYPE=InnoDB;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `t_categoryxref`
|
||||
-- Table structure for table `categoryxref`
|
||||
--
|
||||
|
||||
CREATE TABLE `t_categoryxref` (
|
||||
CREATE TABLE `categoryxref` (
|
||||
`ID` int(11) NOT NULL default '0',
|
||||
`CategoryID` int(11) NOT NULL default '0',
|
||||
KEY `IDIndex` (`ID`,`CategoryID`),
|
||||
|
@ -133,10 +146,10 @@ CREATE TABLE `t_categoryxref` (
|
|||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `t_downloads`
|
||||
-- Table structure for table `downloads`
|
||||
--
|
||||
|
||||
CREATE TABLE `t_downloads` (
|
||||
CREATE TABLE `downloads` (
|
||||
`dID` int(11) NOT NULL auto_increment,
|
||||
`ID` varchar(5) NOT NULL default '',
|
||||
`date` varchar(14) default NULL,
|
||||
|
@ -145,33 +158,35 @@ CREATE TABLE `t_downloads` (
|
|||
`user_ip` varchar(15) NOT NULL default '',
|
||||
`user_agent` text NOT NULL,
|
||||
`type` enum('count','download') NOT NULL default 'download',
|
||||
PRIMARY KEY (`dID`)
|
||||
) TYPE=InnoDB PACK_KEYS=0 AUTO_INCREMENT=3 ;
|
||||
PRIMARY KEY (`dID`),
|
||||
KEY `type` (`type`),
|
||||
KEY `date` (`date`)
|
||||
) TYPE=InnoDB PACK_KEYS=0;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `t_faq`
|
||||
-- Table structure for table `faq`
|
||||
--
|
||||
|
||||
CREATE TABLE `t_faq` (
|
||||
CREATE TABLE `faq` (
|
||||
`id` int(3) NOT NULL auto_increment,
|
||||
`index` varchar(5) NOT NULL default '1',
|
||||
`alias` varchar(12) NOT NULL default '',
|
||||
`alias` varchar(20) NOT NULL default '',
|
||||
`title` varchar(150) NOT NULL default '',
|
||||
`text` text NOT NULL,
|
||||
`lastupdated` timestamp(14) NOT NULL,
|
||||
`active` enum('YES','NO') NOT NULL default 'YES',
|
||||
PRIMARY KEY (`id`)
|
||||
) TYPE=InnoDB PACK_KEYS=0 AUTO_INCREMENT=7 ;
|
||||
) TYPE=InnoDB PACK_KEYS=0;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `t_feedback`
|
||||
-- Table structure for table `feedback`
|
||||
--
|
||||
|
||||
CREATE TABLE `t_feedback` (
|
||||
CREATE TABLE `feedback` (
|
||||
`CommentID` int(11) NOT NULL auto_increment,
|
||||
`ID` int(11) NOT NULL default '0',
|
||||
`CommentName` varchar(100) default NULL,
|
||||
|
@ -180,17 +195,25 @@ CREATE TABLE `t_feedback` (
|
|||
`CommentNote` text,
|
||||
`CommentDate` datetime NOT NULL default '0000-00-00 00:00:00',
|
||||
`commentip` varchar(15) NOT NULL default '',
|
||||
`email` varchar(128) NOT NULL default '',
|
||||
`formkey` varchar(160) NOT NULL default '',
|
||||
`helpful-yes` int(6) NOT NULL default '0',
|
||||
`helpful-no` int(6) NOT NULL default '0',
|
||||
`helpful-rating` varchar(4) NOT NULL default '',
|
||||
`VersionTagline` varchar(255) NOT NULL default '',
|
||||
`flag` varchar(8) NOT NULL default '',
|
||||
PRIMARY KEY (`CommentID`),
|
||||
KEY `ID` (`ID`)
|
||||
) TYPE=InnoDB PACK_KEYS=0 AUTO_INCREMENT=15487 ;
|
||||
KEY `ID` (`ID`),
|
||||
KEY `CommentDate` (`CommentDate`)
|
||||
) TYPE=InnoDB PACK_KEYS=0;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `t_main`
|
||||
-- Table structure for table `main`
|
||||
--
|
||||
|
||||
CREATE TABLE `t_main` (
|
||||
CREATE TABLE `main` (
|
||||
`ID` int(11) NOT NULL auto_increment,
|
||||
`GUID` varchar(50) NOT NULL default '',
|
||||
`Name` varchar(100) NOT NULL default '',
|
||||
|
@ -198,48 +221,63 @@ CREATE TABLE `t_main` (
|
|||
`DateAdded` datetime NOT NULL default '0000-00-00 00:00:00',
|
||||
`DateUpdated` datetime NOT NULL default '0000-00-00 00:00:00',
|
||||
`Homepage` varchar(200) default NULL,
|
||||
`Description` varchar(255) NOT NULL default '',
|
||||
`Description` text NOT NULL,
|
||||
`Rating` varchar(4) NOT NULL default '0',
|
||||
`downloadcount` int(15) NOT NULL default '0',
|
||||
`TotalDownloads` int(18) NOT NULL default '0',
|
||||
`devcomments` text NOT NULL,
|
||||
PRIMARY KEY (`ID`),
|
||||
UNIQUE KEY `Name` (`Name`),
|
||||
KEY `Type` (`Type`)
|
||||
) TYPE=InnoDB PACK_KEYS=0 AUTO_INCREMENT=218 ;
|
||||
) TYPE=InnoDB PACK_KEYS=0;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `t_os`
|
||||
-- Table structure for table `os`
|
||||
--
|
||||
|
||||
CREATE TABLE `t_os` (
|
||||
CREATE TABLE `os` (
|
||||
`OSID` int(11) NOT NULL auto_increment,
|
||||
`OSName` varchar(20) NOT NULL default '',
|
||||
PRIMARY KEY (`OSID`),
|
||||
UNIQUE KEY `OSName` (`OSName`)
|
||||
) TYPE=InnoDB AUTO_INCREMENT=7 ;
|
||||
) TYPE=InnoDB;
|
||||
|
||||
--
|
||||
-- Dumping data for table `os`
|
||||
--
|
||||
|
||||
INSERT INTO `os` (`OSID`, `OSName`) VALUES (1, 'ALL');
|
||||
INSERT INTO `os` (`OSID`, `OSName`) VALUES (4, 'BSD');
|
||||
INSERT INTO `os` (`OSID`, `OSName`) VALUES (2, 'Linux');
|
||||
INSERT INTO `os` (`OSID`, `OSName`) VALUES (3, 'MacOSX');
|
||||
INSERT INTO `os` (`OSID`, `OSName`) VALUES (6, 'Solaris');
|
||||
INSERT INTO `os` (`OSID`, `OSName`) VALUES (5, 'Windows');
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `t_previews`
|
||||
-- Table structure for table `previews`
|
||||
--
|
||||
|
||||
CREATE TABLE `t_previews` (
|
||||
CREATE TABLE `previews` (
|
||||
`PreviewID` int(11) NOT NULL auto_increment,
|
||||
`PreviewURI` varchar(200) NOT NULL default '',
|
||||
`vID` int(11) NOT NULL default '0',
|
||||
`ID` int(5) NOT NULL default '0',
|
||||
`caption` varchar(255) NOT NULL default '',
|
||||
`preview` enum('YES','NO') NOT NULL default 'NO',
|
||||
PRIMARY KEY (`PreviewID`),
|
||||
KEY `vID` (`vID`)
|
||||
) TYPE=InnoDB PACK_KEYS=0 AUTO_INCREMENT=24 ;
|
||||
KEY `ID` (`ID`)
|
||||
) TYPE=InnoDB PACK_KEYS=0;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `t_reviews`
|
||||
-- Table structure for table `reviews`
|
||||
--
|
||||
|
||||
CREATE TABLE `t_reviews` (
|
||||
CREATE TABLE `reviews` (
|
||||
`rID` int(11) NOT NULL auto_increment,
|
||||
`ID` int(11) NOT NULL default '0',
|
||||
`AppID` int(11) NOT NULL default '0',
|
||||
|
@ -253,15 +291,15 @@ CREATE TABLE `t_reviews` (
|
|||
KEY `ID` (`ID`),
|
||||
KEY `AppID` (`AppID`),
|
||||
KEY `AuthorID` (`AuthorID`)
|
||||
) TYPE=InnoDB PACK_KEYS=0 AUTO_INCREMENT=3 ;
|
||||
) TYPE=InnoDB PACK_KEYS=0;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `t_userprofiles`
|
||||
-- Table structure for table `userprofiles`
|
||||
--
|
||||
|
||||
CREATE TABLE `t_userprofiles` (
|
||||
CREATE TABLE `userprofiles` (
|
||||
`UserID` int(11) NOT NULL auto_increment,
|
||||
`UserName` varchar(100) NOT NULL default '',
|
||||
`UserEmail` varchar(100) NOT NULL default '',
|
||||
|
@ -270,17 +308,19 @@ CREATE TABLE `t_userprofiles` (
|
|||
`UserMode` enum('A','E','U','D') NOT NULL default 'U',
|
||||
`UserTrusted` enum('TRUE','FALSE') NOT NULL default 'FALSE',
|
||||
`UserEmailHide` tinyint(1) NOT NULL default '1',
|
||||
`UserLastLogin` datetime NOT NULL default '0000-00-00 00:00:00',
|
||||
`ConfirmationCode` varchar(32) default NULL,
|
||||
PRIMARY KEY (`UserID`),
|
||||
UNIQUE KEY `UserEmail` (`UserEmail`)
|
||||
) TYPE=InnoDB PACK_KEYS=0 AUTO_INCREMENT=142 ;
|
||||
) TYPE=InnoDB PACK_KEYS=0;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `t_version`
|
||||
-- Table structure for table `version`
|
||||
--
|
||||
|
||||
CREATE TABLE `t_version` (
|
||||
CREATE TABLE `version` (
|
||||
`vID` int(11) NOT NULL auto_increment,
|
||||
`ID` int(11) NOT NULL default '0',
|
||||
`Version` varchar(30) NOT NULL default '0',
|
||||
|
@ -295,54 +335,54 @@ CREATE TABLE `t_version` (
|
|||
`DateUpdated` datetime NOT NULL default '0000-00-00 00:00:00',
|
||||
`URI` varchar(255) NOT NULL default '',
|
||||
`Notes` text,
|
||||
`approved` enum('YES','NO','?') NOT NULL default '?',
|
||||
`approved` enum('YES','NO','?','DISABLED') NOT NULL default '?',
|
||||
PRIMARY KEY (`vID`),
|
||||
KEY `ID` (`ID`),
|
||||
KEY `AppID` (`AppID`),
|
||||
KEY `OSID` (`OSID`),
|
||||
KEY `Version` (`Version`)
|
||||
) TYPE=InnoDB PACK_KEYS=0 AUTO_INCREMENT=558 ;
|
||||
) TYPE=InnoDB PACK_KEYS=0;
|
||||
|
||||
--
|
||||
-- Constraints for dumped tables
|
||||
--
|
||||
|
||||
--
|
||||
-- Constraints for table `t_authorxref`
|
||||
-- Constraints for table `authorxref`
|
||||
--
|
||||
ALTER TABLE `t_authorxref`
|
||||
ADD CONSTRAINT `0_125` FOREIGN KEY (`ID`) REFERENCES `t_main` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
|
||||
ADD CONSTRAINT `0_126` FOREIGN KEY (`UserID`) REFERENCES `t_userprofiles` (`UserID`) ON DELETE CASCADE ON UPDATE CASCADE;
|
||||
ALTER TABLE `authorxref`
|
||||
ADD CONSTRAINT `0_125` FOREIGN KEY (`ID`) REFERENCES `main` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
|
||||
ADD CONSTRAINT `0_126` FOREIGN KEY (`UserID`) REFERENCES `userprofiles` (`UserID`) ON DELETE CASCADE ON UPDATE CASCADE;
|
||||
|
||||
--
|
||||
-- Constraints for table `t_categoryxref`
|
||||
-- Constraints for table `categoryxref`
|
||||
--
|
||||
ALTER TABLE `t_categoryxref`
|
||||
ADD CONSTRAINT `0_128` FOREIGN KEY (`ID`) REFERENCES `t_main` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
|
||||
ADD CONSTRAINT `0_129` FOREIGN KEY (`CategoryID`) REFERENCES `t_categories` (`CategoryID`) ON DELETE CASCADE ON UPDATE CASCADE;
|
||||
ALTER TABLE `categoryxref`
|
||||
ADD CONSTRAINT `0_128` FOREIGN KEY (`ID`) REFERENCES `main` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
|
||||
ADD CONSTRAINT `0_129` FOREIGN KEY (`CategoryID`) REFERENCES `categories` (`CategoryID`) ON DELETE CASCADE ON UPDATE CASCADE;
|
||||
|
||||
--
|
||||
-- Constraints for table `t_feedback`
|
||||
-- Constraints for table `feedback`
|
||||
--
|
||||
ALTER TABLE `t_feedback`
|
||||
ADD CONSTRAINT `0_131` FOREIGN KEY (`ID`) REFERENCES `t_main` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE;
|
||||
ALTER TABLE `feedback`
|
||||
ADD CONSTRAINT `0_131` FOREIGN KEY (`ID`) REFERENCES `main` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE;
|
||||
|
||||
--
|
||||
-- Constraints for table `t_previews`
|
||||
-- Constraints for table `previews`
|
||||
--
|
||||
ALTER TABLE `t_previews`
|
||||
ADD CONSTRAINT `0_133` FOREIGN KEY (`vID`) REFERENCES `t_version` (`vID`) ON DELETE CASCADE ON UPDATE CASCADE;
|
||||
ALTER TABLE `previews`
|
||||
ADD CONSTRAINT `previews_ibfk_1` FOREIGN KEY (`ID`) REFERENCES `main` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE;
|
||||
|
||||
--
|
||||
-- Constraints for table `t_reviews`
|
||||
-- Constraints for table `reviews`
|
||||
--
|
||||
ALTER TABLE `t_reviews`
|
||||
ADD CONSTRAINT `0_135` FOREIGN KEY (`ID`) REFERENCES `t_main` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
|
||||
ADD CONSTRAINT `0_136` FOREIGN KEY (`AppID`) REFERENCES `t_applications` (`AppID`) ON DELETE CASCADE ON UPDATE CASCADE;
|
||||
ALTER TABLE `reviews`
|
||||
ADD CONSTRAINT `0_135` FOREIGN KEY (`ID`) REFERENCES `main` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
|
||||
ADD CONSTRAINT `0_136` FOREIGN KEY (`AppID`) REFERENCES `applications` (`AppID`) ON DELETE CASCADE ON UPDATE CASCADE;
|
||||
|
||||
--
|
||||
-- Constraints for table `t_version`
|
||||
-- Constraints for table `version`
|
||||
--
|
||||
ALTER TABLE `t_version`
|
||||
ADD CONSTRAINT `0_139` FOREIGN KEY (`ID`) REFERENCES `t_main` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
|
||||
ADD CONSTRAINT `0_140` FOREIGN KEY (`AppID`) REFERENCES `t_applications` (`AppID`) ON DELETE CASCADE ON UPDATE CASCADE;
|
||||
ALTER TABLE `version`
|
||||
ADD CONSTRAINT `0_139` FOREIGN KEY (`ID`) REFERENCES `main` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
|
||||
ADD CONSTRAINT `version_ibfk_1` FOREIGN KEY (`AppID`) REFERENCES `applications` (`AppID`) ON UPDATE CASCADE;
|
||||
|
|
|
@ -59,8 +59,8 @@ $chmod_result = chmod("$uploadedfile", 0644); //Make the file world readable. pr
|
|||
|
||||
//If this was legacy mode, we're coming back from step1b so the file wasn't just submitted and we need to just pick it up again.
|
||||
if ($_POST["legacy"]=="TRUE") {
|
||||
$filename = $_POST["filename"];
|
||||
$filesize = $_POST["filesize"];
|
||||
$filename = escape_string($_POST["filename"]);
|
||||
$filesize = escape_string($_POST["filesize"]);
|
||||
$uploadedfile="$websitepath/files/temp/$filename";
|
||||
}
|
||||
$zip = zip_open("$uploadedfile");
|
||||
|
@ -149,7 +149,7 @@ $description = $manifestdata[description];
|
|||
|
||||
|
||||
//Check GUID for validity/existance, if it exists, check the logged in author for permission
|
||||
$sql = "SELECT ID, GUID from `t_main` WHERE `GUID` = '$manifestdata[id]' LIMIT 1";
|
||||
$sql = "SELECT ID, GUID from `main` WHERE `GUID` = '".escape_string($manifestdata[id])."' LIMIT 1";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
if (mysql_num_rows($sql_result)=="1") {
|
||||
// echo"This is a updated extension... Checking author data...<br>\n";
|
||||
|
@ -157,7 +157,7 @@ $sql = "SELECT ID, GUID from `t_main` WHERE `GUID` = '$manifestdata[id]' LIMIT 1
|
|||
$row = mysql_fetch_array($sql_result);
|
||||
$item_id = $row["ID"];
|
||||
if ($_POST["legacy"]=="TRUE") {$item_id = $_POST["existingitems"]; }
|
||||
$sql = "SELECT `UserID` from `t_authorxref` WHERE `ID`='$item_id' AND `UserID` = '$_SESSION[uid]' LIMIT 1";
|
||||
$sql = "SELECT `UserID` from `authorxref` WHERE `ID`='$item_id' AND `UserID` = '$_SESSION[uid]' LIMIT 1";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
if (mysql_num_rows($sql_result)=="1" or ($_SESSION["level"]="admin" or $_SESSION["level"]="editor")) {
|
||||
// echo"This extension belongs to the author logged in<br>\n";
|
||||
|
@ -177,7 +177,7 @@ foreach ($manifestdata[targetapplication] as $key=>$val) {
|
|||
//echo"$key -- $val[minversion] $val[maxversion]<br>\n";
|
||||
|
||||
$i=0;
|
||||
$sql = "SELECT `AppName`, `major`, `minor`, `release`, `SubVer` FROM `t_applications` WHERE `GUID`='$key' ORDER BY `major` DESC, `minor` DESC, `release` DESC, `SubVer` DESC";
|
||||
$sql = "SELECT `AppName`, `major`, `minor`, `release`, `SubVer` FROM `applications` WHERE `GUID`='$key' ORDER BY `major` DESC, `minor` DESC, `release` DESC, `SubVer` DESC";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
while ($row = mysql_fetch_array($sql_result)) {
|
||||
$i++;
|
||||
|
@ -202,8 +202,6 @@ $i=0;
|
|||
}
|
||||
}
|
||||
|
||||
//echo"<pre>"; print_r($versioncheck); echo"</pre>\n";
|
||||
|
||||
if ($versioncheck[errors]=="true") {
|
||||
echo"Errors were encountered during install.rdf checking...<br>\n";
|
||||
die("Aborting...");
|
||||
|
@ -213,8 +211,7 @@ if ($versioncheck[errors]=="true") {
|
|||
|
||||
|
||||
} else {
|
||||
//echo"install.rdf is not present, use legacy mode...<br>\n";
|
||||
//header("Location: http://$_SERVER[HTTP_HOST]/developers/additem.php?function=step1b&filename=$filename");
|
||||
|
||||
echo"<h1>Add Step 1b: Legacy Item Data Entry: ($filename)</h1>\n";
|
||||
?>
|
||||
<TABLE BORDER=0 CELLPADDING=2 CELLSPACING=2 ALIGN=CENTER STYLE="border: solid 0px #000000; width: 100%">
|
||||
|
@ -226,11 +223,11 @@ echo"<h1>Add Step 1b: Legacy Item Data Entry: ($filename)</h1>\n";
|
|||
<INPUT NAME="mode" TYPE="RADIO" VALUE="update"<?php if ($_GET["mode"] == "update") {echo" CHECKED"; } ?>> Update to:
|
||||
<SELECT NAME="existingitems">
|
||||
<?php
|
||||
|
||||
$sql = "SELECT TM.ID, TM.Name FROM `t_main` TM
|
||||
LEFT JOIN t_authorxref TAX ON TM.ID = TAX.ID
|
||||
INNER JOIN t_userprofiles TU ON TAX.UserID = TU.UserID
|
||||
WHERE TM.Type = '$_POST[type]'";
|
||||
$type = escape_string($_POST["type"]);
|
||||
$sql = "SELECT TM.ID, TM.Name FROM `main` TM
|
||||
LEFT JOIN authorxref TAX ON TM.ID = TAX.ID
|
||||
INNER JOIN userprofiles TU ON TAX.UserID = TU.UserID
|
||||
WHERE TM.Type = '$type'";
|
||||
if ($_GET["admin"] =="true" AND $_SESSION[level] =="admin") {} else{ $sql .= "AND TU.UserEmail = '$_SESSION[email]'"; }
|
||||
$sql .="GROUP BY `name` ORDER BY `Name` ASC ";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
|
@ -258,11 +255,11 @@ exit;
|
|||
|
||||
|
||||
$typearray = array("E"=>"Extension","T"=>"Theme");
|
||||
$type = $_POST["type"];
|
||||
$type = escape_string($_POST["type"]);
|
||||
$typename = $typearray[$type];
|
||||
|
||||
if ($mode=="update") {
|
||||
$sql = "SELECT `Name`, `Homepage`, `Description` FROM `t_main` WHERE `ID` = '$item_id' LIMIT 1";
|
||||
$sql = "SELECT `Name`, `Homepage`, `Description` FROM `main` WHERE `ID` = '$item_id' LIMIT 1";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
$row = mysql_fetch_array($sql_result);
|
||||
if (!$name) { $name=$row["Name"]; }
|
||||
|
@ -270,7 +267,7 @@ if ($mode=="update") {
|
|||
$description = $row["Description"];
|
||||
|
||||
$authors = ""; $i="";
|
||||
$sql = "SELECT TU.UserEmail FROM `t_authorxref` TAX INNER JOIN t_userprofiles TU ON TAX.UserID = TU.UserID WHERE `ID` = '$item_id'";
|
||||
$sql = "SELECT TU.UserEmail FROM `authorxref` TAX INNER JOIN userprofiles TU ON TAX.UserID = TU.UserID WHERE `ID` = '$item_id'";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
$numresults = mysql_num_rows($sql_result);
|
||||
while ($row = mysql_fetch_array($sql_result)) {
|
||||
|
@ -281,8 +278,8 @@ if ($mode=="update") {
|
|||
}
|
||||
|
||||
//Get Currently Set Categories for this Object...
|
||||
$sql = "SELECT TCX.CategoryID, TC.CatName FROM `t_categoryxref` TCX
|
||||
INNER JOIN t_categories TC ON TCX.CategoryID = TC.CategoryID
|
||||
$sql = "SELECT TCX.CategoryID, TC.CatName FROM `categoryxref` TCX
|
||||
INNER JOIN categories TC ON TCX.CategoryID = TC.CategoryID
|
||||
WHERE TCX.ID = '$item_id'
|
||||
ORDER BY `CatName` ASC ";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
|
@ -310,7 +307,7 @@ if (!$categories) {$categories = array(); }
|
|||
|
||||
<?php
|
||||
//Get the Category Table Data for the Select Box
|
||||
$sql = "SELECT `CategoryID`, `CatName` FROM `t_categories` WHERE `CatType` = '$type' ORDER BY `CatName` ASC";
|
||||
$sql = "SELECT `CategoryID`, `CatName` FROM `categories` WHERE `CatType` = '$type' ORDER BY `CatName` ASC";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
// $sqlnum = mysql_num_rows($sql_result);
|
||||
?>
|
||||
|
@ -341,7 +338,7 @@ if ($version) {
|
|||
echo"<TR><TD><SPAN class=\"file\">Version:*</SPAN></TD><TD><INPUT NAME=\"version\" TYPE=\"TEXT\" VALUE=\"$version\"></TD></TR>\n";
|
||||
}
|
||||
echo"<TR><TD><SPAN class=\"file\">OS*</SPAN></TD><TD><SELECT NAME=\"osid\">";
|
||||
$sql = "SELECT * FROM `t_os` ORDER BY `OSName` ASC";
|
||||
$sql = "SELECT * FROM `os` ORDER BY `OSName` ASC";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
while ($row = mysql_fetch_array($sql_result)) {
|
||||
$osid = $row["OSID"];
|
||||
|
@ -352,7 +349,7 @@ if ($version) {
|
|||
echo"<TR><TD><SPAN class=\"file\">Filename:</SPAN></TD><TD>$filename ($filesize"."kb) <INPUT name=\"filename\" type=\"hidden\" value=\"$filename\"><INPUT name=\"filesize\" type=\"hidden\" value=\"$filesize\"></TD></TR>\n";
|
||||
|
||||
echo"<TR><TD COLSPAN=2><SPAN class=\"file\">Target Application(s):</SPAN></TD></TR>\n";
|
||||
$sql2 = "SELECT `AppName`,`GUID` FROM `t_applications` GROUP BY `AppName` ORDER BY `AppName` ASC";
|
||||
$sql2 = "SELECT `AppName`,`GUID` FROM `applications` GROUP BY `AppName` ORDER BY `AppName` ASC";
|
||||
$sql_result2 = mysql_query($sql2, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
while ($row2 = mysql_fetch_array($sql_result2)) {
|
||||
$appname = $row2["AppName"];
|
||||
|
@ -377,7 +374,7 @@ if (($mode=="new" or $mode=="update") and (strtolower($appname) !="mozilla" or $
|
|||
echo"<br><SPAN style=\"font-size: 8pt; font-weight: bold\">Incompatable with Legacy Extensions (Requires install.rdf)</SPAN>";
|
||||
} else {
|
||||
|
||||
$sql = "SELECT `version`,`major`,`minor`,`release`,`SubVer` FROM `t_applications` WHERE `AppName` = '$appname' ORDER BY `major` ASC, `minor` ASC, `release` ASC, `SubVer` ASC";
|
||||
$sql = "SELECT `version`,`major`,`minor`,`release`,`SubVer` FROM `applications` WHERE `AppName` = '$appname' ORDER BY `major` ASC, `minor` ASC, `release` ASC, `SubVer` ASC";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
echo"<SELECT name=\"$appname-minappver\" TITLE=\"Minimum Version* (Required)\">";
|
||||
echo"<OPTION value\"\"> - </OPTION>\n";
|
||||
|
@ -425,7 +422,7 @@ echo"</select>\n";
|
|||
//exit;
|
||||
|
||||
//Verify that there's at least one min/max app value pair...
|
||||
$sql = "SELECT `AppName`,`AppID` FROM `t_applications` GROUP BY `AppName` ORDER BY `AppName` ASC";
|
||||
$sql = "SELECT `AppName`,`AppID` FROM `applications` GROUP BY `AppName` ORDER BY `AppName` ASC";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
while ($row = mysql_fetch_array($sql_result)) {
|
||||
$appname = $row["AppName"];
|
||||
|
@ -436,12 +433,12 @@ echo"</select>\n";
|
|||
}
|
||||
|
||||
//Author List -- Autocomplete and Verify, if no valid authors, kill add.. otherwise, autocomplete/prompt
|
||||
$authors = $_POST["authors"];
|
||||
$authors = escape_string($_POST["authors"]);
|
||||
$authors = explode(", ","$authors");
|
||||
foreach ($authors as $author) {
|
||||
if (strlen($author)<2) {continue;} //Kills all values that're too short..
|
||||
$a++;
|
||||
$sql = "SELECT `UserID`,`UserEmail` FROM `t_userprofiles` WHERE `UserEmail` LIKE '$author%' ORDER BY `UserMode`, `UserName` ASC";
|
||||
$sql = "SELECT `UserID`,`UserEmail` FROM `userprofiles` WHERE `UserEmail` LIKE '$author%' ORDER BY `UserMode`, `UserName` ASC";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
$numresults = mysql_num_rows($sql_result);
|
||||
while ($row = mysql_fetch_array($sql_result)) {
|
||||
|
@ -473,22 +470,22 @@ if ($_POST["name"] AND $_POST["type"] AND $_POST["authors"] AND $updateauthors !
|
|||
echo"<DIV>\n";
|
||||
|
||||
//Phase One, Main Data
|
||||
$name = $_POST["name"];
|
||||
$homepage = $_POST["homepage"];
|
||||
$description = $_POST["description"];
|
||||
$item_id = $_POST["item_id"];
|
||||
$guid = $_POST["guid"];
|
||||
$type = $_POST["type"];
|
||||
$name = escape_string($_POST["name"]);
|
||||
$homepage = escape_string($_POST["homepage"]);
|
||||
$description = escape_string($_POST["description"]);
|
||||
$item_id = escape_string($_POST["item_id"]);
|
||||
$guid = escape_string($_POST["guid"]);
|
||||
$type = escape_string($_POST["type"]);
|
||||
|
||||
//Check to ensure tha the name isn't already taken, if it is, throw an error and halt.
|
||||
$sql = "SELECT `Name` from `t_main` WHERE `Name`='$name' and `GUID` != '$guid'";
|
||||
$sql = "SELECT `Name` from `main` WHERE `Name`='$name' and `GUID` != '$guid'";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
if (mysql_num_rows($sql_result)=="0") {
|
||||
|
||||
if ($_POST["mode"]=="update") {
|
||||
$sql = "UPDATE `t_main` SET `Name`='$name', `Homepage`='$homepage', `Description`='$description', `DateUpdated`=NOW(NULL) WHERE `ID`='$item_id' LIMIT 1";
|
||||
$sql = "UPDATE `main` SET `Name`='$name', `Homepage`='$homepage', `Description`='$description', `DateUpdated`=NOW(NULL) WHERE `ID`='$item_id' LIMIT 1";
|
||||
} else {
|
||||
$sql = "INSERT INTO `t_main` (`GUID`, `Name`, `Type`, `Homepage`,`Description`,`DateAdded`,`DateUpdated`) VALUES ('$guid', '$name', '$type', '$homepage', '$description', NOW(NULL), NOW(NULL));";
|
||||
$sql = "INSERT INTO `main` (`GUID`, `Name`, `Type`, `Homepage`,`Description`,`DateAdded`,`DateUpdated`) VALUES ('$guid', '$name', '$type', '$homepage', '$description', NOW(NULL), NOW(NULL));";
|
||||
}
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
if ($sql_result) {echo"Updating/Adding record for $name...<br>\n";
|
||||
|
@ -516,25 +513,28 @@ if ($sql_result) {echo"Updating/Adding record for $name...<br>\n";
|
|||
|
||||
//Get ID for inserted row... if we don't know it already
|
||||
if (!$_POST[item_id] and $_POST["mode"] !=="update") {
|
||||
$sql = "SELECT `ID` FROM `t_main` WHERE `GUID`='$_POST[guid]' AND `Name`='$_POST[name]' LIMIT 1";
|
||||
$name = escape_string($_POST["name"]);
|
||||
$guid = escape_string($_POST["guid"]);
|
||||
|
||||
$sql = "SELECT `ID` FROM `main` WHERE `GUID`='$guid' AND `Name`='$name' LIMIT 1";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
$row = mysql_fetch_array($sql_result);
|
||||
$id = $row["ID"];
|
||||
} else {
|
||||
$id = $_POST["item_id"];
|
||||
$id = escape_string($_POST["item_id"]);
|
||||
}
|
||||
|
||||
|
||||
//Phase 2 -- Commit Updates to AuthorXref tables.. with the ID and UserID.
|
||||
if ($updateauthors != "false") {
|
||||
//Remove Current Authors
|
||||
$sql = "DELETE FROM `t_authorxref` WHERE `ID` = '$id'";
|
||||
$sql = "DELETE FROM `authorxref` WHERE `ID` = '$id'";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
|
||||
//Add New Authors based on $authorids
|
||||
sort($authorids);
|
||||
foreach ($authorids as $authorid) {
|
||||
$sql = "INSERT INTO `t_authorxref` (`ID`, `UserID`) VALUES ('$id', '$authorid');";
|
||||
$sql = "INSERT INTO `authorxref` (`ID`, `UserID`) VALUES ('$id', '$authorid');";
|
||||
$result = mysql_query($sql) or trigger_error("<FONT COLOR=\"#FF0000\"><B>MySQL Error ".mysql_errno().": ".mysql_error()."</B></FONT>", E_USER_NOTICE);
|
||||
}
|
||||
if ($result) { echo"Authors added...<br>\n"; }
|
||||
|
@ -545,11 +545,11 @@ if ($updateauthors != "false") {
|
|||
unset($authors); //Clear from Post..
|
||||
|
||||
|
||||
// Phase 3, t_categoryxref
|
||||
// Phase 3, categoryxref
|
||||
|
||||
if (!$_POST["categories"]) {
|
||||
//No Categories defined, need to grab one to prevent errors...
|
||||
$sql = "SELECT `CategoryID` FROM `t_categories` WHERE `CatType`='$type' AND `CatName`='Miscellaneous' LIMIT 1";
|
||||
$sql = "SELECT `CategoryID` FROM `categories` WHERE `CatType`='$type' AND `CatName`='Miscellaneous' LIMIT 1";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
while ($row = mysql_fetch_array($sql_result)) {
|
||||
$_POST["categories"] = array("$row[CategoryID]");
|
||||
|
@ -558,22 +558,22 @@ if (!$_POST["categories"]) {
|
|||
}
|
||||
|
||||
//Delete Current Category Linkages...
|
||||
$sql = "DELETE FROM `t_categoryxref` WHERE `ID` = '$id'";
|
||||
$sql = "DELETE FROM `categoryxref` WHERE `ID` = '$id'";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
|
||||
//Add New Categories from $_POST["categories"]
|
||||
foreach ($_POST["categories"] as $categoryid) {
|
||||
$sql = "INSERT INTO `t_categoryxref` (`ID`, `CategoryID`) VALUES ('$id', '$categoryid');";
|
||||
$sql = "INSERT INTO `categoryxref` (`ID`, `CategoryID`) VALUES ('$id', '$categoryid');";
|
||||
$result = mysql_query($sql) or trigger_error("<FONT COLOR=\"#FF0000\"><B>MySQL Error ".mysql_errno().": ".mysql_error()."</B></FONT>", E_USER_NOTICE);
|
||||
}
|
||||
if ($result) {echo"Categories added...<br>\n"; }
|
||||
|
||||
|
||||
//Phase 4, t_version rows
|
||||
//Phase 4, version rows
|
||||
|
||||
//Construct Internal App_Version Arrays
|
||||
$i=0;
|
||||
$sql = "SELECT `AppName`, `int_version`, `major`, `minor`, `release`, `SubVer`, `shortname` FROM `t_applications` ORDER BY `AppName`, `major` DESC, `minor` DESC, `release` DESC, `SubVer` DESC";
|
||||
$sql = "SELECT `AppName`, `int_version`, `major`, `minor`, `release`, `SubVer`, `shortname` FROM `applications` ORDER BY `AppName`, `major` DESC, `minor` DESC, `release` DESC, `SubVer` DESC";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
while ($row = mysql_fetch_array($sql_result)) {
|
||||
$i++;
|
||||
|
@ -587,7 +587,7 @@ $sql = "SELECT `AppName`, `int_version`, `major`, `minor`, `release`, `SubVer`,
|
|||
$app_shortname[strtolower($appname)] = $row["shortname"];
|
||||
}
|
||||
|
||||
$sql2 = "SELECT `AppName`,`AppID` FROM `t_applications` GROUP BY `AppName` ORDER BY `AppName` ASC";
|
||||
$sql2 = "SELECT `AppName`,`AppID` FROM `applications` GROUP BY `AppName` ORDER BY `AppName` ASC";
|
||||
$sql_result2 = mysql_query($sql2, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
while ($row2 = mysql_fetch_array($sql_result2)) {
|
||||
$appname = $row2["AppName"];
|
||||
|
@ -603,33 +603,33 @@ if (!$minappver_int) {$minappver_int = $minappver;}
|
|||
if (!$maxappver_int) {$maxappver_int = $maxappver;}
|
||||
|
||||
|
||||
$version = $_POST["version"];
|
||||
$osid = $_POST["osid"];
|
||||
$filesize = $_POST["filesize"];
|
||||
$version = escape_string($_POST["version"]);
|
||||
$osid = escape_string($_POST["osid"]);
|
||||
$filesize = escape_string($_POST["filesize"]);
|
||||
$uri = ""; //we don't have all the parts to set a uri, leave blank and fix when we do.
|
||||
$notes = $_POST["notes"];
|
||||
$notes = escape_string($_POST["notes"]);
|
||||
|
||||
//If a record for this item's exact version, OS, and app already exists, find it and delete it, before inserting
|
||||
$sql3 = "SELECT `vID` from `t_version` TV INNER JOIN `t_applications` TA ON TA.AppID=TV.AppID WHERE `OSID`='$osid' AND `AppName` = '$appname' AND TV.Version='$version' ORDER BY `vID` ASC";
|
||||
$sql3 = "SELECT `vID` from `version` TV INNER JOIN `applications` TA ON TA.AppID=TV.AppID WHERE `OSID`='$osid' AND `AppName` = '$appname' AND TV.Version='$version' ORDER BY `vID` ASC";
|
||||
$sql_result3 = mysql_query($sql3, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
while ($row = mysql_fetch_array($sql_result3)) {
|
||||
$sql = "DELETE FROM `t_version` WHERE `vID`='$row[vID]' LIMIT 1";
|
||||
$sql = "DELETE FROM `version` WHERE `vID`='$row[vID]' LIMIT 1";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
if ($sql_result) { echo"<strong>Warning!</strong> A version Record already exists for this item's Application/OS/Version combination. Deleting.<br>\n"; }
|
||||
}
|
||||
|
||||
$sql = "INSERT INTO `t_version` (`ID`, `Version`, `OSID`, `AppID`, `MinAppVer`, `MinAppVer_int`, `MaxAppVer`, `MaxAppVer_int`, `Size`, `URI`, `Notes`, `DateAdded`, `DateUpdated`) VALUES ('$id', '$version', '$osid', '$appid', '$minappver', '$minappver_int', '$maxappver', '$maxappver_int', '$filesize', '$uri', '$notes', NOW(NULL), NOW(NULL));";
|
||||
$sql = "INSERT INTO `version` (`ID`, `Version`, `OSID`, `AppID`, `MinAppVer`, `MinAppVer_int`, `MaxAppVer`, `MaxAppVer_int`, `Size`, `URI`, `Notes`, `DateAdded`, `DateUpdated`) VALUES ('$id', '$version', '$osid', '$appid', '$minappver', '$minappver_int', '$maxappver', '$maxappver_int', '$filesize', '$uri', '$notes', NOW(NULL), NOW(NULL));";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
if ($sql_result) {echo"Added $name version $version for $appname<br>\n"; $apps_array[]=$app_shortname[strtolower($appname)];}
|
||||
|
||||
$sql = "SELECT `vID` from `t_version` WHERE `id` = '$id' ORDER BY `vID` DESC LIMIT 1";
|
||||
$sql = "SELECT `vID` from `version` WHERE `id` = '$id' ORDER BY `vID` DESC LIMIT 1";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
$row = mysql_fetch_array($sql_result);
|
||||
$vid_array[] = $row["vID"];
|
||||
}
|
||||
}
|
||||
|
||||
$sql = "SELECT `OSName` FROM `t_os` WHERE `OSID`='$osid' LIMIT 1";
|
||||
$sql = "SELECT `OSName` FROM `os` WHERE `OSID`='$osid' LIMIT 1";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
$row = mysql_fetch_array($sql_result);
|
||||
$osname = $row["OSName"];
|
||||
|
@ -664,13 +664,13 @@ $uri = str_replace("$repositorypath/approval/","http://$sitehostname/developers/
|
|||
//echo"$newfilename ($oldpath) ($newpath) ($uri)<br>\n";
|
||||
|
||||
foreach ($vid_array as $vid) {
|
||||
$sql = "UPDATE `t_version` SET `URI`='$uri' WHERE `vID`='$vid'";
|
||||
$sql = "UPDATE `version` SET `URI`='$uri' WHERE `vID`='$vid'";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
}
|
||||
|
||||
//Approval Queue
|
||||
//Check if the item belongs to the user, (special case for where admins are trusted, the trust only applies to their own work.)
|
||||
$sql = "SELECT `UserID` from `t_authorxref` WHERE `ID`='$id' AND `UserID` = '$_SESSION[uid]' LIMIT 1";
|
||||
$sql = "SELECT `UserID` from `authorxref` WHERE `ID`='$id' AND `UserID` = '$_SESSION[uid]' LIMIT 1";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
if (mysql_num_rows($sql_result)=="1" AND $_SESSION["trusted"]=="TRUE") {
|
||||
//User is trusted and the item they're modifying inheirits that trust.
|
||||
|
@ -691,7 +691,7 @@ $userid = $_SESSION["uid"];
|
|||
|
||||
if (!$vid_array) { $vid_array = array(); }
|
||||
foreach ($vid_array as $vid) {
|
||||
$sql = "INSERT INTO `t_approvallog` (`ID`, `vID`, `UserID`, `action`, `date`, `comments`) VALUES ('$id', '$vid', '$userid', '$action', NOW(NULL), '$comments');";
|
||||
$sql = "INSERT INTO `approvallog` (`ID`, `vID`, `UserID`, `action`, `date`, `comments`) VALUES ('$id', '$vid', '$userid', '$action', NOW(NULL), '$comments');";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
}
|
||||
|
||||
|
|
|
@ -30,18 +30,18 @@ if (!$function) {
|
|||
if ($_POST["submit"]=="Add Application" or $_POST["submit"]=="Add Version") {
|
||||
echo"<h2>Processing Add Request, please wait...</h2>\n";
|
||||
|
||||
$appname = $_POST["appname"];
|
||||
$guid = $_POST["guid"];
|
||||
$shortname = $_POST["shortname"];
|
||||
$version = $_POST["version"];
|
||||
$major = $_POST["Major"];
|
||||
$minor = $_POST["Minor"];
|
||||
$release = $_POST["Release"];
|
||||
$subver = $_POST["SubVer"];
|
||||
$public_ver = $_POST["public_ver"];
|
||||
$appname = escape_string($_POST["appname"]);
|
||||
$guid = escape_string($_POST["guid"]);
|
||||
$shortname = escape_string($_POST["shortname"]);
|
||||
$version = escape_string($_POST["version"]);
|
||||
$major = escape_string($_POST["Major"]);
|
||||
$minor = escape_string($_POST["Minor"]);
|
||||
$release = escape_string($_POST["Release"]);
|
||||
$subver = escape_string($_POST["SubVer"]);
|
||||
$public_ver = escape_string($_POST["public_ver"]);
|
||||
|
||||
if (checkFormKey()) {
|
||||
$sql = "INSERT INTO `t_applications` (`AppName`, `GUID`, `shortname`, `Version`, `major`, `minor`, `release`,`SubVer`,`public_ver`) VALUES ('$appname','$guid','$shortname','$version', '$major','$minor','$release','$subver','$public_ver')";
|
||||
$sql = "INSERT INTO `applications` (`AppName`, `GUID`, `shortname`, `Version`, `major`, `minor`, `release`,`SubVer`,`public_ver`) VALUES ('$appname','$guid','$shortname','$version', '$major','$minor','$release','$subver','$public_ver')";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("<div class=\"error\">MySQL Error ".mysql_errno().": ".mysql_error()."</div>", E_USER_NOTICE);
|
||||
if ($sql_result) {
|
||||
echo"The application $appname $version has been successfully added.";
|
||||
|
@ -52,7 +52,7 @@ if (!$function) {
|
|||
|
||||
<h1>Manage Application List</h1>
|
||||
<SPAN style="font-size:8pt"> Show Versions for: <?php $i=0;
|
||||
$sql = "SELECT `AppName` from `t_applications` GROUP BY `AppName` ORDER BY `AppName` ASC";
|
||||
$sql = "SELECT `AppName` from `applications` GROUP BY `AppName` ORDER BY `AppName` ASC";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
while ($row = mysql_fetch_array($sql_result)) {
|
||||
$appname = $row["AppName"];
|
||||
|
@ -72,7 +72,7 @@ $sql = "SELECT `AppName` from `t_applications` GROUP BY `AppName` ORDER BY `AppN
|
|||
|
||||
<?php
|
||||
$i=0;
|
||||
$sql = "SELECT * FROM `t_applications` WHERE `AppName`='$application' ORDER BY `AppName` ASC, `major` ASC, `minor` ASC, `release` ASC, `SubVer` ASC";
|
||||
$sql = "SELECT * FROM `applications` WHERE `AppName`='$application' ORDER BY `AppName` ASC, `major` ASC, `minor` ASC, `release` ASC, `SubVer` ASC";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("<div class=\"error\">MySQL Error ".mysql_errno().": ".mysql_error()."</div>", E_USER_NOTICE);
|
||||
while ($row = mysql_fetch_array($sql_result)) {
|
||||
|
||||
|
@ -91,7 +91,7 @@ $sql = "SELECT `AppName` from `t_applications` GROUP BY `AppName` ORDER BY `AppN
|
|||
<form name="addapplication" method="post" action="?function=&action=addnewapp">
|
||||
<?writeFormKey();?>
|
||||
<?php
|
||||
$sql = "SELECT `AppName`, `GUID`, `shortname` FROM `t_applications` WHERE `AppName`='$application' LIMIT 1";
|
||||
$sql = "SELECT `AppName`, `GUID`, `shortname` FROM `applications` WHERE `AppName`='$application' LIMIT 1";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
$row = mysql_fetch_array($sql_result);
|
||||
$application = $row["AppName"];
|
||||
|
@ -118,34 +118,34 @@ Public Version: Yes: <input name="public_ver" type="radio" value="YES" checked>
|
|||
<?php
|
||||
} else if ($function=="editversion") {
|
||||
|
||||
$appid = $_GET["appid"];
|
||||
$appid = escape_string($_GET["appid"]);
|
||||
//Post Functions
|
||||
if ($_POST["submit"] == "Update") {
|
||||
|
||||
$appname = $_POST["AppName"];
|
||||
$version = $_POST["version"];
|
||||
$major = $_POST["Major"];
|
||||
$minor = $_POST["Minor"];
|
||||
$release = $_POST["Release"];
|
||||
$subver = $_POST["SubVer"];
|
||||
$public_ver = $_POST["public_ver"];
|
||||
$appid=$_POST["appid"];
|
||||
$appname = escape_string($_POST["AppName"]);
|
||||
$version = escape_string($_POST["version"]);
|
||||
$major = escape_string($_POST["Major"]);
|
||||
$minor = escape_string($_POST["Minor"]);
|
||||
$release = escape_string($_POST["Release"]);
|
||||
$subver = escape_string($_POST["SubVer"]);
|
||||
$public_ver = escape_string($_POST["public_ver"]);
|
||||
$appid= escape_string($_POST["appid"]);
|
||||
|
||||
if (checkFormKey()) {
|
||||
echo"<h2>Processing update request, please wait...</h2>\n";
|
||||
|
||||
$sql = "UPDATE `t_applications` SET `AppName`='$appname', `major`='$major', `minor`='$minor', `release`='$release', `SubVer`='$subver',`Version`='$version', `public_ver`='$public_ver' WHERE `appid`='$appid'";
|
||||
$sql = "UPDATE `applications` SET `AppName`='$appname', `major`='$major', `minor`='$minor', `release`='$release', `SubVer`='$subver',`Version`='$version', `public_ver`='$public_ver' WHERE `appid`='$appid'";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("<div class=\"error\">MySQL Error ".mysql_errno().": ".mysql_error()."</div>", E_USER_NOTICE);
|
||||
if ($sql_result) {
|
||||
echo"Your update to $appname $version has been successful.<br>";
|
||||
}
|
||||
}
|
||||
} else if ($_POST["submit"] == "Delete Version") {
|
||||
$appid=$_POST["appid"];
|
||||
$appname = $_POST["AppName"];
|
||||
$version = $_POST["version"];
|
||||
$appid= escape_string($_POST["appid"]);
|
||||
$appname = escape_string($_POST["AppName"]);
|
||||
$version = escape_string($_POST["version"]);
|
||||
echo"<h2>Processing delete request, please wait...</h2>\n";
|
||||
$sql = "DELETE FROM `t_applications` WHERE `appid`='$_POST[appid]'";
|
||||
$sql = "DELETE FROM `applications` WHERE `appid`='$appid'";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("<div class=\"error\">MySQL Error ".mysql_errno().": ".mysql_error()."</div>", E_USER_NOTICE);
|
||||
if ($sql_result) {
|
||||
echo"You've successfully deleted the application '$appname $version'<br>";
|
||||
|
@ -155,9 +155,9 @@ Public Version: Yes: <input name="public_ver" type="radio" value="YES" checked>
|
|||
}
|
||||
}
|
||||
|
||||
if (!$appid) { $appid = $_POST["appid"]; }
|
||||
if (!$appid) { $appid = escape_string($_POST["appid"]); }
|
||||
// Show Edit Form
|
||||
$sql = "SELECT * FROM `t_applications` WHERE `appid` = '$appid' LIMIT 1";
|
||||
$sql = "SELECT * FROM `applications` WHERE `appid` = '$appid' LIMIT 1";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("<div class=\"error\">MySQL Error ".mysql_errno().": ".mysql_error()."</div>", E_USER_NOTICE);
|
||||
|
||||
$row = mysql_fetch_array($sql_result);
|
||||
|
@ -223,6 +223,10 @@ SubVer: <input name="SubVer" size="5" maxlength="5" title="SubVersion Value (Ex.
|
|||
}
|
||||
?>
|
||||
|
||||
|
||||
<!-- close #mBody-->
|
||||
</div>
|
||||
|
||||
<?php
|
||||
include"$page_footer";
|
||||
?>
|
||||
|
|
|
@ -36,29 +36,27 @@ echo"<h2>Processing changes to approval queue, please wait...</h2>\n";
|
|||
//echo"<pre>"; print_r($_POST); echo"</pre>\n";
|
||||
|
||||
for ($i=1; $_POST["maxvid"]>=$i; $i++) {
|
||||
$type = $_POST["type_$i"];
|
||||
$testos = $_POST["testos_$i"];
|
||||
$testbuild = $_POST["testbuild_$i"];
|
||||
$comments = $_POST["comments_$i"];
|
||||
$approval = $_POST["approval_$i"];
|
||||
$file = $_POST["file_$i"];
|
||||
$type = escape_string($_POST["type_$i"]);
|
||||
$testos = escape_string($_POST["testos_$i"]);
|
||||
$testbuild = escape_string($_POST["testbuild_$i"]);
|
||||
$comments = escape_string($_POST["comments_$i"]);
|
||||
$approval = escape_string($_POST["approval_$i"]);
|
||||
$file = escape_string($_POST["file_$i"]);
|
||||
|
||||
if ($_POST["installation_$i"]) { $installation = $_POST["installation_$i"]; } else { $installation = "NO";}
|
||||
if ($_POST["uninstallation_$i"]) { $uninstallation = $_POST["uninstallation_$i"]; } else { $uninstallation = "NO";}
|
||||
if ($_POST["appworks_$i"]) { $appworks = $_POST["appworks_$i"]; } else { $appworks = "NO";}
|
||||
if ($_POST["cleanprofile_$i"]) { $cleanprofile = $_POST["cleanprofile_$i"]; } else { $cleanprofile = "NO";}
|
||||
if ($_POST["installation_$i"]) { $installation = escape_string($_POST["installation_$i"]); } else { $installation = "NO";}
|
||||
if ($_POST["uninstallation_$i"]) { $uninstallation = escape_string($_POST["uninstallation_$i"]); } else { $uninstallation = "NO";}
|
||||
if ($_POST["appworks_$i"]) { $appworks = escape_string($_POST["appworks_$i"]); } else { $appworks = "NO";}
|
||||
if ($_POST["cleanprofile_$i"]) { $cleanprofile = escape_string($_POST["cleanprofile_$i"]); } else { $cleanprofile = "NO";}
|
||||
|
||||
if ($type=="E") {
|
||||
if ($_POST["newchrome_$i"]) { $newchrome = $_POST["newchrome_$i"]; } else { $newchrome = "NO";}
|
||||
if ($_POST["worksasdescribed_$i"]) { $worksasdescribed = $_POST["worksasdescribed_$i"]; } else { $worksasdescribed = "NO";}
|
||||
if ($_POST["newchrome_$i"]) { $newchrome = escape_string($_POST["newchrome_$i"]); } else { $newchrome = "NO";}
|
||||
if ($_POST["worksasdescribed_$i"]) { $worksasdescribed = escape_string($_POST["worksasdescribed_$i"]); } else { $worksasdescribed = "NO";}
|
||||
} else if ($type=="T") {
|
||||
if ($_POST["visualerrors_$i"]) { $visualerrors = $_POST["visualerrors_$i"]; } else { $visualerrors = "NO";}
|
||||
if ($_POST["allelementsthemed_$i"]) { $allelementsthemed = $_POST["allelementsthemed_$i"]; } else { $allelementsthemed = "NO";}
|
||||
if ($_POST["visualerrors_$i"]) { $visualerrors = escape_string($_POST["visualerrors_$i"]); } else { $visualerrors = "NO";}
|
||||
if ($_POST["allelementsthemed_$i"]) { $allelementsthemed = escape_string($_POST["allelementsthemed_$i"]); } else { $allelementsthemed = "NO";}
|
||||
}
|
||||
|
||||
if ($approval !="noaction") {
|
||||
//echo"$i - $file $testos $testbuild $comments $approval<br>\n";
|
||||
//echo"$type - $installation $uninstallation $appworks $cleanprofile $newchrome $worksasdescribed $visualerrors $allelementsthemed<br>\n";
|
||||
|
||||
if ($type=="T") {
|
||||
if ($approval=="YES") {
|
||||
|
@ -85,8 +83,8 @@ if ($type=="T") {
|
|||
}
|
||||
|
||||
//Approval for this file was successful, print the output message.
|
||||
$name = $_POST["name_$i"];
|
||||
$version = $_POST["version_$i"];
|
||||
$name = escape_string($_POST["name_$i"]);
|
||||
$version = escape_string($_POST["version_$i"]);
|
||||
if ($approval_result) {
|
||||
if ($approval=="YES") {
|
||||
echo"$name $version was granted approval<br>\n";
|
||||
|
@ -110,9 +108,9 @@ if ($approval_result) {
|
|||
<form name="approvalqueue" method="post" action="?">
|
||||
<?php
|
||||
$i=0;
|
||||
$sql ="SELECT TM.ID, `Type`, `vID`, `Name`, `Description`, TV.Version, `OSName`, `URI` FROM `t_main` TM
|
||||
INNER JOIN `t_version` TV ON TM.ID = TV.ID
|
||||
INNER JOIN `t_os` TOS ON TV.OSID=TOS.OSID
|
||||
$sql ="SELECT TM.ID, `Type`, `vID`, `Name`, `Description`, TV.Version, `OSName`, `URI` FROM `main` TM
|
||||
INNER JOIN `version` TV ON TM.ID = TV.ID
|
||||
INNER JOIN `os` TOS ON TV.OSID=TOS.OSID
|
||||
WHERE `approved` = '?' GROUP BY TV.URI ORDER BY TV.DateUpdated ASC";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
$num_results = mysql_num_rows($sql_result);
|
||||
|
@ -121,19 +119,19 @@ WHERE `approved` = '?' GROUP BY TV.URI ORDER BY TV.DateUpdated ASC";
|
|||
$type = $row["Type"];
|
||||
$uri = $row["URI"];
|
||||
$authors = ""; $j="";
|
||||
$sql2 = "SELECT `UserName` from `t_authorxref` TAX INNER JOIN `t_userprofiles` TU ON TAX.UserID = TU.UserID WHERE TAX.ID='$row[ID]' ORDER BY `UserName` ASC";
|
||||
$sql2 = "SELECT `UserName` from `authorxref` TAX INNER JOIN `userprofiles` TU ON TAX.UserID = TU.UserID WHERE TAX.ID='$row[ID]' ORDER BY `UserName` ASC";
|
||||
$sql_result2 = mysql_query($sql2, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
while ($row2 = mysql_fetch_array($sql_result2)) { $j++;
|
||||
$authors .="$row2[UserName]"; if (mysql_num_rows($sql_result2) > $j) { $authors .=", "; }
|
||||
}
|
||||
$categories = ""; $j="";
|
||||
$sql2 = "SELECT `CatName` from `t_categoryxref` TCX INNER JOIN `t_categories` TC ON TCX.CategoryID = TC.CategoryID WHERE TCX.ID='$row[ID]' ORDER BY `CatName` ASC";
|
||||
$sql2 = "SELECT `CatName` from `categoryxref` TCX INNER JOIN `categories` TC ON TCX.CategoryID = TC.CategoryID WHERE TCX.ID='$row[ID]' ORDER BY `CatName` ASC";
|
||||
$sql_result2 = mysql_query($sql2, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
while ($row2 = mysql_fetch_array($sql_result2)) { $j++;
|
||||
$categories .="$row2[CatName]"; if (mysql_num_rows($sql_result2) > $j) { $categories .=", "; }
|
||||
}
|
||||
|
||||
$sql2 = "SELECT `UserName`,`UserEmail`,`date` FROM `t_approvallog` TA INNER JOIN `t_userprofiles` TU ON TA.UserID = TU.UserID WHERE `ID`='$row[ID]' AND `vID`='$row[vID]' and `action`='Approval?' ORDER BY `date` DESC LIMIT 1";
|
||||
$sql2 = "SELECT `UserName`,`UserEmail`,`date` FROM `approvallog` TA INNER JOIN `userprofiles` TU ON TA.UserID = TU.UserID WHERE `ID`='$row[ID]' AND `vID`='$row[vID]' and `action`='Approval?' ORDER BY `date` DESC LIMIT 1";
|
||||
$sql_result2 = mysql_query($sql2, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
$row2 = mysql_fetch_array($sql_result2);
|
||||
if ($row2[date]) {$date = $row2[date]; } else { $date = $row[DateUpdated]; }
|
||||
|
@ -155,7 +153,7 @@ WHERE `approved` = '?' GROUP BY TV.URI ORDER BY TV.DateUpdated ASC";
|
|||
}
|
||||
echo"</TR>\n<TR>";
|
||||
echo"<TD style=\"font-size: 8pt;\"><strong>Works with: </strong>";
|
||||
$sql3 = "SELECT `shortname`, `MinAppVer`, `MaxAppVer` FROM `t_version` TV INNER JOIN `t_applications` TA ON TV.AppID = TA.AppID WHERE `URI`='$row[URI]' ORDER BY `AppName` ASC";
|
||||
$sql3 = "SELECT `shortname`, `MinAppVer`, `MaxAppVer` FROM `version` TV INNER JOIN `applications` TA ON TV.AppID = TA.AppID WHERE `URI`='$row[URI]' ORDER BY `AppName` ASC";
|
||||
$sql_result3 = mysql_query($sql3, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
while ($row3 = mysql_fetch_array($sql_result3)) {
|
||||
echo"".ucwords($row3[shortname])." $row3[MinAppVer]-$row3[MaxAppVer] \n";
|
||||
|
@ -166,16 +164,16 @@ WHERE `approved` = '?' GROUP BY TV.URI ORDER BY TV.DateUpdated ASC";
|
|||
|
||||
//Approval Form for this Extension Item
|
||||
echo"<TR><TD COLSPAN=4 style=\"font-size: 8pt\">\n";
|
||||
echo"Install? <input name=\"installation_$i\" type=\"checkbox\" value=\"YES\" TITLE=\"Installs OK?\">\n";
|
||||
echo"Uninstall? <input name=\"uninstallation_$i\" type=\"checkbox\" value=\"YES\" TITLE=\"Uninstalls OK?\">\n";
|
||||
echo"App Works? <input name=\"appworks_$i\" type=\"checkbox\" value=\"YES\" TITLE=\"App Works OK? (Loading pages/messages, Tabs, Back/Forward)\">\n";
|
||||
echo"Clean Profile? <input name=\"cleanprofile_$i\" type=\"checkbox\" value=\"YES\" TITLE=\"Using a Clean Profile? (I.E. No Major Extensions Installed, like TBE)\">\n";
|
||||
echo"<input name=\"installation_$i\" type=\"checkbox\" value=\"YES\" TITLE=\"Installs OK?\">Install?\n";
|
||||
echo"<input name=\"uninstallation_$i\" type=\"checkbox\" value=\"YES\" TITLE=\"Uninstalls OK?\">Uninstall?\n";
|
||||
echo"<input name=\"appworks_$i\" type=\"checkbox\" value=\"YES\" TITLE=\"App Works OK? (Loading pages/messages, Tabs, Back/Forward)\">App Works? \n";
|
||||
echo"<input name=\"cleanprofile_$i\" type=\"checkbox\" value=\"YES\" TITLE=\"Using a Clean Profile? (I.E. No Major Extensions Installed, like TBE)\">Clean Profile?\n";
|
||||
if ($type=="E") {
|
||||
echo"New Chrome? <input name=\"newchrome_$i\" type=\"checkbox\" value=\"YES\" TITLE=\"Extension Added Chrome to the UI?\">\n";
|
||||
echo"Works? <input name=\"worksasdescribed_$i\" type=\"checkbox\" value=\"YES\" TITLE=\"Item Works as AuthorDescribes\">\n";
|
||||
echo"<input name=\"newchrome_$i\" type=\"checkbox\" value=\"YES\" TITLE=\"Extension Added Chrome to the UI?\">New Chrome?\n";
|
||||
echo"<input name=\"worksasdescribed_$i\" type=\"checkbox\" value=\"YES\" TITLE=\"Item Works as AuthorDescribes\">Works?\n";
|
||||
} else if ($type=="T") {
|
||||
echo"Visual Errors? <input name=\"visualerrors_$i\" type=\"checkbox\" value=\"YES\" TITLE=\"No Visual Errors / Rendering Problems\">\n";
|
||||
echo"Theme Complete? <input name=\"allelementsthemed_$i\" type=\"checkbox\" value=\"YES\" TITLE=\"All Components Themed? (Including No Missing Icons?)\">\n";
|
||||
echo"<input name=\"visualerrors_$i\" type=\"checkbox\" value=\"YES\" TITLE=\"No Visual Errors / Rendering Problems\">Visual Errors?\n";
|
||||
echo"<input name=\"allelementsthemed_$i\" type=\"checkbox\" value=\"YES\" TITLE=\"All Components Themed? (Including No Missing Icons?)\">Theme Complete?\n";
|
||||
}
|
||||
echo"</TD></TR>\n";
|
||||
echo"<TR><TD COLSPAN=4 style=\"font-size: 8pt\">\n";
|
||||
|
@ -234,7 +232,7 @@ TD { font-size: 8pt }
|
|||
<td style="font-size: 7pt">Comments:</td>
|
||||
</tr>
|
||||
<?php
|
||||
$sql ="SELECT * FROM `t_approvallog` ORDER BY `date` DESC";
|
||||
$sql ="SELECT * FROM `approvallog` ORDER BY `date` DESC";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
$num_results = mysql_num_rows($sql_result);
|
||||
while ($row = mysql_fetch_array($sql_result)) {
|
||||
|
@ -285,6 +283,10 @@ $sql ="SELECT * FROM `t_approvallog` ORDER BY `date` DESC";
|
|||
} else {}
|
||||
?>
|
||||
|
||||
|
||||
<!-- close #mBody-->
|
||||
</div>
|
||||
|
||||
<?php
|
||||
include"$page_footer";
|
||||
?>
|
||||
|
|
|
@ -28,19 +28,19 @@ if (!$function) {
|
|||
<?php
|
||||
if ($_POST["submit"]=="Create Category") {
|
||||
if ($_POST[cattype]=="other") $_POST["cattype"]=$_POST["othertype"];
|
||||
$catname = $_POST["catname"];
|
||||
$catdesc = $_POST["catdesc"];
|
||||
$cattype = $_POST["cattype"];
|
||||
$catapp = $_POST["catapp"];
|
||||
$catname = escape_string($_POST["catname"]);
|
||||
$catdesc = escape_string($_POST["catdesc"]);
|
||||
$cattype = escape_string($_POST["cattype"]);
|
||||
$catapp = escape_string($_POST["catapp"]);
|
||||
if (checkFormKey()) {
|
||||
$sql = "INSERT INTO `t_categories` (`CatName`, `CatDesc`, `CatType`, `CatApp`) VALUES ('$catname', '$catdesc', '$cattype', '$catapp');";
|
||||
$sql = "INSERT INTO `categories` (`CatName`, `CatDesc`, `CatType`, `CatApp`) VALUES ('$catname', '$catdesc', '$cattype', '$catapp');";
|
||||
$result = mysql_query($sql) or trigger_error("<div class=\"error\">MySQL Error ".mysql_errno().": ".mysql_error()."</div>", E_USER_NOTICE);
|
||||
}
|
||||
}
|
||||
?>
|
||||
<h1>Manage Category List</h1>
|
||||
<SPAN style="font-size:8pt"> Show Categories for Application: <?php $i=0;
|
||||
$sql = "SELECT `AppName` from `t_applications` GROUP BY `AppName` ORDER BY `AppName` ASC";
|
||||
$sql = "SELECT `AppName` from `applications` GROUP BY `AppName` ORDER BY `AppName` ASC";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
$num_results = mysql_num_rows($sql_result);
|
||||
while ($row = mysql_fetch_array($sql_result)) {
|
||||
|
@ -54,7 +54,7 @@ $sql = "SELECT `AppName` from `t_applications` GROUP BY `AppName` ORDER BY `AppN
|
|||
<TABLE BORDER=0 CELLPADDING=1 CELLSPACING=1 ALIGN=CENTER STYLE="border: 0px; width: 100%">
|
||||
<?php
|
||||
$typenames = array("E"=>"Extensions", "T"=>"Themes","P"=>"Plugins");
|
||||
$sql1 = "SELECT `CatType`, `CatApp` FROM `t_categories` WHERE `CatApp`='$application' GROUP BY `CatType` ORDER BY `CatType`";
|
||||
$sql1 = "SELECT `CatType`, `CatApp` FROM `categories` WHERE `CatApp`='$application' GROUP BY `CatType` ORDER BY `CatType`";
|
||||
$sql_result1 = mysql_query($sql1, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
while ($row = mysql_fetch_array($sql_result1)) {
|
||||
$type = ucwords($row["CatType"]);
|
||||
|
@ -72,7 +72,7 @@ $typenames = array("E"=>"Extensions", "T"=>"Themes","P"=>"Plugins");
|
|||
|
||||
<?php
|
||||
$i=0;
|
||||
$sql = "SELECT * FROM `t_categories` WHERE `CatType` LIKE '$type' AND `CatApp`='$application' ORDER BY `CatType`,`CatName`";
|
||||
$sql = "SELECT * FROM `categories` WHERE `CatType` LIKE '$type' AND `CatApp`='$application' ORDER BY `CatType`,`CatName`";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
while ($row = mysql_fetch_array($sql_result)) {
|
||||
$categoryid = $row["CategoryID"];
|
||||
|
@ -101,7 +101,7 @@ Description: <input name="catdesc" type="text" value="" size="50" maxlength="100
|
|||
|
||||
<SPAN style="margin-left: 20px">Type: <select name="cattype">";
|
||||
<?php
|
||||
$sql = "SELECT `CatType` FROM `t_categories` GROUP BY `CatType` ORDER BY `CatType`";
|
||||
$sql = "SELECT `CatType` FROM `categories` GROUP BY `CatType` ORDER BY `CatType`";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
while ($row = mysql_fetch_array($sql_result)) {
|
||||
$type = ucwords($row["CatType"]);
|
||||
|
@ -118,16 +118,16 @@ If other, Type: <INPUT NAME="othertype" TYPE="TEXT" SIZE=3 MAXLENGTH=1>
|
|||
|
||||
<?php
|
||||
} else if ($function=="editcategory") {
|
||||
$categoryid = $_GET["categoryid"];
|
||||
$categoryid = escape_string($_GET["categoryid"]);
|
||||
//Post Functions
|
||||
if ($_POST["submit"] == "Update") {
|
||||
echo"<h2>Processing Update, please wait...</h2>\n";
|
||||
$categoryid = $_POST["categoryid"];
|
||||
$catname = $_POST["catname"];
|
||||
$catdesc = $_POST["catdesc"];
|
||||
$cattype = $_POST["cattype"];
|
||||
$categoryid = escape_string($_POST["categoryid"]);
|
||||
$catname = escape_string($_POST["catname"]);
|
||||
$catdesc = escape_string($_POST["catdesc"]);
|
||||
$cattype = escape_string($_POST["cattype"]);
|
||||
if (checkFormKey()) {
|
||||
$sql = "UPDATE `t_categories` SET `CatName`='$catname', `CatDesc`='$catdesc', `CatType`='$cattype' WHERE `CategoryID`='$categoryid'";
|
||||
$sql = "UPDATE `categories` SET `CatName`='$catname', `CatDesc`='$catdesc', `CatType`='$cattype' WHERE `CategoryID`='$categoryid'";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("<div class=\"error\">MySQL Error ".mysql_errno().": ".mysql_error()."</div>", E_USER_NOTICE);
|
||||
|
||||
echo"Your update to $catname, has been submitted successfully...<br>";
|
||||
|
@ -135,17 +135,17 @@ if ($_POST["submit"] == "Update") {
|
|||
|
||||
} else if ($_POST["submit"] == "Delete Category") {
|
||||
echo"<h2>Processing Delete Request, please wait...</h2>\n";
|
||||
$categoryid = $_POST["categoryid"];
|
||||
$categoryid = escape_string($_POST["categoryid"]);
|
||||
if (checkFormKey()) {
|
||||
$sql = "DELETE FROM `t_categories` WHERE `CategoryID`='$categoryid'";
|
||||
$sql = "DELETE FROM `categories` WHERE `CategoryID`='$categoryid'";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("<div class=\"error\">MySQL Error ".mysql_errno().": ".mysql_error()."</div>", E_USER_NOTICE);
|
||||
}
|
||||
echo"You've successfully deleted the category '$catname'...<br>";
|
||||
}
|
||||
|
||||
if (!$categoryid) { $categoryid = $_POST["categoryid"]; }
|
||||
if (!$categoryid) { $categoryid = escape_string($_POST["categoryid"]); }
|
||||
// Show Edit Form
|
||||
$sql = "SELECT * FROM `t_categories` WHERE `CategoryID` = '$categoryid' LIMIT 1";
|
||||
$sql = "SELECT * FROM `categories` WHERE `CategoryID` = '$categoryid' LIMIT 1";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("<div class=\"error\">MySQL Error ".mysql_errno().": ".mysql_error()."</div>", E_USER_NOTICE);
|
||||
$row = mysql_fetch_array($sql_result);
|
||||
$categoryid = $row["CategoryID"];
|
||||
|
@ -176,6 +176,10 @@ if (!$categoryid) { $categoryid = $_POST["categoryid"]; }
|
|||
} else {}
|
||||
?>
|
||||
|
||||
|
||||
<!-- close #mBody-->
|
||||
</div>
|
||||
|
||||
<?php
|
||||
include"$page_footer";
|
||||
?>
|
||||
|
|
|
@ -47,13 +47,13 @@ if ($_POST["submit"]=="Flag Selected" or $_POST["submit"]=="Delete Selected") {
|
|||
|
||||
if (checkFormKey()) {
|
||||
if ($_POST["submit"]=="Delete Selected") {
|
||||
$sql = "DELETE FROM `t_feedback` WHERE `CommentID`='$selected'";
|
||||
$sql = "DELETE FROM `feedback` WHERE `CommentID`='$selected'";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("<FONT COLOR=\"#FF0000\"><B>MySQL Error ".mysql_errno().": ".mysql_error()."</B></FONT>", E_USER_NOTICE);
|
||||
if ($sql_result) {
|
||||
echo"Comment $selected deleted from database.<br>\n";
|
||||
}
|
||||
} else if ($_POST["submit"]=="Flag Selected") {
|
||||
$sql = "UPDATE `t_feedback` SET `flag`= 'YES' WHERE `CommentID`='$selected'";
|
||||
$sql = "UPDATE `feedback` SET `flag`= 'YES' WHERE `CommentID`='$selected'";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("<FONT COLOR=\"#FF0000\"><B>MySQL Error ".mysql_errno().": ".mysql_error()."</B></FONT>", E_USER_NOTICE);
|
||||
if ($sql_result) {
|
||||
echo"Comment $selected flagged for editor review.<br>\n";
|
||||
|
@ -69,18 +69,18 @@ if ($_POST["submit"]=="Flag Selected" or $_POST["submit"]=="Delete Selected") {
|
|||
}
|
||||
?>
|
||||
<?php
|
||||
if ($_GET["numpg"]) {$items_per_page=$_GET["numpg"]; } else {$items_per_page="50";} //Default Num per Page is 50
|
||||
if (!$_GET["pageid"]) {$pageid="1"; } else { $pageid = $_GET["pageid"]; } //Default PageID is 1
|
||||
if ($_GET["numpg"]) {$items_per_page=escape_string($_GET["numpg"]); } else {$items_per_page="50";} //Default Num per Page is 50
|
||||
if (!$_GET["pageid"]) {$pageid="1"; } else { $pageid = escape_string($_GET["pageid"]); } //Default PageID is 1
|
||||
$startpoint = ($pageid-1)*$items_per_page;
|
||||
|
||||
$id = escape_string($_GET["id"]);
|
||||
|
||||
$sql = "SELECT `Name` FROM `t_main` WHERE `ID`='$id' LIMIT 1";
|
||||
$sql = "SELECT `Name` FROM `main` WHERE `ID`='$id' LIMIT 1";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
$row = mysql_fetch_array($sql_result);
|
||||
$name = $row["Name"];
|
||||
|
||||
$sql = "SELECT CommentID FROM `t_feedback` WHERE ID = '$id'";
|
||||
$sql = "SELECT CommentID FROM `feedback` WHERE ID = '$id'";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
$num_pages = ceil(mysql_num_rows($sql_result)/$items_per_page);
|
||||
?>
|
||||
|
@ -120,7 +120,7 @@ echo"<BR>\n";
|
|||
<?writeFormKey();?>
|
||||
<?php
|
||||
|
||||
$sql = "SELECT * FROM `t_feedback` WHERE `ID`='$id' ORDER BY `CommentDate`DESC LIMIT $startpoint,$items_per_page";
|
||||
$sql = "SELECT * FROM `feedback` WHERE `ID`='$id' ORDER BY `CommentDate`DESC LIMIT $startpoint,$items_per_page";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
while ($row = mysql_fetch_array($sql_result)) {
|
||||
$commentid = $row["CommentID"];
|
||||
|
@ -250,7 +250,7 @@ echo"<h2>Submitting Comment, please wait...</h2>\n";
|
|||
$title = escape_string($_POST["title"]);
|
||||
$comments = escape_string($_POST["notes"]);
|
||||
|
||||
$sql = "INSERT INTO `t_feedback` (`ID`, `CommentName`, `CommentVote`, `CommentTitle`, `CommentNote`, `CommentDate`, `commentip`) VALUES ('$id', '$name', NULL, '$title', '$comments', NOW(NULL), '$_SERVER[REMOTE_ADDR]');";
|
||||
$sql = "INSERT INTO `feedback` (`ID`, `CommentName`, `CommentVote`, `CommentTitle`, `CommentNote`, `CommentDate`, `commentip`) VALUES ('$id', '$name', NULL, '$title', '$comments', NOW(NULL), '$_SERVER[REMOTE_ADDR]');";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
if ($sql_result) {
|
||||
echo"Your comment has been added successfully...<br>\n";
|
||||
|
@ -293,14 +293,14 @@ echo"<h2>Processing Changes to the Flagged Comments List, please wait...</h2>\n"
|
|||
if ($action=="skip") {continue;}
|
||||
|
||||
if ($action=="delete") {
|
||||
$sql = "DELETE FROM `t_feedback` WHERE `CommentID`='$commentid'";
|
||||
$sql = "DELETE FROM `feedback` WHERE `CommentID`='$commentid'";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("<FONT COLOR=\"#FF0000\"><B>MySQL Error ".mysql_errno().": ".mysql_error()."</B></FONT>", E_USER_NOTICE);
|
||||
if ($sql_result) {
|
||||
echo"Comment $commentid deleted from database.<br>\n";
|
||||
}
|
||||
|
||||
} else if ($action=="clear") {
|
||||
$sql = "UPDATE `t_feedback` SET `flag`= '' WHERE `CommentID`='$commentid'";
|
||||
$sql = "UPDATE `feedback` SET `flag`= '' WHERE `CommentID`='$commentid'";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("<FONT COLOR=\"#FF0000\"><B>MySQL Error ".mysql_errno().": ".mysql_error()."</B></FONT>", E_USER_NOTICE);
|
||||
if ($sql_result) {
|
||||
echo"Flag cleared for comment $commentid.<br>\n";
|
||||
|
@ -321,7 +321,7 @@ unset($i);
|
|||
<h1>Comments Flagged for Editor Review</h1>
|
||||
<TABLE BORDER=0 CELLPADDING=1 CELLSPACING=1 ALIGN=CENTER STYLE="border: 0px; width: 100%">
|
||||
<?php
|
||||
$sql = "SELECT `CommentID`,`CommentName`,`email`,`CommentTitle`,`CommentNote`,`CommentDate`,`CommentVote`,`commentip`, TM.Name FROM `t_feedback` INNER JOIN `t_main` TM ON t_feedback.ID=TM.ID WHERE `flag`='YES' ORDER BY `CommentDate`DESC";
|
||||
$sql = "SELECT `CommentID`,`CommentName`,`email`,`CommentTitle`,`CommentNote`,`CommentDate`,`CommentVote`,`commentip`, TM.Name FROM `feedback` INNER JOIN `main` TM ON feedback.ID=TM.ID WHERE `flag`='YES' ORDER BY `CommentDate`DESC";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
$num_results = mysql_num_rows($sql_result);
|
||||
if ($num_results>"0") {
|
||||
|
@ -398,6 +398,10 @@ echo"<TR><TD COLSPAN=4 align=center>No Comments are Currently Flagged for Editor
|
|||
} else {}
|
||||
?>
|
||||
|
||||
|
||||
<!-- close #mBody-->
|
||||
</div>
|
||||
|
||||
<?php
|
||||
include"$page_footer";
|
||||
?>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
require"../core/config.php";
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html401/loose.dtd">
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>Mozilla Update :: Create An Account</TITLE>
|
||||
|
@ -15,7 +15,7 @@ if (!$function or $function=="step1") {
|
|||
<div id="mBody">
|
||||
<div id="mainContent" class="right">
|
||||
|
||||
<h3>Create an Account</h3>
|
||||
<h2>Create an Account</h2>
|
||||
Joining Mozilla Update is easy just fill out the form below and click the join button.
|
||||
|
||||
<form name="createaccount" method="post" action="createaccount.php?function=step2">
|
||||
|
@ -58,7 +58,7 @@ Joining Mozilla Update is easy just fill out the form below and click the join b
|
|||
|
||||
</div>
|
||||
<div id="side" class="right">
|
||||
<h3>Already Have an Account?</h3>
|
||||
<h2>Already Have an Account?</h2>
|
||||
<P>If you already have signed-up for an account, you don't need to sign-up again. Just use your e-mail address and password and <a href="index.php">login</a>.</P>
|
||||
<P>If you don't remember the password for your acconut, you can <a href="passwordreset.php">recover a forgotten password</a>.</P>
|
||||
</div>
|
||||
|
@ -67,14 +67,14 @@ Joining Mozilla Update is easy just fill out the form below and click the join b
|
|||
} else if ($function=="step2") {
|
||||
echo"<h1>Processing New Account Request, Please Wait...</h1>\n";
|
||||
//Gather and Filter Data from the Submission Form
|
||||
if ($_POST["email"]==$_POST["emailconfirm"]) {$email = $_POST["email"];} else { $errors="true"; $emailvalid="no";}
|
||||
if ($_POST["password"]==$_POST["passwordconfirm"]) {$password = $_POST["password"];} else { $errors="true"; $passwordvalid="no"; }
|
||||
if ($_POST["name"]) { $name = $_POST["name"]; } else { $errors="true"; $namevalid="no"; }
|
||||
$website = $_POST["website"];
|
||||
if ($_POST["email"]==$_POST["emailconfirm"]) {$email = escape_string($_POST["email"]);} else { $errors="true"; $emailvalid="no";}
|
||||
if ($_POST["password"]==$_POST["passwordconfirm"]) {$password = escape_string($_POST["password"]);} else { $errors="true"; $passwordvalid="no"; }
|
||||
if ($_POST["name"]) { $name = escape_string($_POST["name"]); } else { $errors="true"; $namevalid="no"; }
|
||||
$website = escape_string($_POST["website"]);
|
||||
|
||||
//Check e-mail address and see if its already in use.
|
||||
if ($emailvalid !="no") {
|
||||
$sql = "SELECT `UserEmail` from `t_userprofiles` WHERE `UserEmail`='$email' LIMIT 1";
|
||||
$sql = "SELECT `UserEmail` from `userprofiles` WHERE `UserEmail`='$email' LIMIT 1";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
if (mysql_num_rows($sql_result)>"0") {$errors="true"; $emailvalid="no"; }
|
||||
}
|
||||
|
@ -97,7 +97,7 @@ $confirmationcode = md5(mt_rand());
|
|||
$password_plain = $password;
|
||||
$password = md5($password);
|
||||
|
||||
$sql = "INSERT INTO `t_userprofiles` (`UserName`,`UserEmail`,`UserWebsite`,`UserPass`,`UserMode`,`ConfirmationCode`) VALUES ('$name','$email','$website','$password','D','$confirmationcode');";
|
||||
$sql = "INSERT INTO `userprofiles` (`UserName`,`UserEmail`,`UserWebsite`,`UserPass`,`UserMode`,`ConfirmationCode`) VALUES ('$name','$email','$website','$password','D','$confirmationcode');";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
if ($sql_result) {
|
||||
include"mail_newaccount.php";
|
||||
|
@ -107,19 +107,19 @@ $sql = "INSERT INTO `t_userprofiles` (`UserName`,`UserEmail`,`UserWebsite`,`User
|
|||
|
||||
} else if ($function=="confirmaccount") {
|
||||
?>
|
||||
<h1>Activate Your Mozilla Update Account</h1>
|
||||
<h2>Activate Your Mozilla Update Account</h2>
|
||||
<?php
|
||||
//Get the two URI variables from the query_string..
|
||||
$email = $_GET["email"];
|
||||
$confirmationcode = $_GET["confirmationcode"];
|
||||
$email = escape_string($_GET["email"]);
|
||||
$confirmationcode = escape_string($_GET["confirmationcode"]);
|
||||
|
||||
//Check DB to see if those two values match a record.. if it does, activate the account, if not throw error.
|
||||
$sql = "SELECT `UserID` from `t_userprofiles` WHERE `UserEmail`='$email' and `ConfirmationCode`='$confirmationcode' LIMIT 1";
|
||||
$sql = "SELECT `UserID` from `userprofiles` WHERE `UserEmail`='$email' and `ConfirmationCode`='$confirmationcode' LIMIT 1";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
if (mysql_num_rows($sql_result)=="1") {
|
||||
$row = mysql_fetch_array($sql_result);
|
||||
$userid = $row["UserID"];
|
||||
$sql = "UPDATE `t_userprofiles` SET `UserMode`='U', `ConfirmationCode`=NULL WHERE `UserID`='$userid' LIMIT 1";
|
||||
$sql = "UPDATE `userprofiles` SET `UserMode`='U', `ConfirmationCode`=NULL WHERE `UserID`='$userid' LIMIT 1";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
if ($sql_result) {
|
||||
echo"Thanks! Your account has been activated successfully, you may now login and being using Mozilla Update's Developer Control Panel.";
|
||||
|
@ -138,6 +138,9 @@ $sql = "SELECT `UserID` from `t_userprofiles` WHERE `UserEmail`='$email' and `Co
|
|||
} else {}
|
||||
?>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<?php
|
||||
include"$page_footer";
|
||||
?>
|
||||
|
|
|
@ -38,7 +38,7 @@ if (!$function) {
|
|||
</tr>
|
||||
|
||||
<?php
|
||||
$sql = "SELECT * FROM `t_faq` ORDER BY `index` ASC, `title` ASC";
|
||||
$sql = "SELECT * FROM `faq` ORDER BY `index` ASC, `title` ASC";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("<div class=\"error\">MySQL Error ".mysql_errno().": ".mysql_error()."</div>", E_USER_NOTICE);
|
||||
while ($row = mysql_fetch_array($sql_result)) {
|
||||
|
||||
|
@ -75,18 +75,18 @@ if (!$function) {
|
|||
|
||||
<?php
|
||||
} else if ($function=="edit") {
|
||||
$id = $_GET["id"];
|
||||
$id = escape_string($_GET["id"]);
|
||||
//Post Functions
|
||||
if ($_POST["submit"] == "Update Entry") {
|
||||
echo"<h2>Processing your update, please wait...</h2>\n";
|
||||
$title = $_POST["title"];
|
||||
$index = $_POST["index"];
|
||||
$alias = $_POST["alias"];
|
||||
$text = $_POST["text"];
|
||||
$active = $_POST["active"];
|
||||
$id = $_POST["id"];
|
||||
$title = escape_string($_POST["title"]);
|
||||
$index = escape_string($_POST["index"]);
|
||||
$alias = escape_string($_POST["alias"]);
|
||||
$text = escape_string($_POST["text"]);
|
||||
$active = escape_string($_POST["active"]);
|
||||
$id = escape_string($_POST["id"]);
|
||||
if (checkFormKey()) {
|
||||
$sql = "UPDATE `t_faq` SET `title`='$title', `index`='$index', `alias`='$alias', `text`='$text', `active`='$active' WHERE `id`='$id'";
|
||||
$sql = "UPDATE `faq` SET `title`='$title', `index`='$index', `alias`='$alias', `text`='$text', `active`='$active' WHERE `id`='$id'";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("<div class=\"error\">MySQL Error ".mysql_errno().": ".mysql_error()."</div>", E_USER_NOTICE);
|
||||
if ($sql_result) {
|
||||
echo"Your update to '$title', has been successful.<br>";
|
||||
|
@ -95,10 +95,10 @@ if (!$function) {
|
|||
|
||||
} else if ($_POST["submit"] == "Delete Entry") {
|
||||
echo"<h2>Processing, please wait...</h2>\n";
|
||||
$id = $_POST["id"];
|
||||
$title = $_POST["title"];
|
||||
$id = escape_string($_POST["id"]);
|
||||
$title = escape_string($_POST["title"]);
|
||||
if (checkFormKey()) {
|
||||
$sql = "DELETE FROM `t_faq` WHERE `id`='$id'";
|
||||
$sql = "DELETE FROM `faq` WHERE `id`='$id'";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("<div class=\"error\">MySQL Error ".mysql_errno().": ".mysql_error()."</div>", E_USER_NOTICE);
|
||||
if ($sql_result) {
|
||||
echo"You've successfully deleted the FAQ Entry '$title'.";
|
||||
|
@ -110,7 +110,7 @@ if (!$function) {
|
|||
}
|
||||
|
||||
// Show Edit Form
|
||||
$sql = "SELECT * FROM `t_faq` WHERE `id` = '$id' LIMIT 1";
|
||||
$sql = "SELECT * FROM `faq` WHERE `id` = '$id' LIMIT 1";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("<div class=\"error\">MySQL Error ".mysql_errno().": ".mysql_error()."</div>", E_USER_NOTICE);
|
||||
$row = mysql_fetch_array($sql_result);
|
||||
?>
|
||||
|
@ -125,7 +125,7 @@ if (!$function) {
|
|||
|
||||
//List of Entry Index for User Convienience
|
||||
echo"Existing Index Reference: <SELECT name=\"titleindex\">\n";
|
||||
$sql = "SELECT `id`,`title`, `index` FROM `t_faq` ORDER BY `index` ASC";
|
||||
$sql = "SELECT `id`,`title`, `index` FROM `faq` ORDER BY `index` ASC";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
while ($row2 = mysql_fetch_array($sql_result)) {
|
||||
echo"<OPTION value=\"$row2[index]\"";
|
||||
|
@ -163,14 +163,14 @@ if ($active=="YES") {
|
|||
if ($_POST["submit"]=="Add FAQ Entry") {
|
||||
|
||||
echo"<h2>Adding Entry, please wait...</h2>\n";
|
||||
$title = $_POST["title"];
|
||||
$index = $_POST["index"];
|
||||
$alias = $_POST["alias"];
|
||||
$text = $_POST["text"];
|
||||
$active = $_POST["active"];
|
||||
$id = $_POST["id"];
|
||||
$title = escape_string($_POST["title"]);
|
||||
$index = escape_string($_POST["index"]);
|
||||
$alias = escape_string($_POST["alias"]);
|
||||
$text = escape_string($_POST["text"]);
|
||||
$active = escape_string($_POST["active"]);
|
||||
$id = escape_string($_POST["id"]);
|
||||
if (checkFormKey()) {
|
||||
$sql = "INSERT INTO `t_faq` (`title`,`index`,`alias`, `text`, `active`) VALUES ('$title','$index','$alias', '$text', '$active')";
|
||||
$sql = "INSERT INTO `faq` (`title`,`index`,`alias`, `text`, `active`) VALUES ('$title','$index','$alias', '$text', '$active')";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("<div class=\"error\">MySQL Error ".mysql_errno().": ".mysql_error()."</div>", E_USER_NOTICE);
|
||||
if ($sql_result) {
|
||||
echo"The entry '$title' has been successfully added.<br>\n";
|
||||
|
@ -183,14 +183,14 @@ if ($active=="YES") {
|
|||
<form name="addfaq" method="post" action="?function=addentry">
|
||||
<?writeFormKey();?>
|
||||
<?php
|
||||
$title = $_POST["title"];
|
||||
$title = escape_string($_POST["title"]);
|
||||
|
||||
echo"Title: <input name=\"title\" type=\"text\" size=\"40\" maxlength=\"150\" value=\"$title\"> \n";
|
||||
echo"Alias: <input name=\"alias\" type=\"text\" size=\"8\" maxlength=\"20\" value=\"\"><br>";
|
||||
|
||||
//List of Entry Index for User Convienience
|
||||
echo"<BR>Existing Index Reference: <SELECT name=\"titleindex\">\n";
|
||||
$sql = "SELECT `id`,`title`, `index` FROM `t_faq` ORDER BY `index` ASC";
|
||||
$sql = "SELECT `id`,`title`, `index` FROM `faq` ORDER BY `index` ASC";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
while ($row2 = mysql_fetch_array($sql_result)) {
|
||||
echo"<OPTION value=\"$row2[index]\"";
|
||||
|
@ -217,6 +217,10 @@ $title = $_POST["title"];
|
|||
} else {}
|
||||
?>
|
||||
|
||||
|
||||
<!-- close #mBody-->
|
||||
</div>
|
||||
|
||||
<?php
|
||||
include"$page_footer";
|
||||
?>
|
||||
|
|
|
@ -15,7 +15,7 @@ if ($action=="approve") {
|
|||
|
||||
//Firstly, log the comments and action taken..
|
||||
$userid = $_SESSION["uid"];
|
||||
$sql = "SELECT TM.ID, `Name`, `vID` from `t_main` TM INNER JOIN `t_version` TV ON TM.ID = TV.ID WHERE TV.URI = '$file' ORDER BY `vID` ASC";
|
||||
$sql = "SELECT TM.ID, `Name`, `vID` from `main` TM INNER JOIN `version` TV ON TM.ID = TV.ID WHERE TV.URI = '$file' ORDER BY `vID` ASC";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
while ($row = mysql_fetch_array($sql_result)) {
|
||||
$id = $row["ID"];
|
||||
|
@ -23,7 +23,7 @@ $sql = "SELECT TM.ID, `Name`, `vID` from `t_main` TM INNER JOIN `t_version` TV O
|
|||
$name = $row["Name"];
|
||||
|
||||
global $installation, $uninstallation, $newchrome, $appworks, $visualerrors, $allelementsthemed, $cleanprofile, $worksasdescribed, $testbuild, $testos, $comments;
|
||||
$sql2 = "INSERT INTO `t_approvallog` (`ID`, `vID`, `UserID`, `action`, `date`, `Installation`, `Uninstallation`, `NewChrome`, `AppWorks`, `VisualErrors`, `AllElementsThemed`, `CleanProfile`, `WorksAsDescribed`, `TestBuild`, `TestOS`, `comments`) VALUES ('$id', '$vid', '$userid', '$action_comment', NOW(NULL), '$installation', '$uninstallation', '$newchrome', '$appworks', '$visualerrors', '$allelementsthemed', '$cleanprofile', '$worksasdescribed', '$testbuild', '$testos', '$comments');";
|
||||
$sql2 = "INSERT INTO `approvallog` (`ID`, `vID`, `UserID`, `action`, `date`, `Installation`, `Uninstallation`, `NewChrome`, `AppWorks`, `VisualErrors`, `AllElementsThemed`, `CleanProfile`, `WorksAsDescribed`, `TestBuild`, `TestOS`, `comments`) VALUES ('$id', '$vid', '$userid', '$action_comment', NOW(NULL), '$installation', '$uninstallation', '$newchrome', '$appworks', '$visualerrors', '$allelementsthemed', '$cleanprofile', '$worksasdescribed', '$testbuild', '$testos', '$comments');";
|
||||
$sql_result2 = mysql_query($sql2, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
if ($sql_result2) {} else { $operations_failed=="true";}
|
||||
}
|
||||
|
@ -58,7 +58,7 @@ if ($action=="approve") {
|
|||
}
|
||||
|
||||
//Thirdly, update version record...
|
||||
$sql = "UPDATE `t_version` SET `URI`='$uri', `approved`='$approved', `DateUpdated`=NOW(NULL) WHERE `URI`='$file'";
|
||||
$sql = "UPDATE `version` SET `URI`='$uri', `approved`='$approved', `DateUpdated`=NOW(NULL) WHERE `URI`='$file'";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
if ($sql_result) {} else { $operations_failed=="true";}
|
||||
|
||||
|
|
|
@ -1,3 +1,14 @@
|
|||
<?php
|
||||
if ($_SESSION["level"] == "admin" or $_SESSION["level"] == "moderator") {
|
||||
$sql ="SELECT TM.ID FROM `main` TM
|
||||
INNER JOIN `version` TV ON TM.ID = TV.ID
|
||||
WHERE `approved` = '?' GROUP BY `URI` ORDER BY TV.DateUpdated ASC";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
$queuenum = mysql_num_rows($sql_result);
|
||||
}
|
||||
?>
|
||||
<div id="mBody">
|
||||
|
||||
<div id="side">
|
||||
<ul id="nav">
|
||||
<li><A HREF="main.php">Overview</A></li>
|
||||
|
@ -9,8 +20,8 @@ if ($_SESSION["level"] == "user") {
|
|||
<?php
|
||||
} else if ($_SESSION["level"] == "editor") {
|
||||
?>
|
||||
<li><A HREF="usermanager.php?function=edituser&userid=<?php echo"$_SESSION[uid]"; ?>">Your Profile</A></li>
|
||||
<li><A HREF="approval.php">Approval Queue</A></li>
|
||||
<li><A HREF="usermanager.php?function=edituser&userid=<?php echo"$_SESSION[uid]"; ?>">Your Profile</A></li>
|
||||
<li><A HREF="approval.php">Approval Queue (<?php echo"$queuenum"; ?>)</A></li>
|
||||
<li><A HREF="listmanager.php?type=T">Themes list</A></li>
|
||||
<li><A HREF="listmanager.php?type=E">Extensions list</A></li>
|
||||
<li><A HREF="usermanager.php">Users Manager</A></li>
|
||||
|
@ -18,8 +29,8 @@ if ($_SESSION["level"] == "user") {
|
|||
<?php
|
||||
} else {
|
||||
?>
|
||||
<li><A HREF="usermanager.php?function=edituser&userid=<?php echo"$_SESSION[uid]"; ?>">Your Profile</A></li>
|
||||
<li><A HREF="approval.php">Approval Queue</A></li>
|
||||
<li><A HREF="usermanager.php?function=edituser&userid=<?php echo"$_SESSION[uid]"; ?>">Your Profile</A></li>
|
||||
<li><A HREF="approval.php">Approval Queue (<?php echo"$queuenum"; ?>)</A></li>
|
||||
<li><A HREF="listmanager.php?type=T">Themes list</A></li>
|
||||
<li><A HREF="listmanager.php?type=E">Extensions list</A></li>
|
||||
<li><A HREF="usermanager.php">Users Manager</A></li>
|
||||
|
@ -30,6 +41,6 @@ if ($_SESSION["level"] == "user") {
|
|||
<?php } ?>
|
||||
<li><a href="logout.php">Logout</A></li>
|
||||
</ul>
|
||||
</DIV>
|
||||
<hr class="hide">
|
||||
<div id="mainContent">
|
||||
|
||||
</div>
|
||||
<div id="mainContent">
|
||||
|
|
|
@ -5,11 +5,11 @@ require"core/sessionconfig.php";
|
|||
//If already logged in, we don't need to show the prompt... redirect the user in.
|
||||
if ($_SESSION["logoncheck"]=="YES") {
|
||||
$return_path="developers/main.php?sid=$sid";
|
||||
header("Location: http://$_SERVER[HTTP_HOST]/$return_path");
|
||||
header("Location: http://$sitehostname/$return_path");
|
||||
exit;
|
||||
}
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html401/loose.dtd">
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html401/strict.dtd">
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<LINK REL="STYLESHEET" TYPE="text/css" HREF="/admin/core/mozupdates.css">
|
||||
|
@ -22,19 +22,19 @@ include"$page_header";
|
|||
<div id="mBody">
|
||||
<div id="mainContent" class="right">
|
||||
|
||||
<h3>About the Developer Control Panel</h3>
|
||||
<h2>About the Developer Control Panel</h2>
|
||||
|
||||
</div>
|
||||
<div id="side" class="right">
|
||||
<h3>Developers Login</h3>
|
||||
<h2>Developers Login</h2>
|
||||
<?php if ($_GET[login]=="failed") { ?>
|
||||
<strong>You were not successfully logged in. Check your e-mail address and password and try again.</strong>
|
||||
<?php } else if ($_GET[logout]=="true") { ?>
|
||||
<strong>You've been successfully logged out.</strong>
|
||||
<?php } else {} ?>
|
||||
<TABLE CELLPADDING=1 CELLSPACING=1 ALIGN="CENTER">
|
||||
<TR><TD STYLE="margin-top: 4px"></TD></TR>
|
||||
<FORM NAME="login" METHOD="POST" ACTION="login.php">
|
||||
<TABLE CELLPADDING=1 CELLSPACING=1 style="margin: auto">
|
||||
<TR><TD STYLE="margin-top: 4px"></TD></TR>
|
||||
<TR>
|
||||
<TD><strong>E-Mail:</strong></TD><TD><INPUT NAME="email" TYPE="TEXT" SIZE=30 MAXLENGTH=200></TD>
|
||||
</TR>
|
||||
|
@ -44,16 +44,16 @@ include"$page_header";
|
|||
<TR>
|
||||
<TD ALIGN=CENTER COLSPAN=2><INPUT NAME="submit" TYPE="SUBMIT" VALUE="Login"> <input type="reset" value="Reset"></TD>
|
||||
</TR>
|
||||
</FORM>
|
||||
</TABLE>
|
||||
</FORM>
|
||||
<a href="passwordreset.php">Forgot your password?</a>
|
||||
|
||||
<h3>Create an Account</h3>
|
||||
<h2>Create an Account</h2>
|
||||
<P>You need an account to access the features of the Developer Control Panel and add your extension or themes to Mozilla Update.</P>
|
||||
|
||||
<a href="createaccount.php">Join Mozilla Update!</a>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
@ -11,10 +11,10 @@ include"$page_header";
|
|||
include"inc_sidebar.php";
|
||||
?>
|
||||
<?php
|
||||
$id = $_GET["id"];
|
||||
$sql = "SELECT TM.ID, TM.GUID, TM.Name, TM.Homepage, TM.Description, TM.downloadcount, TM.TotalDownloads, TM.Rating, TU.UserEmail FROM `t_main` TM
|
||||
LEFT JOIN t_authorxref TAX ON TM.ID = TAX.ID
|
||||
INNER JOIN t_userprofiles TU ON TAX.UserID = TU.UserID
|
||||
$id = escape_string($_GET["id"]);
|
||||
$sql = "SELECT TM.ID, TM.GUID, TM.Name, TM.Homepage, TM.Description, TM.downloadcount, TM.TotalDownloads, TM.Rating, TU.UserEmail FROM `main` TM
|
||||
LEFT JOIN authorxref TAX ON TM.ID = TAX.ID
|
||||
INNER JOIN userprofiles TU ON TAX.UserID = TU.UserID
|
||||
WHERE TM.ID = '$id' LIMIT 1";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
$numresults = mysql_num_rows($sql_result);
|
||||
|
@ -32,8 +32,8 @@ $v++;
|
|||
$rating = $row["Rating"];
|
||||
|
||||
$i=""; $categories="";
|
||||
$sql = "SELECT TC.CatName FROM `t_categoryxref` TCX
|
||||
INNER JOIN t_categories TC ON TCX.CategoryID = TC.CategoryID
|
||||
$sql = "SELECT TC.CatName FROM `categoryxref` TCX
|
||||
INNER JOIN categories TC ON TCX.CategoryID = TC.CategoryID
|
||||
WHERE TCX.ID = '$id'";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
$numresults = mysql_num_rows($sql_result);
|
||||
|
@ -59,8 +59,8 @@ echo"Categories: $categories<br>\n";
|
|||
<h3>Listed Versions</h3>
|
||||
<?php
|
||||
$approved_array = array("?"=>"Pending Approval", "YES"=>"Approved", "NO"=>"Denied", "DISABLED"=>"Disabled");
|
||||
$sql = "SELECT vID, TV.Version, URI, OSName, approved FROM `t_version` TV
|
||||
INNER JOIN t_os TOS ON TOS.OSID = TV.OSID
|
||||
$sql = "SELECT vID, TV.Version, URI, OSName, approved FROM `version` TV
|
||||
INNER JOIN os TOS ON TOS.OSID = TV.OSID
|
||||
WHERE `ID`='$id' GROUP BY `URI` ORDER BY `Version`";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
while($row = mysql_fetch_array($sql_result)) {
|
||||
|
@ -76,8 +76,8 @@ echo"<h4><a href=\"listmanager.php?function=editversion&id=$id&vid=$vid\">Versio
|
|||
echo"$filename - for $os<br>\n";
|
||||
|
||||
|
||||
$sql2 = "SELECT TV.Version, AppName, MinAppVer, MaxAppVer FROM `t_version` TV
|
||||
INNER JOIN t_applications TA ON TA.AppID = TV.AppID
|
||||
$sql2 = "SELECT TV.Version, AppName, MinAppVer, MaxAppVer FROM `version` TV
|
||||
INNER JOIN applications TA ON TA.AppID = TV.AppID
|
||||
WHERE `ID`='$id' AND `URI`='$uri' ORDER BY TV.Version, TA.AppName";
|
||||
$sql_result2 = mysql_query($sql2, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
while($row2 = mysql_fetch_array($sql_result2)) {
|
||||
|
@ -106,7 +106,7 @@ $sql2 = "SELECT TV.Version, AppName, MinAppVer, MaxAppVer FROM `t_version` TV
|
|||
<BR>
|
||||
<?php
|
||||
|
||||
$sql = "SELECT CommentID FROM `t_feedback` WHERE ID = '$id'";
|
||||
$sql = "SELECT CommentID FROM `feedback` WHERE ID = '$id'";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
$num_comments = mysql_num_rows($sql_result);
|
||||
?>
|
||||
|
@ -115,16 +115,16 @@ $sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mys
|
|||
<h2>Developer Comments</h2>
|
||||
<?php
|
||||
if ($_POST["submit"]=="Post Comments") {
|
||||
$id = $_POST["id"];
|
||||
$comments = $_POST["comments"];
|
||||
$id = escape_string($_POST["id"]);
|
||||
$comments = escape_string($_POST["comments"]);
|
||||
if (checkFormKey()) {
|
||||
$sql = "UPDATE `t_main` SET `devcomments`='$comments' WHERE `id`='$id'";
|
||||
$sql = "UPDATE `main` SET `devcomments`='$comments' WHERE `id`='$id'";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
if ($sql_result) { echo"Developer Comments Updated...<br>\n"; }
|
||||
}
|
||||
}
|
||||
|
||||
$sql = "SELECT `devcomments` FROM `t_main` WHERE `id`='$id' LIMIT 1";
|
||||
$sql = "SELECT `devcomments` FROM `main` WHERE `id`='$id' LIMIT 1";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
$row = mysql_fetch_array($sql_result);
|
||||
$devcomments = $row["devcomments"];
|
||||
|
@ -139,7 +139,7 @@ $sql = "SELECT `devcomments` FROM `t_main` WHERE `id`='$id' LIMIT 1";
|
|||
|
||||
<h2><a href="previews.php?id=<?php echo"$id"; ?>">Previews</a></h2>
|
||||
<?php
|
||||
$sql = "SELECT * FROM `t_previews` TP WHERE `ID`='$id' AND `preview`='YES' ORDER BY `PreviewID` LIMIT 1";
|
||||
$sql = "SELECT * FROM `previews` TP WHERE `ID`='$id' AND `preview`='YES' ORDER BY `PreviewID` LIMIT 1";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
while ($row = mysql_fetch_array($sql_result)) {
|
||||
$i++;
|
||||
|
@ -161,6 +161,9 @@ $sql = "SELECT * FROM `t_previews` TP WHERE `ID`='$id' AND `preview`='YES' ORDER
|
|||
</div>
|
||||
|
||||
|
||||
<!-- close #mBody-->
|
||||
</div>
|
||||
|
||||
<?php
|
||||
include"$page_footer";
|
||||
?>
|
||||
|
|
|
@ -41,10 +41,11 @@ unset($i);
|
|||
</TR>
|
||||
|
||||
<?php
|
||||
$sql = "SELECT TM.ID, TM.Name, TM.Description, TM.DateUpdated FROM `t_main` TM ";
|
||||
if ($_SESSION[level]=="user") { $sql .= "LEFT JOIN t_authorxref TAX ON TM.ID = TAX.ID
|
||||
INNER JOIN t_userprofiles TU ON TAX.UserID = TU.UserID "; }
|
||||
$sql .= "WHERE TM.Type = '$_GET[type]'";
|
||||
$type = escape_string($_GET["type"]);
|
||||
$sql = "SELECT TM.ID, TM.Name, TM.Description, TM.DateUpdated FROM `main` TM ";
|
||||
if ($_SESSION[level]=="user") { $sql .= "LEFT JOIN authorxref TAX ON TM.ID = TAX.ID
|
||||
INNER JOIN userprofiles TU ON TAX.UserID = TU.UserID "; }
|
||||
$sql .= "WHERE TM.Type = '$type'";
|
||||
if ($_SESSION[level]=="user") {$sql .=" AND TU.UserEmail = '$_SESSION[email]'"; }
|
||||
$sql .=" ORDER BY `Type` , `Name` ASC ";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
|
@ -84,9 +85,9 @@ unset($sql_result);
|
|||
if ($_POST["name"] && $_POST["authors"] && $_POST["categories"] && $_POST["description"]) {
|
||||
//Everything We *must* have is present... Begin....
|
||||
|
||||
//Phase One, update t_main values...
|
||||
//Phase One, update main values...
|
||||
if (checkFormKey()) {
|
||||
$sql = "UPDATE `t_main` SET `Name`= '$_POST[name]', `Homepage`='$_POST[homepage]', `Description`='$_POST[description]', `DateUpdated`=NOW(NULL) WHERE `ID`='$_POST[id]' LIMIT 1";
|
||||
$sql = "UPDATE `main` SET `Name`= '".escape_string($_POST[name])."', `Homepage`='".escape_string($_POST[homepage])."', `Description`='".escape_string($_POST[description])."', `DateUpdated`=NOW(NULL) WHERE `ID`='".escape_string($_POST[id])."' LIMIT 1";
|
||||
//echo"$sql<br>\n"; //Debug
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("<FONT COLOR=\"#FF0000\"><B>MySQL Error ".mysql_errno().": ".mysql_error()."</B></FONT>", E_USER_NOTICE);
|
||||
if ($sql_result) {
|
||||
|
@ -96,12 +97,12 @@ if ($sql_result) {
|
|||
echo"<SPAN style=\"font-size 10pt;\">";
|
||||
|
||||
//Phase Two, Author List -- Autocomplete and Verify
|
||||
$authors = $_POST["authors"];
|
||||
$authors = escape_string($_POST["authors"]);
|
||||
$authors = explode(", ","$authors");
|
||||
foreach ($authors as $author) {
|
||||
if (strlen($author)<2) {continue;} //Kills all values that're too short..
|
||||
$a++;
|
||||
$sql = "SELECT `UserID`,`UserEmail` FROM `t_userprofiles` WHERE `UserEmail` LIKE '$author%' ORDER BY `UserMode`, `UserName` ASC";
|
||||
$sql = "SELECT `UserID`,`UserEmail` FROM `userprofiles` WHERE `UserEmail` LIKE '$author%' ORDER BY `UserMode`, `UserName` ASC";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
$numresults = mysql_num_rows($sql_result);
|
||||
while ($row = mysql_fetch_array($sql_result)) {
|
||||
|
@ -126,7 +127,8 @@ unset($a,$r);
|
|||
if ($updateauthors != "false") {
|
||||
//Remove Current Authors
|
||||
if (checkFormKey()) {
|
||||
$sql = "DELETE FROM `t_authorxref` WHERE `ID` = '$_POST[id]'";
|
||||
$id = escape_string($_POST["id"]);
|
||||
$sql = "DELETE FROM `authorxref` WHERE `ID` = '$id'";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
}
|
||||
|
||||
|
@ -134,7 +136,8 @@ if ($updateauthors != "false") {
|
|||
sort($authorids);
|
||||
foreach ($authorids as $authorid) {
|
||||
if (checkFormKey()) {
|
||||
$sql = "INSERT INTO `t_authorxref` (`ID`, `UserID`) VALUES ('$_POST[id]', '$authorid');";
|
||||
$id = escape_string($_POST["id"]);
|
||||
$sql = "INSERT INTO `authorxref` (`ID`, `UserID`) VALUES ('$id', '$authorid');";
|
||||
$result = mysql_query($sql) or trigger_error("<FONT COLOR=\"#FF0000\"><B>MySQL Error ".mysql_errno().": ".mysql_error()."</B></FONT>", E_USER_NOTICE);
|
||||
}
|
||||
}
|
||||
|
@ -149,13 +152,14 @@ unset($authors); //Clear from Post..
|
|||
//print_r($_POST["categories"]);
|
||||
//Delete Current Category Linkages...
|
||||
if (checkFormKey()) {
|
||||
$sql = "DELETE FROM `t_categoryxref` WHERE `ID` = '$_POST[id]'";
|
||||
$id = escape_string($_POST["id"]);
|
||||
$sql = "DELETE FROM `categoryxref` WHERE `ID` = '$id'";
|
||||
//echo"$sql<br>\n"; //Debug
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
|
||||
//Add New Categories from $_POST["categories"]
|
||||
foreach ($_POST["categories"] as $categoryid) {
|
||||
$sql = "INSERT INTO `t_categoryxref` (`ID`, `CategoryID`) VALUES ('$_POST[id]', '$categoryid');";
|
||||
$sql = "INSERT INTO `categoryxref` (`ID`, `CategoryID`) VALUES ('$id', '$categoryid');";
|
||||
//echo"$sql<br>\n"; //Debug
|
||||
$result = mysql_query($sql) or trigger_error("<FONT COLOR=\"#FF0000\"><B>MySQL Error ".mysql_errno().": ".mysql_error()."</B></FONT>", E_USER_NOTICE);
|
||||
}
|
||||
|
@ -178,12 +182,12 @@ echo"</SPAN></DIV>";
|
|||
|
||||
|
||||
} else if ($_POST["submit"]=="Delete") {
|
||||
$name = $_POST["name"];
|
||||
$id = $_POST["id"];
|
||||
$name = escape_string($_POST["name"]);
|
||||
$id = escape_string($_POST["id"]);
|
||||
|
||||
echo"<h1>Deleting $name, please wait...</h1>\n";
|
||||
$sql = "SELECT `Version`, `URI` FROM `t_version` WHERE `ID`='$id' GROUP BY `URI` ORDER BY `Version` ASC";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("<FONT COLOR=\"#FF0000\"><B>MySQL Error ".mysql_errno().": ".mysql_error()."</B></FONT>", E_USER_NOTICE);
|
||||
$sql = "SELECT `Version`, `URI` FROM `version` WHERE `ID`='$id' GROUP BY `URI` ORDER BY `Version` ASC";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("<FONT COLOR=\"#FF0000\"><B>MySQL Error ".mysql_errno().": ".mysql_error()."</B></FONT>", E_USER_NOTICE);
|
||||
while ($row = mysql_fetch_array($sql_result)) {
|
||||
$version = $row["Version"];
|
||||
$uri = $row["URI"];
|
||||
|
@ -221,7 +225,7 @@ echo"<h1>Deleting $name, please wait...</h1>\n";
|
|||
}
|
||||
|
||||
if (checkFormKey()) {
|
||||
$sql = "DELETE FROM `t_main` WHERE `ID`='$id'";
|
||||
$sql = "DELETE FROM `main` WHERE `ID`='$id'";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("<FONT COLOR=\"#FF0000\"><B>MySQL Error ".mysql_errno().": ".mysql_error()."</B></FONT>", E_USER_NOTICE);
|
||||
if ($sql_result) {
|
||||
echo"$name has been deleted...<br>\n";
|
||||
|
@ -241,11 +245,11 @@ echo"<h1>Deleting $name, please wait...</h1>\n";
|
|||
|
||||
|
||||
//Get Parent Item Information
|
||||
$id = $_GET["id"];
|
||||
if (!$id) {$id = $_POST["id"]; }
|
||||
$sql = "SELECT TM.ID, TM.Type, TM.GUID, TM.Name, TM.Description, TM.DateAdded, TM.DateUpdated, TM.Homepage, TU.UserEmail FROM `t_main` TM
|
||||
LEFT JOIN t_authorxref TAX ON TM.ID = TAX.ID
|
||||
INNER JOIN t_userprofiles TU ON TAX.UserID = TU.UserID
|
||||
$id = escape_string($_GET["id"]);
|
||||
if (!$id) {$id = escape_string($_POST["id"]); }
|
||||
$sql = "SELECT TM.ID, TM.Type, TM.GUID, TM.Name, TM.Description, TM.DateAdded, TM.DateUpdated, TM.Homepage, TU.UserEmail FROM `main` TM
|
||||
LEFT JOIN authorxref TAX ON TM.ID = TAX.ID
|
||||
INNER JOIN userprofiles TU ON TAX.UserID = TU.UserID
|
||||
WHERE TM.ID = '$id'
|
||||
ORDER BY `Type` , `Name` ASC ";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
|
@ -283,8 +287,8 @@ unset($v);
|
|||
|
||||
<?php
|
||||
//Get Currently Set Categories for this Object...
|
||||
$sql = "SELECT TCX.CategoryID, TC.CatName FROM `t_categoryxref` TCX
|
||||
INNER JOIN t_categories TC ON TCX.CategoryID = TC.CategoryID
|
||||
$sql = "SELECT TCX.CategoryID, TC.CatName FROM `categoryxref` TCX
|
||||
INNER JOIN categories TC ON TCX.CategoryID = TC.CategoryID
|
||||
WHERE TCX.ID = '$id'
|
||||
ORDER BY `CatName` ASC ";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
|
@ -296,7 +300,7 @@ ORDER BY `CatName` ASC ";
|
|||
unset($n);
|
||||
|
||||
//Get the Category Table Data for the Select Box
|
||||
$sql = "SELECT `CategoryID`, `CatName` FROM `t_categories` WHERE `CatType` = '$type' ORDER BY `CatName` ASC";
|
||||
$sql = "SELECT `CategoryID`, `CatName` FROM `categories` WHERE `CatType` = '$type' ORDER BY `CatName` ASC";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
// $sqlnum = mysql_num_rows($sql_result);
|
||||
?>
|
||||
|
@ -374,13 +378,12 @@ unset($sql_result);
|
|||
|
||||
echo"<SPAN style=\"font-size 10pt;\">";
|
||||
//Phase One-Part 1 -- Version (per-file record update)
|
||||
$notes = $_POST["notes"];
|
||||
$id = $_POST["id"];
|
||||
$uri = $_POST["uri"];
|
||||
$osid = $_POST["osid"];
|
||||
$notes = escape_string($_POST["notes"]);
|
||||
$id = escape_string($_POST["id"]);
|
||||
$uri = escape_string($_POST["uri"]);
|
||||
$osid = escape_string($_POST["osid"]);
|
||||
if (checkFormKey()) {
|
||||
$sql = "UPDATE `t_version` SET `OSID`='$osid', `Notes`='$notes', `DateUpdated`=NOW(NULL) WHERE `ID`='$id' AND `URI`='$uri'";
|
||||
//echo"$sql<br>\n";
|
||||
$sql = "UPDATE `version` SET `OSID`='$osid', `Notes`='$notes', `DateUpdated`=NOW(NULL) WHERE `ID`='$id' AND `URI`='$uri'";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("<FONT COLOR=\"#FF0000\"><B>MySQL Error ".mysql_errno().": ".mysql_error()."</B></FONT>", E_USER_NOTICE);
|
||||
echo"Version Notes and OS for $_POST[name] $_POST[version] updated...<br>\n";
|
||||
}
|
||||
|
@ -388,7 +391,7 @@ $osid = $_POST["osid"];
|
|||
|
||||
//Construct Internal App_Version Arrays
|
||||
$i=0;
|
||||
$sql = "SELECT `int_version`, `major`, `minor`, `release`, `SubVer` FROM `t_applications` ORDER BY `AppName`, `major` DESC, `minor` DESC, `release` DESC, `SubVer` DESC";
|
||||
$sql = "SELECT `int_version`, `major`, `minor`, `release`, `SubVer` FROM `applications` ORDER BY `AppName`, `major` DESC, `minor` DESC, `release` DESC, `SubVer` DESC";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
while ($row = mysql_fetch_array($sql_result)) {
|
||||
$i++;
|
||||
|
@ -404,9 +407,9 @@ $sql = "SELECT `int_version`, `major`, `minor`, `release`, `SubVer` FROM `t_appl
|
|||
|
||||
for ($i = 1; $i <= $_POST[maxval]; $i++) {
|
||||
unset($minappver_int,$maxappver_int);
|
||||
$minappver = $_POST["minappver_$i"];
|
||||
$maxappver = $_POST["maxappver_$i"];
|
||||
$vid = $_POST["appvid_$i"];
|
||||
$minappver = escape_string($_POST["minappver_$i"]);
|
||||
$maxappver = escape_string($_POST["maxappver_$i"]);
|
||||
$vid = escape_string($_POST["appvid_$i"]);
|
||||
if ($app_internal_array["$minappver"]) {$minappver_int = $app_internal_array["$minappver"]; }
|
||||
if ($app_internal_array["$maxappver"]) {$maxappver_int = $app_internal_array["$maxappver"]; }
|
||||
if (!$minappver_int) {$minappver_int = $minappver;}
|
||||
|
@ -414,7 +417,7 @@ if (!$maxappver_int) {$maxappver_int = $maxappver;}
|
|||
|
||||
if ($minappver && $maxappver) {
|
||||
if (checkFormKey()) {
|
||||
$sql = "UPDATE `t_version` SET `MinAppVer`='$minappver', `MinAppVer_int`='$minappver_int', `MaxAppVer`='$maxappver', `MaxAppVer_int`='$maxappver_int' WHERE `vID`='$vid'";
|
||||
$sql = "UPDATE `version` SET `MinAppVer`='$minappver', `MinAppVer_int`='$minappver_int', `MaxAppVer`='$maxappver', `MaxAppVer_int`='$maxappver_int' WHERE `vID`='$vid'";
|
||||
//echo"$sql<br>\n";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("<FONT COLOR=\"#FF0000\"><B>MySQL Error ".mysql_errno().": ".mysql_error()."</B></FONT>", E_USER_NOTICE);
|
||||
echo"Updated Target Application Values for Application $i...<br>\n";
|
||||
|
@ -430,18 +433,18 @@ echo"</SPAN></DIV>";
|
|||
|
||||
|
||||
} else if ($_POST["submit"]=="Delete") {
|
||||
$id = $_POST["id"];
|
||||
$uri = $_POST["uri"];
|
||||
$version = $_POST["version"];
|
||||
$id = escape_string($_POST["id"]);
|
||||
$uri = escape_string($_POST["uri"]);
|
||||
$version = escape_string($_POST["version"]);
|
||||
echo"<h1>Deleting Version... Please wait...</h1>\n";
|
||||
$sql = "SELECT `Name` FROM `t_main` WHERE `ID` = '$id'";
|
||||
$sql = "SELECT `Name` FROM `main` WHERE `ID` = '$id'";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
$row = mysql_fetch_array($sql_result);
|
||||
$name = $row["Name"];
|
||||
|
||||
$sql_result = false;
|
||||
if (checkFormKey()) {
|
||||
$sql = "DELETE FROM `t_version` WHERE `ID`='$id' AND `URI`='$uri'";
|
||||
$sql = "DELETE FROM `version` WHERE `ID`='$id' AND `URI`='$uri'";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("<FONT COLOR=\"#FF0000\"><B>MySQL Error ".mysql_errno().": ".mysql_error()."</B></FONT>", E_USER_NOTICE);
|
||||
}
|
||||
if ($sql_result) {
|
||||
|
@ -476,9 +479,9 @@ $sql = "SELECT `Name` FROM `t_main` WHERE `ID` = '$id'";
|
|||
//----------------------
|
||||
|
||||
//Get Parent Item Information
|
||||
$id = $_GET["id"];
|
||||
if (!$id) {$id = $_POST["id"]; }
|
||||
$sql = "SELECT TM.ID, TM.Name FROM `t_main` TM WHERE TM.ID = '$id' LIMIT 1";
|
||||
$id = escape_string($_GET["id"]);
|
||||
if (!$id) {$id = escape_string($_POST["id"]); }
|
||||
$sql = "SELECT TM.ID, TM.Name FROM `main` TM WHERE TM.ID = '$id' LIMIT 1";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
$row = mysql_fetch_array($sql_result);
|
||||
$id = $row["ID"];
|
||||
|
@ -488,11 +491,11 @@ $sql = "SELECT TM.ID, TM.Name FROM `t_main` TM WHERE TM.ID = '$id' LIMIT 1";
|
|||
//-----------------------
|
||||
// Version Table
|
||||
//-----------------------
|
||||
$vid = $_GET["vid"];
|
||||
if (!$vid) {$vid = $_POST["vid"]; }
|
||||
$vid = escape_string($_GET["vid"]);
|
||||
if (!$vid) {$vid = escape_string($_POST["vid"]); }
|
||||
//Get Data for Form Population
|
||||
//INNER JOIN t_main TM ON TV.ID = TM.ID
|
||||
$sql = "SELECT `Version`, TV.OSID, `OSName`,`URI`,`Notes`,`Size`,`DateAdded`, `DateUpdated` FROM `t_version` TV INNER JOIN `t_os` TOS ON TOS.OSID=TV.OSID WHERE `vID` = '$vid' ORDER BY `Version` ASC LIMIT 1";
|
||||
//INNER JOIN main TM ON TV.ID = TM.ID
|
||||
$sql = "SELECT `Version`, TV.OSID, `OSName`,`URI`,`Notes`,`Size`,`DateAdded`, `DateUpdated` FROM `version` TV INNER JOIN `os` TOS ON TOS.OSID=TV.OSID WHERE `vID` = '$vid' ORDER BY `Version` ASC LIMIT 1";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
$row = mysql_fetch_array($sql_result);
|
||||
$v++;
|
||||
|
@ -521,7 +524,7 @@ if (!$vid) {$vid = $_POST["vid"]; }
|
|||
|
||||
//Construct App_Versions Arrays
|
||||
$i=0;
|
||||
$sql = "SELECT `AppName`, `Version`, `major`, `minor`, `release`, `SubVer` FROM `t_applications` ORDER BY `AppName`, `major` DESC, `minor` DESC, `release` DESC, `SubVer` DESC";
|
||||
$sql = "SELECT `AppName`, `Version`, `major`, `minor`, `release`, `SubVer` FROM `applications` ORDER BY `AppName`, `major` DESC, `minor` DESC, `release` DESC, `SubVer` DESC";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
while ($row = mysql_fetch_array($sql_result)) {
|
||||
$i++;
|
||||
|
@ -537,7 +540,7 @@ $sql = "SELECT `AppName`, `Version`, `major`, `minor`, `release`, `SubVer` FROM
|
|||
|
||||
$i=0;
|
||||
echo"<TR><TD COLSPAN=2><SPAN class=\"file\">Target Application(s):</SPAN></TD></TR>\n";
|
||||
$sql = "SELECT vID, TV.AppID,`AppName`,`MinAppVer`,`MaxAppVer` FROM `t_version` TV INNER JOIN `t_applications` TA ON TA.AppID=TV.AppID WHERE `ID` = '$id' && TV.URI = '$uri' ORDER BY `AppName` ASC";
|
||||
$sql = "SELECT vID, TV.AppID,`AppName`,`MinAppVer`,`MaxAppVer` FROM `version` TV INNER JOIN `applications` TA ON TA.AppID=TV.AppID WHERE `ID` = '$id' && TV.URI = '$uri' ORDER BY `AppName` ASC";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
while ($row = mysql_fetch_array($sql_result)) {
|
||||
$i++;
|
||||
|
@ -569,7 +572,7 @@ foreach ($app_ver_array[strtolower($appname)] as $app_version) {
|
|||
echo"<TR><TD><SPAN class=\"file\">OS*</SPAN></TD><TD>";
|
||||
echo"<SELECT name=\"osid\">";
|
||||
$os = $osid;
|
||||
$sql = "SELECT * FROM `t_os` ORDER BY `OSName` ASC";
|
||||
$sql = "SELECT * FROM `os` ORDER BY `OSName` ASC";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
while ($row = mysql_fetch_array($sql_result)) {
|
||||
$osname = $row["OSName"];
|
||||
|
@ -591,6 +594,10 @@ $sql = "SELECT * FROM `t_os` ORDER BY `OSName` ASC";
|
|||
} else {}
|
||||
?>
|
||||
|
||||
|
||||
<!-- close #mBody-->
|
||||
</div>
|
||||
|
||||
<?php
|
||||
include"$page_footer";
|
||||
?>
|
||||
|
|
|
@ -3,8 +3,8 @@ require"../core/config.php";
|
|||
require"core/sessionconfig.php";
|
||||
|
||||
$password = md5($_POST[password]);
|
||||
$email = $_POST["email"];
|
||||
$sql = "SELECT DISTINCT `UserID`, `UserEmail`,`UserName`,`UserMode`,`UserTrusted` FROM `t_userprofiles` WHERE `UserEmail` = '$email' && `UserPass` = '$password' LIMIT 1";
|
||||
$email = escape_string($_POST["email"]);
|
||||
$sql = "SELECT DISTINCT `UserID`, `UserEmail`,`UserName`,`UserMode`,`UserTrusted` FROM `userprofiles` WHERE `UserEmail` = '$email' && `UserPass` = '$password' LIMIT 1";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("<FONT COLOR=\"#FF0000\"><B>MySQL Error ".mysql_errno().": ".mysql_error()."</B></FONT>", E_USER_NOTICE);
|
||||
$num = mysql_num_rows($sql_result);
|
||||
|
||||
|
@ -20,7 +20,7 @@ $usertrusted=$row["UserTrusted"];
|
|||
$logoncheck="YES";
|
||||
|
||||
//Update LastLogin Time to current.
|
||||
$sql = "UPDATE `t_userprofiles` SET `UserLastLogin`=NOW(NULL) WHERE `UserID`='$userid' LIMIT 1";
|
||||
$sql = "UPDATE `userprofiles` SET `UserLastLogin`=NOW(NULL) WHERE `UserID`='$userid' LIMIT 1";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
|
||||
//User Role to Session Level variable...
|
||||
|
@ -37,13 +37,13 @@ $_SESSION["logoncheck"] = "$logoncheck";
|
|||
|
||||
$return_path="developers/main.php";
|
||||
|
||||
header("Location: http://$_SERVER[HTTP_HOST]/$return_path");
|
||||
header("Location: https://$_SERVER[SERVER_NAME]/$return_path");
|
||||
exit;
|
||||
|
||||
|
||||
} else {
|
||||
$return_path ="developers/index.php?login=failed";
|
||||
header("Location: http://$_SERVER[HTTP_HOST]/$return_path");
|
||||
header("Location: https://$_SERVER[SERVER_NAME]/$return_path");
|
||||
exit;
|
||||
}
|
||||
?>
|
|
@ -6,5 +6,5 @@ session_destroy();
|
|||
|
||||
$return_path="developers/index.php?logout=true";
|
||||
|
||||
header("Location: http://$_SERVER[HTTP_HOST]/$return_path");
|
||||
header("Location: http://$_SERVER[SERVER_NAME]/$return_path");
|
||||
?>
|
|
@ -22,7 +22,7 @@ $subject = "Activate your new Mozilla Update account\n";
|
|||
$message = "Welcome to Mozilla Update.\n";
|
||||
$message .= "Before you can use your new account you must activate it, this ensures the e-mail address you used is valid and belongs to you.\n";
|
||||
$message .= "To activate your account, click the link below or copy and paste the whole thing into your browsers location bar:\n";
|
||||
$message .= "http://$_SERVER[HTTP_HOST]/developers/createaccount.php?function=confirmaccount&email=$email&confirmationcode=$confirmationcode\n\n";
|
||||
$message .= "http://$sitehostname/developers/createaccount.php?function=confirmaccount&email=$email&confirmationcode=$confirmationcode\n\n";
|
||||
$message .= "Keep this e-mail in a safe-place for your records, below is your account details you used when registering for your account.\n\n";
|
||||
$message .= "E-Mail: $email\n";
|
||||
$message .= "Password: $password_plain\n\n";
|
||||
|
|
|
@ -24,7 +24,7 @@ $subject = "Your New Mozilla Update Password\n";
|
|||
$message = "Your New Mozilla Update Password\n";
|
||||
$message .= "Below is your new Mozilla Update password which has been either changed by you using the Change Password tool, or regenerated as requested by you using the Mozilla Update Forgotten Password tool or by an Mozilla Update Staff member per your request.\n";
|
||||
$message .= "To login to your account, click the link below or copy and paste the whole thing into your browsers location bar:\n";
|
||||
$message .= "http://$_SERVER[HTTP_HOST]/developers/\n\n";
|
||||
$message .= "http://$sitehostname/developers/\n\n";
|
||||
$message .= "Keep this e-mail in a safe-place for your records, below is your account details you used when registering for your account.\n\n";
|
||||
$message .= "E-Mail: $email\n";
|
||||
$message .= "Password: $password_plain\n\n";
|
||||
|
|
|
@ -12,25 +12,27 @@ include"inc_sidebar.php";
|
|||
?>
|
||||
<h2>Welcome <?php echo"$_SESSION[name]";?>!</h2>
|
||||
|
||||
<P>
|
||||
|
||||
<?php
|
||||
if ($_SESSION["level"] == "admin" or $_SESSION["level"] == "moderator") {
|
||||
|
||||
$sql ="SELECT TM.ID FROM `t_main` TM
|
||||
INNER JOIN `t_version` TV ON TM.ID = TV.ID
|
||||
$sql ="SELECT TM.ID FROM `main` TM
|
||||
INNER JOIN `version` TV ON TM.ID = TV.ID
|
||||
WHERE `approved` = '?' GROUP BY `URI` ORDER BY TV.DateUpdated ASC";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
$num_result = mysql_num_rows($sql_result);
|
||||
?>
|
||||
<P>
|
||||
<SPAN STYLE="font-weight:bold">Approval Queue Status: <A HREF="approval.php?function=approvalqueue"><?php echo"$num_result"; ?> Pending Approval</A></SPAN>
|
||||
|
||||
</P>
|
||||
<?php } ?>
|
||||
<h3>My Extensions</h3>
|
||||
|
||||
<h3>My Extensions</h3>
|
||||
<P>
|
||||
<?php
|
||||
$sql = "SELECT TM.ID, TM.Type, TM.Name, TM.Description, TM.downloadcount, TM.TotalDownloads, TM.Rating, TU.UserEmail FROM `t_main` TM
|
||||
LEFT JOIN t_authorxref TAX ON TM.ID = TAX.ID
|
||||
INNER JOIN t_userprofiles TU ON TAX.UserID = TU.UserID
|
||||
$sql = "SELECT TM.ID, TM.Type, TM.Name, TM.Description, TM.downloadcount, TM.TotalDownloads, TM.Rating, TU.UserEmail FROM `main` TM
|
||||
LEFT JOIN authorxref TAX ON TM.ID = TAX.ID
|
||||
INNER JOIN userprofiles TU ON TAX.UserID = TU.UserID
|
||||
WHERE TU.UserID = '$_SESSION[uid]' AND TM.Type ='E'
|
||||
ORDER BY `Type` , `Name` ";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
|
@ -63,13 +65,14 @@ echo"</DIV>";
|
|||
?>
|
||||
<a href="additem.php?type=E">Add New Extension...</a>
|
||||
</P>
|
||||
<P>
|
||||
|
||||
|
||||
<h3>My Themes</h3>
|
||||
<P>
|
||||
<?php
|
||||
$sql = "SELECT TM.ID, TM.Type, TM.Name, TM.DateAdded, TM.Description, TM.downloadcount, TM.TotalDownloads, TM.Rating, TU.UserEmail FROM `t_main` TM
|
||||
LEFT JOIN t_authorxref TAX ON TM.ID = TAX.ID
|
||||
INNER JOIN t_userprofiles TU ON TAX.UserID = TU.UserID
|
||||
$sql = "SELECT TM.ID, TM.Type, TM.Name, TM.DateAdded, TM.Description, TM.downloadcount, TM.TotalDownloads, TM.Rating, TU.UserEmail FROM `main` TM
|
||||
LEFT JOIN authorxref TAX ON TM.ID = TAX.ID
|
||||
INNER JOIN userprofiles TU ON TAX.UserID = TU.UserID
|
||||
WHERE TU.UserID = '$_SESSION[uid]' AND TM.Type ='T'
|
||||
ORDER BY `Type` , `Name` ";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
|
@ -103,6 +106,10 @@ echo"</DIV>";
|
|||
|
||||
</P>
|
||||
</DIV>
|
||||
|
||||
<!-- close #mBody-->
|
||||
</div>
|
||||
|
||||
<?php
|
||||
include"$page_footer";
|
||||
?>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
require"../core/config.php";
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html401/loose.dtd">
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>Mozilla Update :: Password Reset</TITLE>
|
||||
|
@ -16,7 +16,7 @@ include"$page_header";
|
|||
if ($_POST["submit"]=="Reset My Password") {
|
||||
echo"<h1>Resetting Your Password, Please Wait...</h1>\n";
|
||||
//Gather and Filter Data from the Submission Form
|
||||
$email = $_POST["email"];
|
||||
$email = escape_string($_POST["email"]);
|
||||
|
||||
//Generate Confirmation Code
|
||||
$confirmationcode = md5(mt_rand());
|
||||
|
@ -25,10 +25,10 @@ $newpassword = substr(md5(mt_rand()),0,14);
|
|||
$password_plain = $newpassword;
|
||||
$password = md5($newpassword);
|
||||
|
||||
$sql = "SELECT `UserEmail` FROM `t_userprofiles` WHERE `UserEmail`='$email' LIMIT 1";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
$sql = "SELECT `UserEmail` FROM `userprofiles` WHERE `UserEmail`='$email' LIMIT 1";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
if (mysql_num_rows($sql_result)=="1") {
|
||||
$sql = "UPDATE `t_userprofiles` SET `UserPass`='$password' WHERE `UserEmail`='$email' LIMIT 1";
|
||||
$sql = "UPDATE `userprofiles` SET `UserPass`='$password' WHERE `UserEmail`='$email' LIMIT 1";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
if ($sql_result) {
|
||||
include"mail_newpassword.php";
|
||||
|
@ -47,14 +47,14 @@ exit;
|
|||
?>
|
||||
|
||||
|
||||
<h3>Reset Your Password</h3>
|
||||
<h2>Reset Your Password</h2>
|
||||
<P>Forgot the password to your Mozilla Update account? No problem. Just put your e-mail address in the form below, and a new password will
|
||||
be generated and e-mailed to the e-mail address you have on file.</P>
|
||||
|
||||
<form name="resetpassword" method="post" action="?post=resetpassword">
|
||||
<table border=0 cellpadding=0 cellspacing=0 style="width: 50%; margin: auto;">
|
||||
<tr>
|
||||
<td style="height: 30px";>E-Mail Address:</td>
|
||||
<td style="height: 30px;">E-Mail Address:</td>
|
||||
<td><input name="email" type="text" size=30></td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -63,6 +63,8 @@ be generated and e-mailed to the e-mail address you have on file.</P>
|
|||
</table>
|
||||
|
||||
</form>
|
||||
|
||||
</div>
|
||||
<?php
|
||||
include"$page_footer";
|
||||
?>
|
||||
|
|
|
@ -11,10 +11,10 @@ include"$page_header";
|
|||
include"inc_sidebar.php";
|
||||
?>
|
||||
<?php
|
||||
$id = $_GET["id"];
|
||||
$sql = "SELECT TM.ID, TM.Type, TM.Name, TM.Description, TM.downloadcount, TM.TotalDownloads, TM.Rating, TU.UserEmail FROM `t_main` TM
|
||||
LEFT JOIN t_authorxref TAX ON TM.ID = TAX.ID
|
||||
INNER JOIN t_userprofiles TU ON TAX.UserID = TU.UserID
|
||||
$id = escape_string($_GET["id"]);
|
||||
$sql = "SELECT TM.ID, TM.Type, TM.Name, TM.Description, TM.downloadcount, TM.TotalDownloads, TM.Rating, TU.UserEmail FROM `main` TM
|
||||
LEFT JOIN authorxref TAX ON TM.ID = TAX.ID
|
||||
INNER JOIN userprofiles TU ON TAX.UserID = TU.UserID
|
||||
WHERE TM.ID = '$id' ORDER BY `Type` , `Name` ";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
$numresults = mysql_num_rows($sql_result);
|
||||
|
@ -37,13 +37,13 @@ $v++;
|
|||
<?php
|
||||
if ($_POST["submit"]=="Update Previews") {
|
||||
for ($i = 1; $i <= $_POST["maxid"]; $i++) {
|
||||
$previewid = $_POST["previewid_$i"];
|
||||
$caption = $_POST["caption_$i"];
|
||||
$delete = $_POST["delete_$i"];
|
||||
$previewid = escape_string($_POST["previewid_$i"]);
|
||||
$caption = escape_string($_POST["caption_$i"]);
|
||||
$delete = escape_string($_POST["delete_$i"]);
|
||||
|
||||
|
||||
|
||||
$sql = "SELECT `PreviewURI` from `t_previews` WHERE `PreviewID`='$previewid' LIMIT 1";
|
||||
$sql = "SELECT `PreviewURI` from `previews` WHERE `PreviewID`='$previewid' LIMIT 1";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
$row = mysql_fetch_array($sql_result);
|
||||
$file = $row["PreviewURI"];
|
||||
|
@ -55,9 +55,9 @@ if ($_POST["preview"]==$previewid AND $imagesize[0]<="180" AND $imagesize[1]<="7
|
|||
if ($delete==$previewid) {
|
||||
if (file_exists($file)) { unlink($file); }
|
||||
|
||||
$sql = "DELETE FROM `t_previews` WHERE `PreviewID`='$previewid'";
|
||||
$sql = "DELETE FROM `previews` WHERE `PreviewID`='$previewid'";
|
||||
} else {
|
||||
$sql = "UPDATE `t_previews` SET `caption`='$caption', `preview`='$preview' WHERE `PreviewID`='$previewid'";
|
||||
$sql = "UPDATE `previews` SET `caption`='$caption', `preview`='$preview' WHERE `PreviewID`='$previewid'";
|
||||
}
|
||||
if (checkFormKey()) {
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
|
@ -70,7 +70,7 @@ echo"Previews successfully updated. The new values for the preview records shoul
|
|||
|
||||
|
||||
unset($i);
|
||||
$sql = "SELECT * FROM `t_previews` TP WHERE `ID`='$id' ORDER BY `PreviewID`";
|
||||
$sql = "SELECT * FROM `previews` TP WHERE `ID`='$id' ORDER BY `PreviewID`";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
$num_results = mysql_num_rows($sql_result);
|
||||
|
||||
|
@ -149,8 +149,8 @@ unset($count,$val,$exploded_filename,$filename,$maxval);
|
|||
|
||||
$width = $_POST["width"];
|
||||
$height = $_POST["height"];
|
||||
$preview = $_POST["preview"];
|
||||
$caption = $_POST["caption"];
|
||||
$preview = escape_string($_POST["preview"]);
|
||||
$caption = escape_string($_POST["caption"]);
|
||||
|
||||
$name = str_replace(" ","_",$name);
|
||||
$previewpath = strtolower("images/previews/$name-$i.jpg");
|
||||
|
@ -227,7 +227,7 @@ imagedestroy($dst_img);
|
|||
if ($status=="1") {
|
||||
//Lets attempt to add the record to the DB.
|
||||
if (checkFormKey()) {
|
||||
$sql = "INSERT INTO `t_previews` (`PreviewURI`,`ID`,`caption`,`preview`) VALUES ('/$previewpath','$id','$caption','$preview');";
|
||||
$sql = "INSERT INTO `previews` (`PreviewURI`,`ID`,`caption`,`preview`) VALUES ('/$previewpath','$id','$caption','$preview');";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
|
||||
if ($sql_result=="1") {
|
||||
|
@ -259,6 +259,12 @@ Image Caption: <input name="caption" type="text" size="30"><br>
|
|||
|
||||
<input name="submit" type="submit" value="Add Preview"><input name="reset" type="reset" value="Reset">
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
<!-- close #mBody-->
|
||||
</div>
|
||||
|
||||
<?php
|
||||
include"$page_footer";
|
||||
?>
|
||||
|
|
|
@ -24,11 +24,11 @@ include"inc_sidebar.php";
|
|||
<?php
|
||||
//Security Check for EditUser/ChangePassword function.
|
||||
if ($function=="edituser" or $function=="changepassword") {
|
||||
$postuid = $_GET["userid"];
|
||||
$userid = $_SESSION["uid"];
|
||||
$postuid = escape_string($_GET["userid"]);
|
||||
$userid = escape_string($_SESSION["uid"]);
|
||||
if ($_SESSION["level"] !=="admin" and $postuid != $userid) {
|
||||
//This user isn't an admin, verify the id of the record they're working with is ok.
|
||||
$sql = "SELECT `UserID` from `t_userprofiles` WHERE ";
|
||||
$sql = "SELECT `UserID` from `userprofiles` WHERE ";
|
||||
if ($_SESSION["level"]=="user") { $sql .="`UserID` = '$userid'";
|
||||
} else if ($_SESSION["level"]=="editor") {$sql .="`UserMode`='U' and `UserID`='$postuid'";
|
||||
} else { $sql .=" 0"; }
|
||||
|
@ -46,7 +46,7 @@ $userid = $_SESSION["uid"];
|
|||
$userid = $row["UserID"];
|
||||
}
|
||||
} else {
|
||||
$userid = $_GET["userid"];
|
||||
$userid = escape_string($_GET["userid"]);
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
@ -63,11 +63,11 @@ if ($_POST["submit"] && $_GET["action"]=="update") {
|
|||
//Process Post Data, Make Changes to User Table.
|
||||
//Begin General Updating
|
||||
for ($i=1; $i<=$_POST[maxuserid]; $i++) {
|
||||
$admin = $_POST["admin$i"];
|
||||
$editor = $_POST["editor$i"];
|
||||
$trusted = $_POST["trusted$i"];
|
||||
$disabled = $_POST["disabled$i"];
|
||||
$selected = $_POST["selected$i"];
|
||||
$admin = escape_string($_POST["admin$i"]);
|
||||
$editor = escape_string($_POST["editor$i"]);
|
||||
$trusted = escape_string($_POST["trusted$i"]);
|
||||
$disabled = escape_string($_POST["disabled$i"]);
|
||||
$selected = escape_string($_POST["selected$i"]);
|
||||
//echo "$i - $admin - $editor - $trusted - $selected<br>\n";
|
||||
|
||||
if ($admin=="TRUE") { $mode="A";
|
||||
|
@ -78,32 +78,32 @@ if ($_POST["submit"] && $_GET["action"]=="update") {
|
|||
if ($trusted !=="TRUE") {$trusted="FALSE"; }
|
||||
|
||||
if (checkFormKey()) {
|
||||
$sql = "UPDATE `t_userprofiles` SET `UserMode`= '$mode', `UserTrusted`= '$trusted' WHERE `UserID`='$i'";
|
||||
$sql = "UPDATE `userprofiles` SET `UserMode`= '$mode', `UserTrusted`= '$trusted' WHERE `UserID`='$i'";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("<FONT COLOR=\"#FF0000\"><B>MySQL Error ".mysql_errno().": ".mysql_error()."</B></FONT>", E_USER_NOTICE);
|
||||
}
|
||||
|
||||
//Do Special Disable, Delete, Enable Account Operations
|
||||
if ($_POST["selected$i"] AND $_POST["submit"] !=="Update") {
|
||||
$selecteduser = $_POST["selected$i"];
|
||||
$selecteduser = escape_string($_POST["selected$i"]);
|
||||
|
||||
if ($_POST["submit"]=="Disable Selected") {
|
||||
if (checkFormKey()) {
|
||||
$sql = "UPDATE `t_userprofiles` SET `UserMode`= 'D' WHERE `UserID`='$selecteduser'";
|
||||
$sql = "UPDATE `userprofiles` SET `UserMode`= 'D' WHERE `UserID`='$selecteduser'";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("<FONT COLOR=\"#FF0000\"><B>MySQL Error ".mysql_errno().": ".mysql_error()."</B></FONT>", E_USER_NOTICE);
|
||||
if ($sql_result) {
|
||||
echo"User Account for User Number $selecteduser Disabled<br>\n";
|
||||
}
|
||||
|
||||
//Disabling an author, check their extension list and disable any item they're the solo author of.
|
||||
$sql = "SELECT TM.ID, TM.Name from `t_main` TM INNER JOIN `t_authorxref` TAX ON TM.ID=TAX.ID WHERE TAX.UserID = '$selecteduser'";
|
||||
$sql = "SELECT TM.ID, TM.Name from `main` TM INNER JOIN `authorxref` TAX ON TM.ID=TAX.ID WHERE TAX.UserID = '$selecteduser'";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("<FONT COLOR=\"#FF0000\"><B>MySQL Error ".mysql_errno().": ".mysql_error()."</B></FONT>", E_USER_NOTICE);
|
||||
while ($row = mysql_fetch_array($sql_result)) {
|
||||
$id = $row["ID"];
|
||||
$name = $row["Name"];
|
||||
$sql2 = "SELECT `ID` from `t_authorxref` WHERE `ID` = '$id'";
|
||||
$sql2 = "SELECT `ID` from `authorxref` WHERE `ID` = '$id'";
|
||||
$sql_result2 = mysql_query($sql2, $connection) or trigger_error("<FONT COLOR=\"#FF0000\"><B>MySQL Error ".mysql_errno().": ".mysql_error()."</B></FONT>", E_USER_NOTICE);
|
||||
if (mysql_num_rows($sql_result2)<="1") {
|
||||
$sql3 = "UPDATE `t_version` SET `approved`='DISABLED' WHERE `ID`='$id' and `approved` !='NO' ";
|
||||
$sql3 = "UPDATE `version` SET `approved`='DISABLED' WHERE `ID`='$id' and `approved` !='NO' ";
|
||||
$sql_result3 = mysql_query($sql3, $connection) or trigger_error("<FONT COLOR=\"#FF0000\"><B>MySQL Error ".mysql_errno().": ".mysql_error()."</B></FONT>", E_USER_NOTICE);
|
||||
if ($sql_result3) {
|
||||
echo"$name disabled from public viewing...<br>\n";
|
||||
|
@ -114,7 +114,7 @@ if ($_POST["submit"] && $_GET["action"]=="update") {
|
|||
|
||||
} else if ($_POST["submit"]=="Delete Selected") {
|
||||
if (checkFormKey()) {
|
||||
$sql = "DELETE FROM `t_userprofiles` WHERE `UserID`='$selecteduser' LIMIT 1";
|
||||
$sql = "DELETE FROM `userprofiles` WHERE `UserID`='$selecteduser' LIMIT 1";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("<FONT COLOR=\"#FF0000\"><B>MySQL Error ".mysql_errno().": ".mysql_error()."</B></FONT>", E_USER_NOTICE);
|
||||
if ($sql_result) {
|
||||
echo"User Account for User Number $selecteduser Deleted<br>\n";
|
||||
|
@ -123,21 +123,21 @@ if ($_POST["submit"] && $_GET["action"]=="update") {
|
|||
|
||||
} else if ($_POST["submit"]=="Enable Selected") {
|
||||
if (checkFormKey()) {
|
||||
$sql = "UPDATE `t_userprofiles` SET `UserMode`= 'U' WHERE `UserID`='$selecteduser'";
|
||||
$sql = "UPDATE `userprofiles` SET `UserMode`= 'U' WHERE `UserID`='$selecteduser'";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("<FONT COLOR=\"#FF0000\"><B>MySQL Error ".mysql_errno().": ".mysql_error()."</B></FONT>", E_USER_NOTICE);
|
||||
if ($sql_result) {
|
||||
echo"User Account for User Number $selecteduser Enabled, User Mode set to User<br>\n";
|
||||
}
|
||||
//Disabling an author, check their extension list and disable any item they're the solo author of.
|
||||
$sql = "SELECT TM.ID, TM.Name from `t_main` TM INNER JOIN `t_authorxref` TAX ON TM.ID=TAX.ID WHERE TAX.UserID = '$selecteduser'";
|
||||
$sql = "SELECT TM.ID, TM.Name from `main` TM INNER JOIN `authorxref` TAX ON TM.ID=TAX.ID WHERE TAX.UserID = '$selecteduser'";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("<FONT COLOR=\"#FF0000\"><B>MySQL Error ".mysql_errno().": ".mysql_error()."</B></FONT>", E_USER_NOTICE);
|
||||
while ($row = mysql_fetch_array($sql_result)) {
|
||||
$id = $row["ID"];
|
||||
$name = $row["Name"];
|
||||
$sql2 = "SELECT `ID` from `t_authorxref` WHERE `ID` = '$id'";
|
||||
$sql2 = "SELECT `ID` from `authorxref` WHERE `ID` = '$id'";
|
||||
$sql_result2 = mysql_query($sql2, $connection) or trigger_error("<FONT COLOR=\"#FF0000\"><B>MySQL Error ".mysql_errno().": ".mysql_error()."</B></FONT>", E_USER_NOTICE);
|
||||
if (mysql_num_rows($sql_result2)<="1") {
|
||||
$sql3 = "UPDATE `t_version` SET `approved`='?' WHERE `ID`='$id' and `approved` !='NO'";
|
||||
$sql3 = "UPDATE `version` SET `approved`='?' WHERE `ID`='$id' and `approved` !='NO'";
|
||||
$sql_result3 = mysql_query($sql3, $connection) or trigger_error("<FONT COLOR=\"#FF0000\"><B>MySQL Error ".mysql_errno().": ".mysql_error()."</B></FONT>", E_USER_NOTICE);
|
||||
if ($sql_result3) {
|
||||
echo"$name restored to public view pending approval...<br>\n";
|
||||
|
@ -170,7 +170,7 @@ if ($_POST["submit"] && $_GET["action"]=="update") {
|
|||
<FORM NAME="updateusers" METHOD="POST" ACTION="?function=&action=update">
|
||||
<?writeFormKey();?>
|
||||
<?php
|
||||
$sql = "SELECT * FROM `t_userprofiles` ORDER BY `UserMode`, `UserName` ASC";
|
||||
$sql = "SELECT * FROM `userprofiles` ORDER BY `UserMode`, `UserName` ASC";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
while ($row = mysql_fetch_array($sql_result)) {
|
||||
$userid = $row["UserID"];
|
||||
|
@ -227,17 +227,17 @@ echo"<INPUT NAME=\"maxuserid\" TYPE=\"HIDDEN\" VALUE=\"$maxuserid\">";
|
|||
|
||||
<?php
|
||||
} else if ($function=="edituser") {
|
||||
if (!$userid) {$userid = $_GET["userid"];}
|
||||
if (!$userid) {$userid = escape_string($_GET["userid"]);}
|
||||
|
||||
//Process Submitted Values if this is a return with $_POST data...
|
||||
if ($_POST["submit"]=="Update") {
|
||||
if ($_SESSION["level"] !=="admin" && $_SESSION["uid"] !== $_POST["userid"]) {$_POST["userid"]=$_SESSION["uid"];}
|
||||
$_POST["username"] = htmlspecialchars($_POST["username"]);
|
||||
$_POST["username"] = escape_string(htmlspecialchars($_POST["username"]));
|
||||
|
||||
$admin = $_POST["admin"];
|
||||
$editor = $_POST["editor"];
|
||||
$trusted = $_POST["trusted"];
|
||||
$usermode = $_POST["usermode"];
|
||||
$admin = escape_string($_POST["admin"]);
|
||||
$editor = escape_string($_POST["editor"]);
|
||||
$trusted = escape_string($_POST["trusted"]);
|
||||
$usermode = escape_string($_POST["usermode"]);
|
||||
|
||||
if ($admin=="TRUE") { $mode="A";
|
||||
} else if ($editor=="TRUE") { $mode="E";
|
||||
|
@ -249,14 +249,14 @@ if ($usermode=="D") {$mode="D"; $trusted="FALSE";}
|
|||
|
||||
if ($trusted !=="TRUE") {$trusted="FALSE"; }
|
||||
|
||||
$userid = $_POST["userid"];
|
||||
$username = $_POST["username"];
|
||||
$useremail = $_POST["useremail"];
|
||||
$userwebsite = $_POST["userwebsite"];
|
||||
$useremailhide = $_POST["useremailhide"];
|
||||
$userid = escape_string($_POST["userid"]);
|
||||
$username = escape_string($_POST["username"]);
|
||||
$useremail = escape_string($_POST["useremail"]);
|
||||
$userwebsite = escape_string($_POST["userwebsite"]);
|
||||
$useremailhide = escape_string($_POST["useremailhide"]);
|
||||
|
||||
if (checkFormKey()) {
|
||||
$sql = "UPDATE `t_userprofiles` SET `UserName`= '$username', `UserEmail`='$useremail', `UserWebsite`='$userwebsite', `UserMode`='$mode', `UserTrusted`='$trusted', `UserEmailHide`='$useremailhide' WHERE `UserID`='$userid'";
|
||||
$sql = "UPDATE `userprofiles` SET `UserName`= '$username', `UserEmail`='$useremail', `UserWebsite`='$userwebsite', `UserMode`='$mode', `UserTrusted`='$trusted', `UserEmailHide`='$useremailhide' WHERE `UserID`='$userid'";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("<FONT COLOR=\"#FF0000\"><B>MySQL Error ".mysql_errno().": ".mysql_error()."</B></FONT>", E_USER_NOTICE);
|
||||
if ($sql_result) {
|
||||
echo"<h1>Updating User Profile...</h1>\n";
|
||||
|
@ -265,10 +265,10 @@ $useremailhide = $_POST["useremailhide"];
|
|||
}
|
||||
} else if ($_POST["submit"] == "Delete User") {
|
||||
if ($_SESSION["level"] !=="admin" && $_SESSION["uid"] !== $_POST["userid"]) {$_POST["userid"]=$_SESSION["uid"];}
|
||||
$userid = $_POST["userid"];
|
||||
$username = $_POST["username"];
|
||||
$userid = escape_string($_POST["userid"]);
|
||||
$username = escape_string($_POST["username"]);
|
||||
if (checkFormKey()) {
|
||||
$sql = "DELETE FROM `t_userprofiles` WHERE `UserID`='$userid'";
|
||||
$sql = "DELETE FROM `userprofiles` WHERE `UserID`='$userid'";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("<FONT COLOR=\"#FF0000\"><B>MySQL Error ".mysql_errno().": ".mysql_error()."</B></FONT>", E_USER_NOTICE);
|
||||
if ($sql_result) {
|
||||
echo"<h1>Deleting User... Please wait...</h1>\n";
|
||||
|
@ -280,10 +280,10 @@ $username = $_POST["username"];
|
|||
}
|
||||
}
|
||||
|
||||
if (!$userid) {$userid=$_POST["userid"];}
|
||||
if (!$userid) {$userid=escape_string($_POST["userid"]);}
|
||||
|
||||
//Show Edit Form
|
||||
$sql = "SELECT * FROM `t_userprofiles` WHERE `UserID` = '$userid' LIMIT 1";
|
||||
$sql = "SELECT * FROM `userprofiles` WHERE `UserID` = '$userid' LIMIT 1";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
$row = mysql_fetch_array($sql_result);
|
||||
$userid = $row["UserID"];
|
||||
|
@ -370,10 +370,10 @@ echo"<h1>Adding User...</h1>\n";
|
|||
if ($errors !="true") {
|
||||
$_POST["username"] = htmlspecialchars($_POST["username"]);
|
||||
|
||||
$admin = $_POST["admin"];
|
||||
$editor = $_POST["editor"];
|
||||
$trusted = $_POST["trusted"];
|
||||
$disabled = $_POST["disabled"];
|
||||
$admin = escape_string($_POST["admin"]);
|
||||
$editor = escape_string($_POST["editor"]);
|
||||
$trusted = escape_string($_POST["trusted"]);
|
||||
$disabled = escape_string($_POST["disabled"]);
|
||||
//echo"$i - $admin - $editor - $trusted<br>\n";
|
||||
|
||||
if ($admin=="TRUE") { $mode="A";
|
||||
|
@ -383,13 +383,13 @@ if ($admin=="TRUE") { $mode="A";
|
|||
|
||||
if ($trusted !=="TRUE") {$trusted="FALSE"; }
|
||||
|
||||
$username = $_POST[username];
|
||||
$useremail = $_POST[useremail];
|
||||
$userwebsite = $_POST[userwebsite];
|
||||
$userpass = $_POST[userpass];
|
||||
$useremailhide = $_POST[useremailhide];
|
||||
$username = escape_string($_POST[username]);
|
||||
$useremail = escape_string($_POST[useremail]);
|
||||
$userwebsite = escape_string($_POST[userwebsite]);
|
||||
$userpass = escape_string($_POST[userpass]);
|
||||
$useremailhide = escape_string($_POST[useremailhide]);
|
||||
if (checkFormKey()) {
|
||||
$sql = "INSERT INTO `t_userprofiles` (`UserName`, `UserEmail`, `UserWebsite`, `UserPass`, `UserMode`, `UserTrusted`, `UserEmailHide`) VALUES ('$username', '$useremail', '$userwebsite', '$userpass', '$mode', '$trusted', '$useremailhide');";
|
||||
$sql = "INSERT INTO `userprofiles` (`UserName`, `UserEmail`, `UserWebsite`, `UserPass`, `UserMode`, `UserTrusted`, `UserEmailHide`) VALUES ('$username', '$useremail', '$userwebsite', '$userpass', '$mode', '$trusted', '$useremailhide');";
|
||||
$sql_result = mysql_query($sql) or trigger_error("<FONT COLOR=\"#FF0000\"><B>MySQL Error ".mysql_errno().": ".mysql_error()."</B></FONT>", E_USER_NOTICE);
|
||||
if ($sql_result) {
|
||||
include"mail_newaccount.php";
|
||||
|
@ -420,13 +420,13 @@ $useremailhide = $_POST[useremailhide];
|
|||
|
||||
<?php
|
||||
} else if ($function=="changepassword") {
|
||||
if (!$userid) {$userid = $_GET["userid"]; }
|
||||
if (!$userid) {$userid = escape_string($_GET["userid"]); }
|
||||
|
||||
//Set Password Change if this is a POST.
|
||||
if ($_POST["submit"]=="Change Password") {
|
||||
echo"<h1>Changing Password, please wait...</h1>\n";
|
||||
$userid = $_POST["userid"];
|
||||
$sql = "SELECT `UserPass`, `UserEmail` FROM `t_userprofiles` WHERE `UserID` = '$userid' LIMIT 1";
|
||||
$userid = escape_string($_POST["userid"]);
|
||||
$sql = "SELECT `UserPass`, `UserEmail` FROM `userprofiles` WHERE `UserID` = '$userid' LIMIT 1";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
$row = mysql_fetch_array($sql_result);
|
||||
$userpass = $row["UserPass"];
|
||||
|
@ -442,7 +442,7 @@ if ($_POST["submit"]=="Change Password") {
|
|||
|
||||
$sql_result = false;
|
||||
if (checkFormKey()) {
|
||||
$sql = "UPDATE `t_userprofiles` SET `UserPass`='$userpass' WHERE `UserID`='$userid'";
|
||||
$sql = "UPDATE `userprofiles` SET `UserPass`='$userpass' WHERE `UserID`='$userid'";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("<FONT COLOR=\"#FF0000\"><B>MySQL Error ".mysql_errno().": ".mysql_error()."</B></FONT>", E_USER_NOTICE);
|
||||
}
|
||||
if ($sql_result) {
|
||||
|
@ -464,15 +464,15 @@ if ($_POST["submit"]=="Change Password") {
|
|||
$newpassword = substr(md5(mt_rand()),0,14);
|
||||
$password_plain = $newpassword;
|
||||
$userpass = md5($newpassword);
|
||||
$userid = $_POST["userid"];
|
||||
$userid = escape_string($_POST["userid"]);
|
||||
|
||||
$sql = "SELECT `UserEmail` FROM `t_userprofiles` WHERE `UserID` = '$userid' LIMIT 1";
|
||||
$sql = "SELECT `UserEmail` FROM `userprofiles` WHERE `UserID` = '$userid' LIMIT 1";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
$row = mysql_fetch_array($sql_result);
|
||||
$email = $row["UserEmail"];
|
||||
|
||||
if (checkFormKey()) {
|
||||
$sql = "UPDATE `t_userprofiles` SET `UserPass`='$userpass' WHERE `UserID`='$userid'";
|
||||
$sql = "UPDATE `userprofiles` SET `UserPass`='$userpass' WHERE `UserID`='$userid'";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("<FONT COLOR=\"#FF0000\"><B>MySQL Error ".mysql_errno().": ".mysql_error()."</B></FONT>", E_USER_NOTICE);
|
||||
if ($sql_result) {
|
||||
include"mail_newpassword.php";
|
||||
|
@ -481,11 +481,11 @@ if ($_POST["submit"]=="Change Password") {
|
|||
}
|
||||
}
|
||||
|
||||
if (!$userid) { $userid = $_POST["userid"]; }
|
||||
if (!$userid) { $userid = escape_string($_POST["userid"]); }
|
||||
//Get Name of User for Form
|
||||
$sql = "SELECT `UserName` FROM `t_userprofiles` WHERE `UserID` = '$userid' LIMIT 1";
|
||||
$sql = "SELECT `UserName` FROM `userprofiles` WHERE `UserID` = '$userid' LIMIT 1";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
$row = mysql_fetch_array($sql_result);
|
||||
$row = mysql_fetch_array($sql_result);
|
||||
$username = $row["UserName"];
|
||||
?>
|
||||
<h1>Change password for <?php echo"$username"; ?></h1>
|
||||
|
|
|
@ -45,14 +45,14 @@ require"../core/config.php";
|
|||
<head>
|
||||
<?php
|
||||
//Bookmarking-Friendly Page Title
|
||||
$sql = "SELECT UserName FROM `t_userprofiles` WHERE UserID = '$_GET[id]' LIMIT 1";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
if (mysql_num_rows($sql_result)===0) {
|
||||
$return = page_error("2","Author ID is Invalid or Missing.");
|
||||
exit;
|
||||
|
||||
}
|
||||
$row = mysql_fetch_array($sql_result);
|
||||
$id = escape_string($_GET["id"]);
|
||||
$sql = "SELECT UserName FROM `userprofiles` WHERE UserID = '$id' LIMIT 1";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
if (mysql_num_rows($sql_result)===0) {
|
||||
$return = page_error("2","Author ID is Invalid or Missing.");
|
||||
exit;
|
||||
}
|
||||
$row = mysql_fetch_array($sql_result);
|
||||
?>
|
||||
|
||||
<TITLE>Mozilla Update :: Extensions - Author Profile: <?php echo"$row[UserName]"; ?></TITLE>
|
||||
|
@ -71,8 +71,8 @@ include"$page_header";
|
|||
<div id="mainContent">
|
||||
|
||||
<?php
|
||||
$userid = $_GET["id"];
|
||||
$sql = "SELECT * FROM `t_userprofiles` WHERE `UserID` = '$userid' LIMIT 1";
|
||||
$userid = escape_string($_GET["id"]);
|
||||
$sql = "SELECT * FROM `userprofiles` WHERE `UserID` = '$userid' LIMIT 1";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
$row = mysql_fetch_array($sql_result);
|
||||
$userid = $row["UserID"];
|
||||
|
@ -102,9 +102,9 @@ echo"<A HREF=\"mailto:$useremail\">$useremail</A>";
|
|||
<BR>
|
||||
<h2>All Extensions and Themes by <?php echo"$username"; ?></h2>
|
||||
<?php
|
||||
$sql = "SELECT TM.ID, TM.Type, TM.Name, TM.Description, TM.DateUpdated, TM.TotalDownloads, TU.UserEmail FROM `t_main` TM
|
||||
LEFT JOIN t_authorxref TAX ON TM.ID = TAX.ID
|
||||
INNER JOIN t_userprofiles TU ON TAX.UserID = TU.UserID
|
||||
$sql = "SELECT TM.ID, TM.Type, TM.Name, TM.Description, TM.DateUpdated, TM.TotalDownloads, TU.UserEmail FROM `main` TM
|
||||
LEFT JOIN authorxref TAX ON TM.ID = TAX.ID
|
||||
INNER JOIN userprofiles TU ON TAX.UserID = TU.UserID
|
||||
WHERE TU.UserID = '$userid' AND TM.Type !='P'
|
||||
ORDER BY `Type` , `Name` ";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
|
@ -112,7 +112,7 @@ ORDER BY `Type` , `Name` ";
|
|||
while ($row = mysql_fetch_array($sql_result)) {
|
||||
|
||||
|
||||
$sql2 = "SELECT `vID`, `Version` FROM `t_version` WHERE `ID` = '$row[ID]' AND `approved` = 'YES' ORDER BY `Version` ASC LIMIT 1";
|
||||
$sql2 = "SELECT `vID`, `Version` FROM `version` WHERE `ID` = '$row[ID]' AND `approved` = 'YES' ORDER BY `Version` ASC LIMIT 1";
|
||||
$sql_result2 = mysql_query($sql2, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
while ($row2 = mysql_fetch_array($sql_result2)) {
|
||||
$vid = $row2["vID"];
|
||||
|
|
|
@ -36,58 +36,45 @@
|
|||
//
|
||||
// ***** END LICENSE BLOCK *****
|
||||
?>
|
||||
<div id="side">
|
||||
<?php
|
||||
unset($typename);
|
||||
$types = array("E"=>"Extensions","T"=>"Themes","U"=>"Updates");
|
||||
$typename = $types["$type"];
|
||||
<div id="side">
|
||||
<?php
|
||||
$type="E";
|
||||
$types = array("E"=>"Extensions","T"=>"Themes");
|
||||
$typename = $types["$type"];
|
||||
$uriparams_skip="category";
|
||||
|
||||
$uriparams_skip="category";
|
||||
echo"<ul id=\"nav\">\n";
|
||||
|
||||
echo"<ul id=\"nav\">\n";
|
||||
echo" <li"; if (!$category AND $index !="yes") { echo" class=\"selected\""; } echo"><A HREF=\"showlist.php?".uriparams()."&category=All\" TITLE=\"Show All ".ucwords($typename)." Alphabetically\"><strong>All Extensions</strong></A></li>\n";
|
||||
|
||||
if (!$category AND $index !="yes") {echo"<SPAN CLASS=\"selected\">"; }
|
||||
echo"<li><A HREF=\"showlist.php?".uriparams()."&category=All\" TITLE=\"Show All ".ucwords($typename)." Alphabetically\"><strong>All Extensions</strong></A></li>\n";
|
||||
if (!$category AND $index !="yes") {echo"</SPAN>"; }
|
||||
echo" <li><ul>\n";
|
||||
|
||||
// Object Categories
|
||||
$sql = "SELECT `CatName`,`CatDesc` FROM `t_categories` WHERE `CatType` = '$type' and `CatApp` = '$application' ORDER BY `CatName`";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
while ($row = mysql_fetch_array($sql_result)) {
|
||||
$catname = $row["CatName"];
|
||||
$catdesc = $row["CatDesc"];
|
||||
if (strtolower($category) == strtolower($catname)) {echo"<SPAN CLASS=\"selected\">"; }
|
||||
echo"<li><A HREF=\"showlist.php?".uriparams()."&category=$catname\" TITLE=\"$catdesc\"><strong>$catname</strong></A></li>\n";
|
||||
if (strtolower($category) == strtolower($catname)) {echo"</SPAN>"; }
|
||||
}
|
||||
?>
|
||||
<?php
|
||||
$catname = "Editors Pick";
|
||||
$catdesc = ucwords($typename)." picked by the Mozilla Update Editors";
|
||||
if (strtolower($category) == strtolower($catname)) {echo"<SPAN CLASS=\"selected\">"; }
|
||||
echo"<li><A HREF=\"showlist.php?".uriparams()."&category=$catname\" TITLE=\"$catdesc\">Editor's Pick</A></li>\n";
|
||||
if (strtolower($category) == strtolower($catname)) {echo"</SPAN>"; }
|
||||
// Object Categories
|
||||
$sql = "SELECT `CatName`,`CatDesc` FROM `categories` WHERE `CatType` = '$type' and `CatApp` = '$application' ORDER BY `CatName`";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
while ($row = mysql_fetch_array($sql_result)) {
|
||||
$catname = $row["CatName"];
|
||||
$catdesc = $row["CatDesc"];
|
||||
echo" <li"; if (strtolower($category) == strtolower($catname)) { echo" class=\"selected\""; } echo"><a href=\"showlist.php?".uriparams()."&category=$catname\" title=\"$catdesc\">$catname</a></li>\n";
|
||||
}
|
||||
|
||||
$catname = "Popular";
|
||||
$catdesc = ucwords($typename)." downloaded the most over the last week.";
|
||||
if (strtolower($category) == strtolower($catname)) {echo"<SPAN CLASS=\"selected\">"; }
|
||||
echo"<li><A HREF=\"showlist.php?".uriparams()."&category=$catname\" TITLE=\"$catdesc\">$catname</A></li>\n";
|
||||
if (strtolower($category) == strtolower($catname)) {echo"</SPAN>"; }
|
||||
echo" </ul></li>\n";
|
||||
|
||||
$catname = "Top Rated";
|
||||
$catdesc = ucwords($typename)." rated the highest by site visitors";
|
||||
if (strtolower($category) == strtolower($catname)) {echo"<SPAN CLASS=\"selected\">"; }
|
||||
echo"<li><A HREF=\"showlist.php?".uriparams()."&category=$catname\" TITLE=\"$catdesc\">$catname</A></li>\n";
|
||||
if (strtolower($category) == strtolower($catname)) {echo"</SPAN>"; }
|
||||
$catname = "Editors Pick";
|
||||
$catdesc = ucwords($typename)." picked by the Mozilla Update Editors";
|
||||
echo" <li"; if (strtolower($category) == strtolower($catname)) { echo" class=\"selected\""; } echo"><a href=\"showlist.php?".uriparams()."&category=$catname\" title=\"$catdesc\"><strong>Editor's Pick</strong></a></li>\n";
|
||||
|
||||
$catname = "Newest";
|
||||
$catdesc = "Most recent ".ucwords($typename);
|
||||
if (strtolower($category) == strtolower($catname)) {echo"<SPAN CLASS=\"selected\">"; }
|
||||
echo"<li><A HREF=\"showlist.php?".uriparams()."&category=$catname\" TITLE=\"$catdesc\">$catname</A></li>\n";
|
||||
if (strtolower($category) == strtolower($catname)) {echo"</SPAN>"; }
|
||||
$catname = "Popular";
|
||||
$catdesc = ucwords($typename)." downloaded the most over the last week.";
|
||||
echo" <li"; if (strtolower($category) == strtolower($catname)) { echo" class=\"selected\""; } echo"><a href=\"showlist.php?".uriparams()."&category=$catname\" title=\"$catdesc\"><strong>$catname</strong></a></li>\n";
|
||||
|
||||
?>
|
||||
</ul>
|
||||
</DIV>
|
||||
<hr class="hide">
|
||||
<div id="mainContent">
|
||||
$catname = "Top Rated";
|
||||
$catdesc = ucwords($typename)." rated the highest by site visitors";
|
||||
echo" <li"; if (strtolower($category) == strtolower($catname)) { echo" class=\"selected\""; } echo"><a href=\"showlist.php?".uriparams()."&category=$catname\" title=\"$catdesc\"><strong>$catname</strong></a></li>\n";
|
||||
|
||||
$catname = "Newest";
|
||||
$catdesc = "Most recent ".ucwords($typename);
|
||||
echo"<li"; if (strtolower($category) == strtolower($catname)) { echo" class=\"selected\""; } echo"><a href=\"showlist.php?".uriparams()."&category=$catname\" title=\"$catdesc\"><strong>$catname</strong></a></li>\n";
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
|
@ -39,165 +39,169 @@
|
|||
<?php
|
||||
require"../core/config.php";
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html401/loose.dtd">
|
||||
<html lang="EN" dir="ltr">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
<meta http-equiv="Content-Language" content="en">
|
||||
<meta http-equiv="Content-Style-Type" content="text/css">
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html lang="en">
|
||||
|
||||
<TITLE>Mozilla Update :: Extensions - Add Features to Mozilla Software</TITLE>
|
||||
<head>
|
||||
<TITLE>Mozilla Update :: Extensions - Add Features to Mozilla Software</TITLE>
|
||||
|
||||
<?php
|
||||
include"$page_header";
|
||||
?>
|
||||
|
||||
<div id="mBody">
|
||||
<?php
|
||||
$type = "E";
|
||||
if ($_GET["application"]) {$application=$_GET["application"]; }
|
||||
<?php
|
||||
$index="yes";
|
||||
include"inc_sidebar.php";
|
||||
?>
|
||||
|
||||
$index="yes";
|
||||
include"inc_sidebar.php";
|
||||
?>
|
||||
<div id="mainContent">
|
||||
<h2><?php print(ucwords($application)); ?> Extensions</h2>
|
||||
<p class="first">Extensions are small add-ons that add new functionality to <?php print(ucwords($application)); ?>. They can add anything from a toolbar button to a completely new feature. They allow the browser to be customized to fit the personal needs of each user if they need addtional features<?php if ($application !=="mozilla") { ?>, while keeping <?php print(ucwords($application)); ?> small to download <?php } ?>.</p>
|
||||
|
||||
<div id="mBody">
|
||||
<h3>What is an Extension?</h3>
|
||||
<p>Extensions are small add-ons that add new functionality to <?php print(ucwords($application)); ?>.
|
||||
They can add anything from a toolbar button to a completely new feature. They allow the browser to be customized to fit the
|
||||
personal needs of each user if they need addtional features<?php if ($application !=="mozilla") { ?>, while keeping <?php print(ucwords($application)); ?> small
|
||||
to download <?php } ?>.</p>
|
||||
<?php
|
||||
//Get Current Version for Detected Application
|
||||
$sql = "SELECT `Version`, `major`, `minor`, `release`, `SubVer` FROM `applications` WHERE `AppName` = '$application' AND `public_ver` = 'YES' ORDER BY `major` DESC, `minor` DESC, `release` DESC, `SubVer` DESC LIMIT 1";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
$row = mysql_fetch_array($sql_result);
|
||||
$version = $row["Version"];
|
||||
$subver = $row["SubVer"];
|
||||
$release = "$row[major].$row[minor]";
|
||||
if ($row["release"]) {
|
||||
$release = ".$release$row[release]";
|
||||
}
|
||||
$currentver = $release;
|
||||
$currentver_display = $version;
|
||||
unset($version,$subver,$release);
|
||||
?>
|
||||
|
||||
<?php
|
||||
//Temporary!! Current Version Array Code
|
||||
$currentver_array = array("firefox"=>"1.0", "thunderbird"=>"0.9", "mozilla"=>"1.7");
|
||||
$currentver_display_array = array("firefox"=>"1.0", "thunderbird"=>"0.9", "mozilla"=>"1.7.x");
|
||||
$currentver = $currentver_array[$application];
|
||||
$currentver_display = $currentver_display_array[$application];
|
||||
?>
|
||||
<h2>Top Rated <?php print(ucwords($application)); ?> Extensions</h2>
|
||||
<p class="first">Ratings are based on feedback from people who use these extensions.</p>
|
||||
<ol>
|
||||
|
||||
<!-- Start News Columns -->
|
||||
<div class="frontcolumn">
|
||||
<a href="http://www.mozilla.org/news.rdf"><img src="../images/rss.png" width="28" height="16" class="rss" alt="Mozilla News in RSS"></a><h2 style="margin-top: 0;"><a href="showlist.php?application=<?php echo uriparams(); ?>&category=Newest" title="New Extensions on Mozilla Update">New Additions</a></h2>
|
||||
<span class="newsSubline">New and Updated Extensions</span>
|
||||
<ul class="news">
|
||||
<?php
|
||||
$r=0;
|
||||
$sql = "SELECT TM.ID, TM.Name, TM.Description, TM.Rating
|
||||
FROM `main` TM
|
||||
INNER JOIN version TV ON TM.ID = TV.ID
|
||||
INNER JOIN applications TA ON TV.AppID = TA.AppID
|
||||
WHERE `Type` = '$type' AND `AppName` = '$application' AND `minAppVer_int` <='$currentver' AND `maxAppVer_int` >= '$currentver' AND `Rating` > '0' AND `approved` = 'YES' GROUP BY `Name` ORDER BY `Rating` DESC, `Name` ASC, TV.Version DESC";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
while ($row = mysql_fetch_array($sql_result)) {
|
||||
$r++;
|
||||
$s++;
|
||||
$id = $row["ID"];
|
||||
$name = $row["Name"];
|
||||
$description = $row["Description"];
|
||||
$rating = $row["Rating"];
|
||||
|
||||
<?php
|
||||
$i=0;
|
||||
$sql = "SELECT TM.ID, TV.vID, TM.Name, TV.Version, TV.DateAdded
|
||||
FROM `t_main` TM
|
||||
INNER JOIN t_version TV ON TM.ID = TV.ID
|
||||
INNER JOIN t_applications TA ON TV.AppID = TA.AppID
|
||||
INNER JOIN t_os TOS ON TV.OSID = TOS.OSID
|
||||
WHERE `Type` = '$type' AND `AppName` = '$application' AND (`OSName` = '$_SESSION[app_os]' OR `OSName` = 'ALL') AND `approved` = 'YES' ORDER BY `DateAdded` DESC ";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
while ($row = mysql_fetch_array($sql_result)) {
|
||||
$i++;
|
||||
$id = $row["ID"];
|
||||
$vid = $row["vID"];
|
||||
$name = $row["Name"];
|
||||
$version = $row["Version"];
|
||||
$dateadded = $row["DateAdded"];
|
||||
//Create Customizeable Datestamp
|
||||
$timestamp = strtotime("$dateadded");
|
||||
$dateadded = gmdate("M d", $timestamp); // $dateupdated = gmdate("F d, Y g:i:sa T", $timestamp);
|
||||
|
||||
if ($lastname == $name) {$i--; continue; }
|
||||
echo"<li>\n";
|
||||
echo"<div class=\"date\">$dateadded</div>\n";
|
||||
echo"<a href=\"moreinfo.php?".uriparams()."&id=$id\">$name $version</a><BR>\n";
|
||||
echo"</li>\n";
|
||||
echo" <li>";
|
||||
echo"<a href=\"moreinfo.php?".uriparams()."&id=$id\"><strong>$name</strong></a>, $rating stars<br>";
|
||||
echo"$description";
|
||||
echo"</li>\n";
|
||||
|
||||
$lastname = $name;
|
||||
if ($i >= "5") {break;}
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="frontcolumn">
|
||||
<a href="http://planet.mozilla.org/rss10.xml"><img src="../images/rss.png" width="28" height="16" class="rss" alt="Mozilla Weblogs in RSS"></a><h2 style="margin-top: 0;"><a href="showlist.php?<?php echo uriparams(); ?>&category=Popular" title="Most Popular Extensions, based on Downloads over the last week">Most Popular</a></h2>
|
||||
<span class="newsSubline">Downloads over the last week</span>
|
||||
<ul class="news">
|
||||
if ($r >= "5") {
|
||||
break;
|
||||
}
|
||||
}
|
||||
unset($usednames, $usedversions, $r, $s, $i);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$i=0;
|
||||
$sql = "SELECT TM.ID, TV.vID,TM.Name, TV.Version, TM.TotalDownloads, TM.downloadcount
|
||||
FROM `t_main` TM
|
||||
INNER JOIN t_version TV ON TM.ID = TV.ID
|
||||
INNER JOIN t_applications TA ON TV.AppID = TA.AppID
|
||||
WHERE `Type` = '$type' AND `AppName` = '$application' AND `minAppVer_int` <='$currentver' AND `maxAppVer_int` >= '$currentver' AND `downloadcount` > '0' AND `approved` = 'YES' ORDER BY `downloadcount` DESC ";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
while ($row = mysql_fetch_array($sql_result)) {
|
||||
$i++;
|
||||
$id = $row["ID"];
|
||||
$vid = $row["vID"];
|
||||
$name = $row["Name"];
|
||||
$version = $row["Version"];
|
||||
$downloadcount = $row["downloadcount"];
|
||||
$totaldownloads = $row["TotalDownloads"];
|
||||
if ($lastname == $name) {$i--; continue; }
|
||||
echo"<li>\n";
|
||||
echo"<div class=\"date\">$i</div>\n";
|
||||
echo"<a href=\"moreinfo.php?".uriparams()."&id=$id\">$name</a><br>\n";
|
||||
echo"<span class=\"newsSubline\">($downloadcount downloads)</span>\n";
|
||||
echo"</li>\n";
|
||||
$lastname = $name;
|
||||
if ($i >= "5") {break;}
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</ol>
|
||||
<h2>Most Popular <?php print(ucwords($application)); ?> Extensions</h2>
|
||||
<p class="first">The most popular downloads over the last week.</p>
|
||||
<ol>
|
||||
<?php
|
||||
$i=0;
|
||||
$sql = "SELECT TM.ID, TM.Name, TM.Description, TM.TotalDownloads, TM.downloadcount FROM `main` TM
|
||||
INNER JOIN version TV ON TM.ID = TV.ID
|
||||
INNER JOIN applications TA ON TV.AppID = TA.AppID
|
||||
INNER JOIN os TOS ON TV.OSID = TOS.OSID
|
||||
WHERE `Type` = 'E' AND `AppName` = '$application' AND `minAppVer_int` <='$currentver' AND `maxAppVer_int` >= '$currentver' AND (`OSName` = '$OS' OR `OSName` = 'ALL') AND `downloadcount` > '0' AND `approved` = 'YES' ORDER BY `downloadcount` DESC ";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
if (mysql_num_rows($sql_result)=="0") {
|
||||
echo" <li>No Popular Extensions</li>\n";
|
||||
}
|
||||
while ($row = mysql_fetch_array($sql_result)) {
|
||||
$i++;
|
||||
$id = $row["ID"];
|
||||
$vid = $row["vID"];
|
||||
$name = $row["Name"];
|
||||
$description = $row["Description"];
|
||||
$downloadcount = $row["downloadcount"];
|
||||
$totaldownloads = $row["TotalDownloads"];
|
||||
$typename="extensions";
|
||||
if ($lastname == $name) {
|
||||
$i--;
|
||||
continue;
|
||||
}
|
||||
|
||||
echo" <li>";
|
||||
echo"<a href=\"/$typename/moreinfo.php?".uriparams()."&id=$id\"><strong>$name</strong></a>, $downloadcount downloads<br>";
|
||||
echo"$description";
|
||||
echo"</li>\n";
|
||||
|
||||
$lastname = $name;
|
||||
if ($i >= "5") {
|
||||
break;
|
||||
}
|
||||
}
|
||||
?>
|
||||
</ol>
|
||||
<a href="/rss/?application=<?php echo"$application"; ?>&type=E&list=newest"><img src="../images/rss.png" width="16" height="16" class="rss" alt="News Additions in RSS"></a>
|
||||
<h2>Newest <?php print(ucwords($application)); ?> Extensions</h2>
|
||||
<p class="first">New and updated extensions. Subscribe to <a href="/rss/?application=<?php echo"$application"; ?>&type=E&list=newest">our RSS feed</a> to be notified when new extensions are added.</p>
|
||||
<ol>
|
||||
|
||||
<?php
|
||||
$i=0;
|
||||
$sql = "SELECT TM.ID, TM.Type, TM.Description, TM.Name, TV.Version, TV.DateAdded
|
||||
FROM `main` TM
|
||||
INNER JOIN version TV ON TM.ID = TV.ID
|
||||
INNER JOIN applications TA ON TV.AppID = TA.AppID
|
||||
INNER JOIN os TOS ON TV.OSID = TOS.OSID
|
||||
WHERE `Type`='E' AND `AppName` = '$application' AND `minAppVer_int` <='$currentver' AND `maxAppVer_int` >= '$currentver' AND (`OSName` = '$OS' OR `OSName` = 'ALL') AND `approved` = 'YES' ORDER BY `DateAdded` DESC ";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
if (mysql_num_rows($sql_result)=="0") {
|
||||
echo" <li>Nothing Recently Added</li>\n";
|
||||
}
|
||||
while ($row = mysql_fetch_array($sql_result)) {
|
||||
$i++;
|
||||
$id = $row["ID"];
|
||||
$type = $row["Type"];
|
||||
$name = $row["Name"];
|
||||
$description = $row["Description"];
|
||||
$version = $row["Version"];
|
||||
$dateadded = $row["DateAdded"];
|
||||
$dateadded = gmdate("F d, Y", strtotime("$dateadded"));
|
||||
//$dateupdated = gmdate("F d, Y g:i:sa T", $timestamp);
|
||||
$typename = "extensions";
|
||||
|
||||
if ($lastname == $name) {
|
||||
$i--;
|
||||
continue;
|
||||
}
|
||||
|
||||
echo" <li>";
|
||||
echo"<a href=\"/$typename/moreinfo.php?".uriparams()."&id=$id\"><strong>$name $version</strong></a>, $dateadded<br>";
|
||||
echo"$description";
|
||||
echo"</li>\n";
|
||||
|
||||
$lastname = $name;
|
||||
if ($i >= "8") {
|
||||
break;
|
||||
}
|
||||
}
|
||||
?>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="frontcolumn">
|
||||
<a href="http://www.mozillazine.org/atom.xml"><img src="../images/rss.png" width="28" height="16" class="rss" alt="MozillaZine News in RSS"></a><h2 style="margin-top: 0;"><a href="showlist.php?<?php echo uriparams(); ?>&category=Top Rated" title="Highest Rated Extensions by the Community">Top Rated</a></h2>
|
||||
<span class="newsSubline">Based on feedback from visitors</span>
|
||||
<ul class="news">
|
||||
<!-- closes #mBody-->
|
||||
|
||||
<?php
|
||||
$r=0;
|
||||
$usednames = array();
|
||||
$sql = "SELECT TM.ID, TV.vID, TM.Name, TV.Version, TM.Rating, TU.UserName
|
||||
FROM `t_main` TM
|
||||
INNER JOIN t_version TV ON TM.ID = TV.ID
|
||||
INNER JOIN t_applications TA ON TV.AppID = TA.AppID
|
||||
INNER JOIN t_authorxref TAX ON TAX.ID = TM.ID
|
||||
INNER JOIN t_userprofiles TU ON TU.UserID = TAX.UserID
|
||||
WHERE `Type` = '$type' AND `AppName` = '$application' AND `minAppVer_int` <='$currentver' AND `maxAppVer_int` >= '$currentver' AND `Rating` > '0' AND `approved` = 'YES' ORDER BY `Rating` DESC, `Name` ASC, `Version` DESC";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
while ($row = mysql_fetch_array($sql_result)) {
|
||||
$r++; $s++;
|
||||
$id = $row["ID"];
|
||||
$vid = $row["vID"];
|
||||
$name = $row["Name"];
|
||||
$version = $row["Version"];
|
||||
$rating = $row["Rating"];
|
||||
$arraysearch = array_search("$name", $usednames);
|
||||
if ($arraysearch !== false AND $usedversions[$arraysearch]['version']<$version) {$r--; continue; }
|
||||
|
||||
echo"<li>\n";
|
||||
echo"<div class=\"date\">$rating stars</div>\n";
|
||||
echo"<a href=\"moreinfo.php?".uriparams()."&id=$id\">$name</a>\n";
|
||||
echo"</li>\n";
|
||||
|
||||
|
||||
$usednames[$s] = $name;
|
||||
$usedversions[$s] = $version;
|
||||
if ($r >= "5") {break;}
|
||||
}
|
||||
unset($usednames, $usedversions, $r, $s, $i);
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<!-- End News Columns -->
|
||||
<br style="clear: both;">
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<BR>
|
||||
<?php
|
||||
include"$page_footer";
|
||||
?>
|
||||
</BODY>
|
||||
</HTML>
|
||||
</body>
|
||||
</html>
|
|
@ -39,26 +39,21 @@
|
|||
<?php
|
||||
require"../core/config.php";
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html401/loose.dtd">
|
||||
<html lang="EN" dir="ltr">
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
|
||||
<?php
|
||||
//----------------------------
|
||||
//Global General $_GET variables
|
||||
//Global $_GET variables
|
||||
//----------------------------
|
||||
//Detection Override
|
||||
//if ($_GET["version"]) {$app_version=$_GET["version"]; $_SESSION["app_version"]=$_GET["version"];}
|
||||
|
||||
if ($_GET["numpg"]) {$_SESSION["items_per_page"]=$_GET["numpg"]; }
|
||||
if ($_SESSION["items_per_page"]) {$items_per_page = $_SESSION["items_per_page"];} else {$items_per_page="10";}//Default Num per Page is 10
|
||||
|
||||
if ($_GET["category"]) { $_SESSION["category"] = $_GET["category"]; }
|
||||
if ($_SESSION["category"]) {$category = $_SESSION["category"];}
|
||||
if ($_GET["numpg"]) {$items_per_page = escape_string($_GET["numpg"]); } else {$items_per_page="10";}//Default Num per Page is 10
|
||||
if ($_GET["category"]) { $category = escape_string($_GET["category"]); }
|
||||
if ($category=="All") {$category="";}
|
||||
|
||||
|
||||
if (!$_GET["pageid"]) {$pageid="1"; } else { $pageid = $_GET["pageid"]; } //Default PageID is 1
|
||||
if (!$_GET["pageid"]) {$pageid="1"; } else { $pageid = escape_string($_GET["pageid"]); } //Default PageID is 1
|
||||
$type="E"; //Default Type is E
|
||||
|
||||
unset($typename);
|
||||
|
@ -83,29 +78,28 @@ $rssfeed = "rss/?application=" . $application . "&type=" . $type . "&list=" . $r
|
|||
if (!$category) {$categoryname = "All $typename"; } else {$categoryname = $category; }
|
||||
?>
|
||||
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
<meta http-equiv="Content-Language" content="en">
|
||||
<meta http-equiv="Content-Style-Type" content="text/css">
|
||||
|
||||
<TITLE>Mozilla Update :: Extensions - List - <?php echo"$categoryname"; if ($pageid) {echo" - Page $pageid"; } ?></TITLE>
|
||||
|
||||
<?php
|
||||
if ($rsslist) {
|
||||
echo"<link rel=\"alternate\" type=\"application/rss+xml\" title=\"RSS\" href=\"http://$_SERVER[HTTP_HOST]/$rssfeed\">";
|
||||
echo"<link rel=\"alternate\" type=\"application/rss+xml\" title=\"RSS\" href=\"http://$sitehostname/$rssfeed\">";
|
||||
}
|
||||
?>
|
||||
|
||||
<LINK REL="STYLESHEET" TYPE="text/css" HREF="/core/update.css">
|
||||
<?php
|
||||
installtrigger("extensions");
|
||||
|
||||
include"$page_header";
|
||||
|
||||
// -----------------------------------------------
|
||||
// Begin Content of the Page Here
|
||||
// -----------------------------------------------
|
||||
?>
|
||||
<div id="mBody">
|
||||
<?php
|
||||
include"inc_sidebar.php";
|
||||
?>
|
||||
|
||||
include"inc_sidebar.php";
|
||||
<div id="mainContent">
|
||||
|
||||
<?php
|
||||
|
||||
//Query for List Creation
|
||||
$s = "0";
|
||||
|
@ -128,13 +122,13 @@ $sql = "SELECT TM.ID, TM.Name, TM.DateAdded, TM.DateUpdated, TM.Homepage, TM.Des
|
|||
SUBSTRING(MAX(CONCAT(LPAD(TV.Version, 6, '0'), TV.vID)), 7) AS MAXvID,
|
||||
MAX(TV.Version) AS Version,
|
||||
TA.AppName, TOS.OSName
|
||||
FROM `t_main` TM
|
||||
INNER JOIN t_version TV ON TM.ID = TV.ID
|
||||
INNER JOIN t_applications TA ON TV.AppID = TA.AppID
|
||||
INNER JOIN t_os TOS ON TV.OSID = TOS.OSID ";
|
||||
if ($category && $category !=="%") { $sql .="INNER JOIN t_categoryxref TCX ON TM.ID = TCX.ID
|
||||
INNER JOIN t_categories TC ON TCX.CategoryID = TC.CategoryID "; }
|
||||
if ($editorpick=="true") { $sql .="INNER JOIN t_reviews TR ON TM.ID = TR.ID "; }
|
||||
FROM `main` TM
|
||||
INNER JOIN version TV ON TM.ID = TV.ID
|
||||
INNER JOIN applications TA ON TV.AppID = TA.AppID
|
||||
INNER JOIN os TOS ON TV.OSID = TOS.OSID ";
|
||||
if ($category && $category !=="%") { $sql .="INNER JOIN categoryxref TCX ON TM.ID = TCX.ID
|
||||
INNER JOIN categories TC ON TCX.CategoryID = TC.CategoryID "; }
|
||||
if ($editorpick=="true") { $sql .="INNER JOIN reviews TR ON TM.ID = TR.ID "; }
|
||||
$sql .="WHERE Type = '$type' AND AppName = '$application' AND `approved` = 'YES' ";
|
||||
if ($editorpick=="true") { $sql .="AND TR.Pick = 'YES' "; }
|
||||
if ($category && $category !=="%") {$sql .="AND CatName LIKE '$category' ";}
|
||||
|
@ -154,18 +148,17 @@ unset($sql);
|
|||
//Get Total Results from Result Query & Populate Page Control Vars.
|
||||
$sql_result = mysql_query($resultsquery, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
$totalresults = mysql_num_rows($sql_result);
|
||||
|
||||
$num_pages = ceil($totalresults/$items_per_page); //Total # of Pages
|
||||
if ($pageid>$num_pages) {$pageid=$num_pages;} //Check PageId for Validity
|
||||
$startpoint = ($pageid-1)*$items_per_page;
|
||||
if ($startpoint<0) {$startpoint=0; $startitem=0;}
|
||||
$startitem = $startpoint+1;
|
||||
$enditem = $startpoint+$items_per_page;
|
||||
if ($totalresults=="0") {$startitem = "0"; }
|
||||
if ($enditem>$totalresults) {$enditem=$totalresults;} //Verify EndItem
|
||||
if ($pageid>$num_pages) {$pageid=$num_pages;} //Check PageId for Validity
|
||||
$startpoint = ($pageid-1)*$items_per_page;
|
||||
if ($startpoint<0) {$startpoint=0; $startitem=0;}
|
||||
$startitem = $startpoint+1;
|
||||
$enditem = $startpoint+$items_per_page;
|
||||
if ($totalresults=="0") {$startitem = "0"; }
|
||||
if ($enditem>$totalresults) {$enditem=$totalresults;} //Verify EndItem
|
||||
|
||||
|
||||
if ($_GET[nextnum]) {$startpoint = $_GET["nextnum"]; }
|
||||
if ($_GET[nextnum]) {$startpoint = escape_string($_GET["nextnum"]); }
|
||||
//$resultsquery = str_replace("GROUP BY `Name` ", "", $resultsquery);
|
||||
$resultsquery .= " LIMIT $startpoint , $items_per_page"; //Append LIMIT clause to result query
|
||||
|
||||
|
@ -173,16 +166,7 @@ if ($category=="%") {$category = $catname; unset($catname); }
|
|||
|
||||
//Now Showing Box
|
||||
if (!$category) {$categoryname="All"; } else {$categoryname = $category;}
|
||||
echo"<H3>".ucwords("$application $typename » $categoryname ")."</H3>\n";
|
||||
|
||||
$sql = "SELECT `CatDesc` FROM `t_categories` WHERE `CatName`='$category' and `CatType`='$type' LIMIT 1";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
$row = mysql_fetch_array($sql_result);
|
||||
$categorydescription = $row["CatDesc"];
|
||||
if ($category=="All") {$categorydescription="All listed extensions for $application";}
|
||||
|
||||
if ($categorydescription) {echo"$categorydescription<br>\n";}
|
||||
|
||||
echo"<H2>".ucwords("$application $typename » $categoryname ")."</H2>\n";
|
||||
|
||||
if (!$OS) {$OS="all";}
|
||||
if (!$category) {$categoryname="All"; } else {$categoryname = $category;}
|
||||
|
@ -191,17 +175,24 @@ echo"".ucwords("$typename")." $startitem - $enditem of $totalresults
|
|||
|
||||
$previd=$pageid-1;
|
||||
if ($previd >"0") {
|
||||
echo"<a href=\"?".uriparams()."&pageid=$previd\">« Previous</A> • ";
|
||||
echo"<a href=\"?".uriparams()."&pageid=$previd\">« Previous</A> • ";
|
||||
}
|
||||
echo"Page $pageid of $num_pages";
|
||||
|
||||
$nextid=$pageid+1;
|
||||
if ($pageid <$num_pages) {
|
||||
echo" • <a href=\"?".uriparams()."&pageid=$nextid\">Next »</a>";
|
||||
echo" • <a href=\"?".uriparams()."&pageid=$nextid\">Next »</a>";
|
||||
}
|
||||
|
||||
echo"<br>\n";
|
||||
|
||||
echo"<br><br>\n";
|
||||
$sql = "SELECT `CatDesc` FROM `categories` WHERE `CatName`='$category' and `CatType`='$type' LIMIT 1";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
$row = mysql_fetch_array($sql_result);
|
||||
$categorydescription = $row["CatDesc"];
|
||||
if ($category=="All") {$categorydescription="All listed extensions for $application";}
|
||||
|
||||
if ($categorydescription) {echo"$categorydescription<br>\n";}
|
||||
|
||||
|
||||
|
||||
|
@ -209,6 +200,7 @@ echo"<br><br>\n";
|
|||
|
||||
echo"<DIV class=\"key-point\">";
|
||||
echo"<FORM NAME=\"listviews\" METHOD=\"GET\" ACTION=\"showlist.php\">\n";
|
||||
echo"<div>";
|
||||
echo"<INPUT NAME=\"application\" TYPE=\"hidden\" VALUE=\"$application\">\n";
|
||||
echo"<INPUT NAME=\"category\" TYPE=\"hidden\" VALUE=\"$category\">\n";
|
||||
//Items-Per-Page
|
||||
|
@ -226,7 +218,7 @@ echo"</SELECT>\n";
|
|||
// Operating Systems
|
||||
echo" OS: ";
|
||||
echo"<SELECT name=\"os\">\n";
|
||||
$sql = "SELECT `OSName` FROM `t_os` ORDER BY `OSName`";
|
||||
$sql = "SELECT `OSName` FROM `os` ORDER BY `OSName`";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
while ($row = mysql_fetch_array($sql_result)) {
|
||||
$osname = $row["OSName"];
|
||||
|
@ -242,7 +234,7 @@ echo"Versions: ";
|
|||
echo"<SELECT name=\"version\">";
|
||||
if ($application != "thunderbird") {echo"<OPTION value=\"auto-detect\">Auto-Detect</OPTION>";}
|
||||
$app_orig = $application; //Store original to protect against possible corruption
|
||||
$sql = "SELECT `Version`, `major`, `minor`, `release`, `SubVer` FROM `t_applications` WHERE `AppName` = '$application' AND `public_ver` = 'YES' ORDER BY `major` DESC, `minor` DESC, `release` DESC, `SubVer` DESC";
|
||||
$sql = "SELECT `Version`, `major`, `minor`, `release`, `SubVer` FROM `applications` WHERE `AppName` = '$application' AND `public_ver` = 'YES' ORDER BY `major` DESC, `minor` DESC, `release` DESC, `SubVer` DESC";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
while ($row = mysql_fetch_array($sql_result)) {
|
||||
$version = $row["Version"];
|
||||
|
@ -265,18 +257,18 @@ $application = $app_orig; unset($app_orig);
|
|||
|
||||
echo"</SELECT>\n";
|
||||
echo"<INPUT NAME=\"submit\" TYPE=\"SUBMIT\" VALUE=\"Update\">";
|
||||
echo"</FORM>";
|
||||
echo"</div></FORM>";
|
||||
echo"</DIV>\n";
|
||||
|
||||
echo" <br>\n";
|
||||
|
||||
//---------------------------------
|
||||
// Begin List
|
||||
//---------------------------------
|
||||
//Get Author Data and Create $authorarray and $authorids
|
||||
$sql = "SELECT TM.Name, TU.UserName, TU.UserID, TU.UserEmail FROM `t_main` TM
|
||||
LEFT JOIN t_authorxref TAX ON TM.ID = TAX.ID
|
||||
INNER JOIN t_userprofiles TU ON TAX.UserID = TU.UserID
|
||||
ORDER BY `Type` , `Name` ASC "; // TM.Type = 'E'
|
||||
$sql = "SELECT TM.Name, TU.UserName, TU.UserID, TU.UserEmail FROM `main` TM
|
||||
LEFT JOIN authorxref TAX ON TM.ID = TAX.ID
|
||||
INNER JOIN userprofiles TU ON TAX.UserID = TU.UserID
|
||||
ORDER BY `Type` , `Name` ASC ";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
while ($row = mysql_fetch_array($sql_result)) {
|
||||
$authorarray[$row[Name]][] = $row["UserName"];
|
||||
|
@ -284,7 +276,7 @@ ORDER BY `Type` , `Name` ASC "; // TM.Type = 'E'
|
|||
}
|
||||
|
||||
//Assemble a display application version array
|
||||
$sql = "SELECT `Version`, `major`, `minor`, `release`, `SubVer` FROM `t_applications` WHERE `AppName`='$application' ORDER BY `major`,`minor`";
|
||||
$sql = "SELECT `Version`, `major`, `minor`, `release`, `SubVer` FROM `applications` WHERE `AppName`='$application' ORDER BY `major`,`minor`";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
while ($row = mysql_fetch_array($sql_result)) {
|
||||
$version = $row["Version"];
|
||||
|
@ -316,9 +308,9 @@ $sql = "$resultsquery";
|
|||
$populardownloads = $row["downloadcount"];
|
||||
|
||||
//Get Version Record for Referenced MAXvID from list query
|
||||
$sql2 = "SELECT TV.vID, TV.Version, TV.MinAppVer, TV.MaxAppVer, TV.Size, TV.DateAdded AS VerDateAdded, TV.DateUpdated AS VerDateUpdated, TV.URI, TV.Notes FROM `t_version` TV
|
||||
INNER JOIN t_applications TA ON TV.AppID = TA.AppID
|
||||
INNER JOIN t_os TOS ON TV.OSID = TOS.OSID
|
||||
$sql2 = "SELECT TV.vID, TV.Version, TV.MinAppVer, TV.MaxAppVer, TV.Size, TV.DateAdded AS VerDateAdded, TV.DateUpdated AS VerDateUpdated, TV.URI, TV.Notes FROM `version` TV
|
||||
INNER JOIN applications TA ON TV.AppID = TA.AppID
|
||||
INNER JOIN os TOS ON TV.OSID = TOS.OSID
|
||||
WHERE TV.ID = '$id' AND TV.Version = '$row[Version]' AND TA.AppName = '$appname' AND TOS.OSName = '$osname' LIMIT 1";
|
||||
$sql_result2 = mysql_query($sql2, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
$vid = $row[MAXvID];
|
||||
|
@ -335,7 +327,7 @@ if ($appvernames[$row["MaxAppVer"]]) {$maxappver = $appvernames[$row["MaxAppVer"
|
|||
$uri = $row["URI"];
|
||||
$filename = basename($uri);
|
||||
|
||||
$sql3 = "SELECT `PreviewURI`, `caption` from `t_previews` WHERE `ID` = '$id' AND `preview`='YES' LIMIT 1";
|
||||
$sql3 = "SELECT `PreviewURI`, `caption` from `previews` WHERE `ID` = '$id' AND `preview`='YES' LIMIT 1";
|
||||
$sql_result3 = mysql_query($sql3, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
$row3 = mysql_fetch_array($sql_result3);
|
||||
$previewuri = $row3["PreviewURI"];
|
||||
|
@ -350,7 +342,7 @@ $authorcount = count($authors);
|
|||
foreach ($authors as $author) {
|
||||
$userid = $authorids[$author];
|
||||
$n++;
|
||||
$authorstring .= "<A HREF=\"authorprofiles.php?".uriparams()."&id=$userid\">$author</A>";
|
||||
$authorstring .= "<A HREF=\"authorprofiles.php?".uriparams()."&id=$userid\">$author</A>";
|
||||
if ($authorcount != $n) {$authorstring .=", "; }
|
||||
|
||||
}
|
||||
|
@ -371,37 +363,51 @@ if ($dateupdated > $dateadded) {
|
|||
$datestring = "$datetitle $date";
|
||||
|
||||
|
||||
echo"<DIV id=\"item\">\n";
|
||||
echo"<DIV class=\"item\">\n";
|
||||
|
||||
if ($previewuri) {
|
||||
list($width, $height, $type, $attr) = getimagesize("$websitepath"."$previewuri");
|
||||
echo"<DIV style=\"padding-top: 6px; float: right; padding-right: 0px\">\n";
|
||||
echo"<IMG SRC=\"$previewuri\" BORDER=0 HEIGHT=$height WIDTH=$width ALT=\"$name preview - $caption\" TITLE=\"$caption\">\n";
|
||||
echo"</DIV>\n";
|
||||
}
|
||||
echo"<h5>";
|
||||
echo"<SPAN class=\"title\"><A HREF=\"moreinfo.php?".uriparams()."&id=$id\">$name $version</A></SPAN><BR>";
|
||||
echo"<SPAN class=\"authorline\">By $authors</SPAN>";
|
||||
echo"</h5>";
|
||||
echo"<div class=\"rating\">Rating: <img src=\"/images/stars-3-8.gif\" width=\"90\" height=\"20\" title=\"3.8 Stars out of 5\" alt=\"3.8 Stars\"></div>\n";
|
||||
|
||||
|
||||
echo"<h2 class=\"first\"><A HREF=\"moreinfo.php?".uriparams()."&id=$id\">$name $version</A></h2>";
|
||||
|
||||
if ($previewuri) {
|
||||
|
||||
echo"<p class=\"screenshot\">\n";
|
||||
|
||||
list($width, $height, $attr) = getimagesize("$websitepath"."$previewuri");
|
||||
echo"<a href=\"moreinfo.php?".uriparams()."&id=$id&page=previews\"><img src=\"$previewuri\" height=$height width=$width alt=\"$name preview - $caption\" title=\"$caption\"></a>\n";
|
||||
|
||||
echo"</p>\n";
|
||||
$preview_minheight=$height-50;
|
||||
}
|
||||
|
||||
|
||||
echo"<P class=\"first\">By $authors</P>";
|
||||
|
||||
//Description & Version Notes
|
||||
if ($previewuri AND $preview_minheight) {
|
||||
echo"<p class=\"first\" style=\"min-height: 80px\">";
|
||||
} else {
|
||||
echo"<p class=\"first\">";
|
||||
}
|
||||
echo"$description<BR>";
|
||||
if ($notes) {echo"<BR>$notes"; }
|
||||
echo"<BR>";
|
||||
echo"</p>";
|
||||
|
||||
|
||||
|
||||
//Icon Bar Modules
|
||||
echo"<DIV style=\"margin-top: 30px; height: 34px\">";
|
||||
echo"<DIV class=\"iconbar\">";
|
||||
if ($appname=="Thunderbird") {
|
||||
echo"<A HREF=\"moreinfo.php?".uriparams()."&id=$id\"><IMG SRC=\"/images/download.png\" BORDER=0 HEIGHT=34 WIDTH=34 TITLE=\"More Info about $name\" ALT=\"\">More Info</A>";
|
||||
echo"<A HREF=\"moreinfo.php?".uriparams()."&id=$id\"><IMG SRC=\"/images/download.png\" HEIGHT=32 WIDTH=32 TITLE=\"More Info about $name\" ALT=\"\">More Info</A>";
|
||||
} else {
|
||||
echo"<a href=\"$uri\" onclick=\"return install(event,'$name $version', '/images/default.png');\"><IMG SRC=\"/images/download.png\" BORDER=0 HEIGHT=34 WIDTH=34 TITLE=\"Install $name\" ALT=\"\">Install</A>";
|
||||
echo"<a href=\"$uri\" onclick=\"return install(event,'$name $version', '/images/default.png');\"><IMG SRC=\"/images/download.png\" HEIGHT=32 WIDTH=32 TITLE=\"Install $name\" ALT=\"\">Install</A>";
|
||||
}
|
||||
echo"<BR><SPAN class=\"filesize\"> $filesize kb</SPAN></DIV>";
|
||||
echo"<DIV class=\"iconbar\"><IMG SRC=\"/images/".strtolower($appname)."_icon.png\" BORDER=0 HEIGHT=34 WIDTH=34 ALT=\"\"> For $appname:<BR> $minappver - $maxappver</DIV>";
|
||||
if($osname !=="ALL") { echo"<DIV class=\"iconbar\"><IMG SRC=\"/images/".strtolower($osname)."_icon.png\" BORDER=0 HEIGHT=34 WIDTH=34 ALT=\"\">For $osname<BR>only</DIV>"; }
|
||||
if ($homepage) {echo"<DIV class=\"iconbar\"><A HREF=\"$homepage\"><IMG SRC=\"/images/home.png\" BORDER=0 HEIGHT=34 WIDTH=34 TITLE=\"$name Homepage\" ALT=\"\">Homepage</A></DIV>";}
|
||||
echo"<DIV class=\"iconbar\" title=\"$rating of 5 stars\"><A HREF=\"moreinfo.php?".uriparams()."&id=$id&page=comments\"><IMG SRC=\"/images/ratings.png\" BORDER=0 HEIGHT=34 WIDTH=34 ALT=\"\">Rated<br> $rating of 5</A></DIV>";
|
||||
echo"<DIV class=\"iconbar\"><IMG SRC=\"/images/".strtolower($appname)."_icon.png\" HEIGHT=34 WIDTH=34 ALT=\"\"> For $appname:<BR> $minappver - $maxappver</DIV>";
|
||||
if($osname !=="ALL") { echo"<DIV class=\"iconbar\"><IMG SRC=\"/images/".strtolower($osname)."_icon.png\" HEIGHT=34 WIDTH=34 ALT=\"\">For $osname<BR>only</DIV>"; }
|
||||
//if ($homepage) {echo"<DIV class=\"iconbar\"><A HREF=\"$homepage\"><IMG SRC=\"/images/home.png\" HEIGHT=34 WIDTH=34 TITLE=\"$name Homepage\" ALT=\"\">Homepage</A></DIV>";}
|
||||
echo"</DIV>";
|
||||
|
||||
echo"<DIV class=\"baseline\">$datestring";
|
||||
|
@ -412,8 +418,8 @@ echo"</DIV>\n";
|
|||
|
||||
} //End While Loop
|
||||
if ($totalresults=="0") {
|
||||
echo"<DIV id=\"item\" class=\"noitems\">\n";
|
||||
echo"No extensions found in this category for ".ucwords($application).".\n";
|
||||
echo"<DIV class=\"item\" class=\"noitems\">\n";
|
||||
echo"<P>No extensions found in this category for ".ucwords($application).".</P>\n";
|
||||
echo"</DIV>\n";
|
||||
|
||||
}
|
||||
|
@ -423,7 +429,7 @@ echo"</DIV>\n";
|
|||
|
||||
|
||||
<?php
|
||||
echo"<H3>".ucwords("$application $typename » $categoryname ")."</H3>";
|
||||
echo"<H2>".ucwords("$application $typename » $categoryname ")."</H2>";
|
||||
echo"".ucwords("$typename")." $startitem - $enditem of $totalresults";
|
||||
echo" | ";
|
||||
|
||||
|
@ -433,14 +439,14 @@ if ($pageid <=$num_pages) {
|
|||
|
||||
$previd=$pageid-1;
|
||||
if ($previd >"0") {
|
||||
echo"<a href=\"?".uriparams()."&pageid=$previd\">« Previous</A> • ";
|
||||
echo"<a href=\"?".uriparams()."&pageid=$previd\">« Previous</A> • ";
|
||||
}
|
||||
echo"Page $pageid of $num_pages";
|
||||
|
||||
|
||||
$nextid=$pageid+1;
|
||||
if ($pageid <$num_pages) {
|
||||
echo" • <a href=\"?".uriparams()."&pageid=$nextid\">Next »</a>";
|
||||
echo" • <a href=\"?".uriparams()."&pageid=$nextid\">Next »</a>";
|
||||
}
|
||||
echo"<BR>\n";
|
||||
|
||||
|
@ -464,7 +470,7 @@ while ($i <= $maxpagesonpage && $i <= $num_pages) {
|
|||
if ($i==$pageid) {
|
||||
echo"<SPAN style=\"color: #FF0000\">$i</SPAN> ";
|
||||
} else {
|
||||
echo"<A HREF=\"?".uriparams()."&pageid=$i\">$i</A> ";
|
||||
echo"<A HREF=\"?".uriparams()."&pageid=$i\">$i</A> ";
|
||||
|
||||
}
|
||||
|
||||
|
@ -477,8 +483,10 @@ if ($i==$pageid) {
|
|||
}
|
||||
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
include"$page_footer";
|
||||
?>
|
||||
</div>
|
||||
</BODY>
|
||||
</HTML>
|
Двоичные данные
webtools/update/images/body_back.gif
До Ширина: | Высота: | Размер: 526 B После Ширина: | Высота: | Размер: 791 B |
Двоичные данные
webtools/update/images/download.png
До Ширина: | Высота: | Размер: 1.8 KiB После Ширина: | Высота: | Размер: 1.2 KiB |
Двоичные данные
webtools/update/images/key-point_back.gif
До Ширина: | Высота: | Размер: 94 B После Ширина: | Высота: | Размер: 86 B |
Двоичные данные
webtools/update/images/key-point_bl.gif
До Ширина: | Высота: | Размер: 102 B После Ширина: | Высота: | Размер: 160 B |
Двоичные данные
webtools/update/images/key-point_br.gif
До Ширина: | Высота: | Размер: 386 B После Ширина: | Высота: | Размер: 386 B |
Двоичные данные
webtools/update/images/key-point_tl.gif
До Ширина: | Высота: | Размер: 103 B После Ширина: | Высота: | Размер: 159 B |
Двоичные данные
webtools/update/images/key-point_tr.gif
До Ширина: | Высота: | Размер: 107 B После Ширина: | Высота: | Размер: 384 B |
Двоичные данные
webtools/update/images/mozilla_icon.png
До Ширина: | Высота: | Размер: 913 B После Ширина: | Высота: | Размер: 3.2 KiB |
Двоичные данные
webtools/update/images/rss.png
До Ширина: | Высота: | Размер: 1.1 KiB После Ширина: | Высота: | Размер: 745 B |
Двоичные данные
webtools/update/images/stars/graystar_icon.png
До Ширина: | Высота: | Размер: 484 B После Ширина: | Высота: | Размер: 1.3 KiB |
Двоичные данные
webtools/update/images/stars/star_icon.png
До Ширина: | Высота: | Размер: 837 B После Ширина: | Высота: | Размер: 1.3 KiB |
|
@ -50,207 +50,204 @@ include"$page_header";
|
|||
?>
|
||||
|
||||
<?php
|
||||
if ($_GET["application"]) {$application=$_GET["application"]; }
|
||||
//Get Current Version for Detected Application
|
||||
$sql = "SELECT `Version`, `major`, `minor`, `release`, `SubVer` FROM `applications` WHERE `AppName` = '$application' AND `public_ver` = 'YES' ORDER BY `major` DESC, `minor` DESC, `release` DESC, `SubVer` DESC LIMIT 1";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
$row = mysql_fetch_array($sql_result);
|
||||
$version = $row["Version"];
|
||||
$subver = $row["SubVer"];
|
||||
$release = "$row[major].$row[minor]";
|
||||
if ($row["release"]) {
|
||||
$release = ".$release$row[release]";
|
||||
}
|
||||
$currentver = $release;
|
||||
$currentver_display = $version;
|
||||
unset($version,$subver,$release);
|
||||
|
||||
//XXX Temporary!! Current Version Array Code
|
||||
$currentver_array = array("firefox"=>"0.95", "thunderbird"=>"0.8", "mozilla"=>"1.7");
|
||||
$currentver_display_array = array("firefox"=>"1.0 Preview Release", "thunderbird"=>"0.8", "mozilla"=>"1.7.x");
|
||||
$currentver = $currentver_array[$application];
|
||||
$currentver_display = $currentver_display_array[$application];
|
||||
?>
|
||||
|
||||
<?php
|
||||
$securitywarning=false;
|
||||
if ($securitywarning=="true") {
|
||||
?>
|
||||
<!-- Don't display if no urgent security updates -->
|
||||
<div class="key-point"><p class="security-update"><strong>Important Firefox Security Update:</strong><br>Lorem ipsum dolor sit amet, <a href="#securitydownload">consectetuer adipiscing</a> elit. Curabitur viverra ultrices ante. Aliquam nec lectus. Praesent vitae risus. Aenean vulputate sapien et leo. Nullam euismod tortor id wisi.</p></div>
|
||||
<hr class="hide">
|
||||
<!-- close security update -->
|
||||
<?php } ?>
|
||||
|
||||
<div id="mBody">
|
||||
<div class="frontcolumn">
|
||||
<h2><a href="extensions/?<?php echo"".uriparams().""; ?>">Get Extensions</a></h2>
|
||||
<a href="products/thunderbird"><img src="images/product-front-thunderbird.png" alt="Thunderbird" class="promo" width="60" height="60"></a>
|
||||
<p>Extensions are small add-ons that add new functionality. They can add anything from a toolbar button to a completely new feature.</p>
|
||||
<div id="mainContent" class="right">
|
||||
<h2>What is Mozilla Update?</h2>
|
||||
<p class="first">Mozilla Update is the place to get extras for your <a href="http://www.mozilla.org/">Mozilla</a> products. Learn more <a href="/about/">about us</a>.</p>
|
||||
|
||||
<?php
|
||||
$sql = "SELECT TM.ID
|
||||
FROM `t_main` TM
|
||||
INNER JOIN t_version TV ON TM.ID = TV.ID
|
||||
INNER JOIN t_applications TA ON TV.AppID = TA.AppID
|
||||
WHERE `Type` = 'E' AND `AppName` = '$application' AND `minAppVer_int`<='$currentver' AND `maxAppVer_int` >='$currentver' AND `approved` = 'YES' GROUP BY TM.ID";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
$numextensions = mysql_num_rows($sql_result);
|
||||
?>
|
||||
<a href="/extensions/?<?php echo"".uriparams().""; ?>">Browse extensions</a><BR>(<?php echo"$numextensions"; ?> available for <?php print(ucwords($application)); echo" $currentver_display"; ?>)<BR>
|
||||
</div>
|
||||
<div class="frontcolumn">
|
||||
<h2><a href="themes/?<?php echo"".uriparams().""; ?>">Get Themes</a></h2>
|
||||
<a href="products/mozilla1.x"><img src="images/product-front-mozilla.png" alt="Mozilla" class="promo" width="60" height="60"></a>
|
||||
<p>Themes are skins for Firefox, they allow you to change the look and feel of the browser and personalize it to your tastes.</p>
|
||||
<?php
|
||||
$sql = "SELECT TM.ID FROM `t_main` TM
|
||||
INNER JOIN t_version TV ON TM.ID = TV.ID
|
||||
INNER JOIN t_applications TA ON TV.AppID = TA.AppID
|
||||
WHERE `Type` = 'T' AND `AppName` = '$application' AND `minAppVer_int`<='$currentver' AND `maxAppVer_int` >='$currentver' AND `approved` = 'YES' GROUP BY TM.ID";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
$numthemes = mysql_num_rows($sql_result);
|
||||
?>
|
||||
<a href="/themes/?<?php echo"".uriparams().""; ?>">Browse themes</a><BR>(<?php echo"$numthemes"; ?> available for <?php print(ucwords($application)); echo" $currentver_display"; ?>)
|
||||
</div>
|
||||
<div class="frontcolumnlast">
|
||||
<h2><a href="http://www.MozillaStore.com">Get Plugins</a></h2>
|
||||
<a href="http://www.MozillaStore.com"><img src="images/product-front-firefox.png" alt="Mozilla Store" class="promo" width="60" height="60"></a>
|
||||
<p>Now you can order all <a href="http://store.mozilla.org/products/software/">Mozilla software on CD</a> and purchase <a href="http://store.mozilla.org/products/clothing">Mozilla logo merchandise</a> at the <a href="http://www.MozillaStore.com">Mozilla Store</a>.</p>
|
||||
</div>
|
||||
<?php
|
||||
$uriparams_skip="application";
|
||||
?>
|
||||
<dl>
|
||||
<dt>Themes</dt>
|
||||
<dd>Themes allow you to change the way your Mozilla program looks. New graphics and colors. Browse themes for: <a href="/themes/?<?php echo"".uriparams()."&"; ?>application=firefox">Firefox</a>, <a href="/themes/?<?php echo"".uriparams()."&"; ?>application=thunderbird">Thunderbird</a>, <a href="/themes/?<?php echo"".uriparams()."&"; ?>application=mozilla">Mozilla Suite</a></dd>
|
||||
<dt>Extensions</dt>
|
||||
<dd>Extensions are small add-ons that add new functionality to your Mozilla program. They can add anything from a toolbar button to a completely new feature. Browse extensions for: <a href="/extensions/?<?php echo"".uriparams()."&"; ?>application=firefox">Firefox</a>, <a href="/extensions/?<?php echo"".uriparams()."&"; ?>application=thunderbird">Thunderbird</a>, <a href="/extensions/?<?php echo"".uriparams()."&"; ?>application=mozilla">Mozilla Suite</a></dd>
|
||||
<dt>Plugins</dt>
|
||||
<dd>Plugins are programs that allow websites to provide content to you and have it appear in your browser. Examples of Plugins are Flash, RealPlayer, and Java. Browse plug-ins for <a href="/plugins/">Mozilla Suite and Firefox</a></dd>
|
||||
<!--<dt>Search Engines</dt>
|
||||
<dd>In Firefox, you can add search engines that will be available in the search in the top of the browser. Browse search engines for <a href="/searchengines/">Firefox</a></dd>-->
|
||||
</dl>
|
||||
<?php
|
||||
unset($uriparams_skip);
|
||||
?>
|
||||
<?php
|
||||
$feature="false";
|
||||
if ($feature=="true") {
|
||||
?>
|
||||
<h2>Currently Featuring...</h2>
|
||||
<a href="#charamel"><img src="images/screen-charamel.png" width="200" height="150" alt="Charamel Theme for Firefox" class="imgright"></a>
|
||||
<p class="first">The <a href="">Charamel Theme</a> for Firefox and Thunderbird has been very popular since it was introduced way back in February. It brings forward the interface of the classic Netscape browser to a modern interpretation.</p>
|
||||
<p>Great work on this simple and elegant theme Alex. We give it 3.5 stars out of five.</p>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<div id="side" class="right">
|
||||
<h2>Most Popular <?php echo ucwords($application); ?> Themes</h2>
|
||||
<ol class="popularlist">
|
||||
|
||||
<br style="clear: both;"><br>
|
||||
<?php
|
||||
$i=0;
|
||||
$sql = "SELECT TM.ID, TV.vID,TM.Name, TV.Version, TM.TotalDownloads, TM.downloadcount
|
||||
FROM `main` TM
|
||||
INNER JOIN version TV ON TM.ID = TV.ID
|
||||
INNER JOIN applications TA ON TV.AppID = TA.AppID
|
||||
INNER JOIN os TOS ON TV.OSID = TOS.OSID
|
||||
WHERE `Type` = 'T' AND `AppName` = '$application' AND `minAppVer_int` <='$currentver' AND `maxAppVer_int` >= '$currentver' AND (`OSName` = '$OS' OR `OSName` = 'ALL') AND `downloadcount` > '0' AND `approved` = 'YES' ORDER BY `downloadcount` DESC ";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
if (mysql_num_rows($sql_result)=="0") {
|
||||
echo" <li>No Popular Themes</li>\n";
|
||||
}
|
||||
while ($row = mysql_fetch_array($sql_result)) {
|
||||
$i++;
|
||||
$id = $row["ID"];
|
||||
$vid = $row["vID"];
|
||||
$name = $row["Name"];
|
||||
$version = $row["Version"];
|
||||
$downloadcount = $row["downloadcount"];
|
||||
$totaldownloads = $row["TotalDownloads"];
|
||||
$typename="themes";
|
||||
if ($lastname == $name) {
|
||||
$i--;
|
||||
continue;
|
||||
}
|
||||
|
||||
<!-- Start News Columns -->
|
||||
<div class="frontcolumn">
|
||||
<a href="http://www.mozilla.org/news.rdf"><img src="images/rss.png" width="28" height="16" class="rss" alt="Mozilla News in RSS"></a><h2 style="margin-top: 0;"><a href="http://www.mozilla.org" title="the mozilla.org website">New Additions</a></h2>
|
||||
<ul class="news">
|
||||
<li>
|
||||
<div class="date">Aug 28</div>
|
||||
<a href="http://www.wired.com/wired/archive/12.09/start.html?pg=12">Firefox: Wired</a>
|
||||
</li>
|
||||
<li>
|
||||
<div class="date">Aug 18</div>
|
||||
<a href="http://www.mozilla.org/press/mozilla-2004-08-18.html">Mozilla Japan Created</a>
|
||||
</li>
|
||||
<li>
|
||||
<div class="date">Aug 18</div>
|
||||
<a href="http://www.mozilla.org/releases/#1.8a3">Mozilla 1.8 Alpha 3</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="frontcolumn">
|
||||
<a href="http://planet.mozilla.org/rss10.xml"><img src="images/rss.png" width="28" height="16" class="rss" alt="Mozilla Weblogs in RSS"></a><h2 style="margin-top: 0;"><a href="http://planet.mozilla.org/" title="Planet Mozilla - http://planet.mozilla.org/">Most Popular</a></h2>
|
||||
<ul class="news">
|
||||
<li>
|
||||
<div class="date">Aug 30</div>
|
||||
<a href="http://weblogs.mozillazine.org/josh/archives/2004/08/gmail_invites.html">Josh Aas: gmail invites</a>
|
||||
</li>
|
||||
<li>
|
||||
<div class="date">Aug 30</div>
|
||||
<a href="http://weblogs.mozillazine.org/asa/archives/006315.html">Asa Dotzler: gmail invites gone</a>
|
||||
</li>
|
||||
<li>
|
||||
<div class="date">Aug 30</div>
|
||||
<a href="http://weblogs.mozillazine.org/asa/archives/006314.html">Asa Dotzler: extension update changes</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="frontcolumn">
|
||||
<a href="http://www.mozillazine.org/atom.xml"><img src="images/rss.png" width="28" height="16" class="rss" alt="MozillaZine News in RSS"></a><h2 style="margin-top: 0;"><a href="http://www.mozillazine.org/" title="Your Source for Daily Mozilla News and Advocacy">This Space For Rent</a></h2>
|
||||
<ul class="news">
|
||||
<li>
|
||||
<div class="date">Aug 25</div>
|
||||
<a href="http://www.mozillazine.org/talkback.html?article=5215">Camino 0.8.1 Released</a>
|
||||
</li>
|
||||
<li>
|
||||
<div class="date">Aug 25</div>
|
||||
<a href="http://www.mozillazine.org/talkback.html?article=5213">Community Marketing Initiative Week 5</a>
|
||||
</li>
|
||||
<li>
|
||||
<div class="date">Aug 20</div>
|
||||
<a href="http://www.mozillazine.org/talkback.html?article=5200">New Beta of mozilla.org Website Available for Testing</a>
|
||||
</li>
|
||||
</ul>
|
||||
echo" <li>";
|
||||
echo"<a href=\"/$typename/moreinfo.php?".uriparams()."&id=$id\">$name</a>";
|
||||
echo"<span class=\"downloads\"> ($downloadcount downloads)</span>";
|
||||
echo"</li>\n";
|
||||
|
||||
$lastname = $name;
|
||||
if ($i >= "5") {
|
||||
break;
|
||||
}
|
||||
}
|
||||
?>
|
||||
</ol>
|
||||
<h2>Most Popular <?php echo ucwords($application); ?> Extensions</h2>
|
||||
<ol class="popularlist">
|
||||
|
||||
<?php
|
||||
$i=0;
|
||||
$sql = "SELECT TM.ID, TV.vID,TM.Name, TV.Version, TM.TotalDownloads, TM.downloadcount
|
||||
FROM `main` TM
|
||||
INNER JOIN version TV ON TM.ID = TV.ID
|
||||
INNER JOIN applications TA ON TV.AppID = TA.AppID
|
||||
INNER JOIN os TOS ON TV.OSID = TOS.OSID
|
||||
WHERE `Type` = 'E' AND `AppName` = '$application' AND `minAppVer_int` <='$currentver' AND `maxAppVer_int` >= '$currentver' AND (`OSName` = '$OS' OR `OSName` = 'ALL') AND `downloadcount` > '0' AND `approved` = 'YES' ORDER BY `downloadcount` DESC ";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
if (mysql_num_rows($sql_result)=="0") {
|
||||
echo" <li>No Popular Extensions</li>\n";
|
||||
}
|
||||
while ($row = mysql_fetch_array($sql_result)) {
|
||||
$i++;
|
||||
$id = $row["ID"];
|
||||
$vid = $row["vID"];
|
||||
$name = $row["Name"];
|
||||
$version = $row["Version"];
|
||||
$downloadcount = $row["downloadcount"];
|
||||
$totaldownloads = $row["TotalDownloads"];
|
||||
$typename="extensions";
|
||||
if ($lastname == $name) {
|
||||
$i--;
|
||||
continue;
|
||||
}
|
||||
|
||||
echo" <li>";
|
||||
echo"<a href=\"/$typename/moreinfo.php?".uriparams()."&id=$id\">$name</a>";
|
||||
echo"<span class=\"downloads\"> ($downloadcount downloads)</span>";
|
||||
echo"</li>\n";
|
||||
|
||||
$lastname = $name;
|
||||
if ($i >= "5") {
|
||||
break;
|
||||
}
|
||||
}
|
||||
?>
|
||||
</ol>
|
||||
<a href="/rss/?application=<?php echo"$application"; ?>&list=newest"><img src="images/rss.png" width="16" height="16" class="rss" alt="News Additions in RSS"></a>
|
||||
<h2>New Additions</h2>
|
||||
<ol class="popularlist">
|
||||
|
||||
<?php
|
||||
$i=0;
|
||||
$sql = "SELECT TM.ID, TM.Type, TV.vID, TM.Name, TV.Version, TV.DateAdded
|
||||
FROM `main` TM
|
||||
INNER JOIN version TV ON TM.ID = TV.ID
|
||||
INNER JOIN applications TA ON TV.AppID = TA.AppID
|
||||
INNER JOIN os TOS ON TV.OSID = TOS.OSID
|
||||
WHERE `AppName` = '$application' AND `minAppVer_int` <='$currentver' AND `maxAppVer_int` >= '$currentver' AND (`OSName` = '$OS' OR `OSName` = 'ALL') AND `approved` = 'YES' ORDER BY `DateAdded` DESC ";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
if (mysql_num_rows($sql_result)=="0") {
|
||||
echo" <li>Nothing Recently Added</li>\n";
|
||||
}
|
||||
while ($row = mysql_fetch_array($sql_result)) {
|
||||
$i++;
|
||||
$id = $row["ID"];
|
||||
$vid = $row["vID"];
|
||||
$type = $row["Type"];
|
||||
$name = $row["Name"];
|
||||
$version = $row["Version"];
|
||||
$dateadded = $row["DateAdded"];
|
||||
$dateadded = gmdate("M d, Y", strtotime("$dateadded"));
|
||||
//$dateupdated = gmdate("F d, Y g:i:sa T", $timestamp);
|
||||
|
||||
if ($type=="E") {
|
||||
$typename = "extensions";
|
||||
} else if ($type=="T") {
|
||||
$typename = "themes";
|
||||
}
|
||||
|
||||
if ($lastname == $name) {
|
||||
$i--;
|
||||
continue;
|
||||
}
|
||||
|
||||
echo" <li>";
|
||||
echo"<a href=\"/$typename/moreinfo.php?".uriparams()."&id=$id\">$name $version</a>";
|
||||
echo"<span class=\"downloads\"> ($dateadded)</span>";
|
||||
echo"</li>\n";
|
||||
|
||||
$lastname = $name;
|
||||
if ($i >= "8") {
|
||||
break;
|
||||
}
|
||||
}
|
||||
?>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- End News Columns -->
|
||||
<br style="clear: both;">
|
||||
|
||||
</div>
|
||||
<!-- closes #mBody-->
|
||||
|
||||
|
||||
|
||||
<?php
|
||||
// #################################################
|
||||
// Old Mozilla Update Layout Code
|
||||
// Particularly Editor's Pick Code.
|
||||
// #################################################
|
||||
?>
|
||||
<?php
|
||||
//<A HREF="/faq/">Frequently Asked Questions...</A>
|
||||
|
||||
|
||||
if ($_GET["application"]) {$application=$_GET["application"]; }
|
||||
?>
|
||||
<?php
|
||||
//Featured Editor's Pick for Extensions for $application
|
||||
|
||||
$sql = "SELECT TR.ID, `Title`, TR.DateAdded, `Body`, `Type`, `pick` FROM `t_reviews` TR
|
||||
INNER JOIN t_main TM ON TR.ID = TM.ID
|
||||
INNER JOIN t_version TV ON TV.ID = TM.ID
|
||||
INNER JOIN t_applications TA ON TA.AppID = TV.AppID
|
||||
WHERE `Type` = 'E' AND `AppName` = '$application' AND `pick`='YES' ORDER BY `rID` DESC LIMIT 1";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
while ($row = mysql_fetch_array($sql_result)) {
|
||||
$id = $row["ID"];
|
||||
$title = $row["Title"];
|
||||
$pick = $row["pick"];
|
||||
$dateadded = $row["DateAdded"];
|
||||
$body = $row["Body"];
|
||||
$bodylength = strlen($body);
|
||||
if ($bodylength>"250") {
|
||||
$body = substr($body,0,250);
|
||||
$body .= " <a href=\"/extensions/moreinfo.php?".uriparams()."&id=$id&page=staffreview\">[More...]</a>";
|
||||
|
||||
}
|
||||
|
||||
//Create Customizeable Timestamp
|
||||
$day=substr($dateadded,8,2); //get the day
|
||||
$month=substr($dateadded,5,2); //get the month
|
||||
$year=substr($dateadded,0,4); //get the year
|
||||
$hour=substr($dateadded,11,2); //get the hour
|
||||
$minute=substr($dateadded,14,2); //get the minute
|
||||
$second=substr($dateadded,17,2); //get the sec
|
||||
$timestamp = strtotime("$year-$month-$day $hour:$minute:$second");
|
||||
$date = gmdate("F, Y", $timestamp);
|
||||
|
||||
|
||||
echo"$title<br> $date";
|
||||
if ($pick=="YES") {echo" Editors Pick";}
|
||||
echo"<BR><BR>\n";
|
||||
echo"<SPAN class=\"itemdescription\">$body</SPAN><BR>\n";
|
||||
}
|
||||
?>
|
||||
|
||||
<?php
|
||||
//Featured Editor's Pick for Themes for $application
|
||||
$sql = "SELECT TR.ID, `Title`, TR.DateAdded, `Body`, `Type`, `pick` FROM `t_reviews` TR
|
||||
INNER JOIN t_main TM ON TR.ID = TM.ID
|
||||
INNER JOIN t_version TV ON TV.ID = TM.ID
|
||||
INNER JOIN t_applications TA ON TA.AppID = TV.AppID
|
||||
WHERE `Type` = 'T' AND `AppName` = '$application' AND `pick`='YES' ORDER BY `rID` DESC LIMIT 1";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
while ($row = mysql_fetch_array($sql_result)) {
|
||||
$id = $row["ID"];
|
||||
$title = $row["Title"];
|
||||
$pick = $row["pick"];
|
||||
$dateadded = $row["DateAdded"];
|
||||
$body = $row["Body"];
|
||||
$bodylength = strlen($body);
|
||||
if ($bodylength>"250") {
|
||||
$body = substr($body,0,250);
|
||||
$body .= " <a href=\"/moreinfo.php?".uriparams()."&id=$id&page=staffreview\">[More...]</a>";
|
||||
|
||||
}
|
||||
|
||||
//Create Customizeable Timestamp
|
||||
$day=substr($dateadded,8,2); //get the day
|
||||
$month=substr($dateadded,5,2); //get the month
|
||||
$year=substr($dateadded,0,4); //get the year
|
||||
$hour=substr($dateadded,11,2); //get the hour
|
||||
$minute=substr($dateadded,14,2); //get the minute
|
||||
$second=substr($dateadded,17,2); //get the sec
|
||||
$timestamp = strtotime("$year-$month-$day $hour:$minute:$second");
|
||||
$date = gmdate("F, Y", $timestamp);
|
||||
|
||||
echo"$title - $date";
|
||||
if ($pick=="YES") {echo" Editors Pick<BR><BR>\n";}
|
||||
echo"$body<BR>\n";
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
<?php
|
||||
include"$page_footer";
|
||||
?>
|
||||
</BODY>
|
||||
</HTML>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -41,7 +41,7 @@
|
|||
require"../core/config.php";
|
||||
|
||||
$app = strtolower($_GET["application"]); // Firefox, Thunderbird, Mozilla
|
||||
$type = $_GET["type"]; //E, T, [P]
|
||||
$type = escape_string($_GET["type"]); //E, T, [P]
|
||||
$list = ucwords(strtolower($_GET["list"])); // Newest, Updated, [Editors], Popular
|
||||
|
||||
$sitetitle = "Mozilla Update";
|
||||
|
@ -59,41 +59,41 @@ header("Content-Type: text/xml");
|
|||
// Firefox, extensions, by date added
|
||||
|
||||
$select = "SELECT DISTINCT
|
||||
t_main.ID,
|
||||
t_main.Name AS Title,
|
||||
t_main.Description,
|
||||
t_version.Version,
|
||||
t_version.vID,
|
||||
t_version.DateUpdated AS DateStamp,
|
||||
t_applications.AppName";
|
||||
main.ID,
|
||||
main.Name AS Title,
|
||||
main.Description,
|
||||
version.Version,
|
||||
version.vID,
|
||||
version.DateUpdated AS DateStamp,
|
||||
applications.AppName";
|
||||
|
||||
$from = "FROM t_main
|
||||
INNER JOIN t_version ON t_main.ID = t_version.ID
|
||||
INNER JOIN t_applications ON t_version.AppID = t_applications.AppID";
|
||||
$from = "FROM main
|
||||
INNER JOIN version ON main.ID = version.ID
|
||||
INNER JOIN applications ON version.AppID = applications.AppID";
|
||||
|
||||
$where = "`approved` = 'YES'"; // Always have a WHERE
|
||||
|
||||
if ($app == 'firefox' || $app == 'thunderbird' || $app == 'mozilla') {
|
||||
$where .= " AND t_applications.AppName = '$app'";
|
||||
$where .= " AND applications.AppName = '$app'";
|
||||
}
|
||||
|
||||
if ($type == 'E' || $type == 'T' || $type == 'P') {
|
||||
$where .= " AND t_main.Type = '$type'";
|
||||
$where .= " AND main.Type = '$type'";
|
||||
}
|
||||
|
||||
switch ($list) {
|
||||
case "Popular":
|
||||
$orderby = "t_main.DownloadCount DESC";
|
||||
$orderby = "main.DownloadCount DESC";
|
||||
break;
|
||||
case "Updated":
|
||||
$orderby = "t_main.DateUpdated DESC";
|
||||
$orderby = "main.DateUpdated DESC";
|
||||
break;
|
||||
case "Rated":
|
||||
$orderby = "t_main.Rating DESC";
|
||||
$orderby = "main.Rating DESC";
|
||||
break;
|
||||
case "Newest":
|
||||
default:
|
||||
$orderby = "t_main.DateAdded DESC";
|
||||
$orderby = "main.DateAdded DESC";
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
@ -45,7 +45,8 @@ require"../core/config.php";
|
|||
<head>
|
||||
<?php
|
||||
//Bookmarking-Friendly Page Title
|
||||
$sql = "SELECT UserName FROM `t_userprofiles` WHERE UserID = '$_GET[id]' LIMIT 1";
|
||||
$id = escape_string($_GET["id"]);
|
||||
$sql = "SELECT UserName FROM `userprofiles` WHERE UserID = '$id' LIMIT 1";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
if (mysql_num_rows($sql_result)===0) {
|
||||
$return = page_error("2","Author ID is Invalid or Missing.");
|
||||
|
@ -71,8 +72,8 @@ include"$page_header";
|
|||
<div id="mainContent">
|
||||
|
||||
<?php
|
||||
$userid = $_GET["id"];
|
||||
$sql = "SELECT * FROM `t_userprofiles` WHERE `UserID` = '$userid' LIMIT 1";
|
||||
$userid = escape_string($_GET["id"]);
|
||||
$sql = "SELECT * FROM `userprofiles` WHERE `UserID` = '$userid' LIMIT 1";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
$row = mysql_fetch_array($sql_result);
|
||||
$userid = $row["UserID"];
|
||||
|
@ -102,17 +103,16 @@ echo"<A HREF=\"mailto:$useremail\">$useremail</A>\n";
|
|||
<BR>
|
||||
<h2>All Extensions and Themes by <?php echo"$username"; ?></h2>
|
||||
<?php
|
||||
$sql = "SELECT TM.ID, TM.Type, TM.Name, TM.Description, TM.DateUpdated, TM.TotalDownloads, TU.UserEmail FROM `t_main` TM
|
||||
LEFT JOIN t_authorxref TAX ON TM.ID = TAX.ID
|
||||
INNER JOIN t_userprofiles TU ON TAX.UserID = TU.UserID
|
||||
WHERE TU.UserID = '$userid' AND TM.Type !='P'
|
||||
ORDER BY `Type` , `Name` ";
|
||||
$sql = "SELECT TM.ID, TM.Type, TM.Name, TM.Description, TM.DateUpdated, TM.TotalDownloads, TU.UserEmail FROM `main` TM
|
||||
LEFT JOIN authorxref TAX ON TM.ID = TAX.ID
|
||||
INNER JOIN userprofiles TU ON TAX.UserID = TU.UserID
|
||||
WHERE TU.UserID = '$userid' ORDER BY `Type` , `Name` ";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
$numresults = mysql_num_rows($sql_result);
|
||||
while ($row = mysql_fetch_array($sql_result)) {
|
||||
|
||||
|
||||
$sql2 = "SELECT `vID`, `Version` FROM `t_version` WHERE `ID` = '$row[ID]' AND `approved` = 'YES' ORDER BY `Version` ASC LIMIT 1";
|
||||
$sql2 = "SELECT `vID`, `Version` FROM `version` WHERE `ID` = '$row[ID]' AND `approved` = 'YES' ORDER BY `Version` ASC LIMIT 1";
|
||||
$sql_result2 = mysql_query($sql2, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
while ($row2 = mysql_fetch_array($sql_result2)) {
|
||||
$vid = $row2["vID"];
|
||||
|
|
|
@ -36,54 +36,45 @@
|
|||
//
|
||||
// ***** END LICENSE BLOCK *****
|
||||
?>
|
||||
<div id="side">
|
||||
<?php
|
||||
$uriparams_skip="category";
|
||||
<div id="side">
|
||||
<?php
|
||||
$type="T";
|
||||
$types = array("E"=>"Extensions","T"=>"Themes");
|
||||
$typename = $types["$type"];
|
||||
$uriparams_skip="category";
|
||||
|
||||
echo"<ul id=\"nav\">\n";
|
||||
echo"<ul id=\"nav\">\n";
|
||||
|
||||
if (!$category AND $index !="yes") {echo"<SPAN CLASS=\"selected\">"; }
|
||||
echo"<li><A HREF=\"showlist.php?".uriparams()."&category=All\" TITLE=\"Show All ".ucwords($typename)." Alphabetically\"><strong>All Themes</strong></A></li>\n";
|
||||
if (!$category AND $index !="yes") {echo"</SPAN>"; }
|
||||
echo" <li"; if (!$category AND $index !="yes") { echo" class=\"selected\""; } echo"><A HREF=\"showlist.php?".uriparams()."&category=All\" TITLE=\"Show All ".ucwords($typename)." Alphabetically\"><strong>All Themes</strong></A></li>\n";
|
||||
|
||||
// Object Categories
|
||||
$sql = "SELECT `CatName`,`CatDesc` FROM `t_categories` WHERE `CatType` = '$type' ORDER BY `CatName`";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
while ($row = mysql_fetch_array($sql_result)) {
|
||||
$catname = $row["CatName"];
|
||||
$catdesc = $row["CatDesc"];
|
||||
if (strtolower($category) == strtolower($catname)) {echo"<SPAN CLASS=\"selected\">"; }
|
||||
echo"<li><A HREF=\"showlist.php?".uriparams()."&category=$catname\" TITLE=\"$catdesc\"><strong>$catname</strong></A></li>\n";
|
||||
if (strtolower($category) == strtolower($catname)) {echo"</SPAN>"; }
|
||||
}
|
||||
?>
|
||||
<BR>
|
||||
<?php
|
||||
$catname = "Editors Pick";
|
||||
$catdesc = ucwords($typename)." picked by the Mozilla Update Editors";
|
||||
if (strtolower($category) == strtolower($catname)) {echo"<SPAN CLASS=\"selected\">"; }
|
||||
echo"<li><A HREF=\"showlist.php?".uriparams()."&category=$catname\" TITLE=\"$catdesc\">Editor's Pick</A></li>\n";
|
||||
if (strtolower($category) == strtolower($catname)) {echo"</SPAN>"; }
|
||||
echo" <li><ul>\n";
|
||||
|
||||
$catname = "Popular";
|
||||
$catdesc = ucwords($typename)." downloaded the most over the last week.";
|
||||
if (strtolower($category) == strtolower($catname)) {echo"<SPAN CLASS=\"selected\">"; }
|
||||
echo"<li><A HREF=\"showlist.php?".uriparams()."&category=$catname\" TITLE=\"$catdesc\">$catname</A></li>\n";
|
||||
if (strtolower($category) == strtolower($catname)) {echo"</SPAN>"; }
|
||||
// Object Categories
|
||||
$sql = "SELECT `CatName`,`CatDesc` FROM `categories` WHERE `CatType` = '$type' and `CatApp` = '$application' ORDER BY `CatName`";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
while ($row = mysql_fetch_array($sql_result)) {
|
||||
$catname = $row["CatName"];
|
||||
$catdesc = $row["CatDesc"];
|
||||
echo" <li"; if (strtolower($category) == strtolower($catname)) { echo" class=\"selected\""; } echo"><a href=\"showlist.php?".uriparams()."&category=$catname\" title=\"$catdesc\">$catname</a></li>\n";
|
||||
}
|
||||
|
||||
$catname = "Top Rated";
|
||||
$catdesc = ucwords($typename)." rated the highest by site visitors";
|
||||
if (strtolower($category) == strtolower($catname)) {echo"<SPAN CLASS=\"selected\">"; }
|
||||
echo"<li><A HREF=\"showlist.php?".uriparams()."&category=$catname\" TITLE=\"$catdesc\">$catname</A></li>\n";
|
||||
if (strtolower($category) == strtolower($catname)) {echo"</SPAN>"; }
|
||||
echo" </ul></li>\n";
|
||||
|
||||
$catname = "Newest";
|
||||
$catdesc = "Most recent ".ucwords($typename);
|
||||
if (strtolower($category) == strtolower($catname)) {echo"<SPAN CLASS=\"selected\">"; }
|
||||
echo"<li><A HREF=\"showlist.php?".uriparams()."&category=$catname\" TITLE=\"$catdesc\">$catname</A></li>\n";
|
||||
if (strtolower($category) == strtolower($catname)) {echo"</SPAN>"; }
|
||||
?>
|
||||
</ul>
|
||||
</DIV>
|
||||
<hr class="hide">
|
||||
<div id="mainContent">
|
||||
$catname = "Editors Pick";
|
||||
$catdesc = ucwords($typename)." picked by the Mozilla Update Editors";
|
||||
echo" <li"; if (strtolower($category) == strtolower($catname)) { echo" class=\"selected\""; } echo"><a href=\"showlist.php?".uriparams()."&category=$catname\" title=\"$catdesc\"><strong>Editor's Pick</strong></a></li>\n";
|
||||
|
||||
$catname = "Popular";
|
||||
$catdesc = ucwords($typename)." downloaded the most over the last week.";
|
||||
echo" <li"; if (strtolower($category) == strtolower($catname)) { echo" class=\"selected\""; } echo"><a href=\"showlist.php?".uriparams()."&category=$catname\" title=\"$catdesc\"><strong>$catname</strong></a></li>\n";
|
||||
|
||||
$catname = "Top Rated";
|
||||
$catdesc = ucwords($typename)." rated the highest by site visitors";
|
||||
echo" <li"; if (strtolower($category) == strtolower($catname)) { echo" class=\"selected\""; } echo"><a href=\"showlist.php?".uriparams()."&category=$catname\" title=\"$catdesc\"><strong>$catname</strong></a></li>\n";
|
||||
|
||||
$catname = "Newest";
|
||||
$catdesc = "Most recent ".ucwords($typename);
|
||||
echo"<li"; if (strtolower($category) == strtolower($catname)) { echo" class=\"selected\""; } echo"><a href=\"showlist.php?".uriparams()."&category=$catname\" title=\"$catdesc\"><strong>$catname</strong></a></li>\n";
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
|
@ -39,13 +39,10 @@
|
|||
<?php
|
||||
require"../core/config.php";
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html401/loose.dtd">
|
||||
<html lang="EN" dir="ltr">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
<meta http-equiv="Content-Language" content="en">
|
||||
<meta http-equiv="Content-Style-Type" content="text/css">
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<TITLE>Mozilla Update :: Themes - Change the Look of Mozilla Software</TITLE>
|
||||
|
||||
<?php
|
||||
|
@ -53,153 +50,161 @@ include"$page_header";
|
|||
?>
|
||||
|
||||
<div id="mBody">
|
||||
<?php
|
||||
$type = "T";
|
||||
if ($_GET["application"]) {$application=$_GET["application"]; }
|
||||
<?php
|
||||
$index="yes";
|
||||
include"inc_sidebar.php";
|
||||
?>
|
||||
|
||||
$index="yes";
|
||||
include"inc_sidebar.php";
|
||||
?>
|
||||
<div id="mainContent">
|
||||
<h2><?php print(ucwords($application)); ?> Themes</h2>
|
||||
<p class="first">Themes are skins for <?php print(ucwords($application)); ?>, they allow you to change the look and feel of the browser and personalize it to your tastes. A theme can simply change the colors of <?php print(ucwords($application)); ?> or it can change every piece of the browser appearance.</p>
|
||||
|
||||
<div id="mBody">
|
||||
<h3>What is a Theme?</h3>
|
||||
<p>Themes are skins for <?php print(ucwords($application)); ?>, they allow you to change the look and
|
||||
feel of the browser and personalize it to your tastes. A theme can simply change the colors of <?php print(ucwords($application)); ?>
|
||||
or it can change every piece of the browser appearance.</p>
|
||||
<?php
|
||||
//Get Current Version for Detected Application
|
||||
$sql = "SELECT `Version`, `major`, `minor`, `release`, `SubVer` FROM `applications` WHERE `AppName` = '$application' AND `public_ver` = 'YES' ORDER BY `major` DESC, `minor` DESC, `release` DESC, `SubVer` DESC LIMIT 1";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
$row = mysql_fetch_array($sql_result);
|
||||
$version = $row["Version"];
|
||||
$subver = $row["SubVer"];
|
||||
$release = "$row[major].$row[minor]";
|
||||
if ($row["release"]) {
|
||||
$release = ".$release$row[release]";
|
||||
}
|
||||
$currentver = $release;
|
||||
$currentver_display = $version;
|
||||
unset($version,$subver,$release);
|
||||
?>
|
||||
|
||||
<h2>Top Rated <?php print(ucwords($application)); ?> Themes</h2>
|
||||
<p class="first">Ratings are based on feedback from people who use these themes.</p>
|
||||
<ol>
|
||||
|
||||
<?php
|
||||
$r=0;
|
||||
$sql = "SELECT TM.ID, TM.Name, TM.Description, TM.Rating
|
||||
FROM `main` TM
|
||||
INNER JOIN version TV ON TM.ID = TV.ID
|
||||
INNER JOIN applications TA ON TV.AppID = TA.AppID
|
||||
WHERE `Type` = '$type' AND `AppName` = '$application' AND `minAppVer_int` <='$currentver' AND `maxAppVer_int` >= '$currentver' AND `Rating` > '0' AND `approved` = 'YES' GROUP BY `Name` ORDER BY `Rating` DESC, `Name` ASC, TV.Version DESC";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
if (mysql_num_rows($sql_result)=="0") {
|
||||
echo" <li>No Top Rated Themes</li>\n";
|
||||
}
|
||||
while ($row = mysql_fetch_array($sql_result)) {
|
||||
$r++;
|
||||
$s++;
|
||||
$id = $row["ID"];
|
||||
$name = $row["Name"];
|
||||
$description = $row["Description"];
|
||||
$rating = $row["Rating"];
|
||||
|
||||
|
||||
<?php
|
||||
//Temporary!! Current Version Array Code
|
||||
$currentver_array = array("firefox"=>"1.0", "thunderbird"=>"0.9", "mozilla"=>"1.7");
|
||||
$currentver_display_array = array("firefox"=>"1.0", "thunderbird"=>"0.9", "mozilla"=>"1.7.x");
|
||||
$currentver = $currentver_array[$application];
|
||||
$currentver_display = $currentver_display_array[$application];
|
||||
?>
|
||||
echo" <li>";
|
||||
echo"<a href=\"moreinfo.php?".uriparams()."&id=$id\"><strong>$name</strong></a>, $rating stars<br>";
|
||||
echo"$description";
|
||||
echo"</li>\n";
|
||||
|
||||
<!-- Start News Columns -->
|
||||
<div class="frontcolumn">
|
||||
<a href="http://www.mozilla.org/news.rdf"><img src="../images/rss.png" width="28" height="16" class="rss" alt="Mozilla News in RSS"></a><h2 style="margin-top: 0;"><a href="showlist.php?<?php echo uriparams(); ?>&category=Newest" title="New Extensions on Mozilla Update">New Additions</a></h2>
|
||||
<span class="newsSubline">New and Updated Themes</span>
|
||||
<ul class="news">
|
||||
if ($r >= "5") {
|
||||
break;
|
||||
}
|
||||
}
|
||||
unset($usednames, $usedversions, $r, $s, $i);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$i=0;
|
||||
//MacOSX Specific override for All+Mac themes. Bug 252294
|
||||
if ($_SESSION["app_os"]=="MacOSX") { $app_os = $_SESSION["app_os"]; } else { $app_os = "ALL"; }
|
||||
</ol>
|
||||
<h2>Most Popular <?php print(ucwords($application)); ?> Themes</h2>
|
||||
<p class="first">The most popular downloads over the last week.</p>
|
||||
<ol>
|
||||
<?php
|
||||
$i=0;
|
||||
$sql = "SELECT TM.ID, TM.Name, TM.Description, TM.TotalDownloads, TM.downloadcount FROM `main` TM
|
||||
INNER JOIN version TV ON TM.ID = TV.ID
|
||||
INNER JOIN applications TA ON TV.AppID = TA.AppID
|
||||
INNER JOIN os TOS ON TV.OSID = TOS.OSID
|
||||
WHERE `Type` = '$type' AND `AppName` = '$application' AND `minAppVer_int` <='$currentver' AND `maxAppVer_int` >= '$currentver' AND (`OSName` = '$OS' OR `OSName` = 'ALL') AND `downloadcount` > '0' AND `approved` = 'YES' ORDER BY `downloadcount` DESC ";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
if (mysql_num_rows($sql_result)=="0") {
|
||||
echo" <li>No Popular Themes</li>\n";
|
||||
}
|
||||
while ($row = mysql_fetch_array($sql_result)) {
|
||||
$i++;
|
||||
$id = $row["ID"];
|
||||
$vid = $row["vID"];
|
||||
$name = $row["Name"];
|
||||
$description = $row["Description"];
|
||||
$downloadcount = $row["downloadcount"];
|
||||
$totaldownloads = $row["TotalDownloads"];
|
||||
$typename="themes";
|
||||
if ($lastname == $name) {
|
||||
$i--;
|
||||
continue;
|
||||
}
|
||||
|
||||
$sql = "SELECT TM.ID, TV.vID, TM.Name, TV.Version, TV.DateAdded
|
||||
FROM `t_main` TM
|
||||
INNER JOIN t_version TV ON TM.ID = TV.ID
|
||||
INNER JOIN t_applications TA ON TV.AppID = TA.AppID
|
||||
INNER JOIN t_os TOS ON TV.OSID = TOS.OSID
|
||||
WHERE `Type` = '$type' AND `AppName` = '$application' AND `minAppVer_int` <='$currentver' AND `maxAppVer_int` >= '$currentver' AND (`OSName` = '$_SESSION[app_os]' OR `OSName` = '$app_os') AND `approved` = 'YES' ORDER BY `DateAdded` DESC ";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
while ($row = mysql_fetch_array($sql_result)) {
|
||||
$i++;
|
||||
$id = $row["ID"];
|
||||
$vid = $row["vID"];
|
||||
$name = $row["Name"];
|
||||
$version = $row["Version"];
|
||||
$dateadded = $row["DateAdded"];
|
||||
//Create Customizeable Datestamp
|
||||
$timestamp = strtotime("$dateadded");
|
||||
$dateadded = gmdate("M d", $timestamp); // $dateupdated = gmdate("F d, Y g:i:sa T", $timestamp);
|
||||
echo" <li>";
|
||||
echo"<a href=\"/$typename/moreinfo.php?".uriparams()."&id=$id\"><strong>$name</strong></a>, $downloadcount downloads<br>";
|
||||
echo"$description";
|
||||
echo"</li>\n";
|
||||
|
||||
if ($lastname == $name) {$i--; continue; }
|
||||
echo"<li>\n";
|
||||
echo"<div class=\"date\">$dateadded</div>\n";
|
||||
echo"<a href=\"moreinfo.php?".uriparams()."&id=$id\">$name $version</a><BR>\n";
|
||||
echo"</li>\n";
|
||||
$lastname = $name;
|
||||
if ($i >= "5") {
|
||||
break;
|
||||
}
|
||||
}
|
||||
?>
|
||||
</ol>
|
||||
<a href="/rss/?application=<?php echo"$application"; ?>&type=T&list=newest"><img src="../images/rss.png" width="16" height="16" class="rss" alt="News Additions in RSS"></a>
|
||||
<h2>Newest <?php print(ucwords($application)); ?> Themes</h2>
|
||||
<p class="first">New and updated themes. Subscribe to <a href="/rss/?application=<?php echo"$application"; ?>&type=T&list=newest">our RSS feed</a> to be notified when new themes are added.</p>
|
||||
<ol>
|
||||
|
||||
$lastname = $name;
|
||||
if ($i >= "5") {break;}
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="frontcolumn">
|
||||
<a href="http://planet.mozilla.org/rss10.xml"><img src="../images/rss.png" width="28" height="16" class="rss" alt="Mozilla Weblogs in RSS"></a><h2 style="margin-top: 0;"><a href="showlist.php?<?php echo uriparams(); ?>&category=Popular" title="Most Popular Extensions, based on Downloads over the last week">Most Popular</a></h2>
|
||||
<span class="newsSubline">Downloads over the last week</span>
|
||||
<ul class="news">
|
||||
<?php
|
||||
$i=0;
|
||||
$sql = "SELECT TM.ID, TM.Type, TM.Description, TM.Name, TV.Version, TV.DateAdded
|
||||
FROM `main` TM
|
||||
INNER JOIN version TV ON TM.ID = TV.ID
|
||||
INNER JOIN applications TA ON TV.AppID = TA.AppID
|
||||
INNER JOIN os TOS ON TV.OSID = TOS.OSID
|
||||
WHERE `Type`='$type' AND `AppName` = '$application' AND `minAppVer_int` <='$currentver' AND `maxAppVer_int` >= '$currentver' AND (`OSName` = '$OS' OR `OSName` = 'ALL') AND `approved` = 'YES' ORDER BY `DateAdded` DESC ";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
if (mysql_num_rows($sql_result)=="0") {
|
||||
echo" <li>Nothing Recently Added</li>\n";
|
||||
}
|
||||
while ($row = mysql_fetch_array($sql_result)) {
|
||||
$i++;
|
||||
$id = $row["ID"];
|
||||
$type = $row["Type"];
|
||||
$name = $row["Name"];
|
||||
$description = $row["Description"];
|
||||
$version = $row["Version"];
|
||||
$dateadded = $row["DateAdded"];
|
||||
$dateadded = gmdate("F d, Y", strtotime("$dateadded"));
|
||||
//$dateupdated = gmdate("F d, Y g:i:sa T", $timestamp);
|
||||
$typename = "themes";
|
||||
|
||||
<?php
|
||||
$i=0;
|
||||
$sql = "SELECT TM.ID, TV.vID,TM.Name, TV.Version, TM.TotalDownloads, TM.downloadcount
|
||||
FROM `t_main` TM
|
||||
INNER JOIN t_version TV ON TM.ID = TV.ID
|
||||
INNER JOIN t_applications TA ON TV.AppID = TA.AppID
|
||||
WHERE `Type` = '$type' AND `AppName` = '$application' AND `minAppVer_int` <='$currentver' AND `maxAppVer_int` >= '$currentver' AND `DownloadCount` > '0' AND `approved` = 'YES' ORDER BY `DownloadCount` DESC ";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
while ($row = mysql_fetch_array($sql_result)) {
|
||||
$i++;
|
||||
$id = $row["ID"];
|
||||
$vid = $row["vID"];
|
||||
$name = $row["Name"];
|
||||
$version = $row["Version"];
|
||||
$downloadcount = $row["downloadcount"];
|
||||
$totaldownloads = $row["TotalDownloads"];
|
||||
if ($lastname == $name) {$i--; continue; }
|
||||
echo"<li>\n";
|
||||
echo"<div class=\"date\">$i</div>\n";
|
||||
echo"<a href=\"moreinfo.php?".uriparams()."&id=$id\">$name</a><br>\n";
|
||||
echo"<span class=\"newsSubline\">($downloadcount downloads)</span>\n";
|
||||
echo"</li>\n";
|
||||
$lastname = $name;
|
||||
if ($i >= "5") {break;}
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
if ($lastname == $name) {
|
||||
$i--;
|
||||
continue;
|
||||
}
|
||||
|
||||
echo" <li>";
|
||||
echo"<a href=\"/$typename/moreinfo.php?".uriparams()."&id=$id\"><strong>$name $version</strong></a>, $dateadded<br>";
|
||||
echo"$description";
|
||||
echo"</li>\n";
|
||||
|
||||
$lastname = $name;
|
||||
if ($i >= "8") {
|
||||
break;
|
||||
}
|
||||
}
|
||||
?>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="frontcolumn">
|
||||
<a href="http://www.mozillazine.org/atom.xml"><img src="../images/rss.png" width="28" height="16" class="rss" alt="MozillaZine News in RSS"></a><h2 style="margin-top: 0;"><a href="showlist.php?<?php echo uriparams(); ?>&category=Top Rated" title="Highest Rated Extensions by the Community">Top Rated</a></h2>
|
||||
<span class="newsSubline">Based on feedback from visitors</span>
|
||||
<ul class="news">
|
||||
<!-- closes #mBody-->
|
||||
|
||||
<?php
|
||||
$r=0;
|
||||
$usednames = array();
|
||||
$sql = "SELECT TM.ID, TV.vID, TM.Name, TV.Version, TM.Rating, TU.UserName
|
||||
FROM `t_main` TM
|
||||
INNER JOIN t_version TV ON TM.ID = TV.ID
|
||||
INNER JOIN t_applications TA ON TV.AppID = TA.AppID
|
||||
INNER JOIN t_authorxref TAX ON TAX.ID = TM.ID
|
||||
INNER JOIN t_userprofiles TU ON TU.UserID = TAX.UserID
|
||||
WHERE `Type` = '$type' AND `AppName` = '$application' AND `minAppVer_int` <='$currentver' AND `maxAppVer_int` >= '$currentver' AND `Rating` > '0' AND `approved` = 'YES' ORDER BY `Rating` DESC, `Name` ASC, `Version` DESC";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
while ($row = mysql_fetch_array($sql_result)) {
|
||||
$r++; $s++;
|
||||
$id = $row["ID"];
|
||||
$vid = $row["vID"];
|
||||
$name = $row["Name"];
|
||||
$version = $row["Version"];
|
||||
$rating = $row["Rating"];
|
||||
$arraysearch = array_search("$name", $usednames);
|
||||
if ($arraysearch !== false AND $usedversions[$arraysearch]['version']<$version) {$r--; continue; }
|
||||
|
||||
echo"<li>\n";
|
||||
echo"<div class=\"date\">$rating stars</div>\n";
|
||||
echo"<a href=\"moreinfo.php?".uriparams()."&id=$id\">$name</a>\n";
|
||||
echo"</li>\n";
|
||||
|
||||
$usednames[$s] = $name;
|
||||
$usedversions[$s] = $version;
|
||||
if ($r >= "5") {break;}
|
||||
}
|
||||
unset($usednames, $usedversions, $r, $s, $i);
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<!-- End News Columns -->
|
||||
<br style="clear: both;">
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<BR>
|
||||
<?php
|
||||
include"$page_footer";
|
||||
?>
|
||||
</BODY>
|
||||
</HTML>
|
||||
</body>
|
||||
</html>
|
|
@ -39,26 +39,21 @@
|
|||
<?php
|
||||
require"../core/config.php";
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html401/loose.dtd">
|
||||
<html lang="EN" dir="ltr">
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
|
||||
<?php
|
||||
//----------------------------
|
||||
//Global General $_GET variables
|
||||
//Global $_GET variables
|
||||
//----------------------------
|
||||
//Detection Override
|
||||
if ($_GET["version"]) {$app_version=$_GET["version"]; $_SESSION["app_version"]=$_GET["version"];}
|
||||
|
||||
if ($_GET["numpg"]) {$_SESSION["items_per_page"]=$_GET["numpg"]; }
|
||||
if ($_SESSION["items_per_page"]) {$items_per_page = $_SESSION["items_per_page"];} else {$items_per_page="10";}//Default Num per Page is 10
|
||||
|
||||
if ($_GET["category"]) { $_SESSION["category"] = $_GET["category"]; }
|
||||
if ($_SESSION["category"]) {$category = $_SESSION["category"];}
|
||||
if ($_GET["numpg"]) {$items_per_page = escape_string($_GET["numpg"]); } else {$items_per_page="10";}//Default Num per Page is 10
|
||||
if ($_GET["category"]) { $category = escape_string($_GET["category"]); }
|
||||
if ($category=="All") {$category="";}
|
||||
|
||||
|
||||
if (!$_GET["pageid"]) {$pageid="1"; } else { $pageid = $_GET["pageid"]; } //Default PageID is 1
|
||||
if (!$_GET["pageid"]) {$pageid="1"; } else { $pageid = escape_string($_GET["pageid"]); } //Default PageID is 1
|
||||
$type="T"; //Default Type is T
|
||||
|
||||
unset($typename);
|
||||
|
@ -83,10 +78,6 @@ $rssfeed = "rss/?application=" . $application . "&type=" . $type . "&list=" . $r
|
|||
if (!$category) {$categoryname = "All $typename"; } else {$categoryname = $category; }
|
||||
?>
|
||||
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
<meta http-equiv="Content-Language" content="en">
|
||||
<meta http-equiv="Content-Style-Type" content="text/css">
|
||||
|
||||
<TITLE>Mozilla Update :: Themes - List - <?php echo"$categoryname"; if ($pageid) {echo" - Page $pageid"; } ?></TITLE>
|
||||
|
||||
<?php
|
||||
|
@ -95,17 +86,20 @@ echo"<link rel=\"alternate\" type=\"application/rss+xml\" title=\"RSS\" href=\"h
|
|||
}
|
||||
?>
|
||||
|
||||
<LINK REL="STYLESHEET" TYPE="text/css" HREF="/core/update.css">
|
||||
<?php
|
||||
installtrigger("themes");
|
||||
|
||||
include"$page_header";
|
||||
|
||||
// -----------------------------------------------
|
||||
// Begin Content of the Page Here
|
||||
// -----------------------------------------------
|
||||
?>
|
||||
<div id="mBody">
|
||||
<?php
|
||||
include"inc_sidebar.php";
|
||||
?>
|
||||
|
||||
include"inc_sidebar.php";
|
||||
<div id="mainContent">
|
||||
|
||||
<?php
|
||||
|
||||
//Query for List Creation
|
||||
$s = "0";
|
||||
|
@ -123,26 +117,23 @@ $orderby = "TM.Rating DESC, `Name` ASC";
|
|||
$catname = $category;
|
||||
$category = "%";
|
||||
}
|
||||
if ($app_version=="0.10") {$app_version="0.95"; }
|
||||
|
||||
$sql = "SELECT TM.ID, TM.Name, TM.DateAdded, TM.DateUpdated, TM.Homepage, TM.Description, TM.Rating, TM.TotalDownloads, TM.downloadcount, TV.vID,
|
||||
SUBSTRING(MAX(CONCAT(LPAD(TV.Version, 6, '0'), TV.vID)), 7) AS MAXvID,
|
||||
MAX(TV.Version) AS Version,
|
||||
TA.AppName, TOS.OSName
|
||||
FROM `t_main` TM
|
||||
INNER JOIN t_version TV ON TM.ID = TV.ID
|
||||
INNER JOIN t_applications TA ON TV.AppID = TA.AppID
|
||||
INNER JOIN t_os TOS ON TV.OSID = TOS.OSID ";
|
||||
if ($category && $category !=="%") { $sql .="INNER JOIN t_categoryxref TCX ON TM.ID = TCX.ID
|
||||
INNER JOIN t_categories TC ON TCX.CategoryID = TC.CategoryID "; }
|
||||
if ($editorpick=="true") { $sql .="INNER JOIN t_reviews TR ON TM.ID = TR.ID "; }
|
||||
FROM `main` TM
|
||||
INNER JOIN version TV ON TM.ID = TV.ID
|
||||
INNER JOIN applications TA ON TV.AppID = TA.AppID
|
||||
INNER JOIN os TOS ON TV.OSID = TOS.OSID ";
|
||||
if ($category && $category !=="%") { $sql .="INNER JOIN categoryxref TCX ON TM.ID = TCX.ID
|
||||
INNER JOIN categories TC ON TCX.CategoryID = TC.CategoryID "; }
|
||||
if ($editorpick=="true") { $sql .="INNER JOIN reviews TR ON TM.ID = TR.ID "; }
|
||||
$sql .="WHERE Type = '$type' AND AppName = '$application' AND `approved` = 'YES' ";
|
||||
if ($editorpick=="true") { $sql .="AND TR.Pick = 'YES' "; }
|
||||
if ($category && $category !=="%") {$sql .="AND CatName LIKE '$category' ";}
|
||||
if ($app_version) { $sql .=" AND TV.MinAppVer_int <= '".strtolower($app_version)."' AND TV.MaxAppVer_int >= '".strtolower($app_version)."' ";}
|
||||
//MacOSX Specific override for All+Mac themes. Bug 252294
|
||||
if ($OS=="MacOSX") { $app_os = $OS; } else { $app_os = "ALL"; }
|
||||
if ($OS) { $sql .=" AND (TOS.OSName = '$OS' OR TOS.OSName = '$app_os') "; }
|
||||
|
||||
if ($OS) { $sql .=" AND (TOS.OSName = '$OS' OR TOS.OSName = 'All') "; }
|
||||
if ($catname == "Popular") { $sql .=" AND TM.downloadcount > '5'"; }
|
||||
$sql .="GROUP BY `Name` ";
|
||||
if ($orderby) {
|
||||
|
@ -176,16 +167,7 @@ if ($category=="%") {$category = $catname; unset($catname); }
|
|||
|
||||
//Now Showing Box
|
||||
if (!$category) {$categoryname="All"; } else {$categoryname = $category;}
|
||||
echo"<H3>".ucwords("$application $typename » $categoryname ")."</H3>\n";
|
||||
|
||||
$sql = "SELECT `CatDesc` FROM `t_categories` WHERE `CatName`='$category' and `CatType`='$type' LIMIT 1";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
$row = mysql_fetch_array($sql_result);
|
||||
$categorydescription = $row["CatDesc"];
|
||||
if ($category=="All") {$categorydescription="All listed extensions for $application";}
|
||||
|
||||
if ($categorydescription) {echo"$categorydescription<br>\n";}
|
||||
|
||||
echo"<H2>".ucwords("$application $typename » $categoryname ")."</H2>\n";
|
||||
|
||||
if (!$OS) {$OS="all";}
|
||||
if (!$category) {$categoryname="All"; } else {$categoryname = $category;}
|
||||
|
@ -194,16 +176,24 @@ echo"".ucwords("$typename")." $startitem - $enditem of $totalresults
|
|||
|
||||
$previd=$pageid-1;
|
||||
if ($previd >"0") {
|
||||
echo"<a href=\"?".uriparams()."&pageid=$previd\">« Previous</A> • ";
|
||||
echo"<a href=\"?".uriparams()."&pageid=$previd\">« Previous</A> • ";
|
||||
}
|
||||
echo"Page $pageid of $num_pages";
|
||||
|
||||
$nextid=$pageid+1;
|
||||
if ($pageid <$num_pages) {
|
||||
echo" • <a href=\"?".uriparams()."&pageid=$nextid\">Next »</a>";
|
||||
echo" • <a href=\"?".uriparams()."&pageid=$nextid\">Next »</a>";
|
||||
}
|
||||
|
||||
echo"<br><br>\n";
|
||||
echo"<br>\n";
|
||||
|
||||
$sql = "SELECT `CatDesc` FROM `categories` WHERE `CatName`='$category' and `CatType`='$type' LIMIT 1";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
$row = mysql_fetch_array($sql_result);
|
||||
$categorydescription = $row["CatDesc"];
|
||||
if ($category=="All") {$categorydescription="All listed themes for $application";}
|
||||
|
||||
if ($categorydescription) {echo"$categorydescription<br>\n";}
|
||||
|
||||
|
||||
|
||||
|
@ -211,9 +201,9 @@ echo"<br><br>\n";
|
|||
|
||||
echo"<DIV class=\"key-point\">";
|
||||
echo"<FORM NAME=\"listviews\" METHOD=\"GET\" ACTION=\"showlist.php\">\n";
|
||||
echo"<input name=\"application\" type=\"hidden\" value=\"$application\">\n";
|
||||
echo"<div>";
|
||||
echo"<INPUT NAME=\"application\" TYPE=\"hidden\" VALUE=\"$application\">\n";
|
||||
echo"<INPUT NAME=\"category\" TYPE=\"hidden\" VALUE=\"$category\">\n";
|
||||
|
||||
//Items-Per-Page
|
||||
echo"Show/Page: ";
|
||||
$perpage = array("5","10","20","50");
|
||||
|
@ -229,7 +219,7 @@ echo"</SELECT>\n";
|
|||
// Operating Systems
|
||||
echo" OS: ";
|
||||
echo"<SELECT name=\"os\">\n";
|
||||
$sql = "SELECT `OSName` FROM `t_os` ORDER BY `OSName`";
|
||||
$sql = "SELECT `OSName` FROM `os` ORDER BY `OSName`";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
while ($row = mysql_fetch_array($sql_result)) {
|
||||
$osname = $row["OSName"];
|
||||
|
@ -245,7 +235,7 @@ echo"Versions: ";
|
|||
echo"<SELECT name=\"version\">";
|
||||
if ($application != "thunderbird") {echo"<OPTION value=\"auto-detect\">Auto-Detect</OPTION>";}
|
||||
$app_orig = $application; //Store original to protect against possible corruption
|
||||
$sql = "SELECT `Version`, `major`, `minor`, `release`, `SubVer` FROM `t_applications` WHERE `AppName` = '$application' AND `public_ver` = 'YES' ORDER BY `major` DESC, `minor` DESC, `release` DESC, `SubVer` DESC";
|
||||
$sql = "SELECT `Version`, `major`, `minor`, `release`, `SubVer` FROM `applications` WHERE `AppName` = '$application' AND `public_ver` = 'YES' ORDER BY `major` DESC, `minor` DESC, `release` DESC, `SubVer` DESC";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
while ($row = mysql_fetch_array($sql_result)) {
|
||||
$version = $row["Version"];
|
||||
|
@ -268,18 +258,18 @@ $application = $app_orig; unset($app_orig);
|
|||
|
||||
echo"</SELECT>\n";
|
||||
echo"<INPUT NAME=\"submit\" TYPE=\"SUBMIT\" VALUE=\"Update\">";
|
||||
echo"</FORM>";
|
||||
echo"</div></FORM>";
|
||||
echo"</DIV>\n";
|
||||
|
||||
echo" <br>\n";
|
||||
|
||||
//---------------------------------
|
||||
// Begin List
|
||||
//---------------------------------
|
||||
//Get Author Data and Create $authorarray and $authorids
|
||||
$sql = "SELECT TM.Name, TU.UserName, TU.UserID, TU.UserEmail FROM `t_main` TM
|
||||
LEFT JOIN t_authorxref TAX ON TM.ID = TAX.ID
|
||||
INNER JOIN t_userprofiles TU ON TAX.UserID = TU.UserID
|
||||
ORDER BY `Type` , `Name` ASC "; // TM.Type = 'E'
|
||||
$sql = "SELECT TM.Name, TU.UserName, TU.UserID, TU.UserEmail FROM `main` TM
|
||||
LEFT JOIN authorxref TAX ON TM.ID = TAX.ID
|
||||
INNER JOIN userprofiles TU ON TAX.UserID = TU.UserID
|
||||
ORDER BY `Type` , `Name` ASC ";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
while ($row = mysql_fetch_array($sql_result)) {
|
||||
$authorarray[$row[Name]][] = $row["UserName"];
|
||||
|
@ -287,7 +277,7 @@ ORDER BY `Type` , `Name` ASC "; // TM.Type = 'E'
|
|||
}
|
||||
|
||||
//Assemble a display application version array
|
||||
$sql = "SELECT `Version`, `major`, `minor`, `release`, `SubVer` FROM `t_applications` WHERE `AppName`='$application' ORDER BY `major`,`minor`";
|
||||
$sql = "SELECT `Version`, `major`, `minor`, `release`, `SubVer` FROM `applications` WHERE `AppName`='$application' ORDER BY `major`,`minor`";
|
||||
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
while ($row = mysql_fetch_array($sql_result)) {
|
||||
$version = $row["Version"];
|
||||
|
@ -310,7 +300,7 @@ $sql = "$resultsquery";
|
|||
$dateadded = $row["DateAdded"];
|
||||
$dateupdated = $row["DateUpdated"];
|
||||
$homepage = $row["Homepage"];
|
||||
$description = $row["Description"];
|
||||
$description = nl2br($row["Description"]);
|
||||
$rating = $row["Rating"];
|
||||
$authors = $authorarray[$name];
|
||||
$osname = $row["OSName"];
|
||||
|
@ -319,11 +309,12 @@ $sql = "$resultsquery";
|
|||
$populardownloads = $row["downloadcount"];
|
||||
|
||||
//Get Version Record for Referenced MAXvID from list query
|
||||
$sql2 = "SELECT TV.vID, TV.Version, TV.MinAppVer, TV.MaxAppVer, TV.Size, TV.DateAdded AS VerDateAdded, TV.DateUpdated AS VerDateUpdated, TV.URI, TV.Notes FROM `t_version` TV
|
||||
INNER JOIN t_applications TA ON TV.AppID = TA.AppID
|
||||
INNER JOIN t_os TOS ON TV.OSID = TOS.OSID
|
||||
$sql2 = "SELECT TV.vID, TV.Version, TV.MinAppVer, TV.MaxAppVer, TV.Size, TV.DateAdded AS VerDateAdded, TV.DateUpdated AS VerDateUpdated, TV.URI, TV.Notes FROM `version` TV
|
||||
INNER JOIN applications TA ON TV.AppID = TA.AppID
|
||||
INNER JOIN os TOS ON TV.OSID = TOS.OSID
|
||||
WHERE TV.ID = '$id' AND TV.Version = '$row[Version]' AND TA.AppName = '$appname' AND TOS.OSName = '$osname' LIMIT 1";
|
||||
$sql_result2 = mysql_query($sql2, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
$vid = $row[MAXvID];
|
||||
$row = mysql_fetch_array($sql_result2);
|
||||
|
||||
$vid = $row["vID"];
|
||||
|
@ -337,12 +328,13 @@ if ($appvernames[$row["MaxAppVer"]]) {$maxappver = $appvernames[$row["MaxAppVer"
|
|||
$uri = $row["URI"];
|
||||
$filename = basename($uri);
|
||||
|
||||
$sql3 = "SELECT `PreviewURI`, `caption` from `t_previews` WHERE `ID` = '$id' AND `preview`='YES' LIMIT 1";
|
||||
$sql3 = "SELECT `PreviewURI`, `caption` from `previews` WHERE `ID` = '$id' AND `preview`='YES' LIMIT 1";
|
||||
$sql_result3 = mysql_query($sql3, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
|
||||
$row3 = mysql_fetch_array($sql_result3);
|
||||
$previewuri = $row3["PreviewURI"];
|
||||
$caption = $row3["caption"];
|
||||
|
||||
|
||||
if ($VerDateAdded > $dateadded) {$dateadded = $VerDateAdded; }
|
||||
if ($VerDateUpdated > $dateupdated) {$dateupdated = $VerDateUpdated; }
|
||||
|
||||
|
@ -351,7 +343,7 @@ $authorcount = count($authors);
|
|||
foreach ($authors as $author) {
|
||||
$userid = $authorids[$author];
|
||||
$n++;
|
||||
$authorstring .= "<A HREF=\"authorprofiles.php?".uriparams()."&id=$userid\">$author</A>";
|
||||
$authorstring .= "<A HREF=\"authorprofiles.php?".uriparams()."&id=$userid\">$author</A>";
|
||||
if ($authorcount != $n) {$authorstring .=", "; }
|
||||
|
||||
}
|
||||
|
@ -372,37 +364,50 @@ if ($dateupdated > $dateadded) {
|
|||
$datestring = "$datetitle $date";
|
||||
|
||||
|
||||
echo"<DIV id=\"item\">\n";
|
||||
echo"<DIV class=\"item\">\n";
|
||||
|
||||
if ($previewuri) {
|
||||
list($width, $height, $type, $attr) = getimagesize("$websitepath"."$previewuri");
|
||||
echo"<DIV style=\"padding-top: 6px; float: right; padding-right: 0px\">\n";
|
||||
echo"<IMG SRC=\"$previewuri\" BORDER=0 HEIGHT=$height WIDTH=$width ALT=\"$name preview - $caption\" TITLE=\"$caption\">\n";
|
||||
echo"</DIV>\n";
|
||||
}
|
||||
echo"<h5>";
|
||||
echo"<SPAN class=\"title\"><A HREF=\"moreinfo.php?".uriparams()."&id=$id\">$name $version</A></SPAN><BR>";
|
||||
echo"<SPAN class=\"authorline\">By $authors</SPAN>";
|
||||
echo"</h5>";
|
||||
echo"<div class=\"rating\">Rating: <img src=\"/images/stars-3-8.gif\" width=\"90\" height=\"20\" title=\"3.8 Stars out of 5\" alt=\"3.8 Stars\"></div>\n";
|
||||
|
||||
echo"<h2 class=\"first\"><A HREF=\"moreinfo.php?".uriparams()."&id=$id\">$name $version</A></h2>";
|
||||
|
||||
if ($previewuri) {
|
||||
|
||||
echo"<p class=\"screenshot\">\n";
|
||||
|
||||
list($width, $height, $attr) = getimagesize("$websitepath"."$previewuri");
|
||||
echo"<a href=\"moreinfo.php?".uriparams()."&id=$id&page=previews\"><img src=\"$previewuri\" height=$height width=$width alt=\"$name preview - $caption\" title=\"$caption\"></a>\n";
|
||||
|
||||
echo"</p>\n";
|
||||
$preview_minheight=$height-50;
|
||||
}
|
||||
|
||||
|
||||
echo"<P class=\"first\">By $authors</P>";
|
||||
|
||||
//Description & Version Notes
|
||||
if ($previewuri AND $preview_minheight) {
|
||||
echo"<p class=\"first\" style=\"min-height: 80px\">";
|
||||
} else {
|
||||
echo"<p class=\"first\">";
|
||||
}
|
||||
echo"$description<BR>";
|
||||
if ($notes) {echo"<BR>$notes"; }
|
||||
echo"<BR>";
|
||||
echo"</p>";
|
||||
|
||||
|
||||
|
||||
//Icon Bar Modules
|
||||
echo"<DIV style=\"margin-top: 30px; height: 34px\">";
|
||||
echo"<DIV class=\"iconbar\">";
|
||||
if ($appname=="Thunderbird") {
|
||||
echo"<A HREF=\"moreinfo.php?".uriparams()."&id=$id\"><IMG SRC=\"/images/download.png\" BORDER=0 HEIGHT=34 WIDTH=34 TITLE=\"More Info about $name\" ALT=\"\">More Info</A>";
|
||||
echo"<A HREF=\"moreinfo.php?".uriparams()."&id=$id\"><IMG SRC=\"/images/download.png\" HEIGHT=32 WIDTH=32 TITLE=\"More Info about $name\" ALT=\"\">More Info</A>";
|
||||
} else {
|
||||
echo"<a href=\"$uri\" onclick=\"return installTheme(event,'$name $version');\"><IMG SRC=\"/images/download.png\" BORDER=0 HEIGHT=34 WIDTH=34 TITLE=\"Install $name\" ALT=\"\">Install</A>";
|
||||
echo"<a href=\"$uri\" onclick=\"return installTheme(event,'$name $version');\"><IMG SRC=\"/images/download.png\" HEIGHT=32 WIDTH=32 TITLE=\"Install $name\" ALT=\"\">Install</A>";
|
||||
}
|
||||
echo"<BR><SPAN class=\"filesize\"> $filesize kb</SPAN></DIV>";
|
||||
echo"<DIV class=\"iconbar\"><IMG SRC=\"/images/".strtolower($appname)."_icon.png\" BORDER=0 HEIGHT=34 WIDTH=34 ALT=\"\"> For $appname:<BR> $minappver - $maxappver</DIV>";
|
||||
if($osname !=="ALL") { echo"<DIV class=\"iconbar\"><IMG SRC=\"/images/".strtolower($osname)."_icon.png\" BORDER=0 HEIGHT=34 WIDTH=34 ALT=\"\">For $osname<BR>only</DIV>"; }
|
||||
if ($homepage) {echo"<DIV class=\"iconbar\"><A HREF=\"$homepage\"><IMG SRC=\"/images/home.png\" BORDER=0 HEIGHT=34 WIDTH=34 TITLE=\"$name Homepage\" ALT=\"\">Homepage</A></DIV>";}
|
||||
echo"<DIV class=\"iconbar\" title=\"$rating of 5 stars\"><A HREF=\"moreinfo.php?".uriparams()."&id=$id&page=comments\"><IMG SRC=\"/images/ratings.png\" BORDER=0 HEIGHT=34 WIDTH=34 ALT=\"\">Rated<br> $rating of 5</A></DIV>";
|
||||
echo"<DIV class=\"iconbar\"><IMG SRC=\"/images/".strtolower($appname)."_icon.png\" HEIGHT=34 WIDTH=34 ALT=\"\"> For $appname:<BR> $minappver - $maxappver</DIV>";
|
||||
if($osname !=="ALL") { echo"<DIV class=\"iconbar\"><IMG SRC=\"/images/".strtolower($osname)."_icon.png\" HEIGHT=34 WIDTH=34 ALT=\"\">For $osname<BR>only</DIV>"; }
|
||||
//if ($homepage) {echo"<DIV class=\"iconbar\"><A HREF=\"$homepage\"><IMG SRC=\"/images/home.png\" HEIGHT=34 WIDTH=34 TITLE=\"$name Homepage\" ALT=\"\">Homepage</A></DIV>";}
|
||||
echo"</DIV>";
|
||||
|
||||
echo"<DIV class=\"baseline\">$datestring";
|
||||
|
@ -413,8 +418,8 @@ echo"</DIV>\n";
|
|||
|
||||
} //End While Loop
|
||||
if ($totalresults=="0") {
|
||||
echo"<DIV id=\"item\" class=\"noitems\">\n";
|
||||
echo"No themes found in this category for ".ucwords($application).".\n";
|
||||
echo"<DIV class=\"item\" class=\"noitems\">\n";
|
||||
echo"<P>No themes found in this category for ".ucwords($application).".</P>\n";
|
||||
echo"</DIV>\n";
|
||||
|
||||
}
|
||||
|
@ -424,7 +429,7 @@ echo"</DIV>\n";
|
|||
|
||||
|
||||
<?php
|
||||
echo"<H3>".ucwords("$application $typename » $categoryname ")."</H3>";
|
||||
echo"<H2>".ucwords("$application $typename » $categoryname ")."</H2>";
|
||||
echo"".ucwords("$typename")." $startitem - $enditem of $totalresults";
|
||||
echo" | ";
|
||||
|
||||
|
@ -434,14 +439,14 @@ if ($pageid <=$num_pages) {
|
|||
|
||||
$previd=$pageid-1;
|
||||
if ($previd >"0") {
|
||||
echo"<a href=\"?".uriparams()."&pageid=$previd\">« Previous</A> • ";
|
||||
echo"<a href=\"?".uriparams()."&pageid=$previd\">« Previous</A> • ";
|
||||
}
|
||||
echo"Page $pageid of $num_pages";
|
||||
|
||||
|
||||
$nextid=$pageid+1;
|
||||
if ($pageid <$num_pages) {
|
||||
echo" • <a href=\"?".uriparams()."&pageid=$nextid\">Next »</a>";
|
||||
echo" • <a href=\"?".uriparams()."&pageid=$nextid\">Next »</a>";
|
||||
}
|
||||
echo"<BR>\n";
|
||||
|
||||
|
@ -465,7 +470,7 @@ while ($i <= $maxpagesonpage && $i <= $num_pages) {
|
|||
if ($i==$pageid) {
|
||||
echo"<SPAN style=\"color: #FF0000\">$i</SPAN> ";
|
||||
} else {
|
||||
echo"<A HREF=\"?".uriparams()."&pageid=$i\">$i</A> ";
|
||||
echo"<A HREF=\"?".uriparams()."&pageid=$i\">$i</A> ";
|
||||
|
||||
}
|
||||
|
||||
|
@ -478,8 +483,10 @@ if ($i==$pageid) {
|
|||
}
|
||||
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
include"$page_footer";
|
||||
?>
|
||||
</div>
|
||||
</BODY>
|
||||
</HTML>
|