// Admin 'pool' mail actions
'ADMIN_EDIT_POOL_MAIL_LINK' => "Klick-Mail bearbeiten",
'ADMIN_DELETE_POOL_MAIL_LINK' => "Klick-Mail löschen",
+
+ // Generic points subjects
+ 'POINTS_SUBJECT_UNKNOWN' => "??? (%s)",
+ 'POINTS_SUBJECT_ADMIN_ADD_ALL' => "Gutschrift für alle durch den Administrator",
+ 'POINTS_SUBJECT_ADMIN_ADD_SINGLE' => "Einzelgutschrift durch den Administrator",
+ 'POINTS_SUBJECT_ADMIN_SUB_ALL' => "Abzug aller Accounts durch den Administrator",
+ 'POINTS_SUBJECT_ADMIN_SUB_SINGLE' => "Einzelabzug durch den Administrator",
));
// Description of all months
$GLOBALS['ref_level'] = -1;
// Ok, add points and send an email to him...
- addPointsDirectly('admin_all', $content['userid'], bigintval(postRequestElement('points')));
+ addPointsDirectly('admin_add_all', $content['userid'], bigintval(postRequestElement('points')));
// Prepare content
$content = array(
- 'reason' => SQL_ESCAPE(postRequestElement('reason')),
- 'points' => bigintval(postRequestElement('points')),
- 'userid' => $row['userid']
+ 'reason' => SQL_ESCAPE(postRequestElement('reason')),
+ 'points' => bigintval(postRequestElement('points')),
+ 'userid' => $row['userid'],
+ 'subject' => 'admin_add_all',
);
// Load email template and send email away
if ((isFormSent()) && (isPostRequestElementSet('points'))) {
// Add points and send an email to him...
- addPointsDirectly('admin_single', bigintval(getRequestElement('userid')), bigintval(postRequestElement('points')));
+ addPointsDirectly('admin_add_single', bigintval(getRequestElement('userid')), bigintval(postRequestElement('points')));
// Prepare content
$content = array(
- 'reason' => SQL_ESCAPE(postRequestElement('reason')),
- 'points' => bigintval(postRequestElement('points'))
+ 'reason' => SQL_ESCAPE(postRequestElement('reason')),
+ 'points' => bigintval(postRequestElement('points')),
+ 'subject' => 'admin_add_single',
);
// Message laden
$content = merge_array($content, $row);
// Ok, add points to used points, send an email to him and ignore return status
- subtractPoints('admin_all', $content['userid'], postRequestElement('points'));
+ subtractPoints('admin_sub_all', $content['userid'], postRequestElement('points'));
// Prepare content
$content = array(
- 'reason' => SQL_ESCAPE(postRequestElement('reason')),
- 'points' => bigintval(postRequestElement('points'))
+ 'reason' => SQL_ESCAPE(postRequestElement('reason')),
+ 'points' => bigintval(postRequestElement('points')),
+ 'subject' => 'admin_sub_all',
);
// Load message and send it away
if ((isFormSent()) && (isPostRequestElementSet('points'))) {
// Ok, add to used points, send an email to him and ignore return status
- subtractPoints('admin_single', bigintval(getRequestElement('userid')), postRequestElement('points'));
+ subtractPoints('admin_sub_single', bigintval(getRequestElement('userid')), postRequestElement('points'));
// Prepare content
$content = array(
- 'reason' => SQL_ESCAPE(postRequestElement('reason')),
- 'points' => bigintval(postRequestElement('points'))
+ 'reason' => SQL_ESCAPE(postRequestElement('reason')),
+ 'points' => bigintval(postRequestElement('points')),
+ 'subject' => 'admin_sub_single',
);
// Load email and send it away