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