Esempio n. 1
0
    }
    if (isset($member) && is_object($member)) {
        $id = $member->get_id();
        $matriculation_number = $member->get_attribute("ldap:USER_MATRICULATION_NUMBER");
        $name = $user->get_id() == $id ? gettext("Your Points") : $member->get_name() . "<br /><small>(" . ($matriculation_number != 0 ? $matriculation_number : "n.a.") . ")</small>";
        $firstname = $member->get_attribute("USER_FIRSTNAME");
        $fullname = $member->get_attribute("USER_FULLNAME");
        $points = $proxy->get_attribute("UNIT_POINTLIST_POINTS_" . $id);
        if (!is_array($points)) {
            $points = array();
        }
    }
    if (!isset($name)) {
        $name = gettext("n.a.");
        $id = -1;
        $firstname = "";
        $fullname = "";
    }
    if (!isset($points)) {
        $points = array();
    }
    units_pointlist::display_memberdata($content, $id, $name, $firstname, $fullname, $count, $points, FALSE, $bonus_1, $bonus_2);
}
units_pointlist::display_maxpoints_data($content, $count, $maxpoints, $bonus_1, $bonus_2);
if (defined("LOG_DEBUGLOG")) {
    logging::append_log(LOG_DEBUGLOG, " \t" . round((microtime(TRUE) - $time1) * 1000) . " ms");
}
$html_handler->set_html_left($content->get());
$portal->set_page_main($html_handler->get_headline(), $html_handler->get_html(), "");
$portal->show_html();
exit;