Пример #1
0
			'TAGCAT_NAME'	=> $tag_cat[0]['tagcat_name'],
			'TAGCAT_TITLE'	=> $tag_cat[0]['tagcat_title'],
			'TAG_OPTIONS'	=> $tag_options,
		));
	}

	// Assign some vars
	$template->assign_vars(array(
		'U_KB'				=> append_sid($phpbb_root_path . 'kb.' . $phpEx),

		'S_FILTER_ACTION'	=> append_sid($phpbb_root_path . 'kb.' . $phpEx),
		'S_SEARCHBOX_ACTION'=> append_sid("{$phpbb_root_path}search.$phpEx", 'fid[]=' . KB_FORUM_ID),
	));

	// Display sidemenu
	$sidemenu = new sidemenu();
	$sidemenu->add_block('KB', $phpbb_root_path . 'kb.' . $phpEx);
	if ($auth->acl_get('f_c_post', KB_FORUM_ID))
	{
		$sidemenu->add_link('ADD_ARTICLE', $phpbb_root_path . 'kb.' . $phpEx, 'mode=add');
	}
	
	// Output page
	site_header($user->lang['KB'], 'kb', array(array('kb.' . $phpEx, 'KB')));

	$template->set_filenames(array(
		'body' => 'kb_index.html')
	);

	site_footer();
}
Пример #2
0
 // Both forms use the same constant
 add_form_key('bug_modify');
 // Build the status box
 if ($auth->acl_get('m_c_manage', $forum_id) || $report['assigned_id'] == $user->data['user_id']) {
     // Query statuses
     $sql = 'SELECT s.* FROM ' . BUGS_STATUSES_TABLE . ' s ORDER BY s.status_closed ASC, s.status_title ASC';
     $result = $db->sql_query($sql);
     $s_status_options = '';
     while ($row = $db->sql_fetchrow($result)) {
         $s_status_options .= '<option value="' . $row['status_id'] . '"' . ($row['status_id'] == $report['report_status'] ? ' selected="selected"' : '') . '>' . $row['status_title'] . '</option>';
     }
     $db->sql_freeresult($result);
     $template->assign_vars(array('S_STATUS_OPTIONS' => $s_status_options));
 }
 // Display sidemenu
 $sidemenu = new sidemenu();
 $sidemenu->add_block('REPORT_DETAILS');
 $sidemenu->add_kv_pair('REPORT_ID', $report['report_id']);
 $sidemenu->add_kv_pair('PROJECT', $report['project_title']);
 $sidemenu->add_kv_pair('VERSION', $report['version_title']);
 $sidemenu->add_kv_pair('STATUS', $report['status_title']);
 $sidemenu->add_kv_pair('COMPONENT', $report['component_title']);
 $sidemenu->add_kv_pair('ASSIGNED_TO', $report['assigned_id'] == 0 ? 'UNASSIGNED' : get_username_string('full', $report['assigned_id'], $report['assigned_name'], $report['assigned_colour']));
 $sidemenu->add_kv_pair('REPORTED_BY', get_username_string('full', $report['topic_poster'], $report['topic_first_poster_name'], $report['topic_first_poster_colour']));
 $sidemenu->add_kv_pair('REPORTED_ON', $user->format_date($report['topic_time']));
 $sidemenu->add_block('OPTIONS');
 if ($auth->acl_get('f_c_edit', $forum_id) && $report['topic_poster'] == $user->data['user_id'] || $auth->acl_get('m_edit', $forum_id)) {
     $sidemenu->add_link('EDIT_REPORT', "{$phpbb_root_path}bugs.{$phpEx}", "mode=edit&amp;project={$report['project_name']}&amp;report_id={$report_id}");
 }
 if ($is_subscribed) {
     $sidemenu->add_link('UNSUBSCRIBE_REPORT', "{$phpbb_root_path}bugs.{$phpEx}", "mode=report&amp;project={$report['project_name']}&amp;report_id={$report_id}&amp;action=unsubscribe");
Пример #3
0
			'MOD_AUTHOR_FULL'		=> '<a href="http://www.phpbb.com/community/memberlist.php?mode=viewprofile&amp;u=' . $row['mod_author_id'] . '">' . $row['mod_author_name'] . '</a>',
			'MOD_PHPBB_VERSION'		=> $version_tag['tag_title'],
		
			'U_MCP_QUEUE'		=> ($auth->acl_get('m_approve', MODS_FORUM_ID)) ? append_sid("{$phpbb_root_path}mcp.$phpEx", "i=queue&amp;mode=approve_details&amp;t={$row['topic_id']}", true) : false,
			'UNAPPROVED_IMG'	=> $user->img('icon_topic_unapproved', 'TOPIC_UNAPPROVED'),
		));
	}
	$db->sql_freeresult($result);
	
	// Assign some vars
	$template->assign_vars(array(
		'U_MODS_DB'			=> append_sid($phpbb_root_path . 'mods.' . $phpEx),
	));

	// Display sidemenu
	$sidemenu = new sidemenu();
	
	$sidemenu->add_block('MODS_DB');
	if ($auth->acl_get('f_c_post', MODS_FORUM_ID))
	{
		$sidemenu->add_link('ADD_MOD', "{$phpbb_root_path}mods.{$phpEx}", 'mode=add');
	}
	
	// Display tags in the sidemenu
	$tag_cats = array();
	foreach($tags as &$tag)
	{
		$tag_cats[$tag['tagcat_id']][] = $tag;
	}

	$sidemenu->add_block('TAGS');