Vergleich admin/modules/user/group_promotions.php - 1.4.3 - 1.4.15

  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: group_promotions.php 3981 2008-07-04 21:24:03Z Tikitiki $

 * $Id: group_promotions.php 5379 2011-02-21 11:06:42Z Tomm $

 */

// Disallow direct access to this file for security reasons

 */

// Disallow direct access to this file for security reasons

Zeile 177Zeile 177
			$errors[] = $lang->error_no_desc;
}


			$errors[] = $lang->error_no_desc;
}


		if(!trim($mybb->input['requirements']))

		if(empty($mybb->input['requirements']))

		{
$errors[] = $lang->error_no_requirements;
}


		{
$errors[] = $lang->error_no_requirements;
}


		if(!trim($mybb->input['originalusergroup']))

		if(empty($mybb->input['originalusergroup']))

		{
$errors[] = $lang->error_no_orig_usergroup;
}

		{
$errors[] = $lang->error_no_orig_usergroup;
}

Zeile 291Zeile 291
		"<=" => $lang->less_than_or_equal_to,
"<" => $lang->less_than
);

		"<=" => $lang->less_than_or_equal_to,
"<" => $lang->less_than
);

	
$form_container->output_row($lang->reputation_count, $lang->reputation_count_desc, $form->generate_text_box('reputationcount', $mybb->input['reputationcount'], array('id' => 'reputationcount'))." ".$form->generate_select_box("reputationtype", $options_type, $mybb->input['reputationtype'], array('id' => 'reputationtype')), 'reputationcount');

 
	
$form_container->output_row($lang->post_count, $lang->post_count_desc, $form->generate_text_box('postcount', $mybb->input['postcount'], array('id' => 'postcount'))." ".$form->generate_select_box("posttype", $options_type, $mybb->input['posttype'], array('id' => 'posttype')), 'postcount');

	
$form_container->output_row($lang->post_count, $lang->post_count_desc, $form->generate_text_box('postcount', $mybb->input['postcount'], array('id' => 'postcount'))." ".$form->generate_select_box("posttype", $options_type, $mybb->input['posttype'], array('id' => 'posttype')), 'postcount');

 
	
$form_container->output_row($lang->reputation_count, $lang->reputation_count_desc, $form->generate_text_box('reputationcount', $mybb->input['reputationcount'], array('id' => 'reputationcount'))." ".$form->generate_select_box("reputationtype", $options_type, $mybb->input['reputationtype'], array('id' => 'reputationtype')), 'reputationcount');

	
$options = array(
"hours" => $lang->hours,

	
$options = array(
"hours" => $lang->hours,

Zeile 309Zeile 309
	$options = array();

$query = $db->simple_select("usergroups", "gid, title", "gid != '1'", array('order_by' => 'title'));

	$options = array();

$query = $db->simple_select("usergroups", "gid, title", "gid != '1'", array('order_by' => 'title'));

	$options['*'] = $lang->all_user_groups;

 
	while($usergroup = $db->fetch_array($query))
{
$options[(int)$usergroup['gid']] = $usergroup['title'];

	while($usergroup = $db->fetch_array($query))
{
$options[(int)$usergroup['gid']] = $usergroup['title'];

Zeile 356Zeile 355
			$errors[] = $lang->error_no_desc;
}


			$errors[] = $lang->error_no_desc;
}


		if(!trim($mybb->input['requirements']))

		if(empty($mybb->input['requirements']))

		{
$errors[] = $lang->error_no_requirements;

		{
$errors[] = $lang->error_no_requirements;

		}

if(!trim($mybb->input['originalusergroup']))
{

		}

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

			$errors[] = $lang->error_no_orig_usergroup;
}


			$errors[] = $lang->error_no_orig_usergroup;
}


Zeile 470Zeile 469
		"<=" => $lang->less_than_or_equal_to,
"<" => $lang->less_than
);

		"<=" => $lang->less_than_or_equal_to,
"<" => $lang->less_than
);

	
$form_container->output_row($lang->reputation_count, $lang->reputation_count_desc, $form->generate_text_box('reputationcount', $mybb->input['reputationcount'], array('id' => 'reputationcount'))." ".$form->generate_select_box("reputationtype", $options_type, $mybb->input['reputationtype'], array('id' => 'reputationtype')), 'reputationcount');

 
	
$form_container->output_row($lang->post_count, $lang->post_count_desc, $form->generate_text_box('postcount', $mybb->input['postcount'], array('id' => 'postcount'))." ".$form->generate_select_box("posttype", $options_type, $mybb->input['posttype'], array('id' => 'posttype')), 'postcount');

	
$form_container->output_row($lang->post_count, $lang->post_count_desc, $form->generate_text_box('postcount', $mybb->input['postcount'], array('id' => 'postcount'))." ".$form->generate_select_box("posttype", $options_type, $mybb->input['posttype'], array('id' => 'posttype')), 'postcount');

 
	
$form_container->output_row($lang->reputation_count, $lang->reputation_count_desc, $form->generate_text_box('reputationcount', $mybb->input['reputationcount'], array('id' => 'reputationcount'))." ".$form->generate_select_box("reputationtype", $options_type, $mybb->input['reputationtype'], array('id' => 'reputationtype')), 'reputationcount');

	
$options = array(
"hours" => $lang->hours,

	
$options = array(
"hours" => $lang->hours,

Zeile 487Zeile 486
	$options = array();

$query = $db->simple_select("usergroups", "gid, title", "gid != '1'", array('order_by' => 'title'));

	$options = array();

$query = $db->simple_select("usergroups", "gid, title", "gid != '1'", array('order_by' => 'title'));

	$options['*'] = $lang->all_user_groups;

 
	while($usergroup = $db->fetch_array($query))
{
$options[(int)$usergroup['gid']] = $usergroup['title'];

	while($usergroup = $db->fetch_array($query))
{
$options[(int)$usergroup['gid']] = $usergroup['title'];

Zeile 593Zeile 591
	
$table->output($lang->promotion_logs);


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


	$query = $db->simple_select("promotions", "COUNT(pid) as promotions");
$total_rows = $db->fetch_field($query, "promotions");

	$query = $db->simple_select("promotionlogs", "COUNT(plid) as promotionlogs");
$total_rows = $db->fetch_field($query, "promotionlogs");

	
echo "<br />".draw_admin_pagination($mybb->input['page'], "20", $total_rows, "index.php?module=user/group_promotions&amp;action=logs&amp;page={page}");


	
echo "<br />".draw_admin_pagination($mybb->input['page'], "20", $total_rows, "index.php?module=user/group_promotions&amp;action=logs&amp;page={page}");