Rev 4565 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4565 | Rev 4571 | ||
---|---|---|---|
Line 33... | Line 33... | ||
33 | char version[]=" ¥ªáâ®¢ë© ¡à 㧥à 0.99.67"; |
33 | char version[]=" ¥ªáâ®¢ë© ¡à 㧥à 0.99.67"; |
34 | ?define IMAGES_CACHE_CLEARED "íè ª à⨮ª ®ç¨é¥" |
34 | ?define IMAGES_CACHE_CLEARED "íè ª à⨮ª ®ç¨é¥" |
35 | ?define T_LAST_SLIDE "â® ¯®á«¥¤¨© á« ©¤" |
35 | ?define T_LAST_SLIDE "â® ¯®á«¥¤¨© á« ©¤" |
36 | char loading[] = " £à㧪 áâà ¨æë... |
36 | char loading[] = " £à㧪 áâà ¨æë... |
37 | unsigned char page_not_found[] = FROM "html\page_not_found_ru.htm"; |
37 | unsigned char page_not_found[] = FROM "html\page_not_found_ru.htm"; |
- | 38 | char accept_language[]= "Accept-Language: ru\n\0"; |
|
38 | #else |
39 | #else |
39 | char version[]=" Text-based Browser 0.99.67"; |
40 | char version[]=" Text-based Browser 0.99.67"; |
40 | ?define IMAGES_CACHE_CLEARED "Images cache cleared" |
41 | ?define IMAGES_CACHE_CLEARED "Images cache cleared" |
41 | ?define T_LAST_SLIDE "This slide is the last" |
42 | ?define T_LAST_SLIDE "This slide is the last" |
42 | char loading[] = "Loading... |
43 | char loading[] = "Loading... |
43 | unsigned char page_not_found[] = FROM "html\page_not_found_en.htm"; |
44 | unsigned char page_not_found[] = FROM "html\page_not_found_en.htm"; |
- | 45 | char accept_language[]= "Accept-Language: en\n\0"; |
|
44 | #endif |
46 | #endif |
Line 45... | Line 47... | ||
45 | 47 | ||
Line 46... | Line 48... | ||
46 | byte native_http=1; |
48 | byte native_http=1; |
Line 368... | Line 370... | ||
368 | MoveSize(190,80,OLD,OLD); |
370 | MoveSize(190,80,OLD,OLD); |
369 | RunProgram(#program_path, #URL); |
371 | RunProgram(#program_path, #URL); |
370 | return; |
372 | return; |
Line 371... | Line 373... | ||
371 | 373 | ||
372 | case HOME: |
374 | case HOME: |
373 | strcpy(#editURL, "http://kolibrios.org/en/index.htm"); |
375 | strcpy(#editURL, "http://kolibrios.org/"); |
374 | case GOTOURL: |
376 | case GOTOURL: |
375 | case 0x0D: //enter |
377 | case 0x0D: //enter |
376 | if ((strstr(#editURL,"ttp://")==0) && (editURL[0]!='/')) strcpy(#URL,"http://"); else URL[0] = 0; |
378 | if ((strstr(#editURL,"ttp://")==0) && (editURL[0]!='/')) strcpy(#URL,"http://"); else URL[0] = 0; |
377 | strcat(#URL, #editURL); |
379 | strcat(#URL, #editURL); |
Line 490... | Line 492... | ||
490 | pre_text =0; |
492 | pre_text =0; |
491 | if (!strncmp(#URL,"http:",5)) |
493 | if (!strncmp(#URL,"http:",5)) |
492 | { |
494 | { |
493 | if (native_http) |
495 | if (native_http) |
494 | { |
496 | { |
495 | http_get stdcall (#URL, 0); |
497 | http_get stdcall (#URL, #accept_language); |
496 | http_transfer = EAX; |
498 | http_transfer = EAX; |
497 | IF (http_transfer < 0) notify("Error from HTTP lib"); |
499 | IF (http_transfer < 0) notify("Error from HTTP lib"); |
498 | } |
500 | } |
499 | else |
501 | else |
500 | { |
502 | { |