From: Chuck Scott Date: Mon, 9 May 2016 21:19:01 +0000 (-0400) Subject: Removed log-in tampering X-Git-Tag: v1.0.8^2~5 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=ac89462301455ef2e5aaedbd56195c2f69c41f57;p=WP-Plugins%2Fglm-member-db-contacts.git Removed log-in tampering --- diff --git a/index.php b/index.php index eda15a1..4b2c6e0 100644 --- a/index.php +++ b/index.php @@ -186,7 +186,7 @@ require_once(GLM_MEMBERS_CONTACTS_PLUGIN_SETUP_PATH.'/permissions.php'); */ $wpUserID = get_current_user_id(); - +/* // Message to display on Login page after a forced logout detection function glmMembersContactsNoLoginMessage( $message ) { $message .= " @@ -204,7 +204,7 @@ if (isset($_COOKIE['glmMembersForcedLogout'])) { add_filter('login_message', 'glmMembersContactsNoLoginMessage'); setcookie ("glmMembersForcedLogout", "", time() - 3600); } - +*/ if ($wpUserID) { // Check if user's only role is as a restricted contact @@ -224,11 +224,12 @@ if ($wpUserID) { } + /* * Add filter to redirect user to a particular destination on * login based on their roles. */ - +/* function my_login_redirect( $redirect_to, $request, $user ) { global $user; @@ -255,6 +256,6 @@ function my_login_redirect( $redirect_to, $request, $user ) { } add_filter( 'login_redirect', 'my_login_redirect', 10, 3 ); - +*/ ?> \ No newline at end of file