diff --git a/ajaxui/ajaxui_channels.c b/ajaxui/ajaxui_channels.c index 2ed65356..bcd04e1d 100644 --- a/ajaxui/ajaxui_channels.c +++ b/ajaxui/ajaxui_channels.c @@ -16,6 +16,10 @@ * along with this program. If not, see . */ +#include +#include +#include + #include #include #include @@ -23,6 +27,7 @@ #include #include + #include "tvhead.h" #include "http.h" #include "ajaxui.h" @@ -131,6 +136,7 @@ ajax_channel_tab(http_connection_t *hc, http_reply_t *hr, th_channel_t *ch; th_channel_group_t *tcg; char dispname[20]; + struct sockaddr_in *si; if(remain == NULL || (tcg = channel_group_by_tag(atoi(remain))) == NULL) return HTTP_STATUS_NOT_FOUND; @@ -146,6 +152,8 @@ ajax_channel_tab(http_connection_t *hc, http_reply_t *hr, ajax_box_begin(tq, AJAX_BOX_SIDEBOX, NULL, NULL, dispname); + /* inner */ + tcp_qprintf(tq, "
"); @@ -158,6 +166,17 @@ ajax_channel_tab(http_connection_t *hc, http_reply_t *hr, ch->ch_icon); } + tcp_qprintf(tq, "
"); + + tcp_qprintf(tq, "
"); + + si = (struct sockaddr_in *)&hc->hc_tcp_session.tcp_self_addr; + + tcp_qprintf(tq, + "Stream", + inet_ntoa(si->sin_addr), ntohs(si->sin_port), + ch->ch_sname); + tcp_qprintf(tq, "
"); tcp_qprintf(tq, "");