Index page polish, version adding to data file implementation, version file

This commit is contained in:
YourFriendlyNeighborhoodDealer 2019-01-02 21:41:49 +01:00
parent 1f6bbd03ff
commit 3250139c82
3 changed files with 8 additions and 4 deletions

View file

@ -30,6 +30,7 @@ var staticFile = "public/data/static";
var manFile = "public/man.html";
var dataFile = "public/data.json";
var motdFile = "public/motd";
var versionFile = "public/currVersion";
var logger = require('./logger.js');
var utils = require('./utils.js');
@ -279,7 +280,9 @@ function ProcessIncomingRequest(data) {
}
var motd = utils.ReadFile(motdFile);
var version = utils.ReadFile(versionFile);
data.motd = motd;
data.version = version;
logger.Log("[PCES]:\t" + d.subj);
var msg = "All / new count: " + allQuestions.length + " / " + questions.length;
if (d.version != undefined)