#include "html.h"
#include "inf.h"
Go to the source code of this file.
Functions | |
char * | ascii2rq (char *orig) |
Escapes special chars in an ascii string to make it request compliant. | |
void | list_songs (request_rec *r, struct mu_ent *p, mu_config *conf) |
Formats the list of songs to be sent. | |
char | treat_args (request_rec *r, mu_config *conf) |
Treats the URL arguments. | |
void | send_url (request_rec *r, char *uri, char *command) |
Formats a complete url string to be sent to client. | |
void | send_head (request_rec *r, mu_config *conf) |
Sends HTML page headers and top of the page. | |
void | send_directories (request_rec *r, struct mu_ent *p, mu_config *conf) |
Sends directory listing for the current folder. | |
void | send_tracks (request_rec *r, struct mu_ent *p, mu_config *conf) |
Sends track listing for the current folder. | |
void | send_playlist (request_rec *r, mu_ent *p, mu_config *conf) |
Sends playlist with url and EXTM3U info to the client. | |
void | send_foot (request_rec *r, mu_config *conf) |
Sends HTML page footers. | |
Variables | |
char | chaine [MAX_STRING] |
Global string used in URL processing. |
Thibaut Varene
Definition in file html.c.
|
Escapes special chars in an ascii string to make it request compliant.
Definition at line 55 of file html.c. References chaine. Referenced by list_songs(). |
|
Formats the list of songs to be sent. This function formats a list of tracks (if any) to be sent to the client, as found in the p list passed in argument. Depending on config options, it allows streaming/shuffle etc.
Definition at line 87 of file html.c. References ascii2rq(), mu_config::fetch_icon, mu_config::fields, FT_MP3, FT_OGG, MI_ALLOWDWNLD, MI_ALLOWSTREAM, MI_QUICKPL, MI_RECURSIVE, MI_SEARCH, mu_config::options, SB_ALBUM, SB_ARTIST, SB_BITRATE, SB_DATE, SB_FILETYPE, SB_GENRE, SB_LENGTH, SB_POSN, SB_TITLE, SB_TRACK, and mu_config::sound_icon. Referenced by send_tracks(). |
|
Sends directory listing for the current folder. This function takes care of preparing and sending to the client the list (if any) of the available directories in the current folder. Depending on config options, it allows streaming/shuffle etc.
Definition at line 463 of file html.c. References FT_DIR, MAX_STRING, MI_ALLOWSTREAM, mu_config::options, and mu_config::small_cd_icon. |
|
Sends HTML page footers. This function takes care of the formating of the HTML page footers. It sends the data that is common to all pages generated by the handler. Currently it relies on apache_mp3 original stylesheets.
Definition at line 744 of file html.c. References MUSIC_AUTHORS_STRING, and MUSIC_VERSION_STRING. Referenced by musicindex_directory(). |
|
Sends HTML page headers and top of the page. This function takes care of the formating of the HTML page headers. It sends the data that is common to all pages generated by the handler.
Definition at line 353 of file html.c. References mu_config::arrow, mu_config::cd_icon, mu_config::css, MI_ALLOWSEARCH, MI_ALLOWSTREAM, mu_config::options, and mu_config::title. Referenced by musicindex_directory(). |
|
Sends playlist with url and EXTM3U info to the client. This function prepares an m3u playlist (with extra information where available: length, artist, title, album) and sends it to the client.
Definition at line 712 of file html.c. References mu_ent::album, mu_ent::artist, mu_ent::length, mu_ent::next, send_url(), mu_ent::title, and mu_ent::uri. Referenced by playlist_directory(), and playlist_selected(). |
|
Sends track listing for the current folder. This function takes care of preparing and sending to the client the list (if any) of the available songs in the current p list. Depending on config options, it allows streaming/shuffle etc.
Definition at line 554 of file html.c. References mu_config::fields, FT_DIR, list_songs(), MI_ALLOWDWNLD, MI_ALLOWSTREAM, MI_QUICKPL, MI_SEARCH, mu_ent::next, mu_config::options, mu_config::order, SB_ALBUM, SB_ARTIST, SB_BITRATE, SB_DATE, SB_FILETYPE, SB_GENRE, SB_LENGTH, SB_POSN, SB_TITLE, and SB_TRACK. |
|
Formats a complete url string to be sent to client. This function does all the URL formatting, in the form: http://[user:][passwd@]hostname[:port]/uri/
Definition at line 302 of file html.c. References MAX_PREFIX. Referenced by send_playlist(). |
|
Treats the URL arguments. This function searches for keywords passed as URL arguments (with "?xxx") and sets the handler options accordingly.
Definition at line 222 of file html.c. References ARG_NUMBER, mu_config::cache_path, MI_ALLOWSEARCH, MI_ALLOWSTREAM, MI_QUICKPL, MI_RECURSIVE, MI_SEARCH, mu_config::options, mu_config::order, mu_config::play_recursive, SB_DEFAULT, SB_RANDOM, SB_URI, mu_config::search, and set_fctptrs(). Referenced by handle_musicindex(). |
|
Global string used in URL processing. That global variable is mandatory since it's used by ascii2rq to return a proper request string. Definition at line 43 of file html.c. Referenced by ascii2rq(). |