Vergleich admin/modules/config/calendars.php - 1.8.4 - 1.8.11

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 26Zeile 26
	$sub_tabs['add_calendar'] = array(
'title' => $lang->add_calendar,
'link' => "index.php?module=config-calendars&action=add",

	$sub_tabs['add_calendar'] = array(
'title' => $lang->add_calendar,
'link' => "index.php?module=config-calendars&action=add",

 
		'description' => $lang->add_calendar_desc

	);
}


	);
}


Zeile 40Zeile 41
		$plugins->run_hooks("admin_config_calendars_add_commit");

if(!trim($mybb->input['name']))

		$plugins->run_hooks("admin_config_calendars_add_commit");

if(!trim($mybb->input['name']))

		{

		{

			$errors[] = $lang->error_missing_name;

			$errors[] = $lang->error_missing_name;

		}


		}


		if(!isset($mybb->input['disporder']))
{
$errors[] = $lang->error_missing_order;

		if(!isset($mybb->input['disporder']))
{
$errors[] = $lang->error_missing_order;

		}


		}


		if(!$errors)
{
$calendar = array(

		if(!$errors)
{
$calendar = array(

Zeile 58Zeile 59
				"eventlimit" => $mybb->get_input('eventlimit', MyBB::INPUT_INT),
"showbirthdays" => $mybb->get_input('showbirthdays', MyBB::INPUT_INT),
"moderation" => $mybb->get_input('moderation', MyBB::INPUT_INT),

				"eventlimit" => $mybb->get_input('eventlimit', MyBB::INPUT_INT),
"showbirthdays" => $mybb->get_input('showbirthdays', MyBB::INPUT_INT),
"moderation" => $mybb->get_input('moderation', MyBB::INPUT_INT),

				"allowhtml" => $db->escape_string($mybb->input['allowhtml']),
"allowmycode" => $db->escape_string($mybb->input['allowmycode']),
"allowimgcode" => $db->escape_string($mybb->input['allowimgcode']),
"allowvideocode" => $db->escape_string($mybb->input['allowvideocode']),
"allowsmilies" => $db->escape_string($mybb->input['allowsmilies'])

				"allowhtml" => $mybb->get_input('allowhtml', MyBB::INPUT_INT),
"allowmycode" => $mybb->get_input('allowmycode', MyBB::INPUT_INT),
"allowimgcode" => $mybb->get_input('allowimgcode', MyBB::INPUT_INT),
"allowvideocode" => $mybb->get_input('allowvideocode', MyBB::INPUT_INT),
"allowsmilies" => $mybb->get_input('allowsmilies', MyBB::INPUT_INT)

			);

$plugins->run_hooks("admin_config_calendars_add_commit_start");

			);

$plugins->run_hooks("admin_config_calendars_add_commit_start");

Zeile 77Zeile 78
			flash_message($lang->success_calendar_created, 'success');
admin_redirect("index.php?module=config-calendars");
}

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

	}

	}

	else
{
$mybb->input = array_merge($mybb->input, array(

	else
{
$mybb->input = array_merge($mybb->input, array(

Zeile 91Zeile 92

$page->add_breadcrumb_item($lang->add_calendar);
$page->output_header($lang->calendars." - ".$lang->add_calendar);


$page->add_breadcrumb_item($lang->add_calendar);
$page->output_header($lang->calendars." - ".$lang->add_calendar);


$sub_tabs['add_calendar'] = array(
'title' => $lang->add_calendar,
'link' => "index.php?module=config-calendars&action=add",
'description' => $lang->add_calendar_desc
);

 

$page->output_nav_tabs($sub_tabs, 'add_calendar');
$form = new Form("index.php?module=config-calendars&action=add", "post");


$page->output_nav_tabs($sub_tabs, 'add_calendar');
$form = new Form("index.php?module=config-calendars&action=add", "post");



 

if($errors)
{


if($errors)
{

Zeile 308Zeile 302
				"eventlimit" => $mybb->get_input('eventlimit', MyBB::INPUT_INT),
"showbirthdays" => $mybb->get_input('showbirthdays', MyBB::INPUT_INT),
"moderation" => $mybb->get_input('moderation', MyBB::INPUT_INT),

				"eventlimit" => $mybb->get_input('eventlimit', MyBB::INPUT_INT),
"showbirthdays" => $mybb->get_input('showbirthdays', MyBB::INPUT_INT),
"moderation" => $mybb->get_input('moderation', MyBB::INPUT_INT),

				"allowhtml" => $db->escape_string($mybb->input['allowhtml']),
"allowmycode" => $db->escape_string($mybb->input['allowmycode']),
"allowimgcode" => $db->escape_string($mybb->input['allowimgcode']),
"allowvideocode" => $db->escape_string($mybb->input['allowvideocode']),
"allowsmilies" => $db->escape_string($mybb->input['allowsmilies'])

				"allowhtml" => $mybb->get_input('allowhtml', MyBB::INPUT_INT),
"allowmycode" => $mybb->get_input('allowmycode', MyBB::INPUT_INT),
"allowimgcode" => $mybb->get_input('allowimgcode', MyBB::INPUT_INT),
"allowvideocode" => $mybb->get_input('allowvideocode', MyBB::INPUT_INT),
"allowsmilies" => $mybb->get_input('allowsmilies', MyBB::INPUT_INT)

			);

$plugins->run_hooks("admin_config_calendars_edit_commit");


			);

$plugins->run_hooks("admin_config_calendars_edit_commit");


			$db->update_query("calendars", $updated_calendar, "cid = '".$mybb->get_input('cid', MyBB::INPUT_INT)."'");

			$db->update_query("calendars", $updated_calendar, "cid='{$calendar['cid']}'");


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


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