</dl>
		<dl id="menu-thunderbird">
		<dt>Thunderbird:</dt>
		<dd><a href="/extensions/?<?php 
echo "" . uriparams() . "&amp;";
?>
application=thunderbird" title="Get Extensions for Thunderbird Email">Extensions</a>, <a href="/themes/?<?php 
echo "" . uriparams() . "&amp;";
?>
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() . "&amp;";
?>
application=mozilla" title="Get Extensions for the Mozilla Suite">Extensions</a>, <a href="/themes/?<?php 
echo "" . uriparams() . "&amp;";
?>
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">&nbsp;</div>
	</div>
    <?php 
unset($uriparams_skip);
?>

</div>
<!-- closes #header-->

<hr class="hide">
        //get the hour
        $minute = substr($dateupdated, 14, 2);
        //get the minute
        $second = substr($dateupdated, 17, 2);
        //get the sec
        $timestamp = strtotime("{$year}-{$month}-{$day} {$hour}:{$minute}:{$second}");
        $dateupdated = gmdate("F d, Y g:i:sa", $timestamp);
        //gmdate("F d, Y", $dutimestamp);
        if ($type == "E") {
            $typename = "extensions";
        } else {
            if ($type == "T") {
                $typename = "themes";
            }
        }
        echo "<h3><A HREF=\"/{$typename}/moreinfo.php?" . uriparams() . "&amp;id={$id}\">{$name}</A></h3>";
        echo "{$description}<br>\n";
    }
}
if ($numresults == "0") {
    echo "No Extensions or Themes in the Database for {$username}";
}
?>
</DIV>
&nbsp;<BR>

</DIV>
<?php 
include "{$page_footer}";
?>
</BODY>
if (!$commentid or !$action) {
    //No CommentID / Invalid Action --> Error.
    page_error("4", "No Comment ID or Action is Invalid");
    exit;
}
//Set Flag on the Comment Record
$sql = "UPDATE `feedback` \n        SET `flag`='YES' \n        WHERE `CommentID`='{$commentid}' \n        LIMIT 1";
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error " . mysql_errno() . ": " . mysql_error() . "", E_USER_NOTICE);
if ($_GET["type"] == "E") {
    $type = "extensions";
} else {
    if ($_GET["type"] == "T") {
        $type = "themes";
    }
}
$return_path = "{$type}/moreinfo.php?id={$id}&vid={$vid}&" . uriparams() . "&page=comments&pageid={$_GET['pageid']}#{$commentid}";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html401/loose.dtd">
<html lang="EN" dir="ltr">
<head>
<title>Mozilla Update :: Report a Comment</title>
</head>
 
<body>
<?php 
include "{$page_header}";
?>
<h1>Mozilla Update :: Report a Comment Tool</h1>
You have successfully reported this comment to Mozilla Update staff.
A staff member will review your submission and take the appropriate action.<br>
Thank you for your assistance.<br><br>
Example #4
0
    $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 "\t\t<li>";
    echo "<a href=\"/{$typename}/moreinfo.php?" . uriparams() . "&amp;id={$id}\">{$name} {$version}</a>";
    echo "<span class=\"downloads\"> ({$dateadded})</span>";
    echo "</li>\n";
    $lastname = $name;
    if ($i >= "8") {
        break;
    }
}
?>
	</ol>
	</div>
</div>

<!-- closes #mBody-->

<?php 
Example #5
0
                        }
                    }
                    $typename = "extension";
                    if ($num_results == "0") {
                        echo "This {$typename} has not yet been reviewed.<BR><BR>\n\n            To see what other users think of this {$typename}, view the <A HREF=\"moreinfo.php?" . uriparams() . "&amp;id={$id}&amp;page=comments\">User Comments...</A>\n            ";
                    }
                } else {
                    if ($page == "opinion") {
                        //My Opinion Tab
                        echo "<h3>Your Comments about {$name}:</h3>";
                        if ($_GET["error"] == "norating") {
                            echo "<DIV class=\"errorbox\">\n\n            Your comment submission had the following error(s), please fix these errors and try again.<br>\n\n            &nbsp;&nbsp;&nbsp;Rating cannot be left blank.<br>\n\n            &nbsp;&nbsp;&nbsp;Review/Comments cannot be left blank.<br>\n\n            </DIV>\n";
                        }
                        ?>
    <FORM NAME="opinon" METHOD="POST" ACTION="../core/postfeedback.php?<?php 
                        echo uriparams();
                        ?>
">
    <DIV>
    <input name="formkey" type="hidden" value="<?php 
                        print md5(substr(md5(mt_rand()), 0, 10));
                        ?>
">
    <INPUT NAME="id" TYPE="HIDDEN" VALUE="<?php 
                        echo "{$id}";
                        ?>
">
    <INPUT NAME="vid" TYPE="HIDDEN" VALUE="<?php 
                        echo "{$vid}";
                        ?>
">
Example #6
0
    $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 "\t\t<li>";
    echo "<a href=\"/{$typename}/moreinfo.php?" . uriparams() . "&amp;id={$id}\"><strong>{$name} {$version}</strong></a>, {$dateadded}<br>";
    echo "{$description}";
    echo "</li>\n";
    $lastname = $name;
    if ($i >= "8") {
        break;
    }
}
?>
	</ol>
	</div>
</div>

<!-- closes #mBody-->

<?php 
$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() . "&amp;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() . "&amp;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() . "&amp;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() . "&amp;category={$catname}\" title=\"{$catdesc}\"><strong>{$catname}</strong></a></li>\n";
$uriparams_skip = "";
?>
    </ul>
    </div>
        $maxpagesonpage = $pageid + $pagesperpage;
        //Page #s
        while ($i <= $maxpagesonpage && $i <= $num_pages) {
            if ($i == $pageid) {
                echo "<SPAN style=\"color: #FF0000\">{$i}</SPAN>&nbsp;";
            } else {
                echo "<A HREF=\"?" . uriparams() . "&id={$id}&page={$page}&pageid={$i}\">{$i}</A>&nbsp;";
            }
            $i++;
        }
    }
    if ($num_pages > 1) {
        echo "<br>\nComments per page: \n";
        $perpagearray = array("25", "50", "100");
        foreach ($perpagearray as $items_per_page) {
            echo "<A HREF=\"?" . uriparams() . "&id={$id}&page={$page}&pageid=1\">{$items_per_page}</A>&nbsp;";
        }
    }
    ?>

<?php 
    if ($_POST["submit"] == "Add Comment") {
        echo "<a name=\"addcomment\"></a>\n";
        echo "<h2>Submitting Comment, please wait...</h2>\n";
        if (checkFormKey()) {
            $id = escape_string($_POST["id"]);
            $name = escape_string($_POST["name"]);
            $title = escape_string($_POST["title"]);
            $comments = escape_string($_POST["notes"]);
            if ($_POST["type"] == "E") {
                $type = "extensions";
Example #9
0
    if ($num_pages > 1) {
        echo "Jump to Page: ";
        $pagesperpage = 9;
        //Plus 1 by default..
        $i = 01;
        //Dynamic Starting Point
        if ($pageid > 11) {
            $nextpage = $pageid - 10;
        }
        $i = $nextpage;
        //Dynamic Ending Point
        $maxpagesonpage = $pageid + $pagesperpage;
        //Page #s
        while ($i <= $maxpagesonpage && $i <= $num_pages) {
            if ($i == $pageid) {
                echo "<SPAN style=\"color: #FF0000\">{$i}</SPAN>&nbsp;";
            } else {
                echo "<A HREF=\"?" . uriparams() . "&amp;pageid={$i}\">{$i}</A>&nbsp;";
            }
            $i++;
        }
    }
}
?>
</div>
<?php 
include "{$page_footer}";
?>
</div>
</BODY>
</HTML>