$v) { if ($v == $_GET['album']) { // Get the previous album. if (array_key_exists($k-1, $dirList['List'])) { $previous = $dirList['List'][$k-1]; $previousAlbum = getConfig('./' . $previous . '/imageData.xml'); } // Get the current album. $currentAlbum = getConfig('./' . $v . '/imageData.xml'); // Get the next album. if (array_key_exists($k+1, $dirList['List'])) { $next = $dirList['List'][$k+1]; $nextAlbum = getConfig('./' . $next . '/imageData.xml'); } break; } } ?>
 ← ' . ((isPhpOfVersion(5) == -1) ? utf8_encode($previousAlbum['title']) : $previousAlbum['title']) . '' ; } ?> Back to "" ' . ((isPhpOfVersion(5) == -1) ? utf8_encode($nextAlbum['title']) : $nextAlbum['title']) . ' →' ; } ?> 
LoginSimpleViewerAdmin
SimpleViewer is not set up!

Please log in!

'; // SimpleViewer is installed, show the list of albums. } else { // My SimpleViewerAdmin Gallery echo '

' . (!empty($simpleViewer['title']) ? $simpleViewer['title'] : $simpleViewer['defaultTitle']) . '

' . (!empty($simpleViewer['welcomeText']) ? $simpleViewer['welcomeText'] : 'Please choose one of my albums:') . '

'; // Extende display of the list as a table featuring // random thumbnails. if ($simpleViewer['showThumbnailsOnIndex'] == 'true') { echo "\n"; // Display the albums as a list. } else { echo "
    \n"; foreach ($dirList['List'] as $k => $v) { // Get the real name of the current album. $xmlData = getConfig('./' . $v . '/imageData.xml'); $albumRealName = ((isPhpOfVersion(5) == -1) ? utf8_encode($xmlData['title']) : $xmlData['title']); // Get the list of thumbnail files in the current album. $fileList = getDirList('./' . $v . '/thumbs/', '', false, 'files'); if ($fileList['Number'] == 0) { echo '
  • ' . $albumRealName . " (" . $fileList['Number'] . " images)
  • \n"; } else { echo '
  • ' . $albumRealName . " (" . $fileList['Number'] . " images)
  • \n"; } } echo "
\n"; } echo '

' . (!empty($simpleViewer['extraText']) ? $simpleViewer['extraText'] : '') . '

'; } ?>
LoginSimpleViewerAdmin