} if (isset($_REQUEST["redirect"])) { go(hoturl("index")); } else { if ($newProfile) { $Conf->save_session("profile_redirect", $cj); } redirectSelf(); } } } else { if (isset($_REQUEST["merge"]) && !$newProfile && $Acct->contactId == $Me->contactId) { go(hoturl("mergeaccounts")); } else { if (isset($_REQUEST["clickthrough"])) { UserActions::save_clickthrough($Acct); } } } } } } function databaseTracks($who) { global $Conf; $tracks = (object) array("soleAuthor" => array(), "author" => array(), "review" => array(), "comment" => array()); // find authored papers $result = $Conf->qe("select Paper.paperId, count(pc.contactId)\n from Paper\n join PaperConflict c on (c.paperId=Paper.paperId and c.contactId={$who} and c.conflictType>=" . CONFLICT_AUTHOR . ")\n join PaperConflict pc on (pc.paperId=Paper.paperId and pc.conflictType>=" . CONFLICT_AUTHOR . ")\n group by Paper.paperId order by Paper.paperId"); while ($row = edb_row($result)) { if ($row[1] == 1) { $tracks->soleAuthor[] = $row[0];