-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 298deb2
Showing
29 changed files
with
2,445 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
ver 0.11.1 (2011/1/14)* | ||
1) Add initial PHP 5 support | ||
2) Add support for the latest version of MPD. | ||
3) Replaced "volume" command with "setvol." | ||
|
||
ver 0.11.0 (2004/6/18) | ||
1) Add ability to add streams | ||
2) Support for displaying stream names | ||
|
||
ver 0.10.1 (2004/3/25) | ||
1) Check that Track, Album, and Artist indexes are set for songs | ||
2) Fix seek bar devide by zero error when total time is 0 | ||
|
||
ver 0.10.0 (2004/3/4) | ||
1) Add password support | ||
2) Add crossfade support | ||
3) UTF-8 Support | ||
4) Fix " " => "%20" for url in loast song of playlist (Hannes Reich) | ||
5) Link directory names instead of using [dir] | ||
|
||
ver 0.9.1 (2003/10/30) | ||
1) Fix flush() bugs with z-compression | ||
2) Check for each metadata element for songs | ||
|
||
ver 0.9.0 (2003/9/30) | ||
1) Add seeking support | ||
2) Add random mode support | ||
3) Add "condense" mode, so that it doesn't show all songs in the playlist for | ||
faster playlist processing and rendering in a browser. | ||
|
||
ver 0.8.3 (2003/8/12) | ||
1) Fix a bug in display playlist if some songs contain tags and some don't | ||
2) Fix a bug with + | ||
3) Fix a bug with # | ||
|
||
ver 0.8.2 (2003/7/22) | ||
1) Added no-cache to html headers | ||
2) Added nowrap on playlist title buttons | ||
3) Put unix time in URL to workaround metaflag refresh not works for delete | ||
4) refresh not working correctly | ||
|
||
ver 0.8.1 (2003/7/11) | ||
1) Fix \ and " bug for adding directories to playlist | ||
2) Fix bug for indexing music with filenames_only | ||
3) Rewrite playlist display, so it doesn't put songs in array, just print them | ||
out immediatly, should consume less ram and be faster | ||
|
||
ver 0.8.0 (2003/7/6) | ||
1) Remove index table, put index with corresponding table | ||
2) Use listall to queue all files in a directory | ||
3) Add frames_layout config option | ||
4) Fix " bug | ||
|
||
ver 0.6.0 (2003/6/19) | ||
1) add volume control | ||
2) add repeate mode | ||
3) bug fix in dealing with ' | ||
|
||
ver 0.5.5 (2003/6/11) | ||
1) add "prev" and "next" | ||
2) new "| |" symbol for pause | ||
3) search by filename | ||
4) option to use post/js method for add_all, to handle huge numbers of songs, and avoid too long uri errors | ||
5) $unknown_string option to modify how unknow tag info is displayed | ||
|
||
ver 0.5.4 (2003/5/29) | ||
1) Fix notices/warrnings about uninitizlaed/undefined variables when | ||
E_NOTICE is set in php.ini (thanks to Aschwin) | ||
|
||
0.5.3 | ||
----- | ||
Added theme.php, and filenames_only option | ||
|
||
0.5.0-0.5.2 | ||
----------- | ||
Initial releases, not sure what changed other than bug fixes. | ||
|
||
* - Notes an unoficial release by Steven DuBois (sdubois@csh.rit.edu) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
phpMp - INSTALL | ||
|
||
Requirements | ||
------------ | ||
|
||
1) Music Player Daemon (MPD) - http://www.musicpd.org | ||
2) Web server such as apache (included with many distributions) | ||
3) PHP for your webserver (included with many distributions) | ||
|
||
Download | ||
-------- | ||
|
||
Get the latest release of phpMp from http://www.musicpd.org | ||
|
||
Requirements | ||
------------ | ||
|
||
MPD >= 0.10.0 | ||
PHP >= 4 | ||
|
||
Install | ||
------- | ||
|
||
1) move phpMp archive to a directory accessible by the web server | ||
|
||
$ cp phpMp-x.x.x.tar.gz public_html/ | ||
|
||
2) cd to where you copied the phpMp archive | ||
|
||
$ cd public_html | ||
|
||
3) untar and unzip archive | ||
|
||
$ tar zxvf phpMp-x.x.x.tar.gz | ||
|
||
4) configure options (such as port MPD listens to and host MPD is running on) | ||
using your favorite text editor, edit config.php | ||
|
||
example: | ||
$ vi phpMp-x.x.x/config.php | ||
|
||
Using phpMp | ||
--------- | ||
|
||
Point your favorite web browser at the location of phpMp on your web server | ||
|
||
example: | ||
http://my.webserver.com/~myusername/phpMp-x.x.x |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
|
||
phpMp | ||
http://www.musicpd.org | ||
|
||
phpMp is a web interface (written in PHP 4) for the Music Player Daemon (MPD). | ||
|
||
To install phpMp, see INSTALL. | ||
|
||
This version of phpMP is modified from the original version to work with the | ||
latest version of MPD and PHP 5. If you find a bug or problem, contact Steven | ||
DuBois at sdubois@csh.rit.edu | ||
|
||
phpMp is released under the GNU Public License. | ||
You should have received a copy of the GNU General Public License | ||
along with this program; if not, write to the Free Software | ||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
For the full license, see COPYING. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1) add phpMp and MPD version somewhere |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php | ||
// NEED TO SET THESE! | ||
$host = "localhost"; | ||
$port = 6600; | ||
|
||
// OPTIONAL | ||
$title = "phpMp"; | ||
global $song_display_conf; | ||
$song_display_conf = "(artist) title"; | ||
$use_images = "no"; | ||
$refresh_freq = 60; | ||
$default_sort = "Artist,Album,Track,Title"; | ||
global $unknown_string; | ||
$unknown_string = ""; | ||
$frames_layout = "cols=\"1*,250\""; | ||
global $filenames_only; | ||
$filenames_only = "no"; | ||
global $use_javascript_add_all; | ||
$use_javascript_add_all = "yes"; | ||
$hide_threshold = 20; | ||
$use_cookies = "yes"; | ||
|
||
// VOLUME OPTIONS | ||
$display_volume = "yes"; | ||
$volume_incr = "5"; | ||
|
||
|
||
// SHOULDN'T NEED TO TOUCH THIS | ||
global $song_seperator; | ||
$song_seperator = "rqqqrqqqr"; | ||
|
||
// EXPERIMENTAL | ||
//no frames doesn't work! | ||
$frames = "yes"; // yes or no | ||
|
||
//include colors | ||
include "theme.php"; | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
global $has_password; | ||
$has_password = 0; | ||
if(isset($_COOKIE["phpMp_password"])) { | ||
$password = $_COOKIE["phpMp_password"]; | ||
$has_password = 1; | ||
} | ||
include "config.php"; | ||
include "theme.php"; | ||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); | ||
header("Cache-Control: no-cache, must-revalidate"); | ||
header("Pragma: no-cache"); | ||
header("Content-Type: text/html; charset=UTF-8"); | ||
?> | ||
<html> | ||
<head> | ||
<META HTTP-EQUIV="Expires" CONTENT="Thu, 01 Dec 1994 16:00:00 GMT"> | ||
<META HTTP-EQUIV="Pragma" CONTENT="no-cache"> | ||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"> | ||
<?php | ||
// php won't interpret inside of the style block | ||
print "<style type=\"text/css\">\n"; | ||
print "* {\n"; | ||
print " font-family: " . $fonts["all"] . ";\n"; | ||
print "}\n"; | ||
print "</style>\n"; | ||
?> | ||
</head> | ||
<body link="<?php print $colors["links"]["link"]; ?>" | ||
vlink="<?php print $colors["links"]["visual"]; ?>" | ||
alink="<?php print $colors["links"]["active"]; ?>" | ||
bgcolor="<?php print $colors["background"]; ?>"> | ||
<?php | ||
include "find_body.php"; | ||
?> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<?php | ||
include "info.php"; | ||
include "config.php"; | ||
include "utils.php"; | ||
include "info2html.php"; | ||
$dir = ""; | ||
$find = ""; | ||
$arg = ""; | ||
$sort = $default_sort; | ||
EXTRACT($_GET); | ||
$sort_array = split(",",$sort); | ||
$fp = fsockopen($host,$port,$errno,$errstr,10); | ||
if(!$fp) { | ||
echo "$errstr ($errno)<br>\n"; | ||
} | ||
else { | ||
while(!feof($fp)) { | ||
$got = fgets($fp,1024); | ||
if(strncmp("OK",$got,strlen("OK"))==0) | ||
break; | ||
print "$got<br>"; | ||
if(strncmp("ACK",$got,strlen("ACK"))==0) | ||
break; | ||
} | ||
if(isset($password)) { | ||
fputs($fp,"password \"$password\"\n"); | ||
while(!feof($fp)) { | ||
$got = fgets($fp,1024); | ||
if(strncmp("OK",$got,strlen("OK"))==0) | ||
break; | ||
print "$got<br>"; | ||
if(strncmp("ACK",$got,strlen("ACK"))==0) | ||
break; | ||
} | ||
} | ||
$dir_url = sanitizeForURL($dir); | ||
displayDirectory($dir,$sort,"Back to Directory",0,0); | ||
$lsinfo = getLsInfo($fp,"find $find \"$arg\"\n"); | ||
list($mprint,$mindex,$add_all) = lsinfo2musicTable($lsinfo,$sort,$dir_url); | ||
$arg_url = sanitizeForURL($arg); | ||
printMusicTable($mprint,"find.php?find=$find&arg=$arg_url&dir=$dir_url",$add_all,$mindex); | ||
fclose($fp); | ||
displayStats($dir,$sort); | ||
displayUpdate($dir,$sort); | ||
} | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
include "config.php"; | ||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); | ||
header("Cache-Control: no-cache, must-revalidate"); | ||
header("Pragma: no-cache"); | ||
?> | ||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" http://www.w3.org/TR/html4/frameset.dtd"> | ||
<html> | ||
<head> | ||
<title><?php print $title?></title> | ||
</head> | ||
<?php | ||
if(0==strcmp($frames,"yes")) { | ||
print "<frameset border=3 $frames_layout>\n"; | ||
print "<frame name=\"main\" src=\"main.php\">\n"; | ||
print "<frame name=\"playlist\" src=\"playlist.php\">\n"; | ||
print "<noframes>NO FRAMES :-(</noframes>\n"; | ||
print "</frameset>\n"; | ||
} | ||
else { | ||
print "<body bgcolor=\"" . $colors["background"] . "\">\n"; | ||
print "<table border=0 cellspacing=0 width=\"100%\">\n"; | ||
print "<tr valign=top><td>\n"; | ||
include "main_body.php"; | ||
print "</td>\n"; | ||
print "<td width=250>\n"; | ||
include "playlist_body.php"; | ||
print "</td></tr>\n"; | ||
print "</table>"; | ||
print "</body>\n"; | ||
} | ||
?> | ||
</html> |
Oops, something went wrong.