addMenuDescription('admin', __FILE__);
// Remove empty array index
-if (!isPostRequestParameterSet(('max'))) unsetPostRequestParameter(('add_max'));
+if (!isPostRequestParameterSet('max')) unsetPostRequestParameter('add_max');
-if (isPostRequestParameterSet(('add_max'))) {
+if (isPostRequestParameterSet('add_max')) {
// Save all settings
$result = SQL_QUERY_ESC("SELECT `id` FROM `{?_MYSQL_PREFIX?}_max_receive` WHERE value='%s' LIMIT 1",
array(bigintval(postRequestParameter('max'))), __FILE__, __LINE__);
if (SQL_HASZERONUMS($result)) {
// Add this value (including comment)
- SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_max_receive` (value, comment) VALUES ('%s','%s')",
+ SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_max_receive` (`value`, `comment`) VALUES ('%s','%s')",
array(bigintval(postRequestParameter('max')), postRequestParameter('comment')),__FILE__, __LINE__);
$content = '{--ADMIN_MAX_VALUE_SAVED--}';
} else {
// Value does alread exists!
- $content = '<span class="admin_failed">{--ADMIN_MAX_VALUE_ALREADY--}</span>';
+ $content = '<span class="notice">{--ADMIN_MAX_VALUE_ALREADY--}</span>';
}
// Free memory
postRequestParameter('comm', $id),
$id
),__FILE__, __LINE__);
- $TEXT = '{--MRECEIVE_SAVED--}';
+ $TEXT = '{--ADMIN_MAX_RECEIVE_SAVED--}';
break;
case 'del':
SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_max_receive` WHERE `id`=%s LIMIT 1",
array($id), __FILE__, __LINE__);
- $TEXT = '{--MRECEIVE_DELETED--}';
+ $TEXT = '{--ADMIN_MAX_RECEIVE_DELETED--}';
break;
}
}