Initial Landing of update-beta code. Bug 260157. Initial Landing of Developer CP. Bug 254925.

This commit is contained in:
psychoticwolf%carolina.rr.com 2004-10-06 07:10:45 +00:00
Родитель bce0903f61
Коммит 6024f9d5f6
7 изменённых файлов: 592 добавлений и 557 удалений

Просмотреть файл

@ -47,7 +47,8 @@ function getmicrotime() {
$time_start = getmicrotime();
//-- Website Variables--//
$websitepath = "/opt/update"; // Local Path to Site Files
$websitepath = "/opt/update-beta/"; // Local Path to Site Files
$repositorypath = "/opt/update-beta/files";
$sitehostname = "update.mozilla.org"; // DNS Hostname
//-- MySQL Server/Database Properties/Connection --//
@ -64,7 +65,6 @@ $db = mysql_select_db("$mysqlData", $connection) or trigger_error("MySQL Error "
$page_header = "$websitepath/core/inc_header.php";
$page_footer = "$websitepath/core/inc_footer.php";
//includes
include"inc_guids.php"; // GUID Handler
include"inc_global.php"; // Global Functions

Просмотреть файл

@ -37,7 +37,24 @@
// ***** END LICENSE BLOCK *****
?>
<!--Page Footer-->
<hr class="hide">
<div id="footer">
<ul id="bn">
<li><a href="sitemap.html">Site Map</a></li>
<li><a href="contact/">Contact Us</a></li>
<li><a href="foundation/donate.html">Donate</a></li>
</ul>
<p>Copyright &copy; 1998-2004 The Mozilla Organization</p>
</div>
<!-- closes #footer-->
</div>
<!-- closes #container -->
<?php
return;
//Site Timer Counter :: Debug-Mode Item Only
$time_end = getmicrotime();
//Returns in format: sss.mmmuuunnnppp ;-)

Просмотреть файл

@ -38,6 +38,26 @@
//inc_global.php -- Stuff that needs to be done globally to all of Mozilla Update
// ---------------------------
// quote_smart() -- Quote a variable to make it safe
// ---------------------------
function quote_smart($value)
{
// Stripslashes if we need to
if (get_magic_quotes_gpc()) {
$value = stripslashes($value);
}
// Quote it if it's not an integer
if (!is_int($value)) {
$value = "'" . mysql_real_escape_string($value) . "'";
}
return $value;
}
//Attempt to fix Bug 246743 (strip_tags) and Bug 248242 (htmlentities)
foreach ($_GET as $key => $val) {
$_GET["$key"] = htmlentities(str_replace("\\","",strip_tags($_GET["$key"])));
@ -49,7 +69,7 @@ if ($_GET["debug"]=="true") {$_SESSION["debug"]=$_GET["debug"]; } else if ($_GET
// Bug 250596 Fixes for incoming $_GET variables.
if ($_GET["application"]) {
$_GET["application"] = strtolower($_GET["application"]);
$sql = "SELECT AppID FROM `t_applications` WHERE `AppName` = '".ucwords(strtolower($_GET["application"]))."' LIMIT 1";
$sql = "SELECT AppID FROM `t_applications` WHERE `AppName` = ".quote_smart(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"]);}
}

Просмотреть файл

@ -35,17 +35,56 @@
// the terms of any one of the MPL, the GPL or the LGPL.
//
// ***** END LICENSE BLOCK *****
$pos = strpos($_SERVER["REQUEST_URI"], "/admin");
if ($pos !== false) {
echo'<LINK REL="STYLESHEET" TYPE="text/css" HREF="/core/mozupdates.bak.css">';
$application="login"; $_SESSION["application"]="login"; unset($_SESSION["app_version"], $_SESSION["app_os"]);
}
?>
<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/">
</head>
<body id="update-mozilla-org" class="homepage">
<div id="container">
<p class="skipLink"><a href="#mainContent" accesskey="2">Skip to main content</a></p>
<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="http://www.mozillastore.com" title="Shop for Mozilla products on CD and other merchanise">---</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="mozilla.org">
<input type="hidden" name="sitesearch" value="mozilla.org">
<input type="text" id="q" name="q" accesskey="s" size="30">
<input type="submit" id="submit" value="Go">
</div>
</form>
</div>
<!-- closes #header-->
<?php return; ?>
<DIV class="header">
<?php //if ($_GET["application"]) {$application=$_GET["application"]; } else {$application="firefox"; } ?>
<DIV class="logo"><IMG SRC="/images/<?php echo"$application"; ?>-cornerlogo.png" BORDER=0 ALT=""></DIV>
<DIV class="header-top"><A HREF="/"><IMG SRC="/images/updatelogo.png" BORDER=0 HEIGHT=55 WIDTH=270 ALT="Mozilla Update"></A></DIV>
<DIV class="tabbar">
<A HREF="/?application=mozilla"><IMG SRC="/images/tab-mozilla<?php if ($application=="mozilla") {echo"-selected"; } ?>.png" BORDER=0 HEIGHT=20 WIDTH=98 ALT="[Mozilla] "></A><A HREF="/?application=firefox"><IMG SRC="/images/tab-firefox<?php if ($application=="firefox") {echo"-selected"; } ?>.png" BORDER=0 HEIGHT=20 WIDTH=98 ALT="[Firefox] "></A><A HREF="/?application=thunderbird"><IMG SRC="/images/tab-thunderbird<?php if ($application=="thunderbird") {echo"-selected"; } ?>.png" BORDER=0 HEIGHT=20 WIDTH=105 ALT="[Thunderbird] "></A><A HREF="/developercp.php"><IMG SRC="/images/tab-login<?php if ($application=="login") {echo"-selected"; } ?>.png" BORDER=0 HEIGHT=20 WIDTH=98 ALT="[Login]"></A>
</DIV>

Просмотреть файл

@ -35,192 +35,57 @@
*
* ***** END LICENSE BLOCK ***** */
BODY {
MARGIN: 0px 0px 5px; FONT-FAMILY: Arial; BACKGROUND-COLOR: #fff
}
A {
text-decoration: none;
}
#item A {
COLOR: #00129c; TEXT-DECORATION: none
}
A:visited {
#item A:visited {
COLOR: #00129c; TEXT-DECORATION: none
}
A:hover {
#item A:hover {
COLOR: #fc5900
}
DIV.header {
BACKGROUND-IMAGE: url(/images/header.png); BACKGROUND-REPEAT: repeat-x; HEIGHT: 77px
}
DIV.header-top {
HEIGHT: 57px
}
DIV.logo {
z-index: 1; position: absolute; right: 0px
}
DIV.tabbar {
PADDING-LEFT: 26px; HEIGHT: 20px
#item {
BORDER: #D2D6D6 1px solid; PADDING-RIGHT: 6px; PADDING-LEFT: 5px; PADDING-BOTTOM: 0px; MARGIN-bottom: 10px; -moz-border-radius: 10px
}
DIV.nav {
BACKGROUND-IMAGE: url(/images/orangebar.png); background-repeat: repeat-x; PADDING-TOP: 3px; PADDING-LEFT: 10px; FONT-WEIGHT: bold; MARGIN-BOTTOM: 10px; COLOR: #fff; BACKGROUND-COLOR: #0F67C1; a:VISITED: #fff
#item h5 {
margin: 0.4em 0.4em 0.2em 0.4em;
border-bottom: 1px solid #ccc;
}
.title A {
FONT-WEIGHT: bold; FONT-SIZE: 14pt; COLOR: #fc5900
}
DIV.nav A:visited {
COLOR: #FFF;
}
DIV.nav A {
COLOR: #fff
}
DIV.adminheading {
FONT-WEIGHT: bold; FONT-SIZE: 10pt; MARGIN-RIGHT: 10px; HEIGHT: 25px; TEXT-ALIGN: right
}
.box {
BORDER-RIGHT: #ccc 2px solid; PADDING-RIGHT: 5px; BORDER-TOP: #ccc 2px solid; PADDING-LEFT: 5px; FONT-WEIGHT: bold; FONT-SIZE: 14pt; MARGIN-BOTTOM: 15px; PADDING-BOTTOM: 5px; POSITION: relative; LEFT: 150px; BORDER-LEFT: #ccc 2px solid; WIDTH: 78%; PADDING-TOP: 5px; BORDER-BOTTOM: #ccc 2px solid; -moz-border-radius: 10px
}
.boxheader {
MARGIN-BOTTOM: 6px; BORDER-BOTTOM: #000 1px solid
}
.boxcolumns {
BORDER-RIGHT: #ccc 2px solid; PADDING-RIGHT: 2px; BORDER-TOP: #ccc 2px solid; PADDING-LEFT: 2px; FONT-SIZE: 12pt; MIN-HEIGHT: 200px; FLOAT: left; PADDING-BOTTOM: 2px; MARGIN-LEFT: 2px; BORDER-LEFT: #ccc 2px solid; WIDTH: 31%; PADDING-TOP: 2px; BORDER-BOTTOM: #ccc 2px solid; -moz-border-radius: 10px
}
DIV.sidelinks {
BORDER-RIGHT: #ccc 2px solid; PADDING-RIGHT: 2px; BORDER-TOP: #ccc 2px solid; MARGIN-TOP: 10px; PADDING-LEFT: 2px; PADDING-BOTTOM: 2px; MARGIN-LEFT: 3px; BORDER-LEFT: #ccc 2px solid; WIDTH: 135px; PADDING-TOP: 2px; BORDER-BOTTOM: #ccc 2px solid; POSITION: absolute; -moz-border-radius: 10px
}
.sidebartitle {
FONT-WEIGHT: bold
}
.sidebartext {
MARGIN-LEFT: 4px
}
.updatebox {
BORDER-RIGHT: #ccc 2px solid; PADDING-RIGHT: 5px; BORDER-TOP: #ccc 2px solid; MARGIN-TOP: 3px; PADDING-LEFT: 5px; FONT-WEIGHT: bold; FONT-SIZE: 14pt; MIN-HEIGHT: 200px; MARGIN-BOTTOM: 15px; PADDING-BOTTOM: 5px; MARGIN-LEFT: 1px; BORDER-LEFT: #ccc 2px solid; WIDTH: 230px; PADDING-TOP: 5px; BORDER-BOTTOM: #ccc 2px solid; POSITION: absolute; -moz-border-radius: 10px
}
.frontpagecontainer {
MIN-HEIGHT: 360px; WIDTH: 100%
}
.contentbox {
BORDER-RIGHT: #ccc 2px solid; PADDING-RIGHT: 5px; BORDER-TOP: #ccc 2px solid; PADDING-LEFT: 5px; FONT-WEIGHT: bold; FONT-SIZE: 14pt; PADDING-BOTTOM: 5px; MARGIN: 0px 5px 15px 0px; BORDER-LEFT: #ccc 2px solid; PADDING-TOP: 5px; BORDER-BOTTOM: #ccc 2px solid; -moz-border-radius: 10px
}
.contentcolumns {
FLOAT: left; WIDTH: 48%
.title A:visited {
FONT-WEIGHT: bold; FONT-SIZE: 14pt; COLOR: #fc5900
}
#content {
PADDING-LEFT: 5px; POSITION: relative; LEFT: 145px; WIDTH: 85%;
.authorline {
MARGIN-LEFT: 15px
}
DIV.item {
BORDER-RIGHT: #ccc 2px solid; PADDING-RIGHT: 8px; BORDER-TOP: #ccc 2px solid; PADDING-LEFT: 8px; PADDING-BOTTOM: 0px; MARGIN: 0px auto 15px; BORDER-LEFT: #ccc 2px solid; WIDTH: 95%; PADDING-TOP: 8px; BORDER-BOTTOM: #ccc 2px solid; -moz-border-radius: 10px
}
#listnav {
BORDER-RIGHT: #ccc 2px solid; PADDING-RIGHT: 6px; BORDER-TOP: #ccc 2px solid; PADDING-LEFT: 6px; FONT-WEIGHT: bold; FONT-SIZE: 10pt; PADDING-BOTTOM: 6px; MARGIN: 3px auto; BORDER-LEFT: #ccc 2px solid; WIDTH: 95%; PADDING-TOP: 6px; BORDER-BOTTOM: #ccc 2px solid; TEXT-ALIGN: left; -moz-border-radius: 10px
}
.listform {
BORDER-RIGHT: #3d97c0 1px dotted; PADDING-RIGHT: 2px; BORDER-TOP: #3d97c0 1px dotted; PADDING-LEFT: 2px; PADDING-BOTTOM: 2px; MARGIN: 10px auto auto; BORDER-LEFT: #3d97c0 1px dotted; WIDTH: 90%; PADDING-TOP: 2px; BORDER-BOTTOM: #3d97c0 1px dotted; HEIGHT: 25px; BACKGROUND-COLOR: #d4e9f2; TEXT-ALIGN: center
}
.title A {
.selected A, .selected A:visited {
COLOR: #fc5900
}
.title A:visited {
COLOR: #fc5900
}
.liststars {
FLOAT: right; WIDTH: 80px; HEIGHT: 20px
}
.listtitle {
FONT-WEIGHT: bold; FONT-SIZE: 11pt
}
.itemtitle {
FONT-WEIGHT: bold; FONT-SIZE: 14pt; MARGIN-BOTTOM: 10px; MARGIN-LEFT: 30px
}
.authorline {
FONT-SIZE: 10pt; MARGIN-LEFT: 15px
}
.itemdescription {
FONT-SIZE: 10pt
}
.iconbar {
PADDING-RIGHT: 5px; FONT-WEIGHT: normal; FONT-SIZE: 9pt; FLOAT: right; WIDTH: 115px; HEIGHT: 34px; TEXT-ALIGN: left
}
.filesize {
FONT-WEIGHT: bold; FONT-SIZE: 8pt
}
.smallfont {
FONT-WEIGHT: bold; FONT-SIZE: 8pt
}
.baseline {
BORDER-TOP: #ccc 1px solid; PADDING-LEFT: 10px; FONT-WEIGHT: bold; FONT-SIZE: 8pt; COLOR: #333
BORDER-TOP: #ccc 1px solid; PADDING: 3px; PADDING-LEFT: 10px; FONT-SIZE: 8pt; COLOR: #333
}
.iconbar {
PADDING-RIGHT: 15px; FLOAT: left; WIDTH: auto; HEIGHT: 34px; TEXT-align: top
}
.iconbar IMG { float:left; }
.noitems {
FONT-WEIGHT: bold; FONT-SIZE: 12pt; HEIGHT: 60px; TEXT-ALIGN: center
}
.pagenum {
FONT-SIZE: 9pt; FLOAT: right
}
DIV.tabbar {
PADDING-RIGHT: 8px; PADDING-LEFT: 8px; PADDING-BOTTOM: 0px; MARGIN: 0px auto auto; WIDTH: 85%; PADDING-TOP: 0px; HEIGHT: 20px
}
DIV.tab {
BORDER-RIGHT: #ccc 2px solid; PADDING-RIGHT: 3px; BORDER-TOP: #ccc 2px solid; PADDING-LEFT: 3px; FONT-SIZE: 11pt; FLOAT: left; MARGIN: 0px 3px; VERTICAL-ALIGN: middle; BORDER-LEFT: #ccc 2px solid; BORDER-BOTTOM: #ccc 2px solid; HEIGHT: 20px; BACKGROUND-COLOR: #ddd; TEXT-ALIGN: center; -moz-border-radius: 10px
}
.downloadbox {
BORDER-RIGHT: #ccc 1px dotted; BORDER-TOP: #ccc 1px dotted; FONT-WEIGHT: bold; FLOAT: left; BORDER-LEFT: #ccc 1px dotted; BORDER-BOTTOM: #ccc 1px dotted; max-width: 395px;
}
.moreinfoinstall {
MARGIN-LEFT: 18px; WIDTH: 250px; HEIGHT: 34px
}
.commentbox {
BORDER-RIGHT: #ccc 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #ccc 1px solid; PADDING-LEFT: 5px; FONT-WEIGHT: bold; FONT-SIZE: 10pt; MIN-HEIGHT: 260px; PADDING-BOTTOM: 6px; MARGIN: auto 0px 5px auto; BORDER-LEFT: #ccc 1px solid; WIDTH: 50%; PADDING-TOP: 2px; BORDER-BOTTOM: #ccc 1px solid
}
.commenttitlebar {
PADDING-LEFT: 0px; FONT-WEIGHT: bold; FONT-SIZE: 11pt; HEIGHT: 20px; BACKGROUND-COLOR: #eee
}
.commenttitle {
PADDING-LEFT: 0px; FONT-WEIGHT: bold; FONT-SIZE: 11pt; POSITION: absolute
}
.commentfooter {
PADDING-RIGHT: 5px; FONT-SIZE: 8pt; TEXT-ALIGN: right
}
.nocomment {
MARGIN-LEFT: 30px
}
.mipageheading {
BORDER-TOP: #ccc 1px solid; MARGIN-TOP: 5px; PADDING-LEFT: 4px; FONT-WEIGHT: bold; FONT-SIZE: 11pt; MARGIN-BOTTOM: 5px; COLOR: #333
}
.reviewbox {
BORDER-RIGHT: #bbb 1px dotted; BORDER-TOP: #bbb 1px dotted; FONT-WEIGHT: bold; MARGIN: auto auto 10px; BORDER-LEFT: #bbb 1px dotted; WIDTH: 70%; BORDER-BOTTOM: #bbb 1px dotted
};
.opinionform {
FONT-WEIGHT: bold; FONT-SIZE: 10pt; MARGIN: auto 30px; WIDTH: 80%; LINE-HEIGHT: 30px
}
.errorbox {
BORDER-RIGHT: #f00 1px solid; PADDING-RIGHT: 3px; BORDER-TOP: #f00 1px solid; PADDING-LEFT: 3px; PADDING-BOTTOM: 3px; MARGIN: auto auto 20px; BORDER-LEFT: #f00 1px solid; WIDTH: 80%; PADDING-TOP: 3px; BORDER-BOTTOM: #f00 1px solid
}
.boxheader2 {
BORDER-TOP: #2e64ff 4px solid; HEIGHT: 4px
}
.boldfont {
FONT-WEIGHT: bold
}
.disabled {
FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #ccc; FONT-STYLE: italic
}
.emailactive {
FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-STYLE: italic
}
.profileitemdesc {
FONT-WEIGHT: bold; FONT-SIZE: 10pt; MARGIN-BOTTOM: 4px; MARGIN-LEFT: 20px
}
.mailresult {
FONT-WEIGHT: bold; FONT-SIZE: 14pt; MARGIN: auto; WIDTH: 650px; HEIGHT: 30px; TEXT-ALIGN: center
}
.faqtitle {
FONT-WEIGHT: normal; FONT-SIZE: 24pt; COLOR: #0065CA; TEXT-ALIGN: center
}
.faqitemtitle {
FONT-WEIGHT: bold; FONT-SIZE: 12pt
}
.faqitemtext {
MARGIN-LEFT: 5px
}
.footer {
PADDING-RIGHT: 30px; FONT-WEIGHT: bold; FONT-SIZE: 10pt; MARGIN-LEFT: 200px; TEXT-ALIGN: right
FONT-WEIGHT: bold; FONT-SIZE: 12pt; min-height: 80px; TEXT-ALIGN: center;
}
.newsSubline { font-size: 8pt }

Просмотреть файл

@ -84,26 +84,24 @@ $userid = $_GET["id"];
$userrole = $row["UserRole"];
$useremailhide = $row["UserEmailHide"];
?>
<DIV class="item">
<SPAN class="boldfont">Profile for <?php echo"$username"; ?></SPAN><BR>
<DIV class="boxheader2"></DIV>
<SPAN class="boldfont">Homepage:</SPAN> <?php
<h3>Author Profile &#187; <?php echo"$username"; ?></h3>
Homepage: <?php
if ($userwebsite) {echo"<A HREF=\"$userwebsite\" target=\"_blank\">$userwebsite</A>";
} else {
echo"<SPAN CLASS=\"disabled\">Not Available for this Author</SPAN>";
echo"Not Available for this Author";
}
?><BR>
<SPAN class="boldfont">E-Mail:</SPAN> <?php if ($useremailhide=="1") {
echo"<SPAN class=\"disabled\">Not Disclosed by Author</SPAN>";
E-Mail: <?php if ($useremailhide=="1") {
echo"Not Disclosed by Author";
} else {
echo"<SPAN class=\"emailactive\">Contact this Author via the <A HREF=\"#email\">E-Mail form</A> below</SPAN>";
echo"Contact this Author via the <A HREF=\"#email\">E-Mail form</A> below";
}
?>
</DIV>
&nbsp;<BR>
<DIV class="item">
<SPAN class="boldfont">All Extensions and Themes by <?php echo"$username"; ?></SPAN><BR>
<DIV class="boxheader2"></DIV>
<h3>All Extensions and Themes by <?php echo"$username"; ?></h3>
<?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
@ -141,26 +139,21 @@ $v++;
$timestamp = strtotime("$year-$month-$day $hour:$minute:$second");
$dateupdated = gmdate("F d, Y g:i:sa", $timestamp); //gmdate("F d, Y", $dutimestamp);
echo"<DIV CLASS=\"item\">";
echo"<SPAN class=\"title itemtitle\" style=\"margin-left: 0px\"><A HREF=\"moreinfo.php?id=$id\">$name</A></SPAN><BR>";
echo"<DIV class=\"profileitemdesc\">$description</DIV>\n";
echo"<DIV class=\"baseline\">Updated: $dateupdated | Downloads: $downloadcount</DIV>\n";
echo"</DIV>\n";
echo"<BR>\n";
echo"<h3><A HREF=\"moreinfo.php?id=$id\">$name</A></h3>";
echo"$description<br>\n";
}
}
if ($numresults=="0") {
echo"<DIV class=\"noitems\">No Extensions or Themes in the Database for $username yet...</DIV>";
echo"No Extensions or Themes in the Database for $username";
}
?>
</DIV>
&nbsp;<BR>
<?php if ($useremailhide !=="1") { ?>
<A NAME="email"></A>
<DIV class="item">
<SPAN class="boldfont">Send an E-Mail to <?php echo"$username"; ?></SPAN><BR>
<DIV class="boxheader2"></DIV>
<h3>Send an E-Mail to <?php echo"$username"; ?></h3>
<?php
//SendMail Returned Message Section
if ($_GET["mail"]) {
@ -176,7 +169,8 @@ echo"</DIV>\n";
?>
<FORM NAME="sendmail" METHOD="POST" ACTION="sendmail.php">
<INPUT NAME="senduserid" TYPE="HIDDEN" VALUE="<?php echo"$userid"; ?>">
Your Name: <INPUT NAME="fromname" TYPE="TEXT" SIZE=40 MAXLENGTH=100>&nbsp;&nbsp; Email: <INPUT NAME="fromemail" TYPE="TEXT" SIZE=40 MAXLENGTH=100><BR>
Your Name: <INPUT NAME="fromname" TYPE="TEXT" SIZE=40 MAXLENGTH=100><BR>
Email: <INPUT NAME="fromemail" TYPE="TEXT" SIZE=40 MAXLENGTH=100><BR>
Subject: <INPUT NAME="subject" TYPE="TEXT" SIZE=40 MAXLENGTH=100><BR>
Message:<BR>
<CENTER><TEXTAREA NAME="body" ROWS=20 COLS=65></TEXTAREA><BR>

Просмотреть файл

@ -39,49 +39,65 @@
<?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</title>
<TITLE>Mozilla Update</TITLE>
<LINK REL="STYLESHEET" TYPE="text/css" HREF="/core/update.css">
</HEAD>
<BODY>
<?php
include"$page_header";
?>
<DIV class="contentbox" style="margin-left: 2px;">
<DIV class="boxheader">Welcome to Mozilla Update</DIV>
<SPAN class="itemdescription">
Mozilla Update hosts Extensions and Themes for Mozilla software. On this site you can find Extensions and Themes for Mozilla Firefox,
Mozilla Thunderbird and the Mozilla 1.x suite, with more to come. The site is broken up into sections for each product, with the
extensions and themes categorized to be easy to find. They're also sorted by what version of the product you're using, so you can
browse only for Firefox 0.9 compatible extensions, for example. For more information about Mozilla Update, please read our <A HREF="/faq/">Frequently Asked Questions...</A>
</SPAN>
</DIV>
<?php include"inc_featuredupdate.php"; ?>
<div class="key-point cnet" id="firefox-feature">
<script type="text/javascript">
<!--
var classes = new Array("cnet");
var date = new Date();
var seconds;
var classid;
seconds = date.getSeconds();
classid = seconds % classes.length;
document.getElementById('firefox-feature').className = 'key-point front-feature-' + classes[classid];
-->
</script>
<a href="/products/firefox" title="Learn more about Firefox" id="featurelink">Learn more about Firefox</a>
<div id="feature-content">
<h2 style="margin: 0; font-size: 2px;"><img src="/images/t_firefox.gif" alt="Featuring: Firefox!"></h2>
<p>Firefox 0.9 is the <a href="shelf.html">award winning</a> preview of Mozilla's next generation browser. Download Firefox entirely free or <a href="">purchase it on a CD</a> from the Mozilla store. <a href="#dfg">Learn more about Firefox...</a></p>
<script type="text/javascript" src="products/firefox/download.js"></script>
<script type="text/javascript">
<!--
writeDownloadsFrontpage();
//-->
</script>
<noscript>
<div class="download">
<h3>Download Now</h3>
<ul>
<li><a href="http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/0.9.2/FirefoxSetup-0.9.2.exe">Windows (4.7MB)</a> </li>
<li><a href="http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/0.9.1/firefox-0.9.1-i686-linux-gtk2+xft-installer.tar.gz">Linux (8.1MB)</a></li>
<li><a href="http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/0.9.1/firefox-0.9.1-mac.dmg.gz">Mac OS X (8.6MB)</a></li>
</ul>
</div>
</noscript>
</div>
</div>
<?php
//include"inc_softwareupdate.php";
if ($_GET["application"]) {$application=$_GET["application"]; }
?>
<?php
//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];
if ($_GET["application"]) {$application=$_GET["application"]; }
//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];
?>
<DIV class="frontpagecontainer">
<DIV class="contentbox contentcolumns">
<DIV class="boxheader"><?php print(ucwords($application)); echo" $currentver_display"; ?> Extensions</DIV>
<div id="mBody">
<div class="frontcolumn">
<h2><a href="extensions/">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>
<?php
$sql = "SELECT TM.ID
@ -92,9 +108,106 @@ WHERE `Type` = 'E' AND `AppName` = '$application' AND `minAppVer_int`<='$curr
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
$numextensions = mysql_num_rows($sql_result);
?>
<a href="/extensions/">Browse extensions</a> (<?php echo"$numextensions"; ?> available)<BR>
<BR>
<a href="/extensions/">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/">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/">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/front-store.jpg" alt="Mozilla Store" class="promo" width="75" height="75"></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>
<br style="clear: both;"><br>
<!-- 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>
</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
@ -131,22 +244,9 @@ echo"<BR><BR>\n";
echo"<SPAN class=\"itemdescription\">$body</SPAN><BR>\n";
}
?>
<BR>
</DIV>
<DIV class="contentbox contentcolumns">
<DIV class="boxheader"><?php print(ucwords($application)); echo" $currentver_display"; ?> Themes</DIV>
<?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/">Browse themes</a> (<?php echo"$numthemes"; ?> available)<BR>
<BR>
<?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
@ -181,8 +281,8 @@ if ($pick=="YES") {echo" Editors Pick<BR><BR>\n";}
echo"$body<BR>\n";
}
?>
</DIV>
</DIV>
<?php
include"$page_footer";
?>