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
f94850fe
Commit
f94850fe
authored
19 years ago
by
runemaster
Browse files
Options
Downloads
Patches
Plain Diff
Changes for NightShade Theme.
parent
b35d1531
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
web/lib/leftnav_html.ssjs
+40
-15
40 additions, 15 deletions
web/lib/leftnav_html.ssjs
web/lib/siteutils.ssjs
+1
-1
1 addition, 1 deletion
web/lib/siteutils.ssjs
web/lib/topnav_html.ssjs
+27
-9
27 additions, 9 deletions
web/lib/topnav_html.ssjs
web/root/index.ssjs
+3
-5
3 additions, 5 deletions
web/root/index.ssjs
with
71 additions
and
30 deletions
web/lib/leftnav_html.ssjs
+
40
−
15
View file @
f94850fe
...
...
@@ -20,9 +20,10 @@
template
.
ftpqwk
=
"
/
"
+
system
.
qwk_id
.
toLowerCase
()
+
"
.qwk
"
;
}
template
.
leftnav
=
new
Array
;
// template.leftnav.push({ html: '<ul>' });
if
(
CurrTheme
==
"
NightShade
"
)
{
if
(
user
.
number
==
0
||
user
.
security
.
restrictions
&
UFLAG_G
)
template
.
leftnav
.
push
({
html
:
'
<li><a href="/login.ssjs">Login</a></li><li><a href="/newuser.ssjs">New User</a></li>
'
});
...
...
@@ -32,28 +33,52 @@ else
if
(
user
.
number
||
(
this
.
login
!=
undefined
&&
system
.
matchuser
(
"
Guest
"
)))
template
.
leftnav
.
push
({
html
:
'
<li><a href="/msgs">Message Groups</a></li>
'
});
/*
if
(
sub
!=
'
mail
'
&&
(
http_request
.
virtual_path
==
'
/msgs/msg.ssjs
'
||
http_request
.
virtual_path
==
'
/msgs/msgs.ssjs
'
||
http_request
.
virtual_path
==
'
/msgs/post.ssjs
'
||
http_request
.
virtual_path
==
'
/msgs/reply.ssjs
'
||
http_request
.
virtual_path
==
'
/msgs/savemsg.ssjs
'
||
http_request
.
virtual_path
==
'
/msgs/subinfo.ssjs
'
||
http_request
.
virtual_path
==
'
/msgs/subs.ssjs
'
))
{
for
(
s
in
msg_area
.
grp_list
)
template.leftnav.push({html: '<li><a href="/msgs/subs.ssjs?msg_grp=' + msg_area.grp_list[s].name + '">' + msg_area.grp_list[s].description + '</a></li>' });
template
.
leftnav
.
push
({
html
:
'
<li style="font-size: 12px;"><a style="color: #68F;" href="/msgs/subs.ssjs?msg_grp=
'
+
msg_area
.
grp_list
[
s
].
name
+
'
" onmouseover="this.style.color=
\'
white
\'
" onmouseout="this.style.color=
\'
#68F
\'
">
'
+
msg_area
.
grp_list
[
s
].
description
+
'
</a></li>
'
});
}
if
(
user
.
number
==
0
||
user
.
security
.
restrictions
&
UFLAG_G
)
{
}
else
template
.
leftnav
.
push
({
html
:
'
<li><a href="/msgs/choosegroup.ssjs">Set Message Scan</a></li>
'
});
if
(
sub
!=
'
mail
'
&&
(
http_request
.
virtual_path
==
'
/msgs/choosesubs.ssjs
'
||
http_request
.
virtual_path
==
'
/msgs/updatesubs.ssjs
'
))
{
for
(
s
in
msg_area
.
grp_list
)
template.leftnav.push({html: '<li
><a
href="/msgs/choosesubs.ssjs?msg_grp=' + msg_area.grp_list[s].name + '">' + msg_area.grp_list[s].description + '</a></li>' });
template
.
leftnav
.
push
({
html
:
'
<li
style="font-size: 12px;"><a style="color: #68F;"
href="/msgs/choosesubs.ssjs?msg_grp=
'
+
msg_area
.
grp_list
[
s
].
name
+
'
"
onmouseover="this.style.color=
\'
white
\'
" onmouseout="this.style.color=
\'
#68F
\'
"
>
'
+
msg_area
.
grp_list
[
s
].
description
+
'
</a></li>
'
});
}
if
(
user
.
number
==
0
||
user
.
security
.
restrictions
&
UFLAG_G
)
{
}
else
if
(
doQWK
)
template
.
leftnav
.
push
({
html
:
'
<li><a href="
'
+
template
.
ftp_url
+
template
.
ftpqwk
+
'
">Download QWK</a></li>
'
});
*/
}
else
{
if
(
user
.
number
==
0
||
user
.
security
.
restrictions
&
UFLAG_G
)
template
.
leftnav
.
push
({
html
:
'
<a href="/login.ssjs">Login</a><a href="/newuser.ssjs">New User</a>
'
});
else
template
.
leftnav
.
push
({
html
:
'
<a href="/members/userlist.ssjs">User Listing</a><a href="/members/lastcallers.ssjs">Last Callers</a><a href="/members/info.ssjs">Information</a><a href="/members/themes.ssjs">Change Theme</a><a href="/members/newpw.ssjs">Change Password</a><a href="/msgs/msgs.ssjs?msg_sub=mail">E-mail</a>
'
});
if
(
user
.
number
||
(
this
.
login
!=
undefined
&&
system
.
matchuser
(
"
Guest
"
)))
template
.
leftnav
.
push
({
html
:
'
<a href="/msgs">Message Groups</a>
'
});
if
(
sub
!=
'
mail
'
&&
(
http_request
.
virtual_path
==
'
/msgs/msg.ssjs
'
||
http_request
.
virtual_path
==
'
/msgs/msgs.ssjs
'
||
http_request
.
virtual_path
==
'
/msgs/post.ssjs
'
||
http_request
.
virtual_path
==
'
/msgs/reply.ssjs
'
||
http_request
.
virtual_path
==
'
/msgs/savemsg.ssjs
'
||
http_request
.
virtual_path
==
'
/msgs/subinfo.ssjs
'
||
http_request
.
virtual_path
==
'
/msgs/subs.ssjs
'
))
{
template
.
leftnav
.
push
({
html
:
'
<div id="sectionSubLinks">
'
});
for
(
s
in
msg_area
.
grp_list
)
template
.
leftnav
.
push
({
html
:
'
<a href="/msgs/subs.ssjs?msg_grp=
'
+
msg_area
.
grp_list
[
s
].
name
+
'
">
'
+
msg_area
.
grp_list
[
s
].
description
+
'
</a>
'
});
template
.
leftnav
.
push
({
html
:
'
</div>
'
});
}
if
(
user
.
number
==
0
||
user
.
security
.
restrictions
&
UFLAG_G
)
{
}
else
template
.
leftnav
.
push
({
html
:
'
<li><a href="/msgs/choosegroup.ssjs">Set Message Scan</a></li>
'
});
template
.
leftnav
.
push
({
html
:
'
<a href="/msgs/choosegroup.ssjs">Set Message Scan</a>
'
});
if
(
sub
!=
'
mail
'
&&
(
http_request
.
virtual_path
==
'
/msgs/choosesubs.ssjs
'
||
http_request
.
virtual_path
==
'
/msgs/updatesubs.ssjs
'
))
{
template
.
leftnav
.
push
({
html
:
'
<div id="sectionSubLinks">
'
});
for
(
s
in
msg_area
.
grp_list
)
template
.
leftnav
.
push
({
html
:
'
<a href="/msgs/choosesubs.ssjs?msg_grp=
'
+
msg_area
.
grp_list
[
s
].
name
+
'
">
'
+
msg_area
.
grp_list
[
s
].
description
+
'
</a>
'
});
template
.
leftnav
.
push
({
html
:
'
</div>
'
});
}
if
(
user
.
number
==
0
||
user
.
security
.
restrictions
&
UFLAG_G
)
{
}
else
if
(
doQWK
)
template
.
leftnav
.
push
({
html
:
'
<li><!--[if gte IE 7]><span style="margin-left: 39px;"><![endif]--><a href="
'
+
template
.
ftp_url
+
template
.
ftpqwk
+
'
">Download QWK</a><!--[if gte IE 7]></span><![endif]--></li>
'
});
// template.leftnav.push({ html: '</ul>' });
template
.
leftnav
.
push
({
html
:
'
<a href="
'
+
template
.
ftp_url
+
template
.
ftpqwk
+
'
">Download QWK Packet</a>
'
});
}
write_template
(
"
leftnav.inc
"
);
This diff is collapsed.
Click to expand it.
web/lib/siteutils.ssjs
+
1
−
1
View file @
f94850fe
...
...
@@ -50,7 +50,7 @@ if(file.open("r")) {
}
if
(
this
.
web_root_dir
!=
undefined
&&
file_exists
(
web_root_dir
+
template
.
image_dir
+
"
/logo.png
"
))
template
.
name_logo
=
'
<div id="siteName"><img src="
'
+
template
.
image_dir
+
'
/logo.
png
" style="float: left;
height: 75px; width: 225px;"
alt="Synchronet" title="Synchronet" /></div>
'
;
template
.
name_logo
=
'
<div id="siteName"><img src="
'
+
template
.
image_dir
+
'
/logo.
gif
" style="float: left; alt="Synchronet" title="Synchronet" /></div>
'
;
/* System Stats */
...
...
This diff is collapsed.
Click to expand it.
web/lib/topnav_html.ssjs
+
27
−
9
View file @
f94850fe
...
...
@@ -2,6 +2,11 @@
var
is_sysop
=
false
;
if
(
http_request
.
header
.
referer
!=
undefined
)
{
var
p
=
http_request
.
header
.
referer
.
indexOf
(
"
/members/
"
);
var
virtual_referer
=
http_request
.
header
.
referer
.
slice
(
p
)
}
if
(
user
.
number
==
1
||
user
.
security
.
level
>=
90
)
is_sysop
=
true
;
...
...
@@ -12,14 +17,6 @@ if(http_request.virtual_path=="/index.ssjs" || http_request.virtual_path=="/")
else
template
.
topnav
.
push
({
html
:
'
<a class="tlink" href="/">Home</a>
'
});
if
(
is_sysop
)
{
if
(
http_request
.
virtual_path
==
"
/members/viewprofile.ssjs
"
)
template
.
topnav
.
push
({
html
:
'
<span class="tlink">View/Edit Profile</span>
'
});
}
else
{
if
(
http_request
.
virtual_path
==
"
/members/viewprofile.ssjs
"
)
template
.
topnav
.
push
({
html
:
'
<span class="tlink">Viewing Profile</span>
'
});
}
if
(
http_request
.
virtual_path
==
"
/members/newpw.ssjs
"
)
template
.
topnav
.
push
({
html
:
'
<span class="tlink">Changing Password</span>
'
});
...
...
@@ -29,6 +26,16 @@ if(http_request.virtual_path=="/members/changepw.ssjs")
if
(
http_request
.
virtual_path
==
"
/nodelist.ssjs
"
)
template
.
topnav
.
push
({
html
:
'
<span class="tlink">Who
\'
s Online</span>
'
});
if
(
http_request
.
virtual_path
==
"
/members/viewprofile.ssjs
"
&&
virtual_referer
==
"
/members/userlist.ssjs
"
)
{
if
(
is_sysop
)
{
if
(
http_request
.
virtual_path
==
"
/members/viewprofile.ssjs
"
)
template
.
topnav
.
push
({
html
:
'
<span class="tlink">View/Edit Profile</span>
'
});
}
else
{
if
(
http_request
.
virtual_path
==
"
/members/viewprofile.ssjs
"
)
template
.
topnav
.
push
({
html
:
'
<span class="tlink">Viewing Profile</span>
'
});
}
}
if
(
http_request
.
virtual_path
==
"
/members/userlist.ssjs
"
)
template
.
topnav
.
push
({
html
:
'
<span class="tlink">User List</span>
'
});
...
...
@@ -38,11 +45,22 @@ if(http_request.virtual_path=="/newuser.ssjs")
if
(
http_request
.
virtual_path
==
"
/members/lastcallers.ssjs
"
)
template
.
topnav
.
push
({
html
:
'
<span class="tlink">Last Callers</span>
'
});
if
(
http_request
.
virtual_path
==
"
/irc/index.ssjs
"
)
template
.
topnav
.
push
({
html
:
'
<span class="tlink">IRC Chat</span>
'
});
if
(
http_request
.
virtual_path
==
"
/members/info.ssjs
"
)
template
.
topnav
.
push
({
html
:
'
<span class="tlink">Information Menu</span>
'
});
else
if
(
http_request
.
virtual_path
==
"
/members/userstats.ssjs
"
||
http_request
.
virtual_path
==
"
/members/sysinfo.ssjs
"
||
http_request
.
virtual_path
==
"
/members/editprofile.ssjs
"
)
else
if
(
http_request
.
virtual_path
==
"
/members/userstats.ssjs
"
||
http_request
.
virtual_path
==
"
/members/sysinfo.ssjs
"
||
http_request
.
virtual_path
==
"
/members/editprofile.ssjs
"
||
(
http_request
.
virtual_path
==
"
/members/viewprofile.ssjs
"
&&
virtual_referer
!=
"
/members/userlist.ssjs
"
)
)
template
.
topnav
.
push
({
html
:
'
<a class="tlink" href="/members/info.ssjs">Information Menu</a>
'
});
if
(
is_sysop
)
{
if
(
http_request
.
virtual_path
==
"
/members/viewprofile.ssjs
"
&&
virtual_referer
!=
"
/members/userlist.ssjs
"
)
template
.
topnav
.
push
({
html
:
'
<span class="tlink">View/Edit Profile</span>
'
});
}
else
{
if
(
http_request
.
virtual_path
==
"
/members/viewprofile.ssjs
"
&&
virtual_referer
!=
"
/members/userlist.ssjs
"
)
template
.
topnav
.
push
({
html
:
'
<span class="tlink">Viewing Profile</span>
'
});
}
if
(
http_request
.
virtual_path
==
"
/members/userstats.ssjs
"
)
template
.
topnav
.
push
({
html
:
'
<span class="tlink">Your Information</span>
'
});
...
...
This diff is collapsed.
Click to expand it.
web/root/index.ssjs
+
3
−
5
View file @
f94850fe
/* $Id
:
*/
/* $Id
$
*/
load
(
"
../web/lib/template.ssjs
"
);
...
...
@@ -44,14 +44,12 @@ if(do_leftnav)
host
=
http_request
.
host
;
if
(
host
==
undefined
||
!
host
.
length
)
host
=
system
.
host_name
;
var
port
=
host
.
indexOf
(
'
:
'
);
if
(
port
>=
0
)
host
=
host
.
slice
(
0
,
port
);
template
.
additional_services
=
'
[
'
+
(
"
java telnet
"
.
link
(
"
telnet/
"
))
+
'
]
'
;
template
.
additional_services
+=
'
[
'
+
(
"
telnet
"
.
link
(
"
telnet://
"
+
host
+
telnet_port
))
+
'
]
'
;
template
.
additional_services
+=
'
[
'
+
(
"
rlogin
"
.
link
(
"
rlogin://
"
+
host
+
rlogin_port
))
+
'
]
'
;
template
.
additional_services
+=
'
[
'
+
(
"
ftp
"
.
link
(
"
ftp://
"
+
host
+
ftp_port
))
+
'
]
'
;
template
.
additional_services
+=
'
[
'
+
(
"
java irc
"
.
link
(
"
irc/
"
))
+
'
]
'
;
template
.
additional_services
+=
'
[
'
+
(
"
irc
"
.
link
(
"
irc://
"
+
host
+
irc_port
))
+
'
]
'
;
template
.
additional_services
+=
'
[
'
+
(
"
news
"
.
link
(
"
news://
"
+
host
+
nntp_port
))
+
'
]
'
;
template
.
additional_services
+=
'
[
'
+
(
"
gopher
"
.
link
(
"
gopher://
"
+
host
+
gopher_port
))
+
'
]
'
;
...
...
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