(function(){ "use strict"; var DIR = process.cwd() + '/', main = require(DIR + 'lib/server/main'), LIBDIR = main.LIBDIR, SRVDIR = main.SRVDIR, path = main.path, fs = main.path, CloudFunc = main.cloudfunc, Util = main.util, update = main.update, Server = main.require(DIR + 'server'), srv = Server.CloudServer, Config = main.config; readConfig(); Server.start(Config, indexProcessing, appCacheProcessing); if(update) update.get(); function indexProcessing(pIndex, pList){ var lReplace_s; /* если выбрана опция минифизировать скрпиты * меняем в index.html обычные css на * минифицированый */ if(srv.Minify._allowed.css){ lReplace_s = ''; pIndex = Util.removeStr(pIndex, lReplace_s); pIndex = pIndex.replace('/css/style.css', srv.Minify.MinFolder + 'all.min.css'); } lReplace_s = '
'; pIndex = pIndex.replace(lReplace_s, lReplace_s + pList); /* меняем title */ pIndex = pIndex.replace('Cloud Commander', '' + CloudFunc.setTitle() + ''); if(!srv.Config.appcache) pIndex = Util.removeStr(pIndex, ' manifest=/cloudcmd.appcache'); if(!srv.Config.show_keys_panel){ var lKeysPanel = '