2014-03-12 23:56:28 +01:00
|
|
|
ShowHistory()
|
|
|
|
{
|
|
|
|
int i;
|
|
|
|
static int history_pointer;
|
2014-03-30 13:57:13 +02:00
|
|
|
int t;
|
2014-03-12 23:56:28 +01:00
|
|
|
|
|
|
|
free(history_pointer);
|
|
|
|
history_pointer = malloc(64000);
|
2014-03-23 23:49:49 +01:00
|
|
|
strcat(history_pointer, "<html><head><title>History</title></head><body><h1>History</h1>");
|
2014-03-12 23:56:28 +01:00
|
|
|
strcat(history_pointer, "<h2>Visited pages</h2><blockquote><br>");
|
|
|
|
for (i=1; i<BrowserHistory.links_count; i++)
|
|
|
|
{
|
2014-03-30 13:57:13 +02:00
|
|
|
// t = BrowserHistory.GetFirstLine(i);
|
|
|
|
// strcat(history_pointer, itoa(t));
|
|
|
|
strcat(history_pointer, " <a href='");
|
2014-03-12 23:56:28 +01:00
|
|
|
strcat(history_pointer, BrowserHistory.GetUrl(i));
|
|
|
|
strcat(history_pointer, "'>");
|
|
|
|
strcat(history_pointer, BrowserHistory.GetUrl(i));
|
|
|
|
strcat(history_pointer, "</a><br>");
|
|
|
|
}
|
2015-08-05 17:30:25 +02:00
|
|
|
strcat(history_pointer, "</blockquote><h2>Cached images</h2>");
|
2014-03-12 23:56:28 +01:00
|
|
|
for (i=1; i<ImgCache.pics_count; i++)
|
|
|
|
{
|
|
|
|
strcat(history_pointer, "<img src='");
|
|
|
|
strcat(history_pointer, #pics[i].path);
|
2014-03-23 23:49:49 +01:00
|
|
|
strcat(history_pointer, "'><br>");
|
2014-03-12 23:56:28 +01:00
|
|
|
strcat(history_pointer, #pics[i].path);
|
|
|
|
}
|
2014-03-23 23:49:49 +01:00
|
|
|
strcat(history_pointer, "</body></html>");
|
2015-08-19 14:48:31 +02:00
|
|
|
LoadInternalPage(history_pointer, strlen(history_pointer));
|
2014-03-12 23:56:28 +01:00
|
|
|
}
|