21 lines
711 B
PHP
21 lines
711 B
PHP
|
<?php
|
||
|
/**
|
||
|
* serendipity_plugin_heavyrotation - Displaying Heavy Rotation
|
||
|
*
|
||
|
* Serendipity plugin implementing a Last.fm/Audioscrobbler based Heavy Rotation
|
||
|
* visualisation with the cover image fetched from Amazon.
|
||
|
*
|
||
|
* @author Lars Strojny <lars@strojny.net>
|
||
|
*/
|
||
|
@define('SERENDIPITY_PLUGIN_HEAVYROTATION_VERSION', '0.9');
|
||
|
|
||
|
if (IN_SERENDIPITY != true) die("Don't hack");
|
||
|
|
||
|
if (version_compare(phpversion(), '5.1.0', '>=')) {
|
||
|
$probelang = dirname(__FILE__) . '/' . $serendipity['charset'] . 'lang_' . $serendipity['lang'] . '.inc.php';
|
||
|
if (file_exists($probelang)) include $probelang;
|
||
|
else include 'lang_en.inc.php';
|
||
|
|
||
|
require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'plugin.inc.php';
|
||
|
}
|