- array(REQUEST_POST('url'), REQUEST_POST('alternate'), REQUEST_POST('visible')), __FILE__, __LINE__);
- } else {
- // Free memory
- SQL_FREERESULT($result);
- }
- break;
-
- case "edit": // Update banner
- foreach (REQUEST_POST('sel') as $id => $sel) {
- // Secure ID
- $id = bigintval($id);
-
- // Update entry
- SQL_QUERY_ESC("UPDATE `{!_MYSQL_PREFIX!}_refbanner` SET url='%s', alternate='%s', `visible`='%s' WHERE id=%s LIMIT 1",
- array(
- REQUEST_POST('url', $id),
- REQUEST_POST('alternate', $id),
- REQUEST_POST('visible'),
- $id
- ), __FILE__, __LINE__);
- }
- break;
+ array(postRequestParameter('url'), postRequestParameter('alternate'), postRequestParameter('visible')), __FILE__, __LINE__);
+ } else {
+ // Free memory
+ SQL_FREERESULT($result);
+ }
+ break;
+
+ case 'edit': // Update banner
+ foreach (postRequestParameter('sel') as $id => $sel) {
+ // Secure id
+ $id = bigintval($id);
+
+ // Update entry
+ SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_refbanner` SET url='%s', alternate='%s', `visible`='%s' WHERE `id`=%s LIMIT 1",
+ array(
+ postRequestParameter('url', $id),
+ postRequestParameter('alternate', $id),
+ postRequestParameter('visible'),
+ $id
+ ), __FILE__, __LINE__);
+ }
+ break;