diff options
| author | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-07-13 17:03:04 +0000 |
|---|---|---|
| committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-07-13 17:03:04 +0000 |
| commit | 813016d706d57d5ebd0ca5dd947ac921d3333373 (patch) | |
| tree | 3fc6c61ef7e531959a9d020dda391fe6b3184237 /phpBB/admin/index.php | |
| parent | 8e49899bce210323dae4626138d5465b68c4fc58 (diff) | |
| download | forums-813016d706d57d5ebd0ca5dd947ac921d3333373.tar forums-813016d706d57d5ebd0ca5dd947ac921d3333373.tar.gz forums-813016d706d57d5ebd0ca5dd947ac921d3333373.tar.bz2 forums-813016d706d57d5ebd0ca5dd947ac921d3333373.tar.xz forums-813016d706d57d5ebd0ca5dd947ac921d3333373.zip | |
Didnt I commit these?
git-svn-id: file:///svn/phpbb/trunk@650 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/admin/index.php')
| -rw-r--r-- | phpBB/admin/index.php | 59 |
1 files changed, 34 insertions, 25 deletions
diff --git a/phpBB/admin/index.php b/phpBB/admin/index.php index b729480dd1..a35dd2a71f 100644 --- a/phpBB/admin/index.php +++ b/phpBB/admin/index.php @@ -22,45 +22,53 @@ * ***************************************************************************/ -chdir("../"); -include('extension.inc'); -include('common.'.$phpEx); +$phpbb_root_path = "./../"; +include($phpbb_root_path . 'extension.inc'); +include($phpbb_root_path . 'common.'.$phpEx); + +// +// Start session management +// $userdata = session_pagestart($user_ip, PAGE_INDEX, $session_length); init_userprefs($userdata); - +// +// End sessionmanagement +// if ($pane == 'top') { $page_title = $lang['View_topic'] ." - $topic_title"; $pagetype = "viewtopic"; - include('includes/page_header.'.$phpEx); + + include($phpbb_root_path . 'includes/page_header.'.$phpEx); + } elseif ($pane == 'left') { print "<BASE TARGET=\"main\">"; - // Hmm, should we make this variable? - chdir('admin/'); $dir = opendir("."); - $setmodules=1; + $setmodules = 1; while($file = readdir($dir)) { - if(preg_match("/^admin_.*/", $file)) - { - //print "$file<br>\n"; - include($file); - } + if(preg_match("/^admin_.*/", $file)) + { + //print "$file<br>\n"; + include($file); + } } - while(list($cat, $action_array) = each($module)) + 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"; + 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); @@ -69,12 +77,14 @@ elseif ($pane == 'left') elseif ($pane == 'right') { - echo "This the right pane ;)"; } else -{ // Generate frameset +{ + +// Generate frameset + ?> <html> <head> @@ -98,5 +108,4 @@ else } - -?> +?>
\ No newline at end of file |
