Vergleich admin/modules/config/post_icons.php - 1.8.19 - 1.8.37

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
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->name." <em>*</em>", $lang->name_desc, $form->generate_text_box('name', $mybb->get_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->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();


Zeile 143Zeile 143
						$ext = get_extension($file);
if($ext == "gif" || $ext == "jpg" || $ext == "jpeg" || $ext == "png" || $ext == "bmp")
{

						$ext = get_extension($file);
if($ext == "gif" || $ext == "jpg" || $ext == "jpeg" || $ext == "png" || $ext == "bmp")
{

							if(!$aicons[$path.$file])

							if(!isset($aicons[$path.$file]))

							{
$icons[] = $file;
}

							{
$icons[] = $file;
}

Zeile 288Zeile 288
	}

$form_container = new FormContainer($lang->add_multiple_post_icons);

	}

$form_container = new FormContainer($lang->add_multiple_post_icons);

	$form_container->output_row($lang->path_to_images." <em>*</em>", $lang->path_to_images_desc, $form->generate_text_box('pathfolder', $mybb->input['pathfolder'], array('id' => 'pathfolder')), 'pathfolder');

	$form_container->output_row($lang->path_to_images." <em>*</em>", $lang->path_to_images_desc, $form->generate_text_box('pathfolder', $mybb->get_input('pathfolder'), array('id' => 'pathfolder')), 'pathfolder');

	$form_container->end();

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

	$form_container->end();

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

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


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


	if(!$icon['iid'])

	if(!$icon)

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

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

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


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


	if(!$icon['iid'])

	if(!$icon)

	{
flash_message($lang->error_invalid_post_icon, 'error');
admin_redirect("index.php?module=config-post_icons");
}

// User clicked no

	{
flash_message($lang->error_invalid_post_icon, 'error');
admin_redirect("index.php?module=config-post_icons");
}

// User clicked no

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

	if($mybb->get_input('no'))

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

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