Zeile 929 | Zeile 929 |
---|
$page->extra_header .= <<<EOF
|
$page->extra_header .= <<<EOF
|
<link rel="stylesheet" href="../jscripts/sceditor/editor_themes/mybb.css" type="text/css" media="all" />
| <link rel="stylesheet" href="../jscripts/sceditor/themes/mybb.css" type="text/css" media="all" />
|
<script type="text/javascript" src="../jscripts/sceditor/jquery.sceditor.bbcode.min.js?ver=1805"></script>
|
<script type="text/javascript" src="../jscripts/sceditor/jquery.sceditor.bbcode.min.js?ver=1805"></script>
|
<script type="text/javascript" src="../jscripts/bbcodes_sceditor.js?ver=1819"></script> <script type="text/javascript" src="../jscripts/sceditor/editor_plugins/undo.js?ver=1805"></script>
| <script type="text/javascript" src="../jscripts/bbcodes_sceditor.js?ver=1821"></script> <script type="text/javascript" src="../jscripts/sceditor/plugins/undo.js?ver=1805"></script>
|
EOF; $page->output_header($lang->edit_user);
| EOF; $page->output_header($lang->edit_user);
|
Zeile 978 | Zeile 978 |
---|
// Avatar $avatar_dimensions = preg_split('/[|x]/', $user['avatardimensions']);
|
// Avatar $avatar_dimensions = preg_split('/[|x]/', $user['avatardimensions']);
|
| if($user['avatardimensions']) { require_once MYBB_ROOT."inc/functions_image.php"; list($width, $height) = preg_split('/[|x]/', $user['avatardimensions']); $scaled_dimensions = scale_image($width, $height, 120, 120); } else { $scaled_dimensions = array( "width" => 120, "height" => 120 ); }
|
if($user['avatar'] && (my_strpos($user['avatar'], '://') === false || $mybb->settings['allowremoteavatars'])) {
|
if($user['avatar'] && (my_strpos($user['avatar'], '://') === false || $mybb->settings['allowremoteavatars'])) {
|
if($user['avatardimensions']) { require_once MYBB_ROOT."inc/functions_image.php"; list($width, $height) = preg_split('/[|x]/', $user['avatardimensions']); $scaled_dimensions = scale_image($width, $height, 120, 120); } else { $scaled_dimensions = array( "width" => 120, "height" => 120 ); }
| |
if(!my_validate_url($user['avatar'])) {
|
if(!my_validate_url($user['avatar'])) {
|
$user['avatar'] = "../{$user['avatar']}\n";
| $avatar = format_avatar($user['avatar'], $user['avatardimensions']); $user['avatar'] = $avatar['image'];
|
} } else
| } } else
|
Zeile 1008 | Zeile 1009 |
---|
{ $user['avatar'] = "../".str_replace('{theme}', 'images', $mybb->settings['useravatar']); }
|
{ $user['avatar'] = "../".str_replace('{theme}', 'images', $mybb->settings['useravatar']); }
|
$scaled_dimensions = array( "width" => 120, "height" => 120 );
| |
} $avatar_top = ceil((126-$scaled_dimensions['height'])/2); if($user['lastactive'])
|
} $avatar_top = ceil((126-$scaled_dimensions['height'])/2); if($user['lastactive'])
|
{
| {
|
$last_active = my_date('relative', $user['lastactive']);
|
$last_active = my_date('relative', $user['lastactive']);
|
}
| }
|
else { $last_active = $lang->never;
|
else { $last_active = $lang->never;
|
}
| }
|
$reg_date = my_date('relative', $user['regdate']); if($user['dst'] == 1) {
| $reg_date = my_date('relative', $user['regdate']); if($user['dst'] == 1) {
|
Zeile 1033 | Zeile 1030 |
---|
} $local_date = gmdate($mybb->settings['dateformat'], TIME_NOW + ($timezone * 3600)); $local_time = gmdate($mybb->settings['timeformat'], TIME_NOW + ($timezone * 3600));
|
} $local_date = gmdate($mybb->settings['dateformat'], TIME_NOW + ($timezone * 3600)); $local_time = gmdate($mybb->settings['timeformat'], TIME_NOW + ($timezone * 3600));
|
|
|
$localtime = $lang->sprintf($lang->local_time_format, $local_date, $local_time); $days_registered = (TIME_NOW - $user['regdate']) / (24*3600); $posts_per_day = 0;
| $localtime = $lang->sprintf($lang->local_time_format, $local_date, $local_time); $days_registered = (TIME_NOW - $user['regdate']) / (24*3600); $posts_per_day = 0;
|
Zeile 1056 | Zeile 1053 |
---|
else { $percent_posts = round($user['postnum']*100/$posts, 2);
|
else { $percent_posts = round($user['postnum']*100/$posts, 2);
|
}
| }
|
$user_permissions = user_permissions($user['uid']);
// Fetch the reputation for this user
| $user_permissions = user_permissions($user['uid']);
// Fetch the reputation for this user
|
Zeile 1069 | Zeile 1066 |
---|
{ $reputation = "-"; }
|
{ $reputation = "-"; }
|
|
|
if($mybb->settings['enablewarningsystem'] != 0 && $user_permissions['canreceivewarnings'] != 0) { if($mybb->settings['maxwarningpoints'] < 1)
| if($mybb->settings['enablewarningsystem'] != 0 && $user_permissions['canreceivewarnings'] != 0) { if($mybb->settings['maxwarningpoints'] < 1)
|
Zeile 1081 | Zeile 1078 |
---|
if($warning_level > 100) { $warning_level = 100;
|
if($warning_level > 100) { $warning_level = 100;
|
}
| }
|
$warning_level = get_colored_warning_level($warning_level); }
| $warning_level = get_colored_warning_level($warning_level); }
|
Zeile 1223 | Zeile 1220 |
---|
}
$plugins->run_hooks("admin_user_users_edit_profile");
|
}
$plugins->run_hooks("admin_user_users_edit_profile");
|
echo "</div>\n";
//
| echo "</div>\n";
//
|
// ACCOUNT SETTINGS //
|
// ACCOUNT SETTINGS //
|
// Plugin hook note - we should add hooks in above each output_row for the below so users can add their own options to each group :>
| |
echo "<div id=\"tab_settings\">\n"; $form_container = new FormContainer($lang->account_settings.': '.htmlspecialchars_uni($user['username']));
| echo "<div id=\"tab_settings\">\n"; $form_container = new FormContainer($lang->account_settings.': '.htmlspecialchars_uni($user['username']));
|
Zeile 1237 | Zeile 1232 |
---|
$form->generate_check_box("invisible", 1, $lang->hide_from_whos_online, array("checked" => $mybb->input['invisible'])), ); $form_container->output_row($lang->login_cookies_privacy, "", "<div class=\"user_settings_bit\">".implode("</div><div class=\"user_settings_bit\">", $login_options)."</div>");
|
$form->generate_check_box("invisible", 1, $lang->hide_from_whos_online, array("checked" => $mybb->input['invisible'])), ); $form_container->output_row($lang->login_cookies_privacy, "", "<div class=\"user_settings_bit\">".implode("</div><div class=\"user_settings_bit\">", $login_options)."</div>");
|
|
|
if($mybb->input['pmnotice'] > 1) { $mybb->input['pmnotice'] = 1;
| if($mybb->input['pmnotice'] > 1) { $mybb->input['pmnotice'] = 1;
|
Zeile 1254 | Zeile 1249 |
---|
$form->generate_check_box("buddyrequestsauto", 1, $lang->buddy_requests_auto, array("checked" => $mybb->input['buddyrequestsauto'])), "<label for=\"subscriptionmethod\">{$lang->default_thread_subscription_mode}:</label><br />".$form->generate_select_box("subscriptionmethod", array($lang->do_not_subscribe, $lang->no_notification, $lang->instant_email_notification, $lang->instant_pm_notification), $mybb->input['subscriptionmethod'], array('id' => 'subscriptionmethod')) );
|
$form->generate_check_box("buddyrequestsauto", 1, $lang->buddy_requests_auto, array("checked" => $mybb->input['buddyrequestsauto'])), "<label for=\"subscriptionmethod\">{$lang->default_thread_subscription_mode}:</label><br />".$form->generate_select_box("subscriptionmethod", array($lang->do_not_subscribe, $lang->no_notification, $lang->instant_email_notification, $lang->instant_pm_notification), $mybb->input['subscriptionmethod'], array('id' => 'subscriptionmethod')) );
|
$form_container->output_row($lang->messaging_and_notification, "", "<div class=\"user_settings_bit\">".implode("</div><div class=\"user_settings_bit\">", $messaging_options)."</div>");
| // Allow plugins to add messaging options $messaging_options = $plugins->run_hooks('admin_user_users_edit_messaging_options', $messaging_options);
// Output messaging options $form_container->output_row($lang->messaging_and_notification, "", "<div class=\"user_settings_bit\">".implode("</div><div class=\"user_settings_bit\">", $messaging_options)."</div>");
|
$date_format_options = array($lang->use_default); foreach($date_formats as $key => $format) { $date_format_options[$key] = my_date($format, TIME_NOW, "", 0);
|
$date_format_options = array($lang->use_default); foreach($date_formats as $key => $format) { $date_format_options[$key] = my_date($format, TIME_NOW, "", 0);
|
}
| }
|
$time_format_options = array($lang->use_default); foreach($time_formats as $key => $format) {
| $time_format_options = array($lang->use_default); foreach($time_formats as $key => $format) {
|
Zeile 1273 | Zeile 1273 |
---|
"<label for=\"dateformat\">{$lang->time_format}:</label><br />".$form->generate_select_box("timeformat", $time_format_options, $mybb->input['timeformat'], array('id' => 'timeformat')), "<label for=\"timezone\">{$lang->time_zone}:</label><br />".build_timezone_select("timezone", $mybb->input['timezone']), "<label for=\"dstcorrection\">{$lang->daylight_savings_time_correction}:</label><br />".$form->generate_select_box("dstcorrection", array(2 => $lang->automatically_detect, 1 => $lang->always_use_dst_correction, 0 => $lang->never_use_dst_correction), $mybb->input['dstcorrection'], array('id' => 'dstcorrection'))
|
"<label for=\"dateformat\">{$lang->time_format}:</label><br />".$form->generate_select_box("timeformat", $time_format_options, $mybb->input['timeformat'], array('id' => 'timeformat')), "<label for=\"timezone\">{$lang->time_zone}:</label><br />".build_timezone_select("timezone", $mybb->input['timezone']), "<label for=\"dstcorrection\">{$lang->daylight_savings_time_correction}:</label><br />".$form->generate_select_box("dstcorrection", array(2 => $lang->automatically_detect, 1 => $lang->always_use_dst_correction, 0 => $lang->never_use_dst_correction), $mybb->input['dstcorrection'], array('id' => 'dstcorrection'))
|
);
| );
// Allow plugins to add date options $date_options = $plugins->run_hooks('admin_user_users_edit_date_options', $date_options);
// Output date options
|
$form_container->output_row($lang->date_and_time_options, "", "<div class=\"user_settings_bit\">".implode("</div><div class=\"user_settings_bit\">", $date_options)."</div>");
| $form_container->output_row($lang->date_and_time_options, "", "<div class=\"user_settings_bit\">".implode("</div><div class=\"user_settings_bit\">", $date_options)."</div>");
|
Zeile 1290 | Zeile 1295 |
---|
} } }
|
} } }
|
|
|
$thread_age_options = array( 0 => $lang->use_default, 1 => $lang->show_threads_last_day,
| $thread_age_options = array( 0 => $lang->use_default, 1 => $lang->show_threads_last_day,
|
Zeile 1302 | Zeile 1307 |
---|
100 => $lang->show_threads_last_100_days, 365 => $lang->show_threads_last_year, 9999 => $lang->show_all_threads
|
100 => $lang->show_threads_last_100_days, 365 => $lang->show_threads_last_year, 9999 => $lang->show_all_threads
|
);
| );
|
$forum_options = array( "<label for=\"tpp\">{$lang->threads_per_page}:</label><br />".$form->generate_select_box("tpp", $tpp_options, $mybb->input['tpp'], array('id' => 'tpp')), "<label for=\"daysprune\">{$lang->default_thread_age_view}:</label><br />".$form->generate_select_box("daysprune", $thread_age_options, $mybb->input['daysprune'], array('id' => 'daysprune')) );
|
$forum_options = array( "<label for=\"tpp\">{$lang->threads_per_page}:</label><br />".$form->generate_select_box("tpp", $tpp_options, $mybb->input['tpp'], array('id' => 'tpp')), "<label for=\"daysprune\">{$lang->default_thread_age_view}:</label><br />".$form->generate_select_box("daysprune", $thread_age_options, $mybb->input['daysprune'], array('id' => 'daysprune')) );
|
| // Allow plugins to add forum options $forum_options = $plugins->run_hooks('admin_user_users_edit_forum_options', $forum_options);
// Output forum options
|
$form_container->output_row($lang->forum_display_options, "", "<div class=\"user_settings_bit\">".implode("</div><div class=\"user_settings_bit\">", $forum_options)."</div>");
$ppp_options = array($lang->use_default);
| $form_container->output_row($lang->forum_display_options, "", "<div class=\"user_settings_bit\">".implode("</div><div class=\"user_settings_bit\">", $forum_options)."</div>");
$ppp_options = array($lang->use_default);
|
Zeile 1334 | Zeile 1344 |
---|
"<label for=\"ppp\">{$lang->posts_per_page}:</label><br />".$form->generate_select_box("ppp", $ppp_options, $mybb->input['ppp'], array('id' => 'ppp')), "<label for=\"threadmode\">{$lang->default_thread_view_mode}:</label><br />".$form->generate_select_box("threadmode", array("" => $lang->use_default, "linear" => $lang->linear_mode, "threaded" => $lang->threaded_mode), $mybb->input['threadmode'], array('id' => 'threadmode')) );
|
"<label for=\"ppp\">{$lang->posts_per_page}:</label><br />".$form->generate_select_box("ppp", $ppp_options, $mybb->input['ppp'], array('id' => 'ppp')), "<label for=\"threadmode\">{$lang->default_thread_view_mode}:</label><br />".$form->generate_select_box("threadmode", array("" => $lang->use_default, "linear" => $lang->linear_mode, "threaded" => $lang->threaded_mode), $mybb->input['threadmode'], array('id' => 'threadmode')) );
|
| // Allow plugins to add thread options $thread_options = $plugins->run_hooks('admin_user_users_edit_thread_options', $thread_options);
// Output thread options
|
$form_container->output_row($lang->thread_view_options, "", "<div class=\"user_settings_bit\">".implode("</div><div class=\"user_settings_bit\">", $thread_options)."</div>");
$languages = array_merge(array('' => $lang->use_default), $lang->get_languages());
| $form_container->output_row($lang->thread_view_options, "", "<div class=\"user_settings_bit\">".implode("</div><div class=\"user_settings_bit\">", $thread_options)."</div>");
$languages = array_merge(array('' => $lang->use_default), $lang->get_languages());
|
Zeile 1345 | Zeile 1360 |
---|
"<label for=\"style\">{$lang->theme}:</label><br />".build_theme_select("style", $mybb->input['style'], 0, "", true, false, true), "<label for=\"language\">{$lang->board_language}:</label><br />".$form->generate_select_box("language", $languages, $mybb->input['language'], array('id' => 'language')) );
|
"<label for=\"style\">{$lang->theme}:</label><br />".build_theme_select("style", $mybb->input['style'], 0, "", true, false, true), "<label for=\"language\">{$lang->board_language}:</label><br />".$form->generate_select_box("language", $languages, $mybb->input['language'], array('id' => 'language')) );
|
| // Allow plugins to add other options $other_options = $plugins->run_hooks('admin_user_users_edit_other_options', $other_options);
// Output other options
|
$form_container->output_row($lang->other_options, "", "<div class=\"user_settings_bit\">".implode("</div><div class=\"user_settings_bit\">", $other_options)."</div>");
$form_container->end(); $plugins->run_hooks("admin_user_users_edit_settings"); echo "</div>\n";
|
$form_container->output_row($lang->other_options, "", "<div class=\"user_settings_bit\">".implode("</div><div class=\"user_settings_bit\">", $other_options)."</div>");
$form_container->end(); $plugins->run_hooks("admin_user_users_edit_settings"); echo "</div>\n";
|
//
| //
|
// SIGNATURE EDITOR // $signature_editor = $form->generate_text_area("signature", $mybb->input['signature'], array('id' => 'signature', 'rows' => 15, 'cols' => '70', 'style' => 'height: 250px; width: 95%'));
| // SIGNATURE EDITOR // $signature_editor = $form->generate_text_area("signature", $mybb->input['signature'], array('id' => 'signature', 'rows' => 15, 'cols' => '70', 'style' => 'height: 250px; width: 95%'));
|
Zeile 1368 | Zeile 1388 |
---|
} $sig_html = $lang->off; if($mybb->settings['sightml'] == 1)
|
} $sig_html = $lang->off; if($mybb->settings['sightml'] == 1)
|
{
| {
|
$sig_html = $lang->on; } $sig_imgcode = $lang->off;
| $sig_html = $lang->on; } $sig_imgcode = $lang->off;
|
Zeile 1403 | Zeile 1423 |
---|
{ // There's a limit to the suspension! $remaining = $user['suspendsigtime']-TIME_NOW;
|
{ // There's a limit to the suspension! $remaining = $user['suspendsigtime']-TIME_NOW;
|
$expired = nice_time($remaining, array('seconds' => false));
$color = 'inherit'; if($remaining < 3600) { $color = 'red'; } elseif($remaining < 86400) { $color = 'maroon'; } elseif($remaining < 604800) { $color = 'green';
| $expired = nice_time($remaining, array('seconds' => false));
$color = 'inherit'; if($remaining < 3600) { $color = 'red'; } elseif($remaining < 86400) { $color = 'maroon'; } elseif($remaining < 604800) { $color = 'green';
|
}
$lang->suspend_expire_info = $lang->sprintf($lang->suspend_expire_info, $expired, $color);
| }
$lang->suspend_expire_info = $lang->sprintf($lang->suspend_expire_info, $expired, $color);
|
Zeile 1512 | Zeile 1532 |
---|
}
if($mybb->settings['maxavatardims'] != "")
|
}
if($mybb->settings['maxavatardims'] != "")
|
{
| {
|
list($max_width, $max_height) = preg_split('/[|x]/', my_strtolower($mybb->settings['maxavatardims'])); $max_size = "<br />{$lang->max_dimensions_are} {$max_width}x{$max_height}"; }
| list($max_width, $max_height) = preg_split('/[|x]/', my_strtolower($mybb->settings['maxavatardims'])); $max_size = "<br />{$lang->max_dimensions_are} {$max_width}x{$max_height}"; }
|
Zeile 1750 | Zeile 1770 |
---|
// Set up user handler. require_once MYBB_ROOT.'inc/datahandlers/user.php'; $userhandler = new UserDataHandler('delete');
|
// Set up user handler. require_once MYBB_ROOT.'inc/datahandlers/user.php'; $userhandler = new UserDataHandler('delete');
|
|
|
// Delete the user if(!$userhandler->delete_user($user['uid'])) {
| // Delete the user if(!$userhandler->delete_user($user['uid'])) {
|
Zeile 1833 | Zeile 1853 |
---|
'link' => "index.php?module=user-users&action=ipaddresses&uid={$mybb->input['uid']}", 'description' => $lang->show_ip_addresses_desc );
|
'link' => "index.php?module=user-users&action=ipaddresses&uid={$mybb->input['uid']}", 'description' => $lang->show_ip_addresses_desc );
|
|
|
$plugins->run_hooks("admin_user_users_ipaddresses");
$page->output_nav_tabs($sub_tabs, 'ipaddresses');
| $plugins->run_hooks("admin_user_users_ipaddresses");
$page->output_nav_tabs($sub_tabs, 'ipaddresses');
|
Zeile 1915 | Zeile 1935 |
---|
if($mybb->input['action'] == "merge") { $plugins->run_hooks("admin_user_users_merge");
|
if($mybb->input['action'] == "merge") { $plugins->run_hooks("admin_user_users_merge");
|
|
|
if($mybb->request_method == "post") {
|
if($mybb->request_method == "post") {
|
$source_user = get_user_by_username($mybb->input['source_username'], array('fields' => '*')); if(!$source_user['uid']) { $errors[] = $lang->error_invalid_user_source; }
$destination_user = get_user_by_username($mybb->input['destination_username'], array('fields' => '*')); if(!$destination_user['uid']) { $errors[] = $lang->error_invalid_user_destination; }
| foreach(array('source', 'destination') as $target) { ${$target.'_user'} = get_user_by_username($mybb->input[$target.'_username'], array('fields' => '*')); if(!${$target.'_user'}['uid']) { $errors[] = $lang->{'error_invalid_user_'.$target}; } }
|
// If we're not a super admin and we're merging a source super admin or a destination super admin then dissallow this action if(!is_super_admin($mybb->user['uid']) && (is_super_admin($source_user['uid']) || is_super_admin($destination_user['uid'])))
|
// If we're not a super admin and we're merging a source super admin or a destination super admin then dissallow this action if(!is_super_admin($mybb->user['uid']) && (is_super_admin($source_user['uid']) || is_super_admin($destination_user['uid'])))
|
{
| {
|
flash_message($lang->error_no_perms_super_admin, 'error'); admin_redirect("index.php?module=user-users");
|
flash_message($lang->error_no_perms_super_admin, 'error'); admin_redirect("index.php?module=user-users");
|
}
| }
|
|
|
if($source_user['uid'] == $destination_user['uid'])
| if($source_user['uid'] == $destination_user['uid'] && !empty($source_user['uid']))
|
{ $errors[] = $lang->error_cannot_merge_same_account; }
| { $errors[] = $lang->error_cannot_merge_same_account; }
|
Zeile 1950 | Zeile 1967 |
---|
); $query = $db->simple_select("adminoptions", "uid", "uid='{$destination_user['uid']}'"); $existing_admin_options = $db->fetch_field($query, "uid");
|
); $query = $db->simple_select("adminoptions", "uid", "uid='{$destination_user['uid']}'"); $existing_admin_options = $db->fetch_field($query, "uid");
|
|
|
// Only carry over admin options/permissions if we don't already have them if(!$existing_admin_options) {
| // Only carry over admin options/permissions if we don't already have them if(!$existing_admin_options) {
|
Zeile 1978 | Zeile 1995 |
---|
// Banning $db->update_query("banned", array('admin' => $destination_user['uid']), "admin = '{$source_user['uid']}'");
|
// Banning $db->update_query("banned", array('admin' => $destination_user['uid']), "admin = '{$source_user['uid']}'");
|
| // Carry over referrals $db->update_query("users", array("referrer" => ((int)$source_user['referrer'] + (int)$destination_user['referrer'])), "uid='{$destination_user['uid']}'"); $db->update_query("users", array("referrals" => ((int)$source_user['referrals'] + (int)$destination_user['referrals'])), "uid='{$destination_user['uid']}'");
|
// Merging Reputation // First, let's change all the details over to our new user...
| // Merging Reputation // First, let's change all the details over to our new user...
|
Zeile 2902 | Zeile 2923 |
---|
$prune_select = $date_box.$month_box.$year_box; $form_container->output_row($lang->manual_date, "", $prune_select, 'date');
|
$prune_select = $date_box.$month_box.$year_box; $form_container->output_row($lang->manual_date, "", $prune_select, 'date');
|
|
|
// Generate the set date box $set_options = array(); $set_options[] = $lang->set_an_option;
| // Generate the set date box $set_options = array(); $set_options[] = $lang->set_an_option;
|
Zeile 3664 | Zeile 3685 |
---|
if($mybb->input['page'] > 0) { $switch_url .= "&page=".$mybb->get_input('page', MyBB::INPUT_INT);
|
if($mybb->input['page'] > 0) { $switch_url .= "&page=".$mybb->get_input('page', MyBB::INPUT_INT);
|
} if($view['view_type'] != "card")
| } if($view['view_type'] != "card")
|
{ $switch_view .= "<strong>{$lang->table_view}</strong> | <a href=\"{$switch_url}&type=card\" style=\"font-weight: normal;\">{$lang->card_view}</a>"; }
| { $switch_view .= "<strong>{$lang->table_view}</strong> | <a href=\"{$switch_url}&type=card\" style=\"font-weight: normal;\">{$lang->card_view}</a>"; }
|
Zeile 3677 | Zeile 3698 |
---|
// Do we need to construct the pagination? if($num_results > $view['perpage'])
|
// Do we need to construct the pagination? if($num_results > $view['perpage'])
|
{
| {
|
$view_type = htmlspecialchars_uni($view['view_type']); $pagination = draw_admin_pagination($mybb->input['page'], $view['perpage'], $num_results, $view['url']."&type={$view_type}"); $search_class = "float_right"; $search_style = "";
|
$view_type = htmlspecialchars_uni($view['view_type']); $pagination = draw_admin_pagination($mybb->input['page'], $view['perpage'], $num_results, $view['url']."&type={$view_type}"); $search_class = "float_right"; $search_style = "";
|
} else
| } else
|
{ $search_class = ''; $search_style = "text-align: right;";
| { $search_class = ''; $search_style = "text-align: right;";
|
Zeile 3701 | Zeile 3722 |
---|
$built_view .= "<div class=\"{$search_class}\" style=\"padding-bottom: 3px; margin-top: -9px; {$search_style}\">"; $built_view .= $search->generate_hidden_field('action', 'search')."\n"; if(isset($view['conditions']['username']))
|
$built_view .= "<div class=\"{$search_class}\" style=\"padding-bottom: 3px; margin-top: -9px; {$search_style}\">"; $built_view .= $search->generate_hidden_field('action', 'search')."\n"; if(isset($view['conditions']['username']))
|
{
| {
|
$default_class = ''; $value = $view['conditions']['username']; }
| $default_class = ''; $value = $view['conditions']['username']; }
|
Zeile 3713 | Zeile 3734 |
---|
$built_view .= $search->generate_text_box('username', htmlspecialchars_uni($value), array('id' => 'search_keywords', 'class' => "{$default_class} field150 field_small"))."\n"; $built_view .= "<input type=\"submit\" class=\"search_button\" value=\"{$lang->search}\" />\n"; if($view['popup'])
|
$built_view .= $search->generate_text_box('username', htmlspecialchars_uni($value), array('id' => 'search_keywords', 'class' => "{$default_class} field150 field_small"))."\n"; $built_view .= "<input type=\"submit\" class=\"search_button\" value=\"{$lang->search}\" />\n"; if($view['popup'])
|
{
| {
|
$built_view .= " <div style=\"display: inline\">{$view['popup']}</div>\n"; } $built_view .= "<script type=\"text/javascript\"> var form = $(\"#search_form\");
|
$built_view .= " <div style=\"display: inline\">{$view['popup']}</div>\n"; } $built_view .= "<script type=\"text/javascript\"> var form = $(\"#search_form\");
|
form.submit(function() {
| form.on('submit', function() {
|
var search = $('#search_keywords'); if(search.val() == '' || search.val() == '".addcslashes($lang->search_for_user, "'")."')
|
var search = $('#search_keywords'); if(search.val() == '' || search.val() == '".addcslashes($lang->search_for_user, "'")."')
|
{ search.focus();
| { search.trigger('focus');
|
return false;
|
return false;
|
}
| }
|
});
var search = $(\"#search_keywords\");
|
});
var search = $(\"#search_keywords\");
|
search.focus(function()
| search.on('focus', function()
|
{ var searched_focus = $(this); if(searched_focus.val() == '".addcslashes($lang->search_for_user, "'")."')
| { var searched_focus = $(this); if(searched_focus.val() == '".addcslashes($lang->search_for_user, "'")."')
|
Zeile 3736 | Zeile 3757 |
---|
searched_focus.removeClass(\"search_default\"); searched_focus.val(\"\"); }
|
searched_focus.removeClass(\"search_default\"); searched_focus.val(\"\"); }
|
});
search.blur(function()
| }).on('blur', function()
|
{ var searched_blur = $(this); if(searched_blur.val() == \"\")
| { var searched_blur = $(this); if(searched_blur.val() == \"\")
|
Zeile 3780 | Zeile 3799 |
---|
}
$built_view .= '
|
}
$built_view .= '
|
<script type="text/javascript" src="'.$mybb->settings['bburl'].'/jscripts/inline_moderation.js?ver=1818"></script>
| <script type="text/javascript" src="'.$mybb->settings['bburl'].'/jscripts/inline_moderation.js?ver=1821"></script>
|
<form action="index.php?module=user-users" method="post"> <input type="hidden" name="my_post_key" value="'.$mybb->post_code.'" /> <input type="hidden" name="action" value="inline_edit" />
| <form action="index.php?module=user-users" method="post"> <input type="hidden" name="my_post_key" value="'.$mybb->post_code.'" /> <input type="hidden" name="action" value="inline_edit" />
|
Zeile 3861 | Zeile 3880 |
---|
{ $value = my_number_format($value); }
|
{ $value = my_number_format($value); }
|
|
|
$user_details[] = "<strong>{$view_field['title']}:</strong> {$value}"; }
| $user_details[] = "<strong>{$view_field['title']}:</strong> {$value}"; }
|
Zeile 3974 | Zeile 3993 |
---|
$user_options = $values[$field_name]; }
|
$user_options = $values[$field_name]; }
|
|
|
foreach($user_options as $val) { $selected_options[$val] = htmlspecialchars_uni($val);
| foreach($user_options as $val) { $selected_options[$val] = htmlspecialchars_uni($val);
|
Zeile 4048 | Zeile 4067 |
---|
{ $user_options = $values[$field_name]; }
|
{ $user_options = $values[$field_name]; }
|
|
|
$selected_options = array(); foreach($user_options as $val) { $selected_options[$val] = $val; }
|
$selected_options = array(); foreach($user_options as $val) { $selected_options[$val] = $val; }
|
|
|
if($search == true) { $select_options[''] = $lang->na;
| if($search == true) { $select_options[''] = $lang->na;
|