SproutCMS

This is the code documentation for the SproutCMS project

class AdminAuth

Provides user authentication functions for the admin

Source code (73 results)

/modules/Demo/Controllers/Admin/DemoItemAdminController.php   Highlighted file source

Line 19: use Sprout\Helpers\AdminAuth;
Line 145: AdminAuth::checkLogin();
Line 166: AdminAuth::checkLogin();

/modules/HarborAndSprout/Controllers/HarborController.php   Highlighted file source

Line 9: use Sprout\Helpers\AdminAuth;
Line 77: AdminAuth::checkLogin();
Line 89: AdminAuth::checkLogin();

/modules/Welcome/Controllers/WelcomeController.php   Highlighted file source

Line 23: use Sprout\Helpers\AdminAuth;
Line 501: $users = AdminAuth::injectLocalSuperConf($_SESSION['supeop_config']['user'], $_SESSION['supeop_config']['hash'], $_SESSION['supeop_config']['salt']);
Line 606: $users = AdminAuth::injectLocalSuperConf($_GET['user'], $_GET['hash'], $_GET['salt']);

/skin/default/partials/_google_analytics.php   Highlighted file source

Line 2: use Sprout\Helpers\AdminAuth;
Line 12: } else if (!$analytics_id or AdminAuth::isLoggedIn()) {

/skin/default/partials/_google_analytics.php   Highlighted file source

Line 2: use Sprout\Helpers\AdminAuth;
Line 12: } else if (!$analytics_id or AdminAuth::isLoggedIn()) {

/sprout/Controllers/Admin/CategoryAdminController.php   Highlighted file source

Line 19: use Sprout\Helpers\AdminAuth;
Line 434: AdminAuth::checkLogin();
Line 495: AdminAuth::checkLogin();

/sprout/Controllers/Admin/CategoryAdminController.php   Highlighted file source

Line 19: use Sprout\Helpers\AdminAuth;
Line 434: AdminAuth::checkLogin();
Line 495: AdminAuth::checkLogin();

/sprout/Controllers/Admin/CronJobAdminController.php   Highlighted file source

Line 18: use Sprout\Helpers\AdminAuth;
Line 135: AdminAuth::checkLogin();

/sprout/Controllers/Admin/CronJobAdminController.php   Highlighted file source

Line 18: use Sprout\Helpers\AdminAuth;
Line 135: AdminAuth::checkLogin();

/sprout/Controllers/Admin/ExtraPageAdminController.php   Highlighted file source

Line 16: use Sprout\Helpers\AdminAuth;
Line 212: if (!AdminAuth::isSuper()) {

/sprout/Controllers/Admin/ExtraPageAdminController.php   Highlighted file source

Line 16: use Sprout\Helpers\AdminAuth;
Line 212: if (!AdminAuth::isSuper()) {

/sprout/Controllers/Admin/FileAdminController.php   Highlighted file source

Line 24: use Sprout\Helpers\AdminAuth;
Line 1052: AdminAuth::checkLogin();
Line 1150: if (AdminAuth::isSuper()) {
Line 1193: AdminAuth::checkLogin();
Line 1505: AdminAuth::checkLogin();

/sprout/Controllers/Admin/FileAdminController.php   Highlighted file source

Line 24: use Sprout\Helpers\AdminAuth;
Line 1052: AdminAuth::checkLogin();
Line 1150: if (AdminAuth::isSuper()) {
Line 1193: AdminAuth::checkLogin();
Line 1505: AdminAuth::checkLogin();

/sprout/Controllers/Admin/ListAdminController.php   Highlighted file source

Line 18: use Sprout\Helpers\AdminAuth;
Line 137: AdminAuth::checkLogin();

/sprout/Controllers/Admin/ListAdminController.php   Highlighted file source

Line 18: use Sprout\Helpers\AdminAuth;
Line 137: AdminAuth::checkLogin();

/sprout/Controllers/Admin/ManagedAdminController.php   Highlighted file source

Line 23: use Sprout\Helpers\AdminAuth;
Line 1897: AdminAuth::checkLogin();
Line 1923: AdminAuth::checkLogin();

/sprout/Controllers/Admin/ManagedAdminController.php   Highlighted file source

Line 23: use Sprout\Helpers\AdminAuth;
Line 1897: AdminAuth::checkLogin();
Line 1923: AdminAuth::checkLogin();

/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/Admin/PerRecordPermissionAdminController.php   Highlighted file source

Line 19: use Sprout\Helpers\AdminAuth;
Line 208: $all_cats = AdminAuth::getAllCategories();
Line 209: unset($all_cats[AdminAuth::getPrimaryCategoryId()]);

/sprout/Controllers/Admin/PerRecordPermissionAdminController.php   Highlighted file source

Line 19: use Sprout\Helpers\AdminAuth;
Line 208: $all_cats = AdminAuth::getAllCategories();
Line 209: unset($all_cats[AdminAuth::getPrimaryCategoryId()]);

/sprout/Controllers/Admin/TreeAdminController.php   Highlighted file source

Line 18: use Sprout\Helpers\AdminAuth;
Line 81: if (AdminAuth::isSuper()) {
Line 304: AdminAuth::checkLogin();
Line 415: if (AdminAuth::isSuper()) {

/sprout/Controllers/Admin/TreeAdminController.php   Highlighted file source

Line 18: use Sprout\Helpers\AdminAuth;
Line 81: if (AdminAuth::isSuper()) {
Line 304: AdminAuth::checkLogin();
Line 415: if (AdminAuth::isSuper()) {

/sprout/Controllers/Admin/WorkerJobAdminController.php   Highlighted file source

Line 18: use Sprout\Helpers\AdminAuth;
Line 122: AdminAuth::checkLogin();
Line 170: AdminAuth::checkLogin();

/sprout/Controllers/Admin/WorkerJobAdminController.php   Highlighted file source

Line 18: use Sprout\Helpers\AdminAuth;
Line 122: AdminAuth::checkLogin();
Line 170: 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/ContentSubscribeController.php   Highlighted file source

Line 20: use Sprout\Helpers\AdminAuth;
Line 316: AdminAuth::checkLogin();

/sprout/Controllers/ContentSubscribeController.php   Highlighted file source

Line 20: use Sprout\Helpers\AdminAuth;
Line 316: AdminAuth::checkLogin();

/sprout/Controllers/Controller.php   Highlighted file source

Line 24: use Sprout\Helpers\AdminAuth;
Line 118: $user_details = AdminAuth::getDetails();

/sprout/Controllers/Controller.php   Highlighted file source

Line 24: use Sprout\Helpers\AdminAuth;
Line 118: $user_details = AdminAuth::getDetails();

/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/FileController.php   Highlighted file source

Line 21: use Sprout\Helpers\AdminAuth;
Line 355: AdminAuth::checkLogin();

/sprout/Controllers/FileController.php   Highlighted file source

Line 21: use Sprout\Helpers\AdminAuth;
Line 355: AdminAuth::checkLogin();

/sprout/Controllers/MediaMushController.php   Highlighted file source

Line 18: use Sprout\Helpers\AdminAuth;
Line 34: AdminAuth::checkLogin();

/sprout/Controllers/MediaMushController.php   Highlighted file source

Line 18: use Sprout\Helpers\AdminAuth;
Line 34: AdminAuth::checkLogin();

/sprout/Controllers/PageController.php   Highlighted file source

Line 22: use Sprout\Helpers\AdminAuth;
Line 200: AdminAuth::checkLogin();

/sprout/Controllers/PageController.php   Highlighted file source

Line 22: use Sprout\Helpers\AdminAuth;
Line 200: 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/Admin.php   Highlighted file source

Line 672: if (!AdminAuth::isLoggedIn()) return;
Line 809: $op_id = AdminAuth::getLocalId();
Line 827: $op_id = AdminAuth::getLocalId();
Line 888: $op = AdminAuth::getDetails();

/sprout/Helpers/AdminAuth.php   Highlighted file source

Line 26: class AdminAuth extends Auth
Line 106: if (! AdminAuth::checkAlgorithm($admin['algorithm'])) {
Line 410: // This has not been implemented. See {@see AdminAuth::processRemote} for more info

/sprout/Helpers/AdminDashboard.php   Highlighted file source

Line 53: if (!AdminAuth::hasDatabaseRecord()) {
Line 58: $firstrun = Pdb::query($q, [AdminAuth::getId()], 'val');

/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/Helpers/Cron.php   Highlighted file source

Line 48: AdminAuth::checkLogin();

/sprout/Helpers/PerRecordPerms.php   Highlighted file source

Line 62: $operator_cats = AdminAuth::getOperatorCategories();
Line 121: $all_cat_ids = array_keys(AdminAuth::getAllCategories());
Line 123: $all_cat_ids = AdminAuth::getOperatorCategories();
Line 133: $cat_ids[] = AdminAuth::getPrimaryCategoryId();

/sprout/Helpers/PerRecordPerms.php   Highlighted file source

Line 62: $operator_cats = AdminAuth::getOperatorCategories();
Line 121: $all_cat_ids = array_keys(AdminAuth::getAllCategories());
Line 123: $all_cat_ids = AdminAuth::getOperatorCategories();
Line 133: $cat_ids[] = AdminAuth::getPrimaryCategoryId();

/sprout/Helpers/Register.php   Highlighted file source

Line 360: if (AdminAuth::isSuper()) {

/sprout/Helpers/Register.php   Highlighted file source

Line 360: if (AdminAuth::isSuper()) {

/sprout/Helpers/Skin.php   Highlighted file source

Line 209: if ($unavail and !AdminAuth::isLoggedIn()) {

/sprout/Helpers/SproutVariable.php   Highlighted file source

Line 66: $this->admin = new AdminAuth();

/sprout/Helpers/Subsites.php   Highlighted file source

Line 78: AdminAuth::checkLogin();
Line 97: AdminAuth::checkLogin();
Line 252: AdminAuth::checkLogin();
Line 285: AdminAuth::checkLogin();

/sprout/Helpers/SubsiteSelector.php   Highlighted file source

Line 101: if (! AdminAuth::isLoggedIn()) continue;
Line 118: if (!AdminAuth::isLoggedIn() and PHP_SAPI !== 'cli') {
Line 120: AdminAuth::checkLogin();

/sprout/Helpers/SubsiteSelector.php   Highlighted file source

Line 101: if (! AdminAuth::isLoggedIn()) continue;
Line 118: if (!AdminAuth::isLoggedIn() and PHP_SAPI !== 'cli') {
Line 120: AdminAuth::checkLogin();

/sprout/Helpers/Widgets.php   Highlighted file source

Line 109: if ($orientation != WidgetArea::ORIENTATION_EMAIL and 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));

/sprout/views/admin/extra_page_edit.php   Highlighted file source

Line 18: use Sprout\Helpers\AdminAuth;
Line 29: <?php if (AdminAuth::isSuper()): ?>

/sprout/views/admin/extra_page_edit.php   Highlighted file source

Line 18: use Sprout\Helpers\AdminAuth;
Line 29: <?php if (AdminAuth::isSuper()): ?>

/sprout/views/admin/main_layout.php   Highlighted file source

Line 17: use Sprout\Helpers\AdminAuth;
Line 111: <?php if (AdminAuth::isSuper()): ?>
Line 176: <?php $operator = AdminAuth::getDetails(); ?>
Line 189: <?php if (AdminAuth::hasDatabaseRecord()): ?>

/sprout/views/admin/main_layout.php   Highlighted file source

Line 17: use Sprout\Helpers\AdminAuth;
Line 111: <?php if (AdminAuth::isSuper()): ?>
Line 176: <?php $operator = AdminAuth::getDetails(); ?>
Line 189: <?php if (AdminAuth::hasDatabaseRecord()): ?>

/sprout/views/admin/page_navigation.php   Highlighted file source

Line 21: use Sprout\Helpers\AdminAuth;
Line 29: <?php if (AdminAuth::isSuper()): ?>

/sprout/views/admin/page_navigation.php   Highlighted file source

Line 21: use Sprout\Helpers\AdminAuth;
Line 29: <?php if (AdminAuth::isSuper()): ?>

/sprout/views/admin/tree_organise.php   Highlighted file source

Line 13: use Sprout\Helpers\AdminAuth;
Line 22: echo '<script>admin_auth = {is_remote: ', (AdminAuth::isSuper() ? 'true' : 'false'), '};</script>';

/sprout/views/admin/tree_organise.php   Highlighted file source

Line 13: use Sprout\Helpers\AdminAuth;
Line 22: echo '<script>admin_auth = {is_remote: ', (AdminAuth::isSuper() ? 'true' : 'false'), '};</script>';

A total of 432 lines in 73 files were found