diff options
author | M.Gergo | 2018-07-06 11:14:41 +0200 |
---|---|---|
committer | M.Gergo | 2018-07-06 11:14:41 +0200 |
commit | 43de9af71f7f4ca5731b94a06d688ae8412ba427 (patch) | |
tree | 54835de1dfcda504c02da261f0dc26885aed2e89 /mayor-orig/www/skin/classic/module-password | |
parent | 50310b0e4513ee3fcce67351ae61e8fff851130e (diff) | |
download | mayor-43de9af71f7f4ca5731b94a06d688ae8412ba427.tar.gz mayor-43de9af71f7f4ca5731b94a06d688ae8412ba427.zip |
2018/Feb/28 -i állapot hozzáadva, mint a módosítások kiindulási állapota
Diffstat (limited to 'mayor-orig/www/skin/classic/module-password')
5 files changed, 290 insertions, 0 deletions
diff --git a/mayor-orig/www/skin/classic/module-password/css/password.css b/mayor-orig/www/skin/classic/module-password/css/password.css new file mode 100644 index 00000000..b1550dbb --- /dev/null +++ b/mayor-orig/www/skin/classic/module-password/css/password.css @@ -0,0 +1,19 @@ + +h1.changePassword { + text-align: center; +} + +table.changePassword { + border: solid 1px rgb(85, 85, 80); + background-color: #eeeeee; + width:350px; +} +table.changePassword thead tr th { + height:30px; + background-color: rgb(102, 102, 144); + color:white; + border-bottom: solid 1px white; +} +table.changePassword tr td { padding: 2px 10px; height:20px;} +table.changePassword tr td input { font-size:14px; } +table.changePassword tfoot tr th { background-color: rgb(136, 136, 128); } diff --git a/mayor-orig/www/skin/classic/module-password/html/changeMyPassword.phtml b/mayor-orig/www/skin/classic/module-password/html/changeMyPassword.phtml new file mode 100644 index 00000000..20680e8e --- /dev/null +++ b/mayor-orig/www/skin/classic/module-password/html/changeMyPassword.phtml @@ -0,0 +1,76 @@ +<?php + + function putChangePasswordForm($userAccount, $toPolicy) { + + global $POLICIES, $AUTH; + + echo '<h1 class="changePassword">'._CHANGE_PASSWORD.'</h1>'."\n"; + formBegin(array( + 'action'=>location('index.php?page=password&f=changeMyPassword'), + 'id'=>'changeMyPassword' + )); + echo '<input type="hidden" name="action" value="changePassword" />'; + + echo '<table cellspacing="0" cellpadding="1" align="center" class="changePassword">'."\n"; + echo '<thead>'."\n"; + echo '<tr>'."\n"; + echo '<th colspan="2">'."\n"; + echo _CHANGE_PASSWORD; + echo '</td>'."\n"; + echo '</tr>'."\n"; + echo '</thead>'."\n"; + echo '<tfoot>'."\n"; + echo '<tr>'."\n"; + echo '<th colspan="2">'."\n"; + echo '<input type="submit" tabindex="5" name="button" value=" '. _OK .' " class="submit" />'."\n"; + echo '</th>'."\n"; + echo '</tr>'."\n"; + echo '</tfoot>'."\n"; + echo '<tbody>'."\n"; + echo '<tr>'."\n"; + echo '<td>'."\n"; + echo _USERNAME; + echo '</td>'."\n"; + echo '<td>'."\n"; + echo '<input id="userAccount" type="hidden" name="userAccount" value="'.$userAccount.'" maxlength="32" />'."\n"; + echo $userAccount; + echo '</td>'."\n"; + echo '</tr>'."\n"; + + echo '<tr>'."\n"; + echo '<td>'."\n"; + echo '<input type="hidden" name="toPolicy" value="'.$toPolicy.'" />'; + echo constant('_'.strtoupper($toPolicy).'_PASSWORD'); + echo '</td>'."\n"; + echo '<td>'."\n"; + echo '<input id="userPassword" type="password" accesskey="p" tabindex="2" name="userPassword" value="" maxlength="20" />'."\n"; + echo '</td>'."\n"; + echo '</tr>'."\n"; + + echo '<tr>'."\n"; + echo '<td>'."\n"; + echo _NEW_PASSWORD; + echo '</td>'."\n"; + echo '<td>'."\n"; + echo '<input id="newPassword" type="password" accesskey="n" tabindex="3" name="newPassword" value="" maxlength="20" />'; + // echo '<span style="float:right;" id="complexity-bar" class="progress-bar progress-bar-danger" role="progressbar" style="width: 0%;"></span>'; + echo '</td>'."\n"; + echo '</tr>'."\n"; + + echo '<tr>'."\n"; + echo '<td>'."\n"; + echo _VERIFICATION; + echo '</td>'."\n"; + echo '<td>'."\n"; + echo '<input id="verification" type="password" accesskey="v" tabindex="4" name="verification" value="" maxlength="20" />'."\n"; + echo '</td>'."\n"; + echo '</tr>'."\n"; + + echo '</tbody>'."\n"; + echo '</table>'."\n"; + + formEnd(); + + } + +?> diff --git a/mayor-orig/www/skin/classic/module-password/html/changePassword.phtml b/mayor-orig/www/skin/classic/module-password/html/changePassword.phtml new file mode 100644 index 00000000..87f34b3c --- /dev/null +++ b/mayor-orig/www/skin/classic/module-password/html/changePassword.phtml @@ -0,0 +1,89 @@ +<?php + + function putChangePasswordForm($userAccount, $toPolicy, $forcePolicy = false) { + + global $POLICIES, $AUTH; + + echo '<h1 class="changePassword">'._CHANGE_PASSWORD.'</h1>'."\n"; + formBegin(array('action'=>location('index.php?page=password&f=changePassword'))); + + echo '<input type="hidden" name="action" value="changePassword" />'; + + echo '<table cellspacing="0" cellpadding="1" align="center" class="changePassword">'."\n"; + echo '<thead>'."\n"; + if ($forcePolicy) { + echo '<tr>'."\n"; + echo '<th colspan="3">'."\n"; + echo constant('_'.strtoupper($toPolicy).'_PASSWORD'); + echo '<input type="hidden" name="toPolicy" value="'.$toPolicy.'" />'."\n"; + echo '</th>'."\n"; + echo '</tr>'."\n"; + } + echo '</thead>'."\n"; + echo '<tfoot>'."\n"; + echo '<tr>'."\n"; + echo '<th colspan="3">'."\n"; + echo '<input type="submit" tabindex="3" name="button" value=" '. _OK .' " + onclick="document.loginablak.button.disabled=true; + document.loginablak.button.value=\' Várj... \'; + document.loginablak.submit()" class="submit" />'."\n"; + echo '</th>'."\n"; + echo '</tr>'."\n"; + echo '</tfoot>'."\n"; + echo '<tbody>'."\n"; + echo '<tr>'."\n"; + echo '<td>'."\n"; + echo _USERNAME; + echo '</td>'."\n"; + echo '<td>'."\n"; + echo '<input id="userAccount" type="text" accesskey="l" tabindex="1" name="userAccount" value="'.$userAccount.'" maxlength="32" />'."\n"; + echo '</td>'."\n"; + echo '</tr>'."\n"; + + if (!$forcePolicy) { // rögzített policy esetén nem kell jelszót megadni + echo '<tr>'."\n"; + echo '<td>'."\n"; + echo '<select class="pp" name="toPolicy">'."\n"; + $SEL = array($toPolicy => ' selected="selected" '); + for ($i=0; $i<count($POLICIES); $i++) { + $_policy = $POLICIES[$i]; + if ($AUTH[$_policy]['authentication'] != 'none') { + echo '<option value="'.$_policy.'" '.$SEL[$_policy].'>'; + echo constant('_'.strtoupper($_policy).'_PASSWORD'); + echo '</option>'."\n"; + } + } + echo '</select>'."\n"; + echo '</td>'."\n"; + echo '<td>'."\n"; + echo '<input id="userPassword" type="password" accesskey="p" tabindex="2" name="userPassword" value="" maxlength="20" />'."\n"; + echo '</td>'."\n"; + echo '</tr>'."\n"; + } + + echo '<tr>'."\n"; + echo '<td>'."\n"; + echo _NEW_PASSWORD; + echo '</td>'."\n"; + echo '<td>'."\n"; + echo '<input id="newPassword" type="password" accesskey="n" tabindex="3" name="newPassword" value="" maxlength="20" />'."\n"; + echo '</td>'."\n"; + echo '</tr>'."\n"; + + echo '<tr>'."\n"; + echo '<td>'."\n"; + echo _VERIFICATION; + echo '</td>'."\n"; + echo '<td>'."\n"; + echo '<input id="verification" type="password" accesskey="v" tabindex="3" name="verification" value="" maxlength="20" />'."\n"; + echo '</td>'."\n"; + echo '</tr>'."\n"; + + echo '</tbody>'."\n"; + echo '</table>'."\n"; + + formEnd(); + + } + +?> diff --git a/mayor-orig/www/skin/classic/module-password/html/resetPassword.phtml b/mayor-orig/www/skin/classic/module-password/html/resetPassword.phtml new file mode 100644 index 00000000..038effb6 --- /dev/null +++ b/mayor-orig/www/skin/classic/module-password/html/resetPassword.phtml @@ -0,0 +1,79 @@ +<?php + + function putResetPasswordForm($ADAT) { + + global $POLICIES, $AUTH; + + $toPolicy = $ADAT['policy']; + $userAccount = $ADAT['userAccount']; + + echo '<h1 class="changePassword">'._RESET_PASSWORD.'</h1>'."\n"; + + formBegin(array('action'=>location('index.php?page=password&f=resetPassword'))); + echo '<input type="hidden" name="action" value="resetPassword" />'; + echo '<input type="hidden" name="selector" value="'.$ADAT['selector'].'" />'; + echo '<input type="hidden" name="validator" value="'.$ADAT['validator'].'" />'; + + echo '<table cellspacing="0" cellpadding="1" align="center" class="changePassword">'."\n"; + echo '<thead>'."\n"; + echo '<tr>'."\n"; + echo '<th colspan="3">'."\n"; + echo constant('_'.strtoupper($toPolicy).'_PASSWORD'); + echo '<input type="hidden" name="toPolicy" value="'.$toPolicy.'" />'."\n"; + echo '</th>'."\n"; + echo '</tr>'."\n"; + echo '</thead>'."\n"; + echo '<tfoot>'."\n"; + echo '<tr>'."\n"; + echo '<th colspan="3">'."\n"; + echo '<input type="submit" tabindex="3" name="button" value=" '. _OK .' " + class="submit" />'."\n"; + echo '</th>'."\n"; + echo '</tr>'."\n"; + echo '</tfoot>'."\n"; + echo '<tbody>'."\n"; +/* + echo '<tr>'."\n"; + echo '<td>'."\n"; + echo _USERNAME; + echo '</td>'."\n"; + echo '<td>'."\n"; + echo '<input id="userAccount" type="text" readonly="readonly" tabindex="1" name="userAccount" value="'.$userCn.'" maxlength="32" />'."\n"; + echo '</td>'."\n"; + echo '</tr>'."\n"; +*/ + echo '<tr>'."\n"; + echo '<td>'."\n"; + echo _USERNAME; + echo '</td>'."\n"; + echo '<td>'."\n"; + echo '<input id="userAccount" type="text" readonly="readonly" tabindex="1" name="userAccount" value="'.$userAccount.'" maxlength="32" />'."\n"; + echo '</td>'."\n"; + echo '</tr>'."\n"; + + echo '<tr>'."\n"; + echo '<td>'."\n"; + echo _NEW_PASSWORD; + echo '</td>'."\n"; + echo '<td>'."\n"; + echo '<input id="newPassword" type="password" accesskey="n" tabindex="3" name="newPassword" value="" maxlength="20" />'."\n"; + echo '</td>'."\n"; + echo '</tr>'."\n"; + + echo '<tr>'."\n"; + echo '<td>'."\n"; + echo _VERIFICATION; + echo '</td>'."\n"; + echo '<td>'."\n"; + echo '<input id="verification" type="password" accesskey="v" tabindex="3" name="verification" value="" maxlength="20" />'."\n"; + echo '</td>'."\n"; + echo '</tr>'."\n"; + + echo '</tbody>'."\n"; + echo '</table>'."\n"; + + formEnd(); + + } + +?> diff --git a/mayor-orig/www/skin/classic/module-password/javascript/changeMyPassword.jquery.min.js b/mayor-orig/www/skin/classic/module-password/javascript/changeMyPassword.jquery.min.js new file mode 100644 index 00000000..e672f080 --- /dev/null +++ b/mayor-orig/www/skin/classic/module-password/javascript/changeMyPassword.jquery.min.js @@ -0,0 +1,27 @@ +// $(function() { +// var myPasswordComplex = false; +// $('#changeMyPassword').submit(function() { +// if (myPasswordComplex && ($('#newPassword').val() == $('#verification').val())) this.submit(); +// else return false; +// }); +// var defaultComplexity = { +// minimumChars:7, +// strengthScaleFactor:0.5 +// }; +// $("#newPassword").complexify(defaultComplexity, function (valid, complexity) +// { +// //console.log("Password complexity: " + complexity + " " + valid); +// var progressBar = $('#complexity-bar'); +// //progressBar.toggleClass('progress-bar-success', valid); +// //progressBar.toggleClass('progress-bar-danger', !valid); +// //progressBar.css({'width': complexity + '%'}); +// $('#complexity-bar').text(Math.round(complexity) + '%'); +// myPasswordComplex = valid; +// }); +// }); +// +// // complexify plugin +// !function(a){a.fn.extend({complexify:function(b,c){function h(a,b){for(var c=a.length-1;c>=0;c--)if(b[0]<=a.charCodeAt(c)&&a.charCodeAt(c)<=b[1])return b[1]-b[0]+1;return 0}function i(c){if("strict"===b.banMode){for(var d=0;d<b.bannedPasswords.length;d++)if(-1!==c.toLowerCase().indexOf(b.bannedPasswords[d].toLowerCase()))return!0;return!1}return a.inArray(c,b.bannedPasswords)>-1?!0:!1}function j(){var g=a(this).val(),j=0,k=!1;if(i(g))j=1;else for(var l=f.length-1;l>=0;l--)j+=h(g,f[l]);j=Math.log(Math.pow(j,g.length))*(1/b.strengthScaleFactor),k=j>d&&g.length>=b.minimumChars,j=100*(j/e),j=j>100?100:j,c.call(this,k,j)}var d=49,e=120,f=[[32,32],[48,57],[65,90],[97,122],[33,47],[58,64],[91,96],[123,126],[128,255],[256,383],[384,591],[592,687],[688,767],[768,879],[880,1023],[1024,1279],[1328,1423],[1424,1535],[1536,1791],[1792,1871],[1920,1983],[2304,2431],[2432,2559],[2560,2687],[2688,2815],[2816,2943],[2944,3071],[3072,3199],[3200,3327],[3328,3455],[3456,3583],[3584,3711],[3712,3839],[3840,4095],[4096,4255],[4256,4351],[4352,4607],[4608,4991],[5024,5119],[5120,5759],[5760,5791],[5792,5887],[6016,6143],[6144,6319],[7680,7935],[7936,8191],[8192,8303],[8304,8351],[8352,8399],[8400,8447],[8448,8527],[8528,8591],[8592,8703],[8704,8959],[8960,9215],[9216,9279],[9280,9311],[9312,9471],[9472,9599],[9600,9631],[9632,9727],[9728,9983],[9984,10175],[10240,10495],[11904,12031],[12032,12255],[12272,12287],[12288,12351],[12352,12447],[12448,12543],[12544,12591],[12592,12687],[12688,12703],[12704,12735],[12800,13055],[13056,13311],[13312,19893],[19968,40959],[40960,42127],[42128,42191],[44032,55203],[55296,56191],[56192,56319],[56320,57343],[57344,63743],[63744,64255],[64256,64335],[64336,65023],[65056,65071],[65072,65103],[65104,65135],[65136,65278],[65279,65279],[65280,65519],[65520,65533]],g={minimumChars:8,strengthScaleFactor:1,bannedPasswords:window.COMPLEXIFY_BANLIST||[],banMode:"strict"};return a.isFunction(b)&&!c&&(c=b,b={}),b=a.extend(g,b),this.each(function(){a(this).val()&&j.apply(this)}),this.each(function(){a(this).bind("keyup focus input propertychange mouseup",j)})}})}(jQuery); +// +// -- disabled +
\ No newline at end of file |