mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Added authentification
git-svn-id: file:///svn/phpbb/trunk@660 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
99c0f09343
commit
b88ce0ce5a
1 changed files with 30 additions and 7 deletions
|
@ -35,6 +35,19 @@ init_userprefs($userdata);
|
||||||
// End sessionmanagement
|
// End sessionmanagement
|
||||||
//
|
//
|
||||||
|
|
||||||
|
//
|
||||||
|
// Start Auth check
|
||||||
|
//
|
||||||
|
if($userdata['user_level'] != ADMIN)
|
||||||
|
{
|
||||||
|
message_die(CRITICAL_MESSAGE, $lang['Not_Moderator'], $lang['Not_Authorised'], __LINE__, __FILE__);
|
||||||
|
}
|
||||||
|
//
|
||||||
|
// End Auth check
|
||||||
|
//
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if ($pane == 'top')
|
if ($pane == 'top')
|
||||||
{
|
{
|
||||||
$page_title = $lang['View_topic'] ." - $topic_title";
|
$page_title = $lang['View_topic'] ." - $topic_title";
|
||||||
|
@ -45,6 +58,8 @@ if ($pane == 'top')
|
||||||
}
|
}
|
||||||
elseif ($pane == 'left')
|
elseif ($pane == 'left')
|
||||||
{
|
{
|
||||||
|
$pagetype = "noheader";
|
||||||
|
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
|
||||||
print "<BASE TARGET=\"main\">";
|
print "<BASE TARGET=\"main\">";
|
||||||
$dir = opendir(".");
|
$dir = opendir(".");
|
||||||
|
|
||||||
|
@ -58,19 +73,27 @@ elseif ($pane == 'left')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$template->set_filenames(array(
|
||||||
|
"body" => "admin/navigate.tpl")
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
while( list($cat, $action_array) = each($module) )
|
while( list($cat, $action_array) = each($module) )
|
||||||
{
|
{
|
||||||
print "<H3>$cat</H3>\n";
|
$template->assign_block_vars("catrow", array(
|
||||||
print "<ul>\n";
|
"CATNAME" => $cat)
|
||||||
|
);
|
||||||
while( list($action, $file) = each($action_array) )
|
while( list($action, $file) = each($action_array) )
|
||||||
{
|
{
|
||||||
print "<li><a href=\"$file\">$action</a></li>\n";
|
$template->assign_block_vars("catrow.actionrow", array(
|
||||||
|
"ACTIONNAME" => $action,
|
||||||
|
"FILE" => $file)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
print "</ul>\n";
|
|
||||||
}
|
}
|
||||||
//var_dump($module);
|
//var_dump($module);
|
||||||
|
|
||||||
|
$template->pparse("body");
|
||||||
|
|
||||||
$setmodules = 0;
|
$setmodules = 0;
|
||||||
}
|
}
|
||||||
|
@ -108,4 +131,4 @@ else
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Add table
Reference in a new issue