Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 80a55436 authored by deuce's avatar deuce

load() the new topnav thing instead of just using a template.

parent 666218f1
......@@ -9,7 +9,7 @@ load("nodedefs.js");
var include_statistics=true;
write_template("header.inc");
write_template("topnav.inc");
load("../web/lib/topnav_html.ssjs");
write_template("leftnav.inc");
write_template("main.inc");
......
if(user.number!=0) {
http_reply.status='401 Premission Denied';
}
write('<html><head>');
write('<meta http-equiv="Pragma" content="no-cache">');
write('<meta http-equiv="expires" content="0">');
write('<meta http-equiv="refresh" content="0; URL=../index.ssjs">');
write('</head></html>');
......@@ -4,7 +4,7 @@ var sub="";
template.title=system.name+ " Information Menu";
write_template("header.inc");
write_template("topnav.inc");
load("../web/lib/topnav_html.ssjs");
write_template("leftnav.inc");
write_template("infomenu.inc");
write_template("footer.inc");
......@@ -107,7 +107,7 @@ for(addr in system.fido_addr_list) {
}
write_template("header.inc");
write_template("topnav.inc");
load("../web/lib/topnav_html.ssjs");
write_template("leftnav.inc");
write_template("sysinfo.inc");
write_template("footer.inc");
......@@ -11,7 +11,7 @@ for(tname in Themes) {
}
template.theme_list+='</select>';
write_template("header.inc");
write_template("topnav.inc");
load("../web/lib/topnav_html.ssjs");
write_template("leftnav.inc");
write_template("themes.inc");
write_template("footer.inc");
......@@ -4,6 +4,7 @@
// $Id$
http_reply.fast=true;
load("sbbsdefs.js");
load("../web/lib/template.ssjs");
......@@ -32,7 +33,7 @@ for(i=1;i<=lastuser;i++) {
template.users.sort(alphasort);
write_template("header.inc");
write_template("topnav.inc");
load("../web/lib/topnav_html.ssjs");
write_template("leftnav.inc");
write_template("userlist.inc");
write_template("footer.inc");
......
......@@ -21,7 +21,7 @@ i=i ? 100/i : user.stats.total_posts > user.stats.total_logons ? 100 : 0;
template.pinfo=parseInt(i);
write_template("header.inc");
write_template("topnav.inc");
load("../web/lib/topnav_html.ssjs");
write_template("leftnav.inc");
write_template("userstats.inc");
write_template("footer.inc");
......
......@@ -2,7 +2,7 @@ load("../web/lib/msgslib.ssjs");
template.title="Message Groups on " +system.name;
write_template("header.inc");
write_template("topnav.inc");
load("../web/lib/topnav_html.ssjs");
write_template("leftnav.inc");
template.groups=msg_area.grp_list;
write_template("msgs/groups.inc");
......
......@@ -58,7 +58,7 @@ if(http_request.query.Action=="Delete Selected Message(s)") {
template.backurl=http_request.header.referer;
write_template("header.inc");
write_template("topnav.inc");
load("../web/lib/topnav_html.ssjs");
write_template("leftnav.inc");
write_template("msgs/management.inc");
write_template("footer.inc");
......
......@@ -118,7 +118,7 @@ else
template.prevlink=prev_msg_html;
write_template("header.inc");
write_template("topnav.inc");
load("../web/lib/topnav_html.ssjs");
write_template("leftnav.inc");
write_template("msgs/msg.inc");
write_template("footer.inc");
......
......@@ -186,7 +186,7 @@ if(sub=='mail') {
template.post_button="Create New Message";
}
write_template("topnav.inc");
load("../web/lib/topnav_html.ssjs");
write_template("leftnav.inc");
write_template("msgs/msgs.inc");
write_template("footer.inc");
......
......@@ -43,7 +43,7 @@ if(sub!='mail') {
}
template.title="Post a message in " + template.sub.description;
write_template("header.inc");
write_template("topnav.inc");
load("../web/lib/topnav_html.ssjs");
write_template("leftnav.inc");
write_template("msgs/post.inc");
write_template("footer.inc");
......
......@@ -65,7 +65,7 @@ else {
}
title="Reply to message";
write_template("header.inc");
write_template("topnav.inc");
load("../web/lib/topnav_html.ssjs");
write_template("leftnav.inc");
write_template("msgs/reply.inc");
write_template("footer.inc");
......
......@@ -103,7 +103,7 @@ if(hdrs.thread_orig!=undefined) {
http_reply.status="201 Created";
title="Message posted";
write_template("header.inc");
write_template("topnav.inc");
load("../web/lib/topnav_html.ssjs");
write_template("leftnav.inc");
write_template("msgs/posted.inc");
write_template("footer.inc");
......
......@@ -39,7 +39,7 @@ else {
template.backurl=http_request.header.referer;
write_template("header.inc");
write_template("topnav.inc");
load("../web/lib/topnav_html.ssjs");
write_template("leftnav.inc");
write_template("msgs/subinfo.inc");
write_template("footer.inc");
......
......@@ -56,7 +56,7 @@ for(s in msg_area.grp[grp].sub_list) {
template.subs.push(thissub);
}
write_template("topnav.inc");
load("../web/lib/topnav_html.ssjs");
write_template("leftnav.inc");
write_template("msgs/subs.inc");
write_template("footer.inc");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment