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()
|
|
|
|
|
{
|
|
|
|
|
int i;
|
|
|
|
|
static int history_pointer;
|
2014-03-30 15:57:13 +04:00
|
|
|
|
int t;
|
2014-03-13 02:56:28 +04:00
|
|
|
|
|
|
|
|
|
free(history_pointer);
|
2016-01-01 19:51:53 +03:00
|
|
|
|
history_pointer = malloc(history.items.data_size+256);
|
2020-03-21 21:49:45 +03:00
|
|
|
|
strcat(history_pointer, HISTORY_HEADER);
|
2016-01-08 05:19:41 +03:00
|
|
|
|
for (i=0; i<history.items.count; i++)
|
2014-03-13 02:56:28 +04:00
|
|
|
|
{
|
2020-03-21 21:49:45 +03:00
|
|
|
|
strcat(history_pointer, "\t<a href='");
|
2016-01-01 19:51:53 +03:00
|
|
|
|
strcat(history_pointer, history.items.get(i));
|
2014-03-13 02:56:28 +04:00
|
|
|
|
strcat(history_pointer, "'>");
|
2016-01-01 19:51:53 +03:00
|
|
|
|
strcat(history_pointer, history.items.get(i));
|
2014-03-13 02:56:28 +04:00
|
|
|
|
strcat(history_pointer, "</a><br>");
|
|
|
|
|
}
|
2020-03-21 21:49:45 +03:00
|
|
|
|
/*
|
2020-03-21 17:33:54 +03:00
|
|
|
|
strcat(history_pointer, "<br><b>Cached images</b><br>");
|
2014-03-13 02:56:28 +04:00
|
|
|
|
for (i=1; i<ImgCache.pics_count; i++)
|
|
|
|
|
{
|
2020-03-21 17:33:54 +03:00
|
|
|
|
strcat(history_pointer, "<a href='");
|
|
|
|
|
strcat(history_pointer, #pics[i].path);
|
|
|
|
|
strcat(history_pointer, "'>");
|
|
|
|
|
strcat(history_pointer, #pics[i].path);
|
|
|
|
|
strcat(history_pointer, "</a><br>");
|
2020-03-21 21:49:45 +03:00
|
|
|
|
|
|
|
|
|
// strcat(history_pointer, "<img src='");
|
|
|
|
|
// strcat(history_pointer, #pics[i].path);
|
|
|
|
|
// strcat(history_pointer, "'><br>");
|
|
|
|
|
// strcat(history_pointer, #pics[i].path);
|
2014-03-13 02:56:28 +04:00
|
|
|
|
}
|
2020-03-21 21:49:45 +03:00
|
|
|
|
*/
|
2014-03-24 02:49:49 +04:00
|
|
|
|
strcat(history_pointer, "</body></html>");
|
2015-08-19 15:54:01 +03:00
|
|
|
|
WB1.LoadInternalPage(history_pointer, strlen(history_pointer));
|
2014-03-13 02:56:28 +04:00
|
|
|
|
}
|