forked from KolibriOS/kolibrios
861d24c21a
git-svn-id: svn://kolibrios.org@8996 a494cfbc-eb01-0410-851d-a64ba20cac60
37 lines
1.0 KiB
C
37 lines
1.0 KiB
C
#ifdef LANG_RUS
|
|
#define HISTORY_HEADER "<html><title>ˆáâ®à¨ï</title><body><b>�®á¥é¥ë¥ áâà ¨æë</b><br>"
|
|
#else
|
|
#define HISTORY_HEADER "<html><title>History</title><body><b>Visited pages</b><br>"
|
|
#endif
|
|
|
|
|
|
ShowHistory()
|
|
{
|
|
int i;
|
|
dword history_pointer = malloc(history.items.data_size+256);
|
|
strcat(history_pointer, HISTORY_HEADER);
|
|
|
|
for (i=0; i<history.items.count-1; i++) //if (cache.type.get(i) == PAGE)
|
|
{
|
|
strcat(history_pointer, "<a href='");
|
|
strcat(history_pointer, history.items.get(i));
|
|
strcat(history_pointer, "'>");
|
|
strcat(history_pointer, history.items.get(i));
|
|
strcat(history_pointer, "</a><br>");
|
|
}
|
|
|
|
/*
|
|
strcat(history_pointer, "<br><b>Cached images</b><br>");
|
|
for (i=1; i<cache.url.count; i++) if (cache.type.get(i) == IMG)
|
|
{
|
|
strcat(history_pointer, cache.url.get(i));
|
|
strcat(history_pointer, " <img src='");
|
|
strcat(history_pointer, cache.url.get(i));
|
|
strcat(history_pointer, "'><br>");
|
|
}
|
|
*/
|
|
|
|
LoadInternalPage(history_pointer, strlen(history_pointer));
|
|
free(history_pointer);
|
|
}
|