diff --git a/phpBB/admin/admin_board.php b/phpBB/admin/admin_board.php index b4278d1182..d95bb1c2a3 100644 --- a/phpBB/admin/admin_board.php +++ b/phpBB/admin/admin_board.php @@ -2,7 +2,7 @@ /*************************************************************************** * * ------------------- - * begin : Saturday, Feb 13, 2001 + * begin : Thursday, Jul 12, 2001 * copyright : (C) 2001 The phpBB Group * email : support@phpbb.com * @@ -22,6 +22,17 @@ * ***************************************************************************/ +if($setmodules==1) +{ + $module['board']['config']=__FILE__; + //$module['users']['edit']=__FILE__.'?mode=edit'; + //$module['users']['delete']=__FILE__.'?mode=delete'; + return; +} + +print "Got past the \$setmodules check
\n"; +print "Requested action was: $mode
\n"; + ?> diff --git a/phpBB/admin/admin_forumauth.php b/phpBB/admin/admin_forumauth.php index 86c147e80f..cfb3e34c8b 100644 --- a/phpBB/admin/admin_forumauth.php +++ b/phpBB/admin/admin_forumauth.php @@ -1,5 +1,13 @@
- \ No newline at end of file + diff --git a/phpBB/admin/admin_forums.php b/phpBB/admin/admin_forums.php index b4278d1182..87c7eec98e 100644 --- a/phpBB/admin/admin_forums.php +++ b/phpBB/admin/admin_forums.php @@ -2,7 +2,7 @@ /*************************************************************************** * * ------------------- - * begin : Saturday, Feb 13, 2001 + * begin : Thursday, Jul 12, 2001 * copyright : (C) 2001 The phpBB Group * email : support@phpbb.com * @@ -22,6 +22,18 @@ * ***************************************************************************/ +if($setmodules==1) +{ + $filename = basename(__FILE__); + $module['forums']['add'] = "$filename?mode=add"; + $module['forums']['edit'] = "$filename?mode=edit"; + $module['forums']['delete'] = "$filename?mode=delete"; + return; +} + +print "Got past the \$setmodules check
\n"; +print "Requested action was: $mode
\n"; + ?> diff --git a/phpBB/admin/admin_userauth.php b/phpBB/admin/admin_userauth.php index c8e5edc326..e2429b6f36 100644 --- a/phpBB/admin/admin_userauth.php +++ b/phpBB/admin/admin_userauth.php @@ -1,5 +1,12 @@ pparse("body"); exit; -?> \ No newline at end of file +?> 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> + + + diff --git a/phpBB/config.php b/phpBB/config.php index e55278aef6..2a057d85f0 100644 --- a/phpBB/config.php +++ b/phpBB/config.php @@ -33,9 +33,9 @@ $session_length = 300; // DB connection config $dbms = "mysql"; $dbhost = "localhost"; -$dbname = ""; -$dbuser = ""; -$dbpasswd = ""; +$dbname = "bartvb"; +$dbuser = "bartvb"; +$dbpasswd = "bvbdb="; // DB table prefix $table_prefix = "phpbb_"; diff --git a/phpBB/modcp.php b/phpBB/modcp.php index 56e812d853..d8e2f7382e 100644 --- a/phpBB/modcp.php +++ b/phpBB/modcp.php @@ -668,4 +668,4 @@ switch($mode) include('includes/page_tail.'.$phpEx); -?> \ No newline at end of file +?>