1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Replaced mb3admin.com phoning home with a stub mb3admin.local

This commit is contained in:
Vasily 2018-10-22 02:16:58 +03:00
parent 0dc1237b21
commit c874747379
4 changed files with 7 additions and 7 deletions

View file

@ -63,7 +63,7 @@
<input type="hidden" id="featureName" name="item_name" value=""> <input type="hidden" id="featureName" name="item_name" value="">
<input type="hidden" id="amount" name="amount" value="10"> <input type="hidden" id="amount" name="amount" value="10">
<input type="hidden" id="featureId" name="item_number" value=""> <input type="hidden" id="featureId" name="item_number" value="">
<input type="hidden" name="notify_url" value="https://mb3admin.com/admin/service/services/ppipn.php"> <input type="hidden" name="notify_url" value="https://mb3admin.local/admin/service/services/ppipn.php">
<input type="hidden" name="return" id="paypalReturnUrl" value="#"> <input type="hidden" name="return" id="paypalReturnUrl" value="#">
<button is="emby-button" type="submit" id="ppButton" class="raised block button-submit" style="background-color: #179BD7;color:#fff;"> <button is="emby-button" type="submit" id="ppButton" class="raised block button-submit" style="background-color: #179BD7;color:#fff;">
<span>${RegisterWithPayPal}</span> <span>${RegisterWithPayPal}</span>

View file

@ -686,7 +686,7 @@ define(["events", "apiclient", "appStorage"], function(events, apiClientFactory,
if (timeSinceLastValidation <= 864e5) return console.log("getRegistrationInfo returning cached info"), Promise.resolve(); if (timeSinceLastValidation <= 864e5) return console.log("getRegistrationInfo returning cached info"), Promise.resolve();
var updateDevicePromise; var updateDevicePromise;
regInfo.deviceId && regInfo.deviceId !== params.deviceId && (updateDevicePromise = ajax({ regInfo.deviceId && regInfo.deviceId !== params.deviceId && (updateDevicePromise = ajax({
url: "https://mb3admin.com/admin/service/registration/updateDevice?" + paramsToString({ url: "https://mb3admin.local/admin/service/registration/updateDevice?" + paramsToString({
serverId: params.serverId, serverId: params.serverId,
oldDeviceId: regInfo.deviceId, oldDeviceId: regInfo.deviceId,
newDeviceId: params.deviceId newDeviceId: params.deviceId
@ -700,7 +700,7 @@ define(["events", "apiclient", "appStorage"], function(events, apiClientFactory,
return updateDevicePromise.then(function() { return updateDevicePromise.then(function() {
return apiClient.getCurrentUser().then(function(user) { return apiClient.getCurrentUser().then(function(user) {
return params.embyUserName = user.Name, "81f53802ea0247ad80618f55d9b4ec3c" === user.Id.toLowerCase() && "21585256623b4beeb26d5d3b09dec0ac" === params.serverId.toLowerCase() ? Promise.reject() : ajax({ return params.embyUserName = user.Name, "81f53802ea0247ad80618f55d9b4ec3c" === user.Id.toLowerCase() && "21585256623b4beeb26d5d3b09dec0ac" === params.serverId.toLowerCase() ? Promise.reject() : ajax({
url: "https://mb3admin.com/admin/service/registration/validateDevice?" + paramsToString(params), url: "https://mb3admin.local/admin/service/registration/validateDevice?" + paramsToString(params),
type: "POST", type: "POST",
dataType: "json" dataType: "json"
}).then(function(response) { }).then(function(response) {

View file

@ -41,7 +41,7 @@ define(["jQuery", "loading", "libraryMenu", "globalize", "connectionManager", "e
if (regStatus += "</p>", $("#regStatus", page).html(regStatus), pluginSecurityInfo.IsMBSupporter) if (regStatus += "</p>", $("#regStatus", page).html(regStatus), pluginSecurityInfo.IsMBSupporter)
if ($(".premiumDescription", page).hide(), $(".supporterDescription", page).hide(), pkg.price > 0) { if ($(".premiumDescription", page).hide(), $(".supporterDescription", page).hide(), pkg.price > 0) {
$(".premiumHasPrice", page).show(), $("#featureId", page).val(pkg.featureId), $("#featureName", page).val(pkg.name), $("#amount", page).val(pkg.price), $("#regPrice", page).html("<h3>" + globalize.translate("ValuePriceUSD").replace("{0}", "$" + pkg.price.toFixed(2)) + "</h3>"), $("#ppButton", page).hide(); $(".premiumHasPrice", page).show(), $("#featureId", page).val(pkg.featureId), $("#featureName", page).val(pkg.name), $("#amount", page).val(pkg.price), $("#regPrice", page).html("<h3>" + globalize.translate("ValuePriceUSD").replace("{0}", "$" + pkg.price.toFixed(2)) + "</h3>"), $("#ppButton", page).hide();
var url = "https://mb3admin.com/admin/service/user/getPayPalEmail?id=" + pkg.owner; var url = "https://mb3admin.local/admin/service/user/getPayPalEmail?id=" + pkg.owner;
fetch(url).then(function(response) { fetch(url).then(function(response) {
return response.json() return response.json()
}).then(function(dev) { }).then(function(dev) {

View file

@ -38,7 +38,7 @@ define(["fetchHelper", "dom", "registrationServices", "loading", "confirm", "glo
function getPremiereStatus(key) { function getPremiereStatus(key) {
var postData = "key=" + key + "&serverId=" + ApiClient.serverId(); var postData = "key=" + key + "&serverId=" + ApiClient.serverId();
return fetchHelper.ajax({ return fetchHelper.ajax({
url: "https://mb3admin.com/admin/service/registration/getStatus", url: "https://mb3admin.local/admin/service/registration/getStatus",
type: "POST", type: "POST",
data: postData, data: postData,
contentType: "application/x-www-form-urlencoded", contentType: "application/x-www-form-urlencoded",
@ -69,7 +69,7 @@ define(["fetchHelper", "dom", "registrationServices", "loading", "confirm", "glo
console.log("after confirm"); console.log("after confirm");
var postData = "key=" + key + "&feature=" + feature; var postData = "key=" + key + "&feature=" + feature;
fetchHelper.ajax({ fetchHelper.ajax({
url: "https://mb3admin.com/admin/service/stripe/requestSubCancel", url: "https://mb3admin.local/admin/service/stripe/requestSubCancel",
type: "POST", type: "POST",
data: postData, data: postData,
contentType: "application/x-www-form-urlencoded" contentType: "application/x-www-form-urlencoded"
@ -90,7 +90,7 @@ define(["fetchHelper", "dom", "registrationServices", "loading", "confirm", "glo
loading.show(); loading.show();
var form = this, var form = this,
email = form.querySelector("#txtEmail").value, email = form.querySelector("#txtEmail").value,
url = "https://mb3admin.com/admin/service/supporter/retrievekey?email=" + email; url = "https://mb3admin.local/admin/service/supporter/retrievekey?email=" + email;
return console.log(url), fetchHelper.ajax({ return console.log(url), fetchHelper.ajax({
url: url, url: url,
type: "POST", type: "POST",