- switch (REQUEST_POST('ok'))
- {
- case "edit": // Edit menu
- foreach (REQUEST_POST('sel') as $sel => $menu) {
- // Secure ID
- $sel = bigintval($sel);
-
- // Update entry
- SQL_QUERY_ESC("UPDATE `{!_MYSQL_PREFIX!}_admin_menu` SET
-title='%s',
-action='%s',
-what='%s',
-descr='%s'
-WHERE ".$AND." AND id=%s LIMIT 1",
- array(
- $menu,
- REQUEST_POST('sel_action', $sel),
- REQUEST_POST('sel_what', $sel),
- REQUEST_POST('sel_desc', $sel),
- $sel,
-), __FILE__, __LINE__);
- }
+ switch (postRequestParameter('ok')) {
+ case 'edit': // Edit menu
+ foreach (postRequestParameter('sel') as $sel => $menu) {
+ // Secure id
+ $sel = bigintval($sel);