2011-06-25 03:52:11 +02:00
|
|
|
|
struct UrlsHistory {
|
|
|
|
|
byte UrlHistory[6000];
|
|
|
|
|
void AddUrl();
|
|
|
|
|
void GoBack();
|
|
|
|
|
dword CurrentUrl();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
UrlsHistory BrowserHistory;
|
|
|
|
|
|
|
|
|
|
void UrlsHistory::GoBack()
|
|
|
|
|
{
|
2012-02-28 23:10:01 +01:00
|
|
|
|
j = find_symbol(#UrlHistory, '|') -1; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
if (j<=0) return;
|
2011-06-25 03:52:11 +02:00
|
|
|
|
UrlHistory[j] = 0x00;
|
2012-02-28 23:10:01 +01:00
|
|
|
|
j = find_symbol(#UrlHistory, '|'); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> -> <20><><EFBFBD> <20><><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
copystr(#UrlHistory + j, #URL);
|
2012-02-28 11:49:22 +01:00
|
|
|
|
copystr(#URL, #editURL);
|
2012-02-24 22:27:05 +01:00
|
|
|
|
WB1.ShowPage(#URL);
|
2011-06-25 03:52:11 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void UrlsHistory::AddUrl()
|
|
|
|
|
{
|
2012-02-29 00:38:54 +01:00
|
|
|
|
if (strcmp(BrowserHistory.CurrentUrl(), #URL)==0) return; //<2F><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> = <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
2011-06-25 03:52:11 +02:00
|
|
|
|
IF (strlen(#UrlHistory)>6000) copystr(#UrlHistory+5000,#UrlHistory);
|
|
|
|
|
copystr("|", #UrlHistory + strlen(#UrlHistory));
|
|
|
|
|
copystr(#URL, #UrlHistory + strlen(#UrlHistory));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
dword UrlsHistory::CurrentUrl()
|
|
|
|
|
{
|
|
|
|
|
EAX=#UrlHistory + find_symbol(#UrlHistory, '|');
|
|
|
|
|
}
|