diff --git a/utils/logger.js b/utils/logger.js index 27845ed..70eaa18 100644 --- a/utils/logger.js +++ b/utils/logger.js @@ -60,6 +60,10 @@ function LogReq (req, toFile, sc) { if (sc !== undefined && sc === 404) { logEntry += DELIM + sc } let color = GetColor('green') + if (req.url.includes('lred')) { + color = GetColor('red') + } + if (req.url.toLowerCase().includes('isadding')) { color = GetColor('yellow') } if (!toFile) { Log(logEntry, color) diff --git a/utils/stat.js b/utils/stat.js index e7dd790..30e6cd4 100644 --- a/utils/stat.js +++ b/utils/stat.js @@ -53,6 +53,7 @@ function Load () { } function LogStat (url) { + url = url.split('?')[0] Inc(url) AddVisitStat(url) Save() diff --git a/views/qmining/alldata.ejs b/views/qmining/alldata.ejs index 095d37d..fb75cd6 100644 --- a/views/qmining/alldata.ejs +++ b/views/qmining/alldata.ejs @@ -43,6 +43,15 @@ font-size: 13px; } + .openall { + background-color: #212127; + color: #999999; + cursor: pointer; + border: none; + outline: none; + font-size: 13px; + } + .active, .collapsible:hover { background-color: #555; @@ -64,6 +73,7 @@

Letöltés + <% include aludni.ejs %> @@ -107,6 +117,13 @@ } }); } + function openall () { + var coll = document.getElementsByClassName("content"); + var i; + for (i = 0; i < coll.length; i++) { + coll[i].style.display = "block"; + } + } <% include b.ejs %>