mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-20 21:33:54 -07:00
r298
поиски золота, дата вступления, посветка строк в tracker.php git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@298 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293
This commit is contained in:
parent
57519a14bb
commit
2d1c734f57
16 changed files with 201 additions and 182 deletions
|
@ -53,125 +53,67 @@ else
|
|||
}
|
||||
}
|
||||
|
||||
$lang_select = language_select($new['default_lang'], 'default_lang', "language");
|
||||
$timezone_select = tz_select($new['board_timezone'], 'board_timezone');
|
||||
|
||||
$disable_board_yes = ( $new['board_disable'] ) ? "checked=\"checked\"" : "";
|
||||
$disable_board_no = ( !$new['board_disable'] ) ? "checked=\"checked\"" : "";
|
||||
|
||||
$bbcode_yes = ( $new['allow_bbcode'] ) ? "checked=\"checked\"" : "";
|
||||
$bbcode_no = ( !$new['allow_bbcode'] ) ? "checked=\"checked\"" : "";
|
||||
|
||||
$activation_none = ( $new['require_activation'] == USER_ACTIVATION_NONE ) ? "checked=\"checked\"" : "";
|
||||
$activation_user = ( $new['require_activation'] == USER_ACTIVATION_SELF ) ? "checked=\"checked\"" : "";
|
||||
$activation_admin = ( $new['require_activation'] == USER_ACTIVATION_ADMIN ) ? "checked=\"checked\"" : "";
|
||||
|
||||
$confirm_yes = ($new['enable_confirm']) ? 'checked="checked"' : '';
|
||||
$confirm_no = (!$new['enable_confirm']) ? 'checked="checked"' : '';
|
||||
|
||||
$allow_autologin_yes = ($new['allow_autologin']) ? 'checked="checked"' : '';
|
||||
$allow_autologin_no = (!$new['allow_autologin']) ? 'checked="checked"' : '';
|
||||
|
||||
$board_email_form_yes = ( $new['board_email_form'] ) ? "checked=\"checked\"" : "";
|
||||
$board_email_form_no = ( !$new['board_email_form'] ) ? "checked=\"checked\"" : "";
|
||||
|
||||
$privmsg_on = ( !$new['privmsg_disable'] ) ? "checked=\"checked\"" : "";
|
||||
$privmsg_off = ( $new['privmsg_disable'] ) ? "checked=\"checked\"" : "";
|
||||
|
||||
$prune_yes = ( $new['prune_enable'] ) ? "checked=\"checked\"" : "";
|
||||
$prune_no = ( !$new['prune_enable'] ) ? "checked=\"checked\"" : "";
|
||||
|
||||
$smile_yes = ( $new['allow_smilies'] ) ? "checked=\"checked\"" : "";
|
||||
$smile_no = ( !$new['allow_smilies'] ) ? "checked=\"checked\"" : "";
|
||||
|
||||
$sig_yes = ( $new['allow_sig'] ) ? "checked=\"checked\"" : "";
|
||||
$sig_no = ( !$new['allow_sig'] ) ? "checked=\"checked\"" : "";
|
||||
|
||||
$namechange_yes = ( $new['allow_namechange'] ) ? "checked=\"checked\"" : "";
|
||||
$namechange_no = ( !$new['allow_namechange'] ) ? "checked=\"checked\"" : "";
|
||||
|
||||
$avatars_local_yes = ( $new['allow_avatar_local'] ) ? "checked=\"checked\"" : "";
|
||||
$avatars_local_no = ( !$new['allow_avatar_local'] ) ? "checked=\"checked\"" : "";
|
||||
$avatars_remote_yes = ( $new['allow_avatar_remote'] ) ? "checked=\"checked\"" : "";
|
||||
$avatars_remote_no = ( !$new['allow_avatar_remote'] ) ? "checked=\"checked\"" : "";
|
||||
$avatars_upload_yes = ( $new['allow_avatar_upload'] ) ? "checked=\"checked\"" : "";
|
||||
$avatars_upload_no = ( !$new['allow_avatar_upload'] ) ? "checked=\"checked\"" : "";
|
||||
|
||||
$smtp_yes = ( $new['smtp_delivery'] ) ? "checked=\"checked\"" : "";
|
||||
$smtp_no = ( !$new['smtp_delivery'] ) ? "checked=\"checked\"" : "";
|
||||
|
||||
//
|
||||
// Escape any quotes in the site description for proper display in the text
|
||||
// box on the admin page
|
||||
//
|
||||
$template->assign_vars(array(
|
||||
"S_CONFIG_ACTION"=> append_sid("admin_board.php"),
|
||||
|
||||
"SITENAME" => htmlCHR($new['sitename']),
|
||||
"CONFIG_SITE_DESCRIPTION" => htmlCHR($new['site_desc']),
|
||||
"S_DISABLE_BOARD_YES" => $disable_board_yes,
|
||||
"S_DISABLE_BOARD_NO" => $disable_board_no,
|
||||
"ACTIVATION_NONE" => USER_ACTIVATION_NONE,
|
||||
"ACTIVATION_NONE_CHECKED" => $activation_none,
|
||||
"ACTIVATION_USER" => USER_ACTIVATION_SELF,
|
||||
"ACTIVATION_USER_CHECKED" => $activation_user,
|
||||
"ACTIVATION_ADMIN" => USER_ACTIVATION_ADMIN,
|
||||
"ACTIVATION_ADMIN_CHECKED" => $activation_admin,
|
||||
"CONFIRM_ENABLE" => $confirm_yes,
|
||||
"CONFIRM_DISABLE" => $confirm_no,
|
||||
"ALLOW_AUTOLOGIN_YES" => $allow_autologin_yes,
|
||||
"ALLOW_AUTOLOGIN_NO" => $allow_autologin_no,
|
||||
"AUTOLOGIN_TIME" => (int) $new['max_autologin_time'],
|
||||
"BOARD_EMAIL_FORM_ENABLE" => $board_email_form_yes,
|
||||
"BOARD_EMAIL_FORM_DISABLE" => $board_email_form_no,
|
||||
"MAX_POLL_OPTIONS" => $new['max_poll_options'],
|
||||
"FLOOD_INTERVAL" => $new['flood_interval'],
|
||||
"TOPICS_PER_PAGE" => $new['topics_per_page'],
|
||||
"POSTS_PER_PAGE" => $new['posts_per_page'],
|
||||
"HOT_TOPIC" => $new['hot_threshold'],
|
||||
"LANG_SELECT" => $lang_select,
|
||||
"DEFAULT_DATEFORMAT" => $new['default_dateformat'],
|
||||
"TIMEZONE_SELECT" => $timezone_select,
|
||||
"S_PRIVMSG_ENABLED" => $privmsg_on,
|
||||
"S_PRIVMSG_DISABLED" => $privmsg_off,
|
||||
"INBOX_LIMIT" => $new['max_inbox_privmsgs'],
|
||||
"SENTBOX_LIMIT" => $new['max_sentbox_privmsgs'],
|
||||
"SAVEBOX_LIMIT" => $new['max_savebox_privmsgs'],
|
||||
"MAX_LOGIN_ATTEMPTS" => $new['max_login_attempts'],
|
||||
"LOGIN_RESET_TIME" => $new['login_reset_time'],
|
||||
"PRUNE_YES" => $prune_yes,
|
||||
"PRUNE_NO" => $prune_no,
|
||||
"BBCODE_YES" => $bbcode_yes,
|
||||
"BBCODE_NO" => $bbcode_no,
|
||||
"SMILE_YES" => $smile_yes,
|
||||
"SMILE_NO" => $smile_no,
|
||||
"SIG_YES" => $sig_yes,
|
||||
"SIG_NO" => $sig_no,
|
||||
"SIG_SIZE" => $new['max_sig_chars'],
|
||||
"NAMECHANGE_YES" => $namechange_yes,
|
||||
"NAMECHANGE_NO" => $namechange_no,
|
||||
"AVATARS_LOCAL_YES" => $avatars_local_yes,
|
||||
"AVATARS_LOCAL_NO" => $avatars_local_no,
|
||||
"AVATARS_REMOTE_YES" => $avatars_remote_yes,
|
||||
"AVATARS_REMOTE_NO" => $avatars_remote_no,
|
||||
"AVATARS_UPLOAD_YES" => $avatars_upload_yes,
|
||||
"AVATARS_UPLOAD_NO" => $avatars_upload_no,
|
||||
"AVATAR_FILESIZE" => $new['avatar_filesize'],
|
||||
"AVATAR_MAX_HEIGHT" => $new['avatar_max_height'],
|
||||
"AVATAR_MAX_WIDTH" => $new['avatar_max_width'],
|
||||
"AVATAR_PATH" => $new['avatar_path'],
|
||||
"AVATAR_GALLERY_PATH" => $new['avatar_gallery_path'],
|
||||
"SMILIES_PATH" => $new['smilies_path'],
|
||||
"INBOX_PRIVMSGS" => $new['max_inbox_privmsgs'],
|
||||
"SENTBOX_PRIVMSGS" => $new['max_sentbox_privmsgs'],
|
||||
"SAVEBOX_PRIVMSGS" => $new['max_savebox_privmsgs'],
|
||||
"EMAIL_FROM" => $new['board_email'],
|
||||
"EMAIL_SIG" => $new['board_email_sig'],
|
||||
"SMTP_YES" => $smtp_yes,
|
||||
"SMTP_NO" => $smtp_no,
|
||||
"SMTP_HOST" => $new['smtp_host'],
|
||||
"SMTP_USERNAME" => $new['smtp_username'],
|
||||
"SMTP_PASSWORD" => $new['smtp_password'])
|
||||
);
|
||||
$template->assign_vars(array(
|
||||
'S_CONFIG_ACTION' => append_sid('admin_board.php'),
|
||||
|
||||
'SITENAME' => htmlCHR($new['sitename']),
|
||||
'CONFIG_SITE_DESCRIPTION' => htmlCHR($new['site_desc']),
|
||||
'DISABLE_BOARD' => ($new['board_disable']) ? true : false,
|
||||
|
||||
'ACTIVATION_NONE' => USER_ACTIVATION_NONE,
|
||||
'ACTIVATION_NONE_CHECKED' => ($new['require_activation'] == USER_ACTIVATION_NONE) ? 'checked="checked"' : '',
|
||||
'ACTIVATION_USER' => USER_ACTIVATION_SELF,
|
||||
'ACTIVATION_USER_CHECKED' => ($new['require_activation'] == USER_ACTIVATION_SELF) ? 'checked="checked"' : '',
|
||||
'ACTIVATION_ADMIN' => USER_ACTIVATION_ADMIN,
|
||||
'ACTIVATION_ADMIN_CHECKED' => ($new['require_activation'] == USER_ACTIVATION_ADMIN) ? 'checked="checked"' : '',
|
||||
|
||||
'VISUAL_CONFIRM' => ($new['enable_confirm']) ? true : false,
|
||||
'ALLOW_AUTOLOGIN' => ($new['allow_autologin']) ? true : false,
|
||||
'AUTOLOGIN_TIME' => (int) $new['max_autologin_time'],
|
||||
'BOARD_EMAIL_FORM' => ($new['board_email_form']) ? true : false,
|
||||
'MAX_POLL_OPTIONS' => $new['max_poll_options'],
|
||||
'FLOOD_INTERVAL' => $new['flood_interval'],
|
||||
'TOPICS_PER_PAGE' => $new['topics_per_page'],
|
||||
'POSTS_PER_PAGE' => $new['posts_per_page'],
|
||||
'HOT_TOPIC' => $new['hot_threshold'],
|
||||
'LANG_SELECT' => language_select($new['default_lang'], 'default_lang', 'language'),
|
||||
'DEFAULT_DATEFORMAT' => $new['default_dateformat'],
|
||||
'TIMEZONE_SELECT' => tz_select($new['board_timezone'], 'board_timezone'),
|
||||
'PRIVMSG_DISABLE' => ($new['privmsg_disable']) ? false : true,
|
||||
'INBOX_LIMIT' => $new['max_inbox_privmsgs'],
|
||||
'SENTBOX_LIMIT' => $new['max_sentbox_privmsgs'],
|
||||
'SAVEBOX_LIMIT' => $new['max_savebox_privmsgs'],
|
||||
'MAX_LOGIN_ATTEMPTS' => $new['max_login_attempts'],
|
||||
'LOGIN_RESET_TIME' => $new['login_reset_time'],
|
||||
'PRUNE_ENABLE' => ($new['prune_enable']) ? true : false,
|
||||
'ALLOW_BBCODE' => ($new['allow_bbcode']) ? true : false,
|
||||
'ALLOW_SMILIES' => ($new['allow_smilies']) ? true : false,
|
||||
'ALLOW_SIG' => ($new['allow_sig']) ? true : false,
|
||||
'SIG_SIZE' => $new['max_sig_chars'],
|
||||
'ALLOW_NAMECHANGE' => ($new['allow_namechange']) ? true : false,
|
||||
'ALLOW_AVATARS_LOCAL' => ($new['allow_avatar_local']) ? true : false,
|
||||
'ALLOW_AVATAR_REMOTE' => ($new['allow_avatar_remote']) ? true : false,
|
||||
'ALLOW_AVATAR_UPLOAD' => ($new['allow_avatar_upload']) ? true : false,
|
||||
'AVATAR_FILESIZE' => $new['avatar_filesize'],
|
||||
'AVATAR_MAX_HEIGHT' => $new['avatar_max_height'],
|
||||
'AVATAR_MAX_WIDTH' => $new['avatar_max_width'],
|
||||
'AVATAR_PATH' => $new['avatar_path'],
|
||||
'AVATAR_GALLERY_PATH' => $new['avatar_gallery_path'],
|
||||
'SMILIES_PATH' => $new['smilies_path'],
|
||||
'INBOX_PRIVMSGS' => $new['max_inbox_privmsgs'],
|
||||
'SENTBOX_PRIVMSGS' => $new['max_sentbox_privmsgs'],
|
||||
'SAVEBOX_PRIVMSGS' => $new['max_savebox_privmsgs'],
|
||||
'EMAIL_FROM' => $new['board_email'],
|
||||
'EMAIL_SIG' => $new['board_email_sig'],
|
||||
'SMTP_DELIVERY' => ($new['smtp_delivery']) ? true : false,
|
||||
'SMTP_HOST' => $new['smtp_host'],
|
||||
'SMTP_USERNAME' => $new['smtp_username'],
|
||||
'SMTP_PASSWORD' => $new['smtp_password'],
|
||||
));
|
||||
|
||||
print_page('admin_board.tpl', 'admin');
|
|
@ -11,10 +11,10 @@ require('./pagestart.php');
|
|||
|
||||
require(INC_DIR .'functions_group.php');
|
||||
|
||||
$group_id = (@$_REQUEST[POST_GROUPS_URL]) ? intval($_REQUEST[POST_GROUPS_URL]) : 0;
|
||||
$mode = (@$_REQUEST['mode']) ? strval($_REQUEST['mode']) : '';
|
||||
$group_id = isset($_REQUEST[POST_GROUPS_URL]) ? intval($_REQUEST[POST_GROUPS_URL]) : 0;
|
||||
$mode = isset($_REQUEST['mode']) ? strval($_REQUEST['mode']) : '';
|
||||
|
||||
attachment_quota_settings('group', @$_POST['group_update'], $mode);
|
||||
attachment_quota_settings('group', isset($_POST['group_update']), $mode);
|
||||
|
||||
if (!empty($_POST['edit']) || !empty($_POST['new']))
|
||||
{
|
||||
|
@ -131,7 +131,7 @@ else if (!empty($_POST['group_update']))
|
|||
add_user_into_group($group_id, $group_moderator);
|
||||
|
||||
// Delete old moderator's user_group
|
||||
if (@$_POST['delete_old_moderator'])
|
||||
if (isset($_POST['delete_old_moderator']))
|
||||
{
|
||||
delete_user_group($group_id, $group_info['group_moderator']);
|
||||
}
|
||||
|
|
|
@ -53,8 +53,8 @@ $bb_cfg = $tr_cfg = $page_cfg = array();
|
|||
|
||||
// Increase number of revision after update
|
||||
$bb_cfg['tp_version'] = '2.1 Stable';
|
||||
$bb_cfg['tp_release_state'] = 'R297';
|
||||
$bb_cfg['tp_release_date'] = '01-10-2011';
|
||||
$bb_cfg['tp_release_state'] = 'R298';
|
||||
$bb_cfg['tp_release_date'] = '02-10-2011';
|
||||
|
||||
// Database
|
||||
$charset = 'utf8';
|
||||
|
@ -105,7 +105,6 @@ $bb_cfg['datastore_type'] = 'filecache';
|
|||
$bb_cfg['server_name'] = (!empty($_SERVER['SERVER_NAME'])) ? $_SERVER['SERVER_NAME'] : 'torrentpier.me'; // The domain name from which this board runs
|
||||
$bb_cfg['server_port'] = (!empty($_SERVER['SERVER_PORT'])) ? $_SERVER['SERVER_PORT'] : 80; // The port your server is running on
|
||||
$bb_cfg['script_path'] = '/'; // The path where FORUM is located relative to the domain name
|
||||
$bb_cfg['sitename'] = (!empty($_SERVER['SERVER_NAME'])) ? $_SERVER['SERVER_NAME'] : 'TorrentPier II - Torrent Tracker (see $bb_cfg[\'sitename\'] in config.php)'; // Name of your site
|
||||
|
||||
// Server load
|
||||
$bb_cfg['max_srv_load'] = 0; // 0 - disable
|
||||
|
|
|
@ -346,7 +346,8 @@ else
|
|||
if(IS_GUEST && !CAPTCHA()->verify_code())
|
||||
{
|
||||
global $template;
|
||||
$redirect_url = !empty($_POST['redirect_url']) ? $_POST['redirect_url'] : $_SERVER['HTTP_REFERER'];
|
||||
|
||||
$redirect_url = !empty($_POST['redirect_url']) ? $_POST['redirect_url'] : @$_SERVER['HTTP_REFERER'];
|
||||
$message = '<form action="'. DOWNLOAD_URL . $attachment['attach_id'] .'" method="post">';
|
||||
$message .= $lang['CONFIRM_CODE'];
|
||||
$message .= '<div class="mrg_10">'. CAPTCHA()->get_html() .'</div>';
|
||||
|
|
|
@ -11,12 +11,13 @@ $page_cfg['use_tablesorter'] = true;
|
|||
$s_member_groups = $s_pending_groups = $s_member_groups_opt = $s_pending_groups_opt = '';
|
||||
$select_sort_mode = $select_sort_order = '';
|
||||
|
||||
function generate_user_info(&$row, $date_format, $group_mod, &$from, &$posts, &$joined, &$pm, &$email, &$www)
|
||||
function generate_user_info(&$row, $date_format, $group_mod, &$from, &$posts, &$joined, &$pm, &$email, &$www, &$user_time)
|
||||
{
|
||||
global $lang, $images, $bb_cfg;
|
||||
|
||||
$from = ( !empty($row['user_from']) ) ? $row['user_from'] : '';
|
||||
$joined = bb_date($row['user_regdate'], $lang['DATE_FORMAT']);
|
||||
$user_time = ( !empty($row['user_time']) ) ? bb_date($row['user_time'], $lang['DATE_FORMAT']) : $lang['NO'];
|
||||
$posts = ( $row['user_posts'] ) ? $row['user_posts'] : 0;
|
||||
$pm = ($bb_cfg['text_buttons']) ? '<a class="txtb" href="'. append_sid("privmsg.php?mode=post&". POST_USERS_URL ."=".$row['user_id']) .'">'. $lang['SEND_PM_TXTB'] .'</a>' : '<a href="' . append_sid("privmsg.php?mode=post&". POST_USERS_URL ."=".$row['user_id']) .'"><img src="' . $images['icon_pm'] . '" alt="' . $lang['SEND_PRIVATE_MESSAGE'] . '" title="' . $lang['SEND_PRIVATE_MESSAGE'] . '" border="0" /></a>';
|
||||
|
||||
|
@ -25,19 +26,13 @@ function generate_user_info(&$row, $date_format, $group_mod, &$from, &$posts, &$
|
|||
$email_uri = ($bb_cfg['board_email_form']) ? append_sid("profile.php?mode=email&". POST_USERS_URL ."=".$row['user_id']) : 'mailto:'. $row['user_email'];
|
||||
$email = '<a class="editable" href="'. $email_uri .'">'. $row['user_email'] .'</a>';
|
||||
}
|
||||
else
|
||||
{
|
||||
$email = '';
|
||||
}
|
||||
else $email = '';
|
||||
|
||||
if ($row['user_website'])
|
||||
{
|
||||
$www = ($bb_cfg['text_buttons']) ? '<a class="txtb" href="'. $row['user_website'] .'" target="_userwww">'. $lang['VISIT_WEBSITE_TXTB'] .'</a>' : '<a class="txtb" href="'. $row['user_website'] .'" target="_userwww"><img src="' . $images['icon_www'] . '" alt="' . $lang['VISIT_WEBSITE'] . '" title="' . $lang['VISIT_WEBSITE'] . '" border="0" /></a>';
|
||||
}
|
||||
else
|
||||
{
|
||||
$www = '';
|
||||
}
|
||||
else $www = '';
|
||||
|
||||
return;
|
||||
}
|
||||
|
@ -238,7 +233,7 @@ else if (@$_POST['joingroup'])
|
|||
bb_die($lang['ALREADY_MEMBER_GROUP']);
|
||||
}
|
||||
|
||||
add_user_into_group($group_id, $userdata['user_id'], 1);
|
||||
add_user_into_group($group_id, $userdata['user_id'], 1, TIMENOW);
|
||||
|
||||
if ($bb_cfg['groupcp_send_email'])
|
||||
{
|
||||
|
@ -419,7 +414,7 @@ else
|
|||
|
||||
// Members
|
||||
$count_members = DB()->fetch_rowset("
|
||||
SELECT u.username, u.user_rank, u.user_id, u.user_opt, u.user_posts, u.user_regdate, u.user_from, u.user_website, u.user_email, ug.user_pending
|
||||
SELECT u.username, u.user_rank, u.user_id, u.user_opt, u.user_posts, u.user_regdate, u.user_from, u.user_website, u.user_email, ug.user_pending, ug.user_time
|
||||
FROM ". BB_USER_GROUP ." ug, ". BB_USERS ." u
|
||||
WHERE ug.group_id = $group_id
|
||||
AND ug.user_pending = 0
|
||||
|
@ -434,7 +429,7 @@ else
|
|||
|
||||
// Members
|
||||
$group_members = DB()->fetch_rowset("
|
||||
SELECT u.username, u.user_rank, u.user_id, u.user_opt, u.user_posts, u.user_regdate, u.user_from, u.user_website, u.user_email, ug.user_pending
|
||||
SELECT u.username, u.user_rank, u.user_id, u.user_opt, u.user_posts, u.user_regdate, u.user_from, u.user_website, u.user_email, ug.user_pending, ug.user_time
|
||||
FROM ". BB_USER_GROUP ." ug, ". BB_USERS ." u
|
||||
WHERE ug.group_id = $group_id
|
||||
AND ug.user_pending = 0
|
||||
|
@ -527,7 +522,7 @@ else
|
|||
$username = $group_moderator['username'];
|
||||
$user_id = $group_moderator['user_id'];
|
||||
|
||||
generate_user_info($group_moderator, $bb_cfg['default_dateformat'], $is_moderator, $from, $posts, $joined, $pm, $email, $www);
|
||||
generate_user_info($group_moderator, $bb_cfg['default_dateformat'], $is_moderator, $from, $posts, $joined, $pm, $email, $www, $user_time);
|
||||
|
||||
$group_type = '';
|
||||
if($group_info['group_type'] == GROUP_OPEN)
|
||||
|
@ -559,6 +554,7 @@ else
|
|||
'MOD_PM' => $pm,
|
||||
'MOD_EMAIL' => $email,
|
||||
'MOD_WWW' => $www,
|
||||
'MOD_TIME' => $user_time,
|
||||
'U_SEARCH_USER' => "search.php?mode=searchuser",
|
||||
'GROUP_TYPE' => $group_type,
|
||||
'S_GROUP_OPEN_TYPE' => GROUP_OPEN,
|
||||
|
@ -578,7 +574,7 @@ else
|
|||
{
|
||||
$user_id = $member['user_id'];
|
||||
|
||||
generate_user_info($member, $bb_cfg['default_dateformat'], $is_moderator, $from, $posts, $joined, $pm, $email, $www);
|
||||
generate_user_info($member, $bb_cfg['default_dateformat'], $is_moderator, $from, $posts, $joined, $pm, $email, $www, $user_time);
|
||||
|
||||
if ($group_info['group_type'] != GROUP_HIDDEN || $is_group_member || $is_moderator)
|
||||
{
|
||||
|
@ -595,6 +591,7 @@ else
|
|||
'PM' => $pm,
|
||||
'EMAIL' => $email,
|
||||
'WWW' => $www,
|
||||
'TIME' => $user_time,
|
||||
));
|
||||
|
||||
if ($is_moderator)
|
||||
|
@ -626,7 +623,7 @@ else
|
|||
{
|
||||
$user_id = $member['user_id'];
|
||||
|
||||
generate_user_info($member, $bb_cfg['default_dateformat'], $is_moderator, $from, $posts, $joined, $pm, $email, $www);
|
||||
generate_user_info($member, $bb_cfg['default_dateformat'], $is_moderator, $from, $posts, $joined, $pm, $email, $www, $user_time);
|
||||
|
||||
$row_class = !($i % 2) ? 'row1' : 'row2';
|
||||
|
||||
|
|
|
@ -75,12 +75,13 @@ function delete_group ($group_id)
|
|||
update_user_level('all');
|
||||
}
|
||||
|
||||
function add_user_into_group ($group_id, $user_id, $user_pending = 0)
|
||||
function add_user_into_group ($group_id, $user_id, $user_pending = 0, $user_time = TIMENOW)
|
||||
{
|
||||
$args = DB()->build_array('INSERT', array(
|
||||
'group_id' => (int) $group_id,
|
||||
'user_id' => (int) $user_id,
|
||||
'user_pending' => (int) $user_pending,
|
||||
'user_time' => (int) $user_time,
|
||||
));
|
||||
DB()->query("REPLACE INTO ". BB_USER_GROUP . $args);
|
||||
|
||||
|
|
|
@ -28,6 +28,7 @@ class user_common
|
|||
'sp_op' => 0, // show spoiler opened
|
||||
'tr_t_ax' => 0, // ajax open topics
|
||||
'tr_t_t' => 0, // show time of the creation topics
|
||||
'hl_tr' => 1, // show cursor in tracker.php
|
||||
);
|
||||
|
||||
/**
|
||||
|
|
|
@ -768,6 +768,7 @@ $lang['GROUP_ADDED'] = 'You have been added to this usergroup.';
|
|||
$lang['ALREADY_MEMBER_GROUP'] = 'You are already a member of this group';
|
||||
$lang['USER_IS_MEMBER_GROUP'] = 'User is already a member of this group';
|
||||
$lang['GROUP_TYPE_UPDATED'] = 'Successfully updated group type.';
|
||||
$lang['EFFECTIVE_DATE'] = 'Effective Date';
|
||||
|
||||
$lang['COULD_NOT_ADD_USER'] = 'The user you selected does not exist.';
|
||||
$lang['COULD_NOT_ANON_USER'] = 'You cannot make Anonymous a group member.';
|
||||
|
@ -1359,6 +1360,7 @@ $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['SHOW_CURSOR'] = 'highlight the row under the cursor';
|
||||
|
||||
$lang['BT_LOW_RATIO_FUNC'] = "You can't use this option (ratio is too low)";
|
||||
$lang['BT_LOW_RATIO_FOR_DL'] = "With ratio <b>%s</b> you can't download torrents";
|
||||
|
|
|
@ -773,6 +773,7 @@ $lang['GROUP_ADDED'] = 'Вы были включены в группу';
|
|||
$lang['ALREADY_MEMBER_GROUP'] = 'Вы уже являетесь членом этой группы';
|
||||
$lang['USER_IS_MEMBER_GROUP'] = 'Пользователь уже является членом этой группы';
|
||||
$lang['GROUP_TYPE_UPDATED'] = 'Тип группы успешно изменён';
|
||||
$lang['EFFECTIVE_DATE'] = 'Дата вступления';
|
||||
|
||||
$lang['COULD_NOT_ADD_USER'] = 'Выбранного пользователя не существует';
|
||||
$lang['COULD_NOT_ANON_USER'] = 'Вы не можете сделать анонимного пользователя членом группы';
|
||||
|
@ -1367,6 +1368,7 @@ $lang['GALLERY'] = 'Галерея';
|
|||
$lang['OPEN_TOPICS'] = 'Открывать топики';
|
||||
$lang['OPEN_IN_SAME_WINDOW'] = 'открывать в этом же окне';
|
||||
$lang['SHOW_TIME_TOPICS'] = 'показывать время создания темы';
|
||||
$lang['SHOW_CURSOR'] = 'подсвечивать строки под курсором';
|
||||
|
||||
$lang['BT_LOW_RATIO_FUNC'] = 'У Вас слишком низкий рейтинг для того, чтобы воспользоваться этой функцией';
|
||||
$lang['BT_LOW_RATIO_FOR_DL'] = 'Рейтинг <b>%s</b> уже не позволяет Вам скачивать новые торренты.<br /><br />Для поднятия рейтинга Вы можете что-либо раздать из <a href="%s"><b>Ваших прошлых закачек</b></a>, либо организовать новую раздачу.<br /><br /><b>Пожалуйста, помните о том, что Ваше yчастие в системе BitTorrent не может ограничиваться только скачиванием!</b>';
|
||||
|
|
|
@ -44,7 +44,7 @@ BBCode.prototype = {
|
|||
this.quoterText = sel;
|
||||
this.insertTag('_quoter');
|
||||
} else {
|
||||
this.insertAtCursor("[b]" + name + '[/b]\n');
|
||||
this.insertAtCursor("[b]" + name + '[/b], ');
|
||||
}
|
||||
return false;
|
||||
},
|
||||
|
|
|
@ -23,53 +23,77 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td><h4>{L_BOARD_DISABLE}</h4><h6>{L_BOARD_DISABLE_EXPLAIN}</h6></td>
|
||||
<td><input type="radio" name="board_disable" value="1" {S_DISABLE_BOARD_YES} /> {L_YES} <input type="radio" name="board_disable" value="0" {S_DISABLE_BOARD_NO} /> {L_NO}</td>
|
||||
<td>
|
||||
<label><input type="radio" name="board_disable" value="1" <!-- IF DISABLE_BOARD -->checked="checked"<!-- ENDIF --> />{L_YES}</label>
|
||||
<label><input type="radio" name="board_disable" value="0" <!-- IF not DISABLE_BOARD -->checked="checked"<!-- ENDIF --> />{L_NO}</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><h4>{L_ACCT_ACTIVATION}</h4></td>
|
||||
<td>
|
||||
<div><input type="radio" name="require_activation" value="{ACTIVATION_NONE}" {ACTIVATION_NONE_CHECKED} />{L_ACC_NONE}</div>
|
||||
<div><input type="radio" name="require_activation" value="{ACTIVATION_USER}" {ACTIVATION_USER_CHECKED} />{L_ACC_USER}</div>
|
||||
<div><input type="radio" name="require_activation" value="{ACTIVATION_ADMIN}" {ACTIVATION_ADMIN_CHECKED} />{L_ACC_ADMIN}</div>
|
||||
<div><label><input type="radio" name="require_activation" value="{ACTIVATION_NONE}" {ACTIVATION_NONE_CHECKED} />{L_ACC_NONE}</label></div>
|
||||
<div><label><input type="radio" name="require_activation" value="{ACTIVATION_USER}" {ACTIVATION_USER_CHECKED} />{L_ACC_USER}</label></div>
|
||||
<div><label><input type="radio" name="require_activation" value="{ACTIVATION_ADMIN}" {ACTIVATION_ADMIN_CHECKED} />{L_ACC_ADMIN}</label></div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><h4>{L_VISUAL_CONFIRM}</h4><h6>{L_VISUAL_CONFIRM_EXPLAIN}</h6></td>
|
||||
<td><input type="radio" name="enable_confirm" value="1" {CONFIRM_ENABLE} />{L_YES} <input type="radio" name="enable_confirm" value="0" {CONFIRM_DISABLE} />{L_NO}</td>
|
||||
<td>
|
||||
<label><input type="radio" name="enable_confirm" value="1" <!-- IF VISUAL_CONFIRM -->checked="checked"<!-- ENDIF --> />{L_YES}</label>
|
||||
<label><input type="radio" name="enable_confirm" value="0" <!-- IF not VISUAL_CONFIRM -->checked="checked"<!-- ENDIF --> />{L_NO}</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><h4>{L_ALLOW_AUTOLOGIN}</h4><h6>{L_ALLOW_AUTOLOGIN_EXPLAIN}</h6></td>
|
||||
<td><input type="radio" name="allow_autologin" value="1" {ALLOW_AUTOLOGIN_YES} />{L_YES} <input type="radio" name="allow_autologin" value="0" {ALLOW_AUTOLOGIN_NO} />{L_NO}</td>
|
||||
<td>
|
||||
<label><input type="radio" name="allow_autologin" value="1" <!-- IF ALLOW_AUTOLOGIN -->checked="checked"<!-- ENDIF --> />{L_YES}</label>
|
||||
<label><input type="radio" name="allow_autologin" value="0" <!-- IF not ALLOW_AUTOLOGIN -->checked="checked"<!-- ENDIF --> />{L_NO}</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><h4>{L_AUTOLOGIN_TIME}</h4><h6>{L_AUTOLOGIN_TIME_EXPLAIN}</h6></td>
|
||||
<td><input class="post" type="text" size="3" maxlength="4" name="max_autologin_time" value="{AUTOLOGIN_TIME}" /> days</td>
|
||||
<td>
|
||||
<input class="post" type="text" size="3" maxlength="4" name="max_autologin_time" value="{AUTOLOGIN_TIME}" /> {L_DAYS}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><h4>{L_BOARD_EMAIL_FORM}</h4><h6>{L_BOARD_EMAIL_FORM_EXPLAIN}</h6></td>
|
||||
<td><input type="radio" name="board_email_form" value="1" {BOARD_EMAIL_FORM_ENABLE} /> {L_ENABLED} <input type="radio" name="board_email_form" value="0" {BOARD_EMAIL_FORM_DISABLE} /> {L_DISABLED}</td>
|
||||
<td>
|
||||
<label><input type="radio" name="board_email_form" value="1" <!-- IF BOARD_EMAIL_FORM -->checked="checked"<!-- ENDIF --> /> {L_ENABLED}</label>
|
||||
<label><input type="radio" name="board_email_form" value="0" <!-- IF not BOARD_EMAIL_FORM -->checked="checked"<!-- ENDIF --> /> {L_DISABLED}</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><h4>{L_FLOOD_INTERVAL}</h4><h6>{L_FLOOD_INTERVAL_EXPLAIN}</h6></td>
|
||||
<td><input class="post" type="text" size="3" maxlength="4" name="flood_interval" value="{FLOOD_INTERVAL}" /> sec</td>
|
||||
<td>
|
||||
<input class="post" type="text" size="3" maxlength="4" name="flood_interval" value="{FLOOD_INTERVAL}" /> {L_SEC}
|
||||
</td>
|
||||
</tr>
|
||||
<!--
|
||||
<tr>
|
||||
<td><h4>{L_MAX_LOGIN_ATTEMPTS}</h4><h6>{L_MAX_LOGIN_ATTEMPTS_EXPLAIN}</h6></td>
|
||||
<td><input class="post" type="text" size="3" maxlength="4" name="max_login_attempts" value="{MAX_LOGIN_ATTEMPTS}" /></td>
|
||||
<td>
|
||||
<input class="post" type="text" size="3" maxlength="4" name="max_login_attempts" value="{MAX_LOGIN_ATTEMPTS}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><h4>{L_LOGIN_RESET_TIME}</h4><h6>{L_LOGIN_RESET_TIME_EXPLAIN}</h6></td>
|
||||
<td><input class="post" type="text" size="3" maxlength="4" name="login_reset_time" value="{LOGIN_RESET_TIME}" /></td>
|
||||
<td>
|
||||
<input class="post" type="text" size="3" maxlength="4" name="login_reset_time" value="{LOGIN_RESET_TIME}" />
|
||||
</td>
|
||||
</tr>
|
||||
-->
|
||||
<tr>
|
||||
<td><h4>{L_TOPICS_PER_PAGE}</h4></td>
|
||||
<td><input class="post" type="text" name="topics_per_page" size="5" maxlength="4" value="{TOPICS_PER_PAGE}" /></td>
|
||||
<td>
|
||||
<input class="post" type="text" name="topics_per_page" size="5" maxlength="4" value="{TOPICS_PER_PAGE}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><h4>{L_POSTS_PER_PAGE}</h4></td>
|
||||
<td><input class="post" type="text" name="posts_per_page" size="5" maxlength="4" value="{POSTS_PER_PAGE}" /></td>
|
||||
<td>
|
||||
<input class="post" type="text" name="posts_per_page" size="5" maxlength="4" value="{POSTS_PER_PAGE}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><h4>{L_HOT_THRESHOLD}</h4></td>
|
||||
|
@ -89,14 +113,20 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td><h4>{L_ENABLE_PRUNE}</h4></td>
|
||||
<td><input type="radio" name="prune_enable" value="1" {PRUNE_YES} /> {L_YES} <input type="radio" name="prune_enable" value="0" {PRUNE_NO} /> {L_NO}</td>
|
||||
<td>
|
||||
<label><input type="radio" name="prune_enable" value="1" <!-- IF PRUNE_ENABLE -->checked="checked"<!-- ENDIF --> />{L_YES}</label>
|
||||
<label><input type="radio" name="prune_enable" value="0" <!-- IF not PRUNE_ENABLE -->checked="checked"<!-- ENDIF --> />{L_NO}</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="2">{L_PRIVATE_MESSAGING}</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><h4>{L_DISABLE_PRIVMSG}</h4></td>
|
||||
<td><input type="radio" name="privmsg_disable" value="0" {S_PRIVMSG_ENABLED} />{L_ENABLED} <input type="radio" name="privmsg_disable" value="1" {S_PRIVMSG_DISABLED} />{L_DISABLED}</td>
|
||||
<td>
|
||||
<label><input type="radio" name="privmsg_disable" value="0" <!-- IF PRIVMSG_DISABLE -->checked="checked"<!-- ENDIF --> />{L_ENABLED}</label>
|
||||
<label><input type="radio" name="privmsg_disable" value="1" <!-- IF not PRIVMSG_DISABLE -->checked="checked"<!-- ENDIF --> />{L_DISABLED}</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><h4>{L_INBOX_LIMITS}</h4></td>
|
||||
|
@ -119,11 +149,17 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td><h4>{L_ALLOW_BBCODE}</h4></td>
|
||||
<td><input type="radio" name="allow_bbcode" value="1" {BBCODE_YES} /> {L_YES} <input type="radio" name="allow_bbcode" value="0" {BBCODE_NO} /> {L_NO}</td>
|
||||
<td>
|
||||
<label><input type="radio" name="allow_bbcode" value="1" <!-- IF ALLOW_BBCODE -->checked="checked"<!-- ENDIF --> />{L_YES}</label>
|
||||
<label><input type="radio" name="allow_bbcode" value="0" <!-- IF not ALLOW_BBCODE -->checked="checked"<!-- ENDIF --> />{L_NO}</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><h4>{L_ALLOW_SMILIES}</h4></td>
|
||||
<td><input type="radio" name="allow_smilies" value="1" {SMILE_YES} /> {L_YES} <input type="radio" name="allow_smilies" value="0" {SMILE_NO} /> {L_NO}</td>
|
||||
<td>
|
||||
<label><input type="radio" name="allow_smilies" value="1" <!-- IF ALLOW_SMILIES -->checked="checked"<!-- ENDIF --> />{L_YES}</label>
|
||||
<label><input type="radio" name="allow_smilies" value="0" <!-- IF not ALLOW_SMILIES -->checked="checked"<!-- ENDIF --> />{L_NO}</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><h4>{L_SMILIES_PATH}</h4><h6>{L_SMILIES_PATH_EXPLAIN}</h6></td>
|
||||
|
@ -131,7 +167,10 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td><h4>{L_ALLOW_SIG}</h4></td>
|
||||
<td><input type="radio" name="allow_sig" value="1" {SIG_YES} /> {L_YES} <input type="radio" name="allow_sig" value="0" {SIG_NO} /> {L_NO}</td>
|
||||
<td>
|
||||
<label><input type="radio" name="allow_sig" value="1" <!-- IF ALLOW_SMILIES -->checked="checked"<!-- ENDIF --> />{L_YES}</label>
|
||||
<label><input type="radio" name="allow_sig" value="0" <!-- IF not ALLOW_SMILIES -->checked="checked"<!-- ENDIF --> />{L_NO}</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><h4>{L_MAX_SIG_LENGTH}</h4><h6>{L_MAX_SIG_LENGTH_EXPLAIN}</h6></td>
|
||||
|
@ -139,26 +178,38 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td><h4>{L_ALLOW_NAME_CHANGE}</h4></td>
|
||||
<td><input type="radio" name="allow_namechange" value="1" {NAMECHANGE_YES} /> {L_YES} <input type="radio" name="allow_namechange" value="0" {NAMECHANGE_NO} /> {L_NO}</td>
|
||||
<td>
|
||||
<label><input type="radio" name="allow_namechange" value="1" <!-- IF ALLOW_NAMECHANGE -->checked="checked"<!-- ENDIF --> />{L_YES}</label>
|
||||
<label><input type="radio" name="allow_namechange" value="0" <!-- IF not ALLOW_NAMECHANGE -->checked="checked"<!-- ENDIF --> />{L_NO}</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="2">{L_AVATAR_SETTINGS}</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><h4>{L_ALLOW_LOCAL}</h4></td>
|
||||
<td><input type="radio" name="allow_avatar_local" value="1" {AVATARS_LOCAL_YES} /> {L_YES} <input type="radio" name="allow_avatar_local" value="0" {AVATARS_LOCAL_NO} /> {L_NO}</td>
|
||||
<td>
|
||||
<label><input type="radio" name="allow_avatar_local" value="1" <!-- IF ALLOW_AVATARS_LOCAL -->checked="checked"<!-- ENDIF --> />{L_YES}</label>
|
||||
<label><input type="radio" name="allow_avatar_local" value="0" <!-- IF not ALLOW_AVATARS_LOCAL -->checked="checked"<!-- ENDIF --> />{L_NO}</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><h4>{L_ALLOW_REMOTE}</h4><h6>{L_ALLOW_REMOTE_EXPLAIN}</h6></td>
|
||||
<td><input type="radio" name="allow_avatar_remote" value="1" {AVATARS_REMOTE_YES} /> {L_YES} <input type="radio" name="allow_avatar_remote" value="0" {AVATARS_REMOTE_NO} /> {L_NO}</td>
|
||||
<td>
|
||||
<label><input type="radio" name="allow_avatar_remote" value="1" <!-- IF ALLOW_AVATAR_REMOTE -->checked="checked"<!-- ENDIF --> />{L_YES}</label>
|
||||
<label><input type="radio" name="allow_avatar_remote" value="0" <!-- IF not ALLOW_AVATAR_REMOTE -->checked="checked"<!-- ENDIF --> />{L_NO}</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><h4>{L_ALLOW_UPLOAD}</h4></td>
|
||||
<td><input type="radio" name="allow_avatar_upload" value="1" {AVATARS_UPLOAD_YES} /> {L_YES} <input type="radio" name="allow_avatar_upload" value="0" {AVATARS_UPLOAD_NO} /> {L_NO}</td>
|
||||
<td>
|
||||
<label><input type="radio" name="allow_avatar_upload" value="1" <!-- IF ALLOW_AVATAR_UPLOAD -->checked="checked"<!-- ENDIF --> />{L_YES}</label>
|
||||
<label><input type="radio" name="allow_avatar_upload" value="0" <!-- IF not ALLOW_AVATAR_UPLOAD -->checked="checked"<!-- ENDIF --> />{L_NO}</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><h4>{L_MAX_FILESIZE}</h4><h6>{L_MAX_FILESIZE_EXPLAIN}</h6></td>
|
||||
<td><input class="post" type="text" size="4" maxlength="10" name="avatar_filesize" value="{AVATAR_FILESIZE}" /> Bytes</td>
|
||||
<td><input class="post" type="text" size="10" maxlength="10" name="avatar_filesize" value="{AVATAR_FILESIZE}" /> {L_BYTES}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><h4>{L_MAX_AVATAR_SIZE}</h4><h6>{L_MAX_AVATAR_SIZE_EXPLAIN}</h6></td>
|
||||
|
@ -185,7 +236,10 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td><h4>{L_USE_SMTP}</h4><h6>{L_USE_SMTP_EXPLAIN}</h6></td>
|
||||
<td><input type="radio" name="smtp_delivery" value="1" {SMTP_YES} /> {L_YES} <input type="radio" name="smtp_delivery" value="0" {SMTP_NO} /> {L_NO}</td>
|
||||
<td>
|
||||
<label><input type="radio" name="smtp_delivery" value="1" <!-- IF SMTP_DELIVERY -->checked="checked"<!-- ENDIF --> />{L_YES}</label>
|
||||
<label><input type="radio" name="smtp_delivery" value="0" <!-- IF not SMTP_DELIVERY -->checked="checked"<!-- ENDIF --> />{L_NO}</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><h4>{L_SMTP_SERVER}</h4></td>
|
||||
|
@ -201,7 +255,8 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td class="catBottom" colspan="2">
|
||||
<input type="submit" name="submit" value="{L_SUBMIT}" class="mainoption" /> <input type="reset" value="{L_RESET}" class="liteoption" />
|
||||
<input type="submit" name="submit" value="{L_SUBMIT}" class="mainoption" />
|
||||
<input type="reset" value="{L_RESET}" class="liteoption" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
|
@ -107,13 +107,14 @@
|
|||
<th class="{sorter: false}" ><b class="tbs-text">{L_PM}</b></th>
|
||||
<th class="{sorter: 'text'}" ><b class="tbs-text">{L_EMAIL}</b></th>
|
||||
<th class="{sorter: false}" ><b class="tbs-text">{L_LOCATION}</b></th>
|
||||
<th class="{sorter: 'digit'}" ><b class="tbs-text">{L_JOINED}</b></th>
|
||||
<th width="10%" class="{sorter: 'digit'}" ><b class="tbs-text">{L_JOINED}</b></th>
|
||||
<th class="{sorter: 'digit'}" ><b class="tbs-text">{L_POSTS_SHORT}</b></th>
|
||||
<th class="{sorter: false}" ><b class="tbs-text">{L_WEBSITE}</b></th>
|
||||
<th width="10%" class="{sorter: false}" ><b class="tbs-text">{L_EFFECTIVE_DATE}</b></th>
|
||||
<th class="{sorter: false}" ><b class="tbs-text">#</b></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="9" class="catTitle">{L_GROUP_MODERATOR}</td>
|
||||
<td colspan="10" class="catTitle">{L_GROUP_MODERATOR}</td>
|
||||
</tr>
|
||||
<tr class="row1 tCenter">
|
||||
<td width="3%">{ROW_NUMBER}</td>
|
||||
|
@ -124,10 +125,11 @@
|
|||
<td class="small">{MOD_JOINED}</td>
|
||||
<td>{MOD_POSTS}</td>
|
||||
<td>{MOD_WWW}</td>
|
||||
<td class="small">{MOD_TIME}</td>
|
||||
<td width="3%"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="9" class="catTitle">{L_GROUP_MEMBERS}</td>
|
||||
<td colspan="10" class="catTitle">{L_GROUP_MEMBERS}</td>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
|
@ -141,6 +143,7 @@
|
|||
<td class="small">{member.JOINED}</td>
|
||||
<td>{member.POSTS}</td>
|
||||
<td>{member.WWW}</td>
|
||||
<td class="small">{member.TIME}</td>
|
||||
<td width="3%">
|
||||
<!-- BEGIN switch_mod_option -->
|
||||
<input type="checkbox" name="members[]" value="{member.USER_ID}" />
|
||||
|
@ -151,20 +154,20 @@
|
|||
|
||||
<!-- BEGIN switch_no_members -->
|
||||
<tr>
|
||||
<td colspan="9" class="row1 tCenter">{L_NO_GROUP_MEMBERS}</td>
|
||||
<td colspan="10" class="row1 tCenter">{L_NO_GROUP_MEMBERS}</td>
|
||||
</tr>
|
||||
<!-- END switch_no_members -->
|
||||
|
||||
<!-- BEGIN switch_hidden_group -->
|
||||
<tr>
|
||||
<td colspan="9" class="row1 tCenter">{L_HIDDEN_GROUP_MEMBERS}</td>
|
||||
<td colspan="10" class="row1 tCenter">{L_HIDDEN_GROUP_MEMBERS}</td>
|
||||
</tr>
|
||||
<!-- END switch_hidden_group -->
|
||||
|
||||
<!-- BEGIN switch_mod_option -->
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="9" class="cat" style="padding: 2px 12px;">
|
||||
<td colspan="10" class="cat" style="padding: 2px 12px;">
|
||||
<p id="add_group_member" class="floatL">
|
||||
<input type="text" name="username" maxlength="50" size="20" />
|
||||
<input type="submit" name="add" value="{L_ADD_MEMBER}" class="mainoption" />
|
||||
|
@ -202,7 +205,6 @@
|
|||
<th class="{sorter: 'digit'}" ><b class="tbs-text">{L_JOINED}</b></th>
|
||||
<th class="{sorter: 'digit'}" ><b class="tbs-text">{L_POSTS_SHORT}</b></th>
|
||||
<th class="{sorter: false}" ><b class="tbs-text">{L_WEBSITE}</b></th>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="catTitle" colspan="8">{L_PENDING_MEMBERS}</td>
|
||||
|
@ -218,7 +220,6 @@
|
|||
<td class="small">{pending.JOINED}</td>
|
||||
<td>{pending.POSTS}</td>
|
||||
<td>{pending.WWW}</td>
|
||||
|
||||
</tr>
|
||||
<!-- END pending -->
|
||||
<tfoot>
|
||||
|
|
|
@ -149,6 +149,7 @@ ajax.callback.view_post = function(data) {
|
|||
<p class="chbox">{ONLY_ACTIVE_CHBOX}</p>
|
||||
<p class="chbox">{SEED_EXIST_CHBOX}</p>
|
||||
<p class="chbox">{ONLY_NEW_CHBOX}[{MINIPOST_IMG_NEW}] </p>
|
||||
<!-- IF $bb_cfg['gold_silver_enabled'] --><p class="chbox">{TOR_TYPE_CHBOX}</p><!-- ENDIF -->
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
|
@ -255,6 +256,11 @@ ajax.callback.view_post = function(data) {
|
|||
onclick="user.set('tr_t_t', this.checked ? 1 : 0);"
|
||||
/>{L_SHOW_TIME_TOPICS}
|
||||
</label>
|
||||
<label>
|
||||
<input type="checkbox" <!-- IF SHOW_CURSOR -->{CHECKED}<!-- ENDIF -->
|
||||
onclick="user.set('hl_tr', this.checked ? 1 : 0);"
|
||||
/>{L_SHOW_CURSOR}
|
||||
</label>
|
||||
</div>
|
||||
</fieldset>
|
||||
</td>
|
||||
|
@ -272,6 +278,7 @@ ajax.callback.view_post = function(data) {
|
|||
.tr_tm { margin-top: 2px; font-size: 10px; color: #676767; }
|
||||
.ch { font-style: italic; color: #0080FF; }
|
||||
#fs-sel-cat option.cat-title { font-weight: bold; color: #005A88; background: #F5F5F5; }
|
||||
tr.hl-tr:hover td { background-color: #F8F8F8 !important; }
|
||||
</style>
|
||||
|
||||
<table class="forumline tablesorter" id="tor-tbl">
|
||||
|
@ -300,7 +307,7 @@ ajax.callback.view_post = function(data) {
|
|||
</tr>
|
||||
</thead>
|
||||
<!-- BEGIN tor -->
|
||||
<tr class="tCenter" id="tor_{tor.POST_ID}">
|
||||
<tr class="tCenter <!-- IF SHOW_CURSOR -->hl-tr<!-- ENDIF -->" id="tor_{tor.POST_ID}">
|
||||
<td class="row1"><!-- IF tor.USER_AUTHOR --><p style="padding-bottom: 3px"> <b>®</b> </p><!-- ELSEIF tor.IS_NEW -->{MINIPOST_IMG_NEW}<!-- ELSE -->{MINIPOST_IMG}<!-- ENDIF --></td>
|
||||
<td class="row1 tCenter" title="{tor.TOR_STATUS_TEXT}">{tor.TOR_STATUS_ICON}</td>
|
||||
<!-- IF SHOW_CAT -->
|
||||
|
|
|
@ -23,8 +23,8 @@ ajax.callback.user_register = function(data){
|
|||
<tr>
|
||||
<th colspan="2">{L_REGISTRATION_INFO}</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="row2 small" colspan="2">{L_ITEMS_REQUIRED}</td>
|
||||
<tr class="row3 med">
|
||||
<td class="bold" colspan="2">{L_ITEMS_REQUIRED}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{L_USERNAME}: *</td>
|
||||
|
|
|
@ -44,7 +44,6 @@ function show_forum_mod_options ()
|
|||
$('input.topic-chbox').click(function(){
|
||||
$('#tt-'+this.value).toggleClass('hl-tt');
|
||||
});
|
||||
$('#pagination a').each(function(){ this.href += '&mod=1'; });
|
||||
$('#mod-action-cell').append( $('#mod-action-content')[0] );
|
||||
$('#show_mod_options').html($('#show_mod_options').text());
|
||||
$('#mod-action-row, #mod-action-content, #mod-sel-topics').show();
|
||||
|
|
|
@ -240,6 +240,7 @@ $GPC = array(
|
|||
'show_speed' => array('ds', 0, CHBOX),
|
||||
's_not_seen' => array('sns', $search_all, SELECT),
|
||||
'time' => array('tm', $search_all, SELECT),
|
||||
'tor_type' => array('tor_type', 0, CHBOX),
|
||||
);
|
||||
|
||||
// Define all GPC vars with default values
|
||||
|
@ -447,6 +448,7 @@ $prev_days = ($time_val != $search_all);
|
|||
$poster_id = (bool) $poster_id_val;
|
||||
$title_match = (bool) $title_match_sql;
|
||||
$s_not_seen = ($s_not_seen_val != $search_all);
|
||||
$tor_type = (bool) $tor_type_val;
|
||||
|
||||
$hide_cat = intval(!$show_cat_val);
|
||||
$hide_forum = intval(!$show_forum_val);
|
||||
|
@ -598,6 +600,10 @@ if ($allowed_forums)
|
|||
{
|
||||
$SQL['WHERE'][] = "sn.seeders >= 1";
|
||||
}
|
||||
if ($tor_type)
|
||||
{
|
||||
$SQL['WHERE'][] = "tor.tor_type IN(1,2)";
|
||||
}
|
||||
|
||||
// ORDER
|
||||
$SQL['ORDER BY'][] = "{$order_opt[$order_val]['sql']} {$sort_opt[$sort_val]['sql']}";
|
||||
|
@ -751,7 +757,7 @@ if ($allowed_forums)
|
|||
'TOPIC_TIME' => bb_date($tor['topic_time'], 'd-M-y') .' <b>·</b> '. delta_time($tor['topic_time']),
|
||||
'POST_ID' => $tor['post_id'],
|
||||
'POSTER_ID' => $poster_id,
|
||||
'USERNAME' => profile_url(array('username' => $tor['username'], 'user_rank' => $tor['user_rank'])),
|
||||
'USERNAME' => ($hide_author) ? '' : profile_url(array('username' => $tor['username'], 'user_rank' => $tor['user_rank'])),
|
||||
|
||||
'ROW_CLASS' => $row_class,
|
||||
'ROW_NUM' => $row_num,
|
||||
|
@ -848,12 +854,15 @@ $template->assign_vars(array(
|
|||
));
|
||||
|
||||
// Displaying options
|
||||
$tor_type_lang = $lang['GOLD'] . ' / ' . $lang['SILVER'];
|
||||
|
||||
$template->assign_vars(array(
|
||||
'SHOW_CAT_CHBOX' => build_checkbox ($show_cat_key, $lang['BT_SHOW_CAT'], $show_cat_val),
|
||||
'SHOW_FORUM_CHBOX' => build_checkbox ($show_forum_key, $lang['BT_SHOW_FORUM'], $show_forum_val),
|
||||
'SHOW_AUTHOR_CHBOX' => build_checkbox ($show_author_key, $lang['BT_SHOW_AUTHOR'], $show_author_val),
|
||||
'SHOW_SPEED_CHBOX' => build_checkbox ($show_speed_key, $lang['BT_SHOW_SPEED'], $show_speed_val),
|
||||
'ALL_WORDS_CHBOX' => build_checkbox ($all_words_key, $lang['SEARCH_ALL_WORDS'], $all_words_val),
|
||||
'TOR_TYPE_CHBOX' => build_checkbox ($tor_type_key, $tor_type_lang, $tor_type_val),
|
||||
|
||||
'ONLY_MY_CHBOX' => build_checkbox ($my_key, $lang['BT_ONLY_MY'], $only_my, IS_GUEST),
|
||||
'ONLY_ACTIVE_CHBOX' => build_checkbox ($active_key, $lang['BT_ONLY_ACTIVE'], $active_val),
|
||||
|
@ -872,6 +881,8 @@ $template->assign_vars(array(
|
|||
|
||||
'AJAX_TOPICS' => $user->opt_js['tr_t_ax'],
|
||||
'SHOW_TIME_TOPICS' => $user->opt_js['tr_t_t'],
|
||||
'SHOW_CURSOR' => $user->opt_js['hl_tr'],
|
||||
|
||||
'U_SEARCH_USER' => "search.php?mode=searchuser&input_name=$poster_name_key",
|
||||
));
|
||||
|
||||
|
@ -890,6 +901,7 @@ $save_through_pages = array(
|
|||
'show_cat',
|
||||
'show_forum',
|
||||
'show_speed',
|
||||
'tor_type',
|
||||
);
|
||||
$hidden_fields = array();
|
||||
foreach ($save_through_pages as $name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue