Vergleich admin/settings.php - 1.01 - 1.15

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 63Zeile 63
		foreach($mybb->input['upsetting'] as $key => $val)
{
$val = addslashes($val);

		foreach($mybb->input['upsetting'] as $key => $val)
{
$val = addslashes($val);

 
			$key = intval($key);

			$db->query("UPDATE ".TABLE_PREFIX."settings SET value='$val' WHERE sid='$key'");
}
}

			$db->query("UPDATE ".TABLE_PREFIX."settings SET value='$val' WHERE sid='$key'");
}
}

Zeile 79Zeile 80
			"name" => addslashes($mybb->input['name']),
"title" => addslashes($mybb->input['title']),
"description" => addslashes($mybb->input['description']),

			"name" => addslashes($mybb->input['name']),
"title" => addslashes($mybb->input['title']),
"description" => addslashes($mybb->input['description']),

			"optionscode" => $mybb->input['type'],

			"optionscode" => addslashes($mybb->input['type']),

			"value" => addslashes($mybb->input['value']),
"disporder" => intval($mybb->input['disporder']),
"gid" => intval($mybb->input['gid'])

			"value" => addslashes($mybb->input['value']),
"disporder" => intval($mybb->input['disporder']),
"gid" => intval($mybb->input['gid'])

Zeile 178Zeile 179
			"name" => addslashes($mybb->input['name']),
"title" => addslashes($mybb->input['title']),
"description" => addslashes($mybb->input['description']),

			"name" => addslashes($mybb->input['name']),
"title" => addslashes($mybb->input['title']),
"description" => addslashes($mybb->input['description']),

			"optionscode" => $mybb->input['type'],

			"optionscode" => addslashes($mybb->input['type']),

			"value" => addslashes($mybb->input['value']),
"disporder" => intval($mybb->input['disporder']),
"gid" => intval($mybb->input['gid'])

			"value" => addslashes($mybb->input['value']),
"disporder" => intval($mybb->input['disporder']),
"gid" => intval($mybb->input['gid'])

Zeile 309Zeile 310
}
if($mybb->input['action'] == "do_modify") {
cpheader();

}
if($mybb->input['action'] == "do_modify") {
cpheader();

	while(list($sid, $order) = each($mybb->input['disporder'])) {
$db->query("UPDATE ".TABLE_PREFIX."settings SET disporder='$order' WHERE sid='$sid'");


	foreach($mybb->input['disporder'] as $sid => $order)
{
$db->query("UPDATE ".TABLE_PREFIX."settings SET disporder='".intval($order)."' WHERE sid='".intval($sid)."'");

	}

	}

	while(list($gid, $order) = each($mybb->input['dispordercats'])) {
$db->query("UPDATE ".TABLE_PREFIX."settinggroups SET disporder='$order' WHERE gid='$gid'");


	foreach($mybb->input['dispordercats'] as $gid => $order)
{
$db->query("UPDATE ".TABLE_PREFIX."settinggroups SET disporder='".intval($order)."' WHERE gid='".intval($gid)."'");

	}
starttable();
tableheader($lang->cp_message_header);

	}
starttable();
tableheader($lang->cp_message_header);