Vergleich admin/modules/config/post_icons.php - 1.6.10 - 1.6.17

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 49Zeile 49
			$plugins->run_hooks("admin_config_post_icons_add_commit");

// Log admin action

			$plugins->run_hooks("admin_config_post_icons_add_commit");

// Log admin action

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

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


flash_message($lang->success_post_icon_added, 'success');
admin_redirect('index.php?module=config-post_icons');


flash_message($lang->success_post_icon_added, 'success');
admin_redirect('index.php?module=config-post_icons');

Zeile 324Zeile 324

if(!$errors)
{


if(!$errors)
{

			$icon = array(

			$updated_icon = array(

				'name'	=> $db->escape_string($mybb->input['name']),
'path' => $db->escape_string($mybb->input['path'])
);


				'name'	=> $db->escape_string($mybb->input['name']),
'path' => $db->escape_string($mybb->input['path'])
);


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

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

			
$cache->update_posticons();

$plugins->run_hooks("admin_config_post_icons_edit_commit");

// Log admin action

			
$cache->update_posticons();

$plugins->run_hooks("admin_config_post_icons_edit_commit");

// Log admin action

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

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


flash_message($lang->success_post_icon_updated, 'success');
admin_redirect('index.php?module=config-post_icons');


flash_message($lang->success_post_icon_updated, 'success');
admin_redirect('index.php?module=config-post_icons');

Zeile 408Zeile 408
		$plugins->run_hooks("admin_config_post_icons_delete_commit");

// Log admin action

		$plugins->run_hooks("admin_config_post_icons_delete_commit");

// Log admin action

		log_admin_action($icon['iid'], $icon['name']);

		log_admin_action($icon['iid'], htmlspecialchars_uni($icon['name']));


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


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

Zeile 471Zeile 471
			$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"));