diff --git a/phpBB/admin/admin_ban.php b/phpBB/admin/admin_ban.php index e5fe736f3f..71b58cdd00 100644 --- a/phpBB/admin/admin_ban.php +++ b/phpBB/admin/admin_ban.php @@ -299,7 +299,7 @@ if (isset($_POST['bansubmit']) || isset($_GET['bansubmit'])) // Update log $log_entry = ($ban_exclude) ? 'LOG_BAN_EXCLUDE_' : 'log_ban_'; - add_admin_log($log_entry . $mode, $ban_reason, $ban_list_log); + add_log('admin', $log_entry . $mode, $ban_reason, $ban_list_log); } trigger_error($user->lang['BAN_UPDATE_SUCESSFUL']); @@ -319,7 +319,7 @@ else if (isset($_POST['unbansubmit'])) WHERE ban_id IN ($unban_sql)"; $db->sql_query($sql); - add_admin_log('log_unban_' . $mode, sizeof($_POST['unban'])); + add_log('admin', 'log_unban_' . $mode, sizeof($_POST['unban'])); } trigger_error($user->lang['BAN_UPDATE_SUCESSFUL']); diff --git a/phpBB/admin/admin_board.php b/phpBB/admin/admin_board.php index 1da74511b5..1235039013 100644 --- a/phpBB/admin/admin_board.php +++ b/phpBB/admin/admin_board.php @@ -37,7 +37,6 @@ define('IN_PHPBB', 1); $phpbb_root_path = '../'; require($phpbb_root_path . 'extension.inc'); require('pagestart.' . $phpEx); -require_once($phpbb_root_path . 'includes/functions_admin.' . $phpEx); // Get mode $mode = (isset($_REQUEST['mode'])) ? $_REQUEST['mode'] : ''; @@ -104,7 +103,7 @@ while ($row = $db->sql_fetchrow($result)) if (isset($_POST['submit'])) { - add_admin_log('log_' . $mode . '_config'); + add_log('admin', 'log_' . $mode . '_config'); trigger_error($user->lang['Config_updated']); } diff --git a/phpBB/admin/admin_database.php b/phpBB/admin/admin_database.php index 0bdadf950e..6c07995c5e 100644 --- a/phpBB/admin/admin_database.php +++ b/phpBB/admin/admin_database.php @@ -38,7 +38,6 @@ define('IN_PHPBB', 1); $phpbb_root_path = '../'; require($phpbb_root_path . 'extension.inc'); require('pagestart.' . $phpEx); -require_once($phpbb_root_path . 'includes/functions_admin.'.$phpEx); $mode = (isset($_GET['mode'])) ? $_GET['mode'] : ''; @@ -260,7 +259,7 @@ switch($mode) ob_end_clean(); } - add_admin_log('log_db_backup'); + add_log('admin', 'log_db_backup'); if (empty($store_path)) { @@ -373,7 +372,7 @@ switch($mode) } } - add_admin_log('log_db_restore'); + add_log('admin', 'log_db_restore'); trigger_error($user->lang['Restore_success']); } diff --git a/phpBB/admin/admin_disallow.php b/phpBB/admin/admin_disallow.php index 646f348347..af7c7fdf3d 100644 --- a/phpBB/admin/admin_disallow.php +++ b/phpBB/admin/admin_disallow.php @@ -61,7 +61,7 @@ if (isset($_POST['disallow'])) $message = $user->lang['Disallow_successful']; } - add_admin_log('log_disallow_add', str_replace('%', '*', $disallowed_user)); + add_log('admin', 'log_disallow_add', str_replace('%', '*', $disallowed_user)); trigger_error($message); } @@ -78,7 +78,7 @@ else if (isset($_POST['allow'])) WHERE disallow_id = $disallowed_id"; $db->sql_query($sql); - add_admin_log('log_disallow_delete'); + add_log('admin', 'log_disallow_delete'); trigger_error($user->lang['Disallowed_deleted']); } diff --git a/phpBB/admin/admin_forums.php b/phpBB/admin/admin_forums.php index 8ba708f26a..5fd1c80419 100644 --- a/phpBB/admin/admin_forums.php +++ b/phpBB/admin/admin_forums.php @@ -35,7 +35,6 @@ define('IN_PHPBB', 1); $phpbb_root_path = '../'; require($phpbb_root_path . 'extension.inc'); require('pagestart.' . $phpEx); -require_once($phpbb_root_path . 'includes/functions_admin.'.$phpEx); // Get mode $mode = (isset($_REQUEST['mode'])) ? $_REQUEST['mode'] : ''; diff --git a/phpBB/admin/admin_permissions.php b/phpBB/admin/admin_permissions.php index e7c2e4e3d2..70c7e3206e 100644 --- a/phpBB/admin/admin_permissions.php +++ b/phpBB/admin/admin_permissions.php @@ -38,7 +38,6 @@ define('IN_PHPBB', 1); $phpbb_root_path = '../'; require($phpbb_root_path . 'extension.inc'); require('pagestart.' . $phpEx); -require_once($phpbb_root_path . 'includes/functions_admin.'.$phpEx); // Define some vars $forum_id = 0; diff --git a/phpBB/admin/admin_prune.php b/phpBB/admin/admin_prune.php index 396e7c61f4..5b0f5c48c9 100644 --- a/phpBB/admin/admin_prune.php +++ b/phpBB/admin/admin_prune.php @@ -36,7 +36,6 @@ define('IN_PHPBB', 1); $phpbb_root_path = '../'; require($phpbb_root_path . 'extension.inc'); require('pagestart.' . $phpEx); -require_once($phpbb_root_path . 'includes/functions_admin.'.$phpEx); // Do we have permission? if (!$auth->acl_get('a_prune')) @@ -109,7 +108,7 @@ if (isset($_POST['doprune'])) } while($row = $db->sql_fetchrow($result)); - add_admin_log('log_prune', $log_data); + add_log('admin', 'log_prune', $log_data); } else diff --git a/phpBB/admin/admin_prune_users.php b/phpBB/admin/admin_prune_users.php index dd4eacc124..ef466b1be5 100644 --- a/phpBB/admin/admin_prune_users.php +++ b/phpBB/admin/admin_prune_users.php @@ -172,7 +172,7 @@ if (isset($_POST['prune'])) $where_sql"; // $db->sql_query($sql); - add_admin_log($l_admin_log, implode(', ', $usernames)); + add_log('admin', $l_admin_log, implode(', ', $usernames)); unset($user_ids); unset($usernames); diff --git a/phpBB/admin/admin_styles.php b/phpBB/admin/admin_styles.php index f2d1b052a3..0035c9f7fe 100644 --- a/phpBB/admin/admin_styles.php +++ b/phpBB/admin/admin_styles.php @@ -163,7 +163,7 @@ switch ($mode) @chmod($phpbb_root_path . 'templates/cache/' . $tplroot . '/' . $tplname . '.html.' . $phpEx, 0644); - add_admin_log('log_template_edit', $tplname, $tplroot); + add_log('admin', 'log_template_edit', $tplname, $tplroot); exit; } @@ -266,7 +266,7 @@ switch ($mode) WHERE theme_id = $theme_id"; $db->sql_query($sql); - add_admin_log('log_theme_edit', $theme_name); + add_log('admin', 'log_theme_edit', $theme_name); message_die(MESSAGE, $user->lang['Success_theme_update']); } diff --git a/phpBB/admin/admin_users.php b/phpBB/admin/admin_users.php index 65a2c493e7..84e14d4c10 100644 --- a/phpBB/admin/admin_users.php +++ b/phpBB/admin/admin_users.php @@ -36,7 +36,6 @@ define('IN_PHPBB', 1); $phpbb_root_path = '../'; require($phpbb_root_path . 'extension.inc'); require('pagestart.' . $phpEx); -require_once($phpbb_root_path . 'includes/functions_admin.'.$phpEx); // Set mode $mode = (isset($_REQUEST['mode'])) ? $_REQUEST['mode'] : 'main'; diff --git a/phpBB/admin/admin_viewlogs.php b/phpBB/admin/admin_viewlogs.php index a31f27efed..6969233200 100644 --- a/phpBB/admin/admin_viewlogs.php +++ b/phpBB/admin/admin_viewlogs.php @@ -38,7 +38,6 @@ define('IN_PHPBB', 1); $phpbb_root_path = '../'; require($phpbb_root_path . 'extension.inc'); require('pagestart.' . $phpEx); -require_once($phpbb_root_path . 'includes/functions_admin.'.$phpEx); // Do we have styles admin permissions? if (!$auth->acl_get('a_general')) @@ -73,7 +72,7 @@ if ((isset($_POST['delmarked']) || isset($_POST['delall'])) && $auth->acl_get('a $where_sql"; $db->sql_query($sql); - add_admin_log('log_' . $mode . '_clear'); + add_log('admin', 'log_' . $mode . '_clear'); } // Sorting ... this could become a function @@ -102,7 +101,7 @@ else } $previous_days = array(0 => $user->lang['All_Entries'], 1 => $user->lang['1_DAY'], 7 => $user->lang['7_DAYS'], 14 => $user->lang['2_WEEKS'], 30 => $user->lang['1_MONTH'], 90 => $user->lang['3_MONTHS'], 180 => $user->lang['6_MONTHS'], 364 => $user->lang['1_YEAR']); -$sort_by_text = array('u' => $user->lang['Sort_Username'], 't' => $user->lang['Sort_date'], 'i' => $user->lang['Sort_ip'], 'o' => $user->lang['Sort_action']); +$sort_by_text = array('u' => $user->lang['SORT_USERNAME'], 't' => $user->lang['SORT_DATE'], 'i' => $user->lang['SORT_IP'], 'o' => $user->lang['SORT_ACTION']); $sort_by = array('u' => 'l.user_id', 't' => 'l.log_time', 'i' => 'l.log_ip', 'o' => 'l.log_operation'); $sort_day_options = ''; @@ -119,7 +118,7 @@ foreach ($sort_by_text as $key => $text) $sort_key_options .= ''; } -$sort_order_options = ($sort_dir == 'a') ? '' : ''; +$sort_order_options = ($sort_dir == 'a') ? '' : ''; $sort_sql = $sort_by[$sort_key] . ' ' . (($sort_dir == 'd') ? 'DESC' : 'ASC'); @@ -138,13 +137,13 @@ page_header($l_title); // Define forum list if we're looking @ mod logs if ($mode == 'mod') { -//include($phpbb_root_path . '/includes/functions_admin.'.$phpEx); - $forum_box = make_forum_select($forum_id); + + $forum_box = '' . make_forum_select($forum_id, false, false); ?>
lang['SELECT_FORUM']; ?>: | +lang['SELECT_FORUM']; ?>: |
![]() |
- lang['Admin_title']; ?> | +lang['ADMIN_TITLE']; ?> |
lang['Admin_intro']; ?>
+lang['ADMIN_INTRO']; ?>
-lang['Statistic']; ?> | -lang['Value']; ?> | -lang['Statistic']; ?> | -lang['Value']; ?> | +lang['STATISTIC']; ?> | +lang['VALUE']; ?> | +lang['STATISTIC']; ?> | +lang['VALUE']; ?> |
---|---|---|---|---|---|---|---|
lang['Number_posts']; ?>: | +lang['NUMBER_POSTS']; ?>: | - | lang['Posts_per_day']; ?>: | +lang['POSTS_PER_DAY']; ?>: | |||
lang['Number_topics']; ?>: | +lang['NUMBER_TOPICS']; ?>: | - | lang['Topics_per_day']; ?>: | +lang['TOPICS_PER_DAY']; ?>: | |||
lang['Number_users']; ?>: | +lang['NUMBER_USERS']; ?>: | - | lang['Users_per_day']; ?>: | +lang['USERS_PER_DAY']; ?>: | |||
lang['Board_started']; ?>: | +lang['BOARD_STARTED']; ?>: | - | lang['Avatar_dir_size']; ?>: | +lang['AVATAR_DIR_SIZE']; ?>: | |||
lang['Database_size']; ?>: | +lang['DATABASE_SIZE']; ?>: | - | lang['Gzip_compression']; ?>: | +lang['GZIP_COMPRESSION']; ?>: | lang['ON'] : $user->lang['OFF']; ?> |
lang['Admin_log_index_explain']; ?>
+lang['ADMIN_LOG_INDEX_EXPLAIN']; ?>
lang['Username']; ?> | +lang['USERNAME']; ?> | lang['IP']; ?> | -lang['Time']; ?> | -lang['Action']; ?> | +lang['TIME']; ?> | +lang['ACTION']; ?> |
---|
lang['Inactive_users_explain']; ?>
+lang['INACTIVE_USERS_EXPLAIN']; ?>
diff --git a/phpBB/admin/pagestart.php b/phpBB/admin/pagestart.php index e2096baf4f..b4359312ce 100644 --- a/phpBB/admin/pagestart.php +++ b/phpBB/admin/pagestart.php @@ -26,7 +26,8 @@ if (!defined('IN_PHPBB')) define('IN_ADMIN', true); define('NEED_SID', true); -include($phpbb_root_path . 'common.'.$phpEx); +require($phpbb_root_path . 'common.'.$phpEx); +require_once($phpbb_root_path . 'includes/functions_admin.'.$phpEx); // Start session management $user->start($update); @@ -45,7 +46,7 @@ function page_header($sub_title, $meta = '', $table_html = true) // gzip_compression if ($config['gzip_compress']) { - if (extension_loaded('zlib') && strstr($HTTP_USER_AGENT,'compatible') && !headers_sent()) + if (extension_loaded('zlib') && !headers_sent()) { ob_start('ob_gzhandler'); } @@ -105,6 +106,7 @@ function page_footer($copyright_html = true) // Close our DB connection. $db->sql_close(); + ?> @@ -147,7 +149,7 @@ function page_message($title, $message, $show_header = false)![]() |
- lang['Admin_title']; ?> | +lang['ADMIN_TITLE']; ?> |