diff options
author | M.Gergo | 2019-03-08 21:20:34 +0100 |
---|---|---|
committer | M.Gergo | 2019-03-08 21:20:34 +0100 |
commit | f51c9ed2abe5c68211bb3736be5f70b1fe2c9ec0 (patch) | |
tree | e13e60e4b94a3b58f1e2bfbe271102c8f04b67bd /mayor-orig/www/policy/private/password | |
parent | c76a004b0135786f2742283f8d5f917106f58bd8 (diff) | |
download | mayor-f51c9ed2abe5c68211bb3736be5f70b1fe2c9ec0.tar.gz mayor-f51c9ed2abe5c68211bb3736be5f70b1fe2c9ec0.zip |
további rendrakás
Diffstat (limited to 'mayor-orig/www/policy/private/password')
-rw-r--r-- | mayor-orig/www/policy/private/password/changePassword-pre.php | 60 | ||||
-rw-r--r-- | mayor-orig/www/policy/private/password/changePassword.php | 9 |
2 files changed, 0 insertions, 69 deletions
diff --git a/mayor-orig/www/policy/private/password/changePassword-pre.php b/mayor-orig/www/policy/private/password/changePassword-pre.php deleted file mode 100644 index 08731581..00000000 --- a/mayor-orig/www/policy/private/password/changePassword-pre.php +++ /dev/null @@ -1,60 +0,0 @@ -<?php -/* - Module: base/password - - Ez még teljesen kiforratlan! - Csak átmásoltam a public-ból, és elkezdtem átírni... -*/ - - if (_RIGHTS_OK !== true) die(); - - $toPolicy = readVariable($_POST['toPolicy'], 'enum', readVariable($_GET['toPolicy'], 'enum', _POLICY, $POLICIES), $POLICIES); - - // Itt csak a private policy jelszavát lehet módosítani -// $toPolicy = 'private'; - $userAccount = readVariable($_REQUEST['userAccount'], 'emptystringnull'); - - // Ha saját jelszavát szeretné változtatni, akkor átirányítjuk oda - if ($userAccount == _USERACCOUNT) { - header('Location: '.location('index.php?policy=public&page=password&f=changePassword&toPolicy='.$toPolicy,array('lang','skin','sessionID'))); - exit; - } - - // Jogosultság ellenőrzés - if ( - memberOf(_USERACCOUNT, $AUTH[_POLICY]['adminGroup']) or - (memberOf($userAccount,'diák') and memberOf(_USERACCOUNT,'diakadmin')) - ) { - - // Az elküldött név+jelszó ellenőrzése - if ($action == 'changePassword') { - - if (file_exists('include/backend/'.$AUTH[$toPolicy]['backend'].'/password/changePassword.php')) { - require('include/backend/'.$AUTH[$toPolicy]['backend'].'/password/changePassword.php'); - } - - $newPassword = readVariable($_POST['newPassword'], 'emptystringnull'); - $verification = readVariable($_POST['verification'], 'emptystringnull'); - - if ($verification == '' or $newPassword == '') { - $_SESSION['alert'][] = 'message:empty_field'; - } elseif ($verification != $newPassword) { - $_SESSION['alert'][] = 'message:pw_not_match'; - } else { - - if (changePassword($userAccount, $newPassword, $toPolicy)) { - // Módosítsuk a bejelentkezett user eltárolt jelszavát? - hagyjuk inkább... legalább látja, hogy változott valami... - // updateSessionPassword($userAccount, $toPolicy, $verification); - } else { - $_SESSION['alert'][] = 'message:pw_change_failed'; - } - - } - - } // action - - } else { - $_SESSION['alert'][] = 'page:insufficient_access'; - } - -?> diff --git a/mayor-orig/www/policy/private/password/changePassword.php b/mayor-orig/www/policy/private/password/changePassword.php deleted file mode 100644 index f95661e0..00000000 --- a/mayor-orig/www/policy/private/password/changePassword.php +++ /dev/null @@ -1,9 +0,0 @@ -<?php - - if (_RIGHTS_OK !== true) die(); - - global $userAccount, $toPolicy; - - putChangePasswordForm($userAccount, $toPolicy, true); // rögzített policy - -?> |