Пример #1
0
    $tmpui = $wt->getUserInfo($lang, $wiki, $uitem);
    if ($tmpui->userid || $tmpui->isIP) {
        $users["list"][] = $tmpui;
        $users["names"][] = "'" . $tmpui->userDb . "'";
    }
}
$perflog->stack[] = $users;
$ui = $users["list"][0];
$user = $ui->user;
//Show form if &article parameter is not set (or empty)
if (!$user && (!$page || !$lang || !$wiki || strval($namespace) == "")) {
    $wt->showPage();
}
$dbr = $wt->loadDatabase($lang, $wiki);
if ($page) {
    $site = $wt->loadPeachy($lang, $wiki);
    try {
        $pageObj = new Page($site, $page);
        $nsname = $pageObj->get_namespace(false);
        $nsid = $pageObj->get_namespace();
        $nscolon = $nsid ? $nsname . ":" : "";
        $page_title = $pageObj->get_title(false);
        $page_id = $pageObj->get_id();
    } catch (Exception $e) {
        $wt->error = $e->getMessage() . " (topedits::pageObj)";
        $wt->showPage();
    }
    if (!$page_id || $page_id == 0) {
        $wt->toDie('nosuchpage', $page . " ({$domain})");
    }
    $list = getPageEditsPerUser($dbr, $page_id, $domain, $users, $wi);