diff --git a/upload/admin/admin_reports.php b/upload/admin/admin_reports.php
index d85c10521..3a003922b 100644
--- a/upload/admin/admin_reports.php
+++ b/upload/admin/admin_reports.php
@@ -28,7 +28,7 @@ $template->assign_var('S_REPORT_ACTION', append_sid("admin_reports.php"));
if (isset($_POST['mode']) || isset($_GET['mode']))
{
$mode = (isset($_POST['mode'])) ? $_POST['mode'] : $_GET['mode'];
-
+
//
// allow multiple modes (we need this for sub-modes, e.g. the report reasons)
//
@@ -56,17 +56,17 @@ if ($mode == 'config')
if (isset($_POST['submit']))
{
$config_update = (isset($_POST['bb_cfg'])) ? $_POST['bb_cfg'] : array();
-
+
bb_update_config($config_update);
report_modules_cache_clean();
message_die(GENERAL_MESSAGE, $lang['REPORT_CONFIG_UPDATED'] . $return_links['config'] . $return_links['index']);
}
else
- {
+ {
$template->assign_vars(array(
'S_HIDDEN_FIELDS' => '',
-
+
'REPORT_SUBJECT_AUTH_ON' => ($bb_cfg['report_subject_auth']) ? ' checked="checked"' : '',
'REPORT_SUBJECT_AUTH_OFF' => (!$bb_cfg['report_subject_auth']) ? ' checked="checked"' : '',
'REPORT_MODULES_CACHE_ON' => ($bb_cfg['report_modules_cache']) ? ' checked="checked"' : '',
@@ -78,7 +78,7 @@ if ($mode == 'config')
'REPORT_LIST_ADMIN_OFF' => (!$bb_cfg['report_list_admin']) ? ' checked="checked"' : '',
'REPORT_NEW_WINDOW_ON' => ($bb_cfg['report_new_window']) ? ' checked="checked"' : '',
'REPORT_NEW_WINDOW_OFF' => (!$bb_cfg['report_new_window']) ? ' checked="checked"' : '',
-
+
'L_CONFIGURATION_TITLE' => $lang['REPORTS'] . ': ' . $lang['CONFIGURATION'],
'L_CONFIGURATION_EXPLAIN' => $lang['REPORT_CONFIG_EXPLAIN'])
);
@@ -89,12 +89,12 @@ if ($mode == 'config')
else if (isset($_POST[POST_CAT_URL]) || isset($_GET[POST_CAT_URL]))
{
$module_id = (isset($_POST[POST_CAT_URL])) ? (int) $_POST[POST_CAT_URL] : (int) $_GET[POST_CAT_URL];
-
+
if (!$report_module = report_modules('id', $module_id))
{
message_die(GENERAL_MESSAGE, $lang['REPORT_MODULE_NOT_EXISTS'] . $return_links['admin'] . $return_links['index']);
}
-
+
switch ($mode)
{
//
@@ -105,14 +105,14 @@ else if (isset($_POST[POST_CAT_URL]) || isset($_GET[POST_CAT_URL]))
{
$module_notify = (isset($_POST['report_module_notify']) && $_POST['report_module_notify'] == 1) ? 1 : 0;
$module_prune = (isset($_POST['report_module_prune'])) ? (int) $_POST['report_module_prune'] : $report_module->data['report_module_prune'];
-
+
$auth_write = (isset($_POST['auth_write'])) ? (int) $_POST['auth_write'] : $report_module->data['auth_write'];
$auth_view = (isset($_POST['auth_view'])) ? (int) $_POST['auth_view'] : $report_module->data['auth_view'];
$auth_notify = (isset($_POST['auth_notify'])) ? (int) $_POST['auth_notify'] : $report_module->data['auth_notify'];
$auth_delete = (isset($_POST['auth_delete'])) ? (int) $_POST['auth_delete'] : $report_module->data['auth_delete'];
-
+
report_module_edit($module_id, $module_notify, $module_prune, $auth_write, $auth_view, $auth_notify, $auth_delete);
-
+
message_die(GENERAL_MESSAGE, $lang['REPORT_MODULE_EDITED'] . $return_links['admin'] . $return_links['index']);
}
else if (isset($_POST['cancel']))
@@ -126,13 +126,13 @@ else if (isset($_POST[POST_CAT_URL]) || isset($_GET[POST_CAT_URL]))
$template->assign_vars(array(
'S_HIDDEN_FIELDS' => $hidden_fields,
-
+
'MODULE_TITLE' => $module_info['title'],
'MODULE_EXPLAIN' => $module_info['explain'],
'MODULE_NOTIFY_ON' => ($report_module->data['report_module_notify']) ? ' checked="checked"' : '',
'MODULE_NOTIFY_OFF' => (!$report_module->data['report_module_notify']) ? ' checked="checked"' : '',
'MODULE_PRUNE' => $report_module->data['report_module_prune'],
-
+
'L_EDIT_MODULE' => $lang['EDIT_REPORT_MODULE'],
'L_AUTH_WRITE' => $lang['WRITE'],
'L_AUTH_VIEW' => $lang['VIEW'],
@@ -141,7 +141,7 @@ else if (isset($_POST[POST_CAT_URL]) || isset($_GET[POST_CAT_URL]))
'L_AUTH_DELETE' => $lang['DELETE'],
'L_AUTH_DELETE_EXPLAIN' => $lang['REPORT_AUTH_DELETE_EXPLAIN'])
);
-
+
//
// Authorisation selects
//
@@ -152,34 +152,34 @@ else if (isset($_POST[POST_CAT_URL]) || isset($_GET[POST_CAT_URL]))
print_page('report_module_edit_body.tpl');
break;
-
+
//
// Report reasons
//
case 'reasons':
$reason_mode = (isset($modes[1])) ? $modes[1] : '';
-
+
$temp_url = append_sid("admin_reports.php?mode=reasons&" . POST_CAT_URL . "=$module_id");
$return_links['reasons'] = '
' . sprintf($lang['CLICK_RETURN_REPORT_REASONS'], '', '');
-
+
$redirect_url = append_sid("admin/admin_reports.php?mode=reasons&" . POST_CAT_URL . "=$module_id", true);
-
+
if (isset($_POST[POST_REPORT_REASON_URL]) || isset($_GET[POST_REPORT_REASON_URL]))
{
$reason_id = (isset($_POST[POST_REPORT_REASON_URL])) ? (int) $_POST[POST_REPORT_REASON_URL] : (int) $_GET[POST_REPORT_REASON_URL];
-
+
switch ($reason_mode)
- {
+ {
//
// Edit reason
//
case 'edit':
$errors = array();
-
+
if (isset($_POST['submit']))
{
$reason_desc = (isset($_POST['report_reason_desc'])) ? htmlspecialchars($_POST['report_reason_desc']) : '';
-
+
//
// Validate reason desc
//
@@ -187,13 +187,13 @@ else if (isset($_POST[POST_CAT_URL]) || isset($_GET[POST_CAT_URL]))
{
$errors[] = $lang['REASON_DESC_EMPTY'];
}
-
+
if (empty($errors))
{
$reason_desc = str_replace("\'", "'", $reason_desc);
-
+
report_reason_edit($reason_id, $module_id, $reason_desc);
-
+
message_die(GENERAL_MESSAGE, $lang['REPORT_REASON_EDITED'] . $return_links['reasons'] . $return_links['admin'] . $return_links['index']);
}
}
@@ -215,25 +215,25 @@ else if (isset($_POST[POST_CAT_URL]) || isset($_GET[POST_CAT_URL]))
);
}
}
-
+
if (!$report_reason = report_reason_obtain($reason_id))
{
message_die(GENERAL_MESSAGE, $lang['REPORT_REASON_NOT_EXISTS'] . $return_links['reasons'] . $return_links['admin'] . $return_links['index']);
}
-
+
if (isset($reason_desc))
{
$report_reason['report_reason_desc'] = stripslashes($reason_desc);
}
-
+
$hidden_fields = '';
$hidden_fields .= '';
-
+
$template->assign_vars(array(
'S_HIDDEN_FIELDS' => $hidden_fields,
-
+
'REASON_DESC' => $report_reason['report_reason_desc'],
-
+
'L_EDIT_REASON' => $lang['EDIT_REASON'],
'L_REASON_DESC' => $lang['FORUM_DESC'],
'L_REASON_DESC_EXPLAIN' => $lang['REASON_DESC_EXPLAIN'],
@@ -243,17 +243,17 @@ else if (isset($_POST[POST_CAT_URL]) || isset($_GET[POST_CAT_URL]))
print_page('report_reason_edit_body.tpl');
break;
-
+
//
// Move reason up/down
//
case 'up':
case 'down':
report_reason_move($reason_mode, $reason_id);
-
+
redirect($redirect_url);
break;
-
+
//
// Delete reason
//
@@ -261,7 +261,7 @@ else if (isset($_POST[POST_CAT_URL]) || isset($_GET[POST_CAT_URL]))
if (isset($_POST['confirm']))
{
report_reason_delete($reason_id);
-
+
message_die(GENERAL_MESSAGE, $lang['REPORT_REASON_DELETED'] . $return_links['reasons'] . $return_links['admin'] . $return_links['index']);
}
else if (isset($_POST['cancel']))
@@ -271,21 +271,15 @@ else if (isset($_POST[POST_CAT_URL]) || isset($_GET[POST_CAT_URL]))
$hidden_fields = '';
$hidden_fields .= '';
-
- $template->assign_vars(array(
- 'S_CONFIRM_ACTION' => append_sid("admin_reports.php"),
- 'S_HIDDEN_FIELDS' => $hidden_fields,
-
- 'MESSAGE_TITLE' => $lang['DELETE_REASON'],
- 'MESSAGE_TEXT' => $lang['DELETE_REPORT_REASON_EXPLAIN'],
-
- 'L_YES' => $lang['YES'],
- 'L_NO' => $lang['NO'])
- );
- print_page('confirm_body.tpl');
+ print_confirmation(array(
+ 'CONFIRM_TITLE' => $lang['DELETE_REASON'],
+ 'QUESTION' => $lang['DELETE_REPORT_REASON_EXPLAIN'],
+ 'FORM_ACTION' => "admin_reports.php",,
+ 'HIDDEN_FIELDS' => $hidden_fields,
+ ));
break;
-
+
default:
message_die(GENERAL_MESSAGE, $lang['REPORT_NOT_SUPPORTED'] . $return_links['reasons'] . $return_links['admin'] . $return_links['index']);
break;
@@ -300,11 +294,11 @@ else if (isset($_POST[POST_CAT_URL]) || isset($_GET[POST_CAT_URL]))
//
case 'add':
$errors = array();
-
+
if (isset($_POST['submit']))
{
$reason_desc = (isset($_POST['report_reason_desc'])) ? htmlspecialchars($_POST['report_reason_desc']) : '';
-
+
//
// Validate reason desc
//
@@ -312,13 +306,13 @@ else if (isset($_POST[POST_CAT_URL]) || isset($_GET[POST_CAT_URL]))
{
$errors[] = $lang['REASON_DESC_EMPTY'];
}
-
+
if (empty($errors))
{
$reason_desc = str_replace("\'", "'", $reason_desc);
-
+
report_reason_insert($module_id, $reason_desc);
-
+
message_die(GENERAL_MESSAGE, $lang['REPORT_REASON_ADDED'] . $return_links['reasons'] . $return_links['admin'] . $return_links['index']);
}
}
@@ -340,22 +334,22 @@ else if (isset($_POST[POST_CAT_URL]) || isset($_GET[POST_CAT_URL]))
);
}
}
-
+
$hidden_fields = '';
$hidden_fields .= '';
-
+
$template->assign_vars(array(
'S_HIDDEN_FIELDS' => $hidden_fields,
-
+
'REASON_DESC' => (isset($reason_desc)) ? stripslashes($reason_desc) : '',
-
+
'L_EDIT_REASON' => $lang['ADD_REASON'],
'L_REASON_DESC' => $lang['FORUM_DESC'])
);
print_page('report_reason_edit_body.tpl');
break;
-
+
case '':
if ($report_reasons = $report_module->reasons_obtain())
@@ -364,7 +358,7 @@ else if (isset($_POST[POST_CAT_URL]) || isset($_GET[POST_CAT_URL]))
{
$template->assign_block_vars('report_reasons', array(
'DESC' => $reason_desc,
-
+
'U_EDIT' => append_sid("admin_reports.php?mode[]=reasons&" . POST_CAT_URL . "=$module_id&mode[]=edit&" . POST_REPORT_REASON_URL . "=$reason_id"),
'U_MOVE_UP' => append_sid("admin_reports.php?mode[]=reasons&" . POST_CAT_URL . "=$module_id&mode[]=up&" . POST_REPORT_REASON_URL . "=$reason_id"),
'U_MOVE_DOWN' => append_sid("admin_reports.php?mode[]=reasons&" . POST_CAT_URL . "=$module_id&mode[]=down&" . POST_REPORT_REASON_URL . "=$reason_id"),
@@ -376,7 +370,7 @@ else if (isset($_POST[POST_CAT_URL]) || isset($_GET[POST_CAT_URL]))
{
$template->assign_block_vars('switch_no_reasons', array());
}
-
+
$template->assign_vars(array(
'U_ADD_REASON' => append_sid("admin_reports.php?mode[]=reasons&" . POST_CAT_URL . "=$module_id&mode[]=add"),
'U_MODULES' => append_sid("admin_reports.php"))
@@ -384,24 +378,24 @@ else if (isset($_POST[POST_CAT_URL]) || isset($_GET[POST_CAT_URL]))
print_page('report_module_reasons_body.tpl');
break;
-
+
default:
message_die(GENERAL_MESSAGE, $lang['REPORT_NOT_SUPPORTED'] . $return_links['reasons'] . $return_links['admin'] . $return_links['index']);
break;
}
}
break;
-
+
//
// Move module up/down
//
case 'up':
case 'down':
report_module_move($mode, $module_id);
-
+
redirect($redirect_url);
break;
-
+
//
// Synchronize module
//
@@ -410,12 +404,12 @@ else if (isset($_POST[POST_CAT_URL]) || isset($_GET[POST_CAT_URL]))
{
message_die(GENERAL_MESSAGE, $lang['REPORT_NOT_SUPPORTED'] . $return_links['admin'] . $return_links['index']);
}
-
+
$report_module->sync();
-
+
message_die(GENERAL_MESSAGE, $lang['REPORT_MODULE_SYNCED'] . $return_links['admin'] . $return_links['index']);
break;
-
+
//
// Uninstall module
//
@@ -423,7 +417,7 @@ else if (isset($_POST[POST_CAT_URL]) || isset($_GET[POST_CAT_URL]))
if (isset($_POST['confirm']))
{
report_module_uninstall($module_id);
-
+
message_die(GENERAL_MESSAGE, $lang['REPORT_MODULE_UNINSTALLED'] . $return_links['admin'] . $return_links['index']);
}
else if (isset($_POST['cancel']))
@@ -432,18 +426,15 @@ else if (isset($_POST[POST_CAT_URL]) || isset($_GET[POST_CAT_URL]))
}
$hidden_fields = '';
-
- $template->assign_vars(array(
- 'S_CONFIRM_ACTION' => append_sid("admin_reports.php"),
- 'S_HIDDEN_FIELDS' => $hidden_fields,
-
- 'MESSAGE_TITLE' => $lang['UNINSTALL_REPORT_MODULE'],
- 'MESSAGE_TEXT' => $lang['UNINSTALL_REPORT_MODULE_EXPLAIN'])
- );
- print_page('confirm_body.tpl');
+ print_confirmation(array(
+ 'CONFIRM_TITLE' => $lang['UNINSTALL_REPORT_MODULE'],
+ 'QUESTION' => $lang['UNINSTALL_REPORT_MODULE_EXPLAIN'],
+ 'FORM_ACTION' => "admin_reports.php",,
+ 'HIDDEN_FIELDS' => $hidden_fields,
+ ));
break;
-
+
default:
message_die(GENERAL_MESSAGE, $lang['REPORT_NOT_SUPPORTED'] . $return_links['admin'] . $return_links['index']);
break;
@@ -452,12 +443,12 @@ else if (isset($_POST[POST_CAT_URL]) || isset($_GET[POST_CAT_URL]))
else if (isset($_POST['module']) || isset($_GET['module']))
{
$module_name = (isset($_POST['module'])) ? stripslashes($_POST['module']) : stripslashes($_GET['module']);
-
+
if (!$report_module = report_modules_inactive('name', $module_name))
{
message_die(GENERAL_MESSAGE, $lang['REPORT_MODULE_NOT_EXISTS'] . $return_links['admin'] . $return_links['index']);
}
-
+
switch ($mode)
{
//
@@ -468,14 +459,14 @@ else if (isset($_POST['module']) || isset($_GET['module']))
{
$module_notify = (isset($_POST['report_module_notify']) && $_POST['report_module_notify'] == 1) ? 1 : 0;
$module_prune = (isset($_POST['report_module_prune'])) ? (int) $_POST['report_module_prune'] : 0;
-
+
$auth_write = (isset($_POST['auth_write'])) ? (int) $_POST['auth_write'] : REPORT_AUTH_USER;
$auth_view = (isset($_POST['auth_view'])) ? (int) $_POST['auth_view'] : REPORT_AUTH_MOD;
$auth_notify = (isset($_POST['auth_notify'])) ? (int) $_POST['auth_notify'] : REPORT_AUTH_MOD;
$auth_delete = (isset($_POST['auth_delete'])) ? (int) $_POST['auth_delete'] : REPORT_AUTH_ADMIN;
-
+
report_module_install($module_notify, $module_prune, $module_name, $auth_write, $auth_view, $auth_notify, $auth_delete, false);
-
+
message_die(GENERAL_MESSAGE, $lang['REPORT_MODULE_INSTALLED'] . $return_links['admin'] . $return_links['index']);
}
else if (isset($_POST['cancel']))
@@ -484,18 +475,18 @@ else if (isset($_POST['module']) || isset($_GET['module']))
}
$module_info = $report_module->info();
-
+
$hidden_fields = '';
-
+
$template->assign_vars(array(
'S_HIDDEN_FIELDS' => $hidden_fields,
-
+
'MODULE_TITLE' => $module_info['title'],
'MODULE_EXPLAIN' => $module_info['explain'],
'MODULE_NOTIFY_ON' => ($bb_cfg['report_notify']) ? ' checked="checked"' : '',
'MODULE_NOTIFY_OFF' => (!$bb_cfg['report_notify']) ? ' checked="checked"' : '',
'MODULE_PRUNE' => 0,
-
+
'L_EDIT_MODULE' => $lang['INSTALL_REPORT_MODULE'],
'L_AUTH_WRITE' => $lang['WRITE'],
'L_AUTH_VIEW' => $lang['VIEW'],
@@ -504,7 +495,7 @@ else if (isset($_POST['module']) || isset($_GET['module']))
'L_AUTH_DELETE' => $lang['DELETE'],
'L_AUTH_DELETE_EXPLAIN' => $lang['REPORT_AUTH_DELETE_EXPLAIN'])
);
-
+
//
// Authorisation selects
//
@@ -515,7 +506,7 @@ else if (isset($_POST['module']) || isset($_GET['module']))
print_page('report_module_edit_body.tpl');
break;
-
+
default:
message_die(GENERAL_MESSAGE, $lang['REPORT_NOT_SUPPORTED'] . $return_links['admin'] . $return_links['index']);
break;
@@ -531,14 +522,14 @@ else
$template->assign_vars(array(
'L_REPORTS_TITLE' => $lang['REPORTS'] . ': ' . $lang['MODULES_REASONS'],
'L_REPORTS_EXPLAIN' => $lang['REPORT_ADMIN_EXPLAIN'],
-
+
'L_REPORT_COUNT' => $lang['REPORTS'],
'L_INSTALL' => $lang['INSTALL2'])
);
-
+
$report_counts = report_counts_obtain();
$report_reason_counts = report_reason_counts_obtain();
-
+
//
// Display installed modules
//
@@ -547,14 +538,14 @@ else
{
$report_module =& $report_modules[$report_module_id];
$module_info = $report_module->info();
-
+
$template->assign_block_vars('installed_modules.modules', array(
'L_REASONS' => sprintf($lang['REASONS'], $report_reason_counts[$report_module->id]),
-
+
'MODULE_TITLE' => $module_info['title'],
'MODULE_EXPLAIN' => $module_info['explain'],
'REPORT_COUNT' => $report_counts[$report_module->id],
-
+
'U_EDIT' => append_sid("admin_reports.php?mode=edit&" . POST_CAT_URL . '=' . $report_module->id),
'U_REASONS' => append_sid("admin_reports.php?mode=reasons&" . POST_CAT_URL . '=' . $report_module->id),
'U_MOVE_UP' => append_sid("admin_reports.php?mode=up&" . POST_CAT_URL . '=' . $report_module->id),
@@ -562,7 +553,7 @@ else
'U_SYNC' => append_sid("admin_reports.php?mode=sync&" . POST_CAT_URL . '=' . $report_module->id),
'U_UNINSTALL' => append_sid("admin_reports.php?mode=uninstall&" . POST_CAT_URL . '=' . $report_module->id))
);
-
+
//
// Display sync option if available
//
@@ -571,14 +562,14 @@ else
$template->assign_block_vars('installed_modules.modules.switch_sync', array());
}
}
-
+
if (empty($report_modules))
{
$template->assign_block_vars('installed_modules.switch_no_modules', array());
}
-
+
$report_modules_inactive = report_modules_inactive();
-
+
//
// Display inactive modules
//
@@ -587,16 +578,16 @@ else
{
$report_module =& $report_modules_inactive[$key];
$module_info = $report_module->info();
-
+
$template->assign_block_vars('inactive_modules.modules', array(
'MODULE_TITLE' => $module_info['title'],
'MODULE_EXPLAIN' => $module_info['explain'],
'REPORT_COUNT' => '-',
-
+
'U_INSTALL' => append_sid("admin_reports.php?mode=install&module=" . $report_module->data['module_name']))
);
}
-
+
if (empty($report_modules_inactive))
{
$template->assign_block_vars('inactive_modules.switch_no_modules', array());
@@ -604,7 +595,7 @@ else
print_page('report_modules_body.tpl');
break;
-
+
default:
message_die(GENERAL_MESSAGE, $lang['REPORT_NOT_SUPPORTED'] . $return_links['admin'] . $return_links['index']);
break;
diff --git a/upload/images/Thumbs.db b/upload/images/Thumbs.db
deleted file mode 100644
index 7f6da5c79..000000000
Binary files a/upload/images/Thumbs.db and /dev/null differ
diff --git a/upload/images/avatars/gallery/noavatar.png b/upload/images/avatars/gallery/noavatar.png
index e6025d259..997d8b2df 100644
Binary files a/upload/images/avatars/gallery/noavatar.png and b/upload/images/avatars/gallery/noavatar.png differ
diff --git a/upload/images/logo/logo.gif b/upload/images/logo/logo.gif
deleted file mode 100644
index 8811a0d88..000000000
Binary files a/upload/images/logo/logo.gif and /dev/null differ
diff --git a/upload/images/logo/logo.png b/upload/images/logo/logo.png
index 3ff577a82..2e50b4659 100644
Binary files a/upload/images/logo/logo.png and b/upload/images/logo/logo.png differ
diff --git a/upload/includes/page_header.php b/upload/includes/page_header.php
index b2cbc039a..622a5efb4 100644
--- a/upload/includes/page_header.php
+++ b/upload/includes/page_header.php
@@ -206,7 +206,7 @@ $template->assign_vars(array(
'LOGGED_IN' => $logged_in,
'SESSION_USER_ID' => $userdata['user_id'],
'THIS_USERNAME' => $userdata['username'],
- 'AVATAR' => get_avatar($userdata['user_avatar'], $userdata['user_avatar_type'], $userdata['user_allowavatar']),
+ 'THIS_AVATAR' => get_avatar($userdata['user_avatar'], $userdata['user_avatar_type'], $userdata['user_allowavatar']),
'SHOW_LOGIN_LINK' => !defined('IN_LOGIN'),
'AUTOLOGIN_DISABLED' => !$bb_cfg['allow_autologin'],
'S_LOGIN_ACTION' => BB_ROOT ."login.php",
diff --git a/upload/includes/sessions.php b/upload/includes/sessions.php
index c3821dc02..4795f8f54 100644
--- a/upload/includes/sessions.php
+++ b/upload/includes/sessions.php
@@ -28,6 +28,7 @@ class user_common
'h_sig' => 0, // hide signatures
'sp_op' => 0, // show spoiler opened
'tr_t_ax' => 0, // ajax open topics
+ 'tr_t_t' => 0, // show time of the creation topics
);
/**
diff --git a/upload/includes/ucp/usercp_register.php b/upload/includes/ucp/usercp_register.php
index cfe6b1f14..52897dc2a 100644
--- a/upload/includes/ucp/usercp_register.php
+++ b/upload/includes/ucp/usercp_register.php
@@ -684,7 +684,7 @@ if ($submit && !$errors)
}
else
{
- $die_msg = 'Спасибо за регистрацию, учётная запись была создана
Вы можете войти в систему, используя ваше имя и пароль';
+ $die_msg = $lang['ACCOUNT_ADDED'];
}
bb_die($die_msg);
}
@@ -715,7 +715,7 @@ if ($submit && !$errors)
}
else
{
- bb_die('Ничего не было изменено');
+ bb_die($lang['NOTHING_HAS_CHANGED']);
}
}
}
@@ -723,7 +723,7 @@ if ($submit && !$errors)
$template->assign_vars($tp_data);
$template->assign_vars(array(
- 'PAGE_TITLE' => ($mode == 'editprofile') ? 'Редактирование профиля'. ($adm_edit ? " :: {$pr_data['username']}" : '') : 'Регистрация',
+ 'PAGE_TITLE' => ($mode == 'editprofile') ? $lang['EDIT_PROFILE'] . ($adm_edit ? " :: {$pr_data['username']}" : '') : $lang['REGISTER'],
'SHOW_REG_AGREEMENT' => ($mode == 'register' && !IS_ADMIN),
'ERROR_MESSAGE' => ($errors) ? join('
', $errors) : '',
'MODE' => $mode,
diff --git a/upload/language/lang_english/lang_main.php b/upload/language/lang_english/lang_main.php
index 07024cab4..3acea226d 100644
--- a/upload/language/lang_english/lang_main.php
+++ b/upload/language/lang_english/lang_main.php
@@ -121,7 +121,7 @@ $lang['SEARCH_LATEST'] = 'latest';
$lang['REGISTER'] = 'Register';
$lang['PROFILE'] = 'Profile';
-$lang['EDIT_PROFILE'] = 'Edit your profile';
+$lang['EDIT_PROFILE'] = 'Edit profile';
$lang['SEARCH'] = 'Search';
$lang['MEMBERLIST'] = 'Memberlist';
$lang['FAQ'] = 'FAQ';
@@ -131,6 +131,7 @@ $lang['LASTPOST'] = 'Last Post';
$lang['MODERATOR'] = 'Moderator';
$lang['MODERATORS'] = 'Moderators';
$lang['TERMS'] = 'Terms';
+$lang['NOTHING_HAS_CHANGED'] = 'Nothing has changed';
//
// Stats block text
@@ -1183,7 +1184,7 @@ $lang['UNSET_GOLD_TORRENT'] = 'UnMake gold';
$lang['SET_SILVER_TORRENT'] = 'Make silver';
$lang['UNSET_SILVER_TORRENT'] = 'UnMake gold';
$lang['GOLD_STATUS'] = 'GOLD TORRENT! DOWNLOAD TRAFFIC DOES NOT CONSIDER!';
-$lang['SILVER_STATUS'] = 'SILVER TORRENT! DOWNLOAD TRAFFIC PARTIALLY CONSIDERED!';
+$lang['SILVER_STATUS'] = 'SILVER TORRENT! DOWNLOAD TRAFFIC PARTIALLY CONSIDERED!';
// End - Gold/Silver releases
$lang['SEARCH_IN_FORUMS'] = 'Search in Forums';
@@ -1265,9 +1266,9 @@ $lang['VIEWING_USER_BT_PROFILE'] = 'Viewing torrent-profile :: %s'; // %s is use
$lang['CUR_ACTIVE_DLS'] = 'Currently active torrents';
$lang['VIEW_TORRENT_PROFILE'] = 'Torrent-profile';
-$lang['PROFILE_UP_TOTAL'] = 'Total uploaded';
+$lang['PROFILE_UP_TOTAL'] = 'Total uploaded';
$lang['PROFILE_DOWN_TOTAL'] = 'Total downloaded';
-$lang['PROFILE_BONUS'] = 'Bonus';
+$lang['PROFILE_BONUS'] = 'Bonus';
$lang['PROFILE_RELEASED'] = 'Total released';
$lang['PROFILE_RATIO'] = 'Ratio';
$lang['PROFILE_MAX_SPEED'] = 'Speed';
@@ -1287,6 +1288,7 @@ $lang['TRACKER'] = 'Tracker';
$lang['GALLERY'] = 'Gallery';
$lang['OPEN_TOPICS'] = 'Open topics';
$lang['OPEN_IN_SAME_WINDOW'] = 'open in same window';
+$lang['SHOW_TIME_TOPICS'] = 'show time of the creation topics';
$lang['BT_LOW_RATIO_FUNC'] = "You can't use this option (ratio is too low)";
$lang['BT_LOW_RATIO_FOR_DL'] = "With ratio %s you can't download torrents";
diff --git a/upload/language/lang_russian/lang_main.php b/upload/language/lang_russian/lang_main.php
index 419246866..c2933a1eb 100644
--- a/upload/language/lang_russian/lang_main.php
+++ b/upload/language/lang_russian/lang_main.php
@@ -126,7 +126,7 @@ $lang['SEARCH_LATEST'] = 'Последние';
$lang['REGISTER'] = 'Регистрация';
$lang['PROFILE'] = 'Профиль';
-$lang['EDIT_PROFILE'] = 'Редактирование вашего профиля';
+$lang['EDIT_PROFILE'] = 'Редактирование профиля';
$lang['SEARCH'] = 'Поиск';
$lang['MEMBERLIST'] = 'Пользователи';
$lang['FAQ'] = 'FAQ';
@@ -136,6 +136,7 @@ $lang['LASTPOST'] = 'Посл. сообщение';
$lang['MODERATOR'] = 'Модератор';
$lang['MODERATORS'] = 'Модераторы';
$lang['TERMS'] = 'Правила';
+$lang['NOTHING_HAS_CHANGED'] = 'Ничего не было изменено';
//
// Stats block text
@@ -1293,6 +1294,7 @@ $lang['TRACKER'] = 'Трекер';
$lang['GALLERY'] = 'Галерея';
$lang['OPEN_TOPICS'] = 'Открывать топики';
$lang['OPEN_IN_SAME_WINDOW'] = 'открывать в этом же окне';
+$lang['SHOW_TIME_TOPICS'] = 'показывать время создания темыs';
$lang['BT_LOW_RATIO_FUNC'] = 'У Вас слишком низкий рейтинг для того, чтобы воспользоваться этой функцией';
$lang['BT_LOW_RATIO_FOR_DL'] = 'Рейтинг %s уже не позволяет Вам скачивать новые торренты.
Для поднятия рейтинга, Вы можете что-либо раздать из Ваших прошлых закачек, либо организовать новую раздачу.
Пожалуйста, помните о том, что Ваше yчастие в системе BitTorrent не может ограничиваться только скачиванием!';
diff --git a/upload/report.php b/upload/report.php
index 1252d5963..582d07057 100644
--- a/upload/report.php
+++ b/upload/report.php
@@ -383,20 +383,12 @@ else
message_die(GENERAL_MESSAGE, $lang[$message] . $return_links['list'] . $return_links['index']);
}
- $page_title = ($single_report) ? $lang['DELETE_REPORT'] : $lang['DELETE_REPORTS'];
-
- include(PAGE_HEADER);
- $template->set_filenames(array(
- 'confirm' => 'confirm_body.tpl')
- );
-
- $template->assign_vars(array(
- 'MESSAGE_TITLE' => $page_title,
- 'MESSAGE_TEXT' => ($single_report) ? $lang['DELETE_REPORT_EXPLAIN'] : $lang['DELETE_REPORTS_EXPLAIN'])
- );
-
- $template->pparse('confirm');
- include(PAGE_FOOTER);
+ print_confirmation(array(
+ 'CONFIRM_TITLE' => ($single_report) ? $lang['DELETE_REPORT'] : $lang['DELETE_REPORTS'],
+ 'QUESTION' => ($single_report) ? $lang['DELETE_REPORT_EXPLAIN'] : $lang['DELETE_REPORTS_EXPLAIN'],
+ 'FORM_ACTION' => "report.php",,
+ 'HIDDEN_FIELDS' => $hidden_fields,
+ ));
}
break;
diff --git a/upload/templates/default/confirm_body.tpl b/upload/templates/default/confirm_body.tpl
deleted file mode 100644
index 285022b40..000000000
--- a/upload/templates/default/confirm_body.tpl
+++ /dev/null
@@ -1,10 +0,0 @@
-
{MESSAGE_TITLE} | -
---|
- |
{L_YOUR_RATIO} | {USER_RATIO}{L_NONE} (DL < {MIN_DL_FOR_RATIO}) |
{L_DOWNLOADED} | {DOWN_TOTAL} |
{L_UPLOADED} | {UP_TOTAL} |
onclick="ajax.view_post({tor.POST_ID}, this); return false;" href="{TOPIC_URL}{tor.TOPIC_ID}">{tor.TOPIC_TITLE}{tor.TOR_TYPE}{tor.TOPIC_TITLE}
+ {tor.TOPIC_TIME}
|
{tor.USERNAME} | diff --git a/upload/templates/default/viewforum.tpl b/upload/templates/default/viewforum.tpl index d1abf2275..17937f73e 100644 --- a/upload/templates/default/viewforum.tpl +++ b/upload/templates/default/viewforum.tpl @@ -374,11 +374,22 @@ td.topic_id { cursor: pointer; }{L_MODERATE_FORUM} | -| | -{L_TOPICS_PER_PAGE}: | -- - | +| | +{L_TOPICS_PER_PAGE}: | +{SELECT_TPP} | + +{L_STATUS}: | +{SELECT_TST} | + ++ | diff --git a/upload/tracker.php b/upload/tracker.php index 37ba89757..8c447d6d4 100644 --- a/upload/tracker.php +++ b/upload/tracker.php @@ -644,7 +644,7 @@ if ($allowed_forums) $select = " SELECT tor.topic_id, tor.post_id, tor.attach_id, tor.size, tor.reg_time, tor.complete_count, tor.seeder_last_seen, tor.tor_status, tor.tor_type, - t.topic_title, t.topic_replies, t.topic_views, sn.seeders, sn.leechers, tor.info_hash + t.topic_title, t.topic_time, t.topic_replies, t.topic_views, sn.seeders, sn.leechers, tor.info_hash "; $select .= (!$hide_speed) ? ", sn.speed_up, sn.speed_down" : ''; $select .= (!$hide_forum) ? ", tor.forum_id" : ''; @@ -738,6 +738,7 @@ if ($allowed_forums) 'FORUM_NAME' => ($forum_id) ? $forum_name_html[$forum_id] : '', 'TOPIC_ID' => $tor['topic_id'], 'TOPIC_TITLE' => wbr($tor['topic_title']), + 'TOPIC_TIME' => bb_date($tor['topic_time'], 'd-M-y') .' · '. delta_time($tor['topic_time']), 'POST_ID' => $tor['post_id'], 'POSTER_ID' => $poster_id, 'USERNAME' => isset($tor['username']) ? wbr($tor['username']) : '', @@ -860,6 +861,7 @@ $template->assign_vars(array( 'TITLE_MATCH_VAL' => $title_match_val, 'AJAX_TOPICS' => $user->opt_js['tr_t_ax'], + 'SHOW_TIME_TOPICS' => $user->opt_js['tr_t_t'], 'U_SEARCH_USER' => "search.php?mode=searchuser&input_name=$poster_name_key", )); diff --git a/upload/viewforum.php b/upload/viewforum.php index 33f4f1a66..a2d6b0a78 100644 --- a/upload/viewforum.php +++ b/upload/viewforum.php @@ -1,23 +1,4 @@ -1), array_flip($lang['tor_status'])); + $template->assign_vars(array( + 'SELECT_TST' => build_select('tst', $select_tst, $tor_status), + )); $select_st = array_merge(array('Выберите статус' => -1), array_flip($lang['tor_status'])); $template->assign_vars(array( 'SELECT_ST' => build_select('st', $select_st, -1), @@ -351,8 +345,14 @@ $limit_topics_time_sql = ($topic_days) ? "AND t.topic_last_post_time > ". (TIMEN $select_tor_sql = $join_tor_sql = ''; $join_dl = ($bb_cfg['show_dl_status_in_forum'] && !IS_GUEST); +$where_tor_sql = ''; if ($forum_data['allow_reg_tracker']) { + if ($tor_status != -1) + { + $where_tor_sql = "AND tor.tor_status = $tor_status"; + } + $select_tor_sql = ', bt.auth_key, tor.info_hash, tor.size AS tor_size, tor.reg_time, tor.complete_count, tor.seeder_last_seen, tor.attach_id, tor.tor_status, tor.tor_type, sn.seeders, sn.leechers @@ -420,6 +420,7 @@ if ($topics_csv = join(',', $topic_ids)) LEFT JOIN ". BB_USERS ." u2 ON(p2.poster_id = u2.user_id) $join_tor_sql WHERE t.topic_id IN($topics_csv) + $where_tor_sql GROUP BY t.topic_id $order_sql "); @@ -474,7 +475,7 @@ $template->assign_vars(array( 'ONLY_NEW_TOPICS_ON' => ($only_new == ONLY_NEW_TOPICS), 'TITLE_MATCH' => htmlCHR($title_match), - 'SELECT_TPP' => ($select_tpp) ? build_select('tpp', $select_tpp, $topics_per_page, null, null, 'onchange="$(\'#tpp\').submit();"') : '', + 'SELECT_TPP' => ($select_tpp) ? build_select('tpp', $select_tpp, $topics_per_page) : '', 'T_POST_NEW_TOPIC' => ($forum_data['forum_status'] == FORUM_LOCKED) ? $lang['FORUM_LOCKED'] : $lang['POST_NEW_TOPIC'], 'S_AUTH_LIST' => $u_auth, 'U_VIEW_FORUM' => FORUM_URL . $forum_id, @@ -575,6 +576,10 @@ foreach ($topic_rowset as $topic) } unset($topic_rowset); +$pg_url = FORUM_URL . $forum_id; +$pg_url .= ($sort_value) ? "&sort=$sort_value" : ''; +$pg_url .= ($order_value) ? "&order=$order_value" : ''; +$template->assign_var('MOD_URL', $pg_url); $pg_url = FORUM_URL . $forum_id; $pg_url .= ($topic_days) ? "&topicdays=$topic_days" : ''; $pg_url .= ($sort_value) ? "&sort=$sort_value" : ''; @@ -606,7 +611,6 @@ else $template->assign_vars(array( 'PAGE_URL' => $pg_url, - 'PAGE_URL_TPP' => url_arg($pg_url, 'tpp', null), 'FOUND_TOPICS' => $found_topics, 'AUTH_MOD' => $is_auth['auth_mod'], |