system menu: smaller config files

git-svn-id: svn://kolibrios.org@8484 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
2020-12-26 23:09:56 +00:00
parent 9a8d2d8036
commit a013d74bf9
10 changed files with 699 additions and 703 deletions

View File

@@ -1,38 +1,19 @@
#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>
"
#define HISTORY_HEADER "<html><title><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></title><body><b><3E><><EFBFBD><EFBFBD><EFBFBD><E9A5AD><EFBFBD> <20><><EFBFBD><E0A0AD><EFBFBD></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
ShowHistory()
{
int i;
static int history_pointer;
int t;
free(history_pointer);
history_pointer = malloc(history.items.data_size+256);
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, "\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 @@ ShowHistory()
strcat(history_pointer, "'><br>");
}
strcat(history_pointer, "</body></html>");
LoadInternalPage(history_pointer, strlen(history_pointer));
}
free(history_pointer);
}