}
// Add description as navigation point
-ADD_DESCR("admin", __FILE__);
+ADD_DESCR('admin', __FILE__);
// Remove empty array index
if (!REQUEST_ISSET_POST(('max'))) REQUEST_UNSET_POST(('add_max'));
SQL_FREERESULT($result);
// Display message
- LOAD_TEMPLATE("admin_settings_saved", false, $content);
+ LOAD_TEMPLATE('admin_settings_saved', false, $content);
} elseif ((IS_FORM_SENT()) && (REQUEST_ISSET_GET('do'))) {
// Change or delete entries...
- $TEXT = "";
+ $TEXT = '';
foreach (REQUEST_POST('id') as $id => $value) {
// Secure ID
$id = bigintval($id);
if (isset($TEXT)) {
// Display message
- LOAD_TEMPLATE("admin_settings_saved", false, $TEXT);
+ LOAD_TEMPLATE('admin_settings_saved', false, $TEXT);
}
} elseif ((REQUEST_ISSET_POST('del')) && (SELECTION_COUNT(REQUEST_POST('sel')) > 0)) {
// Delete entries
- $OUT = ""; $SW = 2;
+ $OUT = ''; $SW = 2;
foreach (REQUEST_POST('sel') as $id => $value)
{
// Load data
LOAD_TEMPLATE("admin_config_email_del");
} elseif ((REQUEST_ISSET_POST('edit')) && (SELECTION_COUNT(REQUEST_POST('sel')) > 0)) {
// Edit entries
- $OUT = ""; $SW = 2;
+ $OUT = ''; $SW = 2;
foreach (REQUEST_POST('sel') as $id => $value) {
// Load data
$result = SQL_QUERY_ESC("SELECT value, comment FROM `{!_MYSQL_PREFIX!}_max_receive` WHERE id=%s LIMIT 1",
__FILE__, __LINE__);
if (SQL_NUMROWS($result) > 0) {
// List already existing entries for editing
- $OUT = ""; $SW = 2;
+ $OUT = ''; $SW = 2;
while ($content = SQL_FETCHARRAY($result)) {
// Prepare data for the row template
$content['sw'] = $SW;