Vergleich admin/announcements.php - 1.2.0 - 1.2.9

  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 3171 2007-06-29 04:57:39Z chris $

 */

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 278Zeile 288
	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 455Zeile 466
	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();
}