Vergleich admin/modules/config/warning.php - 1.4.2 - 1.4.7

  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: warning.php 3790 2008-04-23 22:50:33Z Tikitiki $

 * $Id: warning.php 4304 2009-01-02 01:11:56Z chris $

 */

// Disallow direct access to this file for security reasons

 */

// Disallow direct access to this file for security reasons

Zeile 127Zeile 127
		"days" => $lang->expiration_days,
"weeks" => $lang->expiration_weeks,
"months" => $lang->expiration_months,

		"days" => $lang->expiration_days,
"weeks" => $lang->expiration_weeks,
"months" => $lang->expiration_months,

		"never" => $lang->expiration_never
);

$actions = "<script type=\"text/javascript\">
function checkAction()
{
var checked = '';
$$('.actions_check').each(function(e)
{
if(e.checked == true)
{
checked = e.value;
}
});
$$('.actions').each(function(e)
{
Element.hide(e);
});
if($('action_'+checked))
{
Element.show('action_'+checked);
}
}
</script>
<dl style=\"margin-top: 0; margin-bottom: 0; width: 100%;\">
<dt><label style=\"display: block;\"><input type=\"radio\" name=\"action_type\" value=\"1\" {$action_checked[1]} class=\"actions_check\" onclick=\"checkAction();\" style=\"vertical-align: middle;\" /> <strong>{$lang->ban_user}</strong></label></dt>
<dd style=\"margin-top: 4px;\" id=\"action_1\" class=\"actions\">
<table cellpadding=\"4\">
<tr>
<td><small>{$lang->banned_group}</small></td>
<td>".$form->generate_select_box('action_1_usergroup', $banned_groups, $mybb->input['action_1_usergroup'])."</td>
</tr>
<tr>
<td><small>{$lang->ban_length}</small></td>
<td>".$form->generate_text_box('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>
</tr>
</table>
</dd>
<dt><label style=\"display: block;\"><input type=\"radio\" name=\"action_type\" value=\"2\" {$action_checked[2]} class=\"actions_check\" onclick=\"checkAction();\" style=\"vertical-align: middle;\" /> <strong>{$lang->suspend_posting_privileges}</strong></label></dt>
<dd style=\"margin-top: 4px;\" id=\"action_2\" class=\"actions\">
<table cellpadding=\"4\">
<tr>
<td><small>{$lang->suspension_length}</small></td>
<td>".$form->generate_text_box('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>
</tr>
</table>
</dd>

		"never" => $lang->permanent
);

$actions = "<script type=\"text/javascript\">
function checkAction()
{
var checked = '';
$$('.actions_check').each(function(e)
{
if(e.checked == true)
{
checked = e.value;
}
});
$$('.actions').each(function(e)
{
Element.hide(e);
});
if($('action_'+checked))
{
Element.show('action_'+checked);
}
}
</script>
<dl style=\"margin-top: 0; margin-bottom: 0; width: 100%;\">
<dt><label style=\"display: block;\"><input type=\"radio\" name=\"action_type\" value=\"1\" {$action_checked[1]} class=\"actions_check\" onclick=\"checkAction();\" style=\"vertical-align: middle;\" /> <strong>{$lang->ban_user}</strong></label></dt>
<dd style=\"margin-top: 4px;\" id=\"action_1\" class=\"actions\">
<table cellpadding=\"4\">
<tr>
<td><small>{$lang->banned_group}</small></td>
<td>".$form->generate_select_box('action_1_usergroup', $banned_groups, $mybb->input['action_1_usergroup'])."</td>
</tr>
<tr>
<td><small>{$lang->ban_length}</small></td>
<td>".$form->generate_text_box('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>
</tr>
</table>
</dd>
<dt><label style=\"display: block;\"><input type=\"radio\" name=\"action_type\" value=\"2\" {$action_checked[2]} class=\"actions_check\" onclick=\"checkAction();\" style=\"vertical-align: middle;\" /> <strong>{$lang->suspend_posting_privileges}</strong></label></dt>
<dd style=\"margin-top: 4px;\" id=\"action_2\" class=\"actions\">
<table cellpadding=\"4\">
<tr>
<td><small>{$lang->suspension_length}</small></td>
<td>".$form->generate_text_box('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>
</tr>
</table>
</dd>

		<dt><label style=\"display: block;\"><input type=\"radio\" name=\"action_type\" value=\"3\" {$action_checked[3]} class=\"actions_check\" onclick=\"checkAction();\" style=\"vertical-align: middle;\" /> <strong>{$lang->moderate_posts}</strong></label></dt>
<dd style=\"margin-top: 4px;\" id=\"action_3\" class=\"actions\">
<table cellpadding=\"4\">

		<dt><label style=\"display: block;\"><input type=\"radio\" name=\"action_type\" value=\"3\" {$action_checked[3]} class=\"actions_check\" onclick=\"checkAction();\" style=\"vertical-align: middle;\" /> <strong>{$lang->moderate_posts}</strong></label></dt>
<dd style=\"margin-top: 4px;\" id=\"action_3\" class=\"actions\">
<table cellpadding=\"4\">

Zeile 191Zeile 191
	$form_container->end();

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

	$form_container->end();

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





	$form->output_submit_wrapper($buttons);
$form->end();


	$form->output_submit_wrapper($buttons);
$form->end();


Zeile 217Zeile 217
		if(!is_numeric($mybb->input['percentage']) || $mybb->input['percentage'] > 100 || $mybb->input['percentage'] < 0)
{
$errors[] = $lang->error_invalid_warning_percentage;

		if(!is_numeric($mybb->input['percentage']) || $mybb->input['percentage'] > 100 || $mybb->input['percentage'] < 0)
{
$errors[] = $lang->error_invalid_warning_percentage;

		}

if(!$errors)

		}

if(!$errors)

		{
// Ban
if($mybb->input['action_type'] == 1)

		{
// Ban
if($mybb->input['action_type'] == 1)

Zeile 236Zeile 236
				$action = array(
"type" => 2,
"length" => fetch_time_length($mybb->input['action_2_time'], $mybb->input['action_2_period'])

				$action = array(
"type" => 2,
"length" => fetch_time_length($mybb->input['action_2_time'], $mybb->input['action_2_period'])

				);
}

				);
}

			// Moderate posts
else if($mybb->input['action_type'] == 3)
{

			// Moderate posts
else if($mybb->input['action_type'] == 3)
{

Zeile 254Zeile 254
			$db->update_query("warninglevels", $updated_level, "lid='{$level['lid']}'");

$plugins->run_hooks("admin_config_warning_edit_level_commit");

			$db->update_query("warninglevels", $updated_level, "lid='{$level['lid']}'");

$plugins->run_hooks("admin_config_warning_edit_level_commit");





			// Log admin action
log_admin_action($level['lid'], $mybb->input['percentage']);


			// Log admin action
log_admin_action($level['lid'], $mybb->input['percentage']);


Zeile 264Zeile 264
	}

$page->add_breadcrumb_item($lang->edit_warning_level);

	}

$page->add_breadcrumb_item($lang->edit_warning_level);

	$page->output_header($lang->warning_levels." - ".$lang->edit_warning_level);


	$page->output_header($lang->warning_levels." - ".$lang->edit_warning_level);


	$sub_tabs['edit_level'] = array(
'link' => "index.php?module=config/warning&amp;action=edit_level&amp;lid={$level['lid']}",
'title' => $lang->edit_warning_level,

	$sub_tabs['edit_level'] = array(
'link' => "index.php?module=config/warning&amp;action=edit_level&amp;lid={$level['lid']}",
'title' => $lang->edit_warning_level,

Zeile 321Zeile 321
		"days" => $lang->expiration_days,
"weeks" => $lang->expiration_weeks,
"months" => $lang->expiration_months,

		"days" => $lang->expiration_days,
"weeks" => $lang->expiration_weeks,
"months" => $lang->expiration_months,

		"never" => $lang->expiration_never

		"never" => $lang->permanent

	);

$actions = "<script type=\"text/javascript\">

	);

$actions = "<script type=\"text/javascript\">

Zeile 329Zeile 329
	{
var checked = '';
$$('.actions_check').each(function(e)

	{
var checked = '';
$$('.actions_check').each(function(e)

		{

		{

			if(e.checked == true)
{
checked = e.value;
}

			if(e.checked == true)
{
checked = e.value;
}

		});

		});

		$$('.actions').each(function(e)
{
Element.hide(e);

		$$('.actions').each(function(e)
{
Element.hide(e);

Zeile 356Zeile 356
				<tr>
<td><small>{$lang->ban_length}</small></td>
<td>".$form->generate_text_box('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>

				<tr>
<td><small>{$lang->ban_length}</small></td>
<td>".$form->generate_text_box('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>

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

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

		<dt><label style=\"display: block;\"><input type=\"radio\" name=\"action_type\" value=\"2\" {$action_checked[2]} class=\"actions_check\" onclick=\"checkAction();\" style=\"vertical-align: middle;\" /> <strong>{$lang->suspend_posting_privileges}</strong></label></dt>
<dd style=\"margin-top: 4px;\" id=\"action_2\" class=\"actions\">
<table cellpadding=\"4\">

		<dt><label style=\"display: block;\"><input type=\"radio\" name=\"action_type\" value=\"2\" {$action_checked[2]} class=\"actions_check\" onclick=\"checkAction();\" style=\"vertical-align: middle;\" /> <strong>{$lang->suspend_posting_privileges}</strong></label></dt>
<dd style=\"margin-top: 4px;\" id=\"action_2\" class=\"actions\">
<table cellpadding=\"4\">

Zeile 403Zeile 403
	if(!$level['lid'])
{
flash_message($lang->error_invalid_warning_level, 'error');

	if(!$level['lid'])
{
flash_message($lang->error_invalid_warning_level, 'error');

		admin_redirect("index.php?module=config/warning");
}

		admin_redirect("index.php?module=config/warning");
}


// User clicked no
if($mybb->input['no'])


// User clicked no
if($mybb->input['no'])

Zeile 495Zeile 495
		"days" => $lang->expiration_days,
"weeks" => $lang->expiration_weeks,
"months" => $lang->expiration_months,

		"days" => $lang->expiration_days,
"weeks" => $lang->expiration_weeks,
"months" => $lang->expiration_months,

		"never" => $lang->never

		"never" => $lang->expiration_never

	);
$form_container->output_row($lang->warning_expiry, $lang->warning_expiry_desc, $form->generate_text_box('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->end();

	);
$form_container->output_row($lang->warning_expiry, $lang->warning_expiry_desc, $form->generate_text_box('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->end();

Zeile 693Zeile 693
		$no_results = true;
}


		$no_results = true;
}


	$table->output($lang->warning_types);

	$table->output($lang->warning_levels);


$page->output_footer();
}


$page->output_footer();
}