Vergleich admin/modules/config/post_icons.php - 1.8.0 - 1.8.3

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 42Zeile 42
			);

$iid = $db->insert_query("icons", $new_icon);

			);

$iid = $db->insert_query("icons", $new_icon);


$cache->update_posticons();

 

$plugins->run_hooks("admin_config_post_icons_add_commit");


$plugins->run_hooks("admin_config_post_icons_add_commit");

 

$cache->update_posticons();


// Log admin action
log_admin_action($iid, $mybb->input['name']);


// Log admin action
log_admin_action($iid, $mybb->input['name']);

Zeile 53Zeile 53
			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');
}

	}

	}


$page->add_breadcrumb_item($lang->add_post_icon);
$page->output_header($lang->post_icons." - ".$lang->add_post_icon);


$page->add_breadcrumb_item($lang->add_post_icon);
$page->output_header($lang->post_icons." - ".$lang->add_post_icon);

Zeile 75Zeile 75
	);

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

	);

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





	if($errors)
{
$page->output_inline_error($errors);

	if($errors)
{
$page->output_inline_error($errors);

Zeile 87Zeile 87

$form = new Form("index.php?module=config-post_icons&action=add", "post", "add");
$form_container = new FormContainer($lang->add_post_icon);


$form = new Form("index.php?module=config-post_icons&action=add", "post", "add");
$form_container = new FormContainer($lang->add_post_icon);

	$form_container->output_row($lang->name." <em>*</em>", $lang->name_desc, $form->generate_text_box('name', $mybb->input['name'], array('id' => 'name')), 'name');
$form_container->output_row($lang->image_path." <em>*</em>", $lang->image_path_desc, $form->generate_text_box('path', $mybb->input['path'], array('id' => 'path')), 'path');

	$form_container->output_row($lang->name." <em>*</em>", $lang->name_desc, $form->generate_text_box('name', $mybb->input['name'], array('id' => 'name')), 'name');
$form_container->output_row($lang->image_path." <em>*</em>", $lang->image_path_desc, $form->generate_text_box('path', $mybb->input['path'], array('id' => 'path')), 'path');

	$form_container->end();

	$form_container->end();





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

$form->output_submit_wrapper($buttons);

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

$form->output_submit_wrapper($buttons);





	$form->end();

$page->output_footer();

	$form->end();

$page->output_footer();

Zeile 111Zeile 111
			if(!trim($mybb->input['pathfolder']))
{
$errors[] = $lang->error_missing_path_multiple;

			if(!trim($mybb->input['pathfolder']))
{
$errors[] = $lang->error_missing_path_multiple;

			}

			}


$path = $mybb->input['pathfolder'];
$dir = @opendir(MYBB_ROOT.$path);


$path = $mybb->input['pathfolder'];
$dir = @opendir(MYBB_ROOT.$path);

Zeile 123Zeile 123
			if(substr($path, -1, 1) !== "/")
{
$path .= "/";

			if(substr($path, -1, 1) !== "/")
{
$path .= "/";

			}

			}


$query = $db->simple_select("icons");



$query = $db->simple_select("icons");


Zeile 134Zeile 134
			}

$icons = array();

			}

$icons = array();

			if(!$errors)

			if(!$errors)

			{
while($file = readdir($dir))
{

			{
while($file = readdir($dir))
{

Zeile 245Zeile 245
					$db->insert_query("icons", $new_icon);
}
}

					$db->insert_query("icons", $new_icon);
}
}


$cache->update_posticons();

 

$plugins->run_hooks("admin_config_post_icons_add_multiple_commit");


$plugins->run_hooks("admin_config_post_icons_add_multiple_commit");

 

$cache->update_posticons();


// Log admin action
log_admin_action();


// Log admin action
log_admin_action();

Zeile 331Zeile 331
				'path'	=> $db->escape_string($mybb->input['path'])
);


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


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




			$plugins->run_hooks("admin_config_post_icons_edit_commit");

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


			$cache->update_posticons();

			$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
log_admin_action($icon['iid'], $mybb->input['name']);

Zeile 362Zeile 362
	if($errors)
{
$page->output_inline_error($errors);

	if($errors)
{
$page->output_inline_error($errors);

	}

	}

	else
{
$mybb->input = array_merge($mybb->input, $icon);

	else
{
$mybb->input = array_merge($mybb->input, $icon);

Zeile 390Zeile 390
	if(!$icon['iid'])
{
flash_message($lang->error_invalid_post_icon, 'error');

	if(!$icon['iid'])
{
flash_message($lang->error_invalid_post_icon, 'error');

		admin_redirect("index.php?module=config-post_icons");
}

		admin_redirect("index.php?module=config-post_icons");
}


// User clicked no
if($mybb->input['no'])


// User clicked no
if($mybb->input['no'])

Zeile 404Zeile 404
	if($mybb->request_method == "post")
{
$db->delete_query("icons", "iid='{$icon['iid']}'");

	if($mybb->request_method == "post")
{
$db->delete_query("icons", "iid='{$icon['iid']}'");


$cache->update_posticons();

 

$plugins->run_hooks("admin_config_post_icons_delete_commit");


$plugins->run_hooks("admin_config_post_icons_delete_commit");

 

$cache->update_posticons();


// Log admin action
log_admin_action($icon['iid'], $icon['name']);


// Log admin action
log_admin_action($icon['iid'], $icon['name']);