{ font-size:11px; } </style> <?php } ?> <?php if ($primaryTab == MM_MODULE_MEMBER_DETAILS) { ?> <div class="mm-navbar" style="margin-bottom:10px;"> <ul> <li> <?php if ($module == MM_MODULE_USER_DEFINED_PAGES && $user->isValid()) { ?> <a href="<?php echo MM_ModuleUtils::getUrl($crntPage, MM_MODULE_MEMBER_DETAILS_GENERAL); ?> &user_id=<?php echo $user->getId(); ?> "> <i class="fa fa-chevron-left"></i> Back to member details </a> <?php } else { ?> <a href="<?php
public function loginFailed($username) { if (class_exists("MM_CorePageEngine")) { // check if Limit Login Attempts plugin is active $plugins = get_option('active_plugins'); $required_plugin = "limit-login-attempts/limit-login-attempts.php"; $pluginActive = false; if (in_array($required_plugin, $plugins)) { $pluginActive = true; } $errorMsg = "Invalid username or password"; // set login form session parameters MM_Session::value(MM_Session::$KEY_LOGIN_FORM_USERNAME, $username); // check if user ID is set $loginUserId = MM_Session::value(MM_Session::$KEY_LOGIN_FORM_USER_ID); if ($loginUserId !== false) { $loginUser = new MM_User($loginUserId); if ($loginUser->isValid() && $loginUser->getStatus() == MM_Status::$PENDING_ACTIVATION) { $statusMsg = $loginUser->getStatusMessage(); if (!empty($statusMsg)) { $errorMsg = $loginUser->getStatusMessage(); } } } // add limit login attempts messages if ($pluginActive) { $llMsg = limit_login_get_message(); if (!empty($llMsg)) { $errorMsg .= "<br/>{$llMsg}"; } } MM_Messages::addError($errorMsg); if (!defined("DOING_AJAX") || !DOING_AJAX) { switch (MM_OptionUtils::getOption(MM_OptionUtils::$OPTION_KEY_USE_MM_LOGIN_PAGE)) { case 1: wp_redirect(MM_CorePageEngine::getUrl(MM_CorePageType::$LOGIN_PAGE)); break; case 0: default: return $errorMsg; break; } exit; } else { MM_Session::value('redirect_to', MM_CorePageEngine::getUrl(MM_CorePageType::$LOGIN_PAGE)); return true; } } }
<?php /** * * MemberMouse(TM) (http://www.membermouse.com) * (c) MemberMouse, LLC. All rights reserved. */ if (isset($_REQUEST[MM_Session::$PARAM_USER_ID])) { $user = new MM_User($_REQUEST[MM_Session::$PARAM_USER_ID]); if ($user->isValid()) { // check to make sure current employee has access to manage this member global $current_user; $employee = MM_Employee::findByUserId($current_user->ID); $allowAccess = true; if ($employee->isValid()) { $allowAccess = $employee->canManageMember($user); } if ($allowAccess) { include_once MM_MODULES . "/details.header.php"; // prepare data grid $view = new MM_SubscriptionsView(); $dataGrid = new MM_DataGrid($_REQUEST, "date_added", "desc", 10); $data = $view->getViewData($user->getId(), $dataGrid); $rows = $view->generateRows($data, true); $dataGrid->setTotalRecords($data); $dataGrid->recordName = "subscription"; $nextRebillDateInfo = "Next rebill date is only available for subscriptions billed with a card-on-file payment service (i.e. Stripe, Braintree, Authorize.net CIM). When non-card-on-file payment services are used (i.e. PayPal, Authorize.net), the billing schedule is managed on their end so MemberMouse doesn't have access to the next rebill date."; $headers = array('date_added' => array('content' => '<a onclick="mmjs.sort(\'date_added\');" href="#">Start Date</a>', "attr" => "style='width:100px;'"), 'order_item_status' => array('content' => 'Status', "attr" => "style='width:50px;'"), 'access_type_name' => array('content' => 'Associated Access'), 'product_id' => array('content' => 'Product Name'), 'billing_description' => array('content' => 'Billing Description'), 'rebill_date' => array('content' => 'Next Rebill Date' . MM_Utils::getInfoIcon($nextRebillDateInfo), "attr" => "style='width:140px;'"), 'actions' => array('content' => 'Actions', "attr" => "style='width:90px;'")); $dataGrid->setHeaders($headers); $dataGrid->setRows($rows); $dgHtml = $dataGrid->generateHtml();
$user->setEmail($lastParams->mm_new_email); $user->setFirstName($lastParams->mm_new_first_name); $user->setLastName($lastParams->mm_new_last_name); if (isset($lastParams->mm_new_phone)) { $user->setPhone($lastParams->mm_new_phone); } if (isset($lastParams->mm_new_password)) { $user->setPassword($lastParams->mm_new_password); } $result = $user->commitData(); if (MM_Response::isError($result)) { echo "Payment Options Dialog: Error creating pending account for new member: {$result->message}"; exit; } } if (!$user->isValid()) { echo "Payment Options Dialog: Invalid user ID '{$p->userId}'."; exit; } } $membership = null; $bundle = null; $products = array(); if ($p->accessType == MM_AccessControlEngine::$ACCESS_TYPE_MEMBERSHIP) { $membership = new MM_MembershipLevel($p->accessTypeId); if ($membership->isValid()) { $accessName = $membership->getName(); $products = $membership->getProductIds(); } else { echo "Payment Options Dialog: Invalid membership level ID '{$p->accessTypeId}'"; exit;