// Prepare mail and send it away
$message = loadEmailTemplate('admin-del_links', $nums, bigintval(getRequestParameter('userid')));
- sendEmail(getUserData('email'), '{--ADMIN_DEL_LINK_SUBJ--}', $message);
+ sendEmail(getUserData('email'), '{--ADMIN_DEL_LINK_SUBJECT--}', $message);
// Display message
loadTemplate('admin_settings_saved', false, '{--ADMIN_LINKS_DELETED--}');
} else {
// Init variables
- $OUT = ''; $SW = 2;
+ $OUT = '';
// List all unconfirmed mails
// @TODO Find a way to rewrite this. See some lines above for different queries
// Prepare data for the row template
$content = array(
- 'sw' => $SW,
'link' => $LINK,
'subject' => $content['subject'],
'timestamp' => generateDateTime($content['timestamp'], 0),
- 'cat' => getCategory($content['cat_id']),
+ 'cat_id' => $content['cat_id'],
);
// Load row template
// Load template for error
$OUT .= loadTemplate('admin_list_links_problem', true,
array(
- 'sw' => $SW,
'problem' => $PROBLEM,
'data' => $DATA
)
);
}
- // Switch color and free result
- $SW = 3 - $SW;
+ // Free result
SQL_FREERESULT($result_data);
} // END - while