Vergleich admin/announcements.php - 1.2.0 - 1.2.14

  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 2148 2006-08-27 04:10:33Z Tikitiki $

 * $Id: announcements.php 3690 2008-02-28 02:25:56Z Tikitiki $

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

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


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


	if($startdateampm == "pm")
{
$startdatehour = 12+$startdatehour;
if($startdatehour >= 24)
{
$startdatehour = "00";
}
}
if($enddateampm == "pm")
{
$enddatehour = 12+$enddatehour;
if($enddatehour >= 24)
{
$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")
{
$enddate = '0';
}
else
{






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

if($startdateampm == "pm")
{
$startdatehour = 12+$startdatehour;
if($startdatehour >= 24)
{
$startdatehour = "00";
}
}
if($enddateampm == "pm")
{
$enddatehour = 12+$enddatehour;
if($enddatehour >= 24)
{
$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")
{
$enddate = '0';
}
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 142Zeile 152
		if($startdatehour >= 24)
{
$startdatehour = "00";

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

		}

		}

	}
if($enddateampm == "pm")
{

	}
if($enddateampm == "pm")
{

Zeile 164Zeile 174
	$sqlarray = array(
"aid" => intval($mybb->input['aid']),
"fid" => $fid,

	$sqlarray = array(
"aid" => intval($mybb->input['aid']),
"fid" => $fid,

		"uid" => $mybbadmin['uid'],

 
		"subject" => $subject,
"message" => $message,
"startdate" => $startdate,

		"subject" => $subject,
"message" => $message,
"startdate" => $startdate,

Zeile 244Zeile 253
	}
$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 278Zeile 287
	makeyesnocode($lang->allow_mycode, "allowmycode", "yes");
makeyesnocode($lang->allow_smilies, "allowsmilies", "yes");
makelabelcode($lang->parent_forum, forumselect("fid", $fid, "", "", "0", $lang->global_to_all));

	makeyesnocode($lang->allow_mycode, "allowmycode", "yes");
makeyesnocode($lang->allow_smilies, "allowsmilies", "yes");
makelabelcode($lang->parent_forum, forumselect("fid", $fid, "", "", "0", $lang->global_to_all));

 
	$plugins->run_hooks("admin_announcements_add_form");

	endtable();
endform($lang->add_announcement2, $lang->reset_button);
cpfooter();

	endtable();
endform($lang->add_announcement2, $lang->reset_button);
cpfooter();

Zeile 411Zeile 421
	}
$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'])
{

Zeile 455Zeile 465
	makeyesnocode($lang->allow_smilies, "allowsmilies", "$announcement[allowsmilies]");
makelabelcode($lang->parent_forum, forumselect("fid", $announcement['fid'], "", "", "0", $lang->global_to_all));
endtable();

	makeyesnocode($lang->allow_smilies, "allowsmilies", "$announcement[allowsmilies]");
makelabelcode($lang->parent_forum, forumselect("fid", $announcement['fid'], "", "", "0", $lang->global_to_all));
endtable();

 
	$plugins->run_hooks("admin_announcements_edit_form");

	endform($lang->update_announcement, $lang->reset_button);
cpfooter();
}

	endform($lang->update_announcement, $lang->reset_button);
cpfooter();
}