Пример #1
0
     } elseif ($_SESSION['cult']) {
         $cult = $_SESSION['cult'];
     } else {
         $cult = $_USER->getCult();
     }
     if ($_REQUEST['civ']) {
         $civ = $_REQUEST['civ'];
         $_SESSION['civ'] = $civ;
     } elseif ($_SESSION['civ']) {
         $civ = $_SESSION['civ'];
     } else {
         $civ = $_USER->getCiv();
     }
     $cat = new CSRCategory($open, $_USER->getRace(), $cult, $civ);
     if ($_REQUEST['grant'] != "") {
         $cat->grantNode($_REQUEST['grant'], $_USER->getID());
     }
     if ($_REQUEST['deny'] != "") {
         $cat->denyNode($_REQUEST['deny'], $_USER->getID());
     }
 }
 $c .= "<center><table>\n\t\t\t\t<tr>\n\t\t\t\t<td colspan='2' align='left'>" . csr_render_yubopoints($user['id']) . "</td>\n\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t\t<td valign='top'><div style='width:230px;font-weight:bold;font-size:14px;'>";
 $c .= csr_render_menu($menu);
 $c .= "</div></td>\n\t\t\t\t\t\t<td width='645px' valign='top'>";
 if ($open != 0) {
     $c .= csr_render_category($cat);
 } else {
     $cat = new AchSummary($menu, 3);
     $c .= ach_render_summary_header();
 }
 if ($open == 0) {