Vergleich admin/modules/user/group_promotions.php - 1.8.10 - 1.8.11

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 172Zeile 172
		admin_redirect("index.php?module=user-group_promotions");
}


		admin_redirect("index.php?module=user-group_promotions");
}


	$query = $db->simple_select("promotions", "*", "pid = '{$mybb->input['pid']}'");

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

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

if(!$promotion)

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

if(!$promotion)

Zeile 227Zeile 227
			}

$allowed_operators = array('>', '>=', '=', '<=', '<');

			}

$allowed_operators = array('>', '>=', '=', '<=', '<');

			$operator_fields = array('posttype', 'threadtype', 'timeregisteredtype', 'reputationtype', 'referralstype', 'warningstype');

			$operator_fields = array('posttype', 'threadtype', 'reputationtype', 'referralstype', 'warningstype');


foreach($operator_fields as $field)
{
if(!in_array($mybb->get_input($field), $allowed_operators))
{
$mybb->input[$field] = '=';


foreach($operator_fields as $field)
{
if(!in_array($mybb->get_input($field), $allowed_operators))
{
$mybb->input[$field] = '=';

 
				}
}

$allowed_times = array('hours', 'days', 'weeks', 'months', 'years');
$time_fields = array('timeregisteredtype', 'timeonlinetype');

foreach($time_fields as $field)
{
if(!in_array($mybb->get_input($field), $allowed_times))
{
$mybb->input[$field] = 'days';

				}
}


				}
}


Zeile 444Zeile 455
			}

$allowed_operators = array('>', '>=', '=', '<=', '<');

			}

$allowed_operators = array('>', '>=', '=', '<=', '<');

			$operator_fields = array('posttype', 'threadtype', 'timeregisteredtype', 'reputationtype', 'referralstype', 'warningstype');

			$operator_fields = array('posttype', 'threadtype', 'reputationtype', 'referralstype', 'warningstype');


foreach($operator_fields as $field)
{
if(!in_array($mybb->get_input($field), $allowed_operators))
{
$mybb->input[$field] = '=';


foreach($operator_fields as $field)
{
if(!in_array($mybb->get_input($field), $allowed_operators))
{
$mybb->input[$field] = '=';

 
				}
}

$allowed_times = array('hours', 'days', 'weeks', 'months', 'years');
$time_fields = array('timeregisteredtype', 'timeonlinetype');

foreach($time_fields as $field)
{
if(!in_array($mybb->get_input($field), $allowed_times))
{
$mybb->input[$field] = 'days';

				}
}


				}
}