Vergleich admin/modules/user/titles.php - 1.8.4 - 1.8.36

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 70Zeile 70
			$cache->update_usertitles();

// Log admin action

			$cache->update_usertitles();

// Log admin action

			log_admin_action($utid, htmlspecialchars_uni($mybb->input['title']), $mybb->input['posts']);

			log_admin_action($utid, $mybb->input['title'], $mybb->input['posts']);


flash_message($lang->success_user_title_created, 'success');
admin_redirect("index.php?module=user-titles");


flash_message($lang->success_user_title_created, 'success');
admin_redirect("index.php?module=user-titles");

Zeile 98Zeile 98
	}

$form_container = new FormContainer($lang->add_new_user_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_numeric_field('posts', $mybb->input['posts'], array('id' => 'posts', 'min' => 0)), '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', 'min' => 0)), '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->output_row($lang->title_to_assign."<em>*</em>", $lang->title_to_assign_desc, $form->generate_text_box('title', $mybb->get_input('title'), array('id' => 'title')), 'title');
$form_container->output_row($lang->minimum_posts, $lang->minimum_posts_desc, $form->generate_numeric_field('posts', $mybb->get_input('posts'), array('id' => 'posts', 'min' => 0)), 'posts');
$form_container->output_row($lang->number_of_stars, $lang->number_of_stars_desc, $form->generate_numeric_field('stars', $mybb->get_input('stars'), array('id' => 'stars', 'min' => 0)), 'stars');
$form_container->output_row($lang->star_image, $lang->star_image_desc, $form->generate_text_box('starimage', $mybb->get_input('starimage'), array('id' => 'starimage')), 'starimage');

	$form_container->end();


	$form_container->end();


	$buttons[] = $form->generate_submit_button($lang->save_user_title);


	$buttons[] = $form->generate_submit_button($lang->save_user_title);


	$form->output_submit_wrapper($buttons);
$form->end();

$page->output_footer();
}

	$form->output_submit_wrapper($buttons);
$form->end();

$page->output_footer();
}





if($mybb->input['action'] == "edit")

if($mybb->input['action'] == "edit")

{
$query = $db->simple_select("usertitles", "*", "utid='".$mybb->get_input('utid', MyBB::INPUT_INT)."'");
$usertitle = $db->fetch_array($query);

if(!$usertitle['utid'])

{
$query = $db->simple_select("usertitles", "*", "utid='".$mybb->get_input('utid', MyBB::INPUT_INT)."'");
$usertitle = $db->fetch_array($query);

if(!$usertitle['utid'])

	{
flash_message($lang->error_invalid_user_title, 'error');
admin_redirect("index.php?module=user-titles");

	{
flash_message($lang->error_invalid_user_title, 'error');
admin_redirect("index.php?module=user-titles");

Zeile 133Zeile 133
		}

if(!isset($mybb->input['posts']))

		}

if(!isset($mybb->input['posts']))

		{

		{

			$errors[] = $lang->error_missing_posts;
}


			$errors[] = $lang->error_missing_posts;
}


Zeile 159Zeile 159
			$cache->update_usertitles();

// Log admin action

			$cache->update_usertitles();

// Log admin action

			log_admin_action($usertitle['utid'], htmlspecialchars_uni($mybb->input['title']), $mybb->input['posts']);

			log_admin_action($usertitle['utid'], $mybb->input['title'], $mybb->input['posts']);


flash_message($lang->success_user_title_updated, 'success');
admin_redirect("index.php?module=user-titles");


flash_message($lang->success_user_title_updated, 'success');
admin_redirect("index.php?module=user-titles");

Zeile 182Zeile 182
	if($errors)
{
$page->output_inline_error($errors);

	if($errors)
{
$page->output_inline_error($errors);

	}

	}

	else
{
$mybb->input = array_merge($mybb->input, $usertitle);

	else
{
$mybb->input = array_merge($mybb->input, $usertitle);

Zeile 212Zeile 212
	if(!$usertitle['utid'])
{
flash_message($lang->error_invalid_user_title, 'error');

	if(!$usertitle['utid'])
{
flash_message($lang->error_invalid_user_title, 'error');

		admin_redirect("index.php?module=user-titles");
}


		admin_redirect("index.php?module=user-titles");
}


	// User clicked no

	// User clicked no

	if($mybb->input['no'])
{

	if($mybb->get_input('no'))
{

		admin_redirect("index.php?module=user-titles");
}


		admin_redirect("index.php?module=user-titles");
}


Zeile 230Zeile 230
		$plugins->run_hooks("admin_user_titles_delete_commit");

$cache->update_usertitles();

		$plugins->run_hooks("admin_user_titles_delete_commit");

$cache->update_usertitles();

		



		// Log admin action

		// Log admin action

		log_admin_action($usertitle['utid'], htmlspecialchars_uni($usertitle['title']), $usertitle['posts']);

		log_admin_action($usertitle['utid'], $usertitle['title'], $usertitle['posts']);


flash_message($lang->success_user_title_deleted, 'success');
admin_redirect("index.php?module=user-titles");


flash_message($lang->success_user_title_deleted, 'success');
admin_redirect("index.php?module=user-titles");

Zeile 271Zeile 271
	{
$table->construct_cell($lang->no_user_titles, array('colspan' => 4));
$table->construct_row();

	{
$table->construct_cell($lang->no_user_titles, array('colspan' => 4));
$table->construct_row();

		$no_results = true;

 
	}

$table->output($lang->manage_user_titles);

	}

$table->output($lang->manage_user_titles);