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
5494e34a
Commit
5494e34a
authored
21 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Allow editing of maximum legal length of command-lines and paths.
parent
ec41b655
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/sbbs3/scfg/scfgxtrn.c
+17
-12
17 additions, 12 deletions
src/sbbs3/scfg/scfgxtrn.c
with
17 additions
and
12 deletions
src/sbbs3/scfg/scfgxtrn.c
+
17
−
12
View file @
5494e34a
...
@@ -942,7 +942,7 @@ This is the name or description of the online program (door).
...
@@ -942,7 +942,7 @@ This is the name or description of the online program (door).
*/
*/
strcpy
(
str
,
cfg
.
xtrn
[
i
]
->
name
);
strcpy
(
str
,
cfg
.
xtrn
[
i
]
->
name
);
if
(
!
uifc
.
input
(
WIN_MID
|
WIN_SAV
,
0
,
10
,
"Online Program Name"
if
(
!
uifc
.
input
(
WIN_MID
|
WIN_SAV
,
0
,
10
,
"Online Program Name"
,
cfg
.
xtrn
[
i
]
->
name
,
25
,
K_EDIT
))
,
cfg
.
xtrn
[
i
]
->
name
,
sizeof
(
cfg
.
xtrn
[
i
]
->
name
)
-
1
,
K_EDIT
))
strcpy
(
cfg
.
xtrn
[
i
]
->
name
,
str
);
strcpy
(
cfg
.
xtrn
[
i
]
->
name
,
str
);
break
;
break
;
case
1
:
case
1
:
...
@@ -956,13 +956,14 @@ online program name.
...
@@ -956,13 +956,14 @@ online program name.
*/
*/
strcpy
(
str
,
cfg
.
xtrn
[
i
]
->
code
);
strcpy
(
str
,
cfg
.
xtrn
[
i
]
->
code
);
uifc
.
input
(
WIN_MID
|
WIN_SAV
,
0
,
10
,
"Internal Code"
uifc
.
input
(
WIN_MID
|
WIN_SAV
,
0
,
10
,
"Internal Code"
,
str
,
8
,
K_UPPER
|
K_EDIT
);
,
str
,
LEN_CODE
,
K_UPPER
|
K_EDIT
);
if
(
code_ok
(
str
))
if
(
code_ok
(
str
))
strcpy
(
cfg
.
xtrn
[
i
]
->
code
,
str
);
strcpy
(
cfg
.
xtrn
[
i
]
->
code
,
str
);
else
{
else
{
uifc
.
helpbuf
=
invalid_code
;
uifc
.
helpbuf
=
invalid_code
;
uifc
.
msg
(
"Invalid Code"
);
uifc
.
msg
(
"Invalid Code"
);
uifc
.
helpbuf
=
0
;
}
uifc
.
helpbuf
=
0
;
}
break
;
break
;
case
2
:
case
2
:
SETHELP
(
WHERE
);
SETHELP
(
WHERE
);
...
@@ -978,8 +979,8 @@ executing the program.
...
@@ -978,8 +979,8 @@ executing the program.
If this option is not used, the current NODE's directory will be the
If this option is not used, the current NODE's directory will be the
current DOS drive/directory before the command line is executed.
current DOS drive/directory before the command line is executed.
*/
*/
uifc
.
input
(
WIN_MID
|
WIN_SAV
,
0
,
10
,
"
Directory
"
uifc
.
input
(
WIN_MID
|
WIN_SAV
,
0
,
10
,
""
,
cfg
.
xtrn
[
i
]
->
path
,
50
,
K_EDIT
);
,
cfg
.
xtrn
[
i
]
->
path
,
sizeof
(
cfg
.
xtrn
[
i
]
->
path
)
-
1
,
K_EDIT
);
break
;
break
;
case
3
:
case
3
:
SETHELP
(
WHERE
);
SETHELP
(
WHERE
);
...
@@ -989,7 +990,7 @@ current DOS drive/directory before the command line is executed.
...
@@ -989,7 +990,7 @@ current DOS drive/directory before the command line is executed.
This is the command line to execute to run the online program.
This is the command line to execute to run the online program.
*/
*/
uifc
.
input
(
WIN_MID
|
WIN_SAV
,
0
,
10
,
"Command"
uifc
.
input
(
WIN_MID
|
WIN_SAV
,
0
,
10
,
"Command"
,
cfg
.
xtrn
[
i
]
->
cmd
,
50
,
K_EDIT
);
,
cfg
.
xtrn
[
i
]
->
cmd
,
sizeof
(
cfg
.
xtrn
[
i
]
->
cmd
)
-
1
,
K_EDIT
);
break
;
break
;
case
4
:
case
4
:
SETHELP
(
WHERE
);
SETHELP
(
WHERE
);
...
@@ -1000,7 +1001,7 @@ This is the command line to execute after the main command line. This
...
@@ -1000,7 +1001,7 @@ This is the command line to execute after the main command line. This
option is usually only used for multiuser online programs.
option is usually only used for multiuser online programs.
*/
*/
uifc
.
input
(
WIN_MID
|
WIN_SAV
,
0
,
10
,
"Clean-up"
uifc
.
input
(
WIN_MID
|
WIN_SAV
,
0
,
10
,
"Clean-up"
,
cfg
.
xtrn
[
i
]
->
clean
,
50
,
K_EDIT
);
,
cfg
.
xtrn
[
i
]
->
clean
,
sizeof
(
cfg
.
xtrn
[
i
]
->
clean
)
-
1
,
K_EDIT
);
break
;
break
;
case
5
:
case
5
:
ultoa
(
cfg
.
xtrn
[
i
]
->
cost
,
str
,
10
);
ultoa
(
cfg
.
xtrn
[
i
]
->
cost
,
str
,
10
);
...
@@ -2104,8 +2105,8 @@ This is the name of this section.
...
@@ -2104,8 +2105,8 @@ This is the name of this section.
*/
*/
strcpy
(
str
,
cfg
.
xtrnsec
[
i
]
->
name
);
/* save */
strcpy
(
str
,
cfg
.
xtrnsec
[
i
]
->
name
);
/* save */
if
(
!
uifc
.
input
(
WIN_MID
|
WIN_SAV
,
0
,
10
if
(
!
uifc
.
input
(
WIN_MID
|
WIN_SAV
,
0
,
10
,
"
Online
Program Section Name"
,
"Program Section Name"
,
cfg
.
xtrnsec
[
i
]
->
name
,
40
,
K_EDIT
))
,
cfg
.
xtrnsec
[
i
]
->
name
,
sizeof
(
cfg
.
xtrnsec
[
i
]
->
name
)
-
1
,
K_EDIT
))
strcpy
(
cfg
.
xtrnsec
[
i
]
->
name
,
str
);
strcpy
(
cfg
.
xtrnsec
[
i
]
->
name
,
str
);
break
;
break
;
case
1
:
case
1
:
...
@@ -2119,20 +2120,24 @@ for Synchronet to reference it by. It is helpful if this code is an
...
@@ -2119,20 +2120,24 @@ for Synchronet to reference it by. It is helpful if this code is an
abreviation of the name.
abreviation of the name.
*/
*/
uifc
.
input
(
WIN_MID
|
WIN_SAV
,
0
,
17
,
"Internal Code (unique)"
uifc
.
input
(
WIN_MID
|
WIN_SAV
,
0
,
17
,
"Internal Code (unique)"
,
str
,
8
,
K_EDIT
|
K_UPPER
);
,
str
,
LEN_CODE
,
K_EDIT
|
K_UPPER
);
if
(
code_ok
(
str
))
if
(
code_ok
(
str
))
strcpy
(
cfg
.
xtrnsec
[
i
]
->
code
,
str
);
strcpy
(
cfg
.
xtrnsec
[
i
]
->
code
,
str
);
else
{
else
{
uifc
.
helpbuf
=
invalid_code
;
uifc
.
helpbuf
=
invalid_code
;
uifc
.
msg
(
"Invalid Code"
);
uifc
.
msg
(
"Invalid Code"
);
uifc
.
helpbuf
=
0
;
}
uifc
.
helpbuf
=
0
;
}
break
;
break
;
case
2
:
case
2
:
getar
(
cfg
.
xtrnsec
[
i
]
->
name
,
cfg
.
xtrnsec
[
i
]
->
arstr
);
getar
(
cfg
.
xtrnsec
[
i
]
->
name
,
cfg
.
xtrnsec
[
i
]
->
arstr
);
break
;
break
;
case
3
:
case
3
:
xtrn_cfg
(
i
);
xtrn_cfg
(
i
);
break
;
}
}
}
break
;
}
}
}
}
}
void
hotkey_cfg
(
void
)
void
hotkey_cfg
(
void
)
...
...
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