2020-03-21 19:49:45 +01:00
|
|
|
|
#ifdef LANG_RUS
|
2020-12-27 00:09:56 +01:00
|
|
|
|
#define HISTORY_HEADER "<html><title><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></title><body><b><3E><><EFBFBD><EFBFBD>饭<EFBFBD><E9A5AD><EFBFBD> <20><>࠭<EFBFBD><E0A0AD><EFBFBD></b><br>"
|
2020-03-21 19:49:45 +01:00
|
|
|
|
#else
|
2020-12-27 00:09:56 +01:00
|
|
|
|
#define HISTORY_HEADER "<html><title>History</title><body><b>Visited pages</b><br>"
|
2020-03-21 19:49:45 +01:00
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
2014-03-12 23:56:28 +01:00
|
|
|
|
ShowHistory()
|
|
|
|
|
{
|
2020-03-25 01:18:19 +01:00
|
|
|
|
int i;
|
2020-12-27 00:09:56 +01:00
|
|
|
|
dword history_pointer = malloc(history.items.data_size+256);
|
2020-03-25 01:18:19 +01:00
|
|
|
|
strcat(history_pointer, HISTORY_HEADER);
|
2020-12-27 00:09:56 +01:00
|
|
|
|
|
2020-06-02 00:18:26 +02:00
|
|
|
|
for (i=0; i<history.items.count-1; i++) //if (cache.type.get(i) == PAGE)
|
2020-03-25 01:18:19 +01:00
|
|
|
|
{
|
2020-12-27 00:09:56 +01:00
|
|
|
|
strcat(history_pointer, "<a href='");
|
2020-03-25 01:18:19 +01:00
|
|
|
|
strcat(history_pointer, history.items.get(i));
|
|
|
|
|
strcat(history_pointer, "'>");
|
|
|
|
|
strcat(history_pointer, history.items.get(i));
|
|
|
|
|
strcat(history_pointer, "</a><br>");
|
|
|
|
|
}
|
2020-06-02 00:18:26 +02:00
|
|
|
|
|
2020-03-25 01:18:19 +01:00
|
|
|
|
strcat(history_pointer, "<br><b>Cached images</b><br>");
|
2020-06-02 00:18:26 +02:00
|
|
|
|
for (i=1; i<cache.url.count; i++) if (cache.type.get(i) == IMG)
|
2020-03-25 01:18:19 +01:00
|
|
|
|
{
|
2020-06-02 00:18:26 +02:00
|
|
|
|
strcat(history_pointer, cache.url.get(i));
|
2020-12-13 21:52:56 +01:00
|
|
|
|
strcat(history_pointer, " <img src='");
|
2020-06-02 00:18:26 +02:00
|
|
|
|
strcat(history_pointer, cache.url.get(i));
|
2020-12-06 00:22:38 +01:00
|
|
|
|
strcat(history_pointer, "'><br>");
|
2020-03-25 01:18:19 +01:00
|
|
|
|
}
|
2020-06-02 00:18:26 +02:00
|
|
|
|
|
2020-03-25 01:18:19 +01:00
|
|
|
|
LoadInternalPage(history_pointer, strlen(history_pointer));
|
2020-12-27 00:09:56 +01:00
|
|
|
|
free(history_pointer);
|
|
|
|
|
}
|