Vergleich admin/modules/config/thread_prefixes.php - 1.8.0 - 1.8.4

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 125Zeile 125
			$plugins->run_hooks('admin_config_thread_prefixes_add_prefix_commit');

// Log admin action

			$plugins->run_hooks('admin_config_thread_prefixes_add_prefix_commit');

// Log admin action

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

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

			$cache->update_threadprefixes();

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

			$cache->update_threadprefixes();

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

Zeile 321Zeile 321
			{
$update_prefix['groups'] = '-1';
}

			{
$update_prefix['groups'] = '-1';
}


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

 

$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']}'");


// Log admin action


// Log admin action

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

			log_admin_action($mybb->input['pid'], htmlspecialchars_uni($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 422Zeile 422
				<tr>
<td valign=\"top\"><small>{$lang->forums_colon}</small></td>
<td>".$form->generate_forum_select('forum_1_forums[]', $mybb->input['forum_1_forums'], array('multiple' => true, 'size' => 5))."</td>

				<tr>
<td valign=\"top\"><small>{$lang->forums_colon}</small></td>
<td>".$form->generate_forum_select('forum_1_forums[]', $mybb->input['forum_1_forums'], array('multiple' => true, 'size' => 5))."</td>

				</tr>
</table>
</dd>

				</tr>
</table>
</dd>

	</dl>
<script type=\"text/javascript\">
checkAction('forum');

	</dl>
<script type=\"text/javascript\">
checkAction('forum');

Zeile 465Zeile 465
	if(empty($prefix['pid']))
{
flash_message($lang->error_invalid_thread_prefix, 'error');

	if(empty($prefix['pid']))
{
flash_message($lang->error_invalid_thread_prefix, 'error');

		admin_redirect('index.php?module=config-thread_prefixes');

		admin_redirect('index.php?module=config-thread_prefixes');

	}

// User clicked no
if($mybb->input['no'])

	}

// User clicked no
if($mybb->input['no'])

	{

	{

		admin_redirect('index.php?module=config-thread_prefixes');
}


		admin_redirect('index.php?module=config-thread_prefixes');
}


	$plugins->run_hooks('admin_config_thread_prefixes_delete_prefix');


	$plugins->run_hooks('admin_config_thread_prefixes_delete_prefix');


	if($mybb->request_method == 'post')
{
// Remove prefix from existing threads
$update_threads = array('prefix' => 0);

	if($mybb->request_method == 'post')
{
// Remove prefix from existing threads
$update_threads = array('prefix' => 0);

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

 

// Delete prefix
$db->delete_query('threadprefixes', "pid='{$prefix['pid']}'");

$plugins->run_hooks('admin_config_thread_prefixes_delete_thread_prefix_commit');


// Delete prefix
$db->delete_query('threadprefixes', "pid='{$prefix['pid']}'");

$plugins->run_hooks('admin_config_thread_prefixes_delete_thread_prefix_commit');

 

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


// Log admin action


// Log admin action

		log_admin_action($prefix['pid'], $prefix['prefix']);

		log_admin_action($prefix['pid'], htmlspecialchars_uni($prefix['prefix']));

		$cache->update_threadprefixes();

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

		$cache->update_threadprefixes();

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