30,7 → 30,7 |
#include "img\URLgoto.txt"; |
|
#ifdef LANG_RUS |
char version[]=" ¥ªáâ®¢ë© ¡à 㧥à 0.99.7"; |
char version[]=" ¥ªáâ®¢ë© ¡à 㧥à 0.99.71"; |
?define IMAGES_CACHE_CLEARED "íè ª à⨮ª ®ç¨é¥" |
?define T_LAST_SLIDE "â® ¯®á«¥¤¨© á« ©¤" |
char loading[] = " £à㧪 áâà ¨æë...<br>"; |
37,7 → 37,7 |
unsigned char page_not_found[] = FROM "html\page_not_found_ru.htm"; |
char accept_language[]= "Accept-Language: ru\n\0"; |
#else |
char version[]=" Text-based Browser 0.99.7"; |
char version[]=" Text-based Browser 0.99.71"; |
?define IMAGES_CACHE_CLEARED "Images cache cleared" |
?define T_LAST_SLIDE "This slide is the last" |
char loading[] = "Loading...<br>"; |
207,12 → 207,12 |
} |
else |
{ |
if (o_bufpointer) o_bufpointer = free(o_bufpointer); |
ESI = http_transfer; |
bufpointer = ESI.http_msg.content_ptr; |
bufsize = ESI.http_msg.content_received; |
http_free stdcall (http_transfer); |
http_transfer=0; |
SetPageDefaults(); |
Draw_Window(); // stop button => refresh button |
} |
} |
469,7 → 469,18 |
mem_Free(EAX); // free data |
http_transfer=0; |
bufsize = 0; |
PutPaletteImage(#toolbar,200,42,0,0,8,#toolbar_pal); |
} |
} |
|
void SetPageDefaults() |
{ |
strcpy(#header, #version); |
pre_text = 0; |
WB1.list.count = WB1.list.first = 0; |
stroka = 0; |
cur_encoding = _DEFAULT; |
if (o_bufpointer) o_bufpointer = free(o_bufpointer); |
anchor_line_num=WB1.list.first; |
anchor[0]='|'; |
} |
476,21 → 487,15 |
|
void OpenPage() |
{ |
if (http_transfer<>0) PutPaletteImage(#toolbar,200,42,0,0,8,#toolbar_pal); |
StopLoading(); |
strcpy(#editURL, #URL); |
BrowserHistory.AddUrl(); |
strcpy(#header, #version); |
pre_text =0; |
WB1.list.ClearList(); |
if (strncmp(#URL,"http:",5)==0) |
{ |
_PutImage(88,10, 24,24, #stop_btn); |
http_get stdcall (#URL, #accept_language); |
http_transfer = EAX; |
cur_encoding = _DEFAULT; |
IF (http_transfer < 0) notify("Error from HTTP lib"); |
Draw_Window(); |
return; |
} |
else |
{ |
498,13 → 503,12 |
bufsize = EBX; |
if (!bufsize) return; |
mem_Free(bufpointer); |
cur_encoding = _DEFAULT; |
if (o_bufpointer) o_bufpointer = free(o_bufpointer); |
bufpointer = mem_Alloc(bufsize); |
SetPageDefaults(); |
ReadFile(0, bufsize, bufpointer, #URL); |
} |
ShowPage(); |
} |
} |
|
void ShowPage() |
{ |