# keep the header in php generated file
}
include("common-html.php");
start_output();
$beenhere = isset($_GET['beenhere'])? $_GET['beenhere'] : 0;
$show_installed = !$beenhere || isset($_GET['show_installed']) ? '1' : '0';
$show_vote = !$beenhere || isset($_GET['show_vote']) ? '1' : '0';
$show_old = !$beenhere || isset($_GET['show_old']) ? '1' : '0';
$show_recent = !$beenhere || isset($_GET['show_recent']) ? '1' : '0';
$show_nofiles = !$beenhere || isset($_GET['show_nofiles']) ? '1' : '0';
$want_percent = isset($_GET['want_percent']) ? '1' : '0';
$want_legend = !$beenhere || isset($_GET['want_legend']) ? '1' : '0';
$want_ticks = !$beenhere || isset($_GET['want_ticks']) ? '1' : '0';
if ($beenhere) {
$date_fmt = $_GET['date_fmt'];
}
else {
$date_fmt = '%Y-%m';
}
$date_fmt_html = htmlspecialchars($date_fmt, ENT_QUOTES);
$date_fmt_url = urlencode($date_fmt);
$packages = $_GET['packages'];
$packages_html = htmlspecialchars($packages, ENT_QUOTES);
if (preg_match('/^[-a-z0-9.+, ]+$/D', $packages)) {
$packages_url = urlencode($packages);
$from_date = isset($_GET['from_date'])? $_GET['from_date'] : '';
$from_date_html = htmlspecialchars($from_date, ENT_QUOTES);
$from_date_url = urlencode($from_date);
$to_date = isset($_GET['to_date'])? $_GET['to_date'] : '';
$to_date_html = htmlspecialchars($to_date, ENT_QUOTES);
$to_date_url = urlencode($to_date);
$hlght_date = isset($_GET['hlght_date'])? $_GET['hlght_date'] : '';
$hlght_date_html = htmlspecialchars($hlght_date, ENT_QUOTES);
$hlght_date_url = urlencode($hlght_date);
print html_h("Popularity contest statistics for $packages", 2);
?>
installed is the sum of the four categories below:
vote is the number of people who use this package
regularly
old is the number of people who installed, but don't use
this package regularly
recent-ctime is the number of people who upgraded this
package recently
no-files is the number of people whose entry didn't
contain enough information (atime and ctime
were 0).