1,23 → 1,7 |
#ifdef LANG_RUS |
#define HISTORY_HEADER "<html> |
<head> |
<title>áâ®à¨ï</title> |
</head> |
<body> |
<h1>áâ®à¨ï</h1> |
<br> |
<b>®á¥é¥ë¥ áâà ¨æë</b><br> |
" |
#define HISTORY_HEADER "<html><title>áâ®à¨ï</title><body><b>®á¥é¥ë¥ áâà ¨æë</b><br>" |
#else |
#define HISTORY_HEADER "<html> |
<head> |
<title>History</title> |
</head> |
<body> |
<h1>History</h1> |
<br> |
<b>Visited pages</b><br> |
" |
#define HISTORY_HEADER "<html><title>History</title><body><b>Visited pages</b><br>" |
#endif |
|
|
24,15 → 8,12 |
ShowHistory() |
{ |
int i; |
static int history_pointer; |
int t; |
dword history_pointer = malloc(history.items.data_size+256); |
strcat(history_pointer, HISTORY_HEADER); |
|
free(history_pointer); |
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, "\t<a href='"); |
strcat(history_pointer, "<a href='"); |
strcat(history_pointer, history.items.get(i)); |
strcat(history_pointer, "'>"); |
strcat(history_pointer, history.items.get(i)); |
48,6 → 29,6 |
strcat(history_pointer, "'><br>"); |
} |
|
strcat(history_pointer, "</body></html>"); |
LoadInternalPage(history_pointer, strlen(history_pointer)); |
} |
free(history_pointer); |
} |