Vergleich admin/modules/config/smilies.php - 1.8.4 - 1.8.10

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 71Zeile 71
				"find" => $db->escape_string($mybb->input['find']),
"image" => $db->escape_string($mybb->input['image']),
"disporder" => $mybb->get_input('disporder', MyBB::INPUT_INT),

				"find" => $db->escape_string($mybb->input['find']),
"image" => $db->escape_string($mybb->input['image']),
"disporder" => $mybb->get_input('disporder', MyBB::INPUT_INT),

				"showclickable" => $db->escape_string($mybb->input['showclickable'])

				"showclickable" => $mybb->get_input('showclickable', MyBB::INPUT_INT)

			);

$sid = $db->insert_query("smilies", $new_smilie);

			);

$sid = $db->insert_query("smilies", $new_smilie);

Zeile 182Zeile 182
		else
{
$mybb->input['disporder'] = $mybb->get_input('disporder', MyBB::INPUT_INT);

		else
{
$mybb->input['disporder'] = $mybb->get_input('disporder', MyBB::INPUT_INT);

			$query = $db->simple_select("smilies", "sid", "disporder= '".$mybb->input['disporder']."' AND sid != '".$mybb->input['sid']."'");

			$query = $db->simple_select("smilies", "sid", "disporder= '".$mybb->input['disporder']."' AND sid != '".$smilie['sid']."'");

			$duplicate_disporder = $db->fetch_field($query, 'sid');

if($duplicate_disporder)

			$duplicate_disporder = $db->fetch_field($query, 'sid');

if($duplicate_disporder)

Zeile 207Zeile 207
				"find" => $db->escape_string($mybb->input['find']),
"image" => $db->escape_string($mybb->input['image']),
"disporder" => $mybb->get_input('disporder', MyBB::INPUT_INT),

				"find" => $db->escape_string($mybb->input['find']),
"image" => $db->escape_string($mybb->input['image']),
"disporder" => $mybb->get_input('disporder', MyBB::INPUT_INT),

				"showclickable" => $db->escape_string($mybb->input['showclickable'])

				"showclickable" => $mybb->get_input('showclickable', MyBB::INPUT_INT)

			);

$plugins->run_hooks("admin_config_smilies_edit_commit");


			);

$plugins->run_hooks("admin_config_smilies_edit_commit");


			$db->update_query("smilies", $updated_smilie, "sid = '".$mybb->get_input('sid', MyBB::INPUT_INT)."'");

			$db->update_query("smilies", $updated_smilie, "sid = '{$smilie['sid']}'");


$cache->update_smilies();



$cache->update_smilies();


Zeile 550Zeile 550
			}
else
{

			}
else
{

 
				$mybb->input['find'][$sid] = str_replace("\r\n", "\n", $mybb->input['find'][$sid]);
$mybb->input['find'][$sid] = str_replace("\r", "\n", $mybb->input['find'][$sid]);
$mybb->input['find'][$sid] = explode("\n", $mybb->input['find'][$sid]);
foreach(array_merge(array_keys($mybb->input['find'][$sid], ""), array_keys($mybb->input['find'][$sid], " ")) as $key)
{
unset($mybb->input['find'][$sid][$key]);
}
$mybb->input['find'][$sid] = implode("\n", $mybb->input['find'][$sid]);


				$smilie = array(
"name" => $db->escape_string($mybb->input['name'][$sid]),
"find" => $db->escape_string($mybb->input['find'][$sid]),

				$smilie = array(
"name" => $db->escape_string($mybb->input['name'][$sid]),
"find" => $db->escape_string($mybb->input['find'][$sid]),

Zeile 595Zeile 604
	$sub_tabs['add_multiple_smilies'] = array(
'title' => $lang->add_multiple_smilies,
'link' => "index.php?module=config-smilies&action=add_multiple",

	$sub_tabs['add_multiple_smilies'] = array(
'title' => $lang->add_multiple_smilies,
'link' => "index.php?module=config-smilies&action=add_multiple",

	);

	);

	$sub_tabs['mass_edit'] = array(
'title' => $lang->mass_edit,
'link' => "index.php?module=config-smilies&action=mass_edit",
'description' => $lang->mass_edit_desc
);


	$sub_tabs['mass_edit'] = array(
'title' => $lang->mass_edit,
'link' => "index.php?module=config-smilies&action=mass_edit",
'description' => $lang->mass_edit_desc
);


	$page->output_nav_tabs($sub_tabs, 'mass_edit');


	$page->output_nav_tabs($sub_tabs, 'mass_edit');


	$form = new Form("index.php?module=config-smilies&action=mass_edit", "post", "mass_edit");

if($errors)

	$form = new Form("index.php?module=config-smilies&action=mass_edit", "post", "mass_edit");

if($errors)

	{

	{

		$page->output_inline_error($errors);
}
else

		$page->output_inline_error($errors);
}
else

Zeile 634Zeile 643
	while($smilie = $db->fetch_array($query))
{
$smilie['image'] = str_replace("{theme}", "images", $smilie['image']);

	while($smilie = $db->fetch_array($query))
{
$smilie['image'] = str_replace("{theme}", "images", $smilie['image']);

		if(my_strpos($smilie['image'], "p://") || substr($smilie['image'], 0, 1) == "/")

		if(my_validate_url($smilie['image'], true))

		{
$image = $smilie['image'];
}

		{
$image = $smilie['image'];
}

Zeile 642Zeile 651
		{
$image = "../".$smilie['image'];
}

		{
$image = "../".$smilie['image'];
}


$smilie['find'] = htmlspecialchars_uni($smilie['find']);
$smilie['name'] = htmlspecialchars_uni($smilie['name']);

 

$form_container->output_cell("<img src=\"{$image}\" alt=\"\" />", array("class" => "align_center", "width" => 1));
$form_container->output_cell($form->generate_text_box("name[{$smilie['sid']}]", $smilie['name'], array('id' => 'name', 'style' => 'width: 98%')));


$form_container->output_cell("<img src=\"{$image}\" alt=\"\" />", array("class" => "align_center", "width" => 1));
$form_container->output_cell($form->generate_text_box("name[{$smilie['sid']}]", $smilie['name'], array('id' => 'name', 'style' => 'width: 98%')));

Zeile 720Zeile 726
	while($smilie = $db->fetch_array($query))
{
$smilie['image'] = str_replace("{theme}", "images", $smilie['image']);

	while($smilie = $db->fetch_array($query))
{
$smilie['image'] = str_replace("{theme}", "images", $smilie['image']);

		if(my_strpos($smilie['image'], "p://") || substr($smilie['image'], 0, 1) == "/")

		if(my_validate_url($smilie['image'], true))

		{
$image = $smilie['image'];

		{
$image = $smilie['image'];

			$smilie['image'] = str_replace("{theme}", "images", $smilie['image']);

 
		}
else
{

		}
else
{