* $Author:: $ *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
- * Copyright (c) 2009 - 2012 by Mailer Developer Team *
+ * Copyright (c) 2009 - 2013 by Mailer Developer Team *
* For more information visit: http://mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
$content['points'] = bigintval(postRequestElement('points'));
// Select all users
- $result_main = SQL_QUERY("SELECT `userid` FROM `{?_MYSQL_PREFIX?}_user_data` WHERE `status`='CONFIRMED' ORDER BY `userid` ASC",
+ $result_main = sqlQuery("SELECT `userid` FROM `{?_MYSQL_PREFIX?}_user_data` WHERE `status`='CONFIRMED' ORDER BY `userid` ASC",
__FILE__, __LINE__);
// Process all entries
- while ($row = SQL_FETCHARRAY($result_main)) {
+ while ($row = sqlFetchArray($result_main)) {
// Merge $row into $content
$content = merge_array($content, $row);
// Prepare content
$content = array(
- 'reason' => SQL_ESCAPE(postRequestElement('reason')),
+ 'reason' => sqlEscapeString(postRequestElement('reason')),
'points' => bigintval(postRequestElement('points')),
'userid' => $row['userid'],
'subject' => 'admin_add_all',
} // END - while
// Free memory
- SQL_FREERESULT($result_main);
+ sqlFreeResult($result_main);
// Output message
displayMessage('{--ADMIN_ALL_POINTS_ADDED--}');
// Prepare content
$content = array(
- 'reason' => SQL_ESCAPE(postRequestElement('reason')),
+ 'reason' => sqlEscapeString(postRequestElement('reason')),
'points' => bigintval(postRequestElement('points')),
'subject' => 'admin_add_single',
);
}
} else {
// User not found
- loadTemplate('admin_settings_unsaved', FALSE, '{%message,ADMIN_MEMBER_404=' . bigintval(getRequestElement('userid')) . '%}');
+ displayErrorMessage('{%message,ADMIN_MEMBER_404=' . bigintval(getRequestElement('userid')) . '%}');
}
} else {
// Output selection form with all confirmed user accounts listed