File manager - Edit - /usr/local/cpanel/whostmgr/docroot/templates/greylist/views/config.min.js
Back
define(["angular","cjt/util/locale","lodash","uiBootstrap","cjt/validator/datatype-validators","cjt/validator/compare-validators","cjt/directives/validationContainerDirective","cjt/directives/validationItemDirective","cjt/directives/toggleSortDirective","cjt/directives/actionButtonDirective","cjt/decorators/growlDecorator","app/services/GreylistDataSource"],(function(angular,LOCALE,_){var app=angular.module("App");var controller=app.controller("configController",["$scope","GreylistDataSource","growl","$timeout",function($scope,GreylistDataSource,growl,$timeout){$scope.configSettings=GreylistDataSource.configSettings;$scope.disableSave=function(form){return form.$dirty&&form.$invalid};$scope.timeoutHelpText=LOCALE.maketext("The number of minutes during which the mail server defers email from an unknown triplet.");$scope.waitHelpText=LOCALE.maketext("The number of minutes during which the mail server accepts a resent email from an unknown triplet.");$scope.expiresHelpText=LOCALE.maketext("The time at which the mail server treats a resent email as coming from a new, unknown triplet.");$scope.spfHelpText=LOCALE.maketext("Whether the system automatically accepts email from hosts with a valid [asis,SPF] record.[comment,this text is used in a tooltip]");$scope.save=function(form){setAllInputsDirty(form);if(!form.$valid){return}return GreylistDataSource.saveConfigSettings($scope.configSettings).then((function(){growl.success(LOCALE.maketext("The system successfully saved your [asis,Greylisting] configuration settings."))}),(function(error){growl.error(error)}))};$scope.$on("$viewContentLoaded",(function(){init()}));function init(){$timeout((function(){$scope.configSettings=GreylistDataSource.configSettings;setAllInputsDirty($scope.config_form)}))}function setAllInputsDirty(form){var keys=_.keys(form);for(var i=0,len=keys.length;i<len;i++){var value=form[keys[i]];if(value&&value.$setViewValue){value.$setViewValue(value.$viewValue)}}}}]);return controller}));
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | Generation time: 0.03 |
proxy
|
phpinfo
|
Settings