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['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($user['avatar'] && (my_strpos($user['avatar'], '://') === false || $mybb->settings['allowremoteavatars']))
|
{
|
{
|
if($user['avatardimensions'])
| if(!my_validate_url($user['avatar']))
|
{
|
{
|
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'])) { $user['avatar'] = "../{$user['avatar']}\n";
| $avatar = format_avatar($user['avatar'], $user['avatardimensions']); $user['avatar'] = $avatar['image'];
|
} } else { if(my_validate_url($mybb->settings['useravatar']))
|
} } else { if(my_validate_url($mybb->settings['useravatar']))
|
{
| {
|
$user['avatar'] = str_replace('{theme}', 'images', $mybb->settings['useravatar']); } else { $user['avatar'] = "../".str_replace('{theme}', 'images', $mybb->settings['useravatar']); }
|
$user['avatar'] = str_replace('{theme}', 'images', $mybb->settings['useravatar']); } else { $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'])
|
Zeile 1116 | Zeile 1113 |
---|
$username = htmlspecialchars_uni($user['username']); $table->output("{$lang->user_overview}: {$username}"); $plugins->run_hooks("admin_user_users_edit_overview");
|
$username = htmlspecialchars_uni($user['username']); $table->output("{$lang->user_overview}: {$username}"); $plugins->run_hooks("admin_user_users_edit_overview");
|
echo "</div>\n";
| echo "</div>\n";
|
// // PROFILE
| // // PROFILE
|
Zeile 1202 | Zeile 1199 |
---|
if($mybb->settings['allowaway'] != 0)
|
if($mybb->settings['allowaway'] != 0)
|
{
| {
|
$form_container = new FormContainer($lang->away_information.': '.htmlspecialchars_uni($user['username'])); $awaycheck = array(false, true); if($mybb->input['away'] == 1)
| $form_container = new FormContainer($lang->away_information.': '.htmlspecialchars_uni($user['username'])); $awaycheck = array(false, true); if($mybb->input['away'] == 1)
|
Zeile 1333 | Zeile 1330 |
---|
{ if($ppp <= 0) continue; $ppp_options[$ppp] = $ppp;
|
{ if($ppp <= 0) continue; $ppp_options[$ppp] = $ppp;
|
}
| }
|
} }
| } }
|
Zeile 1376 | Zeile 1373 |
---|
// // SIGNATURE EDITOR
|
// // SIGNATURE EDITOR
|
//
| //
|
$signature_editor = $form->generate_text_area("signature", $mybb->input['signature'], array('id' => 'signature', 'rows' => 15, 'cols' => '70', 'style' => 'height: 250px; width: 95%')); $sig_smilies = $lang->off; if($mybb->settings['sigsmilies'] == 1)
| $signature_editor = $form->generate_text_area("signature", $mybb->input['signature'], array('id' => 'signature', 'rows' => 15, 'cols' => '70', 'style' => 'height: 250px; width: 95%')); $sig_smilies = $lang->off; if($mybb->settings['sigsmilies'] == 1)
|
Zeile 1501 | Zeile 1498 |
---|
$form->generate_radio_button("update_posts", "enable", $lang->enable_sig_in_all_posts, array("checked" => 0)), $form->generate_radio_button("update_posts", "disable", $lang->disable_sig_in_all_posts, array("checked" => 0)), $form->generate_radio_button("update_posts", "no", $lang->do_nothing, array("checked" => 1))
|
$form->generate_radio_button("update_posts", "enable", $lang->enable_sig_in_all_posts, array("checked" => 0)), $form->generate_radio_button("update_posts", "disable", $lang->disable_sig_in_all_posts, array("checked" => 0)), $form->generate_radio_button("update_posts", "no", $lang->do_nothing, array("checked" => 1))
|
);
$form_container->output_row($lang->signature_preferences, "", implode("<br />", $signature_options));
$form_container->end();
| );
$form_container->output_row($lang->signature_preferences, "", implode("<br />", $signature_options));
$form_container->end();
|
$plugins->run_hooks("admin_user_users_edit_signatur"); echo "</div>\n";
| $plugins->run_hooks("admin_user_users_edit_signatur"); echo "</div>\n";
|
Zeile 1591 | Zeile 1588 |
---|
$form_container->output_row($lang->user_notes, '', $form->generate_text_area('usernotes', $mybb->input['usernotes'], array('id' => 'usernotes')), 'usernotes');
// Mod posts
|
$form_container->output_row($lang->user_notes, '', $form->generate_text_area('usernotes', $mybb->input['usernotes'], array('id' => 'usernotes')), 'usernotes');
// Mod posts
|
// Generate check box
| // Generate check box
|
$modpost_options = $form->generate_select_box('modpost_period', $periods, $mybb->input['modpost_period'], array('id' => 'modpost_period'));
// Do we have any existing suspensions here?
| $modpost_options = $form->generate_select_box('modpost_period', $periods, $mybb->input['modpost_period'], array('id' => 'modpost_period'));
// Do we have any existing suspensions here?
|
Zeile 1678 | Zeile 1675 |
---|
$plugins->run_hooks("admin_user_users_edit_graph");
$buttons[] = $form->generate_submit_button($lang->save_user);
|
$plugins->run_hooks("admin_user_users_edit_graph");
$buttons[] = $form->generate_submit_button($lang->save_user);
|
$form->output_submit_wrapper($buttons);
| $form->output_submit_wrapper($buttons);
|
$form->end();
echo '<script type="text/javascript">
| $form->end();
echo '<script type="text/javascript">
|
Zeile 2370 | Zeile 2367 |
---|
}
$page->add_breadcrumb_item($lang->find_users);
|
}
$page->add_breadcrumb_item($lang->find_users);
|
$page->output_header($lang->find_users);
| $page->output_header($lang->find_users);
|
$page->output_nav_tabs($sub_tabs, 'find_users');
// If we have any error messages, show them
| $page->output_nav_tabs($sub_tabs, 'find_users');
// If we have any error messages, show them
|
Zeile 3064 | Zeile 3061 |
---|
echo "<script type=\"text/javascript\" src=\"jscripts/users.js\"></script>";
$page->output_nav_tabs($sub_tabs, 'browse_users');
|
echo "<script type=\"text/javascript\" src=\"jscripts/users.js\"></script>";
$page->output_nav_tabs($sub_tabs, 'browse_users');
|
|
|
if(isset($mybb->input['search_id']) && $admin_session['data']['user_views'][$mybb->input['search_id']]) { $admin_view = $admin_session['data']['user_views'][$mybb->input['search_id']];
| if(isset($mybb->input['search_id']) && $admin_session['data']['user_views'][$mybb->input['search_id']]) { $admin_view = $admin_session['data']['user_views'][$mybb->input['search_id']];
|
Zeile 3742 | Zeile 3739 |
---|
} $built_view .= "<script type=\"text/javascript\"> var form = $(\"#search_form\");
|
} $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; } });
var search = $(\"#search_keywords\");
|
return false; } });
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 3760 | 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 3804 | 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" />
|