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
0e98f46e
Commit
0e98f46e
authored
21 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Encoded e-mail URLs.
No duplicate IPs in sbbsimsg.lst.
parent
ea1420b5
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
xtrn/sbl/sbbslist.c
+23
-7
23 additions, 7 deletions
xtrn/sbl/sbbslist.c
with
23 additions
and
7 deletions
xtrn/sbl/sbbslist.c
+
23
−
7
View file @
0e98f46e
/* SBBSLIST.C */
/* Developed 1990-
1997
by Rob Swindell; PO Box 501, Yorba Linda, CA 92885 */
/* Developed 1990-
2003
by Rob Swindell; PO Box 501, Yorba Linda, CA 92885 */
/* Converts Synchronet BBS List (SBL.DAB) to
text
file */
/* Converts Synchronet BBS List (SBL.DAB) to
HTML
file */
#include
"xsdk.h"
#include
"telnet.h"
...
...
@@ -125,6 +125,16 @@ char *unixtodstr(time_t unix, char *str)
return
(
str
);
}
char
*
html_encode
(
char
*
src
)
{
static
char
buf
[
1024
];
int
i
;
for
(
i
=
0
;
*
src
;
src
++
)
i
+=
sprintf
(
buf
+
i
,
"&#%u;"
,
*
src
);
return
(
buf
);
}
void
long_bbs_info
(
FILE
*
out
,
bbs_t
bbs
)
{
...
...
@@ -426,7 +436,8 @@ BOOL check_imsg_support(ulong ip_addr)
int
main
(
int
argc
,
char
**
argv
)
{
char
str
[
128
],
name
[
128
],
*
location
,
nodes
[
32
],
*
sysop
;
char
sysop_email
[
128
];
char
*
mail_to
=
"mailto:"
;
/* encoded "mailto:" */
char
sysop_email
[
1024
];
char
buf
[
256
];
char
verify_result
[
128
];
char
version
[
128
];
...
...
@@ -603,8 +614,9 @@ int main(int argc, char **argv)
total_attempts
++
;
for
(
i
=
0
;
i
<
bbs
.
total_numbers
&&
i
<
MAX_NUMBERS
;
i
++
)
{
if
(
!
i
)
{
if
(
bbs
.
sysop_email
[
0
])
{
sprintf
(
sysop_email
,
"<A HREF=mailto:%s>%s</A>"
,
bbs
.
sysop_email
,
bbs
.
sysop
[
0
]);
if
(
strchr
(
bbs
.
sysop_email
,
'@'
))
{
sprintf
(
sysop_email
,
"<A HREF=%s%s>%s</A>"
,
mail_to
,
html_encode
(
bbs
.
sysop_email
),
bbs
.
sysop
[
0
]);
sysop
=
sysop_email
;
}
else
sysop
=
bbs
.
sysop
[
0
];
...
...
@@ -760,7 +772,10 @@ int main(int argc, char **argv)
}
/* Check Finger */
if
(
!
fingered
)
{
/* not already checked */
if
(
check_imsg_support
(
ip_addr
))
{
for
(
ip
=
0
;
ip
<
ip_total
;
ip
++
)
if
(
ip_addr
==
ip_list
[
ip
])
break
;
if
(
ip
>=
ip_total
&&
check_imsg_support
(
ip_addr
))
{
fingered
=
TRUE
;
printf
(
"[IM]"
);
fprintf
(
ibbs
,
"%-63s %s
\n
"
...
...
@@ -847,7 +862,8 @@ int main(int argc, char **argv)
if
(
strchr
(
bbs
.
sysop_email
,
'@'
))
{
fprintf
(
mail
,
"%s
\n
"
,
bbs
.
sysop_email
);
sprintf
(
sysop_email
,
"<A HREF=mailto:%s>%s</A>"
,
bbs
.
sysop_email
,
bbs
.
sysop
[
0
]);
sprintf
(
sysop_email
,
"<A HREF=%s%s>%s</A>"
,
mail_to
,
html_encode
(
bbs
.
sysop_email
),
bbs
.
sysop
[
0
]);
sysop
=
sysop_email
;
}
else
sysop
=
bbs
.
sysop
[
0
];
...
...
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