aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/admin/index.php
blob: a35dd2a71fe60ed6c40cbb10d0a00893f9357322 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<?php
/***************************************************************************  
 *                                 
 *                            -------------------                         
 *   begin                : Saturday, Feb 13, 2001 
 *   copyright            : (C) 2001 The phpBB Group        
 *   email                : support@phpbb.com                           
 *                                                          
 *   $Id$                                                           
 *                                                            
 * 
 ***************************************************************************/ 


/***************************************************************************  
 *                                                     
 *   This program is free software; you can redistribute it and/or modify    
 *   it under the terms of the GNU General Public License as published by   
 *   the Free Software Foundation; either version 2 of the License, or  
 *   (at your option) any later version.                      
 *                                                          
 * 
 ***************************************************************************/ 

$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($phpbb_root_path . 'includes/page_header.'.$phpEx);

}
elseif ($pane == 'left')
{
	print "<BASE TARGET=\"main\">";
	$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>
<?

}

?>