Vergleich calendar.php - 1.4.4 - 1.4.8

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/about/license
*

 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/about/license
*

 * $Id: calendar.php 4269 2008-11-13 05:48:19Z Tikitiki $

 * $Id: calendar.php 4351 2009-04-17 02:37:21Z Tikitiki $

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

Zeile 119Zeile 119
			"year" => $mybb->input['end_year'],
"time" => $mybb->input['end_time']
);

			"year" => $mybb->input['end_year'],
"time" => $mybb->input['end_time']
);

		$event['timezone'] = $mybb->input['timezone'];

		$event['timezone'] = intval($mybb->input['timezone']);

		$event['ignoretimezone'] =	intval($mybb->input['ignoretimezone']);
$repeats = array();
switch($mybb->input['repeats'])

		$event['ignoretimezone'] =	intval($mybb->input['ignoretimezone']);
$repeats = array();
switch($mybb->input['repeats'])

Zeile 127Zeile 127
			case 1:
$repeats['repeats'] = 1;
$repeats['days'] = $mybb->input['repeats_1_days'];

			case 1:
$repeats['repeats'] = 1;
$repeats['days'] = $mybb->input['repeats_1_days'];

				break;

				break;

			case 2:
$repeats['repeats'] = 2;
break;

			case 2:
$repeats['repeats'] = 2;
break;

Zeile 135Zeile 135
				$repeats['repeats'] = 3;
$repeats['weeks'] = $mybb->input['repeats_3_weeks'];
if(!is_array($mybb->input['repeats_3_days']))

				$repeats['repeats'] = 3;
$repeats['weeks'] = $mybb->input['repeats_3_weeks'];
if(!is_array($mybb->input['repeats_3_days']))

				{

				{

					$mybb->input['repeats_3_days'] = array();
}
ksort($mybb->input['repeats_3_days']);

					$mybb->input['repeats_3_days'] = array();
}
ksort($mybb->input['repeats_3_days']);

Zeile 253Zeile 253
	}

if($mybb->request_method == "post")

	}

if($mybb->request_method == "post")

	{
$single_day = $mybb->input['single_day'];
$single_month[$mybb->input['single_month']] = " selected=\"selected\"";
$single_year = $mybb->input['single_year'];
$start_day = $mybb->input['start_day'];
$start_month[$mybb->input['start_month']] = " selected=\"selected\"";
$start_year = $mybb->input['start_year'];
$start_time = htmlspecialchars_uni($mybb->input['start_time']);
$end_day = $mybb->input['end_day'];
$end_month[$mybb->input['end_month']] = " selected=\"selected\"";
$end_year = $mybb->input['end_year'];
$end_time = htmlspecialchars_uni($mybb->input['end_time']);
if($mybb->input['type'] == "single")
{
$type_single = "checked=\"checked\"";
$type = "single";
}
else
{
$type_ranged = "checked=\"checked\"";
$type = "ranged";
}
if($mybb->input['repeats'])
{
$repeats_sel[$mybb->input['repeats']] = " selected=\"selected\"";
}
$repeats_1_days = intval($mybb->input['repeats_1_days']);
$repeats_3_weeks = intval($mybb->input['repeats_3_weeks']);
if(is_array($mybb->input['repeats_3_days']))
{
foreach($mybb->input['repeats_3_days'] as $day => $val)
{
if($val != 1) continue;
$day = intval($day);
$repeats_3_days[$day] = " checked=\"checked\"";
}
}
if($mybb->input['repeats_4_type'] == 1)
{
$repeats_4_type[1] = "checked=\"checked\"";
}
else
{
$repeats_4_type[2] = "checked=\"checked\"";
}
$repeats_4_day = intval($mybb->input['repeats_4_day']);
$repeats_4_months = intval($mybb->input['repeats_4_months']);
$repeats_4_occurance[$mybb->input['repeats_4_occurance']] = "selected=\"selected\"";
$repeats_4_weekday[$mybb->input['repeats_4_weekday']] = "selected=\"selected\"";
$repeats_4_months2 = intval($mybb->input['repeats_4_months2']);
if($mybb->input['repeats_5_type'] == 1)
{
$repeats_5_type[1] = "checked=\"checked\"";
}
else
{
$repeats_5_type[2] = "checked=\"checked\"";
}
$repeats_5_day = intval($mybb->input['repeats_5_day']);
$repeats_5_month[$mybb->input['repeats_5_month']] = "selected=\"selected\"";
$repeats_5_years = intval($mybb->input['repeats_5_years']);
$repeats_5_occurance[$mybb->input['repeats_5_occurance']] = "selected=\"selected\"";
$repeats_5_weekday[$mybb->input['repeats_5_weekday']] = "selected=\"selected\"";
$repeats_5_month2[$mybb->input['repeats_5_month2']] = "selected=\"selected\"";
$repeats_5_years2 = intval($mybb->input['repeats_5_years2']);

$timezone = $mybb->input['timezone'];
}
else

	{
$single_day = $mybb->input['single_day'];
$single_month[$mybb->input['single_month']] = " selected=\"selected\"";
$single_year = $mybb->input['single_year'];
$start_day = $mybb->input['start_day'];
$start_month[$mybb->input['start_month']] = " selected=\"selected\"";
$start_year = $mybb->input['start_year'];
$start_time = htmlspecialchars_uni($mybb->input['start_time']);
$end_day = $mybb->input['end_day'];
$end_month[$mybb->input['end_month']] = " selected=\"selected\"";
$end_year = $mybb->input['end_year'];
$end_time = htmlspecialchars_uni($mybb->input['end_time']);
if($mybb->input['type'] == "single")
{
$type_single = "checked=\"checked\"";
$type = "single";
}
else
{
$type_ranged = "checked=\"checked\"";
$type = "ranged";
}
if($mybb->input['repeats'])
{
$repeats_sel[$mybb->input['repeats']] = " selected=\"selected\"";
}
$repeats_1_days = intval($mybb->input['repeats_1_days']);
$repeats_3_weeks = intval($mybb->input['repeats_3_weeks']);
if(is_array($mybb->input['repeats_3_days']))
{
foreach($mybb->input['repeats_3_days'] as $day => $val)
{
if($val != 1) continue;
$day = intval($day);
$repeats_3_days[$day] = " checked=\"checked\"";
}
}
if($mybb->input['repeats_4_type'] == 1)
{
$repeats_4_type[1] = "checked=\"checked\"";
}
else
{
$repeats_4_type[2] = "checked=\"checked\"";
}
$repeats_4_day = intval($mybb->input['repeats_4_day']);
$repeats_4_months = intval($mybb->input['repeats_4_months']);
$repeats_4_occurance[$mybb->input['repeats_4_occurance']] = "selected=\"selected\"";
$repeats_4_weekday[$mybb->input['repeats_4_weekday']] = "selected=\"selected\"";
$repeats_4_months2 = intval($mybb->input['repeats_4_months2']);
if($mybb->input['repeats_5_type'] == 1)
{
$repeats_5_type[1] = "checked=\"checked\"";
}
else
{
$repeats_5_type[2] = "checked=\"checked\"";
}
$repeats_5_day = intval($mybb->input['repeats_5_day']);
$repeats_5_month[$mybb->input['repeats_5_month']] = "selected=\"selected\"";
$repeats_5_years = intval($mybb->input['repeats_5_years']);
$repeats_5_occurance[$mybb->input['repeats_5_occurance']] = "selected=\"selected\"";
$repeats_5_weekday[$mybb->input['repeats_5_weekday']] = "selected=\"selected\"";
$repeats_5_month2[$mybb->input['repeats_5_month2']] = "selected=\"selected\"";
$repeats_5_years2 = intval($mybb->input['repeats_5_years2']);

$timezone = $mybb->input['timezone'];
}
else

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

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

Zeile 721Zeile 721
		if($mybb->input['repeats_4_type'] == 1)
{
$repeats_4_type[1] = "checked=\"checked\"";

		if($mybb->input['repeats_4_type'] == 1)
{
$repeats_4_type[1] = "checked=\"checked\"";

		}
else
{

		}
else
{

			$repeats_4_type[2] = "checked=\"checked\"";
}
$repeats_4_day = intval($mybb->input['repeats_4_day']);

			$repeats_4_type[2] = "checked=\"checked\"";
}
$repeats_4_day = intval($mybb->input['repeats_4_day']);

Zeile 748Zeile 748
		$repeats_5_years2 = intval($mybb->input['repeats_5_years2']);

if($mybb->input['private'] == 1)

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

if($mybb->input['private'] == 1)

		{
$privatecheck = " checked=\"checked\"";

		{
$privatecheck = " checked=\"checked\"";

		}

if($mybb->input['ignoretimezone'] == 1)

		}

if($mybb->input['ignoretimezone'] == 1)

Zeile 799Zeile 799
				{
case 1:
$repeats_1_days = $repeats['days'];

				{
case 1:
$repeats_1_days = $repeats['days'];

						$repeats_3_weeks = 1;
$repeats_4_type[1] = "checked=\"checked\"";
$repeats_4_day = 1;
$repeats_4_months = 1;
$repeats_4_months2 = 1;
$repeats_5_type[1] = "checked=\"checked\"";
$repeats_5_day = 1;

						$repeats_3_weeks = 1;
$repeats_4_type[1] = "checked=\"checked\"";
$repeats_4_day = 1;
$repeats_4_months = 1;
$repeats_4_months2 = 1;
$repeats_5_type[1] = "checked=\"checked\"";
$repeats_5_day = 1;

						$repeats_5_years = $repeats_5_years2 = 1;
break;
case 3:

						$repeats_5_years = $repeats_5_years2 = 1;
break;
case 3:

Zeile 817Zeile 817
							{
$repeats_3_days[$weekday] = " checked=\"checked\"";
}

							{
$repeats_3_days[$weekday] = " checked=\"checked\"";
}

						}
$repeats_4_type[1] = "checked=\"checked\"";
$repeats_4_day = 1;
$repeats_4_months = 1;
$repeats_4_months2 = 1;
$repeats_5_type[1] = "checked=\"checked\"";
$repeats_5_day = 1;
$repeats_5_years = $repeats_5_years2 = 1;

						}
$repeats_4_type[1] = "checked=\"checked\"";
$repeats_4_day = 1;
$repeats_4_months = 1;
$repeats_4_months2 = 1;
$repeats_5_type[1] = "checked=\"checked\"";
$repeats_5_day = 1;
$repeats_5_years = $repeats_5_years2 = 1;

						break;
case 4:
$repeats_1_days = 1;

						break;
case 4:
$repeats_1_days = 1;

Zeile 899Zeile 899
		if($i == $single_year)
{
$single_years .= "<option value=\"{$i}\" selected=\"selected\">{$i}</option>\n";

		if($i == $single_year)
{
$single_years .= "<option value=\"{$i}\" selected=\"selected\">{$i}</option>\n";

		}

		}

		else
{
$single_years .= "<option value=\"{$i}\">{$i}</option>\n";
}
if($i == $start_year)

		else
{
$single_years .= "<option value=\"{$i}\">{$i}</option>\n";
}
if($i == $start_year)

		{

		{

			$start_years .= "<option value=\"{$i}\" selected=\"selected\">{$i}</option>\n";

			$start_years .= "<option value=\"{$i}\" selected=\"selected\">{$i}</option>\n";

		}
else

		}
else

		{
$start_years .= "<option value=\"{$i}\">{$i}</option>\n";

		{
$start_years .= "<option value=\"{$i}\">{$i}</option>\n";

		}

		}

		if($i == $end_year)
{
$end_years .= "<option value=\"{$i}\" selected=\"selected\">{$i}</option>\n";

		if($i == $end_year)
{
$end_years .= "<option value=\"{$i}\" selected=\"selected\">{$i}</option>\n";

Zeile 924Zeile 924

// Construct option list for days
for($i = 1; $i <= 31; ++$i)


// Construct option list for days
for($i = 1; $i <= 31; ++$i)

	{

	{

		if($i == $single_day)
{
$single_days .= "<option value=\"{$i}\" selected=\"selected\">{$i}</option>\n";

		if($i == $single_day)
{
$single_days .= "<option value=\"{$i}\" selected=\"selected\">{$i}</option>\n";

Zeile 1729Zeile 1729
	$yearsel = '';
for($i = my_date("Y"); $i < (my_date("Y") + 5); ++$i)
{

	$yearsel = '';
for($i = my_date("Y"); $i < (my_date("Y") + 5); ++$i)
{

		if($i == my_date("Y"))
{
$yearsel .= "<option value=\"$i\">$i</option>\n";
}

		$yearsel .= "<option value=\"$i\">$i</option>\n";




	}

if($mybb->usergroup['canaddevents'] == 1)

	}

if($mybb->usergroup['canaddevents'] == 1)