$id = bigintval($id);
// Revert german commata
- REQUEST_POST('perc', $id) = REVERT_COMMA(REQUEST_POST('perc', $id));
+ REQUEST_SET_POST(array('perc', $id), REVERT_COMMA(REQUEST_POST('perc', $id)));
// Update entry
SQL_QUERY_ESC("UPDATE `{!_MYSQL_PREFIX!}_refdepths` SET level='%s', percents='%s' WHERE id=%s LIMIT 1",
array(bigintval($value), REQUEST_POST('perc', $id), $id), __FILE__, __LINE__);
}
- $message = REF_DEPTHS_SAVED;
+ $message = getMessage('REF_DEPTHS_SAVED');
break;
case "del":
SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{!_MYSQL_PREFIX!}_refdepths` WHERE id=%s LIMIT 1",
array(bigintval($id)), __FILE__, __LINE__);
}
- $message = REF_DEPTHS_DELETED;
+ $message = getMessage('REF_DEPTHS_DELETED');
break;
}
runFilterChain('run_sqls');
// Entry saved...
- $message = SETTINGS_SAVED;
+ $message = getMessage('SETTINGS_SAVED');
// Destroy config cache file here...
rebuildCacheFiles("config", "config");
// Load template
LOAD_TEMPLATE("admin_config_point_settings");
} elseif (REQUEST_GET('sub') == "ref") {
- if ((REQUEST_ISSET_POST(('del'))) && (REQUEST_ISSET_POST(('sel'))) && ((SELECTION_COUNT(REQUEST_POST('sel')) > 0) || (REQUEST_ISSET_POST(('sel', 0))))) {
+ // 12 3 32 2 3 32 2 3 4 43 21
+ if ((REQUEST_ISSET_POST('del')) && (REQUEST_ISSET_POST('sel')) && (SELECTION_COUNT(REQUEST_POST('sel')) > 0)) {
// Delete entries
$SW = 2; $OUT = "";
foreach (REQUEST_POST('sel') as $id => $value) {
// Load main template
LOAD_TEMPLATE("admin_points_del");
- } elseif ((REQUEST_ISSET_POST(('edit'))) && (REQUEST_ISSET_POST(('sel'))) && ((SELECTION_COUNT(REQUEST_POST('sel')) > 0) || (REQUEST_ISSET_POST(('sel', 0))))) {
+ } elseif ((REQUEST_ISSET_POST('edit')) && (REQUEST_ISSET_POST('sel')) && (SELECTION_COUNT(REQUEST_POST('sel')) > 0)) {
// Edit entries
$SW = 2; $OUT = "";
foreach (REQUEST_POST('sel') as $id => $value) {