Subversion Repositories Kolibri OS

Rev

Rev 7739 | Rev 7743 | 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.                 int t;
  6.                
  7.                 free(history_pointer);
  8.                 history_pointer = malloc(history.items.data_size+256);
  9.                 strcat(history_pointer, "<html><head><title>History</title></head><body><h1>History</h1>");
  10.                 strcat(history_pointer, "<br><b>Visited pages</b><br>");
  11.                 for (i=0; i<history.items.count; i++)
  12.                 {
  13.                         strcat(history_pointer, "<a href='");
  14.                         strcat(history_pointer, history.items.get(i));
  15.                         strcat(history_pointer, "'>");
  16.                         strcat(history_pointer, history.items.get(i));
  17.                         strcat(history_pointer, "</a><br>");
  18.                 }
  19.                 strcat(history_pointer, "<br><b>Cached images</b><br>");
  20.                 for (i=1; i<ImgCache.pics_count; i++)
  21.                 {
  22.                         strcat(history_pointer, "<a href='");
  23.                         strcat(history_pointer, #pics[i].path);
  24.                         strcat(history_pointer, "'>");
  25.                         strcat(history_pointer, #pics[i].path);
  26.                         strcat(history_pointer, "</a><br>");
  27.                         /*
  28.                         strcat(history_pointer, "<img src='");
  29.                         strcat(history_pointer, #pics[i].path);
  30.                         strcat(history_pointer, "'><br>");
  31.                         strcat(history_pointer, #pics[i].path);
  32.                         */
  33.                 }
  34.                 strcat(history_pointer, "</body></html>");
  35.                 WB1.LoadInternalPage(history_pointer, strlen(history_pointer));
  36. }