Vergleich admin/modules/config/warning.php - 1.8.2 - 1.8.11

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 67Zeile 67
			{
$action = array(
"type" => 1,

			{
$action = array(
"type" => 1,

					"usergroup" => (int)$mybb->input['action_1_usergroup'],

					"usergroup" => $mybb->get_input('action_1_usergroup', MyBB::INPUT_INT),

					"length" => fetch_time_length($mybb->input['action_1_time'], $mybb->input['action_1_period'])
);
}

					"length" => fetch_time_length($mybb->input['action_1_time'], $mybb->input['action_1_period'])
);
}

Zeile 88Zeile 88
				);
}
$new_level = array(

				);
}
$new_level = array(

				"percentage" => (int)$mybb->input['percentage'],
"action" => serialize($action)

				"percentage" => $mybb->get_input('percentage', MyBB::INPUT_INT),
"action" => my_serialize($action)

			);

$lid = $db->insert_query("warninglevels", $new_level);

			);

$lid = $db->insert_query("warninglevels", $new_level);

Zeile 118Zeile 118
	}

$form_container = new FormContainer($lang->add_warning_level);

	}

$form_container = new FormContainer($lang->add_warning_level);

	$form_container->output_row($lang->warning_points_percentage, $lang->warning_points_percentage_desc, $form->generate_numeric_field('percentage', $mybb->input['percentage'], array('id' => 'percentage')), 'percentage');

	$form_container->output_row($lang->warning_points_percentage, $lang->warning_points_percentage_desc, $form->generate_numeric_field('percentage', $mybb->input['percentage'], array('id' => 'percentage', 'min' => 0, 'max' => 100)), 'percentage');


$query = $db->simple_select("usergroups", "*", "isbannedgroup=1");
while($group = $db->fetch_array($query))


$query = $db->simple_select("usergroups", "*", "isbannedgroup=1");
while($group = $db->fetch_array($query))

Zeile 166Zeile 166
				</tr>
<tr>
<td><small>{$lang->ban_length}</small></td>

				</tr>
<tr>
<td><small>{$lang->ban_length}</small></td>

					<td>".$form->generate_numeric_field('action_1_time', $mybb->input['action_1_time'], array('style' => 'width: 2em;'))." ".$form->generate_select_box('action_1_period', $periods, $mybb->input['action_1_period'])."</td>

					<td>".$form->generate_numeric_field('action_1_time', $mybb->input['action_1_time'], array('style' => 'width: 3em;', 'min' => 0))." ".$form->generate_select_box('action_1_period', $periods, $mybb->input['action_1_period'])."</td>

				</tr>
</table>
</dd>

				</tr>
</table>
</dd>

Zeile 175Zeile 175
			<table cellpadding=\"4\">
<tr>
<td><small>{$lang->suspension_length}</small></td>

			<table cellpadding=\"4\">
<tr>
<td><small>{$lang->suspension_length}</small></td>

					<td>".$form->generate_numeric_field('action_2_time', $mybb->input['action_2_time'], array('style' => 'width: 2em;'))." ".$form->generate_select_box('action_2_period', $periods, $mybb->input['action_2_period'])."</td>

					<td>".$form->generate_numeric_field('action_2_time', $mybb->input['action_2_time'], array('style' => 'width: 3em;', 'min' => 0))." ".$form->generate_select_box('action_2_period', $periods, $mybb->input['action_2_period'])."</td>

				</tr>
</table>
</dd>

				</tr>
</table>
</dd>

Zeile 184Zeile 184
			<table cellpadding=\"4\">
<tr>
<td><small>{$lang->moderation_length}</small></td>

			<table cellpadding=\"4\">
<tr>
<td><small>{$lang->moderation_length}</small></td>

					<td>".$form->generate_numeric_field('action_3_time', $mybb->input['action_3_time'], array('style' => 'width: 2em;'))." ".$form->generate_select_box('action_3_period', $periods, $mybb->input['action_3_period'])."</td>

					<td>".$form->generate_numeric_field('action_3_time', $mybb->input['action_3_time'], array('style' => 'width: 3em;', 'min' => 0))." ".$form->generate_select_box('action_3_period', $periods, $mybb->input['action_3_period'])."</td>

				</tr>
</table>
</dd>

				</tr>
</table>
</dd>

Zeile 205Zeile 205

if($mybb->input['action'] == "edit_level")
{


if($mybb->input['action'] == "edit_level")
{

	$query = $db->simple_select("warninglevels", "*", "lid='".(int)$mybb->input['lid']."'");

	$query = $db->simple_select("warninglevels", "*", "lid='".$mybb->get_input('lid', MyBB::INPUT_INT)."'");

	$level = $db->fetch_array($query);

// Does the warning level not exist?

	$level = $db->fetch_array($query);

// Does the warning level not exist?

Zeile 236Zeile 236
			{
$action = array(
"type" => 1,

			{
$action = array(
"type" => 1,

					"usergroup" => (int)$mybb->input['action_1_usergroup'],

					"usergroup" => $mybb->get_input('action_1_usergroup', MyBB::INPUT_INT),

					"length" => fetch_time_length($mybb->input['action_1_time'], $mybb->input['action_1_period'])
);
}

					"length" => fetch_time_length($mybb->input['action_1_time'], $mybb->input['action_1_period'])
);
}

Zeile 257Zeile 257
				);
}
$updated_level = array(

				);
}
$updated_level = array(

				"percentage" => (int)$mybb->input['percentage'],
"action" => serialize($action)

				"percentage" => $mybb->get_input('percentage', MyBB::INPUT_INT),
"action" => my_serialize($action)

			);

$plugins->run_hooks("admin_config_warning_edit_level_commit");

			);

$plugins->run_hooks("admin_config_warning_edit_level_commit");

Zeile 319Zeile 319
	}

$form_container = new FormContainer($lang->edit_warning_level);

	}

$form_container = new FormContainer($lang->edit_warning_level);

	$form_container->output_row($lang->warning_points_percentage, $lang->warning_points_percentage_desc, $form->generate_numeric_field('percentage', $mybb->input['percentage'], array('id' => 'percentage')), 'percentage');

	$form_container->output_row($lang->warning_points_percentage, $lang->warning_points_percentage_desc, $form->generate_numeric_field('percentage', $mybb->input['percentage'], array('id' => 'percentage', 'min' => 0, 'max' => 100)), 'percentage');


$query = $db->simple_select("usergroups", "*", "isbannedgroup=1");
while($group = $db->fetch_array($query))


$query = $db->simple_select("usergroups", "*", "isbannedgroup=1");
while($group = $db->fetch_array($query))

Zeile 367Zeile 367
				</tr>
<tr>
<td><small>{$lang->ban_length}</small></td>

				</tr>
<tr>
<td><small>{$lang->ban_length}</small></td>

					<td>".$form->generate_numeric_field('action_1_time', $mybb->input['action_1_time'], array('style' => 'width: 2em;'))." ".$form->generate_select_box('action_1_period', $periods, $mybb->input['action_1_period'])."</td>

					<td>".$form->generate_numeric_field('action_1_time', $mybb->input['action_1_time'], array('style' => 'width: 3em;', 'min' => 0))." ".$form->generate_select_box('action_1_period', $periods, $mybb->input['action_1_period'])."</td>

				</tr>
</table>
</dd>

				</tr>
</table>
</dd>

Zeile 376Zeile 376
			<table cellpadding=\"4\">
<tr>
<td><small>{$lang->suspension_length}</small></td>

			<table cellpadding=\"4\">
<tr>
<td><small>{$lang->suspension_length}</small></td>

					<td>".$form->generate_numeric_field('action_2_time', $mybb->input['action_2_time'], array('style' => 'width: 2em;'))." ".$form->generate_select_box('action_2_period', $periods, $mybb->input['action_2_period'])."</td>

					<td>".$form->generate_numeric_field('action_2_time', $mybb->input['action_2_time'], array('style' => 'width: 3em;', 'min' => 0))." ".$form->generate_select_box('action_2_period', $periods, $mybb->input['action_2_period'])."</td>

				</tr>
</table>
</dd>

				</tr>
</table>
</dd>

Zeile 385Zeile 385
			<table cellpadding=\"4\">
<tr>
<td><small>{$lang->moderation_length}</small></td>

			<table cellpadding=\"4\">
<tr>
<td><small>{$lang->moderation_length}</small></td>

					<td>".$form->generate_numeric_field('action_3_time', $mybb->input['action_3_time'], array('style' => 'width: 2em;'))." ".$form->generate_select_box('action_3_period', $periods, $mybb->input['action_3_period'])."</td>

					<td>".$form->generate_numeric_field('action_3_time', $mybb->input['action_3_time'], array('style' => 'width: 3em;', 'min' => 0))." ".$form->generate_select_box('action_3_period', $periods, $mybb->input['action_3_period'])."</td>

				</tr>
</table>
</dd>

				</tr>
</table>
</dd>

Zeile 406Zeile 406

if($mybb->input['action'] == "delete_level")
{


if($mybb->input['action'] == "delete_level")
{

	$query = $db->simple_select("warninglevels", "*", "lid='".(int)$mybb->input['lid']."'");

	$query = $db->simple_select("warninglevels", "*", "lid='".$mybb->get_input('lid', MyBB::INPUT_INT)."'");

	$level = $db->fetch_array($query);

// Does the warning level not exist?

	$level = $db->fetch_array($query);

// Does the warning level not exist?

Zeile 463Zeile 463
		{
$new_type = array(
"title" => $db->escape_string($mybb->input['title']),

		{
$new_type = array(
"title" => $db->escape_string($mybb->input['title']),

				"points" => (int)$mybb->input['points'],

				"points" => $mybb->get_input('points', MyBB::INPUT_INT),

				"expirationtime" =>  fetch_time_length($mybb->input['expire_time'], $mybb->input['expire_period'])
);


				"expirationtime" =>  fetch_time_length($mybb->input['expire_time'], $mybb->input['expire_period'])
);


Zeile 502Zeile 502

$form_container = new FormContainer($lang->add_warning_type);
$form_container->output_row($lang->title." <em>*</em>", "", $form->generate_text_box('title', $mybb->input['title'], array('id' => 'title')), 'title');


$form_container = new FormContainer($lang->add_warning_type);
$form_container->output_row($lang->title." <em>*</em>", "", $form->generate_text_box('title', $mybb->input['title'], array('id' => 'title')), 'title');

	$form_container->output_row($lang->points_to_add." <em>*</em>", $lang->points_to_add_desc, $form->generate_numeric_field('points', $mybb->input['points'], array('id' => 'points')), 'points');

	$form_container->output_row($lang->points_to_add." <em>*</em>", $lang->points_to_add_desc, $form->generate_numeric_field('points', $mybb->input['points'], array('id' => 'points', 'min' => 0, 'max' => $mybb->settings['maxwarningpoints'])), 'points');

	$expiration_periods = array(
"hours" => $lang->expiration_hours,
"days" => $lang->expiration_days,

	$expiration_periods = array(
"hours" => $lang->expiration_hours,
"days" => $lang->expiration_days,

Zeile 510Zeile 510
		"months" => $lang->expiration_months,
"never" => $lang->expiration_never
);

		"months" => $lang->expiration_months,
"never" => $lang->expiration_never
);

	$form_container->output_row($lang->warning_expiry, $lang->warning_expiry_desc, $form->generate_numeric_field('expire_time', $mybb->input['expire_time'], array('id' => 'expire_time'))." ".$form->generate_select_box('expire_period', $expiration_periods, $mybb->input['expire_period'], array('id' => 'expire_period')), 'expire_time');

	$form_container->output_row($lang->warning_expiry, $lang->warning_expiry_desc, $form->generate_numeric_field('expire_time', $mybb->input['expire_time'], array('id' => 'expire_time', 'min' => 0))." ".$form->generate_select_box('expire_period', $expiration_periods, $mybb->input['expire_period'], array('id' => 'expire_period')), 'expire_time');

	$form_container->end();

$buttons[] = $form->generate_submit_button($lang->save_warning_type);

	$form_container->end();

$buttons[] = $form->generate_submit_button($lang->save_warning_type);

Zeile 523Zeile 523

if($mybb->input['action'] == "edit_type")
{


if($mybb->input['action'] == "edit_type")
{

	$query = $db->simple_select("warningtypes", "*", "tid='".$mybb->get_input('tid', 1)."'");

	$query = $db->simple_select("warningtypes", "*", "tid='".$mybb->get_input('tid', MyBB::INPUT_INT)."'");

	$type = $db->fetch_array($query);

// Does the warning type not exist?

	$type = $db->fetch_array($query);

// Does the warning type not exist?

Zeile 551Zeile 551
		{
$updated_type = array(
"title" => $db->escape_string($mybb->input['title']),

		{
$updated_type = array(
"title" => $db->escape_string($mybb->input['title']),

				"points" => (int)$mybb->input['points'],

				"points" => $mybb->get_input('points', MyBB::INPUT_INT),

				"expirationtime" =>  fetch_time_length($mybb->input['expire_time'], $mybb->input['expire_period'])
);


				"expirationtime" =>  fetch_time_length($mybb->input['expire_time'], $mybb->input['expire_period'])
);


Zeile 598Zeile 598

$form_container = new FormContainer($lang->edit_warning_type);
$form_container->output_row($lang->title." <em>*</em>", "", $form->generate_text_box('title', $mybb->input['title'], array('id' => 'title')), 'title');


$form_container = new FormContainer($lang->edit_warning_type);
$form_container->output_row($lang->title." <em>*</em>", "", $form->generate_text_box('title', $mybb->input['title'], array('id' => 'title')), 'title');

	$form_container->output_row($lang->points_to_add." <em>*</em>", $lang->points_to_add_desc, $form->generate_numeric_field('points', $mybb->input['points'], array('id' => 'points')), 'points');

	$form_container->output_row($lang->points_to_add." <em>*</em>", $lang->points_to_add_desc, $form->generate_numeric_field('points', $mybb->input['points'], array('id' => 'points', 'min' => 0, 'max' => $mybb->settings['maxwarningpoints'])), 'points');

	$expiration_periods = array(
"hours" => $lang->expiration_hours,
"days" => $lang->expiration_days,

	$expiration_periods = array(
"hours" => $lang->expiration_hours,
"days" => $lang->expiration_days,

Zeile 606Zeile 606
		"months" => $lang->expiration_months,
"never" => $lang->expiration_never
);

		"months" => $lang->expiration_months,
"never" => $lang->expiration_never
);

	$form_container->output_row($lang->warning_expiry, $lang->warning_expiry_desc, $form->generate_numeric_field('expire_time', $mybb->input['expire_time'], array('id' => 'expire_time'))." ".$form->generate_select_box('expire_period', $expiration_periods, $mybb->input['expire_period'], array('id' => 'expire_period')), 'expire_time');

	$form_container->output_row($lang->warning_expiry, $lang->warning_expiry_desc, $form->generate_numeric_field('expire_time', $mybb->input['expire_time'], array('id' => 'expire_time', 'min' => 0))." ".$form->generate_select_box('expire_period', $expiration_periods, $mybb->input['expire_period'], array('id' => 'expire_period')), 'expire_time');

	$form_container->end();

$buttons[] = $form->generate_submit_button($lang->save_warning_type);

	$form_container->end();

$buttons[] = $form->generate_submit_button($lang->save_warning_type);

Zeile 619Zeile 619

if($mybb->input['action'] == "delete_type")
{


if($mybb->input['action'] == "delete_type")
{

	$query = $db->simple_select("warningtypes", "*", "tid='".$mybb->get_input('tid', 1)."'");

	$query = $db->simple_select("warningtypes", "*", "tid='".$mybb->get_input('tid', MyBB::INPUT_INT)."'");

	$type = $db->fetch_array($query);

// Does the warning type not exist?

	$type = $db->fetch_array($query);

// Does the warning type not exist?