Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

BandLogos is a simple application that generate a banner of logos based on your last.fm statistics.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 classes
Octocat-spinner-32 logos
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.md
Octocat-spinner-32 banner.php
Octocat-spinner-32 filldb.php
Octocat-spinner-32 index.php
Octocat-spinner-32 installation.sql
Octocat-spinner-32 link.php
Octocat-spinner-32 logos.php
README.md

Installation

  1. Download the source files
  2. Download the latest logos
  3. You need a installation of Apache/PHP5/MySQL/gd2
  4. Change the settings in /classes/bd/DBConfig.class.php and /classes/Config.class.php
  5. Run the SQL script /install.sql
  6. Extract all logos to /logos/ and run /filldb.php

Usage

  • To add new logos, run filldb.php again
  • To update users' banners, clear the table lastfm_images_cache

Adding a new layout

Look at the Layout interface for detail guidelines.

Security configuration

Authentication can be added to prevent unwanted calls to utility scripts.

.htaccess

Create a file with the following content.

AuthName "Restricted Area" 
AuthType Basic 
AuthUserFile /some/path/.htpasswd 
AuthGroupFile /dev/null 

<Files filldb.php>
require valid-user
</Files>

.htpasswd

To create the password file use the following command.

htpasswd -c .htpasswd adminuser
Something went wrong with that request. Please try again.