mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
Start of the admin frontend
git-svn-id: file:///svn/phpbb/trunk@639 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
2fd984b370
commit
384371cdc7
7 changed files with 121 additions and 8 deletions
|
@ -2,7 +2,7 @@
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
*
|
*
|
||||||
* -------------------
|
* -------------------
|
||||||
* begin : Saturday, Feb 13, 2001
|
* begin : Thursday, Jul 12, 2001
|
||||||
* copyright : (C) 2001 The phpBB Group
|
* copyright : (C) 2001 The phpBB Group
|
||||||
* email : support@phpbb.com
|
* 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<br>\n";
|
||||||
|
print "Requested action was: $mode<br>\n";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -1,5 +1,13 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
if($setmodules==1)
|
||||||
|
{
|
||||||
|
$filename = basename(__FILE__);
|
||||||
|
$module['Auth']['forums'] = $filename;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
chdir("../");
|
chdir("../");
|
||||||
|
|
||||||
include('extension.inc');
|
include('extension.inc');
|
||||||
|
@ -416,4 +424,4 @@ Copyright © 2001 phpBB Group, All Rights Reserved</font>
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
*
|
*
|
||||||
* -------------------
|
* -------------------
|
||||||
* begin : Saturday, Feb 13, 2001
|
* begin : Thursday, Jul 12, 2001
|
||||||
* copyright : (C) 2001 The phpBB Group
|
* copyright : (C) 2001 The phpBB Group
|
||||||
* email : support@phpbb.com
|
* 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<br>\n";
|
||||||
|
print "Requested action was: $mode<br>\n";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -1,5 +1,12 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
if($setmodules==1)
|
||||||
|
{
|
||||||
|
$filename = basename(__FILE__);
|
||||||
|
$module['Auth']['users'] = $filename;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
chdir("../");
|
chdir("../");
|
||||||
|
|
||||||
include('extension.inc');
|
include('extension.inc');
|
||||||
|
@ -738,4 +745,4 @@ $template->pparse("body");
|
||||||
|
|
||||||
exit;
|
exit;
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -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>
|
||||||
|
<?
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -33,9 +33,9 @@ $session_length = 300;
|
||||||
// DB connection config
|
// DB connection config
|
||||||
$dbms = "mysql";
|
$dbms = "mysql";
|
||||||
$dbhost = "localhost";
|
$dbhost = "localhost";
|
||||||
$dbname = "";
|
$dbname = "bartvb";
|
||||||
$dbuser = "";
|
$dbuser = "bartvb";
|
||||||
$dbpasswd = "";
|
$dbpasswd = "bvbdb=";
|
||||||
|
|
||||||
// DB table prefix
|
// DB table prefix
|
||||||
$table_prefix = "phpbb_";
|
$table_prefix = "phpbb_";
|
||||||
|
|
|
@ -668,4 +668,4 @@ switch($mode)
|
||||||
|
|
||||||
include('includes/page_tail.'.$phpEx);
|
include('includes/page_tail.'.$phpEx);
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Add table
Reference in a new issue