aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpBB/adm/index.php8
-rw-r--r--phpBB/includes/functions_user.php10
-rw-r--r--phpBB/includes/mcp/mcp_forum.php2
-rwxr-xr-xphpBB/includes/mcp/mcp_notes.php2
-rw-r--r--phpBB/includes/mcp/mcp_post.php6
-rw-r--r--phpBB/includes/mcp/mcp_queue.php2
-rwxr-xr-xphpBB/includes/mcp/mcp_reports.php2
-rw-r--r--phpBB/includes/mcp/mcp_topic.php4
-rwxr-xr-xphpBB/includes/mcp/mcp_warn.php10
-rw-r--r--phpBB/includes/message_parser.php4
-rw-r--r--phpBB/includes/ucp/ucp_register.php4
-rw-r--r--phpBB/mcp.php4
-rw-r--r--phpBB/memberlist.php4
-rw-r--r--phpBB/search.php12
-rw-r--r--phpBB/viewforum.php2
15 files changed, 35 insertions, 41 deletions
diff --git a/phpBB/adm/index.php b/phpBB/adm/index.php
index 836d2556f8..ce8a54d6de 100644
--- a/phpBB/adm/index.php
+++ b/phpBB/adm/index.php
@@ -27,12 +27,6 @@ $auth->acl($user->data);
$user->setup('acp/common');
// End session management
-// Did user forget to login? Give 'em a chance to here ...
-if ($user->data['user_id'] == ANONYMOUS)
-{
- login_box('', $user->lang['LOGIN_ADMIN'], $user->lang['LOGIN_ADMIN_SUCCESS'], true);
-}
-
// Have they authenticated (again) as an admin for this session?
if (!isset($user->data['session_admin']) || !$user->data['session_admin'])
{
@@ -43,7 +37,7 @@ if (!isset($user->data['session_admin']) || !$user->data['session_admin'])
// check specific permissions but this is a catchall
if (!$auth->acl_get('a_'))
{
- trigger_error($user->lang['NO_ADMIN']);
+ trigger_error('NO_ADMIN');
}
// We define the admin variables now, because the user is now able to use the admin related features...
diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php
index e091c796d2..96f9b75964 100644
--- a/phpBB/includes/functions_user.php
+++ b/phpBB/includes/functions_user.php
@@ -678,7 +678,7 @@ function user_ban($mode, $ban, $ban_len, $ban_len_other, $ban_exclude, $ban_reas
}
else
{
- trigger_error($user->lang['LENGTH_BAN_INVALID']);
+ trigger_error('LENGTH_BAN_INVALID');
}
}
}
@@ -730,11 +730,11 @@ function user_ban($mode, $ban, $ban_len, $ban_len_other, $ban_exclude, $ban_reas
$clean_name = utf8_clean_string($username);
if ($clean_name == $user->data['username_clean'])
{
- trigger_error($user->lang['CANNOT_BAN_YOURSELF']);
+ trigger_error('CANNOT_BAN_YOURSELF');
}
if (in_array($clean_name, $founder_names))
{
- trigger_error($user->lang['CANNOT_BAN_FOUNDER']);
+ trigger_error('CANNOT_BAN_FOUNDER');
}
$sql_usernames[] = $clean_name;
}
@@ -743,7 +743,7 @@ function user_ban($mode, $ban, $ban_len, $ban_len_other, $ban_exclude, $ban_reas
// Make sure we have been given someone to ban
if (!sizeof($sql_usernames))
{
- trigger_error($user->lang['NO_USER_SPECIFIED']);
+ trigger_error('NO_USER_SPECIFIED');
}
$sql = 'SELECT user_id
@@ -772,7 +772,7 @@ function user_ban($mode, $ban, $ban_len, $ban_len_other, $ban_exclude, $ban_reas
}
else
{
- trigger_error($user->lang['NO_USERS']);
+ trigger_error('NO_USERS');
}
$db->sql_freeresult($result);
}
diff --git a/phpBB/includes/mcp/mcp_forum.php b/phpBB/includes/mcp/mcp_forum.php
index 0578170d7b..4059e77d39 100644
--- a/phpBB/includes/mcp/mcp_forum.php
+++ b/phpBB/includes/mcp/mcp_forum.php
@@ -276,7 +276,7 @@ function mcp_resync_topics($topic_ids)
if (!sizeof($topic_ids))
{
- trigger_error($user->lang['NO_TOPIC_SELECTED']);
+ trigger_error('NO_TOPIC_SELECTED');
}
if (!check_ids($topic_ids, TOPICS_TABLE, 'topic_id', array('m_')))
diff --git a/phpBB/includes/mcp/mcp_notes.php b/phpBB/includes/mcp/mcp_notes.php
index 447d000cb4..bc4782abea 100755
--- a/phpBB/includes/mcp/mcp_notes.php
+++ b/phpBB/includes/mcp/mcp_notes.php
@@ -86,7 +86,7 @@ class mcp_notes
if (!$userrow)
{
- trigger_error($user->lang['NO_USER']);
+ trigger_error('NO_USER');
}
$user_id = $userrow['user_id'];
diff --git a/phpBB/includes/mcp/mcp_post.php b/phpBB/includes/mcp/mcp_post.php
index dc8733d0a5..698bcc8dd6 100644
--- a/phpBB/includes/mcp/mcp_post.php
+++ b/phpBB/includes/mcp/mcp_post.php
@@ -26,7 +26,7 @@ function mcp_post_details($id, $mode, $action)
if (!sizeof($post_info))
{
- trigger_error($user->lang['POST_NOT_EXIST']);
+ trigger_error('POST_NOT_EXIST');
}
$post_info = $post_info[$post_id];
@@ -79,7 +79,7 @@ function mcp_post_details($id, $mode, $action)
if (!$row)
{
- trigger_error($user->lang['NO_USER']);
+ trigger_error('NO_USER');
}
if ($auth->acl_get('m_chgposter', $post_info['forum_id']))
@@ -473,7 +473,7 @@ function change_poster(&$post_info, $userdata)
if (!sizeof($post_info))
{
- trigger_error($user->lang['POST_NOT_EXIST']);
+ trigger_error('POST_NOT_EXIST');
}
$post_info = $post_info[$post_id];
diff --git a/phpBB/includes/mcp/mcp_queue.php b/phpBB/includes/mcp/mcp_queue.php
index d3af2caa24..1259944439 100644
--- a/phpBB/includes/mcp/mcp_queue.php
+++ b/phpBB/includes/mcp/mcp_queue.php
@@ -224,7 +224,7 @@ class mcp_queue
if (!sizeof($topic_info))
{
- trigger_error($user->lang['TOPIC_NOT_EXIST']);
+ trigger_error('TOPIC_NOT_EXIST');
}
$topic_info = $topic_info[$topic_id];
diff --git a/phpBB/includes/mcp/mcp_reports.php b/phpBB/includes/mcp/mcp_reports.php
index 8617cb5ca7..9a06b3bbf2 100755
--- a/phpBB/includes/mcp/mcp_reports.php
+++ b/phpBB/includes/mcp/mcp_reports.php
@@ -242,7 +242,7 @@ class mcp_reports
if (!sizeof($topic_info))
{
- trigger_error($user->lang['TOPIC_NOT_EXIST']);
+ trigger_error('TOPIC_NOT_EXIST');
}
$topic_info = $topic_info[$topic_id];
diff --git a/phpBB/includes/mcp/mcp_topic.php b/phpBB/includes/mcp/mcp_topic.php
index ef41ede5c4..1440c4dd6b 100644
--- a/phpBB/includes/mcp/mcp_topic.php
+++ b/phpBB/includes/mcp/mcp_topic.php
@@ -25,7 +25,7 @@ function mcp_topic_view($id, $mode, $action)
if (!sizeof($topic_info))
{
- trigger_error($user->lang['TOPIC_NOT_EXIST']);
+ trigger_error('TOPIC_NOT_EXIST');
}
$topic_info = $topic_info[$topic_id];
@@ -439,7 +439,7 @@ function split_topic($action, $topic_id, $to_forum_id, $subject)
if (!sizeof($post_id_list))
{
- trigger_error($user->lang['NO_POST_SELECTED']);
+ trigger_error('NO_POST_SELECTED');
}
$icon_id = request_var('icon', 0);
diff --git a/phpBB/includes/mcp/mcp_warn.php b/phpBB/includes/mcp/mcp_warn.php
index 16339ddf55..6fd0f52d6f 100755
--- a/phpBB/includes/mcp/mcp_warn.php
+++ b/phpBB/includes/mcp/mcp_warn.php
@@ -203,19 +203,19 @@ class mcp_warn
if (!$user_row)
{
- trigger_error($user->lang['NO_POST']);
+ trigger_error('NO_POST');
}
// There is no point issuing a warning to ignored users (ie anonymous and bots)
if ($user_row['user_type'] == USER_IGNORE)
{
- trigger_error($user->lang['CANNOT_WARN_ANONYMOUS']);
+ trigger_error('CANNOT_WARN_ANONYMOUS');
}
// Prevent someone from warning themselves
if ($user_row['user_id'] == $user->data['user_id'])
{
- trigger_error($user->lang['CANNOT_WARN_SELF']);
+ trigger_error('CANNOT_WARN_SELF');
}
// Check if there is already a warning for this post to prevent multiple
@@ -229,7 +229,7 @@ class mcp_warn
if ($row)
{
- trigger_error($user->lang['ALREADY_WARNED']);
+ trigger_error('ALREADY_WARNED');
}
$user_id = $user_row['user_id'];
@@ -325,7 +325,7 @@ class mcp_warn
// Prevent someone from warning themselves
if ($user_row['user_id'] == $user->data['user_id'])
{
- trigger_error($user->lang['CANNOT_WARN_SELF']);
+ trigger_error('CANNOT_WARN_SELF');
}
$user_id = $user_row['user_id'];
diff --git a/phpBB/includes/message_parser.php b/phpBB/includes/message_parser.php
index c5349efabe..ea28061da0 100644
--- a/phpBB/includes/message_parser.php
+++ b/phpBB/includes/message_parser.php
@@ -1515,7 +1515,7 @@ class parse_message extends bbcode_firstpass
if (sizeof($not_orphan))
{
- trigger_error($user->lang['NO_ACCESS_ATTACHMENT'], E_USER_ERROR);
+ trigger_error('NO_ACCESS_ATTACHMENT', E_USER_ERROR);
}
// Regenerate newly uploaded attachments
@@ -1541,7 +1541,7 @@ class parse_message extends bbcode_firstpass
if (sizeof($orphan))
{
- trigger_error($user->lang['NO_ACCESS_ATTACHMENT'], E_USER_ERROR);
+ trigger_error('NO_ACCESS_ATTACHMENT', E_USER_ERROR);
}
ksort($this->attachment_data);
diff --git a/phpBB/includes/ucp/ucp_register.php b/phpBB/includes/ucp/ucp_register.php
index 9965cdde0c..2dab4af710 100644
--- a/phpBB/includes/ucp/ucp_register.php
+++ b/phpBB/includes/ucp/ucp_register.php
@@ -309,7 +309,7 @@ class ucp_register
// This should not happen, because the required variables are listed above...
if ($user_id === false)
{
- trigger_error($user->lang['NO_USER'], E_USER_ERROR);
+ trigger_error('NO_USER', E_USER_ERROR);
}
if ($coppa && $config['email_enable'])
@@ -460,7 +460,7 @@ class ucp_register
if ($config['max_reg_attempts'] && $attempts > $config['max_reg_attempts'])
{
- trigger_error($user->lang['TOO_MANY_REGISTERS']);
+ trigger_error('TOO_MANY_REGISTERS');
}
$code = gen_rand_string(mt_rand(5, 8));
diff --git a/phpBB/mcp.php b/phpBB/mcp.php
index 94c17c83f7..839c8082c6 100644
--- a/phpBB/mcp.php
+++ b/phpBB/mcp.php
@@ -129,14 +129,14 @@ if (!$auth->acl_getf_global('m_'))
if (!$allow_user)
{
- trigger_error($user->lang['NOT_AUTHORISED']);
+ trigger_error('NOT_AUTHORISED');
}
}
// if the user cannot read the forum he tries to access then we won't allow mcp access either
if ($forum_id && !$auth->acl_get('f_read', $forum_id))
{
- trigger_error($user->lang['NOT_AUTHORISED']);
+ trigger_error('NOT_AUTHORISED');
}
if ($forum_id)
diff --git a/phpBB/memberlist.php b/phpBB/memberlist.php
index a93622065f..9d3262deeb 100644
--- a/phpBB/memberlist.php
+++ b/phpBB/memberlist.php
@@ -669,7 +669,7 @@ switch ($mode)
{
if (!$auth->acl_get('f_read', $row['forum_id']))
{
- trigger_error($user->lang['SORRY_AUTH_READ']);
+ trigger_error('SORRY_AUTH_READ');
}
if (!$auth->acl_get('f_email', $row['forum_id']))
@@ -682,7 +682,7 @@ switch ($mode)
// If global announcement, we need to check if the user is able to at least read and email in one forum...
if (!$auth->acl_getf_global('f_read'))
{
- trigger_error($user->lang['SORRY_AUTH_READ']);
+ trigger_error('SORRY_AUTH_READ');
}
if (!$auth->acl_getf_global('f_email'))
diff --git a/phpBB/search.php b/phpBB/search.php
index dc8ff4599f..bf3422a7ed 100644
--- a/phpBB/search.php
+++ b/phpBB/search.php
@@ -51,14 +51,14 @@ $search_forum = request_var('fid', array(0));
if (!$auth->acl_get('u_search') || !$auth->acl_getf_global('f_search') || !$config['load_search'])
{
$template->assign_var('S_NO_SEARCH', true);
- trigger_error($user->lang['NO_SEARCH']);
+ trigger_error('NO_SEARCH');
}
// Check search load limit
if ($user->load && $config['limit_search_load'] && ($user->load > doubleval($config['limit_search_load'])))
{
$template->assign_var('S_NO_SEARCH', true);
- trigger_error($user->lang['NO_SEARCH_TIME']);
+ trigger_error('NO_SEARCH_TIME');
}
// Check flood limit ... if applicable
@@ -68,7 +68,7 @@ if ($interval && !$auth->acl_get('u_ignoreflood'))
if ($user->data['user_last_search'] > time() - $interval)
{
$template->assign_var('S_NO_SEARCH', true);
- trigger_error($user->lang['NO_SEARCH_TIME']);
+ trigger_error('NO_SEARCH_TIME');
}
}
@@ -124,7 +124,7 @@ if ($keywords || $author || $author_id || $search_id || $submit)
if (!sizeof($author_id_ary))
{
- trigger_error($user->lang['NO_SEARCH_RESULTS']);
+ trigger_error('NO_SEARCH_RESULTS');
}
}
@@ -425,7 +425,7 @@ if ($keywords || $author || $author_id || $search_id || $submit)
// For some searches we need to print out the "no results" page directly to allow re-sorting/refining the search options.
if (!sizeof($id_ary) && !$search_id)
{
- trigger_error($user->lang['NO_SEARCH_RESULTS']);
+ trigger_error('NO_SEARCH_RESULTS');
}
$sql_where = '';
@@ -998,7 +998,7 @@ unset($pad_store);
if (!$s_forums)
{
- trigger_error($user->lang['NO_SEARCH']);
+ trigger_error('NO_SEARCH');
}
// Number of chars returned
diff --git a/phpBB/viewforum.php b/phpBB/viewforum.php
index f015b2402a..40ee637087 100644
--- a/phpBB/viewforum.php
+++ b/phpBB/viewforum.php
@@ -81,7 +81,7 @@ if (!$auth->acl_gets('f_list', 'f_read', $forum_id) || ($forum_data['forum_type'
{
if ($user->data['user_id'] != ANONYMOUS)
{
- trigger_error($user->lang['SORRY_AUTH_READ']);
+ trigger_error('SORRY_AUTH_READ');
}
login_box('', $user->lang['LOGIN_VIEWFORUM']);