mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Index page polish, version adding to data file implementation, version file
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user