Vergleich admin/modules/config/thread_prefixes.php - 1.8.2 - 1.8.21

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 49Zeile 49

if($mybb->input['forum_type'] == 2)
{


if($mybb->input['forum_type'] == 2)
{

			if(count($mybb->input['forum_1_forums']) < 1)

			if(is_array($mybb->input['forum_1_forums']) && count($mybb->input['forum_1_forums']) < 1)

			{
$errors[] = $lang->error_no_forums_selected;
}

			{
$errors[] = $lang->error_no_forums_selected;
}

Zeile 64Zeile 64

if($mybb->input['group_type'] == 2)
{


if($mybb->input['group_type'] == 2)
{

			if(count($mybb->input['group_1_groups']) < 1)

			if(is_array($mybb->input['group_1_groups']) && count($mybb->input['group_1_groups']) < 1)

			{
$errors[] = $lang->error_no_groups_selected;
}

			{
$errors[] = $lang->error_no_groups_selected;
}

Zeile 251Zeile 251

if($mybb->input['forum_type'] == 2)
{


if($mybb->input['forum_type'] == 2)
{

			if(count($mybb->input['forum_1_forums']) < 1)

			if(is_array($mybb->input['forum_1_forums']) && count($mybb->input['forum_1_forums']) < 1)

			{
$errors[] = $lang->error_no_forums_selected;
}

			{
$errors[] = $lang->error_no_forums_selected;
}

Zeile 266Zeile 266

if($mybb->input['group_type'] == 2)
{


if($mybb->input['group_type'] == 2)
{

			if(count($mybb->input['group_1_groups']) < 1)

			if(is_array($mybb->input['group_1_groups']) && count($mybb->input['group_1_groups']) < 1)

			{
$errors[] = $lang->error_no_groups_selected;
}

			{
$errors[] = $lang->error_no_groups_selected;
}

Zeile 324Zeile 324

$plugins->run_hooks('admin_config_thread_prefixes_edit_prefix_commit');



$plugins->run_hooks('admin_config_thread_prefixes_edit_prefix_commit');


			$db->update_query('threadprefixes', $update_prefix, "pid='{$mybb->input['pid']}'");

			$db->update_query('threadprefixes', $update_prefix, "pid='{$prefix['pid']}'");


// Log admin action


// Log admin action

			log_admin_action($mybb->input['pid'], $mybb->input['prefix']);

			log_admin_action($prefix['pid'], $mybb->input['prefix']);

			$cache->update_threadprefixes();

flash_message($lang->success_thread_prefix_updated, 'success');

			$cache->update_threadprefixes();

flash_message($lang->success_thread_prefix_updated, 'success');

Zeile 348Zeile 348
	$page->output_nav_tabs($sub_tabs, "edit_prefix");

$form = new Form('index.php?module=config-thread_prefixes&amp;action=edit_prefix', 'post');

	$page->output_nav_tabs($sub_tabs, "edit_prefix");

$form = new Form('index.php?module=config-thread_prefixes&amp;action=edit_prefix', 'post');

	echo $form->generate_hidden_field('pid', $mybb->input['pid']);

	echo $form->generate_hidden_field('pid', $prefix['pid']);


if($errors)
{


if($errors)
{

Zeile 356Zeile 356
	}
else
{

	}
else
{

		$query = $db->simple_select('threadprefixes', '*', "pid = '{$mybb->input['pid']}'");

		$query = $db->simple_select('threadprefixes', '*', "pid = '{$prefix['pid']}'");

		$threadprefix = $db->fetch_array($query);

$mybb->input['prefix'] = $threadprefix['prefix'];

		$threadprefix = $db->fetch_array($query);

$mybb->input['prefix'] = $threadprefix['prefix'];

Zeile 497Zeile 497
	}
else
{

	}
else
{

		$page->output_confirm_action("index.php?module=config-thread_prefixes&amp;action=delete_prefix&amp;pid={$mybb->input['pid']}", $lang->confirm_thread_prefix_deletion);

		$page->output_confirm_action("index.php?module=config-thread_prefixes&amp;action=delete_prefix&amp;pid={$prefix['pid']}", $lang->confirm_thread_prefix_deletion);

	}
}


	}
}