mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 14:30:32 +02:00
- added acp_language (language pack management)
- minor adjustments to cope with PHP5.x git-svn-id: file:///svn/phpbb/trunk@5315 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -92,7 +92,8 @@ class acp_bots
|
||||
WHERE bot_id $sql_id";
|
||||
$db->sql_query($sql);
|
||||
|
||||
foreach (array(USERS_TABLE, USER_GROUP_TABLE) as $table)
|
||||
$_tables = array(USERS_TABLE, USER_GROUP_TABLE);
|
||||
foreach ($_tables as $table)
|
||||
{
|
||||
$sql = "DELETE FROM $table
|
||||
WHERE user_id IN (" . implode(', ', $user_id_ary) . ')';
|
||||
@@ -250,7 +251,8 @@ class acp_bots
|
||||
}
|
||||
|
||||
$s_active_options = '';
|
||||
foreach (array('0' => 'NO', '1' => 'YES') as $value => $lang)
|
||||
$_options = array('0' => 'NO', '1' => 'YES');
|
||||
foreach ($_options as $value => $lang)
|
||||
{
|
||||
$selected = ($bot_row['bot_active'] == $value) ? ' selected="selected"' : '';
|
||||
$s_active_options .= '<option value="' . $value . '"' . $selected . '>' . $user->lang[$lang] . '</option>';
|
||||
@@ -285,7 +287,8 @@ class acp_bots
|
||||
}
|
||||
|
||||
$s_options = '';
|
||||
foreach (array('activate' => 'BOT_ACTIVATE', 'deactivate' => 'BOT_DEACTIVATE', 'delete' => 'DELETE') as $value => $lang)
|
||||
$_options = array('activate' => 'BOT_ACTIVATE', 'deactivate' => 'BOT_DEACTIVATE', 'delete' => 'DELETE');
|
||||
foreach ($_options as $value => $lang)
|
||||
{
|
||||
$s_options .= '<option value="' . $value . '">' . $user->lang[$lang] . '</option>';
|
||||
}
|
||||
|
1097
phpBB/includes/acp/acp_language.php
Normal file
1097
phpBB/includes/acp/acp_language.php
Normal file
File diff suppressed because it is too large
Load Diff
@@ -60,7 +60,7 @@ class acp_logs
|
||||
$where_sql";
|
||||
$db->sql_query($sql);
|
||||
|
||||
add_log('admin', 'LOG_' . strtoupper($mode) . '_CLEAR');
|
||||
add_log('admin', 'LOG_CLEAR_' . strtoupper($mode));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -117,7 +117,8 @@ class acp_logs
|
||||
{
|
||||
$data = array();
|
||||
|
||||
foreach (array('viewtopic', 'viewlogs', 'viewforum') as $check)
|
||||
$checks = array('viewtopic', 'viewlogs', 'viewforum');
|
||||
foreach ($checks as $check)
|
||||
{
|
||||
if (isset($row[$check]) && $row[$check])
|
||||
{
|
||||
|
Reference in New Issue
Block a user