Example #1
0
$phptemp->assign("page", $cnt->getName());
$content->assign("username", $cnt->getName());
$content->assign("usernameurl", rawurlencode($cnt->getName()));
$content->assign("url", $url);
$content->assign("loadwiki", "&wiki={$wiki}&lang={$lang}");
if (count($cnt->getGroupList())) {
    $content->assign("groups", implode(', ', $cnt->getGroupList()));
}
if ($cnt->getLive() > 0) {
    $content->assign("firstedit", $cnt->getFirstEdit());
    $content->assign("unique", number_format(count($uniqueEdits['total'])));
    $content->assign("average", $cnt->getAveragePageEdits());
    $content->assign("live", number_format(intval($cnt->getLive())));
    $content->assign("deleted", number_format(intval($cnt->getDeleted())));
    $content->assign("namespacetotals", $graph->legend());
    $content->assign("graph", $graph->pie($phptemp->getConf('namespacetotals')));
    if (in_array($lang . $wiki, $opt_in)) {
        if ($http->isOptedIn($cnt->getName())) {
            $content->assign("monthcounts", $graph->horizontalBar(600));
        } else {
            $content->assign("nograph", $phptemp->getConf("nograph", $cnt->getName(), $url));
        }
    } elseif (in_array($lang . $wiki, $opt_out)) {
        if (!$http->isOptedOut($cnt->getName())) {
            $content->assign("monthcounts", $graph->horizontalBar(600));
        } else {
            $content->assign("nograph", $phptemp->getConf("nograph2", $cnt->getName(), $url));
        }
    } elseif (in_array($lang . $wiki, $no_opt)) {
        $content->assign("monthcounts", $graph->horizontalBar(600));
    } else {