Subversion Repositories Kolibri OS

Rev

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

  1. #ifdef LANG_RUS
  2. #define HISTORY_HEADER "<html><title>ˆáâ®à¨ï</title><body><b>®á¥é¥­­ë¥ áâà ­¨æë</b><br>"
  3. #else
  4. #define HISTORY_HEADER "<html><title>History</title><body><b>Visited pages</b><br>"
  5. #endif
  6.  
  7.  
  8. ShowHistory()
  9. {
  10.         int i;
  11.         dword history_pointer = malloc(history.items.data_size+256);
  12.         strcat(history_pointer, HISTORY_HEADER);
  13.  
  14.         for (i=0; i<history.items.count-1; i++) //if (cache.type.get(i) == PAGE)
  15.         {
  16.                 strcat(history_pointer, "<a href='");
  17.                 strcat(history_pointer, history.items.get(i));
  18.                 strcat(history_pointer, "'>");
  19.                 strcat(history_pointer, history.items.get(i));
  20.                 strcat(history_pointer, "</a><br>");
  21.         }
  22.  
  23.         strcat(history_pointer, "<br><b>Cached images</b><br>");
  24.         for (i=1; i<cache.url.count; i++) if (cache.type.get(i) == IMG)
  25.         {
  26.                 strcat(history_pointer, cache.url.get(i));
  27.                 strcat(history_pointer, " <img src='");
  28.                 strcat(history_pointer, cache.url.get(i));
  29.                 strcat(history_pointer, "'><br>");
  30.         }
  31.  
  32.         LoadInternalPage(history_pointer, strlen(history_pointer));
  33.         free(history_pointer);
  34. }
  35.