diff --git a/phpBB/admin/admin_board.php b/phpBB/admin/admin_board.php index 0715123f27..86a77ebc0c 100644 --- a/phpBB/admin/admin_board.php +++ b/phpBB/admin/admin_board.php @@ -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']; diff --git a/phpBB/admin/admin_db_utilities.php b/phpBB/admin/admin_db_utilities.php index ef4e9da39a..5004377487 100644 --- a/phpBB/admin/admin_db_utilities.php +++ b/phpBB/admin/admin_db_utilities.php @@ -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 = "

This will perform a full restore of a previously Backed up phpBB database


\n"; - $db_message .= "

WARNING: This will overwrite any existing data
\n"; - $db_links = "

\n"; - $db_links .= "\n"; - $db_links .= "Backup File:\n"; - $db_links .= "\n"; - $db_links .= "

\n"; + $s_hidden_fields = ""; $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"); diff --git a/phpBB/admin/admin_forum_prune.php b/phpBB/admin/admin_forum_prune.php index ac6a9a84bb..5f3b90d024 100644 --- a/phpBB/admin/admin_forum_prune.php +++ b/phpBB/admin/admin_forum_prune.php @@ -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']); } // diff --git a/phpBB/admin/admin_forumauth.php b/phpBB/admin/admin_forumauth.php index feb76a1cb3..2f6950236e 100644 --- a/phpBB/admin/admin_forumauth.php +++ b/phpBB/admin/admin_forumauth.php @@ -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 = ""; $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 = "  "; $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] .= " "; + $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 = '' . $switch_mode_text . ''; $s_hidden_fields = ''; @@ -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, diff --git a/phpBB/admin/admin_forums.php b/phpBB/admin/admin_forums.php index 171ab3e9ae..e21f26972c 100644 --- a/phpBB/admin/admin_forums.php +++ b/phpBB/admin/admin_forums.php @@ -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
\n"; -print "Requested action was: $mode
\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
\n"; +print "Requested action was: $mode
\n"; + ?> \ No newline at end of file diff --git a/phpBB/admin/admin_groupauth.php b/phpBB/admin/admin_groupauth.php index 31648433d1..5f56e05d4d 100644 --- a/phpBB/admin/admin_groupauth.php +++ b/phpBB/admin/admin_groupauth.php @@ -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, diff --git a/phpBB/admin/admin_groups.php b/phpBB/admin/admin_groups.php new file mode 100644 index 0000000000..61f41e160f --- /dev/null +++ b/phpBB/admin/admin_groups.php @@ -0,0 +1,54 @@ + \ No newline at end of file diff --git a/phpBB/admin/admin_userauth.php b/phpBB/admin/admin_userauth.php index 19027be152..90d0742013 100644 --- a/phpBB/admin/admin_userauth.php +++ b/phpBB/admin/admin_userauth.php @@ -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 = '' . $switch_mode_text . ''; $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, diff --git a/phpBB/admin/admin_users.php b/phpBB/admin/admin_users.php index 10cf6a3f1a..4d9f87582c 100644 --- a/phpBB/admin/admin_users.php +++ b/phpBB/admin/admin_users.php @@ -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']); +} + ?> \ No newline at end of file diff --git a/phpBB/language/lang_english.php b/phpBB/language/lang_english.php index eec15778e8..d596051430 100755 --- a/phpBB/language/lang_english.php +++ b/phpBB/language/lang_english.php @@ -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 diff --git a/phpBB/templates/PSO/admin/auth_forum_body.tpl b/phpBB/templates/PSO/admin/auth_forum_body.tpl new file mode 100644 index 0000000000..4c2aefca85 --- /dev/null +++ b/phpBB/templates/PSO/admin/auth_forum_body.tpl @@ -0,0 +1,33 @@ + +
+ +

{L_AUTH_TITLE}

+ +

{L_AUTH_EXPLAIN}

+ +

{L_FORUM}: {FORUM_NAME}

+ + + + + + + + + + + + + + + +
{forum_auth_titles.CELL_TITLE}
{forum_auth_data.S_AUTH_LEVELS_SELECT}
+ + + + + + +
{U_SWITCH_MODE}
{S_HIDDEN_FIELDS}  
+ +
diff --git a/phpBB/templates/PSO/admin/auth_select_body.tpl b/phpBB/templates/PSO/admin/auth_select_body.tpl new file mode 100644 index 0000000000..5e173d687e --- /dev/null +++ b/phpBB/templates/PSO/admin/auth_select_body.tpl @@ -0,0 +1,17 @@ + +
+ +

{L_AUTH_TITLE}

+ +

{L_AUTH_EXPLAIN}

+ + + + + + + + +
{L_AUTH_SELECT}
{S_AUTH_SELECT}   
+ +
diff --git a/phpBB/templates/PSO/admin/auth_ug_body.tpl b/phpBB/templates/PSO/admin/auth_ug_body.tpl new file mode 100644 index 0000000000..6593b44093 --- /dev/null +++ b/phpBB/templates/PSO/admin/auth_ug_body.tpl @@ -0,0 +1,43 @@ + +
+ +

{L_AUTH_TITLE}

+ +

{L_USER_OR_GROUPNAME}: {USERNAME}

+ +

{USER_GROUP_MEMBERSHIPS}

+ +

{L_PERMISSIONS}

+ +

{L_AUTH_EXPLAIN}

+ + + + + + + + + + + + + + + + + + + + + +
{L_FORUM}{acltype.L_UG_ACL_TYPE}{L_MODERATOR_STATUS}
{forums.FORUM_NAME}{forums.aclvalues.S_ACL_SELECT}{forums.S_MOD_SELECT}
+ + + + + + +
{U_SWITCH_MODE}
{S_HIDDEN_FIELDS}  
+ +
diff --git a/phpBB/templates/PSO/admin/db_utils_backup_body.tpl b/phpBB/templates/PSO/admin/db_utils_backup_body.tpl new file mode 100644 index 0000000000..c48c151960 --- /dev/null +++ b/phpBB/templates/PSO/admin/db_utils_backup_body.tpl @@ -0,0 +1,9 @@ +
+ +

Database Utilities : Backup

+ +
{U_DB_MESSAGE} + +{U_DB_LINKS}
+ +
diff --git a/phpBB/templates/PSO/admin/db_utils_restore_body.tpl b/phpBB/templates/PSO/admin/db_utils_restore_body.tpl new file mode 100644 index 0000000000..f3bdafc038 --- /dev/null +++ b/phpBB/templates/PSO/admin/db_utils_restore_body.tpl @@ -0,0 +1,16 @@ +
+ +

Database Utilities : Restore

+ +

This will perform a full restore of all phpBB tables from a saved file. WARNING This will overwrite any existing data

+ + + + + + + + +
Select a File
    
+ +
diff --git a/phpBB/templates/PSO/admin/navigate.tpl b/phpBB/templates/PSO/admin/navigate.tpl index 0f52a36216..ce218030be 100644 --- a/phpBB/templates/PSO/admin/navigate.tpl +++ b/phpBB/templates/PSO/admin/navigate.tpl @@ -1,24 +1,21 @@ - - - - - - - - - - - - - - - - - - - - + +
phpBB2
+ +
phpBB Admin
{L_ADMIN_INDEX}
{L_BOARD_INDEX}
{catrow.CATNAME}
{catrow.actionrow.ACTIONNAME}
+ + + + + + + + + + + + +
{L_ADMIN_INDEX}
{catrow.CATNAME}
{catrow.actionrow.ACTIONNAME}
diff --git a/phpBB/templates/PSO/admin/page_footer.tpl b/phpBB/templates/PSO/admin/page_footer.tpl index 803fc1ad5f..97fdc7473c 100644 --- a/phpBB/templates/PSO/admin/page_footer.tpl +++ b/phpBB/templates/PSO/admin/page_footer.tpl @@ -16,9 +16,7 @@ //-->
-Powered By phpBB 2.0 - alpha -
-This bulletin board software is copyright © 2001 phpBB Group, All Rights Reserved +Powered By phpBB 2.0a © 2001 phpBB Group

diff --git a/phpBB/templates/PSO/admin/page_header.tpl b/phpBB/templates/PSO/admin/page_header.tpl index f402cac0ee..95fa8a83f9 100644 --- a/phpBB/templates/PSO/admin/page_header.tpl +++ b/phpBB/templates/PSO/admin/page_header.tpl @@ -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} + //-->