diff --git a/server.js b/server.js index b38bdbe..5552901 100755 --- a/server.js +++ b/server.js @@ -34,7 +34,7 @@ var bodyParser = require('body-parser'); const recivedFiles = "public/recivedfiles"; const motdFile = "public/motd"; const staticFile = "public/data/static"; -const dataFile = "public/data/data"; +const dataFile = "public/data.json"; const countFile = "public/data/count"; const manFile = "public/man.html"; const simpOutFile = "public/simplified"; @@ -114,6 +114,19 @@ app.get('/static', function(req, res) { res.end(); }); +app.get('/legacy', function(req, res) { + var f = utils.ReadFile(dataFile); + var r = ''; + r += ''; + var d = actions.LoadJSON(f).toString().split("\n"); + for (var i = 0; i < d.length; i++) + r += d[i] + "
"; + r += ''; + + res.write(r); + res.end(); +}); + app.post('/postfeedback', function(req, res) { res.redirect('back'); newMessages += "\n" + req.body.message_field; diff --git a/views/main.ejs b/views/main.ejs index 76b9226..1ada181 100755 --- a/views/main.ejs +++ b/views/main.ejs @@ -2,6 +2,7 @@ +