diff options
author | Ludovic Arnaud <ludovic_arnaud@users.sourceforge.net> | 2003-04-09 22:17:55 +0000 |
---|---|---|
committer | Ludovic Arnaud <ludovic_arnaud@users.sourceforge.net> | 2003-04-09 22:17:55 +0000 |
commit | c17e275080d8b1834016d80687ccd5a4ecc674a7 (patch) | |
tree | c5715eac921d5fb50feb3155d3589b99c3f0d5a2 /phpBB/adm/index.php | |
parent | e5e9fd9cbacaec04f0df45c0c05a3944c3d47e74 (diff) | |
download | forums-c17e275080d8b1834016d80687ccd5a4ecc674a7.tar forums-c17e275080d8b1834016d80687ccd5a4ecc674a7.tar.gz forums-c17e275080d8b1834016d80687ccd5a4ecc674a7.tar.bz2 forums-c17e275080d8b1834016d80687ccd5a4ecc674a7.tar.xz forums-c17e275080d8b1834016d80687ccd5a4ecc674a7.zip |
Weekly update: MCP templates. Forms renamed to 'main', added mcp_jumpbox.html for easy jumping and mcp_foruminfo.html.
Not too happy with HTML though =" templates\subSilver\mcp_forum.html templates\subSilver\mcp_foruminfo.html templates\subSilver\mcp_front.html templates\subSilver\mcp_header.html templates\subSilver\mcp_jumpbox.html templates\subSilver\mcp_move.html templates\subSilver\mcp_post.html templates\subSilver\mcp_viewip.html templates\subSilver\mcp_viewlogs.html
git-svn-id: file:///svn/phpbb/trunk@3800 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/adm/index.php')
-rw-r--r-- | phpBB/adm/index.php | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/phpBB/adm/index.php b/phpBB/adm/index.php index 55e024c61f..77433c127a 100644 --- a/phpBB/adm/index.php +++ b/phpBB/adm/index.php @@ -606,23 +606,40 @@ else header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); header("Content-type: text/html; charset=" . $user->lang['ENCODING']); + $adm_url = "index.$phpEx$SID&pane=right"; + + /* + // Allows non-admin pages to link to admin pages + // eg: http://forums.foo.com/adm/index.php?sid=&mod=admin_forums&f=1 + if (!empty($_GET['mod']) && preg_match('/admin_([a-z]+)/', $_GET['mod'], $m)) + { + if (file_exists($phpbb_root_path . 'adm/admin_' . $m[1] . '.' . $phpEx)) + { + $adm_url = 'admin_' . $m[1] . '.' . $phpEx . $SID; + $adm_url .= (!empty($_GET['mode'])) ? '&mode=' . htmlspecialchars($_GET['mode']) : ''; + $adm_url .= (!empty($_GET['f'])) ? '&f=' . intval($_GET['f']) : ''; + $adm_url .= (!empty($_GET['u'])) ? '&u=' . intval($_GET['u']) : ''; + $adm_url .= (!empty($_GET['g'])) ? '&g=' . intval($_GET['g']) : ''; + } + } + */ ?> <html> <head> -<title><?php echo $user->lang['Admin_title']; ?></title> +<title><?php echo $user->lang['ADMIN_TITLE']; ?></title> </head> <frameset rows="60, *" border="0" framespacing="0" frameborder="NO"> <frame src="<?php echo "index.$phpEx$SID&pane=top"; ?>" name="title" noresize marginwidth="0" marginheight="0" scrolling="NO"> <frameset cols="155,*" rows="*" border="2" framespacing="0" frameborder="yes"> <frame src="<?php echo "index.$phpEx$SID&pane=left"; ?>" name="nav" marginwidth="3" marginheight="3" scrolling="yes"> - <frame src="<?php echo "index.$phpEx$SID&pane=right"; ?>" name="main" marginwidth="0" marginheight="0" scrolling="auto"> + <frame src="<?php echo $adm_url ?>" name="main" marginwidth="0" marginheight="0" scrolling="auto"> </frameset> </frameset> <noframes> <body bgcolor="white" text="#000000"> - <p><?php echo $user->lang['No_frames']; ?></p> + <p><?php echo $user->lang['NO_FRAMES']; ?></p> </body> </noframes> </html> |