diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/wtv-flashrom/lc2-download-complete.js b/zefie_wtvp_minisrv/includes/ServiceVault/wtv-flashrom/lc2-download-complete.js index 98520248..13a6236e 100644 --- a/zefie_wtvp_minisrv/includes/ServiceVault/wtv-flashrom/lc2-download-complete.js +++ b/zefie_wtvp_minisrv/includes/ServiceVault/wtv-flashrom/lc2-download-complete.js @@ -2,7 +2,6 @@ var minisrv_service_file = true; headers = `200 OK Content-type: text/html -wtv-expire-all: wtv-flashrom: minisrv-no-mail-count: true` if (socket.ssid && ssid_sessions[socket.ssid]) { diff --git a/zefie_wtvp_minisrv/includes/classes/WTVAuthor.js b/zefie_wtvp_minisrv/includes/classes/WTVAuthor.js index a4b0bebe..5608217a 100644 --- a/zefie_wtvp_minisrv/includes/classes/WTVAuthor.js +++ b/zefie_wtvp_minisrv/includes/classes/WTVAuthor.js @@ -560,7 +560,7 @@ block += `
-Powered by ${this.minisrv_config.config.service_name} +Powered by ${this.minisrv_config.config.service_name}
@@ -604,7 +604,7 @@ html += `">previous page
-Powered by ${this.minisrv_config.config.service_name} +Powered by ${this.minisrv_config.config.service_name}
@@ -640,7 +640,7 @@ html += `">previous page
-Powered by ${this.minisrv_config.config.service_name} +Powered by ${this.minisrv_config.config.service_name}
@@ -672,7 +672,7 @@ html += `">next page
-Powered by ${this.minisrv_config.config.service_name} +Powered by ${this.minisrv_config.config.service_name}
@@ -777,6 +777,14 @@ html += `">next page } } + getPoweredBy() { + if (this.minisrv_config.services['wtv-author'].powered_by_url) { + return this.minisrv_config.services['wtv-author'].powered_by_url; + } else { + return this.getPublishDomain(); + } + } + getPublishDir() { var destDir = false; if (this.minisrv_config.services['wtv-author'].publish_mode == "service") { diff --git a/zefie_wtvp_minisrv/includes/config.json b/zefie_wtvp_minisrv/includes/config.json index 5ace959a..f2725964 100644 --- a/zefie_wtvp_minisrv/includes/config.json +++ b/zefie_wtvp_minisrv/includes/config.json @@ -338,6 +338,7 @@ "max_pages": 4, "publish_mode": "service", // "service" or "directory" "publish_dest": "pb_services", // service name, or directory path + "powered_by_url": null, // Set to a URL to have a custom "Powered by" link. If null, it will use the publish domain. "modules": [ "WTVAuthor" ]