1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-23 11:28:33 +01:00

Lots of languagification and redirection path change

git-svn-id: file:///svn/phpbb/trunk@759 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen 2001-07-28 16:42:12 +00:00
parent 476880a4c0
commit 91d4f863e4
18 changed files with 393 additions and 156 deletions

View File

@ -41,19 +41,15 @@ init_userprefs($userdata);
//
// End session management
//
//
// Check user permissions
//
if( !$userdata['session_logged_in'] )
{
header("Location: ../login.$phpEx?forward_page=/admin");
header("Location: ../login.$phpEx?forward_page=admin/");
}
else if( $userdata['user_level'] != ADMIN )
{
message_die(GENERAL_MESSAGE, "You are not authorised to administer this board");
message_die(GENERAL_MESSAGE, $lang['Not_admin']);
}
$template_header = "admin/page_header.tpl";
include('page_header_admin.'.$phpEx);
$mode = ($HTTP_GET_VARS['mode']) ? $HTTP_GET_VARS['mode'] : $HTTP_POST_VARS['mode'];

View File

@ -46,29 +46,18 @@ include($phpbb_root_path . 'common.'.$phpEx);
//
$userdata = session_pagestart($user_ip, PAGE_INDEX, $session_length);
init_userprefs($userdata);
//
// End sessionmanagement
//
//
// Check user permissions
// End session management
//
if( !$userdata['session_logged_in'] )
{
header("Location: ../login.$phpEx?forward_page=/admin/");
header("Location: ../login.$phpEx?forward_page=admin/");
}
else if( $userdata['user_level'] != ADMIN )
{
message_die(GENERAL_MESSAGE, "You are not authorised to administer this board");
message_die(GENERAL_MESSAGE, $lang['Not_admin']);
}
//
// Define Template files...
//
$template->set_filenames(array(
"body" => "admin/db_utilities_body.tpl")
);
//
// Set VERBOSE to 1 for debugging info..
//
@ -854,23 +843,24 @@ if( isset($HTTP_GET_VARS['perform']) || isset($HTTP_POST_VARS['perform']) )
case 'restore':
if(!isset($restore_start))
{
//
// Define Template files...
//
$template->set_filenames(array(
"body" => "admin/db_utils_restore_body.tpl")
);
//
// Page header
//
$template_header = "admin/page_header.tpl";
include('page_header_admin.'.$phpEx);
$db_message = "<H2>This will perform a full restore of a previously Backed up phpBB database</H2><BR>\n";
$db_message .= "<P><b>WARNING: This will overwrite any existing data</b><br>\n";
$db_links = "<FORM ENCTYPE=\"multipart/form-data\" METHOD=\"post\" ACTION=\"" . append_sid($PHP_SELF) . "\">\n";
$db_links .= "<INPUT TYPE=\"hidden\" NAME=\"perform\" VALUE=\"restore\">\n";
$db_links .= "Backup File:<INPUT TYPE=\"file\" NAME=\"backup_file\">\n";
$db_links .= "<INPUT TYPE=\"submit\" NAME=\"restore_start\" VALUE=\"Start Restore\">\n";
$db_links .= "</FORM></P>\n";
$s_hidden_fields = "<input type=\"hidden\" name=\"perform\" value=\"restore\">";
$template->assign_vars(array(
"U_DB_MESSAGE" => $db_message,
"U_DB_LINKS" => $db_links)
"S_DBRESTORE_ACTION" => append_sid("admin_db_utilities.$phpEx"),
"S_HIDDEN_FIELDS" => $s_hidden_fields)
);
$template->pparse("body");

View File

@ -38,9 +38,7 @@ if( $setmodules == 1 )
return;
}
//
// Now include the relevant files.
//
$phpbb_root_path = "./../";
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
@ -51,20 +49,16 @@ include($phpbb_root_path . 'includes/prune.'.$phpEx);
//
$userdata = session_pagestart($user_ip, PAGE_INDEX, $session_length);
init_userprefs($userdata);
//
// End sessionmanagement
//
//
// Check user permissions
// End session management
//
if( !$userdata['session_logged_in'] )
{
header("Location: ../login.$phpEx?forward_page=/admin/");
header("Location: ../login.$phpEx?forward_page=admin/");
}
else if( $userdata['user_level'] != ADMIN )
{
message_die(GENERAL_MESSAGE, "You are not authorised to administer this board");
message_die(GENERAL_MESSAGE, $lang['Not_admin']);
}
//

View File

@ -25,7 +25,7 @@
if($setmodules == 1)
{
$filename = basename(__FILE__);
$module['Auth']['Forums'] = $filename;
$module['Forums']['Permissions'] = $filename;
return;
}
@ -48,55 +48,46 @@ init_userprefs($userdata);
//
if( !$userdata['session_logged_in'] )
{
header("Location: ../login.$phpEx?forward_page=/admin");
header("Location: ../login.$phpEx?forward_page=admin/");
}
else if( $userdata['user_level'] != ADMIN )
{
message_die(GENERAL_MESSAGE, "You are not authorised to administer this board");
message_die(GENERAL_MESSAGE, $lang['Not_admin']);
}
//
// Start program - define vars
//
$simple_auth_ary = array(
0 => array(0, 0, 0, 0, 1, 1, 3, 3),
1 => array(0, 0, 0, 0, 3, 3, 3, 3),
2 => array(0, 0, 1, 1, 1, 1, 3, 3),
3 => array(1, 1, 1, 1, 1, 1, 3, 3),
4 => array(0, 2, 2, 2, 2, 2, 2, 3),
5 => array(2, 2, 2, 2, 2, 2, 2, 3),
6 => array(0, 3, 3, 3, 3, 3, 3, 3),
7 => array(3, 3, 3, 3, 3, 3, 3, 3),
8 => array(0, 0, 3, 0, 1, 1, 3, 3),
9 => array(0, 0, 3, 1, 1, 1, 3, 3)
0 => array(0, 0, 0, 0, 1, 1, 1, 3),
1 => array(0, 0, 1, 1, 1, 1, 1, 3),
2 => array(1, 1, 1, 1, 1, 1, 1, 3),
3 => array(0, 2, 2, 2, 2, 2, 2, 3),
4 => array(2, 2, 2, 2, 2, 2, 2, 3),
5 => array(0, 3, 3, 3, 3, 3, 3, 3),
6 => array(3, 3, 3, 3, 3, 3, 3, 3),
);
$simple_auth_types = array("Public", "Test Restricted", "Registered", "Registered [Hidden]", "Private", "Private [Hidden]", "Moderators", "Moderators [Hidden]", "Moderator Post + All Reply", "Moderator Post + Reg Reply");
$simple_auth_types = array($lang['Public'], $lang['Registered'], $lang['Registered'] . " [" . $lang['Hidden'] . "]", $lang['Private'], $lang['Private'] . " [" . $lang['Hidden'] . "]", $lang['Moderators'], $lang['Moderators'] . " [" . $lang['Hidden'] . "]");
$forum_auth_fields = array("auth_view", "auth_read", "auth_post", "auth_reply", "auth_edit", "auth_delete", "auth_sticky", "auth_announce");
$field_names = array(
"auth_view" => $lang['View'],
"auth_read" => $lang['Read'],
"auth_post" => $lang['Post'],
"auth_reply" => $lang['Reply'],
"auth_edit" => $lang['Edit'],
"auth_delete" => $lang['Delete'],
"auth_sticky" => $lang['Sticky'],
"auth_announce" => $lang['Announce']);
$forum_auth_levels = array("ALL", "REG", "ACL", "MOD", "ADMIN");
$forum_auth_const = array(AUTH_ALL, AUTH_REG, AUTH_ACL, AUTH_MOD, AUTH_ADMIN);
// Future Stuff
/*$simple_auth_ary = array(
0 => array(0, 0, 0, 0, 1, 0, 3, 3, 0, 0, 0),
1 => array(0, 0, 0, 0, 3, 3, 3, 3, 3, 3, 3),
2 => array(0, 0, 1, 1, 1, 1, 3, 3, 1, 1, 1),
3 => array(1, 1, 1, 1, 1, 1, 3, 3, 1, 1, 1),
4 => array(0, 2, 2, 2, 2, 2, 2, 3, 2, 2, 2),
5 => array(2, 2, 2, 2, 2, 2, 2, 3, 2, 2, 2),
6 => array(0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3),
7 => array(3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3),
8 => array(0, 0, 3, 0, 0, 0, 3, 3, 3, 3, 3),
9 => array(0, 0, 3, 1, 0, 0, 3, 3, 3, 3, 3)
);*/
//, "auth_votecreate", "auth_vote", "auth_attachments"
if(isset($HTTP_GET_VARS[POST_FORUM_URL]) || isset($HTTP_POST_VARS[POST_FORUM_URL]))
{
$forum_id = (isset($HTTP_POST_VARS[POST_FORUM_URL])) ? $HTTP_POST_VARS[POST_FORUM_URL] : $HTTP_GET_VARS[POST_FORUM_URL];
$forum_sql = "AND forum_id = $forum_id";
}
else
@ -105,15 +96,18 @@ else
$forum_sql = "";
}
if(isset($HTTP_GET_VARS['adv']))
if( isset($HTTP_GET_VARS['adv']) )
{
$adv = $HTTP_GET_VARS['adv'];
}
else
{
$adv = -1;
unset($adv);
}
//
// Start program proper
//
if(isset($HTTP_POST_VARS['submit']))
{
$sql = "";
@ -193,7 +187,6 @@ $forum_rows = $db->sql_fetchrowset($f_result);
//
// Page header
//
$template_header = "admin/page_header.tpl";
include('page_header_admin.'.$phpEx);
if(empty($forum_id))
@ -203,7 +196,7 @@ if(empty($forum_id))
// specified
//
$template->set_filenames(array(
"body" => "admin/forum_auth_select_body.tpl")
"body" => "admin/auth_select_body.tpl")
);
$select_list = "<select name=\"" . POST_FORUM_URL . "\">";
@ -214,8 +207,13 @@ if(empty($forum_id))
$select_list .= "</select>";
$template->assign_vars(array(
"S_FORUMAUTH_ACTION" => append_sid("admin_forumauth.$phpEx"),
"S_FORUMS_SELECT" => $select_list)
"L_AUTH_TITLE" => $lang['Forum'] . " " . $lang['Auth_Control'],
"L_AUTH_EXPLAIN" => $lang['Forum_auth_explain'],
"L_AUTH_SELECT" => $lang['Select_a'] . " " . $lang['Forum'],
"L_LOOK_UP" => $lang['Look_up'] . " " . $lang['Forum'],
"S_AUTH_ACTION" => append_sid("admin_forumauth.$phpEx"),
"S_AUTH_SELECT" => $select_list)
);
}
@ -226,7 +224,7 @@ else
// specified
//
$template->set_filenames(array(
"body" => "admin/forum_auth_body.tpl")
"body" => "admin/auth_forum_body.tpl")
);
$forum_name = $forum_rows[0]['forum_name'];
@ -252,14 +250,14 @@ else
// If we didn't get a match above then we
// automatically switch into 'advanced' mode
//
if($adv == -1 && !$matched)
if(!isset($adv) && !$matched)
{
$adv = 1;
}
$s_column_span == 0;
if( $adv <= 0 )
if( empty($adv) )
{
$simple_auth = "&nbsp;<select name=\"simpleauth\">";
@ -280,7 +278,7 @@ else
$simple_auth .= "</select>&nbsp;";
$template->assign_block_vars("forum_auth_titles", array(
"CELL_TITLE" => "Simple Mode")
"CELL_TITLE" => $lang['Simple_mode'])
);
$template->assign_block_vars("forum_auth_data", array(
"S_AUTH_LEVELS_SELECT" => $simple_auth)
@ -313,8 +311,10 @@ else
}
$custom_auth[$j] .= "</select>&nbsp;";
$cell_title = $field_names[$forum_auth_fields[$j]];
$template->assign_block_vars("forum_auth_titles", array(
"CELL_TITLE" => ucfirst(preg_replace("/auth_/", "", $forum_auth_fields[$j])))
"CELL_TITLE" => $cell_title)
);
$template->assign_block_vars("forum_auth_data", array(
"S_AUTH_LEVELS_SELECT" => $custom_auth[$j])
@ -325,8 +325,8 @@ else
}
$switch_mode = "admin_forumauth.$phpEx?" . POST_FORUM_URL . "=" . $forum_id . "&adv=";
$switch_mode .= ($adv <= 0 ) ? "1" : "0";
$switch_mode_text = ($adv <= 0 ) ? "Advanced Mode" : "Simple Mode";
$switch_mode .= ( empty($adv) ) ? "1" : "0";
$switch_mode_text = ( empty($adv) ) ? $lang['Advanced_mode'] : $lang['Simple_mode'];
$u_switch_mode = '<a href="' . $switch_mode . '">' . $switch_mode_text . '</a>';
$s_hidden_fields = '<input type="hidden" name="' . POST_FORUM_URL . '" value="' . $forum_id . '">';
@ -334,6 +334,11 @@ else
$template->assign_vars(array(
"FORUM_NAME" => $forum_name,
"L_AUTH_TITLE" => $lang['Forum'] . " " . $lang['Auth_Control'],
"L_AUTH_EXPLAIN" => $lang['Forum_auth_explain'],
"L_SUBMIT_CHANGES" => $lang['Submit_changes'],
"L_RESET_CHANGES" => $lang['Reset_changes'],
"U_FORUMAUTH_ACTION" => append_sid("admin_forumauth.$phpEx?" . POST_FORUM_URL . "=$forum_id"),
"U_SWITCH_MODE" => $u_switch_mode,

View File

@ -25,18 +25,34 @@
if( $setmodules == 1 )
{
$filename = basename(__FILE__);
$module['Forums']['add'] = "$filename?mode=add";
$module['Forums']['edit'] = "$filename?mode=edit";
$module['Forums']['delete'] = "$filename?mode=delete";
$module['Forums']['Add_new'] = "$filename?mode=add";
$module['Forums']['Manage'] = "$filename?mode=manage";
return;
}
print "Got past the \$setmodules check<br>\n";
print "Requested action was: $mode<br>\n";
$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 session management
//
if( !$userdata['session_logged_in'] )
{
header("Location: ../login.$phpEx?forward_page=admin/");
}
else if( $userdata['user_level'] != ADMIN )
{
message_die(GENERAL_MESSAGE, $lang['Not_admin']);
}
print "Got past the \$setmodules check<br>\n";
print "Requested action was: $mode<br>\n";
?>

View File

@ -25,7 +25,7 @@
if($setmodules == 1)
{
$filename = basename(__FILE__);
$module['Auth']['Groups'] = $filename;
$module['Groups']['Permissions'] = $filename;
return;
}
@ -44,11 +44,11 @@ init_userprefs($userdata);
//
if( !$userdata['session_logged_in'] )
{
header("Location: ../login.$phpEx?forward_page=/admin");
header("Location: ../login.$phpEx?forward_page=admin/");
}
else if( $userdata['user_level'] != ADMIN )
{
message_die(GENERAL_MESSAGE, "You are not authorised to administer this board");
message_die(GENERAL_MESSAGE, $lang['Not_admin']);
}
//
@ -550,14 +550,17 @@ else if(empty($HTTP_GET_VARS[POST_GROUPS_URL]))
include('page_header_admin.'.$phpEx);
$template->set_filenames(array(
"body" => "admin/ug_auth_select_body.tpl")
"body" => "admin/auth_select_body.tpl")
);
$template->assign_vars(array(
"L_USER_OR_GROUP" => "Group",
"L_AUTH_TITLE" => $lang['Group'] . " " . $lang['Auth_Control'],
"L_AUTH_EXPLAIN" => $lang['Group_auth_explain'],
"L_AUTH_SELECT" => $lang['Select_a'] . " " . $lang['Group'],
"L_LOOK_UP" => $lang['Look_up'] . " " . $lang['Group'],
"S_USERAUTH_ACTION" => append_sid("admin_groupauth.$phpEx"),
"S_USERS_SELECT" => $select_list)
"S_AUTH_ACTION" => append_sid("admin_groupauth.$phpEx"),
"S_AUTH_SELECT" => $select_list)
);
}
@ -580,7 +583,7 @@ else
include('page_header_admin.'.$phpEx);
$template->set_filenames(array(
"body" => "admin/ug_auth_body.tpl")
"body" => "admin/auth_ug_body.tpl")
);
//
@ -904,9 +907,12 @@ else
"USERNAME" => $t_groupname,
"USER_GROUP_MEMBERSHIPS" => "This group has the following members: $t_usergroup_list",
"L_USER_OR_GROUPNAME" => "Group name",
"L_USER_OR_GROUP" => "Group",
"L_USER_OR_GROUPNAME" => $lang['Group_name'],
"L_AUTH_TITLE" => $lang['User'] . " " . $lang['Auth_Control'],
"L_AUTH_EXPLAIN" => $lang['User_auth_explain'],
"L_PERMISSIONS" => $lang['Permissions'],
"L_SUBMIT_CHANGES" => $lang['Submit_changes'],
"L_RESET_CHANGES" => $lang['Reset_changes'],
"U_USER_OR_GROUP" => append_sid("admin_groupauth.$phpEx"),
"U_SWITCH_MODE" => $u_switch_mode,

View File

@ -0,0 +1,54 @@
<?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.
*
*
***************************************************************************/
if($setmodules == 1)
{
$filename = basename(__FILE__);
$module['Groups']['Manage'] = $filename;
return;
}
$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 session management
//
if( !$userdata['session_logged_in'] )
{
header("Location: ../login.$phpEx?forward_page=admin/");
}
else if( $userdata['user_level'] != ADMIN )
{
message_die(GENERAL_MESSAGE, $lang['Not_admin']);
}
?>

View File

@ -25,7 +25,7 @@
if($setmodules == 1)
{
$filename = basename(__FILE__);
$module['Auth']['Users'] = $filename;
$module['Users']['Permissions'] = $filename;
return;
}
@ -44,16 +44,18 @@ init_userprefs($userdata);
//
if( !$userdata['session_logged_in'] )
{
header("Location: ../login.$phpEx?forward_page=/admin");
header("Location: ../login.$phpEx?forward_page=admin/");
}
else if( $userdata['user_level'] != ADMIN )
{
message_die(GENERAL_MESSAGE, "You are not authorised to administer this board");
message_die(GENERAL_MESSAGE, $lang['Not_admin']);
}
//
// Start program - define vars
//
$forum_auth_fields = array("auth_view", "auth_read", "auth_post", "auth_reply", "auth_edit", "auth_delete", "auth_sticky", "auth_announce");
$auth_field_match = array(
"auth_view" => AUTH_VIEW,
"auth_read" => AUTH_READ,
@ -64,25 +66,18 @@ $auth_field_match = array(
"auth_sticky" => AUTH_STICKY,
"auth_announce" => AUTH_ANNOUNCE);
$forum_auth_fields = array("auth_view", "auth_read", "auth_post", "auth_reply", "auth_edit", "auth_delete", "auth_sticky", "auth_announce");
$field_names = array(
"auth_view" => $lang['View'],
"auth_read" => $lang['Read'],
"auth_post" => $lang['Post'],
"auth_reply" => $lang['Reply'],
"auth_edit" => $lang['Edit'],
"auth_delete" => $lang['Delete'],
"auth_sticky" => $lang['Sticky'],
"auth_announce" => $lang['Announce']);
$forum_auth_key_fields = array("auth_view", "auth_read", "auth_post", "auth_reply");
//
// Future stuff
//
//, "auth_votecreate", "auth_vote", "auth_attachments", "auth_allow_html", "auth_allow_bbcode", "auth_allow_smilies"
//
/* ,
"auth_vote" => AUTH_VOTE,
"auth_votecreate" => AUTH_VOTECREATE,
"auth_attachments" => AUTH_ATTACH,
"auth_allow_html" => AUTH_ALLOW_HTML
"auth_allow_bbcode" => AUTH_ALLOW_BBCODE
"auth_allow_smilies" => AUTH_ALLOW_SMILIES
);*/
// ---------------
// Start Functions
@ -613,14 +608,17 @@ else if(empty($HTTP_GET_VARS[POST_USERS_URL]))
include('page_header_admin.'.$phpEx);
$template->set_filenames(array(
"body" => "admin/ug_auth_select_body.tpl")
"body" => "admin/auth_select_body.tpl")
);
$template->assign_vars(array(
"L_USER_OR_GROUP" => "User",
"L_AUTH_TITLE" => $lang['User'] . " " . $lang['Auth_Control'],
"L_AUTH_EXPLAIN" => $lang['User_auth_explain'],
"L_AUTH_SELECT" => $lang['Select_a'] . " " . $lang['User'],
"L_LOOK_UP" => $lang['Look_up'] . " " . $lang['User'],
"S_USERAUTH_ACTION" => append_sid("admin_userauth.$phpEx"),
"S_USERS_SELECT" => $select_list)
"S_AUTH_ACTION" => append_sid("admin_userauth.$phpEx"),
"S_AUTH_SELECT" => $select_list)
);
}
@ -643,7 +641,7 @@ else
include('page_header_admin.'.$phpEx);
$template->set_filenames(array(
"body" => "admin/ug_auth_body.tpl")
"body" => "admin/auth_ug_body.tpl")
);
@ -947,7 +945,7 @@ else
if(!$adv)
{
$template->assign_block_vars("acltype", array(
"L_UG_ACL_TYPE" => "Simple Auth Setting")
"L_UG_ACL_TYPE" => $lang['Simple_Permission'])
);
$s_column_span++;
}
@ -955,24 +953,33 @@ else
{
for($i = 0; $i < count($forum_auth_fields); $i++)
{
$cell_title = $field_names[$forum_auth_fields[$i]];
$template->assign_block_vars("acltype", array(
"L_UG_ACL_TYPE" => ucfirst(preg_replace("/auth_/", "", $forum_auth_fields[$i])))
"L_UG_ACL_TYPE" => $cell_title)
);
$s_column_span++;
}
}
$switch_mode = "admin_userauth.$phpEx?" . POST_USERS_URL . "=" . $user_id . "&adv=";
$switch_mode .= ( !$adv ) ? "1" : "0";
$switch_mode_text = ( !$adv ) ? "Advanced Mode" : "Simple Mode";
$switch_mode .= ( empty($adv) ) ? "1" : "0";
$switch_mode_text = ( empty($adv) ) ? $lang['Advanced_mode'] : $lang['Simple_mode'];
$u_switch_mode = '<a href="' . $switch_mode . '">' . $switch_mode_text . '</a>';
$template->assign_vars(array(
"USERNAME" => $t_username,
"USER_GROUP_MEMBERSHIPS" => "This user is a $s_user_type and belongs to the following groups: $t_usergroup_list",
"L_USER_OR_GROUPNAME" => "Username",
"L_USER_OR_GROUP" => "User",
"L_USER_OR_GROUPNAME" => $lang['Username'],
"L_USER_OR_GROUP" => $lang['User'],
"L_AUTH_TITLE" => $lang['User'] . " " . $lang['Auth_Control'],
"L_AUTH_EXPLAIN" => $lang['User_auth_explain'],
"L_PERMISSIONS" => $lang['Permissions'],
"L_SUBMIT_CHANGES" => $lang['Submit_changes'],
"L_RESET_CHANGES" => $lang['Reset_changes'],
"L_MODERATOR_STATUS" => $lang['Moderator_status'],
"U_USER_OR_GROUP" => append_sid("admin_userauth.$phpEx"),
"U_SWITCH_MODE" => $u_switch_mode,

View File

@ -25,14 +25,30 @@
if($setmodules == 1)
{
$filename = basename(__FILE__);
$module['Users']['users'] = $filename;
$module['Users']['Manage'] = $filename;
return;
}
$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 session management
//
if( !$userdata['session_logged_in'] )
{
header("Location: ../login.$phpEx?forward_page=admin/");
}
else if( $userdata['user_level'] != ADMIN )
{
message_die(GENERAL_MESSAGE, $lang['Not_admin']);
}
?>

View File

@ -656,8 +656,42 @@ $lang['Avatar_dir_size'] = "Avatar directory size";
$lang['Database_size'] = "Database size";
$lang['Not_available'] = "Not available";
// Auth pages
$lang['User'] = "User";
$lang['Group'] = "Group";
$lang['Forum'] = "Forum";
$lang['Select_a'] = "Select a"; // followed by on the entries above
$lang['Auth_Control'] = "Authorisation Control"; // preceeded by one of the above options
$lang['Look_up'] = "Look up"; // preceeded by one of the above options
$lang['Group_auth_explain'] = "Here you can alter the permissions and moderator status assigned to each user group. Do not forget when changing group permissions that individual user permissions may still allow the user entry to forums, etc. You will be warned if this is the case.";
$lang['User_auth_explain'] = "Here you can alter the permissions and moderator status assigned to each individual user. Do not forget when changing user permissions that group permissions may still allow the user entry to forums, etc. You will be warned if this is the case.";
$lang['Forum_auth_explain'] = "Here you can alter the authorisation levels of each forum. You will have both a simple and advanced method for doing this, advanced offers greater control of each forum operation. Remember that changing the permission level of forums will affect which users can carry out the various operations within them.";
$lang['Simple_mode'] = "Simple Mode";
$lang['Advanced_mode'] = "Advanced Mode";
$lang['Moderator_status'] = "Moderator status";
$lang['Submit_changes'] = "Submit changes";
$lang['Reset_changes'] = "Reset changes";
$lang['Public'] = "Public";
$lang['Private'] = "Private";
$lang['Registered'] = "Registered";
$lang['Administrators'] = "Administrators";
$lang['Hidden'] = "Hidden";
$lang['View'] = "View";
$lang['Read'] = "Read";
$lang['Post'] = "Post";
$lang['Reply'] = "Reply";
$lang['Edit'] = "Edit";
$lang['Delete'] = "Delete";
$lang['Sticky'] = "Sticky";
$lang['Announce'] = "Announce";
$lang['Permissions'] = "Permissions";
$lang['Simple_Permission'] = "Simple Permission";
//
// End

View File

@ -0,0 +1,33 @@
<br clear="all" />
<h1>{L_AUTH_TITLE}</h1>
<p>{L_AUTH_EXPLAIN}</p>
<h2>{L_FORUM}: {FORUM_NAME}</h2>
<table cellspacing="1" cellpadding="4" border="0" align="center">
<tr><form method="post" action="{S_FORUMAUTH_ACTION}">
<!-- BEGIN forum_auth_titles -->
<th>{forum_auth_titles.CELL_TITLE}</th>
<!-- END forum_auth_titles -->
</tr>
<tr>
<!-- BEGIN forum_auth_data -->
<td class="row1" align="center">{forum_auth_data.S_AUTH_LEVELS_SELECT}</td>
<!-- END forum_auth_data -->
</tr>
<tr>
<td colspan="{S_COLUMN_SPAN}"><table width="100%" cellspacing="0" cellpadding="4" border="0">
<tr>
<td align="center"><span class="gensmall">{U_SWITCH_MODE}</span></td>
</tr>
<tr>
<td align="center">{S_HIDDEN_FIELDS}<input type="submit" name="submit" value="{L_SUBMIT_CHANGES}">&nbsp;&nbsp;<input type="reset" value="{L_RESET_CHANGES}"></td>
</tr>
</table></td>
</form></tr>
</table>
<br clear="all" />

View File

@ -0,0 +1,17 @@
<br clear="all" />
<h1>{L_AUTH_TITLE}</h1>
<p>{L_AUTH_EXPLAIN}</p>
<table cellspacing="1" cellpadding="4" border="0" align="center">
<tr>
<td class="cat" align="center"><span class="cattitle"><b>{L_AUTH_SELECT}</b></span></td>
</tr>
<tr><form method="get" action="{S_AUTH_ACTION}">
<td class="row1" align="center">{S_AUTH_SELECT}&nbsp;&nbsp;<input type="submit" value="{L_LOOK_UP}">&nbsp;</td>
</form></tr>
</table>
<br clear="all" />

View File

@ -0,0 +1,43 @@
<br clear="all" />
<h1>{L_AUTH_TITLE}</h1>
<h2>{L_USER_OR_GROUPNAME}: {USERNAME}</h2>
<p>{USER_GROUP_MEMBERSHIPS}</p>
<h2>{L_PERMISSIONS}</h2>
<p>{L_AUTH_EXPLAIN}</p>
<table cellspacing="1" cellpadding="4" border="0" align="center">
<tr><form method="post" action="{S_AUTH_ACTION}">
<th width="30%">{L_FORUM}</th>
<!-- BEGIN acltype -->
<th>{acltype.L_UG_ACL_TYPE}</th>
<!-- END acltype -->
<th>{L_MODERATOR_STATUS}</th>
</tr>
<!-- BEGIN forums -->
<tr>
<td class="{forums.ROW_CLASS}" align="center">{forums.FORUM_NAME}</td>
<!-- BEGIN aclvalues -->
<td class="{forums.ROW_CLASS}" align="center">{forums.aclvalues.S_ACL_SELECT}</td>
<!-- END aclvalues -->
<td class="{forums.ROW_CLASS}" align="center">{forums.S_MOD_SELECT}</td>
</tr>
<!-- END forums -->
<tr>
<td colspan="{S_COLUMN_SPAN}"><table width="100%" cellspacing="0" cellpadding="4" border="0">
<tr>
<td align="center"><span class="gensmall">{U_SWITCH_MODE}</span></td>
</tr>
<tr>
<td align="center">{S_HIDDEN_FIELDS}<input type="submit" name="submit" value="{L_SUBMIT_CHANGES}">&nbsp;&nbsp;<input type="reset" value="{L_RESET_CHANGES}"></td>
</tr>
</table></td>
</form></tr>
</table>
<br clear="all" />

View File

@ -0,0 +1,9 @@
<br clear="all" />
<h1>Database Utilities : Backup</h1>
<div align="center">{U_DB_MESSAGE}
{U_DB_LINKS}</div>
<br clear="all" />

View File

@ -0,0 +1,16 @@
<br clear="all" />
<h1>Database Utilities : Restore</h1>
<P>This will perform a full restore of all phpBB tables from a saved file. <b>WARNING</b> This will overwrite any existing data</p>
<table cellspacing="1" cellpadding="4" border="0" align="center">
<tr>
<th>Select a File</th>
</tr>
<tr><form enctype="multipart/form-data" method="post" action="{S_DBUTILS_ACTION}">
<td class="row1" align="center">&nbsp;<input type="file" name="backup_file">&nbsp;&nbsp;<input type="submit" name="restore_start" value="Start Restore">&nbsp;</td>
</form></tr>
</table></div>
<br clear="all" />

View File

@ -1,24 +1,21 @@
<table width="100%" cellpadding="4" cellspacing="1" border="0">
<tr>
<th class="cat">phpBB Admin</th>
</tr>
<tr>
<td class="row1"><a href="{U_ADMIN_INDEX}" target="main">{L_ADMIN_INDEX}</a></td>
</tr>
<tr>
<td class="row2"><a href="{U_BOARD_INDEX}" target="_top">{L_BOARD_INDEX}</a></td>
</tr>
<!-- BEGIN catrow -->
<tr>
<td class="cat" align="center"><span class="cattitle"><b>{catrow.CATNAME}</b></span></td>
</tr>
<!-- BEGIN actionrow -->
<tr>
<td class="{catrow.actionrow.ROW_CLASS}"><a href="{catrow.actionrow.FILE}" target="main">{catrow.actionrow.ACTIONNAME}</a></td>
</tr>
<!-- END actionrow -->
<!-- END catrow -->
<!-- <a href="{U_BOARD_INDEX}" target="_top"><img src="../images/logo_medium.gif" border="0"/></a> -->
<div align="center"><font face="Impact,sans-serif" size="6"><a href="{U_BOARD_INDEX}" target="_top">phpBB2</a></font></div>
<table width="100%" cellpadding="4" cellspacing="0" border="0" align="center">
<tr>
<td ><a href="{U_ADMIN_INDEX}" target="main">{L_ADMIN_INDEX}</a></td>
</tr>
<!-- BEGIN catrow -->
<tr>
<td class="cat" align="center"><span class="cattitle"><b>{catrow.CATNAME}</b></span></td>
</tr>
<!-- BEGIN actionrow -->
<tr>
<td><a href="{catrow.actionrow.FILE}" target="main">{catrow.actionrow.ACTIONNAME}</a></td>
</tr>
<!-- END actionrow -->
<!-- END catrow -->
</table>
</body>

View File

@ -16,9 +16,7 @@
//-->
<div align="center">
<span class="gensmall">Powered By <a href="http://www.phpbb.com/" target="_phpbb">phpBB 2.0 - alpha</a></span>
<br clear="all" />
<span class="gensmall">This bulletin board software is copyright &copy; 2001 phpBB Group, All Rights Reserved</span>
<span class="gensmall">Powered By <a href="http://www.phpbb.com/" target="_phpbb">phpBB 2.0a</a> &copy; 2001 phpBB Group</span>
</div>
<br clear="all" />

View File

@ -31,6 +31,12 @@ SPAN.courier {font-family:{T_FONTFACE3};font-size:8pt}
SELECT.small {font-family:"Courier New",courier;font-size:8pt;width:140px}
INPUT.text {font-family:"Courier New",courier;font-size:8pt;}
A:link {text-decoration:none}
A:visited {text-decoration:none}
A:active {text-decoration:none}
A:hover {text-decoration:underline}
//-->
</style>
</head>