mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-06 16:56:44 +02:00
Initial implementation of a log viewer into the MCP
git-svn-id: file:///svn/phpbb/trunk@5460 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -78,6 +78,12 @@ if ($action == 'merge_select')
|
||||
$mode = 'forum_view';
|
||||
}
|
||||
|
||||
if ($mode == 'topic_logs')
|
||||
{
|
||||
$id = 'logs';
|
||||
$quickmod = false;
|
||||
}
|
||||
|
||||
// Topic view modes
|
||||
if (in_array($mode, array('split', 'split_all', 'split_beyond', 'merge', 'merge_posts')))
|
||||
{
|
||||
@@ -163,10 +169,12 @@ if (!$quickmod)
|
||||
if (!$topic_id)
|
||||
{
|
||||
$module->set_display('topic_view', false);
|
||||
$module->set_display('topic_logs', false);
|
||||
}
|
||||
if (!$forum_id)
|
||||
{
|
||||
$module->set_display('forum_view', false);
|
||||
$module->set_display('forum_logs', false);
|
||||
}
|
||||
if (!$user_id && $username == '')
|
||||
{
|
||||
@@ -235,6 +243,16 @@ function _module_main_post_details_url()
|
||||
return extra_url();
|
||||
}
|
||||
|
||||
function _module_logs_forum_view_url()
|
||||
{
|
||||
return extra_url();
|
||||
}
|
||||
|
||||
function _module_logs_topic_view_url()
|
||||
{
|
||||
return extra_url();
|
||||
}
|
||||
|
||||
function extra_url()
|
||||
{
|
||||
global $forum_id, $topic_id, $post_id;
|
||||
|
Reference in New Issue
Block a user