Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
cd17e162
Commit
cd17e162
authored
22 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
BulkUploadDescPrompt now displays file size in kilobytes rather than bytes.
parent
7a89ea0c
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
ctrl/text.dat
+1
-1
1 addition, 1 deletion
ctrl/text.dat
src/sbbs3/upload.cpp
+13
-11
13 additions, 11 deletions
src/sbbs3/upload.cpp
with
14 additions
and
12 deletions
ctrl/text.dat
+
1
−
1
View file @
cd17e162
...
@@ -310,7 +310,7 @@
...
@@ -310,7 +310,7 @@
"\r\nwhNot enough time left to transfer.\r\n" 263 NotEnoughTimeToDl
"\r\nwhNot enough time left to transfer.\r\n" 263 NotEnoughTimeToDl
"\r\nProtocol, ~Batch, ~Quit, or [Next]: " 264 ProtocolBatchQuitOrNext
"\r\nProtocol, ~Batch, ~Quit, or [Next]: " 264 ProtocolBatchQuitOrNext
"\r\nBulk Upload %s %s Directory:\r\n" 265 BulkUpload
"\r\nBulk Upload %s %s Directory:\r\n" 265 BulkUpload
"_yh%s %
7
ld:"
266 BulkUploadDescPrompt
"_yh%s %
6
ld
k
:" 266 BulkUploadDescPrompt
"\r\nrhiNo files in batch queue.n"\ 267 NoFilesInBatchQueue
"\r\nrhiNo files in batch queue.n"\ 267 NoFilesInBatchQueue
"\r\n\r\nmUse hDnm or hUnm to add files to the queue.\r\n"
"\r\n\r\nmUse hDnm or hUnm to add files to the queue.\r\n"
"_\r\nyhBatch: n" 268 BatchMenuPrompt
"_\r\nyhBatch: n" 268 BatchMenuPrompt
...
...
This diff is collapsed.
Click to expand it.
src/sbbs3/upload.cpp
+
13
−
11
View file @
cd17e162
...
@@ -45,6 +45,7 @@
...
@@ -45,6 +45,7 @@
/****************************************************************************/
/****************************************************************************/
bool
sbbs_t
::
uploadfile
(
file_t
*
f
)
bool
sbbs_t
::
uploadfile
(
file_t
*
f
)
{
{
char
*
p
;
char
path
[
MAX_PATH
+
1
];
char
path
[
MAX_PATH
+
1
];
char
str
[
MAX_PATH
+
1
],
fname
[
25
];
char
str
[
MAX_PATH
+
1
],
fname
[
25
];
char
ext
[
F_EXBSIZE
+
1
];
char
ext
[
F_EXBSIZE
+
1
];
...
@@ -144,7 +145,8 @@ bool sbbs_t::uploadfile(file_t *f)
...
@@ -144,7 +145,8 @@ bool sbbs_t::uploadfile(file_t *f)
sprintf
(
str
,
"%sFILE_ID.DIZ"
,
cfg
.
temp_dir
);
sprintf
(
str
,
"%sFILE_ID.DIZ"
,
cfg
.
temp_dir
);
if
(
fexistcase
(
str
))
if
(
fexistcase
(
str
))
remove
(
str
);
remove
(
str
);
external
(
cmdstr
(
cfg
.
fextr
[
i
]
->
cmd
,
path
,
"FILE_ID.DIZ"
,
NULL
),
EX_OUTL
);
p
=
cmdstr
(
cfg
.
fextr
[
i
]
->
cmd
,
path
,
"FILE_ID.DIZ"
,
NULL
);
external
(
p
,
EX_OUTL
);
if
(
!
fexistcase
(
str
))
{
if
(
!
fexistcase
(
str
))
{
sprintf
(
str
,
"%sDESC.SDI"
,
cfg
.
temp_dir
);
sprintf
(
str
,
"%sDESC.SDI"
,
cfg
.
temp_dir
);
if
(
fexistcase
(
str
))
if
(
fexistcase
(
str
))
...
@@ -530,7 +532,7 @@ bool sbbs_t::bulkupload(uint dirnum)
...
@@ -530,7 +532,7 @@ bool sbbs_t::bulkupload(uint dirnum)
if
(
findfile
(
&
cfg
,
f
.
dir
,
str
)
==
0
)
{
if
(
findfile
(
&
cfg
,
f
.
dir
,
str
)
==
0
)
{
strcpy
(
f
.
name
,
str
);
strcpy
(
f
.
name
,
str
);
f
.
cdt
=
flength
(
spath
);
f
.
cdt
=
flength
(
spath
);
bprintf
(
text
[
BulkUploadDescPrompt
],
f
.
name
,
f
.
cdt
);
bprintf
(
text
[
BulkUploadDescPrompt
],
f
.
name
,
f
.
cdt
/
1024
);
getstr
(
f
.
desc
,
LEN_FDESC
,
K_LINE
);
getstr
(
f
.
desc
,
LEN_FDESC
,
K_LINE
);
if
(
sys_status
&
SS_ABORT
)
if
(
sys_status
&
SS_ABORT
)
break
;
break
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment