Changeset 389 in Main for trunk/Server
- Timestamp:
- Oct 21, 2024, 5:23:36 AM (4 weeks ago)
- Location:
- trunk/Server
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Server/server.c
r384 r389 792 792 addstring(&str, " <th></th>\n"); 793 793 addstring(&str, " <th>Filename</th>\n"); 794 addstring(&str, " <th>Last-modified</th>\n"); 794 795 addstring(&str, " <th>MIME</th>\n"); 795 796 addstring(&str, " <th>Size</th>\n"); … … 809 810 struct stat s; 810 811 char size[512]; 812 char date[512]; 811 813 char* showmime; 812 814 char* mime; 815 struct tm* tm; 813 816 size[0] = 0; 814 817 stat(fpth, &s); 818 tm = localtime(&s.st_mtime); 819 strftime(date, 512, "%a, %d %b %Y %H:%M:%S %Z", tm); 815 820 if(phase == 0 && !S_ISDIR(s.st_mode)) { 816 821 free(fpth); … … 886 891 addstring(&str, " <td><img src=\"%s\" alt=\"icon\"></td>\n", icon); 887 892 addstring(&str, " <td><a href=\"%l\"><code>%h</code></a></td>\n", items[i], itm); 893 addstring(&str, " <td><code> %h </code></td>\n", date); 888 894 addstring(&str, " <td><code> %h </code></td>\n", showmime); 889 895 addstring(&str, " <td><code> %s </code></td>\n", size); -
trunk/Server/tw_version.h
r257 r389 8 8 #endif 9 9 10 #define TW_VERSION "2.0 4\0"11 #define TW_VERSION_TEXT "Tewi HTTPd version 2.0 4"10 #define TW_VERSION "2.05\0" 11 #define TW_VERSION_TEXT "Tewi HTTPd version 2.05" 12 12 13 13 const char* tw_get_version(void);
Note:
See TracChangeset
for help on using the changeset viewer.