Rev 2566 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2566 | Rev 2605 | ||
---|---|---|---|
Line 13... | Line 13... | ||
13 | int i; |
13 | int i; |
Line 14... | Line 14... | ||
14 | 14 | ||
15 | char download_path[]="/rd/1/.download"; |
15 | char download_path[]="/rd/1/.download"; |
16 | //char search_path[]="http://nova.rambler.ru/search?words="; |
16 | //char search_path[]="http://nova.rambler.ru/search?words="; |
17 | char search_path[]="http://nigma.ru/index.php?s="; |
17 | char search_path[]="http://nigma.ru/index.php?s="; |
Line 18... | Line 18... | ||
18 | char version[]=" Text-based Browser 0.78"; |
18 | char version[]=" Text-based Browser 0.80"; |
19 | 19 | ||
20 | 20 | ||
Line 34... | Line 34... | ||
34 | 34 | ||
Line 35... | Line 35... | ||
35 | byte rez, b_text, i_text, u_text, s_text, pre_text, blq_text, li_text, link, ignor_text, li_tab, body_present; |
35 | byte rez, b_text, i_text, u_text, s_text, pre_text, blq_text, li_text, link, ignor_text, li_tab, body_present; |
36 | 36 | ||
37 | 37 | ||
38 | dword text_colors[10], |
38 | dword text_colors[10], |
Line 39... | Line 39... | ||
39 | text_color_index = 0, |
39 | text_color_index, |
40 | link_color, |
40 | link_color, |
Line 106... | Line 106... | ||
106 | ReadHtml(); |
106 | ReadHtml(); |
107 | koitodos(buf); |
107 | koitodos(buf); |
108 | break; |
108 | break; |
109 | case BACK: |
109 | case BACK: |
110 | BrowserHistory.GoBack(); |
110 | BrowserHistory.GoBack(); |
- | 111 | ||
- | 112 | copystr(#URL, #editURL); |
|
- | 113 | za_kadrom = count = 0; |
|
- | 114 | if (!strcmp(get_URL_part(5),"http:"))) HttpLoad(); |
|
- | 115 | ShowPage(#URL); |
|
111 | return; |
116 | return; |
112 | case FORWARD: |
117 | case FORWARD: |
- | 118 | BrowserHistory.GoForward(); |
|
- | 119 | ||
- | 120 | copystr(#URL, #editURL); |
|
- | 121 | za_kadrom = count = 0; |
|
113 | RunProgram("@notify", "Forward button is not realized yet"); |
122 | if (!strcmp(get_URL_part(5),"http:"))) HttpLoad(); |
- | 123 | ShowPage(#URL); |
|
114 | return; |
124 | return; |
115 | case 054: //F5 |
125 | case 054: //F5 |
116 | IF(edit1.flags == 66) break; |
126 | IF(edit1.flags == 66) break; |
117 | case REFRESH: |
127 | case REFRESH: |
118 | if (GetProcessSlot(downloader_id)<>0) |
128 | if (GetProcessSlot(downloader_id)<>0) |
Line 307... | Line 317... | ||
307 | IF(pre_text == 1) { |
317 | IF(pre_text == 1) { |
308 | bukva = ''; |
318 | bukva = ''; |
309 | temp = ''; |
319 | temp = ''; |
310 | goto NEXT_MARK; |
320 | goto NEXT_MARK; |
311 | } |
321 | } |
312 | CASE '\9': |
322 | case '\9': |
313 | if (pre_text == 1) //èíà÷å èä¸ì íà 0x0d |
323 | if (pre_text == 1) //èíà÷å èä¸ì íà 0x0d |
314 | { |
324 | { |
315 | tab_len=strlen(#line)/8; |
325 | tab_len=strlen(#line)/8; |
316 | tab_len=tab_len*8; |
326 | tab_len=tab_len*8; |
317 | tab_len=8+tab_len-strlen(#line); |
327 | tab_len=8+tab_len-strlen(#line); |
Line 710... | Line 720... | ||
710 | IF (strcmp(#parametr,"alt=")==0) copystr(#options,#line+strlen(#line)); |
720 | IF (strcmp(#parametr,"alt=")==0) copystr(#options,#line+strlen(#line)); |
711 | }*/ |
721 | }*/ |
712 | return; |
722 | return; |
713 | } |
723 | } |
Line 714... | Line 724... | ||
714 | 724 | ||
715 | if (!chTag("meta")) |
725 | if (!chTag("meta")) || (!chTag("?xml")) |
716 | { |
726 | { |
717 | META: |
727 | META: |
718 | if (!strcmp(#parametr, "charset=")) || (!strcmp(#parametr, "content=")) |
728 | if (!strcmp(#parametr, "charset=")) || (!strcmp(#parametr, "content=")) || (!strcmp(#parametr, "encoding=")) |
719 | { |
729 | { |
Line 720... | Line 730... | ||
720 | copystr(#options[find_symbol(#options, '=')],#options); //ïîèñê â content= |
730 | copystr(#options[find_symbol(#options, '=')],#options); //ïîèñê â content= |
721 | 731 |