./inc/modules/admin/what-del_email.php:61: // @TODO Unused: cat_id, payment_id
./inc/modules/admin/what-edit_user.php:18: * @TODO Add support for ext-country *
./inc/modules/admin/what-email_stats.php:46:// @TODO Unused at the moment
-./inc/modules/admin/what-extensions.php:363: // @TODO Rewrite this to a filter
+./inc/modules/admin/what-extensions.php:364: // @TODO Rewrite this to a filter
./inc/modules/admin/what-guest_add.php:129: // @TODO This can be somehow rewritten to a function
./inc/modules/admin/what-guest_add.php:67: // @TODO Cant this be rewritten?
./inc/modules/admin/what-guest_add.php:80: // @TODO This can be somehow rewritten to a function
'ADMIN_CONFIG_SESSION_SAVE_PATH' => "Speicherpfad f. Sitzungsdateien",
'ADMIN_BASE_PATH' => "Absoluter Server-Pfad",
'ADMIN_SESSION_SAVE_PATH_NOTE' => "Sie sollten für Sitzungsdateien einen Pfad wählen der ausserhalb des Server-Pfades liegt, da sonst eventuell die Sitzungsdateien vom Web erreichbar sind, was ein hohes Sicherheitsrisiko darstellt.",
- 'MEMBER_NO_MAILS_IN_STATS' => "Keine versandten Buchungen gefunden.",
+ 'MEMBER_NO_MAILS_IN_STATS' => "Sie haben noch keine Mailbuchungen aufgegeben. Es kann Ihnen somit auch keine Statistik angezeigt werden.",
'ADMIN_RESET_PASSWORD' => "Passwort vergessen?",
'EMAIL_DETAILS' => "Email-Details",
'EMAIL_DETAILS_LINK' => "Details anzeigen",
$nick = getNickname($userid);
// Is it not empty, use it as title else the userid
- if (!empty($nick)) $title = $nick . '(' . $userid . ')'; else $title = $userid;
+ if (!empty($nick)) {
+ $title = $nick . '(' . $userid . ')'; else $title = $userid;
+ } // END - if
}
// Return link
$content = array(
'id' => $ext_id,
'ext_name' => $ext_name,
- 'ext_ver' => getExtensionVersion($ext_name),
'verbose' => $VERBOSE_OUT
);
while ($content = SQL_FETCHARRAY($result)) {
// Prepare CSS selection output
$cssSelection = '---';
- if (isExtensionInstalledAndNewer('sql_patches', '0.0.6')) $cssSelection = translateYesNo($content['ext_css']);
+ if (isExtensionInstalledAndNewer('sql_patches', '0.0.6')) {
+ $cssSelection = translateYesNo($content['ext_css']);
+ } // END - if
// Prepare data for the row template
$content['ext_css'] = $cssSelection;
$NAVI = '<a href="{%url=modules.php?module=admin&what=guestedit&sub=' . $content['sub'] . '&act=' . $data['action'] . '&w=' . $data['what'] . '&tid=' . ($data['sort']-1) . '&fid=' . $data['sort'] . '%}">{--HIGHER--}</a>|<a href=\"{%url=modules.php?module=admin&what=guestedit&sub=' . $content['sub'] . '&act=' . $data['action'] . '&w=' . $data['what'] . '&tid=' . ($data['sort']+1) . '&fid=' . $data['sort'] . '%}">{--LOWER--}</a>';
}
- if (empty($data['action'])) $data['action'] = '---';
- if (empty($data['what'])) $data['what'] = '---';
- if (empty($data['title'])) $data['title'] = '---';
-
// Prepapre content
$row = array(
'id' => $data['id'],
$data['navi'] = '<a href="{%url=modules.php?module=admin&what=memedit&sub=' . $content['sub'] . '&act=' . $data['action'] . '&w=' . $data['what'] . '&tid=' . ($data['sort']-1) . '&fid=' . $data['sort'] . '%}">{--HIGHER--}</a>|<a href="{%url=modules.php?module=admin&what=memedit&sub=' . $content['sub'] . '&act=' . $data['action'] . '&w=' . $data['what'] . '&tid=' . ($data['sort']+1) . '&fid=' . $data['sort'] . '%}">{--LOWER--}</a>';
}
- // Fix empty values for Firefox
- if (empty($data['action'])) $data['action'] = '---';
- if (empty($data['what'])) $data['what'] = '---';
- if (empty($data['title'])) $data['title'] = '---';
-
// Add more entries
$data['mode'] = 'mem';
} // END - if
// Extra field to include is by default userid
-$add = 'userid';
+$add = '';
// If nickname is installed the extra field is the nickname of the user
-if (isExtensionActive('nickname')) $add = 'nickname';
+if (isExtensionActive('nickname')) {
+ $add = ', `nickname`';
+} // END - if
// Check for members who were active only this day
$result = SQL_QUERY("SELECT
- `userid`, `".$add."`, `last_online`
+ `userid``, `last_online`".$add."
FROM
`{?_MYSQL_PREFIX?}_user_data`
WHERE
if (!SQL_HASZERONUMS($result)) {
// At least one member was online so let's load them all
$OUT = '';
- while (list($userid, $nick, $last) = SQL_FETCHROW($result)) {
- $nick2 = '---';
- if (($nick != $userid) && (!empty($nick))) $nick2 = $nick;
+ while ($content = SQL_FETCHARRAY($result)) {
+ // If ext-nickname is not installed, set 'nickname' to empty
+ if (!isExtensionActive('nickname')) {
+ $content['nickname'] = '';
+ } // END - if
- // Transfer data to array
- $content = array(
- 'userid' => $userid,
- 'nickname' => $nick2,
- 'points' => getTotalPoints($userid),
- 'last_online' => generateDateTime($last, 2),
- );
+ // Translate comma
+ $content['last_online'] = generateDateTime($last, 2);
// Load template
$OUT .= loadTemplate('guest_active_row', true, $content);
$content['nickname'] = '';
// Get nickname
- if (isExtensionActive('nickname')) $content['nickname'] = getNickname($content['userid']);
+ if (isExtensionActive('nickname')) {
+ $content['nickname'] = getNickname($content['userid']);
+ } // END - if
// Prepare data for template
$content = array(
'userid' => $content['userid'],
'refs' => $content['refs'],
'nickname' => $content['nickname'],
- 'points' => getTotalPoints($content['userid']),
'last_online' => generateDateTime($content['last_online'], 3)
);
$content[ext_name]
</td>
<td class="{%template,ColorSwitch%} bottom">
- v$content[ext_ver]
+ v{%pipe,getExtensionVersion=$content[ext_name]%}
</td>
</tr>
<tr>
<tr>
- <td class="{%template,ColorSwitch%} bottom right">$content[userid] ($content[nickname])</td>
- <td class="{%template,ColorSwitch%} bottom right">{%pipe,translateComma=$content[points]%}</td>
+ <td class="{%template,ColorSwitch%} bottom right">$content[userid] ({%pipe,fixEmptyContentToDashes=$content[nickname]%})</td>
+ <td class="{%template,ColorSwitch%} bottom right">{%pipe,getTotalPoints,translateComma=$content[userid]%}</td>
<td class="{%template,ColorSwitch%} bottom">$content[last_online]</td>
</tr>
<td class="top10_row1 {%template,ColorSwitch%} bottom right" align="center">$content[cnt]</td>
<td class="top10_row2 {%template,ColorSwitch%} bottom right">$content[userid] ({%pipe,fixEmptyContentToDashes=$content[nickname]%})</td>
<td class="top10_row3 {%template,ColorSwitch%} bottom right">{%pipe,translateComma=$content[refs]%}</td>
- <td class="top10_row4 {%template,ColorSwitch%} bottom right">{%pipe,translateComma=$content[points]%}</td>
+ <td class="top10_row4 {%template,ColorSwitch%} bottom right">{%pipe,getTotalPoints,translateComma=$content[userid]%}</td>
<td class="top10_row5 {%template,ColorSwitch%} bottom">$content[last_online]</td>
</tr>