/sprout/Controllers/Admin/MySettingsAdminController.php Highlighted file source
Line 18: use Sprout\Helpers\AdminAuth;
Line 67: Form::setData(AdminAuth::getDetails());
Line 93: $result = AdminAuth::checkPassword($_POST['old_password'], AdminAuth::getId());
Line 121: Pdb::update('operators', $data, ['id' => AdminAuth::getId()]);
Line 124: AdminAuth::changePassword($_POST['password1'], AdminAuth::getId());
Line 141: $operator = Pdb::query($q, [AdminAuth::getLocalId()], 'row');
Line 190: Pdb::update('operators', $data, ['id' => AdminAuth::getLocalId()]);
Line 206: Pdb::update('operators', $data, ['id' => AdminAuth::getLocalId()]);
/sprout/Controllers/Admin/MySettingsAdminController.php Highlighted file source
Line 18: use Sprout\Helpers\AdminAuth;
Line 67: Form::setData(AdminAuth::getDetails());
Line 93: $result = AdminAuth::checkPassword($_POST['old_password'], AdminAuth::getId());
Line 121: Pdb::update('operators', $data, ['id' => AdminAuth::getId()]);
Line 124: AdminAuth::changePassword($_POST['password1'], AdminAuth::getId());
Line 141: $operator = Pdb::query($q, [AdminAuth::getLocalId()], 'row');
Line 190: Pdb::update('operators', $data, ['id' => AdminAuth::getLocalId()]);
Line 206: Pdb::update('operators', $data, ['id' => AdminAuth::getLocalId()]);
/sprout/Controllers/Admin/OperatorAdminController.php Highlighted file source
Line 18: use Sprout\Helpers\AdminAuth;
Line 132: if (!AdminPerms::canEditOperator($item_id) and $item_id != AdminAuth::getId()) {
Line 149: if ($item_id == AdminAuth::getLocalId()) {
Line 247: AdminAuth::changePassword($_POST['password1'], $item_id);
Line 277: if (AdminAuth::hasDatabaseRecord() and $item_id == AdminAuth::getId()) {
Line 302: if (AdminAuth::hasDatabaseRecord() and $item_id == AdminAuth::getId()) {
Line 377: AdminAuth::changePassword($_POST['password1'], $item_id);
Line 405: if ($item_id == AdminAuth::getLocalId()) {
/sprout/Controllers/Admin/OperatorAdminController.php Highlighted file source
Line 18: use Sprout\Helpers\AdminAuth;
Line 132: if (!AdminPerms::canEditOperator($item_id) and $item_id != AdminAuth::getId()) {
Line 149: if ($item_id == AdminAuth::getLocalId()) {
Line 247: AdminAuth::changePassword($_POST['password1'], $item_id);
Line 277: if (AdminAuth::hasDatabaseRecord() and $item_id == AdminAuth::getId()) {
Line 302: if (AdminAuth::hasDatabaseRecord() and $item_id == AdminAuth::getId()) {
Line 377: AdminAuth::changePassword($_POST['password1'], $item_id);
Line 405: if ($item_id == AdminAuth::getLocalId()) {
/sprout/Controllers/Admin/PageAdminController.php Highlighted file source
Line 27: use Sprout\Helpers\AdminAuth;
Line 273: $view->admin_category_options = AdminAuth::getAllCategories();
Line 340: $operator = AdminAuth::getDetails();
Line 475: AdminAuth::checkLogin();
Line 574: AdminAuth::checkLogin();
Line 649: AdminAuth::checkLogin();
Line 669: $operator = AdminAuth::getDetails();
Line 851: $user_id = AdminAuth::getId();
Line 1143: $view->admin_category_options = AdminAuth::getAllCategories();
Line 1228: AdminAuth::checkLogin();
Line 1516: $operator = AdminAuth::getDetails();
Line 1835: AdminAuth::checkLogin();
Line 1894: $operator = AdminAuth::getDetails();
Line 2149: AdminAuth::checkLogin();
Line 2220: AdminAuth::checkLogin();
Line 2302: AdminAuth::checkLogin();
Line 2317: AdminAuth::checkLogin();
Line 2471: if (AdminAuth::isSuper() or Subsites::getConfigAdmin('nav_reorder')) {
Line 2476: if (AdminAuth::isSuper()) {
Line 2506: $details = AdminAuth::getDetails();
Line 2521: AdminAuth::checkLogin();
Line 2734: AdminAuth::checkLogin();
/sprout/Controllers/Admin/PageAdminController.php Highlighted file source
Line 27: use Sprout\Helpers\AdminAuth;
Line 273: $view->admin_category_options = AdminAuth::getAllCategories();
Line 340: $operator = AdminAuth::getDetails();
Line 475: AdminAuth::checkLogin();
Line 574: AdminAuth::checkLogin();
Line 649: AdminAuth::checkLogin();
Line 669: $operator = AdminAuth::getDetails();
Line 851: $user_id = AdminAuth::getId();
Line 1143: $view->admin_category_options = AdminAuth::getAllCategories();
Line 1228: AdminAuth::checkLogin();
Line 1516: $operator = AdminAuth::getDetails();
Line 1835: AdminAuth::checkLogin();
Line 1894: $operator = AdminAuth::getDetails();
Line 2149: AdminAuth::checkLogin();
Line 2220: AdminAuth::checkLogin();
Line 2302: AdminAuth::checkLogin();
Line 2317: AdminAuth::checkLogin();
Line 2471: if (AdminAuth::isSuper() or Subsites::getConfigAdmin('nav_reorder')) {
Line 2476: if (AdminAuth::isSuper()) {
Line 2506: $details = AdminAuth::getDetails();
Line 2521: AdminAuth::checkLogin();
Line 2734: AdminAuth::checkLogin();
/sprout/Controllers/AdminAjaxController.php Highlighted file source
Line 22: use Sprout\Helpers\AdminAuth;
Line 69: AdminAuth::checkLogin();
Line 135: AdminAuth::checkLogin();
Line 163: AdminAuth::checkLogin();
Line 199: AdminAuth::checkLogin();
Line 231: AdminAuth::checkLogin();
Line 239: AdminAuth::checkLogin();
Line 247: AdminAuth::checkLogin();
Line 270: AdminAuth::checkLogin();
Line 312: AdminAuth::checkLogin();
Line 355: AdminAuth::checkLogin();
Line 401: AdminAuth::checkLogin();
Line 414: AdminAuth::checkLogin();
Line 430: AdminAuth::checkLogin();
Line 477: AdminAuth::checkLogin();
/sprout/Controllers/AdminAjaxController.php Highlighted file source
Line 22: use Sprout\Helpers\AdminAuth;
Line 69: AdminAuth::checkLogin();
Line 135: AdminAuth::checkLogin();
Line 163: AdminAuth::checkLogin();
Line 199: AdminAuth::checkLogin();
Line 231: AdminAuth::checkLogin();
Line 239: AdminAuth::checkLogin();
Line 247: AdminAuth::checkLogin();
Line 270: AdminAuth::checkLogin();
Line 312: AdminAuth::checkLogin();
Line 355: AdminAuth::checkLogin();
Line 401: AdminAuth::checkLogin();
Line 414: AdminAuth::checkLogin();
Line 430: AdminAuth::checkLogin();
Line 477: AdminAuth::checkLogin();
/sprout/Controllers/AdminController.php Highlighted file source
Line 31: use Sprout\Helpers\AdminAuth;
Line 113: AdminAuth::checkLogin();
Line 138: AdminAuth::checkLogin();
Line 147: if (AdminAuth::isLoggedIn()) {
Line 194: $result = AdminAuth::checkRateLimit($_POST['Username'], Request::userIp());
Line 203: $result = AdminAuth::processLogin($_POST['Username'], $_POST['Password']);
Line 206: $result = AdminAuth::processRemote($_POST['Username'], $_POST['Password']);
Line 210: $result = AdminAuth::processLocal($_POST['Username'], $_POST['Password']);
Line 213: AdminAuth::saveLoginAttempt($_POST['Username'], Request::userIp(), $result === true ? 1 : 0);
Line 319: if (!AdminAuth::isSuper()) {
Line 320: $cats = Category::categoryList('operators', AdminAuth::getId());
Line 348: AdminAuth::logout();
Line 364: AdminAuth::checkLogin();
Line 392: AdminAuth::checkLogin();
Line 424: AdminAuth::checkLogin();
Line 429: ['id' => AdminAuth::getId()]
Line 443: AdminAuth::checkLogin();
Line 473: AdminAuth::checkLogin();
Line 510: AdminAuth::checkLogin();
Line 547: AdminAuth::checkLogin();
Line 581: AdminAuth::checkLogin();
Line 615: AdminAuth::checkLogin();
Line 649: AdminAuth::checkLogin();
Line 710: AdminAuth::checkLogin();
Line 754: AdminAuth::checkLogin();
Line 796: AdminAuth::checkLogin();
Line 827: AdminAuth::checkLogin();
Line 994: $cat_list = AdminAuth::getAllCategories();
Line 997: $cat_ids = AdminAuth::getOperatorCategories();
Line 1015: $primary_cat_id = AdminAuth::getPrimaryCategoryId();
Line 1024: if (!AdminAuth::inCategory($primary_cat_id)) {
Line 1031: if ($item_id == 0 or AdminAuth::inCategory($primary_cat_id)) {
Line 1036: if (AdminAuth::inCategory($primary_cat_id)) {
Line 1060: AdminAuth::checkLogin();
Line 1176: AdminAuth::checkLogin();
Line 1243: AdminAuth::checkLogin();
Line 1361: AdminAuth::checkLogin();
Line 1424: AdminAuth::checkLogin();
Line 1491: AdminAuth::checkLogin();
Line 1551: AdminAuth::checkLogin();
Line 1663: AdminAuth::checkLogin();
Line 1752: AdminAuth::checkLogin();
Line 1820: AdminAuth::checkLogin();
Line 1882: AdminAuth::checkLogin();
Line 1939: AdminAuth::checkLogin();
Line 1968: AdminAuth::checkLogin();
Line 2115: AdminAuth::checkLogin();
Line 2133: AdminAuth::checkLogin();
Line 2182: $op = AdminAuth::getDetails();
Line 2317: AdminAuth::checkLogin();
/sprout/Controllers/AdminController.php Highlighted file source
Line 31: use Sprout\Helpers\AdminAuth;
Line 113: AdminAuth::checkLogin();
Line 138: AdminAuth::checkLogin();
Line 147: if (AdminAuth::isLoggedIn()) {
Line 194: $result = AdminAuth::checkRateLimit($_POST['Username'], Request::userIp());
Line 203: $result = AdminAuth::processLogin($_POST['Username'], $_POST['Password']);
Line 206: $result = AdminAuth::processRemote($_POST['Username'], $_POST['Password']);
Line 210: $result = AdminAuth::processLocal($_POST['Username'], $_POST['Password']);
Line 213: AdminAuth::saveLoginAttempt($_POST['Username'], Request::userIp(), $result === true ? 1 : 0);
Line 319: if (!AdminAuth::isSuper()) {
Line 320: $cats = Category::categoryList('operators', AdminAuth::getId());
Line 348: AdminAuth::logout();
Line 364: AdminAuth::checkLogin();
Line 392: AdminAuth::checkLogin();
Line 424: AdminAuth::checkLogin();
Line 429: ['id' => AdminAuth::getId()]
Line 443: AdminAuth::checkLogin();
Line 473: AdminAuth::checkLogin();
Line 510: AdminAuth::checkLogin();
Line 547: AdminAuth::checkLogin();
Line 581: AdminAuth::checkLogin();
Line 615: AdminAuth::checkLogin();
Line 649: AdminAuth::checkLogin();
Line 710: AdminAuth::checkLogin();
Line 754: AdminAuth::checkLogin();
Line 796: AdminAuth::checkLogin();
Line 827: AdminAuth::checkLogin();
Line 994: $cat_list = AdminAuth::getAllCategories();
Line 997: $cat_ids = AdminAuth::getOperatorCategories();
Line 1015: $primary_cat_id = AdminAuth::getPrimaryCategoryId();
Line 1024: if (!AdminAuth::inCategory($primary_cat_id)) {
Line 1031: if ($item_id == 0 or AdminAuth::inCategory($primary_cat_id)) {
Line 1036: if (AdminAuth::inCategory($primary_cat_id)) {
Line 1060: AdminAuth::checkLogin();
Line 1176: AdminAuth::checkLogin();
Line 1243: AdminAuth::checkLogin();
Line 1361: AdminAuth::checkLogin();
Line 1424: AdminAuth::checkLogin();
Line 1491: AdminAuth::checkLogin();
Line 1551: AdminAuth::checkLogin();
Line 1663: AdminAuth::checkLogin();
Line 1752: AdminAuth::checkLogin();
Line 1820: AdminAuth::checkLogin();
Line 1882: AdminAuth::checkLogin();
Line 1939: AdminAuth::checkLogin();
Line 1968: AdminAuth::checkLogin();
Line 2115: AdminAuth::checkLogin();
Line 2133: AdminAuth::checkLogin();
Line 2182: $op = AdminAuth::getDetails();
Line 2317: AdminAuth::checkLogin();
/sprout/Controllers/DbToolsController.php Highlighted file source
Line 32: use Sprout\Helpers\AdminAuth;
Line 141: AdminAuth::checkLogin();
Line 142: if (AdminAuth::isSuper() !== true) {
Line 707: AdminAuth::checkLogin();
Line 1321: AdminAuth::checkLogin();
Line 2340: * The username and hash are used by {@see AdminAuth::processLocal}
Line 2365: $users = AdminAuth::injectLocalSuperConf($username, $data[0], $data[2]);
Line 2754: $op = AdminAuth::getDetails();
Line 2943: AdminAuth::checkLogin();
Line 2959: AdminAuth::checkLogin();
/sprout/Controllers/DbToolsController.php Highlighted file source
Line 32: use Sprout\Helpers\AdminAuth;
Line 141: AdminAuth::checkLogin();
Line 142: if (AdminAuth::isSuper() !== true) {
Line 707: AdminAuth::checkLogin();
Line 1321: AdminAuth::checkLogin();
Line 2340: * The username and hash are used by {@see AdminAuth::processLocal}
Line 2365: $users = AdminAuth::injectLocalSuperConf($username, $data[0], $data[2]);
Line 2754: $op = AdminAuth::getDetails();
Line 2943: AdminAuth::checkLogin();
Line 2959: AdminAuth::checkLogin();
/sprout/Controllers/Tinymce4Controller.php Highlighted file source
Line 20: use Sprout\Helpers\AdminAuth;
Line 92: AdminAuth::checkLogin();
Line 126: AdminAuth::checkLogin();
Line 164: AdminAuth::checkLogin();
Line 198: AdminAuth::checkLogin();
Line 246: AdminAuth::checkLogin();
Line 277: AdminAuth::checkLogin();
Line 329: AdminAuth::checkLogin();
Line 382: AdminAuth::checkLogin();
Line 416: AdminAuth::checkLogin();
Line 455: AdminAuth::checkLogin();
Line 489: AdminAuth::checkLogin();
Line 528: AdminAuth::checkLogin();
/sprout/Controllers/Tinymce4Controller.php Highlighted file source
Line 20: use Sprout\Helpers\AdminAuth;
Line 92: AdminAuth::checkLogin();
Line 126: AdminAuth::checkLogin();
Line 164: AdminAuth::checkLogin();
Line 198: AdminAuth::checkLogin();
Line 246: AdminAuth::checkLogin();
Line 277: AdminAuth::checkLogin();
Line 329: AdminAuth::checkLogin();
Line 382: AdminAuth::checkLogin();
Line 416: AdminAuth::checkLogin();
Line 455: AdminAuth::checkLogin();
Line 489: AdminAuth::checkLogin();
Line 528: AdminAuth::checkLogin();
/sprout/Helpers/AdminPerms.php Highlighted file source
Line 85: return array_keys(AdminAuth::getAllCategories());
Line 216: $cats = array_merge($cats, AdminAuth::getOperatorCategories());
Line 221: $admin_id = AdminAuth::getId();
Line 319: $res = Pdb::q($q, [AdminAuth::getId()], 'arr');
Line 374: $res = Pdb::q($q, [AdminAuth::getId()], 'arr');
Line 470: if (! AdminAuth::isLoggedIn()) {
Line 494: return Pdb::q($q, [AdminAuth::getId()], 'map');
Line 503: if (! AdminAuth::isLoggedIn()) {
/sprout/Helpers/AdminPerms.php Highlighted file source
Line 85: return array_keys(AdminAuth::getAllCategories());
Line 216: $cats = array_merge($cats, AdminAuth::getOperatorCategories());
Line 221: $admin_id = AdminAuth::getId();
Line 319: $res = Pdb::q($q, [AdminAuth::getId()], 'arr');
Line 374: $res = Pdb::q($q, [AdminAuth::getId()], 'arr');
Line 470: if (! AdminAuth::isLoggedIn()) {
Line 494: return Pdb::q($q, [AdminAuth::getId()], 'map');
Line 503: if (! AdminAuth::isLoggedIn()) {
/sprout/tests/admin_authTest.php Highlighted file source
Line 14: use Sprout\Helpers\AdminAuth;
Line 37: if (! AdminAuth::checkAlgorithm($alg)) return;
Line 39: list ($a, $b, $c) = AdminAuth::hashPassword('Match', $alg);
Line 40: $result = AdminAuth::doPasswordCheck($a, $b, $c, 'Match');
Line 44: list ($a, $b, $c) = AdminAuth::hashPassword('Match', $alg);
Line 45: $result = AdminAuth::doPasswordCheck($a, $b, $c, 'Do not match');
Line 57: if (! AdminAuth::checkAlgorithm($alg)) return;
Line 58: list ($a1, $b1, $c1) = AdminAuth::hashPassword('Match', $alg);
Line 59: list ($a2, $b2, $c2) = AdminAuth::hashPassword('Match', $alg);
Line 69: $this->assertTrue(AdminAuth::checkAlgorithm(Constants::PASSWORD_SHA_SALT));
Line 70: $this->assertTrue(AdminAuth::checkAlgorithm(Constants::PASSWORD_SHA_SALT_5000));
Line 71: $this->assertFalse(AdminAuth::checkAlgorithm(1234));
/sprout/tests/admin_authTest.php Highlighted file source
Line 14: use Sprout\Helpers\AdminAuth;
Line 37: if (! AdminAuth::checkAlgorithm($alg)) return;
Line 39: list ($a, $b, $c) = AdminAuth::hashPassword('Match', $alg);
Line 40: $result = AdminAuth::doPasswordCheck($a, $b, $c, 'Match');
Line 44: list ($a, $b, $c) = AdminAuth::hashPassword('Match', $alg);
Line 45: $result = AdminAuth::doPasswordCheck($a, $b, $c, 'Do not match');
Line 57: if (! AdminAuth::checkAlgorithm($alg)) return;
Line 58: list ($a1, $b1, $c1) = AdminAuth::hashPassword('Match', $alg);
Line 59: list ($a2, $b2, $c2) = AdminAuth::hashPassword('Match', $alg);
Line 69: $this->assertTrue(AdminAuth::checkAlgorithm(Constants::PASSWORD_SHA_SALT));
Line 70: $this->assertTrue(AdminAuth::checkAlgorithm(Constants::PASSWORD_SHA_SALT_5000));
Line 71: $this->assertFalse(AdminAuth::checkAlgorithm(1234));
A total of 432 lines in 73 files were found