<?php if (isset($data['playlistDirectory']['files']) && !empty($data['playlistDirectory']['files'])) { ?> <?php $i = 0; $defaultFilename = array('guestlist.txt', 'blacklist.txt', 'guestlist.xml', 'blacklist.xml'); ?> <?php foreach ($data['playlistDirectory']['files'] as $file) { ?> <?php if (in_array($file['filename'], $defaultFilename) || ($isDoubleExt = in_array(File::getDoubleExtension($file['filename']), AdminServConfig::$PLAYLIST_EXTENSION))) { ?> <?php // Playlist data $playlistData = AdminServ::getPlaylistData($data['gameDataDirectory'] . 'Config/' . $file['filename']); if (isset($playlistData['logins'])) { $countDataLogins = count($playlistData['logins']); $nbPlayers = $countDataLogins > 1 ? $countDataLogins . ' ' . Utils::t('players') : '1 ' . Utils::t('player'); } else { $nbPlayers = '0 ' . Utils::t('player'); } // Filename $parseExtIndex = $isDoubleExt ? -13 : -4; $filename = substr($file['filename'], 0, $parseExtIndex); ?> <tr class="<?php echo $i % 2 ? 'even' : 'odd'; ?> "> <td class="imgleft"><img src="<?php