diff options
author | Bart van Bragt <bartvb@users.sourceforge.net> | 2001-07-14 15:22:55 +0000 |
---|---|---|
committer | Bart van Bragt <bartvb@users.sourceforge.net> | 2001-07-14 15:22:55 +0000 |
commit | b88ce0ce5a9657f3ac77914a6de58f3a2d5ab340 (patch) | |
tree | 8805f9f4f54e629e667db606daac62579ad55a2e /phpBB | |
parent | 99c0f09343413dada262117995fc4833332fdfd4 (diff) | |
download | forums-b88ce0ce5a9657f3ac77914a6de58f3a2d5ab340.tar forums-b88ce0ce5a9657f3ac77914a6de58f3a2d5ab340.tar.gz forums-b88ce0ce5a9657f3ac77914a6de58f3a2d5ab340.tar.bz2 forums-b88ce0ce5a9657f3ac77914a6de58f3a2d5ab340.tar.xz forums-b88ce0ce5a9657f3ac77914a6de58f3a2d5ab340.zip |
Added authentification
git-svn-id: file:///svn/phpbb/trunk@660 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/admin/index.php | 37 |
1 files changed, 30 insertions, 7 deletions
diff --git a/phpBB/admin/index.php b/phpBB/admin/index.php index a35dd2a71f..764205166f 100644 --- a/phpBB/admin/index.php +++ b/phpBB/admin/index.php @@ -35,6 +35,19 @@ init_userprefs($userdata); // 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') { $page_title = $lang['View_topic'] ." - $topic_title"; @@ -45,6 +58,8 @@ if ($pane == 'top') } elseif ($pane == 'left') { + $pagetype = "noheader"; + include($phpbb_root_path . 'includes/page_header.'.$phpEx); print "<BASE TARGET=\"main\">"; $dir = opendir("."); @@ -58,19 +73,27 @@ elseif ($pane == 'left') } } + $template->set_filenames(array( + "body" => "admin/navigate.tpl") + ); + + while( list($cat, $action_array) = each($module) ) { - print "<H3>$cat</H3>\n"; - print "<ul>\n"; - + $template->assign_block_vars("catrow", array( + "CATNAME" => $cat) + ); 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); + + $template->pparse("body"); $setmodules = 0; } @@ -108,4 +131,4 @@ else } -?>
\ No newline at end of file +?> |