diff options
| author | Bart van Bragt <bartvb@users.sourceforge.net> | 2001-07-13 14:16:11 +0000 |
|---|---|---|
| committer | Bart van Bragt <bartvb@users.sourceforge.net> | 2001-07-13 14:16:11 +0000 |
| commit | 384371cdc7170bdf3ff0107e95afe97c815c022a (patch) | |
| tree | b60ec72c2b0f638f3f608c0059a1441794c15bea /phpBB/admin/index.php | |
| parent | 2fd984b37034904ad60be97b6654530dbdecfd11 (diff) | |
| download | forums-384371cdc7170bdf3ff0107e95afe97c815c022a.tar forums-384371cdc7170bdf3ff0107e95afe97c815c022a.tar.gz forums-384371cdc7170bdf3ff0107e95afe97c815c022a.tar.bz2 forums-384371cdc7170bdf3ff0107e95afe97c815c022a.tar.xz forums-384371cdc7170bdf3ff0107e95afe97c815c022a.zip | |
Start of the admin frontend
git-svn-id: file:///svn/phpbb/trunk@639 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/admin/index.php')
| -rw-r--r-- | phpBB/admin/index.php | 75 |
1 files changed, 75 insertions, 0 deletions
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 "<BASE TARGET=\"main\">"; + // Hmm, should we make this variable? + chdir('admin/'); + $dir = opendir("."); + + $setmodules=1; + while($file = readdir($dir)) + { + if(preg_match("/^admin_.*/", $file)) + { + //print "$file<br>\n"; + include($file); + } + } + + while(list($cat, $action_array) = each($module)) + { + print "<H3>$cat</H3>\n"; + print "<ul>\n"; + while(list($action, $file) = each($action_array)) + { + print "<li><a href=\"$file\">$action</a></li>\n"; + } + print "</ul>\n"; + } + //var_dump($module); + + $setmodules = 0; +} +elseif ($pane == 'right') +{ + + + echo "This the right pane ;)"; + +} +else +{ // Generate frameset +?> +<html> +<head> +<title>Admin</title> +</head> + +<frameset rows="150,*" border="0" frameborder="0"> + <frame src="index.<?php echo $phpEx?>?pane=top" name="top" SCROLLING="NO"> + <frameset cols="150,*" border="0" frameborder="0"> + <frame src="index.<?php echo $phpEx?>?pane=left" name="nav"> + <frame src="index.<?php echo $phpEx?>?pane=right" name="main"> + </frameset> +</frameset> +<noframes> + <body bgcolor="#FFFFFF"> + Sorry, your browser doesn't seem to support Frames.. +</body> +</noframes> +</html> +<? + +} ?> |
