Vergleich admin/modules/forum/announcements.php - 1.8.4 - 1.8.11

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
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" => $db->escape_string($mybb->input['allowhtml']),
"allowmycode" => $db->escape_string($mybb->input['allowmycode']),
"allowsmilies" => $db->escape_string($mybb->input['allowsmilies']),

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

				);

$aid = $db->insert_query("announcements", $insert_announcement);

				);

$aid = $db->insert_query("announcements", $insert_announcement);

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 543Zeile 541
					"message" => $db->escape_string($mybb->input['message']),
"startdate" => $startdate,
"enddate" => $enddate,

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

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

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

				);

$plugins->run_hooks("admin_forum_announcements_edit_commit");

				);

$plugins->run_hooks("admin_forum_announcements_edit_commit");

Zeile 619Zeile 617
			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 641Zeile 638
			$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 881Zeile 877
	$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;