function get_songs_path() { $path = constant('SONGS_PATH') . get_tape_path() . '/'; if (!file_exists($path)) { mkdir($path); } return $path; }
echo get_base_url(); ?> code/edit.php" method="post"> <input id="upload_input" name="file" type="file" /><input type="hidden" name="MAX_FILE_SIZE" value="<?php echo get_max_upload_bytes(); ?> " /><br /> <input type="submit" class="button" id="upload_button" value="Upload" /> </form> </div> <div class="section"> <h2>Rearrange Songs</h2> <p><strong>Drag & drop</strong> to change the order of your mixtape, it will save automatically.</p> <ul class="sortie"> <?php foreach ($songlist_struct[get_tape_path()] as $pos => $row) { if (!is_file(get_songs_path() . $row['filename'])) { unset($songlist_struct[$pos]); continue; } ?> <li id="<?php echo $pos; ?> "> <div class="name"> <span class="original_artist"><?php if (isset($row['opentape_artist']) && !empty($row['opentape_artist'])) { echo $row['opentape_artist']; } elseif (!isset($row['opentape_artist']) && isset($row['artist'])) { echo $row['artist'];