Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commits (2)
......@@ -66,6 +66,8 @@ void sbbs_t::showfileinfo(file_t* f, bool show_extdesc)
char* p = f->hdr.attr&MSG_ANONYMOUS ? text[UNKNOWN_USER] : f->from;
if(p != NULL && *p != '\0')
bprintf(P_TRUNCATE, text[FiUploadedBy], p);
if(f->to_list != NULL && *f->to_list != '\0')
bprintf(P_TRUNCATE, text[FiUploadedTo], f->to_list);
bprintf(P_TRUNCATE, text[FiDateUled],timestr(f->hdr.when_imported.time));
if(getfiletime(&cfg, f) > 0)
bprintf(P_TRUNCATE, text[FiFileDate],timestr(f->time));
......
......@@ -337,7 +337,7 @@ enum {
,FiTimesDled
,FiTransferTime
,FiTags
,Unused327
,FiUploadedTo
,FiChecksum
,HappyBirthday
,TimeToChangePw
......
......@@ -519,7 +519,7 @@ const char * const text_defaults[TOTAL_TEXT]={
,"\x0d\x0a\x01\x6e\x01\x67\x54\x69\x6d\x65\x73\x20\x64\x6f\x77\x6e\x6c\x6f\x61\x64\x65\x64\x20\x3a\x01\x68\x20\x25\x75" // 324 FiTimesDled
,"\x0d\x0a\x01\x6e\x01\x67\x54\x69\x6d\x65\x20\x74\x6f\x20\x64\x6f\x77\x6e\x6c\x6f\x61\x64\x20\x3a\x01\x68\x20\x25\x73" // 325 FiTransferTime
,"\x0d\x0a\x01\x6e\x01\x67\x54\x61\x67\x73\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x3a\x01\x68\x20\x25\x73" // 326 FiTags
,"\x55\x4e\x55\x53\x45\x44\x33\x32\x37" // 327 Unused327
,"\x0d\x0a\x01\x6e\x01\x67\x55\x70\x6c\x6f\x61\x64\x65\x64\x20\x74\x6f\x20\x20\x20\x20\x20\x20\x3a\x01\x68\x20\x25\x73" // 327 FiUploadedTo
,"\x0d\x0a\x01\x6e\x01\x67\x46\x69\x6c\x65\x20\x25\x2d\x36\x2e\x36\x73\x20\x20\x20\x20\x20\x20\x3a\x01\x68\x20\x25\x73" // 328 FiChecksum
,"\x07\x07\x0d\x0a\x01\x68\x01\x72\x48\x01\x62\x61\x01\x67\x70\x01\x79\x70\x01\x63\x79\x20\x01\x6d\x42\x01\x77\x69\x01\x72\x72\x01"
"\x67\x74\x01\x62\x68\x01\x63\x64\x01\x6d\x61\x01\x79\x79\x20\x01\x77\x74\x01\x72\x6f\x20\x01\x67\x79\x01\x62\x6f\x01\x63\x75\x0d"
......
......@@ -1849,6 +1849,7 @@ int uinput(int mode, int left, int top, char *inprompt, char *str,
int s_top=SCRN_TOP;
int s_left=SCRN_LEFT;
int s_right=SCRN_RIGHT;
int s_bottom=api->scrn_len-3;
int hbrdrsize=2;
int tbrdrwidth=1;
......@@ -1877,6 +1878,8 @@ int uinput(int mode, int left, int top, char *inprompt, char *str,
width=(s_right-s_left+1);
if(mode&WIN_T2B)
top=(api->scrn_len-height+1)/2-2;
else if(mode&WIN_BOT)
top=s_bottom-height-top;
if(mode&WIN_L2R)
left=(s_right-s_left-width+1)/2;
if(left<=-(s_left))
......@@ -1886,6 +1889,19 @@ int uinput(int mode, int left, int top, char *inprompt, char *str,
if(mode&WIN_SAV)
vmem_gettext(s_left+left,s_top+top,s_left+left+width+1
,s_top+top+height,save_buf);
if(mode&WIN_ORG) { /* Clear around menu */
if(top)
vmem_puttext(1,2,api->scrn_width,s_top+top-1,blk_scrn);
if((unsigned)(s_top+height+top)<=api->scrn_len)
vmem_puttext(1,s_top+height+top,api->scrn_width,api->scrn_len,blk_scrn);
if(left)
vmem_puttext(1,s_top+top,s_left+left-1,s_top+height+top
,blk_scrn);
if(s_left+left+width<=s_right)
vmem_puttext(s_left+left+width,s_top+top,/* s_right+2 */api->scrn_width
,s_top+height+top,blk_scrn);
}
iwidth=width-plen-slen;
while(iwidth<1 && plen>4) {
plen=strlen(prompt);
......