<script type="text/javascript"> <!-- function js_forum_jump(nodeid) { if (forumid > 0) { window.location = 'forumpermission.php?do=modify&n=' + nodeid; } } --> </script> <?php $vbulletin->input->clean_array_gpc('g', array('nodeid' => vB_Cleaner::TYPE_INT)); define('ONLYID', !empty($vbulletin->GPC['nodeid']) ? $vbulletin->GPC['nodeid'] : $vbulletin->GPC['n']); $select = '<div align="center"><select name="nodeid" id="sel_foruid" tabindex="1" class="bginput" onchange="js_forum_jump(this.options[selectedIndex].value);">'; $select .= construct_channel_chooser(ONLYID, true); $select .= "</select></div>\n"; echo $select; } print_channels($permissions); ?> </div> </div> </div> </center> <?php } function print_channels($permissions, $inheritance = array(), $channels = false, $indent = ' ') { global $vbulletin, $imodcache, $npermscache, $vbphrase; if ($channels === false) {
$parent = $parentage->next(); } } print_cells_row(array($vbphrase['channel'], $vbphrase['controls'], $vbphrase['display_order'], $vbphrase['moderators']), 1, 'tcat'); print_channel_rows($channels, $expanded_parents); print_table_footer(4, "<input type=\"submit\" class=\"button\" tabindex=\"1\" value=\"" . $vbphrase['save_display_order'] . "\" accesskey=\"s\" />" . construct_button_code($vbphrase['add_new_forum_gforum'], "forum.php?" . vB::getCurrentSession()->get('sessionurl') . "do=add")); if ($vbulletin->options['cp_collapse_forums']) { echo '<p class="smallfont" align="center">' . construct_link_code($vbphrase['expand_all'], "forum.php?" . vB::getCurrentSession()->get('sessionurl') . "do=modify&expandid=-2") . '</p>'; } } else { print_form_header('forum', 'doorder'); print_table_header($vbphrase['channel_manager_gforum'], 2); print_cells_row(array($vbphrase['channel'], $vbphrase['controls']), 1, 'tcat'); $cell = array(); $select = '<select name="nodeid" id="sel_foruid" tabindex="1" class="bginput">'; $select .= construct_channel_chooser($vbulletin->GPC['nodeid'], true); $select .= "</select>\n"; $cell[] = $select; $cell[] = "\n\t<select name=\"controls\" class=\"bginput\">\n" . construct_select_options($channeloptions) . "\t</select><input type=\"button\" class=\"button\" value=\"" . $vbphrase['go'] . "\" onclick=\"js_channel_jump(js_returnid());\" />\n\t"; print_cells_row($cell); print_table_footer(2, construct_button_code($vbphrase['add_new_forum_gforum'], "forum.php?" . vB::getCurrentSession()->get('sessionurl') . "do=add")); } } // ###################### Start update ####################### if ($_REQUEST['do'] == 'view') { $vbulletin->input->clean_array_gpc('r', array('nodeid' => vB_Cleaner::TYPE_UINT)); $channel = vB_Api::instanceInternal('node')->getNode($vbulletin->GPC['nodeid']); if (empty($channel)) { print_stop_message2('invalid_channel_specified'); } $path = vB_Api::instanceInternal('route')->getUrl($channel['routeid'], array(), array());