diff --git a/configManager.js b/configManager.js index df2500e..c0c0597 100644 --- a/configManager.js +++ b/configManager.js @@ -17,17 +17,33 @@ module.exports= getRootDirectory: function() { - return "/home/jeff/public/Shows/Rick And Morty/Season 1"; + return config.privateDir; }, getPublicDirectory: function() { - return "/home/jeff/work/aaSchool/Algo/online Lectures/"; + return config.publicDir; }, getServerURL: function() { - return "http://localhost:5000"; + return config.serverURL; + }, + + updateSystem: function(host, publicDir, privateDir) + { + config.serverURL = host; + config.privateDir = privateDir; + config.publicDir = publicDir; + + module.exports.syncToDisk(); + }, + + getUserCount: function() + { + return (config.hasOwnProperty('users')) ? config.users.length : 0; } + + }; \ No newline at end of file diff --git a/html/header.html b/html/header.html index a40c60a..9ca05a3 100644 --- a/html/header.html +++ b/html/header.html @@ -40,6 +40,9 @@
Public Videos Indexed: {publicVideoCount}
+Private Videos Indexed: {privateVideoCount}
+Users: {userCount}
+