Subversion Repositories Kolibri OS

Rev

Rev 4718 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1. ShowHistory()
  2. {
  3.                 int i;
  4.                 static int history_pointer;
  5.                
  6.                 free(history_pointer);
  7.                 history_pointer = malloc(64000);
  8.                 strcat(history_pointer, " <title>History</title><h1>History</h1>");
  9.                 strcat(history_pointer, "<h2>Visited pages</h2><blockquote><br>");
  10.                 for (i=1; i<BrowserHistory.links_count; i++)
  11.                 {
  12.                         strcat(history_pointer, "<a href='");
  13.                         strcat(history_pointer, BrowserHistory.GetUrl(i));
  14.                         strcat(history_pointer, "'>");
  15.                         strcat(history_pointer, BrowserHistory.GetUrl(i));
  16.                         strcat(history_pointer, "</a><br>");
  17.                 }
  18.                 strcat(history_pointer, "</blockquote><h2>Cached images</h2><br>");
  19.                 for (i=1; i<ImgCache.pics_count; i++)
  20.                 {
  21.                         strcat(history_pointer, "<img src='");
  22.                         strcat(history_pointer, #pics[i].path);
  23.                         strcat(history_pointer, "' /><br>");
  24.                         strcat(history_pointer, #pics[i].path);
  25.                 }
  26.                 WB1.Prepare(history_pointer, strlen(history_pointer));
  27. }