beian-footer
This commit is contained in:
@@ -131,9 +131,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<footer id="footer" style="height:40px;font-size:0.8rem;text-align:center">
|
<footer id="footer" style="height:40px;font-size:0.8rem;text-align:center">
|
||||||
<% if (main) { %>
|
<%- footer %>
|
||||||
<a href="https://beian.miit.gov.cn/">京ICP备13037033号-1</a>
|
|
||||||
<% } %>
|
|
||||||
<% if (mixly) { %>
|
<% if (mixly) { %>
|
||||||
<a href="/mixly">Mixly Lite</a>
|
<a href="/mixly">Mixly Lite</a>
|
||||||
<% } %>
|
<% } %>
|
||||||
|
|||||||
8
mixio.js
8
mixio.js
@@ -68,7 +68,8 @@ function init(cb){
|
|||||||
"MYSQL_PORT":3306,
|
"MYSQL_PORT":3306,
|
||||||
"MYSQL_USER":"",
|
"MYSQL_USER":"",
|
||||||
"MYSQL_PASS":"",
|
"MYSQL_PASS":"",
|
||||||
"MYSQL_DB":"mixio"
|
"MYSQL_DB":"mixio",
|
||||||
|
"FOOTER":""
|
||||||
}`
|
}`
|
||||||
fs.writeFileSync("config/config.json", defaultConfig)
|
fs.writeFileSync("config/config.json", defaultConfig)
|
||||||
fs.mkdirSync("config/certs")
|
fs.mkdirSync("config/certs")
|
||||||
@@ -840,7 +841,7 @@ var mixioServer = function() {
|
|||||||
|
|
||||||
app.get('/', function(req, res) {
|
app.get('/', function(req, res) {
|
||||||
ejs.renderFile(__dirname + '/ejs/index.ejs', {
|
ejs.renderFile(__dirname + '/ejs/index.ejs', {
|
||||||
'main':fs.existsSync("config/certs/chain.crt"),
|
'footer':configs["FOOTER"],
|
||||||
'mixly':fs.existsSync("../mixly")
|
'mixly':fs.existsSync("../mixly")
|
||||||
}, function(err, data) {
|
}, function(err, data) {
|
||||||
res.send(data)
|
res.send(data)
|
||||||
@@ -2276,7 +2277,8 @@ init(function(res){
|
|||||||
configPath = "config/config.json"
|
configPath = "config/config.json"
|
||||||
configs = fs.readFileSync(configPath);
|
configs = fs.readFileSync(configPath);
|
||||||
configs = JSON.parse(configs.toString());
|
configs = JSON.parse(configs.toString());
|
||||||
|
if(! configs["FOOTER"])
|
||||||
|
configs["FOOTER"] = ""
|
||||||
STORAGE_ENGINE = configs["STORAGE_ENGINE"]
|
STORAGE_ENGINE = configs["STORAGE_ENGINE"]
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user