Commit 17e2454db9880a3dfcb13c2bb4684703d1ef12ca

Authored by Mukul Rajput
1 parent fad8a339

this is solution for the issue copy right

400-SOURCECODE/AIAHTML5.API/Controllers/ConfigurationController.cs 0 → 100644
  1 +using System;
  2 +using System.Collections.Generic;
  3 +using System.Linq;
  4 +using System.Net;
  5 +using System.Net.Http;
  6 +using System.Web.Http;
  7 +using System.Configuration;
  8 +namespace AIAHTML5.API.Controllers
  9 +{
  10 + public class ConfigurationController : ApiController
  11 + {
  12 + [Route("api/Configuration/GetConfigurationvalues")]
  13 + [HttpGet]
  14 + public HttpResponseMessage GetConfigurationvalues()
  15 + {
  16 + int current_year = Int32.Parse(ConfigurationManager.AppSettings["Copyrightyear"]);
  17 + HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.OK, current_year);
  18 + return response;
  19 + }
  20 + }
  21 +}
0 22 \ No newline at end of file
... ...
400-SOURCECODE/AIAHTML5.API/Templates/Forgot-UserId.html
... ... @@ -57,7 +57,7 @@
57 57 <td style=' font-size:12px; font-family:Gotham, Helvetica, Arial, sans-serif; color:#000000;'>&nbsp;</td>
58 58 </tr>
59 59 <tr>
60   - <td style=' font-size:12px; font-family:Gotham, Helvetica, Arial, sans-serif; color:#000000;'>Give us a <b>call toll-free at 1-888-278-9614</b> or <em>send us an email</em> if you have any questions or if you need help. It will be our pleasure to help you.</td></tr><tr><td style=' font-size:12px; font-family:Gotham, Helvetica, Arial, sans-serif; color:#000000;'>&nbsp;</td></tr><tr><td style=' font-size:12px; font-family:Gotham, Helvetica, Arial, sans-serif; color:#000000;'>&nbsp;</td></tr><tr><td style=' font-size:12px; font-family:Gotham, Helvetica, Arial, sans-serif; color:#000000;'><em>&copy; 2017 Ebix, Inc. All Rights Reserved. </em></td>
  60 + <td style=' font-size:12px; font-family:Gotham, Helvetica, Arial, sans-serif; color:#000000;'>Give us a <b>call toll-free at 1-888-278-9614</b> or <em>send us an email</em> if you have any questions or if you need help. It will be our pleasure to help you.</td></tr><tr><td style=' font-size:12px; font-family:Gotham, Helvetica, Arial, sans-serif; color:#000000;'>&nbsp;</td></tr><tr><td style=' font-size:12px; font-family:Gotham, Helvetica, Arial, sans-serif; color:#000000;'>&nbsp;</td></tr><tr><td style=' font-size:12px; font-family:Gotham, Helvetica, Arial, sans-serif; color:#000000;'><em>&copy; <%=Int32.Parse(ConfigurationManager.AppSettings["Copyrightyear"])%> Ebix, Inc. All Rights Reserved. </em></td>
61 61 </tr>
62 62 </tbody>
63 63 </table>
... ...
400-SOURCECODE/AIAHTML5.API/Templates/forgot-Password.html
... ... @@ -75,7 +75,7 @@
75 75 <td style=' font-size:12px; font-family:Gotham, Helvetica, Arial, sans-serif; color:#000000;'>&nbsp;</td>
76 76 </tr>
77 77 <tr>
78   - <td style=' font-size:12px; font-family:Gotham, Helvetica, Arial, sans-serif; color:#000000;'>Give us a <b>call toll-free at 1-888-278-9614</b> or <em>send us an email</em> if you have any questions or if you need help. It will be our pleasure to help you.</td></tr><tr><td style=' font-size:12px; font-family:Gotham, Helvetica, Arial, sans-serif; color:#000000;'>&nbsp;</td></tr><tr><td style=' font-size:12px; font-family:Gotham, Helvetica, Arial, sans-serif; color:#000000;'>&nbsp;</td></tr><tr><td style=' font-size:12px; font-family:Gotham, Helvetica, Arial, sans-serif; color:#000000;'><em>&copy; 2017 Ebix, Inc. All Rights Reserved. </em></td>
  78 + <td style=' font-size:12px; font-family:Gotham, Helvetica, Arial, sans-serif; color:#000000;'>Give us a <b>call toll-free at 1-888-278-9614</b> or <em>send us an email</em> if you have any questions or if you need help. It will be our pleasure to help you.</td></tr><tr><td style=' font-size:12px; font-family:Gotham, Helvetica, Arial, sans-serif; color:#000000;'>&nbsp;</td></tr><tr><td style=' font-size:12px; font-family:Gotham, Helvetica, Arial, sans-serif; color:#000000;'>&nbsp;</td></tr><tr><td style=' font-size:12px; font-family:Gotham, Helvetica, Arial, sans-serif; color:#000000;'><em>&copy; <%=Int32.Parse(ConfigurationManager.AppSettings["Copyrightyear"])%> Ebix, Inc. All Rights Reserved. </em></td>
79 79 </tr>
80 80 </tbody>
81 81 </table>
... ...
400-SOURCECODE/AIAHTML5.API/Templates/unblock-User.html
... ... @@ -77,7 +77,7 @@
77 77 <tr><td style=' font-size:12px; font-family:Gotham, Helvetica, Arial, sans-serif; color:#000000;'>&nbsp;</td></tr>
78 78 <tr><td style=' font-size:12px; font-family:Gotham, Helvetica, Arial, sans-serif; color:#000000;'>&nbsp;</td></tr>
79 79 <tr>
80   - <td style=' font-size:12px; font-family:Gotham, Helvetica, Arial, sans-serif; color:#000000;'><em>&copy; 2017 Ebix, Inc. All Rights Reserved. </em></td>
  80 + <td style=' font-size:12px; font-family:Gotham, Helvetica, Arial, sans-serif; color:#000000;'><em>&copy; <%=Int32.Parse(ConfigurationManager.AppSettings["Copyrightyear"])%> Ebix, Inc. All Rights Reserved. </em></td>
81 81 </tr>
82 82 </tbody>
83 83 </table>
... ...
400-SOURCECODE/AIAHTML5.API/Web.config
... ... @@ -31,6 +31,8 @@
31 31 </log4net>
32 32  
33 33 <appSettings>
  34 + <add key="Copyrightyear" value="2018" />
  35 + <add key="SenderEmailAddress" value="support@interactiveanatomy.com" />
34 36 <add key="SenderEmailAddress" value="support@interactiveanatomy.com" />
35 37 <add key="ErrorNotificationEmailAddress" value="support@interactiveanatomy.com" />
36 38 <add key="SenderPassword" value="" />
... ...
400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js
... ... @@ -39,7 +39,7 @@ function ($rootScope, $scope, Modules, $log, $location, $timeout, DataService, A
39 39 ethnicity: null,
40 40 modesty: null
41 41 };
42   - $rootScope.current_year = AIAConstants.current_year;
  42 +
43 43 // on refersh this variable will also get null that is why we are only checking this variable on initialize that if it is null that means page gets refershed.
44 44 $rootScope.refreshcheck = null;
45 45 var isCommingSoonModel = true;
... ... @@ -172,13 +172,19 @@ function ($rootScope, $scope, Modules, $log, $location, $timeout, DataService, A
172 172 $rootScope.promptUserForCookies();
173 173 }
174 174  
175   -
  175 + $rootScope.getConfigurationValues();
176 176 }
177   -
178   - $rootScope.AuthenticateUser = function (userInfo)
  177 + $rootScope.getConfigurationValues = function ()
179 178 {
180   -
181   -
  179 + AuthenticationService.getCofigValue()
  180 + .then(
  181 + function (configresult) {
  182 + $rootScope.current_year = configresult;
  183 +
  184 + });
  185 + }
  186 + $rootScope.AuthenticateUser = function (userInfo)
  187 + {
182 188 if (navigator.cookieEnabled) {
183 189 $rootScope.errorMessage = "";
184 190 if (userInfo.username == "" || userInfo.username == null || userInfo.username == undefined || userInfo.password == "" || userInfo.password == null || userInfo.password == undefined) {
... ... @@ -372,9 +378,9 @@ function ($rootScope, $scope, Modules, $log, $location, $timeout, DataService, A
372 378 {
373 379 $rootScope.promptUserForCookies();
374 380 }
375   -
  381 +
376 382 }
377   -
  383 +
378 384 $scope.saveRemeberMeDetails = function (result, userInfo) {
379 385  
380 386 localStorage.setItem('RememberMeLoginId', result.LoginId);
... ...
400-SOURCECODE/AIAHTML5.Web/app/services/AuthenticationService.js
... ... @@ -108,7 +108,25 @@
108 108 $("#messageModal").modal('show');
109 109 });
110 110 return deferred.promise;
111   - }
  111 + },
  112 + getCofigValue: function()
  113 + {
  114 + var deferred = $q.defer();
  115 + $http({
  116 + method: 'GET',
  117 + url: 'API/api/Configuration/GetConfigurationvalues'
  118 + }).success(function (data, status, headers, config)
  119 + {
  120 + console.log('success' + data);
  121 + deferred.resolve(data);
  122 + }).error(function (data, status, headers, config)
  123 + {
  124 + console.log('error')
  125 + deferred.reject(data);
  126 +
  127 + });
  128 + return deferred.promise;
  129 + }
112 130  
113   - }
  131 + }
114 132 });
115 133 \ No newline at end of file
... ...
400-SOURCECODE/AIAHTML5.Web/index.html
... ... @@ -234,7 +234,7 @@
234 234 <img class="browserIcons" src="content/images/common/mozilla-icon.png" />
235 235 <img class="browserIcons" src="content/images/common/safari-icon.png" />
236 236 </div>
237   - <div class="container-fluid text-center">Copyright &copy; 2017 Ebix Inc. All rights reserved.</div>
  237 + <div class="container-fluid text-center">Copyright &copy; {{current_year}} Ebix Inc. All rights reserved.</div>
238 238 </footer>
239 239 </div>
240 240 <!-- Forgot User ID (Small modal) -->
... ...