Vergleich admin/modules/config/post_icons.php - 1.8.12 - 1.8.18

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

// Log admin action

			$cache->update_posticons();

// Log admin action

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

			log_admin_action($iid, $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 338Zeile 338
			$cache->update_posticons();

// Log admin action

			$cache->update_posticons();

// Log admin action

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

			log_admin_action($icon['iid'], $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 410Zeile 410
		$cache->update_posticons();

// Log admin action

		$cache->update_posticons();

// Log admin action

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

		log_admin_action($icon['iid'], $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 444Zeile 444
	);

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

	);

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

 

$query = $db->simple_select("icons", "COUNT(iid) AS icons");
$total_rows = $db->fetch_field($query, "icons");


$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
{

	}
else
{

Zeile 468Zeile 477
		if(my_validate_url($icon['path'], true))
{
$image = $icon['path'];

		if(my_validate_url($icon['path'], true))
{
$image = $icon['path'];

		}

		}

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

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

Zeile 479Zeile 488

$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("<a href=\"index.php?module=config-post_icons&amp;action=delete&amp;iid={$icon['iid']}&amp;my_post_key={$mybb->post_code}\" onclick=\"return AdminCP.deleteConfirmation(this, '{$lang->confirm_post_icon_deletion}')\">{$lang->delete}</a>", array("class" => "align_center"));


$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("<a href=\"index.php?module=config-post_icons&amp;action=delete&amp;iid={$icon['iid']}&amp;my_post_key={$mybb->post_code}\" onclick=\"return AdminCP.deleteConfirmation(this, '{$lang->confirm_post_icon_deletion}')\">{$lang->delete}</a>", array("class" => "align_center"));

		$table->construct_row();
}

		$table->construct_row();
}


if($table->num_rows() == 0)
{


if($table->num_rows() == 0)
{

Zeile 489Zeile 498
	}

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

	}

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


$query = $db->simple_select("icons", "COUNT(iid) AS icons");
$total_rows = $db->fetch_field($query, "icons");

 

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



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