Rev 1975 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1975 | Rev 1976 | ||
---|---|---|---|
Line 4... | Line 4... | ||
4 | //èäåÿ - ëåâûå ôàéëû îòêðûâàòü ñîîòâåòñòâóþùèìè ïðîãàìè |
4 | //èäåÿ - ëåâûå ôàéëû îòêðûâàòü ñîîòâåòñòâóþùèìè ïðîãàìè |
Line 5... | Line 5... | ||
5 | 5 | ||
Line 6... | Line 6... | ||
6 | // wintodos(buf); -> â ïàðñå õòìë êàê è âñå êîäèðîâêè |
6 | // wintodos(buf); -> â ïàðñå õòìë êàê è âñå êîäèðîâêè |
7 | - | ||
Line 8... | Line 7... | ||
8 | //ol - öèôåðêè |
7 | |
9 | #define version " HTML Viewer v0.63" |
8 | //ol - öèôåðêè |
Line 10... | Line 9... | ||
10 | 9 | ||
Line 18... | Line 17... | ||
18 | int i; |
17 | int i; |
Line 19... | Line 18... | ||
19 | 18 | ||
20 | char download_path[]="/rd/1/.download"; |
19 | char download_path[]="/rd/1/.download"; |
21 | //char search_path[]="http://nova.rambler.ru/search?words="; |
20 | //char search_path[]="http://nova.rambler.ru/search?words="; |
22 | char search_path[]="http://nigma.ru/index.php?s="; |
- | |
- | 21 | char search_path[]="http://nigma.ru/index.php?s="; |
|
Line 23... | Line 22... | ||
23 | 22 | char version " HTML Viewer v0.63" |
|
24 | 23 | ||
25 | 24 | ||
Line 39... | Line 38... | ||
39 | 38 | ||
40 | #include "include\history.h--" |
39 | #include "include\history.h--" |
Line 41... | Line 40... | ||
41 | #include "include\colors.h--" |
40 | #include "include\colors.h--" |
42 | - | ||
43 | void TWebBrowser::Scan(dword id) { |
41 | |
44 | int i=0; |
42 | void TWebBrowser::Scan(dword id) { |
45 | IF (id > 399) { |
43 | IF (id > 399) { |
46 | j = 0; |
44 | j = 0; |
47 | FOR(i = 0; i <= id - 401; i++) { |
45 | FOR(i = 0; i <= id - 401; i++) { |
Line 203... | Line 201... | ||
203 | 201 | ||
Line 204... | Line 202... | ||
204 | GetNewUrl(); |
202 | GetNewUrl(); |
205 | 203 | ||
206 | max_kolvo_stolbcov = width - 30 / 6; |
204 | max_kolvo_stolbcov = width - 30 / 6; |
207 | max_kolvo_strok = height - 3 / 10 - 2; |
205 | max_kolvo_strok = height - 3 / 10 - 2; |
208 | copystr(version, #header); |
206 | copystr(#version, #header); |
209 | IF (!WindowRePaint) { |
207 | IF (!WindowRePaint) { |
210 | za_kadrom = 0; |
208 | za_kadrom = 0; |
211 | copystr(#URL, #editURL); |
209 | copystr(#URL, #editURL); |
Line 225... | Line 223... | ||
225 | } |
223 | } |
226 | ELSE |
224 | ELSE |
227 | WriteText(left + 10, top + 18, 0x80, 0, "Page not found. May be, URL contains some errors.", 0); |
225 | WriteText(left + 10, top + 18, 0x80, 0, "Page not found. May be, URL contains some errors.", 0); |
228 | } |
226 | } |
Line 229... | Line 227... | ||
229 | 227 | ||
230 | IF (!strcmp(version, #header)) DrawTitle(#header); |
228 | IF (!strcmp(#version, #header)) DrawTitle(#header); |
Line 231... | Line 229... | ||
231 | } |
229 | } |
Line 485... | Line 483... | ||
485 | } |
483 | } |
486 | ELSE { |
484 | ELSE { |
487 | w_title = 0; |
485 | w_title = 0; |
488 | stolbec = 0; |
486 | stolbec = 0; |
489 | copystr(#line, #header); |
487 | copystr(#line, #header); |
490 | copystr(" -" + version, #header + strlen(#header)); |
488 | copystr(" -" + #version, #header + strlen(#header)); |
491 | IF(stroka == 0) || (WindowRePaint == 1) DrawTitle(#header); |
489 | IF(stroka == 0) || (WindowRePaint == 1) DrawTitle(#header); |
492 | //äà, çíàþ, 2 ðàçà âûõîäèò, íî, åñëè áîëüøàÿ ñòðàíèöà, òî òðóú |
490 | //äà, çíàþ, 2 ðàçà âûõîäèò, íî, åñëè áîëüøàÿ ñòðàíèöà, òî òðóú |
493 | return; |
491 | return; |
494 | } |
492 | } |
495 | // |
493 | // |