Exemplo n.º 1
0
                    <?php 
    // Grabs bio and cuts it down if its too long //
    $bioText = file_get_contents($DATABASE_SCRIPT_DIR . $DS_ARTIST_BIO_DIR . $artistReturn['bio_file']);
    if (strlen($bioText) > $MAX_BIO_SIZE) {
        echo substr(file_get_contents($DATABASE_SCRIPT_DIR . $DS_ARTIST_BIO_DIR . $artistReturn['bio_file']), 0, $MAX_BIO_SIZE) . "...<br /><a href=\"albumlist.php?artist=" . urlencode($artistReturn['artist_name']) . "\">(read more)</a>";
    } else {
        echo file_get_contents($DATABASE_SCRIPT_DIR . $DS_ARTIST_BIO_DIR . $artistReturn['bio_file']);
    }
    ?>
                </p>
            </div>
            
            <!-- Fav system -->
			<div class="favcontainer clearfix">
            	<?php 
    $curFav = favController("art", "artist", $dbHandle, $artistReturn, $curUserInfo, $MAX_SHOW_FAVOURATES);
    ?>
            </div>
        </div>

        <?php 
    $i++;
    if ($i % 2 == 0 && $i >= 2) {
        echo "<br class=\"clear\">";
    }
}
?>

</div>

<?php 
Exemplo n.º 2
0
" class="player">
                    <a href="javascript:findPreview(<?php 
        echo $i;
        ?>
, '<?php 
        echo addslashes($trackReturn['track_name']);
        ?>
');"><img src="images/play.png" width="45px" /></a>
                </div>
                
                <br class="clear" />

				<!-- Favourite system -->
                <div class="favcontainer clearfix">
                    <?php 
        $curFav = favController("tra", "track", $dbHandle, $trackReturn, $curUserInfo, $MAX_SHOW_FAVOURATES);
        ?>
                </div>
            </div>

                <?php 
        $i++;
    }
}
if (!noInput && !$valid && !$i) {
    echo "<h3>That album does not exist</h3><hr />";
} else {
    if (!$i) {
        echo "<h3>Unable to find any tracks in this category</h3><hr />";
    }
}
Exemplo n.º 3
0
                echo substr(file_get_contents($DATABASE_SCRIPT_DIR . $DS_ALBUM_REVIEW_DIR . $albumReturn['review_file']), 0, $MAX_BIO_SIZE) . "...<br /><a href=\"tracklist.php?album=" . urlencode($albumReturn['album_title']) . "\">(read more)</a>";
            } else {
                echo file_get_contents($DATABASE_SCRIPT_DIR . $DS_ALBUM_REVIEW_DIR . $albumReturn['review_file']);
            }
            ?>
                    </p>
                    
                    <?php 
            echo convertTime($albumReturn['time_added']);
            ?>
                </div>
				
				<!-- gets fav system -->
                <div class="favcontainer clearfix">
                	<?php 
            $curFav = favController("alb", "album", $dbHandle, $albumReturn, $curUserInfo, $MAX_SHOW_FAVOURATES);
            ?>
                </div>
            </div>
            <?php 
            $i++;
            if ($i % 2 == 0 && $i >= 2) {
                echo "<br class=\"clear\">";
            }
        }
    }
    ?>
    <div class="sixteen columns">
        <?php 
    if ($i == 0) {
        echo "<h3>No albums in this category</h3>";