Zeile 64 | Zeile 64 |
---|
);
$utid = $db->insert_query("usertitles", $new_title);
|
);
$utid = $db->insert_query("usertitles", $new_title);
|
$cache->update_usertitles();
| |
$plugins->run_hooks("admin_user_titles_add_commit");
|
$plugins->run_hooks("admin_user_titles_add_commit");
|
| $cache->update_usertitles();
|
// Log admin action log_admin_action($utid, $mybb->input['title'], $mybb->input['posts']);
| // Log admin action log_admin_action($utid, $mybb->input['title'], $mybb->input['posts']);
|
Zeile 87 | Zeile 87 |
---|
$page->add_breadcrumb_item($lang->add_new_user_title); $page->output_header($lang->user_titles." - ".$lang->add_new_user_title);
|
$page->add_breadcrumb_item($lang->add_new_user_title); $page->output_header($lang->user_titles." - ".$lang->add_new_user_title);
|
|
|
$page->output_nav_tabs($sub_tabs, 'add_title'); $form = new Form("index.php?module=user-titles&action=add", "post");
| $page->output_nav_tabs($sub_tabs, 'add_title'); $form = new Form("index.php?module=user-titles&action=add", "post");
|
Zeile 99 | Zeile 99 |
---|
$form_container = new FormContainer($lang->add_new_user_title); $form_container->output_row($lang->title_to_assign."<em>*</em>", $lang->title_to_assign_desc, $form->generate_text_box('title', $mybb->input['title'], array('id' => 'title')), 'title');
|
$form_container = new FormContainer($lang->add_new_user_title); $form_container->output_row($lang->title_to_assign."<em>*</em>", $lang->title_to_assign_desc, $form->generate_text_box('title', $mybb->input['title'], array('id' => 'title')), 'title');
|
$form_container->output_row($lang->minimum_posts, $lang->minimum_posts_desc, $form->generate_text_box('posts', $mybb->input['posts'], array('id' => 'posts')), 'posts'); $form_container->output_row($lang->number_of_stars, $lang->number_of_stars_desc, $form->generate_text_box('stars', $mybb->input['stars'], array('id' => 'stars')), 'stars');
| $form_container->output_row($lang->minimum_posts, $lang->minimum_posts_desc, $form->generate_numeric_field('posts', $mybb->input['posts'], array('id' => 'posts')), 'posts'); $form_container->output_row($lang->number_of_stars, $lang->number_of_stars_desc, $form->generate_numeric_field('stars', $mybb->input['stars'], array('id' => 'stars')), 'stars');
|
$form_container->output_row($lang->star_image, $lang->star_image_desc, $form->generate_text_box('starimage', $mybb->input['starimage'], array('id' => 'starimage')), 'starimage'); $form_container->end();
| $form_container->output_row($lang->star_image, $lang->star_image_desc, $form->generate_text_box('starimage', $mybb->input['starimage'], array('id' => 'starimage')), 'starimage'); $form_container->end();
|
Zeile 111 | Zeile 111 |
---|
$page->output_footer(); }
|
$page->output_footer(); }
|
|
|
if($mybb->input['action'] == "edit") { $query = $db->simple_select("usertitles", "*", "utid='".(int)$mybb->input['utid']."'");
| if($mybb->input['action'] == "edit") { $query = $db->simple_select("usertitles", "*", "utid='".(int)$mybb->input['utid']."'");
|
Zeile 151 | Zeile 151 |
---|
"stars" => (int)$mybb->input['stars'], "starimage" => $db->escape_string($mybb->input['starimage']) );
|
"stars" => (int)$mybb->input['stars'], "starimage" => $db->escape_string($mybb->input['starimage']) );
|
| $plugins->run_hooks("admin_user_titles_edit_commit");
|
$db->update_query("usertitles", $updated_title, "utid='{$usertitle['utid']}'");
$cache->update_usertitles();
|
$db->update_query("usertitles", $updated_title, "utid='{$usertitle['utid']}'");
$cache->update_usertitles();
|
$plugins->run_hooks("admin_user_titles_edit_commit");
| |
// Log admin action log_admin_action($usertitle['utid'], $mybb->input['title'], $mybb->input['posts']);
| // Log admin action log_admin_action($usertitle['utid'], $mybb->input['title'], $mybb->input['posts']);
|
Zeile 171 | Zeile 171 |
---|
$sub_tabs['edit_title'] = array( 'title' => $lang->edit_user_title,
|
$sub_tabs['edit_title'] = array( 'title' => $lang->edit_user_title,
|
'link' => "index.php?module=user-titles&action=edit&uid=".$mybb->input['uid'],
| 'link' => "index.php?module=user-titles&action=edit&utid=".$mybb->input['utid'],
|
'description' => $lang->edit_user_title_desc );
| 'description' => $lang->edit_user_title_desc );
|
Zeile 190 | Zeile 190 |
---|
$form_container = new FormContainer($lang->edit_user_title); $form_container->output_row($lang->title_to_assign."<em>*</em>", $lang->title_to_assign_desc, $form->generate_text_box('title', $mybb->input['title'], array('id' => 'title')), 'title');
|
$form_container = new FormContainer($lang->edit_user_title); $form_container->output_row($lang->title_to_assign."<em>*</em>", $lang->title_to_assign_desc, $form->generate_text_box('title', $mybb->input['title'], array('id' => 'title')), 'title');
|
$form_container->output_row($lang->minimum_posts, $lang->minimum_posts_desc, $form->generate_text_box('posts', $mybb->input['posts'], array('id' => 'posts')), 'posts'); $form_container->output_row($lang->number_of_stars, $lang->number_of_stars_desc, $form->generate_text_box('stars', $mybb->input['stars'], array('id' => 'stars')), 'stars');
| $form_container->output_row($lang->minimum_posts, $lang->minimum_posts_desc, $form->generate_numeric_field('posts', $mybb->input['posts'], array('id' => 'posts')), 'posts'); $form_container->output_row($lang->number_of_stars, $lang->number_of_stars_desc, $form->generate_numeric_field('stars', $mybb->input['stars'], array('id' => 'stars')), 'stars');
|
$form_container->output_row($lang->star_image, $lang->star_image_desc, $form->generate_text_box('starimage', $mybb->input['starimage'], array('id' => 'starimage')), 'starimage'); $form_container->end();
| $form_container->output_row($lang->star_image, $lang->star_image_desc, $form->generate_text_box('starimage', $mybb->input['starimage'], array('id' => 'starimage')), 'starimage'); $form_container->end();
|