// // 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 // 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 // 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 // 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 // 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 terms of any one of the MPL, the GPL or the LGPL. // // ***** END LICENSE BLOCK ***** ?> "All Releases", "comments"=>"User Comments", "staffreview"=>"Editor Review", "opinion"=>" My Opinion"); $pagetitle = $pagetitles[$_GET["page"]]; ?> Mozilla Update :: Extensions -- More Info: <?php echo"$row[Name]"; if ($pagetitle) {echo" - $pagetitle"; } ?>
$dateadded) {$dateadded = $VerDateAdded; } if ($VerDateUpdated > $dateupdated) {$dateupdated = $VerDateUpdated; } //Turn Authors Array into readable string... $authorcount = count($authors); foreach ($authors as $author) { $userid = $authorids[$author]; $n++; $authorstring .= "$author"; if ($authorcount != $n) {$authorstring .=", "; } } $authors = $authorstring; unset($authorstring, $n); // Clear used Vars.. //Create Customizeable Timestamp for DateAdded/DateUpdated $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 $datimestamp = strtotime("$year-$month-$day $hour:$minute:$second"); $day=substr($dateupdated,8,2); //get the day $month=substr($dateupdated,5,2); //get the month $year=substr($dateupdated,0,4); //get the year $hour=substr($dateupdated,11,2); //get the hour $minute=substr($dateupdated,14,2); //get the minute $second=substr($dateupdated,17,2); //get the sec $dutimestamp = strtotime("$year-$month-$day $hour:$minute:$second"); $dateadded = gmdate("F d, Y g:i:sa", $datimestamp); //gmdate("F d, Y", $datimestamp); $dateupdated = gmdate("F d, Y g:i:sa", $dutimestamp); //gmdate("F d, Y", $dutimestamp); //Rating if (!$rating) { $rating="0"; } ?>
\n"; //echo"
"; //Why?!? if ($previewuri) { list($width, $height, $imagetype, $attr) = getimagesize("$websitepath"."$previewuri"); echo"\"$name"; } //Upper-Right Side Box echo"\n"; echo"
"; echo"$name $version
"; echo"By $authors
"; echo"
"; //Description & Version Notes echo""; echo"$description
"; if ($notes) {echo"$notes"; } echo"
\n"; //echo"
\n"; echo"
\n\n"; $page = $_GET["page"]; if (!$page or $page=="general") { ?>
0) { $time .= "$time_minutes minutes "; } $time .="$time_seconds seconds"; $filename = basename($uri); echo" Released on $verdateadded
"; if ($appname=="Thunderbird") { echo"\"\" ( Download Now )
"; } else { echo"\"\" ( Install Now )
"; } echo"   $filesize KB, ($time @ $speed"."k)

"; if ($application=="thunderbird") { echo"Extension Install Instructions for Thunderbird Users:
(1) Right-Click the link above and choose \"Save Link As...\" to Download and save the file to your hard disk.
(2) In Mozilla Thunderbird, open the extension manager (Tools Menu/Extensions)
(3) Click the Install button, and locate/select the file you downloaded and click \"OK\"

"; } if ($homepage) {echo"Having a problem with this Extension? For Help and Technical Support, visit the Extension's Homepage.";} echo"
User Comments:

"; echo"$commenttitle"; echo""; for ($i = 1; $i <= $rating; $i++) { echo"\"*\""; } for ($i = $i; $i <= 5; $i++) { echo"\"\""; } echo""; echo"
"; echo"  By $commentname
\n"; echo" 
\n"; echo"$commentnotes
\n\n"; echo" 
\n"; echo"
\n"; echo"$commentdate | More Comments... | Rate It!\n"; echo"
\n"; } if ($num_results=="0") { echo"
"; echo"Nobody's Commented on this Extension Yet
"; echo"Be the First! Rate It!"; echo"
"; } ?>
"; echo"Recent Releases:
"; echo""; $sql = "SELECT TV.vID, TV.Version, TV.MinAppVer, TV.MaxAppVer, TV.Size, TV.URI, TV.Notes, TA.AppName, TOS.OSName FROM `t_version` TV INNER JOIN t_applications TA ON TV.AppID = TA.AppID INNER JOIN t_os TOS ON TV.OSID = TOS.OSID WHERE TV.ID = '$_GET[id]' AND `approved` = 'YES' ORDER BY `Version` DESC, `OSName` ASC LIMIT 0, 10"; $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)) { $vid = $row["vID"]; $minappver = $row["MinAppVer"]; $maxappver = $row["MaxAppVer"]; $filesize = $row["Size"]; $notes = $row["Notes"]; $version = $row["Version"]; $uri = $row["URI"]; $osname = $row["OSName"]; $appname = $row["AppName"]; $filename = basename($uri); echo"
"; //Open Version DIV //Description & Version Notes echo""; echo"Version $version
\n"; if ($notes) {echo"$notes"; } echo"
\n"; //Icon Bar Modules echo"
"; echo"
\"\"Install
Size: $filesize kb
"; echo"
\"$appname\" Works with:
  $minappver - $maxappver
"; echo"
\"\"OS:
"; if($osname=="ALL") {echo"All OSes";} else {echo"$osname";} echo"
"; echo"
"; echo"
"; } //End General Page } else if ($page=="comments") { //Comments/Ratings Page echo"
"; echo"User Comments:
"; echo"
"; $sql = "SELECT CommentName, CommentTitle, CommentNote, CommentDate, CommentVote FROM `t_feedback` WHERE ID = '$_GET[id]' AND CommentNote IS NOT NULL ORDER BY `CommentDate` 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)) { $name = $row["CommentName"]; $title = $row["CommentTitle"]; $notes = $row["CommentNote"]; $date = $row["CommentDate"]; $rating = $row["CommentVote"]; echo"
"; echo"$title"; echo""; for ($i = 1; $i <= $rating; $i++) { echo"\"*\""; } for ($i = $i; $i <= 5; $i++) { echo"\"\""; } echo""; echo"
"; echo"$notes
\n\n"; echo"
\n"; echo"Posted on $date by $name
"; echo"
\n"; } if ($num_results=="0") { echo"
"; echo"Nobody has commented on this extension yet...
Be the First! Leave your comments..."; echo"
\n"; } echo"
"; } else if ($page=="staffreview") { //Staff/Editor Review Tab echo"
"; echo"Editor Review:
"; echo"
"; echo"
\n"; $sql = "SELECT TR.ID, `Title`, TR.DateAdded, `Body`, `Type`, `Pick`, TU.UserName FROM `t_reviews` TR INNER JOIN t_main TM ON TR.ID = TM.ID INNER JOIN t_userprofiles TU ON TR.AuthorID = TU.UserID WHERE `Type` = 'E' AND TR.ID = '$_GET[id]' ORDER BY `rID` DESC LIMIT 1"; $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)) { $id = $row["ID"]; $title = $row["Title"]; $dateadded = $row["DateAdded"]; $body = $row["Body"]; $pick = $row["Pick"]; $username = $row["UserName"]; //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"); $timestamp = strtotime("$dateadded"); $date = gmdate("F, Y", $timestamp); $posteddate = date("F j Y, g:i:sa", $timestamp); echo"$title
\n"; if ($pick=="YES") {echo"   $date Editors Pick
\n"; } echo"
\n"; echo"$body

\n"; echo"
Posted on $posteddate by $username
\n"; } $typename = "extension"; if ($num_results=="0") { echo" This $typename has not yet been reviewed.

To see what other users think of this extension, view the User Comments...
"; } echo"
\n"; } else if ($page=="opinion") { //My Opinion Tab echo"
"; echo"Your Rating / Feedback:
"; echo"
"; ?> \n Your comment submission had the following error(s), please fix these errors and try again.
\n    Rating field cannot be left blank.
\n \n"; } ?>
"> "> Your Name:

Rating:*

Title:

Review/Comments:

     No Comment?
  
* Required Fields
"; echo"Date Added: $dateadded | Last Updated: $dateupdated | "; echo"Total Downloads: $downloadcount
"; echo"\n"; echo"\n"; echo"
\n"; ?>