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(); $time_start = getmicrotime();
//-- Website Variables--// //-- 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 $sitehostname = "update.mozilla.org"; // DNS Hostname
//-- MySQL Server/Database Properties/Connection --// //-- 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_header = "$websitepath/core/inc_header.php";
$page_footer = "$websitepath/core/inc_footer.php"; $page_footer = "$websitepath/core/inc_footer.php";
//includes //includes
include"inc_guids.php"; // GUID Handler include"inc_guids.php"; // GUID Handler
include"inc_global.php"; // Global Functions include"inc_global.php"; // Global Functions

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

@ -1,57 +1,74 @@
<?php <?php
// ***** BEGIN LICENSE BLOCK ***** // ***** BEGIN LICENSE BLOCK *****
// Version: MPL 1.1/GPL 2.0/LGPL 2.1 // Version: MPL 1.1/GPL 2.0/LGPL 2.1
// //
// The contents of this file are subject to the Mozilla Public License Version // The contents of this file are subject to the Mozilla Public License Version
// 1.1 (the "License"); you may not use this file except in compliance with // 1.1 (the "License"); you may not use this file except in compliance with
// the License. You may obtain a copy of the License at // the License. You may obtain a copy of the License at
// http://www.mozilla.org/MPL/ // http://www.mozilla.org/MPL/
// //
// Software distributed under the License is distributed on an "AS IS" basis, // Software distributed under the License is distributed on an "AS IS" basis,
// WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
// for the specific language governing rights and limitations under the // for the specific language governing rights and limitations under the
// License. // License.
// //
// The Original Code is Mozilla Update. // The Original Code is Mozilla Update.
// //
// The Initial Developer of the Original Code is // The Initial Developer of the Original Code is
// Chris "Wolf" Crews. // Chris "Wolf" Crews.
// Portions created by the Initial Developer are Copyright (C) 2004 // Portions created by the Initial Developer are Copyright (C) 2004
// the Initial Developer. All Rights Reserved. // the Initial Developer. All Rights Reserved.
// //
// Contributor(s): // Contributor(s):
// Chris "Wolf" Crews <psychoticwolf@carolina.rr.com> // Chris "Wolf" Crews <psychoticwolf@carolina.rr.com>
// //
// Alternatively, the contents of this file may be used under the terms of // Alternatively, the contents of this file may be used under the terms of
// either the GNU General Public License Version 2 or later (the "GPL"), or // either the GNU General Public License Version 2 or later (the "GPL"), or
// the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), // the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
// in which case the provisions of the GPL or the LGPL are applicable instead // in which case the provisions of the GPL or the LGPL are applicable instead
// of those above. If you wish to allow use of your version of this file only // of those above. If you wish to allow use of your version of this file only
// under the terms of either the GPL or the LGPL, and not to allow others to // under the terms of either the GPL or the LGPL, and not to allow others to
// use your version of this file under the terms of the MPL, indicate your // use your version of this file under the terms of the MPL, indicate your
// decision by deleting the provisions above and replace them with the notice // decision by deleting the provisions above and replace them with the notice
// and other provisions required by the GPL or the LGPL. If you do not delete // and other provisions required by the GPL or the LGPL. If you do not delete
// the provisions above, a recipient may use your version of this file under // the provisions above, a recipient may use your version of this file under
// the terms of any one of the MPL, the GPL or the LGPL. // the terms of any one of the MPL, the GPL or the LGPL.
// //
// ***** END LICENSE BLOCK ***** // ***** END LICENSE BLOCK *****
?> ?>
<!--Page Footer--> <!--Page Footer-->
<?php <hr class="hide">
//Site Timer Counter :: Debug-Mode Item Only <div id="footer">
$time_end = getmicrotime(); <ul id="bn">
//Returns in format: sss.mmmuuunnnppp ;-) <li><a href="sitemap.html">Site Map</a></li>
// m = millisec, u=microsec, n=nansec, p=picosec <li><a href="contact/">Contact Us</a></li>
$time = round($time_end - $time_start,"6"); <li><a href="foundation/donate.html">Donate</a></li>
</ul>
echo"<DIV class=\"footer\">&copy; 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 <p>Copyright &copy; 1998-2004 The Mozilla Organization</p>
</div>
if ($pos !== false) { <!-- closes #footer-->
echo"</div>\n";
} </div>
if ($_SESSION["debug"]=="true") { <!-- closes #container -->
print(session_id());
echo"<PRE>";print_r($_SESSION); echo"</PRE><Br>\n"; <?php
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\">&copy; 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";
}
if ($_SESSION["debug"]=="true") {
print(session_id());
echo"<PRE>";print_r($_SESSION); echo"</PRE><Br>\n";
echo"Current application data: $application - $app_version - $OS ";
}
?>

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

@ -38,6 +38,26 @@
//inc_global.php -- Stuff that needs to be done globally to all of Mozilla Update //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) //Attempt to fix Bug 246743 (strip_tags) and Bug 248242 (htmlentities)
foreach ($_GET as $key => $val) { foreach ($_GET as $key => $val) {
$_GET["$key"] = htmlentities(str_replace("\\","",strip_tags($_GET["$key"]))); $_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. // Bug 250596 Fixes for incoming $_GET variables.
if ($_GET["application"]) { if ($_GET["application"]) {
$_GET["application"] = strtolower($_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); $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 (mysql_num_rows($sql_result)===0) {unset($_GET["application"]);}
} }

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

@ -1,82 +1,121 @@
<?php <?php
// ***** BEGIN LICENSE BLOCK ***** // ***** BEGIN LICENSE BLOCK *****
// Version: MPL 1.1/GPL 2.0/LGPL 2.1 // Version: MPL 1.1/GPL 2.0/LGPL 2.1
// //
// The contents of this file are subject to the Mozilla Public License Version // The contents of this file are subject to the Mozilla Public License Version
// 1.1 (the "License"); you may not use this file except in compliance with // 1.1 (the "License"); you may not use this file except in compliance with
// the License. You may obtain a copy of the License at // the License. You may obtain a copy of the License at
// http://www.mozilla.org/MPL/ // http://www.mozilla.org/MPL/
// //
// Software distributed under the License is distributed on an "AS IS" basis, // Software distributed under the License is distributed on an "AS IS" basis,
// WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
// for the specific language governing rights and limitations under the // for the specific language governing rights and limitations under the
// License. // License.
// //
// The Original Code is Mozilla Update. // The Original Code is Mozilla Update.
// //
// The Initial Developer of the Original Code is // The Initial Developer of the Original Code is
// Chris "Wolf" Crews. // Chris "Wolf" Crews.
// Portions created by the Initial Developer are Copyright (C) 2004 // Portions created by the Initial Developer are Copyright (C) 2004
// the Initial Developer. All Rights Reserved. // the Initial Developer. All Rights Reserved.
// //
// Contributor(s): // Contributor(s):
// Chris "Wolf" Crews <psychoticwolf@carolina.rr.com> // Chris "Wolf" Crews <psychoticwolf@carolina.rr.com>
// //
// Alternatively, the contents of this file may be used under the terms of // Alternatively, the contents of this file may be used under the terms of
// either the GNU General Public License Version 2 or later (the "GPL"), or // either the GNU General Public License Version 2 or later (the "GPL"), or
// the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), // the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
// in which case the provisions of the GPL or the LGPL are applicable instead // in which case the provisions of the GPL or the LGPL are applicable instead
// of those above. If you wish to allow use of your version of this file only // of those above. If you wish to allow use of your version of this file only
// under the terms of either the GPL or the LGPL, and not to allow others to // under the terms of either the GPL or the LGPL, and not to allow others to
// use your version of this file under the terms of the MPL, indicate your // use your version of this file under the terms of the MPL, indicate your
// decision by deleting the provisions above and replace them with the notice // decision by deleting the provisions above and replace them with the notice
// and other provisions required by the GPL or the LGPL. If you do not delete // and other provisions required by the GPL or the LGPL. If you do not delete
// the provisions above, a recipient may use your version of this file under // the provisions above, a recipient may use your version of this file under
// the terms of any one of the MPL, the GPL or the LGPL. // the terms of any one of the MPL, the GPL or the LGPL.
// //
// ***** END LICENSE BLOCK ***** // ***** END LICENSE BLOCK *****
?>
$pos = strpos($_SERVER["REQUEST_URI"], "/admin");
if ($pos !== false) { <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
echo'<LINK REL="STYLESHEET" TYPE="text/css" HREF="/core/mozupdates.bak.css">'; <meta name="keywords" content="web browser mozilla firefox firebird camino thunderbird bugzilla user agent web links cool sites">
$application="login"; $_SESSION["application"]="login"; unset($_SESSION["app_version"], $_SESSION["app_os"]);
} <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">
<DIV class="header"> <link rel="stylesheet" type="text/css" href="/css/cavendish/content.css" title="Cavendish" media="all">
<?php //if ($_GET["application"]) {$application=$_GET["application"]; } else {$application="firefox"; } ?> <link rel="stylesheet" type="text/css" href="/css/base/template.css" media="screen">
<DIV class="logo"><IMG SRC="/images/<?php echo"$application"; ?>-cornerlogo.png" BORDER=0 ALT=""></DIV> <link rel="stylesheet" type="text/css" href="/css/cavendish/template.css" title="Cavendish" media="screen">
<DIV class="header-top"><A HREF="/"><IMG SRC="/images/updatelogo.png" BORDER=0 HEIGHT=55 WIDTH=270 ALT="Mozilla Update"></A></DIV> <link rel="stylesheet" type="text/css" href="/css/cavendish/home.css" title="Cavendish" media="screen">
<DIV class="tabbar"> <link rel="stylesheet" type="text/css" href="/core/update.css" media="all">
<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> <link rel="icon" href="/images/mozilla-16.png" type="image/png">
</DIV> <link rel="home" title="Home" href="http://update.mozilla.org/">
</DIV> </head>
<DIV class="bar"></DIV>
<DIV class="nav"> <body id="update-mozilla-org" class="homepage">
<?php if ($application !=="login") { ?> <div id="container">
<A HREF="/">Home</A>
| <A HREF="/faq/">FAQ</A> <p class="skipLink"><a href="#mainContent" accesskey="2">Skip to main content</a></p>
<?php
// Types <div id="header">
$types = array("E"=>"Extensions","T"=>"Themes"); <h1><a href="/" title="Return to home page" accesskey="1">Mozilla Update</a></h1>
foreach($types as $typeid => $typename) { <ul title="Main Site Sections">
echo" | <A HREF=\"/".strtolower($typename)."/\">$typename</A>"; <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>
//echo"<BR>\n"; <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>
} else { echo"&nbsp;"; } <li id="menu_products"><a href="../extensions/" title="All software Mozilla currently offers">Extensions</a></li>
?> </ul>
</DIV> <form id="search" method="get" action="http://www.google.com/custom" title="Mozilla.org Search">
<div>
<?php <label for="q" title="Search update.mozilla.org">search update:</label>
if ($pos !== false) { <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">
<?php if ($_SESSION["logoncheck"] =="YES" && $headerline !="none") { ?> <input type="hidden" name="sitesearch" value="mozilla.org">
<DIV class="adminheading"> <input type="text" id="q" name="q" accesskey="s" size="30">
Welcome<?php echo" $_SESSION[name]"; ?>! <input type="submit" id="submit" value="Go">
<a href="usermanager.php?function=edituser&amp;userid=<?php echo"$_SESSION[uid]"; ?>">Your Profile</a> | <A HREF="main.php">Home</A> |<A HREF="logout.php">Logout</A> </div>
<?php } ?> </form>
</DIV> </div>
<div id="mainContent"> <!-- closes #header-->
<?php <?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="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>
</DIV>
<DIV class="bar"></DIV>
<DIV class="nav">
<?php if ($application !=="login") { ?>
<A HREF="/">Home</A>
| <A HREF="/faq/">FAQ</A>
<?php
// Types
$types = array("E"=>"Extensions","T"=>"Themes");
foreach($types as $typeid => $typename) {
echo" | <A HREF=\"/".strtolower($typename)."/\">$typename</A>";
}
//echo"<BR>\n";
} else { echo"&nbsp;"; }
?>
</DIV>
<?php
if ($pos !== false) {
?>
<?php if ($_SESSION["logoncheck"] =="YES" && $headerline !="none") { ?>
<DIV class="adminheading">
Welcome<?php echo" $_SESSION[name]"; ?>!
<a href="usermanager.php?function=edituser&amp;userid=<?php echo"$_SESSION[uid]"; ?>">Your Profile</a> | <A HREF="main.php">Home</A> |<A HREF="logout.php">Logout</A>
<?php } ?>
</DIV>
<div id="mainContent">
<?php
}
?> ?>

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

@ -35,192 +35,57 @@
* *
* ***** END LICENSE BLOCK ***** */ * ***** END LICENSE BLOCK ***** */
BODY {
MARGIN: 0px 0px 5px; FONT-FAMILY: Arial; BACKGROUND-COLOR: #fff
}
A { A {
text-decoration: none;
}
#item A {
COLOR: #00129c; TEXT-DECORATION: none COLOR: #00129c; TEXT-DECORATION: none
} }
A:visited { #item A:visited {
COLOR: #00129c; TEXT-DECORATION: none COLOR: #00129c; TEXT-DECORATION: none
} }
A:hover { #item A:hover {
COLOR: #fc5900 COLOR: #fc5900
} }
DIV.header {
BACKGROUND-IMAGE: url(/images/header.png); BACKGROUND-REPEAT: repeat-x; HEIGHT: 77px
} #item {
DIV.header-top { BORDER: #D2D6D6 1px solid; PADDING-RIGHT: 6px; PADDING-LEFT: 5px; PADDING-BOTTOM: 0px; MARGIN-bottom: 10px; -moz-border-radius: 10px
HEIGHT: 57px
}
DIV.logo {
z-index: 1; position: absolute; right: 0px
}
DIV.tabbar {
PADDING-LEFT: 26px; HEIGHT: 20px
} }
DIV.nav { #item h5 {
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 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 { .title A:visited {
COLOR: #FFF; FONT-WEIGHT: bold; FONT-SIZE: 14pt; COLOR: #fc5900
}
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%
} }
#content { .authorline {
PADDING-LEFT: 5px; POSITION: relative; LEFT: 145px; WIDTH: 85%; MARGIN-LEFT: 15px
} }
DIV.item { .selected A, .selected A:visited {
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 COLOR: #fc5900
}
#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 {
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 { .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 { .noitems {
FONT-WEIGHT: bold; FONT-SIZE: 12pt; HEIGHT: 60px; TEXT-ALIGN: center FONT-WEIGHT: bold; FONT-SIZE: 12pt; min-height: 80px; 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
} }
.newsSubline { font-size: 8pt }

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

@ -1,194 +1,188 @@
<?php <?php
// ***** BEGIN LICENSE BLOCK ***** // ***** BEGIN LICENSE BLOCK *****
// Version: MPL 1.1/GPL 2.0/LGPL 2.1 // Version: MPL 1.1/GPL 2.0/LGPL 2.1
// //
// The contents of this file are subject to the Mozilla Public License Version // The contents of this file are subject to the Mozilla Public License Version
// 1.1 (the "License"); you may not use this file except in compliance with // 1.1 (the "License"); you may not use this file except in compliance with
// the License. You may obtain a copy of the License at // the License. You may obtain a copy of the License at
// http://www.mozilla.org/MPL/ // http://www.mozilla.org/MPL/
// //
// Software distributed under the License is distributed on an "AS IS" basis, // Software distributed under the License is distributed on an "AS IS" basis,
// WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
// for the specific language governing rights and limitations under the // for the specific language governing rights and limitations under the
// License. // License.
// //
// The Original Code is Mozilla Update. // The Original Code is Mozilla Update.
// //
// The Initial Developer of the Original Code is // The Initial Developer of the Original Code is
// Chris "Wolf" Crews. // Chris "Wolf" Crews.
// Portions created by the Initial Developer are Copyright (C) 2004 // Portions created by the Initial Developer are Copyright (C) 2004
// the Initial Developer. All Rights Reserved. // the Initial Developer. All Rights Reserved.
// //
// Contributor(s): // Contributor(s):
// Chris "Wolf" Crews <psychoticwolf@carolina.rr.com> // Chris "Wolf" Crews <psychoticwolf@carolina.rr.com>
// //
// Alternatively, the contents of this file may be used under the terms of // Alternatively, the contents of this file may be used under the terms of
// either the GNU General Public License Version 2 or later (the "GPL"), or // either the GNU General Public License Version 2 or later (the "GPL"), or
// the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), // the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
// in which case the provisions of the GPL or the LGPL are applicable instead // in which case the provisions of the GPL or the LGPL are applicable instead
// of those above. If you wish to allow use of your version of this file only // of those above. If you wish to allow use of your version of this file only
// under the terms of either the GPL or the LGPL, and not to allow others to // under the terms of either the GPL or the LGPL, and not to allow others to
// use your version of this file under the terms of the MPL, indicate your // use your version of this file under the terms of the MPL, indicate your
// decision by deleting the provisions above and replace them with the notice // decision by deleting the provisions above and replace them with the notice
// and other provisions required by the GPL or the LGPL. If you do not delete // and other provisions required by the GPL or the LGPL. If you do not delete
// the provisions above, a recipient may use your version of this file under // the provisions above, a recipient may use your version of this file under
// the terms of any one of the MPL, the GPL or the LGPL. // the terms of any one of the MPL, the GPL or the LGPL.
// //
// ***** END LICENSE BLOCK ***** // ***** END LICENSE BLOCK *****
?> ?>
<?php <?php
require"../core/config.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 Transitional//EN" "http://www.w3.org/TR/html401/loose.dtd">
<html lang="EN" dir="ltr"> <html lang="EN" dir="ltr">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="Content-Language" content="en"> <meta http-equiv="Content-Language" content="en">
<meta http-equiv="Content-Style-Type" content="text/css"> <meta http-equiv="Content-Style-Type" content="text/css">
<?php <?php
//Bookmarking-Friendly Page Title //Bookmarking-Friendly Page Title
$sql = "SELECT UserName FROM `t_userprofiles` WHERE UserID = '$_GET[id]' LIMIT 1"; $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); $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 (mysql_num_rows($sql_result)===0) {
$return = page_error("2","Author ID is Invalid or Missing."); $return = page_error("2","Author ID is Invalid or Missing.");
exit; exit;
} }
$row = mysql_fetch_array($sql_result); $row = mysql_fetch_array($sql_result);
?> ?>
<TITLE>Mozilla Update :: Extensions - Author Profile: <?php echo"$row[UserName]"; ?></TITLE> <TITLE>Mozilla Update :: Extensions - Author Profile: <?php echo"$row[UserName]"; ?></TITLE>
<LINK REL="STYLESHEET" TYPE="text/css" HREF="/core/update.css"> <LINK REL="STYLESHEET" TYPE="text/css" HREF="/core/update.css">
</HEAD> </HEAD>
<BODY> <BODY>
<?php <?php
include"$page_header"; include"$page_header";
$type = "E"; $type = "E";
$category = $_GET["category"]; $category = $_GET["category"];
include"inc_sidebar.php"; include"inc_sidebar.php";
?> ?>
<DIV id="content"> <DIV id="content">
<?php <?php
$userid = $_GET["id"]; $userid = $_GET["id"];
$sql = "SELECT * FROM `t_userprofiles` WHERE `UserID` = '$userid' LIMIT 1"; $sql = "SELECT * FROM `t_userprofiles` WHERE `UserID` = '$userid' LIMIT 1";
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE); $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);
$userid = $row["UserID"]; $userid = $row["UserID"];
$username = $row["UserName"]; $username = $row["UserName"];
$useremail = $row["UserEmail"]; $useremail = $row["UserEmail"];
$userwebsite = $row["UserWebsite"]; $userwebsite = $row["UserWebsite"];
$userpass = $row["UserPass"]; $userpass = $row["UserPass"];
$userrole = $row["UserRole"]; $userrole = $row["UserRole"];
$useremailhide = $row["UserEmailHide"]; $useremailhide = $row["UserEmailHide"];
?> ?>
<DIV class="item">
<SPAN class="boldfont">Profile for <?php echo"$username"; ?></SPAN><BR> <h3>Author Profile &#187; <?php echo"$username"; ?></h3>
<DIV class="boxheader2"></DIV>
<SPAN class="boldfont">Homepage:</SPAN> <?php Homepage: <?php
if ($userwebsite) {echo"<A HREF=\"$userwebsite\" target=\"_blank\">$userwebsite</A>"; if ($userwebsite) {echo"<A HREF=\"$userwebsite\" target=\"_blank\">$userwebsite</A>";
} else { } else {
echo"<SPAN CLASS=\"disabled\">Not Available for this Author</SPAN>"; echo"Not Available for this Author";
} }
?><BR> ?><BR>
<SPAN class="boldfont">E-Mail:</SPAN> <?php if ($useremailhide=="1") { E-Mail: <?php if ($useremailhide=="1") {
echo"<SPAN class=\"disabled\">Not Disclosed by Author</SPAN>"; echo"Not Disclosed by Author";
} else { } 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> &nbsp;<BR>
<DIV class="item"> <h3>All Extensions and Themes by <?php echo"$username"; ?></h3>
<SPAN class="boldfont">All Extensions and Themes by <?php echo"$username"; ?></SPAN><BR> <?php
<DIV class="boxheader2"></DIV> $sql = "SELECT TM.ID, TM.Type, TM.Name, TM.Description, TM.DateUpdated, TM.TotalDownloads, TU.UserEmail FROM `t_main` TM
<?php LEFT JOIN t_authorxref TAX ON TM.ID = TAX.ID
$sql = "SELECT TM.ID, TM.Type, TM.Name, TM.Description, TM.DateUpdated, TM.TotalDownloads, TU.UserEmail FROM `t_main` TM INNER JOIN t_userprofiles TU ON TAX.UserID = TU.UserID
LEFT JOIN t_authorxref TAX ON TM.ID = TAX.ID WHERE TU.UserID = '$userid' AND TM.Type !='P'
INNER JOIN t_userprofiles TU ON TAX.UserID = TU.UserID ORDER BY `Type` , `Name` ";
WHERE TU.UserID = '$userid' AND TM.Type !='P' $sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
ORDER BY `Type` , `Name` "; $numresults = mysql_num_rows($sql_result);
$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)) {
$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";
$sql_result2 = mysql_query($sql2, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
$sql2 = "SELECT `vID`, `Version` FROM `t_version` WHERE `ID` = '$row[ID]' AND `approved` = 'YES' ORDER BY `Version` ASC LIMIT 1"; while ($row2 = mysql_fetch_array($sql_result2)) {
$sql_result2 = mysql_query($sql2, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE); $vid = $row2["vID"];
while ($row2 = mysql_fetch_array($sql_result2)) { $version = $row2["Version"];
$vid = $row2["vID"];
$version = $row2["Version"]; $v++;
$id = $row["ID"];
$v++; $type = $row["Type"];
$id = $row["ID"]; $name = $row["Name"];
$type = $row["Type"]; $dateadded = $row["DateAdded"];
$name = $row["Name"]; $dateupdated = $row["DateUpdated"];
$dateadded = $row["DateAdded"]; $homepage = $row["Homepage"];
$dateupdated = $row["DateUpdated"]; $description = $row["Description"];
$homepage = $row["Homepage"]; $authors = $row["UserEmail"];
$description = $row["Description"]; $downloadcount = $row["TotalDownloads"];
$authors = $row["UserEmail"];
$downloadcount = $row["TotalDownloads"]; $day=substr($dateupdated,8,2); //get the day
$month=substr($dateupdated,5,2); //get the month
$day=substr($dateupdated,8,2); //get the day $year=substr($dateupdated,0,4); //get the year
$month=substr($dateupdated,5,2); //get the month $hour=substr($dateupdated,11,2); //get the hour
$year=substr($dateupdated,0,4); //get the year $minute=substr($dateupdated,14,2); //get the minute
$hour=substr($dateupdated,11,2); //get the hour $second=substr($dateupdated,17,2); //get the sec
$minute=substr($dateupdated,14,2); //get the minute $timestamp = strtotime("$year-$month-$day $hour:$minute:$second");
$second=substr($dateupdated,17,2); //get the sec $dateupdated = gmdate("F d, Y g:i:sa", $timestamp); //gmdate("F d, Y", $dutimestamp);
$timestamp = strtotime("$year-$month-$day $hour:$minute:$second");
$dateupdated = gmdate("F d, Y g:i:sa", $timestamp); //gmdate("F d, Y", $dutimestamp); echo"<h3><A HREF=\"moreinfo.php?id=$id\">$name</A></h3>";
echo"$description<br>\n";
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"; if ($numresults=="0") {
echo"<DIV class=\"baseline\">Updated: $dateupdated | Downloads: $downloadcount</DIV>\n"; echo"No Extensions or Themes in the Database for $username";
}
echo"</DIV>\n"; ?>
echo"<BR>\n"; </DIV>
} &nbsp;<BR>
} <?php if ($useremailhide !=="1") { ?>
if ($numresults=="0") { <A NAME="email"></A>
echo"<DIV class=\"noitems\">No Extensions or Themes in the Database for $username yet...</DIV>";
} <h3>Send an E-Mail to <?php echo"$username"; ?></h3>
?>
</DIV> <?php
&nbsp;<BR> //SendMail Returned Message Section
<?php if ($useremailhide !=="1") { ?> if ($_GET["mail"]) {
<A NAME="email"></A> $mail = $_GET["mail"];
<DIV class="item"> echo"<DIV class=\"mailresult\">";
<SPAN class="boldfont">Send an E-Mail to <?php echo"$username"; ?></SPAN><BR> if ($mail=="successful") {
<DIV class="boxheader2"></DIV> echo"Your message has been sent successfully...";
<?php } else if ($mail=="unsuccessful") {
//SendMail Returned Message Section echo"An error occured, your message was not sent... Please try again...";
if ($_GET["mail"]) { }
$mail = $_GET["mail"]; echo"</DIV>\n";
echo"<DIV class=\"mailresult\">"; }
if ($mail=="successful") { ?>
echo"Your message has been sent successfully..."; <FORM NAME="sendmail" METHOD="POST" ACTION="sendmail.php">
} else if ($mail=="unsuccessful") { <INPUT NAME="senduserid" TYPE="HIDDEN" VALUE="<?php echo"$userid"; ?>">
echo"An error occured, your message was not sent... Please try again..."; Your Name: <INPUT NAME="fromname" TYPE="TEXT" SIZE=40 MAXLENGTH=100><BR>
} Email: <INPUT NAME="fromemail" TYPE="TEXT" SIZE=40 MAXLENGTH=100><BR>
echo"</DIV>\n"; Subject: <INPUT NAME="subject" TYPE="TEXT" SIZE=40 MAXLENGTH=100><BR>
} Message:<BR>
?> <CENTER><TEXTAREA NAME="body" ROWS=20 COLS=65></TEXTAREA><BR>
<FORM NAME="sendmail" METHOD="POST" ACTION="sendmail.php"> <INPUT NAME="submit" TYPE="SUBMIT" VALUE="Send Message">&nbsp;&nbsp;<INPUT NAME="reset" TYPE="RESET" VALUE="Reset Form"><BR>
<INPUT NAME="senduserid" TYPE="HIDDEN" VALUE="<?php echo"$userid"; ?>"> </CENTER>
Your Name: <INPUT NAME="fromname" TYPE="TEXT" SIZE=40 MAXLENGTH=100>&nbsp;&nbsp; Email: <INPUT NAME="fromemail" TYPE="TEXT" SIZE=40 MAXLENGTH=100><BR> </FORM>
Subject: <INPUT NAME="subject" TYPE="TEXT" SIZE=40 MAXLENGTH=100><BR> </DIV>
Message:<BR> &nbsp;<BR>
<CENTER><TEXTAREA NAME="body" ROWS=20 COLS=65></TEXTAREA><BR> <?php } ?>
<INPUT NAME="submit" TYPE="SUBMIT" VALUE="Send Message">&nbsp;&nbsp;<INPUT NAME="reset" TYPE="RESET" VALUE="Reset Form"><BR> </DIV>
</CENTER> <?php
</FORM> include"$page_footer";
</DIV> ?>
&nbsp;<BR> </BODY>
<?php } ?>
</DIV>
<?php
include"$page_footer";
?>
</BODY>
</HTML> </HTML>

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

@ -39,49 +39,65 @@
<?php <?php
require"core/config.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 lang="EN" dir="ltr"> <html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <head>
<meta http-equiv="Content-Language" content="en"> <title>Mozilla Update</title>
<meta http-equiv="Content-Style-Type" content="text/css">
<TITLE>Mozilla Update</TITLE>
<LINK REL="STYLESHEET" TYPE="text/css" HREF="/core/update.css">
</HEAD>
<BODY>
<?php <?php
include"$page_header"; include"$page_header";
?> ?>
<DIV class="contentbox" style="margin-left: 2px;"> <div class="key-point cnet" id="firefox-feature">
<DIV class="boxheader">Welcome to Mozilla Update</DIV> <script type="text/javascript">
<SPAN class="itemdescription"> <!--
Mozilla Update hosts Extensions and Themes for Mozilla software. On this site you can find Extensions and Themes for Mozilla Firefox, var classes = new Array("cnet");
Mozilla Thunderbird and the Mozilla 1.x suite, with more to come. The site is broken up into sections for each product, with the var date = new Date();
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 var seconds;
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> var classid;
seconds = date.getSeconds();
</SPAN> classid = seconds % classes.length;
</DIV> document.getElementById('firefox-feature').className = 'key-point front-feature-' + classes[classid];
<?php include"inc_featuredupdate.php"; ?> -->
</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 <?php
//include"inc_softwareupdate.php"; if ($_GET["application"]) {$application=$_GET["application"]; }
if ($_GET["application"]) {$application=$_GET["application"]; }
?> //Temporary!! Current Version Array Code
<?php $currentver_array = array("firefox"=>"0.95", "thunderbird"=>"0.8", "mozilla"=>"1.7");
//Temporary!! Current Version Array Code $currentver_display_array = array("firefox"=>"1.0 Preview Release", "thunderbird"=>"0.8", "mozilla"=>"1.7.x");
$currentver_array = array("firefox"=>"0.95", "thunderbird"=>"0.8", "mozilla"=>"1.7"); $currentver = $currentver_array[$application];
$currentver_display_array = array("firefox"=>"1.0 Preview Release", "thunderbird"=>"0.8", "mozilla"=>"1.7.x"); $currentver_display = $currentver_display_array[$application];
$currentver = $currentver_array[$application];
$currentver_display = $currentver_display_array[$application];
?> ?>
<div id="mBody">
<DIV class="frontpagecontainer"> <div class="frontcolumn">
<DIV class="contentbox contentcolumns"> <h2><a href="extensions/">Get Extensions</a></h2>
<DIV class="boxheader"><?php print(ucwords($application)); echo" $currentver_display"; ?> Extensions</DIV> <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 <?php
$sql = "SELECT TM.ID $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); $sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
$numextensions = mysql_num_rows($sql_result); $numextensions = mysql_num_rows($sql_result);
?> ?>
<a href="/extensions/">Browse extensions</a> (<?php echo"$numextensions"; ?> available)<BR> <a href="/extensions/">Browse extensions</a><BR>(<?php echo"$numextensions"; ?> available for <?php print(ucwords($application)); echo" $currentver_display"; ?>)<BR>
<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 <?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 $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_main TM ON TR.ID = TM.ID
INNER JOIN t_version TV ON TV.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"; 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 <?php
//Featured Editor's Pick for Themes for $application
$sql = "SELECT TR.ID, `Title`, TR.DateAdded, `Body`, `Type`, `pick` FROM `t_reviews` TR $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_main TM ON TR.ID = TM.ID
INNER JOIN t_version TV ON TV.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"; echo"$body<BR>\n";
} }
?> ?>
</DIV>
</DIV>
<?php <?php
include"$page_footer"; include"$page_footer";
?> ?>