Vergleich admin/modules/config/smilies.php - 1.8.7 - 1.8.26

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

// Log admin action

			$cache->update_smilies();

// Log admin action

			log_admin_action($sid, htmlspecialchars_uni($mybb->input['name']));

			log_admin_action($sid, $mybb->input['name']);


flash_message($lang->success_smilie_added, 'success');
admin_redirect("index.php?module=config-smilies");


flash_message($lang->success_smilie_added, 'success');
admin_redirect("index.php?module=config-smilies");

Zeile 217Zeile 217
			$cache->update_smilies();

// Log admin action

			$cache->update_smilies();

// Log admin action

			log_admin_action($smilie['sid'], htmlspecialchars_uni($mybb->input['name']));

			log_admin_action($smilie['sid'], $mybb->input['name']);


flash_message($lang->success_smilie_updated, 'success');
admin_redirect("index.php?module=config-smilies");


flash_message($lang->success_smilie_updated, 'success');
admin_redirect("index.php?module=config-smilies");

Zeile 298Zeile 298
		$cache->update_smilies();

// Log admin action

		$cache->update_smilies();

// Log admin action

		log_admin_action($smilie['sid'], htmlspecialchars_uni($smilie['name']));

		log_admin_action($smilie['sid'], $smilie['name']);


flash_message($lang->success_smilie_updated, 'success');
admin_redirect("index.php?module=config-smilies");


flash_message($lang->success_smilie_updated, 'success');
admin_redirect("index.php?module=config-smilies");

Zeile 409Zeile 409
					$find = str_replace(".".$ext, "", $file);
$name = ucfirst($find);


					$find = str_replace(".".$ext, "", $file);
$name = ucfirst($find);


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



					$file = htmlspecialchars_uni($file);

$form_container->output_cell("<img src=\"../".htmlspecialchars_uni($path).$file."\" alt=\"\" /><br /><small>{$file}</small>", array("class" => "align_center", "width" => 1));
$form_container->output_cell($form->generate_text_box("name[{$file}]", htmlspecialchars_uni($name), array('id' => 'name', 'style' => 'width: 98%')));

					$form_container->output_cell($form->generate_text_box("find[{$file}]", ":".$find.":", array('id' => 'find', 'style' => 'width: 95%')));
$form_container->output_cell($form->generate_check_box("include[{$file}]", 1, "", array('checked' => 1)), array("class" => "align_center"));
$form_container->construct_row();

					$form_container->output_cell($form->generate_text_box("find[{$file}]", ":".$find.":", array('id' => 'find', 'style' => 'width: 95%')));
$form_container->output_cell($form->generate_check_box("include[{$file}]", 1, "", array('checked' => 1)), array("class" => "align_center"));
$form_container->construct_row();

Zeile 489Zeile 491
	}

$page->add_breadcrumb_item($lang->add_multiple_smilies);

	}

$page->add_breadcrumb_item($lang->add_multiple_smilies);

	$page->output_header($lang->smilies." - ".$lang->add_multiple_smilies);

$sub_tabs['manage_smilies'] = array(
'title' => $lang->manage_smilies,
'link' => "index.php?module=config-smilies",
);
$sub_tabs['add_smilie'] = array(

	$page->output_header($lang->smilies." - ".$lang->add_multiple_smilies);

$sub_tabs['manage_smilies'] = array(
'title' => $lang->manage_smilies,
'link' => "index.php?module=config-smilies",
);
$sub_tabs['add_smilie'] = array(

		'title' => $lang->add_smilie,
'link' => "index.php?module=config-smilies&amp;action=add"
);

		'title' => $lang->add_smilie,
'link' => "index.php?module=config-smilies&amp;action=add"
);

Zeile 537Zeile 539
	if($mybb->request_method == "post")
{
foreach($mybb->input['name'] as $sid => $name)

	if($mybb->request_method == "post")
{
foreach($mybb->input['name'] as $sid => $name)

		{

		{

			$disporder = (int)$mybb->input['disporder'][$sid];

$sid = (int)$sid;

			$disporder = (int)$mybb->input['disporder'][$sid];

$sid = (int)$sid;

Zeile 556Zeile 558
				foreach(array_merge(array_keys($mybb->input['find'][$sid], ""), array_keys($mybb->input['find'][$sid], " ")) as $key)
{
unset($mybb->input['find'][$sid][$key]);

				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(

				$mybb->input['find'][$sid] = implode("\n", $mybb->input['find'][$sid]);				

$smilie = array(

Zeile 577Zeile 579
			}

$disporder_list[$disporder] = $disporder;

			}

$disporder_list[$disporder] = $disporder;

		}

$plugins->run_hooks("admin_config_smilies_mass_edit_commit");

		}

$plugins->run_hooks("admin_config_smilies_mass_edit_commit");


$cache->update_smilies();



$cache->update_smilies();


Zeile 643Zeile 645
	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 = htmlspecialchars_uni($smilie['image']);

		}
else
{

		}
else
{

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

			$image = "../".htmlspecialchars_uni($smilie['image']);

		}

$form_container->output_cell("<img src=\"{$image}\" alt=\"\" />", array("class" => "align_center", "width" => 1));

		}

$form_container->output_cell("<img src=\"{$image}\" alt=\"\" />", array("class" => "align_center", "width" => 1));

Zeile 665Zeile 667
	{
$form_container->output_cell($lang->no_smilies, array('colspan' => 6));
$form_container->construct_row();

	{
$form_container->output_cell($lang->no_smilies, array('colspan' => 6));
$form_container->construct_row();

	}


	}


	$form_container->end();

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

	$form_container->end();

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

Zeile 677Zeile 679

$page->output_footer();
}


$page->output_footer();
}





if(!$mybb->input['action'])
{
$plugins->run_hooks("admin_config_smilies_start");

if(!$mybb->input['action'])
{
$plugins->run_hooks("admin_config_smilies_start");

Zeile 703Zeile 705
	);

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

	);

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

 

$query = $db->simple_select("smilies", "COUNT(sid) as smilies");
$total_rows = $db->fetch_field($query, "smilies");


$pagenum = $mybb->get_input('page', MyBB::INPUT_INT);
if($pagenum)
{
$start = ($pagenum-1) * 20;


$pagenum = $mybb->get_input('page', MyBB::INPUT_INT);
if($pagenum)
{
$start = ($pagenum-1) * 20;

	}







		$pages = ceil($total_rows / 20);
if($pagenum > $pages)
{
$start = 0;
$pagenum = 1;
}
}

	else
{
$start = 0;
$pagenum = 1;

	else
{
$start = 0;
$pagenum = 1;

	}


	}



$table = new Table;
$table->construct_header($lang->image, array("class" => "align_center", "width" => 1));


$table = new Table;
$table->construct_header($lang->image, array("class" => "align_center", "width" => 1));

Zeile 724Zeile 735

$query = $db->simple_select("smilies", "*", "", array('limit_start' => $start, 'limit' => 20, 'order_by' => 'disporder'));
while($smilie = $db->fetch_array($query))


$query = $db->simple_select("smilies", "*", "", array('limit_start' => $start, 'limit' => 20, 'order_by' => 'disporder'));
while($smilie = $db->fetch_array($query))

	{

	{

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

		$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'];
$smilie['image'] = str_replace("{theme}", "images", $smilie['image']);

			$image = htmlspecialchars_uni($smilie['image']);


		}
else
{

		}
else
{

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

			$image = "../".htmlspecialchars_uni($smilie['image']);

		}

$table->construct_cell("<img src=\"{$image}\" alt=\"\" class=\"smilie smilie_{$smilie['sid']}\" />", array("class" => "align_center"));
$table->construct_cell(htmlspecialchars_uni($smilie['name']));
$table->construct_cell(nl2br(htmlspecialchars_uni($smilie['find'])));

		}

$table->construct_cell("<img src=\"{$image}\" alt=\"\" class=\"smilie smilie_{$smilie['sid']}\" />", array("class" => "align_center"));
$table->construct_cell(htmlspecialchars_uni($smilie['name']));
$table->construct_cell(nl2br(htmlspecialchars_uni($smilie['find'])));





		$table->construct_cell("<a href=\"index.php?module=config-smilies&amp;action=edit&amp;sid={$smilie['sid']}\">{$lang->edit}</a>", array("class" => "align_center"));
$table->construct_cell("<a href=\"index.php?module=config-smilies&amp;action=delete&amp;sid={$smilie['sid']}&amp;my_post_key={$mybb->post_code}\" onclick=\"return AdminCP.deleteConfirmation(this, '{$lang->confirm_smilie_deletion}')\">{$lang->delete}</a>", array("class" => "align_center"));

		$table->construct_cell("<a href=\"index.php?module=config-smilies&amp;action=edit&amp;sid={$smilie['sid']}\">{$lang->edit}</a>", array("class" => "align_center"));
$table->construct_cell("<a href=\"index.php?module=config-smilies&amp;action=delete&amp;sid={$smilie['sid']}&amp;my_post_key={$mybb->post_code}\" onclick=\"return AdminCP.deleteConfirmation(this, '{$lang->confirm_smilie_deletion}')\">{$lang->delete}</a>", array("class" => "align_center"));

		$table->construct_row();
}


		$table->construct_row();
}


	if($table->num_rows() == 0)
{
$table->construct_cell($lang->no_smilies, array('colspan' => 5));

	if($table->num_rows() == 0)
{
$table->construct_cell($lang->no_smilies, array('colspan' => 5));

Zeile 752Zeile 762
	}

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

	}

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


$query = $db->simple_select("smilies", "COUNT(sid) as smilies");
$total_rows = $db->fetch_field($query, "smilies");

 

echo "<br />".draw_admin_pagination($pagenum, "20", $total_rows, "index.php?module=config-smilies&amp;page={page}");



echo "<br />".draw_admin_pagination($pagenum, "20", $total_rows, "index.php?module=config-smilies&amp;page={page}");