Vergleich admin/modules/config/post_icons.php - 1.8.2 - 1.8.16

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

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


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

	$query = $db->simple_select("icons", "*", "iid='".(int)$mybb->input['iid']."'");

	$query = $db->simple_select("icons", "*", "iid='".$mybb->get_input('iid', MyBB::INPUT_INT)."'");

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

if(!$icon['iid'])

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

if(!$icon['iid'])

Zeile 333Zeile 333

$plugins->run_hooks("admin_config_post_icons_edit_commit");



$plugins->run_hooks("admin_config_post_icons_edit_commit");


			$db->update_query("icons", $updated_icon, "iid='".(int)$mybb->input['iid']."'");

			$db->update_query("icons", $updated_icon, "iid='{$icon['iid']}'");


$cache->update_posticons();



$cache->update_posticons();


Zeile 384Zeile 384

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


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

	$query = $db->simple_select("icons", "*", "iid='".(int)$mybb->input['iid']."'");

	$query = $db->simple_select("icons", "*", "iid='".$mybb->get_input('iid', MyBB::INPUT_INT)."'");

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

if(!$icon['iid'])

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

if(!$icon['iid'])

Zeile 445Zeile 445

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



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


	$pagenum = $mybb->get_input('page', 1);

	$pagenum = $mybb->get_input('page', MyBB::INPUT_INT);

	if($pagenum)
{
$start = ($pagenum - 1) * 20;

	if($pagenum)
{
$start = ($pagenum - 1) * 20;

Zeile 465Zeile 465
	while($icon = $db->fetch_array($query))
{
$icon['path'] = str_replace("{theme}", "images", $icon['path']);

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

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

		if(my_validate_url($icon['path'], true))

		{
$image = $icon['path'];
}

		{
$image = $icon['path'];
}

Zeile 474Zeile 474
			$image = "../".$icon['path'];
}


			$image = "../".$icon['path'];
}


		$table->construct_cell("<img src=\"{$image}\" alt=\"\" />", array("class" => "align_center"));

		$table->construct_cell("<img src=\"".htmlspecialchars_uni($image)."\" alt=\"\" />", array("class" => "align_center"));

		$table->construct_cell(htmlspecialchars_uni($icon['name']));

$table->construct_cell("<a href=\"index.php?module=config-post_icons&amp;action=edit&amp;iid={$icon['iid']}\">{$lang->edit}</a>", array("class" => "align_center"));

		$table->construct_cell(htmlspecialchars_uni($icon['name']));

$table->construct_cell("<a href=\"index.php?module=config-post_icons&amp;action=edit&amp;iid={$icon['iid']}\">{$lang->edit}</a>", array("class" => "align_center"));