From 384371cdc7170bdf3ff0107e95afe97c815c022a Mon Sep 17 00:00:00 2001 From: Bart van Bragt Date: Fri, 13 Jul 2001 14:16:11 +0000 Subject: Start of the admin frontend git-svn-id: file:///svn/phpbb/trunk@639 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/admin/index.php | 75 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) (limited to 'phpBB/admin/index.php') diff --git a/phpBB/admin/index.php b/phpBB/admin/index.php index b4278d1182..b729480dd1 100644 --- a/phpBB/admin/index.php +++ b/phpBB/admin/index.php @@ -22,6 +22,81 @@ * ***************************************************************************/ +chdir("../"); +include('extension.inc'); +include('common.'.$phpEx); +$userdata = session_pagestart($user_ip, PAGE_INDEX, $session_length); +init_userprefs($userdata); + + +if ($pane == 'top') +{ + $page_title = $lang['View_topic'] ." - $topic_title"; + $pagetype = "viewtopic"; + include('includes/page_header.'.$phpEx); +} +elseif ($pane == 'left') +{ + print ""; + // Hmm, should we make this variable? + chdir('admin/'); + $dir = opendir("."); + + $setmodules=1; + while($file = readdir($dir)) + { + if(preg_match("/^admin_.*/", $file)) + { + //print "$file
\n"; + include($file); + } + } + + while(list($cat, $action_array) = each($module)) + { + print "

$cat

\n"; + print "\n"; + } + //var_dump($module); + + $setmodules = 0; +} +elseif ($pane == 'right') +{ + + + echo "This the right pane ;)"; + +} +else +{ // Generate frameset +?> + + +Admin + + + + + + + + + + + <body bgcolor="#FFFFFF"> + Sorry, your browser doesn't seem to support Frames.. +</body> + + + -- cgit v1.2.1