Changeset 32105
- Timestamp:
- 01/05/15 16:22:24 (8 years ago)
- Location:
- titan/titan
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/titan/httpdfunc.h
r32082 r32105 760 760 { 761 761 buf = ostrcat(buf, "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"><link rel=stylesheet type=text/css href=titan.css></head><body class=body><center>", 1, 0); 762 if( vol >=10)762 if((vol >=10) && (status.mute != 1)) 763 763 buf = ostrcat(buf, "<a href=query?setvol&10><img src=img/led_on.png border=0></img></a> ", 1, 0); 764 764 else 765 765 buf = ostrcat(buf, "<a href=query?setvol&10><img src=img/led_off.png border=0></img></a> ", 1, 0); 766 if( vol >=20)766 if((vol >=20) && (status.mute != 1)) 767 767 buf = ostrcat(buf, "<a href=query?setvol&20><img src=img/led_on.png border=0></img></a> ", 1, 0); 768 768 else 769 769 buf = ostrcat(buf, "<a href=query?setvol&20><img src=img/led_off.png border=0></img></a> ", 1, 0); 770 if( vol >=30)770 if((vol >=30) && (status.mute != 1)) 771 771 buf = ostrcat(buf, "<a href=query?setvol&30><img src=img/led_on.png border=0></img></a> ", 1, 0); 772 772 else 773 773 buf = ostrcat(buf, "<a href=query?setvol&30><img src=img/led_off.png border=0></img></a> ", 1, 0); 774 if( vol >=40)774 if((vol >=40) && (status.mute != 1)) 775 775 buf = ostrcat(buf, "<a href=query?setvol&40><img src=img/led_on.png border=0></img></a> ", 1, 0); 776 776 else 777 777 buf = ostrcat(buf, "<a href=query?setvol&40><img src=img/led_off.png border=0></img></a> ", 1, 0); 778 if( vol >=50)778 if((vol >=50) && (status.mute != 1)) 779 779 buf = ostrcat(buf, "<a href=query?setvol&50><img src=img/led_on.png border=0></img></a> ", 1, 0); 780 780 else 781 781 buf = ostrcat(buf, "<a href=query?setvol&50><img src=img/led_off.png border=0></img></a> ", 1, 0); 782 if( vol >=60)782 if((vol >=60) && (status.mute != 1)) 783 783 buf = ostrcat(buf, "<a href=query?setvol&60><img src=img/led_on.png border=0></img></a> ", 1, 0); 784 784 else 785 785 buf = ostrcat(buf, "<a href=query?setvol&60><img src=img/led_off.png border=0></img></a> ", 1, 0); 786 if( vol >=70)786 if((vol >=70) && (status.mute != 1)) 787 787 buf = ostrcat(buf, "<a href=query?setvol&70><img src=img/led_on.png border=0></img></a> ", 1, 0); 788 788 else 789 789 buf = ostrcat(buf, "<a href=query?setvol&70><img src=img/led_off.png border=0></img></a> ", 1, 0); 790 if( vol >=80)790 if((vol >=80) && (status.mute != 1)) 791 791 buf = ostrcat(buf, "<a href=query?setvol&80><img src=img/led_on.png border=0></img></a> ", 1, 0); 792 792 else 793 793 buf = ostrcat(buf, "<a href=query?setvol&80><img src=img/led_off.png border=0></img></a> ", 1, 0); 794 if( vol >=90)794 if((vol >=90) && (status.mute != 1)) 795 795 buf = ostrcat(buf, "<a href=query?setvol&90><img src=img/led_on.png border=0></img></a> ", 1, 0); 796 796 else 797 797 buf = ostrcat(buf, "<a href=query?setvol&90><img src=img/led_off.png border=0></img></a> ", 1, 0); 798 if( vol >=100)798 if((vol >=100) && (status.mute != 1)) 799 799 buf = ostrcat(buf, "<a href=query?setvol&100><img src=img/led_on.png border=0></img></a> ", 1, 0); 800 800 else … … 4734 4734 char* tmpstr2 = NULL; 4735 4735 struct splitstr* ret2 = NULL; 4736 tmpstr = ostrcat("10\n40\n50\n60\n70\n80\n90\n99\n100\n130\n150\n200\n250\n270\n300\n400\n 900\n1000", NULL, 0, 0);4737 tmpstr2 = ostrcat(" - Minimal\n - TopfieldVFD\n - MediaCenter\n - Menulist\n - Network Browser\n - Harddisk\n - Screensaver\n - Tithek\n - Global\n - TPK\n - ePlayer\n - Tuning\n - Stream/Record/Softcam\n - EPG\n - Radiotext\n - Subtitle\n - Mutex\n - Function", NULL, 0, 0);4736 tmpstr = ostrcat("10\n40\n50\n60\n70\n80\n90\n99\n100\n130\n150\n200\n250\n270\n300\n400\n500\n900\n1000", NULL, 0, 0); 4737 tmpstr2 = ostrcat(" - Minimal\n - TopfieldVFD\n - MediaCenter\n - Menulist\n - Network Browser\n - Harddisk\n - Screensaver\n - Tithek\n - Global\n - TPK\n - ePlayer\n - Tuning\n - Stream/Record/Softcam\n - EPG\n - Radiotext\n - Subtitle\n - Scan\n - Mutex\n - Function", NULL, 0, 0); 4738 4738 4739 4739 ostrcatbig(&buf, "<tr><td><font class=\"label\">", &maxlen, &pos); -
titan/titan/skin.h
r32092 r32105 34 34 return &getpicon; 35 35 } 36 36 37 #ifdef MIPSEL 37 if(ostrcmp("getoledmute", value) == 0) 38 { 39 *rettype = FUNCPIC; 40 return &getoledmute; 41 } 42 43 if(ostrcmp("getoledtimeshift", value) == 0) 44 { 45 *rettype = FUNCPIC; 46 return &getoledtimeshift; 47 } 48 49 if(ostrcmp("getoledrec", value) == 0) 50 { 51 *rettype = FUNCPIC; 52 return &getoledrec; 53 } 54 55 if(ostrcmp("getoledstreaming", value) == 0) 56 { 57 *rettype = FUNCPIC; 58 return &getoledstreaming; 59 } 60 38 if(checkrealbox("INI-8000AM") == 1) 39 { 40 if(ostrcmp("getoledmute", value) == 0) 41 { 42 *rettype = FUNCPIC; 43 return &getoledmute; 44 } 45 46 if(ostrcmp("getoledtimeshift", value) == 0) 47 { 48 *rettype = FUNCPIC; 49 return &getoledtimeshift; 50 } 51 52 if(ostrcmp("getoledrec", value) == 0) 53 { 54 *rettype = FUNCPIC; 55 return &getoledrec; 56 } 57 58 if(ostrcmp("getoledstreaming", value) == 0) 59 { 60 *rettype = FUNCPIC; 61 return &getoledstreaming; 62 } 63 } 61 64 #endif 65 62 66 if(ostrcmp("getalternatepicon", value) == 0) 63 67 { -
titan/titan/skinfunc.h
r32089 r32105 144 144 145 145 #ifdef MIPSEL 146 ///rec png 147 char* getoledrec(struct skin* node, char* path) 148 { 149 char* tmpstr = NULL; 150 151 if(status.recording > 0) 152 { 153 tmpstr = ostrcat("oled_rec.png", NULL, 0, 0); 154 155 if(path != NULL) 156 tmpstr = ostrcat("/", tmpstr, 0, 1); 157 tmpstr = ostrcat(path, tmpstr, 0, 1); 158 } 159 160 return tmpstr; 161 } 162 ///mute png 163 char* getoledmute(struct skin* node, char* path) 146 if(checkrealbox("INI-8000AM") == 1) 147 { 148 //rec png 149 char* getoledrec(struct skin* node, char* path) 150 { 151 char* tmpstr = NULL; 152 153 if(status.recording > 0) 154 { 155 tmpstr = ostrcat("oled_rec.png", NULL, 0, 0); 156 157 if(path != NULL) tmpstr = ostrcat("/", tmpstr, 0, 1); 158 tmpstr = ostrcat(path, tmpstr, 0, 1); 159 } 160 161 return tmpstr; 162 } 163 //mute png 164 char* getoledmute(struct skin* node, char* path) 164 165 { 165 166 char* tmpstr = NULL; … … 169 170 tmpstr = ostrcat("oled_mute.png", NULL, 0, 0); 170 171 171 if(path != NULL) 172 tmpstr = ostrcat("/", tmpstr, 0, 1); 172 if(path != NULL) tmpstr = ostrcat("/", tmpstr, 0, 1); 173 173 tmpstr = ostrcat(path, tmpstr, 0, 1); 174 174 } … … 177 177 } 178 178 179 ///timeshift png180 char* getoledtimeshift(struct skin* node, char* path)179 //timeshift png 180 char* getoledtimeshift(struct skin* node, char* path) 181 181 { 182 182 char* tmpstr = NULL; … … 186 186 tmpstr = ostrcat("oled_timeshift.png", NULL, 0, 0); 187 187 188 if(path != NULL) 189 tmpstr = ostrcat("/", tmpstr, 0, 1); 188 if(path != NULL) tmpstr = ostrcat("/", tmpstr, 0, 1); 190 189 tmpstr = ostrcat(path, tmpstr, 0, 1); 191 190 } … … 194 193 } 195 194 196 ///streaming png197 char* getoledstreaming(struct skin* node, char* path)195 //streaming png 196 char* getoledstreaming(struct skin* node, char* path) 198 197 { 199 198 char* tmpstr = NULL; … … 203 202 tmpstr = ostrcat("oled_streaming.png", NULL, 0, 0); 204 203 205 if(path != NULL) 206 tmpstr = ostrcat("/", tmpstr, 0, 1); 204 if(path != NULL) tmpstr = ostrcat("/", tmpstr, 0, 1); 207 205 tmpstr = ostrcat(path, tmpstr, 0, 1); 208 206 } … … 210 208 return tmpstr; 211 209 } 212 210 } 213 211 #endif 214 212
Note: See TracChangeset
for help on using the changeset viewer.