} elseif (!IS_MEMBER()) {
LOAD_URL('modules.php?module=index');
} elseif ((!EXT_IS_ACTIVE('mailid')) && (!IS_ADMIN())) {
- LOAD_URL("modules.php?module=login");
+ LOAD_URL('modules.php?module=login');
}
// Add description as navigation point
// Load data
$content = SQL_FETCHARRAY($result_data);
- // "Translate some data
+ // Translate some data
$content['subject'] = COMPILE_CODE($content['subject']);
$content['text'] = COMPILE_CODE($content['text']);
- $content['timestamp'] = MAKE_DATETIME($content['timestamp'], "2");
+ $content['timestamp'] = MAKE_DATETIME($content['timestamp'], '2');
$content['category'] = GET_CATEGORY($content['cat_id']);
$content['points'] = TRANSLATE_COMMA($content['points']);
$content['is_notify'] = TRANSLATE_YESNO($content['is_notify']);
// Get timestamp from insert
$content['user_status'] = sprintf(getMessage('MEMBER_MAIL_BONUS_CONFIRMED_ON'),
- MAKE_DATETIME(USER_STATS_GET_TIMESTAMP('bonusid', $content['id']), "2")
+ MAKE_DATETIME(USER_STATS_GET_TIMESTAMP('bonusid', $content['id']), '2')
);
// Display it depending on mail (data) type
- LOAD_TEMPLATE("member_mail_bonus_".strtolower($content['data_type']), false, $content);
+ LOAD_TEMPLATE('member_mail_bonus_'.strtolower($content['data_type']), false, $content);
// Free result
SQL_FREERESULT($result_data);
// Load data
$content = SQL_FETCHARRAY($result_data);
- // "Translate some data
+ // Translate some data
$content['subject'] = COMPILE_CODE($content['subject']);
$content['text'] = COMPILE_CODE($content['text']);
- $content['timestamp'] = MAKE_DATETIME($content['timestamp'], "2");
+ $content['timestamp'] = MAKE_DATETIME($content['timestamp'], '2');
$content['category'] = GET_CATEGORY($content['cat_id']);
$content['points'] = TRANSLATE_COMMA($content['points']);
$content['time'] = CREATE_FANCY_TIME($content['time']);
// Get timestamp from insert
$content['user_status'] = sprintf(getMessage('MEMBER_MAIL_NORMAL_CONFIRMED_ON'),
- MAKE_DATETIME(USER_STATS_GET_TIMESTAMP('mailid', $content['id']), "2")
+ MAKE_DATETIME(USER_STATS_GET_TIMESTAMP('mailid', $content['id']), '2')
);
// Display it depending on mail (data) type
- LOAD_TEMPLATE("member_mail_normal_".strtolower($content['data_type']), false, $content);
+ LOAD_TEMPLATE('member_mail_normal_'.strtolower($content['data_type']), false, $content);
// Free result
SQL_FREERESULT($result_data);
$cat = ''; $result_data = false;
switch ($type)
{
- case "NORMAL":
+ case 'NORMAL':
$result_data = SQL_QUERY_ESC("SELECT s.subject, s.timestamp_ordered, s.cat_id, s.payment_id, p.sender
FROM `{!_MYSQL_PREFIX!}_user_stats` AS s
LEFT JOIN `{!_MYSQL_PREFIX!}_pool` AS p
$type = 'mailid'; $DATA = $id; $PROBLEM = getMessage('NORMAL_MAIL_PROBLEM');
break;
- case "BONUS":
+ case 'BONUS':
$result_data = SQL_QUERY_ESC("SELECT subject, timestamp, cat_id, points, 0 FROM `{!_MYSQL_PREFIX!}_bonus` WHERE id=%s LIMIT 1",
array(bigintval($id2)), __FILE__, __LINE__);
$type = 'bonusid'; $DATA = $id2; $PROBLEM = getMessage('BONUS_MAIL_PROBLEM');
'type' => $type,
'subject' => $subject,
'sender' => $sender,
- 'stamp' => MAKE_DATETIME($timestamp, "2"),
+ 'stamp' => MAKE_DATETIME($timestamp, '2'),
'cat' => GET_CATEGORY($cat),
'points' => TRANSLATE_COMMA($pay),
);
// Load row template
if (getConfig('show_points_unconfirmed') == 'Y') {
- $OUT .= LOAD_TEMPLATE("member_unconfirmed_row", true, $content);
+ $OUT .= LOAD_TEMPLATE('member_unconfirmed_row', true, $content);
} else {
- $OUT .= LOAD_TEMPLATE("member_unconfirmed_row_nopoints", true, $content);
+ $OUT .= LOAD_TEMPLATE('member_unconfirmed_row_nopoints', true, $content);
}
// Count points
// Display points or not?
if (getConfig('show_points_unconfirmed') == 'Y') {
- $OUT .= LOAD_TEMPLATE("member_unconfirmed_404", true, $content);
+ $OUT .= LOAD_TEMPLATE('member_unconfirmed_404', true, $content);
} else {
- $OUT .= LOAD_TEMPLATE("member_unconfirmed_404_nopoints", true, $content);
+ $OUT .= LOAD_TEMPLATE('member_unconfirmed_404_nopoints', true, $content);
}
}
// Load main template
if (getConfig('show_points_unconfirmed') == 'Y') {
- LOAD_TEMPLATE("member_unconfirmed_table");
+ LOAD_TEMPLATE('member_unconfirmed_table');
} else {
- LOAD_TEMPLATE("member_unconfirmed_table_nopoints");
+ LOAD_TEMPLATE('member_unconfirmed_table_nopoints');
}
} else {
// No mails left to confirm... :)