[CORE] Move public resources to a /public directory

Advantages:
* Increases security by preventing direct access to file/
* We are careful and have a defined('GNUSOCIAL') || die() to prevent
  direct access to GS files, but we may miss one or a vendor/extlib may
  not be as careful
* Improves directory structure - It's more natural to physically
  separate what is public from what are GNU social resources
This commit is contained in:
Diogo Cordeiro
2018-07-20 23:00:18 -06:00
parent 966b00617e
commit 1049080df5
405 changed files with 45 additions and 60907 deletions

View File

@@ -1,21 +0,0 @@
// Update the local timeline from a Meteor server
var MeteorUpdater = function()
{
return {
init: function(server, port, scheme, timeline)
{
Meteor.callbacks["process"] = function(data) {
RealtimeUpdate.receive(JSON.parse(data));
};
Meteor.host = server;
Meteor.port = port;
Meteor.scheme = scheme;
Meteor.joinChannel(timeline, 0);
Meteor.connect();
}
}
}();