30,7 → 30,7 |
char homepage[] = FROM "html\\homepage.htm""\0"; |
|
#ifdef LANG_RUS |
char version[]="¥ªáâ®¢ë© ¡à 㧥à 1.51"; |
char version[]="¥ªáâ®¢ë© ¡à 㧥à 1.52"; |
?define IMAGES_CACHE_CLEARED "íè ª à⨮ª ®ç¨é¥" |
?define T_LAST_SLIDE "â® ¯®á«¥¤¨© á« ©¤" |
char loading[] = " £à㧪 áâà ¨æë...<br>"; |
43,7 → 43,7 |
ç¨áâ¨âì ªíè ª à⨮ª |
¥¥¤¦¥à § £à㧮ª"; |
#else |
char version[]="Text-based Browser 1.51"; |
char version[]="Text-based Browser 1.52"; |
?define IMAGES_CACHE_CLEARED "Images cache cleared" |
?define T_LAST_SLIDE "This slide is the last" |
char loading[] = "Loading...<br>"; |
212,8 → 212,13 |
$stosb; |
} while (AL != 0) && (AL != 13) && (AL != 10); |
DSBYTE[EDI-1]='\0'; |
if (!strcmp(#URL,"https://")) |
{ |
notify("HTTPS protocol is not supported yet"); |
StopLoading(); |
} |
} |
} |
else |
{ |
notify("Too many redirects"); |
313,7 → 318,8 |
return; |
case GOTOURL_BUTTON: |
case SCAN_CODE_ENTER: |
if (!strncmp(#editURL,"http:",5)) || (editURL[0]=='/') || (!strncmp(#editURL,"WebView:",9)) |
if (!strncmp(#editURL,"http:",5)) || (editURL[0]=='/') |
|| (!strncmp(#editURL,"https:",6)) || (!strncmp(#editURL,"WebView:",8)) |
{ |
strcpy(#URL, #editURL); |
} |
466,7 → 472,6 |
{ |
WB1.Prepare(); |
} |
//if (!header) strcpy(#header, #version); |
if (!strcmp(#version, #header)) DrawTitle(#header); |
} |
|
510,44 → 515,62 |
//#1 |
if (URL[0] == '#') |
{ |
strcpy(#anchor, #URL+strrchr(#URL, '#')); |
if (URL[1] == NULL) { |
WB1.list.first = 0; |
strcpy(#URL, history.current()); |
WB1.list.first=WB1.list.count-WB1.list.visible; |
} |
else { |
strlcpy(#anchor, #URL+strrchr(#URL, '#'), sizeof(anchor)); |
strcpy(#URL, history.current()); |
} |
ShowPage(); |
return; |
} |
//liner.ru#1 |
if (strrchr(#URL, '#')!=-1) |
if (strrchr(#URL, '#')!=0) |
{ |
strcpy(#anchor, #URL+strrchr(#URL, '#')); |
URL[strrchr(#URL, '#')-1] = 0x00; |
} |
|
if (!strncmp(#URL,"mailto:", 7)) |
{ |
notify(#URL); |
strcpy(#editURL, history.current()); |
strcpy(#URL, history.current()); |
return; |
} |
|
if (!strcmp(#URL,"https://")) |
{ |
notify("HTTPS protocol is not supported yet"); |
} |
|
GetAbsoluteURL(#URL); |
|
if (UrlExtIs(".png")==1) || (UrlExtIs(".gif")==1) || (UrlExtIs(".jpg")==1) || (UrlExtIs(".zip")==1) || (UrlExtIs(".kex")==1) |
|| (UrlExtIs(".7z")==1) || (UrlExtIs("netcfg")==1) |
if (strncmp(#URL,"http://",7)!=0) |
{ |
//notify(#URL); |
if (!strncmp(#URL,"http://", 7)) |
if (UrlExtIs(".htm")!=true) && (UrlExtIs(".html")!=true) |
{ |
strcpy(#downloader_edit, #URL); |
CreateThread(#Downloader,#downloader_stak+4092); |
} |
else RunProgram("@open", #URL); |
RunProgram("/sys/@open", #URL); |
strcpy(#editURL, history.current()); |
strcpy(#URL, history.current()); |
return; |
} |
if (!strncmp(#URL,"mailto:", 7)) |
} |
else |
{ |
notify(#URL); |
if (UrlExtIs(".png")==true) || (UrlExtIs(".gif")==true) || (UrlExtIs(".jpg")==true) |
|| (UrlExtIs(".zip")==true) || (UrlExtIs(".kex")==true) |
|| (UrlExtIs(".7z")==true) || (UrlExtIs("netcfg")==true) { |
strcpy(#downloader_edit, #URL); |
CreateThread(#Downloader,#downloader_stak+4092); |
strcpy(#editURL, history.current()); |
strcpy(#URL, history.current()); |
return; |
} |
} |
OpenPage(); |
return; |
} |
|
stop: |