Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div id="albumSelect" class="albumSelect">
- <ul>
- <?php
- if(isset($_GET['firstAlbum'])) { $firstAlbum = $_GET['firstAlbum']; }
- if(!isset($firstAlbum)) { $firstAlbum = ''; }
- $i=0;
- if(file_exists('images')) {
- $files = array_slice(scandir('images'), 2);
- if(count($files)) {
- natcasesort($files);
- foreach($files as $file) {
- if($file != '.' && $file != '..') {
- if($i===0 && $firstAlbum=='')
- $firstAlbum = $file;
- else
- echo "<li><a>$file</a></li>";
- ++$i;
- }
- }
- }
- }
- ?>
- </ul>
- <div class="title down"><?php echo $firstAlbum;?></div>
- </div>
RAW Paste Data