Subversion Repositories Kolibri OS

Rev

Rev 6021 | Rev 7742 | 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, "<h2>Visited pages</h2><blockquote><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, "</blockquote><h2>Cached images</h2>");
  20.                 for (i=1; i<ImgCache.pics_count; i++)
  21.                 {
  22.                         strcat(history_pointer, "<img src='");
  23.                         strcat(history_pointer, #pics[i].path);
  24.                         strcat(history_pointer, "'><br>");
  25.                         strcat(history_pointer, #pics[i].path);
  26.                 }
  27.                 strcat(history_pointer, "</body></html>");
  28.                 WB1.LoadInternalPage(history_pointer, strlen(history_pointer));
  29. }