Skip to content
Snippets Groups Projects
Commit f94850fe authored by runemaster's avatar runemaster
Browse files

Changes for NightShade Theme.

parent b35d1531
No related branches found
No related tags found
No related merge requests found
......@@ -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");
......@@ -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 */
......
......@@ -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>'});
......
/* $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)) + '] ';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment