Vergleich admin/modules/forum/announcements.php - 1.8.8 - 1.8.22

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 117Zeile 117
			if(isset($mybb->input['preview']))
{
$parser_options = array();

			if(isset($mybb->input['preview']))
{
$parser_options = array();

				$parser_options['allow_html'] = $mybb->get_input('allowhtml', MyBB::INPUT_INT);

				$parser_options['allow_html'] = $mybb->settings['announcementshtml'] && $mybb->get_input('allowhtml', MyBB::INPUT_INT);

				$parser_options['allow_mycode'] = $mybb->get_input('allowmycode', MyBB::INPUT_INT);
$parser_options['allow_smilies'] = $mybb->get_input('allowsmilies', MyBB::INPUT_INT);
$parser_options['allow_imgcode'] = 1;

				$parser_options['allow_mycode'] = $mybb->get_input('allowmycode', MyBB::INPUT_INT);
$parser_options['allow_smilies'] = $mybb->get_input('allowsmilies', MyBB::INPUT_INT);
$parser_options['allow_imgcode'] = 1;

Zeile 162Zeile 162
					"message" => $db->escape_string($mybb->input['message']),
"startdate" => $startdate,
"enddate" => $enddate,

					"message" => $db->escape_string($mybb->input['message']),
"startdate" => $startdate,
"enddate" => $enddate,

					"allowhtml" => $mybb->get_input('allowhtml', MyBB::INPUT_INT),

					"allowhtml" => (int)($mybb->settings['announcementshtml'] && $mybb->get_input('allowhtml', MyBB::INPUT_INT)),

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

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

Zeile 404Zeile 404

$form_container->output_row($lang->forums_to_appear_in." <em>*</em>", $lang->forums_to_appear_in_desc, $form->generate_forum_select('fid', $mybb->input['fid'], array('size' => 5, 'main_option' => $lang->all_forums)));



$form_container->output_row($lang->forums_to_appear_in." <em>*</em>", $lang->forums_to_appear_in_desc, $form->generate_forum_select('fid', $mybb->input['fid'], array('size' => 5, 'main_option' => $lang->all_forums)));


	$form_container->output_row($lang->allow_html." <em>*</em>", "", $form->generate_yes_no_radio('allowhtml', $mybb->input['allowhtml'], array('style' => 'width: 2em;')));




	if ($mybb->settings['announcementshtml'])
{
$form_container->output_row($lang->allow_html." <em>*</em>", "", $form->generate_yes_no_radio('allowhtml', $mybb->input['allowhtml'], array('style' => 'width: 2em;')));
}


$form_container->output_row($lang->allow_mycode." <em>*</em>", "", $form->generate_yes_no_radio('allowmycode', $mybb->input['allowmycode'], array('style' => 'width: 2em;')));



$form_container->output_row($lang->allow_mycode." <em>*</em>", "", $form->generate_yes_no_radio('allowmycode', $mybb->input['allowmycode'], array('style' => 'width: 2em;')));


Zeile 448Zeile 451
		}

if(!checkdate($mybb->get_input('starttime_month', MyBB::INPUT_INT), $mybb->get_input('starttime_day', MyBB::INPUT_INT), $mybb->get_input('starttime_year', MyBB::INPUT_INT)))

		}

if(!checkdate($mybb->get_input('starttime_month', MyBB::INPUT_INT), $mybb->get_input('starttime_day', MyBB::INPUT_INT), $mybb->get_input('starttime_year', MyBB::INPUT_INT)))

		{

		{

			$errors[] = $lang->error_invalid_start_date;
}


			$errors[] = $lang->error_invalid_start_date;
}


Zeile 459Zeile 462
		$enddate = @explode(":", $enddate[0]);

if(stristr($mybb->input['starttime_time'], "pm"))

		$enddate = @explode(":", $enddate[0]);

if(stristr($mybb->input['starttime_time'], "pm"))

		{

		{

			$startdate[0] = 12+$startdate[0];
if($startdate[0] >= 24)
{
$startdate[0] = "00";

			$startdate[0] = 12+$startdate[0];
if($startdate[0] >= 24)
{
$startdate[0] = "00";

			}
}

			}
}


if(stristr($mybb->input['endtime_time'], "pm"))
{


if(stristr($mybb->input['endtime_time'], "pm"))
{

Zeile 473Zeile 476
			if($enddate[0] >= 24)
{
$enddate[0] = "00";

			if($enddate[0] >= 24)
{
$enddate[0] = "00";

			}
}

$startdate = gmmktime((int)$startdate[0], (int)$startdate[1], 0, $mybb->get_input('starttime_month', MyBB::INPUT_INT), $mybb->get_input('starttime_day', MyBB::INPUT_INT), $mybb->get_input('starttime_year', MyBB::INPUT_INT));

			}
}

$startdate = gmmktime((int)$startdate[0], (int)$startdate[1], 0, $mybb->get_input('starttime_month', MyBB::INPUT_INT), $mybb->get_input('starttime_day', MyBB::INPUT_INT), $mybb->get_input('starttime_year', MyBB::INPUT_INT));


if($mybb->input['endtime_type'] != "2")
{


if($mybb->input['endtime_type'] != "2")
{

Zeile 492Zeile 495
		}

if(!$errors)

		}

if(!$errors)

		{

		{

			if(isset($mybb->input['preview']))
{
$parser_options = array();

			if(isset($mybb->input['preview']))
{
$parser_options = array();

				$parser_options['allow_html'] = $mybb->get_input('allowhtml', MyBB::INPUT_INT);

				$parser_options['allow_html'] = $mybb->settings['announcementshtml'] && $mybb->get_input('allowhtml', MyBB::INPUT_INT);

				$parser_options['allow_mycode'] = $mybb->get_input('allowmycode', MyBB::INPUT_INT);
$parser_options['allow_smilies'] = $mybb->get_input('allowsmilies', MyBB::INPUT_INT);
$parser_options['allow_imgcode'] = 1;

				$parser_options['allow_mycode'] = $mybb->get_input('allowmycode', MyBB::INPUT_INT);
$parser_options['allow_smilies'] = $mybb->get_input('allowsmilies', MyBB::INPUT_INT);
$parser_options['allow_imgcode'] = 1;

Zeile 541Zeile 544
					"message" => $db->escape_string($mybb->input['message']),
"startdate" => $startdate,
"enddate" => $enddate,

					"message" => $db->escape_string($mybb->input['message']),
"startdate" => $startdate,
"enddate" => $enddate,

					"allowhtml" => $mybb->get_input('allowhtml', MyBB::INPUT_INT),

					"allowhtml" => (int)($mybb->settings['announcementshtml'] && $mybb->get_input('allowhtml', MyBB::INPUT_INT)),

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

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

Zeile 581Zeile 584
		$startmonth = $mybb->input['starttime_month'];
$startmonthsel[$startmonth] = 'selected="selected"';
$startdateyear = $mybb->input['starttime_year'];

		$startmonth = $mybb->input['starttime_month'];
$startmonthsel[$startmonth] = 'selected="selected"';
$startdateyear = $mybb->input['starttime_year'];





		if($mybb->input['endtime_type'] == 1)
{
// Set time
$endtime_checked[1] = 'checked="checked"';
$endtime_checked[2] = '';

		if($mybb->input['endtime_type'] == 1)
{
// Set time
$endtime_checked[1] = 'checked="checked"';
$endtime_checked[2] = '';





			$endday = $mybb->input['endtime_day'];
$endtime = $mybb->input['endtime_time'];
$endmonth = $mybb->input['endtime_month'];

			$endday = $mybb->input['endtime_day'];
$endtime = $mybb->input['endtime_time'];
$endmonth = $mybb->input['endtime_month'];

Zeile 620Zeile 623
		$mybb->input['starttime_time'] = gmdate( $mybb->settings['timeformat'], $announcement['startdate']);

$startday = gmdate("j", $announcement['startdate']);

		$mybb->input['starttime_time'] = gmdate( $mybb->settings['timeformat'], $announcement['startdate']);

$startday = gmdate("j", $announcement['startdate']);





		$startmonth = gmdate("m", $announcement['startdate']);
$startmonthsel[$startmonth] = "selected=\"selected\"";

$startdateyear = gmdate("Y", $announcement['startdate']);

		$startmonth = gmdate("m", $announcement['startdate']);
$startmonthsel[$startmonth] = "selected=\"selected\"";

$startdateyear = gmdate("Y", $announcement['startdate']);





		$mybb->input['title'] = $announcement['subject'];
$mybb->input['message'] = $announcement['message'];

		$mybb->input['title'] = $announcement['subject'];
$mybb->input['message'] = $announcement['message'];

		$mybb->input['allowhtml'] = $announcement['allowhtml'];

		$mybb->input['allowhtml'] = $mybb->settings['announcementshtml'] && $announcement['allowhtml'];

		$mybb->input['allowsmilies'] = $announcement['allowsmilies'];
$mybb->input['allowmycode'] = $announcement['allowmycode'];
$mybb->input['fid'] = $announcement['fid'];

		$mybb->input['allowsmilies'] = $announcement['allowsmilies'];
$mybb->input['allowmycode'] = $announcement['allowmycode'];
$mybb->input['fid'] = $announcement['fid'];

Zeile 758Zeile 761

$form_container->output_row($lang->forums_to_appear_in." <em>*</em>", $lang->forums_to_appear_in_desc, $form->generate_forum_select('fid', $mybb->input['fid'], array('size' => 5, 'main_option' => $lang->all_forums)));



$form_container->output_row($lang->forums_to_appear_in." <em>*</em>", $lang->forums_to_appear_in_desc, $form->generate_forum_select('fid', $mybb->input['fid'], array('size' => 5, 'main_option' => $lang->all_forums)));


	$form_container->output_row($lang->allow_html." <em>*</em>", "", $form->generate_yes_no_radio('allowhtml', $mybb->input['allowhtml'], array('style' => 'width: 2em;')));




	if ($mybb->settings['announcementshtml'])
{
$form_container->output_row($lang->allow_html." <em>*</em>", "", $form->generate_yes_no_radio('allowhtml', $mybb->input['allowhtml'], array('style' => 'width: 2em;')));
}


$form_container->output_row($lang->allow_mycode." <em>*</em>", "", $form->generate_yes_no_radio('allowmycode', $mybb->input['allowmycode'], array('style' => 'width: 2em;')));



$form_container->output_row($lang->allow_mycode." <em>*</em>", "", $form->generate_yes_no_radio('allowmycode', $mybb->input['allowmycode'], array('style' => 'width: 2em;')));