Vergleich admin/announcements.php - 1.2.5 - 1.2.13

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 3Zeile 3
 * MyBB 1.2
* Copyright � 2006 MyBB Group, All Rights Reserved
*

 * MyBB 1.2
* Copyright � 2006 MyBB Group, All Rights Reserved
*

 * Website: http://www.mybboard.com
* License: http://www.mybboard.com/eula.html

 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/eula.html

 *

 *

 * $Id: announcements.php 2200 2006-09-05 08:31:54Z chris $

 * $Id: announcements.php 3188 2007-07-06 16:07:28Z musicalmidget $

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

Zeile 73Zeile 73
	$startdatehour = intval($mybb->input['startdatehour']);
$enddateampm = $mybb->input['enddateampm'];
$enddatehour = intval($mybb->input['enddatehour']);

	$startdatehour = intval($mybb->input['startdatehour']);
$enddateampm = $mybb->input['enddateampm'];
$enddatehour = intval($mybb->input['enddatehour']);

 

if(!$mybb->input['subject'] || !$mybb->input['message'])
{
cperror($lang->error_fill_form);
}


if($startdateampm == "pm")
{


if($startdateampm == "pm")
{

Zeile 80Zeile 85
		if($startdatehour >= 24)
{
$startdatehour = "00";

		if($startdatehour >= 24)
{
$startdatehour = "00";

		}
}

		}
}

	if($enddateampm == "pm")
{
$enddatehour = 12+$enddatehour;

	if($enddateampm == "pm")
{
$enddatehour = 12+$enddatehour;

Zeile 89Zeile 94
		{
$enddatehour = "00";
}

		{
$enddatehour = "00";
}

	}

	}

	$startdate = gmmktime($startdatehour, intval($mybb->input['startdatemin']), 0, intval($mybb->input['startdatemonth']), intval($mybb->input['startdateday']), intval($mybb->input['startdateyear']));
if($mybb->input['end'] == "never")

	$startdate = gmmktime($startdatehour, intval($mybb->input['startdatemin']), 0, intval($mybb->input['startdatemonth']), intval($mybb->input['startdateday']), intval($mybb->input['startdateyear']));
if($mybb->input['end'] == "never")

	{

	{

		$enddate = '0';

		$enddate = '0';

	}
else
{

	}
else
{

		$enddate = gmmktime($enddatehour, intval($mybb->input['enddatemin']), 0, intval($mybb->input['enddatemonth']), intval($mybb->input['enddateday']), intval($mybb->input['enddateyear']));
}
$sqlarray = array(

		$enddate = gmmktime($enddatehour, intval($mybb->input['enddatemin']), 0, intval($mybb->input['enddatemonth']), intval($mybb->input['enddateday']), intval($mybb->input['enddateyear']));
}
$sqlarray = array(

Zeile 135Zeile 140
	$startdatehour = intval($mybb->input['startdatehour']);
$enddateampm = $mybb->input['enddateampm'];
$enddatehour = intval($mybb->input['enddatehour']);

	$startdatehour = intval($mybb->input['startdatehour']);
$enddateampm = $mybb->input['enddateampm'];
$enddatehour = intval($mybb->input['enddatehour']);

 

if(!$mybb->input['subject'] || !$mybb->input['message'])
{
cperror($lang->error_fill_form);
}


if($startdateampm == "pm")
{


if($startdateampm == "pm")
{

Zeile 244Zeile 254
	}
$month = gmdate("m", time());
$monthsel[$month] = "selected";

	}
$month = gmdate("m", time());
$monthsel[$month] = "selected";

	$startdatemonth .= "<option value=\"01\" $monthsel[01]>January</option>\n";
$enddatemonth .= "<option value=\"01\" $monthsel[01]>January</option>\n";
$startdatemonth .= "<option value=\"02\" $monthsel[02]>February</option>\n";
$enddatemonth .= "<option value=\"02\" $monthsel[02]>February</option>\n";
$startdatemonth .= "<option value=\"03\" $monthsel[03]>March</option>\n";
$enddatemonth .= "<option value=\"03\" $monthsel[03]>March</option>\n";
$startdatemonth .= "<option value=\"04\" $monthsel[04]>April</option>\n";
$enddatemonth .= "<option value=\"04\" $monthsel[04]>April</option>\n";
$startdatemonth .= "<option value=\"05\" $monthsel[05]>May</option>\n";
$enddatemonth .= "<option value=\"05\" $monthsel[05]>May</option>\n";
$startdatemonth .= "<option value=\"06\" $monthsel[06]>June</option>\n";
$enddatemonth .= "<option value=\"06\" $monthsel[06]>June</option>\n";
$startdatemonth .= "<option value=\"07\" $monthsel[07]>July</option>\n";
$enddatemonth .= "<option value=\"07\" $monthsel[07]>July</option>\n";
$startdatemonth .= "<option value=\"08\" $monthsel[08]>August</option>\n";
$enddatemonth .= "<option value=\"08\" $monthsel[08]>August</option>\n";
$startdatemonth .= "<option value=\"09\" $monthsel[09]>September</option>\n";
$enddatemonth .= "<option value=\"09\" $monthsel[09]>September</option>\n";
$startdatemonth .= "<option value=\"10\" $monthsel[10]>October</option>\n";
$enddatemonth .= "<option value=\"10\" $monthsel[10]>October</option>\n";
$startdatemonth .= "<option value=\"11\" $monthsel[11]>November</option>\n";
$enddatemonth .= "<option value=\"11\" $monthsel[11]>November</option>\n";
$startdatemonth .= "<option value=\"12\" $monthsel[12]>December</option>\n";
$enddatemonth .= "<option value=\"12\" $monthsel[12]>December</option>\n";

	$startdatemonth .= "<option value=\"01\" $monthsel[01]>{$lang->month_1}</option>\n";
$enddatemonth .= "<option value=\"01\" $monthsel[01]>{$lang->month_1}</option>\n";
$startdatemonth .= "<option value=\"02\" $monthsel[02]>{$lang->month_2}</option>\n";
$enddatemonth .= "<option value=\"02\" $monthsel[02]>{$lang->month_2}</option>\n";
$startdatemonth .= "<option value=\"03\" $monthsel[03]>{$lang->month_3}</option>\n";
$enddatemonth .= "<option value=\"03\" $monthsel[03]>{$lang->month_3}</option>\n";
$startdatemonth .= "<option value=\"04\" $monthsel[04]>{$lang->month_4}</option>\n";
$enddatemonth .= "<option value=\"04\" $monthsel[04]>{$lang->month_4}</option>\n";
$startdatemonth .= "<option value=\"05\" $monthsel[05]>{$lang->month_5}</option>\n";
$enddatemonth .= "<option value=\"05\" $monthsel[05]>{$lang->month_5}</option>\n";
$startdatemonth .= "<option value=\"06\" $monthsel[06]>{$lang->month_6}</option>\n";
$enddatemonth .= "<option value=\"06\" $monthsel[06]>{$lang->month_6}</option>\n";
$startdatemonth .= "<option value=\"07\" $monthsel[07]>{$lang->month_7}</option>\n";
$enddatemonth .= "<option value=\"07\" $monthsel[07]>{$lang->month_7}</option>\n";
$startdatemonth .= "<option value=\"08\" $monthsel[08]>{$lang->month_8}</option>\n";
$enddatemonth .= "<option value=\"08\" $monthsel[08]>{$lang->month_8}</option>\n";
$startdatemonth .= "<option value=\"09\" $monthsel[09]>{$lang->month_9}</option>\n";
$enddatemonth .= "<option value=\"09\" $monthsel[09]>{$lang->month_9}</option>\n";
$startdatemonth .= "<option value=\"10\" $monthsel[10]>{$lang->month_10}</option>\n";
$enddatemonth .= "<option value=\"10\" $monthsel[10]>{$lang->month_10}</option>\n";
$startdatemonth .= "<option value=\"11\" $monthsel[11]>{$lang->month_11}</option>\n";
$enddatemonth .= "<option value=\"11\" $monthsel[11]>{$lang->month_11}</option>\n";
$startdatemonth .= "<option value=\"12\" $monthsel[12]>{$lang->month_12}</option>\n";
$enddatemonth .= "<option value=\"12\" $monthsel[12]>{$lang->month_12}</option>\n";

	$startdateyear = gmdate("Y", time());
$enddateyear = gmdate("Y", time()) + 1;


	$startdateyear = gmdate("Y", time());
$enddateyear = gmdate("Y", time()) + 1;


Zeile 412Zeile 422
	}
$startmonthsel[$startdate[1]] = "selected";
$endmonthsel[$enddate[1]] = "selected";

	}
$startmonthsel[$startdate[1]] = "selected";
$endmonthsel[$enddate[1]] = "selected";

	$startdatemonth .= "<option value=\"01\" $startmonthsel[01]>January</option>\n";
$enddatemonth .= "<option value=\"01\" $endmonthsel[01]>January</option>\n";
$startdatemonth .= "<option value=\"02\" $startmonthsel[02]>February</option>\n";
$enddatemonth .= "<option value=\"02\" $endmonthsel[02]>February</option>\n";
$startdatemonth .= "<option value=\"03\" $startmonthsel[03]>March</option>\n";
$enddatemonth .= "<option value=\"03\" $endmonthsel[03]>March</option>\n";
$startdatemonth .= "<option value=\"04\" $startmonthsel[04]>April</option>\n";
$enddatemonth .= "<option value=\"04\" $endmonthsel[04]>April</option>\n";
$startdatemonth .= "<option value=\"05\" $startmonthsel[05]>May</option>\n";
$enddatemonth .= "<option value=\"05\" $endmonthsel[05]>May</option>\n";
$startdatemonth .= "<option value=\"06\" $startmonthsel[06]>June</option>\n";
$enddatemonth .= "<option value=\"06\" $endmonthsel[06]>June</option>\n";
$startdatemonth .= "<option value=\"07\" $startmonthsel[07]>July</option>\n";
$enddatemonth .= "<option value=\"07\" $endmonthsel[07]>July</option>\n";
$startdatemonth .= "<option value=\"08\" $startmonthsel[08]>August</option>\n";
$enddatemonth .= "<option value=\"08\" $endmonthsel[08]>August</option>\n";
$startdatemonth .= "<option value=\"09\" $startmonthsel[09]>September</option>\n";
$enddatemonth .= "<option value=\"09\" $endmonthsel[09]>September</option>\n";
$startdatemonth .= "<option value=\"10\" $startmonthsel[10]>October</option>\n";
$enddatemonth .= "<option value=\"10\" $endmonthsel[10]>October</option>\n";
$startdatemonth .= "<option value=\"11\" $startmonthsel[11]>November</option>\n";
$enddatemonth .= "<option value=\"11\" $endmonthsel[11]>November</option>\n";
$startdatemonth .= "<option value=\"12\" $startmonthsel[12]>December</option>\n";
$enddatemonth .= "<option value=\"12\" $endmonthsel[12]>December</option>\n";

	$startdatemonth .= "<option value=\"01\" $startmonthsel[01]>{$lang->month_1}</option>\n";
$enddatemonth .= "<option value=\"01\" $endmonthsel[01]>{$lang->month_1}</option>\n";
$startdatemonth .= "<option value=\"02\" $startmonthsel[02]>{$lang->month_2}</option>\n";
$enddatemonth .= "<option value=\"02\" $endmonthsel[02]>{$lang->month_2}</option>\n";
$startdatemonth .= "<option value=\"03\" $startmonthsel[03]>{$lang->month_3}</option>\n";
$enddatemonth .= "<option value=\"03\" $endmonthsel[03]>{$lang->month_3}</option>\n";
$startdatemonth .= "<option value=\"04\" $startmonthsel[04]>{$lang->month_4}</option>\n";
$enddatemonth .= "<option value=\"04\" $endmonthsel[04]>{$lang->month_4}</option>\n";
$startdatemonth .= "<option value=\"05\" $startmonthsel[05]>{$lang->month_5}</option>\n";
$enddatemonth .= "<option value=\"05\" $endmonthsel[05]>{$lang->month_5}</option>\n";
$startdatemonth .= "<option value=\"06\" $startmonthsel[06]>{$lang->month_6}</option>\n";
$enddatemonth .= "<option value=\"06\" $endmonthsel[06]>{$lang->month_6}</option>\n";
$startdatemonth .= "<option value=\"07\" $startmonthsel[07]>{$lang->month_7}</option>\n";
$enddatemonth .= "<option value=\"07\" $endmonthsel[07]>{$lang->month_7}</option>\n";
$startdatemonth .= "<option value=\"08\" $startmonthsel[08]>{$lang->month_8}</option>\n";
$enddatemonth .= "<option value=\"08\" $endmonthsel[08]>{$lang->month_8}</option>\n";
$startdatemonth .= "<option value=\"09\" $startmonthsel[09]>{$lang->month_9}</option>\n";
$enddatemonth .= "<option value=\"09\" $endmonthsel[09]>{$lang->month_9}</option>\n";
$startdatemonth .= "<option value=\"10\" $startmonthsel[10]>{$lang->month_10}</option>\n";
$enddatemonth .= "<option value=\"10\" $endmonthsel[10]>{$lang->month_10}</option>\n";
$startdatemonth .= "<option value=\"11\" $startmonthsel[11]>{$lang->month_11}</option>\n";
$enddatemonth .= "<option value=\"11\" $endmonthsel[11]>{$lang->month_11}</option>\n";
$startdatemonth .= "<option value=\"12\" $startmonthsel[12]>{$lang->month_12}</option>\n";
$enddatemonth .= "<option value=\"12\" $endmonthsel[12]>{$lang->month_12}</option>\n";

	
if($announcement['enddate'])
{

	
if($announcement['enddate'])
{