当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 4 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : hack了musica。跑在nginx里面。
帖子发表于 : 2012-01-08 0:33 
头像

注册: 2005-08-14 21:55
帖子: 58428
地址: 长沙
送出感谢: 4
接收感谢: 274
引用:
Musica is a web application for browsing and listening to your music. Songs are organized hierarchically in folders of Artists, and sub-folders of
Albums. The PHP script presents an interface for navigating among artists and albums. It dynamically generates playlists, allows for downloading
single songs, entire albums, and links to Wikipedia articles on artists and albums.



下载软件包。软件依赖apache。只好自己hack下。
● aptitude download musica

● cd ~/php例子; mkdir musica; cd musica
● ln -sf ~/音乐/ music
解压 index.php和musica和png图片,修改musica里面的路径和find的-L参数,并执行。
修改后的脚本,在压缩包里面。
● ./musica
● ll
总用量 60K
-rw-r--r-- 1 eexp eexp 6 2012-01-07 23:38 artists
-rw-r--r-- 1 eexp eexp 2 2012-01-07 23:38 artists.count
-rw-r--r-- 1 eexp eexp 352 2012-01-07 23:38 albums
-rw-r--r-- 1 eexp eexp 3 2012-01-07 23:38 albums.count
-rw-r--r-- 1 eexp eexp 11K 2012-01-07 23:38 songs
-rw-r--r-- 1 eexp eexp 4 2012-01-07 23:38 songs.count
-rwxr-xr-x 1 eexp eexp 425 2012-01-07 23:38 musica*
lrwxrwxrwx 1 eexp eexp 18 2012-01-07 23:29 music -> /home/eexp/音乐//
-rw-r--r-- 1 eexp eexp 21K 2012-01-07 23:00 index.php
..............


nginx 服务配置增加。/etc/nginx/sites-available/default。84端口居然不能用。
#------------------------------------------
server{
listen 85;
server_name musica;
root /home/eexp/php例子/musica/;
location / {
root /home/eexp/php例子/musica/;
index index.php;
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include /etc/nginx/fastcgi_params;
}
}
#------------------------------------------

http://localhost:85/ 可操作本地音乐。只是没web播放。用totem播放。


附件:
musica.png
musica.png [ 109.65 KiB | 被浏览 305 次 ]

musica.tar [170 KiB]
被下载 7 次


_________________
● 鸣学
页首
 用户资料  
 
2 楼 
 文章标题 : Re: hack了musica。跑在nginx里面。
帖子发表于 : 2012-01-08 0:39 
头像

注册: 2010-06-16 1:05
帖子: 14668
地址: Tencent
系统: Mac OS X
送出感谢: 1
接收感谢: 153
那和本地播放有神馬區別。。。


_________________
twitter求fo:http://twitter.com/maplebeats
博客求踩:http://maplebeats.com


页首
 用户资料  
 
3 楼 
 文章标题 : Re: hack了musica。跑在nginx里面。
帖子发表于 : 2012-01-08 0:45 
头像

注册: 2005-08-14 21:55
帖子: 58428
地址: 长沙
送出感谢: 4
接收感谢: 274
才有人要web的音乐播放管理。我为了调戏他们,才去找的,改了改。
服务器嘛,作服务器的事情。
不知道支持下载不,php没仔细看。要是流量来了,我赶紧关闭服务。


_________________
● 鸣学


页首
 用户资料  
 
4 楼 
 文章标题 : Re: hack了musica。跑在nginx里面。
帖子发表于 : 2012-01-08 1:02 
头像

注册: 2005-08-14 21:55
帖子: 58428
地址: 长沙
送出感谢: 4
接收感谢: 274
看到下载图标了。nnnnd
把戏不可久玩了。设置密码去。


_________________
● 鸣学


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 4 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 1 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译