Zeile 6 | Zeile 6 |
---|
* Website: http://www.mybboard.com * License: http://www.mybboard.com/eula.html *
|
* Website: http://www.mybboard.com * License: http://www.mybboard.com/eula.html *
|
* $Id$
| * $Id: settings.php 869 2005-10-25 11:26:52Z chris $
|
*/
require "./global.php";
| */
require "./global.php";
|
Zeile 63 | Zeile 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 79 | Zeile 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 178 | Zeile 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 309 | Zeile 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);
|