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:
parent
1f6bbd03ff
commit
3250139c82
3 changed files with 8 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue