* @license http://opensource.org/licenses/gpl-license.php GNU Public License * */ /** * @ignore */ if (!defined('IN_TITANIA')) { exit; } // Mark all topics read if (request_var('mark', '') == 'topics') { titania_tracking::track(TITANIA_QUEUE_DISCUSSION, 0); } $queue_type = request_var('queue', ''); // Force the queue_type if we have a queue_id $queue_type = titania_types::type_from_url($queue_type); // Setup the base url we will use $base_url = titania_url::build_url('manage/queue_discussion'); if ($queue_type === false) { // We need to select the queue if they only have one that they can access, else display the list $authed = titania_types::find_authed('queue_discussion'); if (empty($authed)) { titania::needs_auth(); } else { if (sizeof($authed) == 1) { $queue_type = $authed[0]; } else { foreach ($authed as $type_id) { $sql = 'SELECT COUNT(topic_id) AS cnt FROM ' . TITANIA_TOPICS_TABLE . ' WHERE topic_type = ' . TITANIA_QUEUE_DISCUSSION . ' AND topic_category = ' . (int) $type_id;
} if (sizeof($contrib_tools->error)) { trigger_error(implode('<br />', $contrib_tools->error)); } redirect(titania_url::build_url('manage/queue', array('queue' => titania_types::$types[$queue->queue_type]->url, 'q' => $queue->queue_id))); break; /** * Display all support topics */ /** * Display all support topics */ case 'support': // The type of contribs (mod, style, converter, official_tool, etc.) $type = request_var('type', 'all'); $type_id = titania_types::type_from_url($type); $type = !$type_id ? 'all' : $type; if ($type == 'all') { // Mark all topics read if (request_var('mark', '') == 'topics') { titania_tracking::track(TITANIA_SUPPORT, 0); } // Mark all topics read phpbb::$template->assign_var('U_MARK_TOPICS', titania_url::append_url(titania_url::build_url('support/all'), array('mark' => 'topics'))); } // Generate the main breadcrumbs titania::generate_breadcrumbs(array('ALL_SUPPORT' => titania_url::build_url('support/' . $type . '/'))); $data = topics_overlord::display_forums_complete('all_support', false, array('contrib_type' => $type_id)); // Links to the support topic lists foreach (titania_types::$types as $id => $class) { phpbb::$template->assign_block_vars('support_types', array('U_SUPPORT' => titania_url::build_url('support/' . $class->url . '/'), 'TYPE_SUPPORT' => $class->langs));