📁
SKYSHELL MANAGER
PHP v8.2.31
Create
Create
Path:
root
/
home
/
thevaxnx
/
nativize.com
/
staging
/
wp-includes
/
js
/
tinymce
/
themes
/
Name
Size
Perm
Actions
📁
inlite
-
0755
🗑️
🏷️
🔒
📁
modern
-
0755
🗑️
🏷️
🔒
📄
wp-links-opml.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
Edit: manager.cmb.min.js
define("app/views/commonController",["angular","cjt/filters/wrapFilter","cjt/services/alertService","cjt/directives/alertList","uiBootstrap"],(function(e){var t;try{t=e.module("App")}catch(r){t=e.module("App",["ui.bootstrap","ngSanitize"])}return t.controller("commonController",["$scope","$location","$rootScope","alertService","PAGE",function(e,t,r,a,i){e.isInstalled=i.installed,e.alerts=a.getAlerts(),e.route=null,e.closeAlert=function(e){a.remove(e)},e.isCurrentView=function(t){return!(!e.route||!e.route.$$route)&&e.route.$$route.originalPath===t},r.$on("$routeChangeStart",(function(t,r,a){e.route=r}))}])})),define("app/services/featureListService",["angular","lodash","cjt/io/api","cjt/io/whm-v1-request","cjt/io/whm-v1","cjt/services/APIService"],(function(e,t,r,a,i){"use strict";var n;try{n=e.module("App")}catch(t){n=e.module("App",["cjt2.services.api"])}n.factory("featureListService",["$q","APIService","PAGE",function(r,n,s){function l(e){var t=[];if(e.status){for(var r=e.data,a=0,i=r.length;a<i;a++)t.push(r[a]);var n=e.meta;return{items:t,totalItems:n.paginate.total_records||r.length,totalPages:n.paginate.total_pages||1,status:e.status}}return{items:[],totalItems:0,totalPages:0,status:e.status}}function o(e){var t=new a.Class;return t.initialize("","get_featurelists"),t.addSorting("","asc","lexicographic_caseless"),this.deferred(t,{transformAPISuccess:l},e),e.promise}var u=function(){};return u.prototype=new n,e.extend(u.prototype,{loadFeatureLists:function(){var e=r.defer();return o.call(this,e)},load:function(e,r){var i=new a.Class;return i.initialize("","get_featurelist_data"),i.addArgument("featurelist",e),this.deferred(i,{apiSuccess:function(a,i){a.items=[];var n,l,o,u,d=["bbs","chat","cpanelpro_support","searchsubmit","advguest","guest","cgi","scgiwrap","counter","entropybanner","entropysearch","clock","countdown","randhtml","videotut","getstart"],c=!1;t.each(a.data.features,(function(i){if(n=!1,t.includes(d,i.id)){if(!s.legacySupport)return;n=!0}("fantastico"!==i.id||s.fantasticoSupport)&&(o=i.id,l=i.id,i.id in r&&(l=r[i.id].name,c="1"===r[i.id].is_plugin),u=!1,"disabled"===e?"0"===i.value&&(u=!0):u="1"===i.value,a.items.push({name:o,label:l,value:u,legacy:n,disabled:"1"===i.is_disabled,plugin:c,pluginBadgeHide:i.suppress_plugin_label,standalone:i.is_standalone_experience,onlyOneRules:i.only_one_rules||[],dependencies:i.dependencies||[],disabledDependencies:i.disabled_dependencies||[],allowList:i.allow_list||[],blockList:i.block_list||[],badgeLabel:i.badge_label,badgeClass:i.badge_class||""}))}),a.data.features),a.items=t.sortBy(a.items,(function(e){return e.label.toLowerCase()})),i.resolve(a)}}).promise},save:function(r,i){var n=new a.Class;n.initialize("","update_featurelist"),n.addArgument("featurelist",r);var s=e.copy(i);return t.each(s,(function(e){e.value="disabled"===r?!0===e.value?"0":"1":!0===e.value?"1":"0",n.addArgument(e.name,e.value)})),this.deferred(n,{context:this}).promise},add:function(e){var t=new a.Class;return t.initialize("","create_featurelist"),t.addArgument("featurelist",e),this.deferred(t,{context:this,apiSuccess:function(e,t){t.resolve(e)}}).promise},remove:function(e){var t=new a.Class;return t.initialize("","delete_featurelist"),t.addArgument("featurelist",e),this.deferred(t,{context:this,apiSuccess:function(e,t){t.notify(),o.call(this,t)}}).promise},prepareList:function(e){return l(e=i.parse_response(e).parsedResponse)}}),new u}])})),define("app/views/featureListController",["angular","lodash","cjt/util/locale","uiBootstrap","cjt/directives/autoFocus","cjt/filters/wrapFilter","cjt/filters/splitFilter","cjt/filters/htmlFilter","cjt/directives/spinnerDirective","cjt/directives/actionButtonDirective","cjt/directives/validationContainerDirective","cjt/directives/validationItemDirective","cjt/services/alertService","app/services/featureListService","cjt/io/whm-v1-querystring-service"],(function(e,t,r){"use strict";var a=e.module("App");return a.controller("featureListController",["$scope","$location","$anchorScroll","$timeout","featureListService","alertService",function(e,i,n,s,l,o){e.loadingPageData=!0,e.loadingView=!1,e.onlyReseller=!PAGE.hasRoot,e.hasMailOnlyList=PAGE.hasMailOnlyList,e.isEditable=function(e){return void 0!==e&&""!==e},e.isDeletable=function(t){return void 0!==t&&(e.isEditable(t)&&!e.isSystemList(t))},e.isSystemList=function(e){return void 0!==e&&("default"===e||"disabled"===e||"Mail Only"===e)},e.add=function(t){if(e.formAddFeature.$valid){if(!PAGE.hasRoot){var r=new RegExp("^"+PAGE.remoteUser+"_\\w+","i");-1===t.search(r)&&(t=PAGE.remoteUser+"_"+t)}return l.add(t).then((function(){e.loadingView=!0,e.loadView("editFeatureList",{name:t})}),(function(e){o.add({type:"danger",message:e,id:"errorAddingingFeatureList"})}))}var a=e.formAddFeature.txtNewFeatureList.$viewValue;e.formAddFeature.txtNewFeatureList.$setViewValue(a)},e.delete=function(a){return l.remove(a).then((function(t){e.featureLists=t.items,e.selectedFeatureList=e.featureLists[0]}),(function(e){o.add({type:"danger",message:e,id:"errorDeletingFeatureList"})}),(function(){o.add({type:"success",message:r.maketext("You successfully deleted the “[_1]” feature list.",t.escape(a)),id:"alertDeleteSuccess"})}))},e.fetch=function(){return e.loadingPageData=!0,o.removeById("errorFetchFeatureLists"),l.loadFeatureLists().then((function(t){e.featureLists=t.items,e.selectedFeatureList=e.featureLists[0]}),(function(e){throw o.add({type:"danger",message:e,id:"errorFetchFeatureLists"}),e})).finally((function(){e.loadingPageData=!1}))},e.$on("$viewContentLoaded",(function(){if(a.firstLoad.featureList&&PAGE.featureLists){a.firstLoad.featureList=!1,e.loadingPageData=!1;var t=l.prepareList(PAGE.featureLists);e.featureLists=t.items,e.selectedFeatureList=e.featureLists[0],t.status||(e.loadingPageData="error",o.add({type:"danger",message:r.maketext("There was a problem loading the page. The system is reporting the following error: [_1].",PAGE.featureLists.metadata.reason),id:"errorFetchFeatureLists"}))}else e.fetch()}))}])})),define("app/views/editFeatureListController",["angular","lodash","jquery","cjt/util/locale","uiBootstrap","cjt/directives/searchDirective","cjt/directives/spinnerDirective","cjt/services/alertService","app/services/featureListService"],(function(e,t,r,a){"use strict";return e.module("App").controller("editFeatureListController",["$scope","$location","$anchorScroll","$routeParams","spinnerAPI","alertService","featureListService","$sce","PAGE",function(e,r,i,n,s,l,o,u,d){e.featureListName=n.name,e.featureListHeading=a.maketext("Select all features for: [_1]",e.featureListName),e.isDisabledFeatureList="disabled"===e.featureListName,e.validateOnlyOneRules=function(t){if(!t)return{valid:!0};if(e.isDisabledFeatureList)return{valid:!0};const r=e.featureList.filter((e=>e.value)).map((e=>e.name)),a=e.featureList.filter((e=>e.onlyOneRules)).flatMap((e=>e.onlyOneRules));for(const t of a){const a=e.checkRuleViolation(t,r);if(a)return a}return{valid:!0}},e.matches=function(e,t){try{const r=t.pattern||t;return!(!r||"(?^u:)"===r||"(?-u:)"===r)&&new RegExp(r,t.flags||"").test(e)}catch(e){return!1}},e.getAllowedNames=function(t){if(!t.allowList||!t.allowList.length)return null;const r={};return r[t.name]=!0,t.dependencies&&t.dependencies.length&&t.dependencies.forEach((e=>{r[e]=!0})),e.featureList.forEach((a=>{t.allowList.some((t=>e.matches(a.name,t)))&&(r[a.name]=!0)})),r},e.getBlockedNames=function(t){if(!t.blockList||!t.blockList.length)return null;const r={};return e.featureList.forEach((a=>{t.blockList.some((t=>e.matches(a.name,t)))&&(r[a.name]=!0)})),r},e.shouldRestrict=function(e,t,r){return!(!t||t[e.name])||!(!r||!r[e.name])},e.restrictFeature=function(e,t){const r=e.value;return r&&(e.value=!1),e.restrictedBy=e.restrictedBy||{},e.restrictedBy[t]=!0,e.isRestricted=!0,r},e.applyRestrictions=function(t){if(e.isDisabledFeatureList)return{deselected:[]};const r=[],a=e.getAllowedNames(t),i=e.getBlockedNames(t);return e.featureList.forEach((n=>{e.shouldRestrict(n,a,i)&&e.restrictFeature(n,t.name)&&r.push(n)})),{deselected:r}},e.removeRestrictions=function(t){return e.featureList.forEach((e=>{e.restrictedBy&&e.restrictedBy[t.name]&&(delete e.restrictedBy[t.name],0===Object.keys(e.restrictedBy).length&&(delete e.restrictedBy,delete e.isRestricted))})),{valid:!0}},e.getRestrictionMessage=function(t){if(!t.isRestricted||!t.restrictedBy)return"";const r=Object.keys(t.restrictedBy);if(0===r.length)return"";const i=r.map((t=>e.featureList.find((e=>e.name===t))||{name:t,label:t})),n=e.formatFeatureLabelsWithBadges(i);return a.maketext("This feature is disabled because it is incompatible with: “[_1]”.",n.join(", "))},e.checkRuleViolation=function(t,r){const i=t.pattern||t,n=t.flags||"";let s;try{s=new RegExp(i,n)}catch(e){return console.warn("Invalid onlyOneRules pattern:",i,n,e),null}const l=r.filter((e=>s.test(e)));if(l.length<=1)return null;const o=l.map((t=>e.featureList.find((e=>e.name===t))||{name:t,label:t})),u=e.formatFeatureLabelsWithBadges(o);return{valid:!1,error:a.maketext("Your feature list can only include one of the following features: “[_1]”.",u.join(", "))}},e.enableDependencies=function(t,r=[]){if(e.isDisabledFeatureList)return r;if(!t.dependencies||!t.dependencies.length)return r;return e.featureList.filter((e=>t.dependencies.includes(e.name))).forEach((t=>{t.disabled?t.value=!1:t.value||(t.value=!0,r.push(t),e.enableDependencies(t,r))})),r},e.disableDependentFeatures=function(t,r=[]){if(e.isDisabledFeatureList)return r;return e.featureList.filter((e=>e.dependencies&&e.dependencies.includes(t.name)&&e.value&&!e.disabled)).forEach((t=>{t.value=!1,r.push(t),e.removeRestrictions(t),l.removeById("warningOnlyOneRule_"+t.name),l.removeById("warningRestrict_"+t.name),l.removeById("errorDisabledDependency_"+t.name),e.disableDependentFeatures(t,r)})),r},e.getDisabledDependencyError=function(t){if(!t||!t.disabledDependencies||!t.disabledDependencies.length)return null;const r=t.disabledDependencies.map((t=>{const r=e.featureList.find((e=>e.name===t));return r?r.label||r.name:t}));return{feature:t.name,featureLabel:t.label||t.name,disabledDependencies:t.disabledDependencies,disabledDependencyLabels:r}},e.validateDisabledDependencies=function(){if(e.isDisabledFeatureList)return{valid:!0,errors:[]};const t=[];return e.featureList.filter((e=>e.value&&!e.disabled)).forEach((r=>{const a=e.getDisabledDependencyError(r);a&&t.push(a)})),{valid:0===t.length,errors:t}},e.formatDisabledDependencyErrors=function(e){return e.map((e=>a.maketext("The “[_1]” feature requires “[_2]” which [numerate,_3,is,are] globally disabled.",e.featureLabel,e.disabledDependencyLabels.join(", "),e.disabledDependencies.length)))},e.notifyFeatureChanges=function(t,r){if(!t.length)return;const i=e.formatFeatureLabelsWithBadges(t);let n;n="enabled"===r?a.maketext("The following features were automatically enabled due to dependencies: “[_1]”.",i.join(", ")):a.maketext("The following features were automatically disabled because they depend on unselected features: “[_1]”.",i.join(", ")),l.add({type:"info",message:n,id:"infoDependencyChanges",replace:!0})},e.handleFeatureChange=function(t){if(!t)return;let r=[];if(!t.value)return e.isDisabledFeatureList||(r=e.disableDependentFeatures(t),e.notifyFeatureChanges(r,"disabled")),e.removeRestrictions(t),l.removeById("warningOnlyOneRule_"+t.name),l.removeById("warningRestrict_"+t.name),void l.removeById("errorDisabledDependency_"+t.name);if(e.isDisabledFeatureList)return!0;const i=e.getDisabledDependencyError(t);if(i)return t.value=!1,l.add({type:"danger",message:a.maketext("Cannot enable “[_1]” because it requires “[_2]” which [numerate,_3,is,are] globally disabled. To use this feature, first remove [numerate,_3,this feature,these features] from the “disabled” feature list.",i.featureLabel,i.disabledDependencyLabels.join(", "),i.disabledDependencies.length),id:"errorDisabledDependency_"+t.name,replace:!0}),!1;r=e.enableDependencies(t);const n=e.applyRestrictions(t),s=e.validateOnlyOneRules(t.value);if(!s.valid)return t.value=!1,r.forEach((e=>{e.value=!1})),e.removeRestrictions(t),l.add({type:"warning",message:s.error,id:"warningOnlyOneRule_"+t.name,replace:!0}),!1;if(e.notifyFeatureChanges(r,"enabled"),n.deselected&&n.deselected.length){const e=n.deselected.length,r=t.label||t.name;let i=a.maketext("The system automatically deselected [quant,_1,feature,features] because [numerate,_1,it conflicts,they conflict] with “[_2]”.",e,r);l.add({type:"info",message:i,id:"infoRestrict_"+t.name,replace:!1})}return l.removeById("warningOnlyOneRule_"+t.name),l.removeById("warningRestrict_"+t.name),!0},e.formatFeatureLabelsWithBadges=function(e){return(Array.isArray(e)?e:[e]).map((e=>{const t=e.label||e.name;return e.badgeLabel?`${t} (${e.badgeLabel})`:t}))},e.getExclusiveFeatures=function(){if(e.isDisabledFeatureList)return[];const t=e.featureList.filter((e=>e.onlyOneRules&&e.onlyOneRules.length)).flatMap((e=>e.onlyOneRules)),r={};return t.forEach((t=>{const a=t.pattern||t,i=t.flags||"";try{const t=new RegExp(a,i);e.featureList.filter((e=>t.test(e.name))).forEach((e=>r[e.name]=!0))}catch(e){console.warn("Invalid onlyOneRules pattern:",a,i,e)}})),Object.keys(r)},e.toggleAllFeatures=function(){const t=!e.allFeaturesChecked();if(!t)return e.featureList.forEach((t=>{const r=t.value;t.value=!1,r&&e.removeRestrictions(t)})),l.removeById("infoExclusiveFeaturesSkipped"),void l.removeById("warningOnlyOneRuleSelectAll");const r={};e.getExclusiveFeatures().forEach((e=>r[e]=!0));const i=e.featureList.filter((e=>!e.disabled&&!e.isRestricted&&t&&r[e.name]&&!e.value)).map((e=>(e.value=!1,e))),n=e.formatFeatureLabelsWithBadges(i);e.featureList.filter((e=>!e.disabled&&!e.isRestricted&&!r[e.name])).forEach((e=>{e.value=t}));n.length&&t?l.add({type:"info",message:a.maketext("The “Select All” action skipped features that override the standard login process. You can manually select them if needed: “[_1]”.",n.join(", ")),id:"infoExclusiveFeaturesSkipped",replace:!0}):l.removeById("infoExclusiveFeaturesSkipped"),l.removeById("warningOnlyOneRuleSelectAll")},e.allFeaturesChecked=function(){if(e.loadingPageData||!e.featureList)return!1;const t=e.getExclusiveFeatures();for(let r=0,a=e.featureList.length;r<a;r++){const a=e.featureList[r];if(!(a.disabled||a.isRestricted||t.includes(a.name))&&!1===a.value)return!1}return!0},e.save=function(r){const i=e.validateDisabledDependencies();if(i.valid)return o.save(e.featureListName,r).then((function(){l.add({type:"success",message:a.maketext("You have successfully updated the “[_1]” feature list.",t.escape(e.featureListName)),id:"alertSaveSuccess",replace:!0}),e.loadView("featureList")}),(function(e){l.add({type:"danger",message:e,id:"errorSaveFeatureList"})}));{const t=e.formatDisabledDependencyErrors(i.errors);l.add({type:"danger",message:a.maketext("Cannot save feature list: “[_1]”. To fix this, remove the required features from the “disabled” feature list.",t.join(" ")),id:"errorCannotSaveDisabledDeps",replace:!0})}},e.fetch=function(){return e.loadingPageData=!0,s.start("featureListSpinner"),l.removeById("errorFetchFeatureList"),o.load(e.featureListName,e.featureDescriptions).then((function(t){e.featureList=t.items,e.isDisabledFeatureList||e.featureList.filter((e=>e.value)).forEach((t=>e.applyRestrictions(t)));const r=e.validateDisabledDependencies();if(!r.valid){const t=e.formatDisabledDependencyErrors(r.errors);l.add({type:"warning",message:a.maketext("This feature list cannot be saved in its current state: “[_1]”. To fix this, remove the required features from the “disabled” feature list.",t.join(" ")),id:"warningDisabledDepsOnLoad",replace:!1,autoClose:0})}e.loadingPageData=!1}),(function(e){throw l.add({type:"danger",message:e,id:"errorFetchFeatureList"}),e})).finally((function(){e.loadingPageData=!1,s.stop("featureListSpinner")}))},e.$on("$viewContentLoaded",(function(){l.clear();var r=o.prepareList(d.featureDescriptions);e.featureDescriptions=t.fromPairs(t.zip(t.map(r.items,"id"),r.items)),r.status?e.fetch():(e.loadingPageData="error",l.add({type:"danger",message:a.maketext("There was a problem loading the page. The system is reporting the following error: [_1].",d.featureDescriptions.metadata.reason),id:"errorFetchFeatureDescriptions"}))}))}])})),define("app/manager",["angular","jquery","lodash","cjt/core","cjt/modules","ngRoute","uiBootstrap"],(function(e,t,r,a){return function(){return e.module("App",["cjt2.config.whm.configProvider","ngRoute","ui.bootstrap","cjt2.whm"]),require(["cjt/bootstrap","cjt/util/locale","cjt/views/applicationController","cjt/filters/breakFilter","app/views/commonController","app/views/featureListController","app/views/editFeatureListController","cjt/services/whm/breadcrumbService"],(function(t,r){var i=e.module("App");i.value("PAGE",PAGE),i.firstLoad={featureList:!0},i.config(["$routeProvider",function(e){e.when("/featureList",{controller:"featureListController",templateUrl:a.buildFullPath("feature/views/featureListView.ptt"),breadcrumb:r.maketext("Feature Lists"),reloadOnSearch:!1}),e.when("/editFeatureList",{controller:"editFeatureListController",templateUrl:a.buildFullPath("feature/views/editFeatureListView.ptt"),breadcrumb:r.maketext("Edit Feature List"),reloadOnSearch:!1}),e.otherwise({redirectTo:function(e,t,r){return"/featureList?"+window.location.search}})}]),i.run(["breadcrumbService",function(e){e.initialize()}]),t(document)}))}}));
Save