Vergleich admin/modules/forum/announcements.php - 1.8.5 - 1.8.19

  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 230Zeile 230

if(!$mybb->input['starttime_time'])
{


if(!$mybb->input['starttime_time'])
{

		$start_time = explode("-", gmdate("g-i-a", TIME_NOW));
$mybb->input['starttime_time'] = $start_time[0].":".$start_time[1]." ".$start_time[2];

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


	}

if(!$mybb->input['endtime_time'])
{

	}

if(!$mybb->input['endtime_time'])
{

		$end_time = explode("-", gmdate("g-i-a", TIME_NOW));
$mybb->input['endtime_time'] = $end_time[0].":".$end_time[1]." ".$end_time[2];

		$mybb->input['endtime_time'] = gmdate($mybb->settings['timeformat'], TIME_NOW);


	}

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

	}

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

Zeile 406Zeile 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 450Zeile 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 498Zeile 499
			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 543Zeile 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 619Zeile 620
			admin_redirect("index.php?module=forum-announcements");
}


			admin_redirect("index.php?module=forum-announcements");
}


		$start_time = explode("-", gmdate("g-i-a", $announcement['startdate']));
$mybb->input['starttime_time'] = $start_time[0].":".$start_time[1]." ".$start_time[2];

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



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



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


Zeile 628Zeile 628
		$startmonthsel[$startmonth] = "selected=\"selected\"";

$startdateyear = gmdate("Y", $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 641Zeile 641
			$endtime_checked[1] = "checked=\"checked\"";
$endtime_checked[2] = "";


			$endtime_checked[1] = "checked=\"checked\"";
$endtime_checked[2] = "";


			$end_time = explode("-", gmdate("g-i-a", $announcement['enddate']));
$mybb->input['endtime_time'] = $end_time[0].":".$end_time[1]." ".$end_time[2];

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



$endday = gmdate("j", $announcement['enddate']);



$endday = gmdate("j", $announcement['enddate']);


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


Zeile 881Zeile 883
	$page->output_footer();
}


	$page->output_footer();
}


 
/**
* @param DefaultTable $table
* @param int $pid
* @param int $depth
*/

function fetch_forum_announcements(&$table, $pid=0, $depth=1)
{
global $mybb, $db, $lang, $announcements, $page;

function fetch_forum_announcements(&$table, $pid=0, $depth=1)
{
global $mybb, $db, $lang, $announcements, $page;