| Server IP : 104.21.37.246 / Your IP : 104.23.243.32 [ Web Server : Apache System : Linux cpanel01wh.bkk1.cloud.z.com 2.6.32-954.3.5.lve1.4.59.el6.x86_64 #1 SMP Thu Dec 6 05:11:00 EST 2018 x86_64 User : cp648411 ( 1354) PHP Version : 7.2.34 Disable Function : NONE Domains : 0 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/2388322/root/proc/2388322/cwd/webmail/jupiter/sharedjs/angular/ |
Upload File : |
var OAuth2App=angular.module("OAuth2App",[]);OAuth2App.controller("OAuth2Landing",["$scope","$http","$window",function($scope,$http,$window){"use strict";$scope.oauth2_endpoint=PAGE.oauth2_endpoint;$scope.oauth2_config=PAGE.oauth2_config;$scope.isProcessing=false;$scope.buildRedirectURI=function(uri){return location.protocol+"//"+location.hostname+":"+location.port+uri};$scope.oauth2_config.redirect_uri=$scope.buildRedirectURI($scope.oauth2_config.redirect_uri);$scope.login=function(){var popupOptions={name:"OAuth2Window",openParams:{autoCenter:true,height:415,width:450}};var formatPopupOptions=function(options){var pairs=[];angular.forEach(options,function(value,key){if(value||value===0){value=value===true?"yes":value;pairs.push(key+"="+value)}});return pairs.join(",")};if($scope.oauth2_config&&$scope.oauth2_config.email){var emails=$scope.oauth2_config.email.split(/[,]/);$scope.oauth2_config.email=emails[0]}var url=encodeURI($scope.oauth2_endpoint)+"?"+$.param($scope.oauth2_config);$window.open(url,popupOptions.name,formatPopupOptions(popupOptions.openParams))}}]);