WordPress.org

Plugin Directory

Changeset 678683


Ignore:
Timestamp:
03/09/13 13:33:17 (5 years ago)
Author:
xeagle
Message:

added vbsso 1.2.5

Location:
vbsso
Files:
16 added
5 deleted
10 edited

Legend:

Unmodified
Added
Removed
  • vbsso/tags/1.2.3/vbsso.php

    r594566 r678683  
    44Plugin URI: http://www.vbsso.com/platforms/wordpress 
    55Description: Provides universal Secure Single Sign-On between vBulletin and different popular platforms like WordPress. 
    6 Author: Yura Zaplavnov (www.vbsso.com) 
     6Author: www.vbsso.com 
    77Version: 1.2.3 
    88Author URI: http://www.vbsso.com 
  • vbsso/tags/1.2.4/vbsso.php

    r602601 r678683  
    44Plugin URI: http://www.vbsso.com/platforms/wordpress 
    55Description: Provides universal Secure Single Sign-On between vBulletin and different popular platforms like WordPress. 
    6 Author: Yura Zaplavnov (www.vbsso.com) 
     6Author: www.vbsso.com 
    77Version: 1.2.4 
    88Author URI: http://www.vbsso.com 
  • vbsso/trunk/assets/profile-overrides.css

    r594566 r678683  
    44 * via secure Single Sign-On. 
    55 * 
    6  * Copyright (c) 2011-2012 vBSSO. All Rights Reserved. 
     6 * Copyright (c) 2011-2013 vBSSO. All Rights Reserved. 
    77 * This software is the proprietary information of vBSSO. 
    88 * 
     
    1010 * License: GPL version 2 or later - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 
    1111 * ----------------------------------------------------------------------- 
    12  * $Revision: 688 $: 
    13  * $Date: 2012-08-27 21:26:18 +0300 (Пн, 27 авг 2012) $: 
     12 * $Revision: 998 $: 
     13 * $Date: 2013-02-06 19:43:36 +0200 (Ср, 06 фев 2013) $: 
    1414 */ 
    1515 
  • vbsso/trunk/config.custom.default.php

    r594566 r678683  
    55 * via secure Single Sign-On. 
    66 * 
    7  * Copyright (c) 2011-2012 vBSSO. All Rights Reserved. 
     7 * Copyright (c) 2011-2013 vBSSO. All Rights Reserved. 
    88 * This software is the proprietary information of vBSSO. 
    99 * 
     
    1111 * License: GPL version 2 or later - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 
    1212 * ----------------------------------------------------------------------- 
    13  * $Revision: 688 $: 
    14  * $Date: 2012-08-27 21:26:18 +0300 (Пн, 27 авг 2012) $: 
     13 * $Revision: 998 $: 
     14 * $Date: 2013-02-06 19:43:36 +0200 (Ср, 06 фев 2013) $: 
    1515 */ 
    1616 
  • vbsso/trunk/config.php

    r594566 r678683  
    55 * via secure Single Sign-On. 
    66 * 
    7  * Copyright (c) 2011-2012 vBSSO. All Rights Reserved. 
     7 * Copyright (c) 2011-2013 vBSSO. All Rights Reserved. 
    88 * This software is the proprietary information of vBSSO. 
    99 * 
     
    1111 * License: GPL version 2 or later - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 
    1212 * ----------------------------------------------------------------------- 
    13  * $Revision: 688 $: 
    14  * $Date: 2012-08-27 21:26:18 +0300 (Пн, 27 авг 2012) $: 
     13 * $Revision: 998 $: 
     14 * $Date: 2013-02-06 19:43:36 +0200 (Ср, 06 фев 2013) $: 
    1515 */ 
    1616 
  • vbsso/trunk/includes/api.1.0.php

    r602601 r678683  
    55 * via secure Single Sign-On. 
    66 * 
    7  * Copyright (c) 2011-2012 vBSSO. All Rights Reserved. 
     7 * Copyright (c) 2011-2013 vBSSO. All Rights Reserved. 
    88 * This software is the proprietary information of vBSSO. 
    99 * 
     
    1111 * License: GPL version 2 or later - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 
    1212 * ----------------------------------------------------------------------- 
    13  * $Revision: 714 $: 
    14  * $Date: 2012-09-13 13:19:14 +0300 (Чт, 13 сен 2012) $: 
     13 * $Revision: 1005 $: 
     14 * $Date: 2013-02-11 12:06:22 +0200 (Пн, 11 фев 2013) $: 
    1515 */ 
    1616 
    17 define ('VBSSO_WORDPRESS_PLUGIN_VERSION', '1.2.4'); 
    18 if ($wp_version <= '3.0.6') 
     17function vbsso_get_plugin_version() { 
     18    if ( ! function_exists( 'get_plugins' ) ) 
     19        require_once( ABSPATH . 'wp-admin/includes/plugin.php' ); 
     20    $plugin_folder = get_plugins( '/' . plugin_basename( dirname( __FILE__ ) . '/../'  ) ); 
     21    $plugin_file = VBSSO_PRODUCT_ID . '.php'; 
     22    return $plugin_folder[$plugin_file]['Version']; 
     23} 
     24 
     25if (strcmp($wp_version, '3.0.6') <= 0) 
    1926    require_once(ABSPATH . 'wp-includes/registration.php'); 
    2027 
     
    8592 
    8693sharedapi_data_handler(SHAREDAPI_PLATFORM_WORDPRESS, $wp_version, 
    87     VBSSO_WORDPRESS_PLUGIN_VERSION, 
     94    vbsso_get_plugin_version(), 
    8895    get_site_option(VBSSO_NAMED_EVENT_FIELD_API_KEY, SHAREDAPI_DEFAULT_API_KEY), 
    8996    array( 
     
    110117    $user = wp_get_current_user(); // object exists for both guest and authenticated user always. 
    111118 
    112     $u = vbsso_listener_user_load($json, true); 
    113     if (!sharedapi_is_error_data_item($u)) { 
    114         if ($user->ID != $u->ID) { 
    115             vbsso_listener_logout($json); 
    116  
    117             setcookie(VBSSO_NAMED_EVENT_FIELD_TIMEOUT, $json[VBSSO_NAMED_EVENT_FIELD_TIMEOUT], 0, '/', '/'); 
    118  
    119             wp_set_current_user($u->ID); 
    120             wp_set_auth_cookie($u->ID, isset($json[SHAREDAPI_EVENT_FIELD_REMEMBERME]) && $json[SHAREDAPI_EVENT_FIELD_REMEMBERME]); 
    121             do_action('wp_login', $u->user_login); 
    122         } 
    123     } else { 
    124         return array('error' => $u); 
     119    // If current user is logged in and authentication event came from same user, we don't need to auth him again. 
     120    $is_event_from_current_user = false; 
     121    if (is_user_logged_in()) { 
     122        if ( 
     123            (isset($user->user_email) AND $user->user_email == $json[SHAREDAPI_EVENT_FIELD_EMAIL]) OR 
     124            (isset($user->data->user_email) AND $user->data->user_email == $json[SHAREDAPI_EVENT_FIELD_EMAIL]) 
     125        ) { 
     126            $is_event_from_current_user = true; 
     127        } 
     128    } 
     129 
     130    if (!$is_event_from_current_user) { 
     131        $u = vbsso_listener_user_load($json, true); 
     132        if (!sharedapi_is_error_data_item($u)) { 
     133            if ($user->ID != $u->ID) { 
     134                vbsso_listener_logout($json); 
     135 
     136                setcookie(VBSSO_NAMED_EVENT_FIELD_TIMEOUT, $json[SHAREDAPI_EVENT_FIELD_TIMEOUT], 0, '/', '/'); 
     137 
     138                wp_set_current_user($u->ID); 
     139                wp_set_auth_cookie($u->ID, isset($json[SHAREDAPI_EVENT_FIELD_REMEMBERME]) && $json[SHAREDAPI_EVENT_FIELD_REMEMBERME]); 
     140                do_action('wp_login', $u->user_login); 
     141            } 
     142        } else { 
     143            return array('error' => $u); 
     144        } 
    125145    } 
    126146} 
  • vbsso/trunk/includes/sharedapi.php

    r602601 r678683  
    55 * via secure Single Sign-On. 
    66 * 
    7  * Copyright (c) 2011-2012 vBSSO. All Rights Reserved. 
     7 * Copyright (c) 2011-2013 vBSSO. All Rights Reserved. 
    88 * This software is the proprietary information of vBSSO. 
    99 * 
     
    1111 * License: GPL version 2 or later - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 
    1212 * ----------------------------------------------------------------------- 
    13  * $Revision: 729 $: 
    14  * $Date: 2012-09-22 19:15:11 +0300 (Сб, 22 сен 2012) $: 
     13 * $Revision: 1001 $: 
     14 * $Date: 2013-02-06 22:54:17 +0200 (Ср, 06 фев 2013) $: 
    1515 */ 
    1616 
    1717if (!defined('SHAREDAPI')) { 
     18    define ('SHAREDAPI_PRODUCT_VERSION_1_4', '1.4'); 
    1819    define ('SHAREDAPI_PRODUCT_VERSION_1_3', '1.3'); 
    1920    define ('SHAREDAPI_PRODUCT_VERSION_1_2', '1.2'); 
     
    2122    define ('SHAREDAPI_PRODUCT_VERSION_1_0', '1.0'); 
    2223 
    23     define ('SHAREDAPI', SHAREDAPI_PRODUCT_VERSION_1_3); 
     24    define ('SHAREDAPI', SHAREDAPI_PRODUCT_VERSION_1_4); 
    2425 
    2526    define ('SHAREDAPI_PRODUCT_ID', 'sharedapi'); 
     
    5859    define ('SHAREDAPI_EVENT_FIELD_ERROR_DATA', 'data'); 
    5960 
     61    define ('SHAREDAPI_EVENT_FIELD_USERID', 'userid'); 
    6062    define ('SHAREDAPI_EVENT_FIELD_USERNAME', 'username'); 
    6163    define ('SHAREDAPI_EVENT_FIELD_USERNAME2', 'username2'); 
     
    113115    define ('SHAREDAPI_PLATFORM_JOOMLA', 5); 
    114116    define ('SHAREDAPI_PLATFORM_DRUPAL', 6); 
     117    define ('SHAREDAPI_PLATFORM_PRESTASHOP', 7); 
     118    define ('SHAREDAPI_PLATFORM_MAGENTOO', 8); 
     119    define ('SHAREDAPI_PLATFORM_MEDIAWIKI', 9); 
    115120 
    116121    function sharedapi_get_platforms($platform = null) { 
     
    125130                SHAREDAPI_PLATFORM_WORDPRESS => 'WordPress', 
    126131                SHAREDAPI_PLATFORM_JOOMLA => 'Joomla', 
    127                 SHAREDAPI_PLATFORM_DRUPAL => 'Drupal' 
     132                SHAREDAPI_PLATFORM_DRUPAL => 'Drupal', 
     133                SHAREDAPI_PLATFORM_PRESTASHOP => 'Prestashop', 
     134                SHAREDAPI_PLATFORM_MAGENTOO => 'Magentoo', 
     135                SHAREDAPI_PLATFORM_MEDIAWIKI => 'Mediawiki' 
    128136            ); 
    129137        } 
     
    143151                SHAREDAPI_PLATFORM_WORDPRESS => 'wordpress', 
    144152                SHAREDAPI_PLATFORM_JOOMLA => 'joomla', 
    145                 SHAREDAPI_PLATFORM_DRUPAL => 'drupal' 
     153                SHAREDAPI_PLATFORM_DRUPAL => 'drupal', 
     154                SHAREDAPI_PLATFORM_PRESTASHOP => 'prestashop', 
     155                SHAREDAPI_PLATFORM_MAGENTOO => 'magentoo', 
     156                SHAREDAPI_PLATFORM_MEDIAWIKI => 'mediawiki' 
    146157            ); 
    147158        } 
  • vbsso/trunk/includes/vbsso_shared.php

    r594566 r678683  
    55 * via secure Single Sign-On. 
    66 * 
    7  * Copyright (c) 2011-2012 vBSSO. All Rights Reserved. 
     7 * Copyright (c) 2011-2013 vBSSO. All Rights Reserved. 
    88 * This software is the proprietary information of vBSSO. 
    99 * 
     
    1111 * License: GPL version 2 or later - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 
    1212 * ----------------------------------------------------------------------- 
    13  * $Revision: 698 $: 
    14  * $Date: 2012-08-30 11:40:07 +0300 (Чт, 30 авг 2012) $: 
     13 * $Revision: 1001 $: 
     14 * $Date: 2013-02-06 22:54:17 +0200 (Ср, 06 фев 2013) $: 
    1515 */ 
    1616 
     
    1818 
    1919if (!defined('VBSSO_SHARED')) { 
     20    define ('VBSSO_PRODUCT_VERSION_1_4_7', '1.4.7'); 
     21    define ('VBSSO_PRODUCT_VERSION_1_4_6', '1.4.6'); 
    2022    define ('VBSSO_PRODUCT_VERSION_1_4_5', '1.4.5'); 
    2123    define ('VBSSO_PRODUCT_VERSION_1_4_4', '1.4.4'); 
     
    2931    define ('VBSSO_PRODUCT_VERSION_1_0', '1.0'); 
    3032 
    31     define ('VBSSO_SHARED', VBSSO_PRODUCT_VERSION_1_4_5); 
     33    define ('VBSSO_SHARED', VBSSO_PRODUCT_VERSION_1_4_7); 
    3234 
    3335    define ('VBSSO_PRODUCT_ID', 'vbsso'); 
     
    103105    define ('VBSSO_NAMED_EVENT_FIELD_FETCH_AVATARS', SHAREDAPI_NAME_DEFINITION(VBSSO_PRODUCT_ID, 'fetch_avatars')); 
    104106    define ('VBSSO_NAMED_EVENT_FIELD_FETCH_AVATARS_TITLE', 'Fetch and Show vBulletin Avatars'); 
     107 
     108    define ('VBSSO_NAMED_EVENT_FIELD_SHOW_LOGIN_FORM_WIDGET', SHAREDAPI_NAME_DEFINITION(VBSSO_PRODUCT_ID, 'login_form_widget')); 
     109    define ('VBSSO_NAMED_EVENT_FIELD_SHOW_LOGIN_FORM_WIDGET_TITLE', 'Show vBSSO Login Form Widget'); 
     110 
     111    define ('VBSSO_NAMED_EVENT_FIELD_ADMINISTRATOR_ROLE_NAME', SHAREDAPI_NAME_DEFINITION(VBSSO_PRODUCT_ID, 'admin_role_name')); 
     112    define ('VBSSO_NAMED_EVENT_FIELD_ADMINISTRATOR_ROLE_NAME_TITLE', 'Name of Administrator Role'); 
    105113 
    106114    define ('VBSSO_NAMED_EVENT_FIELD_PROFILE_FIELDS', SHAREDAPI_NAME_DEFINITION(VBSSO_PRODUCT_ID, SHAREDAPI_EVENT_FIELD_PROFILE_FIELDS)); 
  • vbsso/trunk/readme.txt

    r602601 r678683  
    44Tags: single sign-on, sign on, authentication, vbulletin, wordpress, mediwiki, joomla, drupal, moodle, interprise shopping cart 
    55Requires at least: 3.0 
    6 Tested up to: 3.4 
    7 Stable tag: 1.2.4 
     6Tested up to: 3.0 - 3.5 
     7Stable tag: 1.2.5 
    88 
    99Provides universal Secure Single Sign-On between vBulletin and different popular platforms like WordPress. 
     
    1111== Description == 
    1212 
    13 = Newer versions are available at http://www.vbsso.com/download = 
     13= Support is available at http://www.vbsso.com only = 
    1414 
    1515Provides universal Single Sign-On feature so that WordPress can use the vBulletin user database to manage authentication 
     
    2727== Installation == 
    2828 
    29 = Newer versions are available at http://www.vbsso.com/download = 
     29= Support is available at http://www.vbsso.com only = 
    3030 
    3131This section describes how to install the plugin and get it working. 
     
    4949== Frequently Asked Questions == 
    5050 
    51 = Newer versions are available at http://www.vbsso.com/download = 
     51= Support is available at http://www.vbsso.com only = 
    5252 
    5353More details are available at http://www.vbsso.com/ 
     
    5555== Screenshots == 
    5656 
    57 = Newer versions are available at http://www.vbsso.com/download = 
     57= Support is available at http://www.vbsso.com only = 
    5858 
    59591. vBSSO Settings. 
     
    6363== Changelog == 
    6464 
    65 = Newer versions are available at http://www.vbsso.com/download = 
     65= Support is available at http://www.vbsso.com only = 
     66 
     67= 1.2.5 = 
     68* Fixed the issue with inability to log out. 
     69* [Updated February 17, 2013] 
    6670 
    6771= 1.2.4 = 
  • vbsso/trunk/vbsso.php

    r602601 r678683  
    44Plugin URI: http://www.vbsso.com/platforms/wordpress 
    55Description: Provides universal Secure Single Sign-On between vBulletin and different popular platforms like WordPress. 
    6 Author: Yura Zaplavnov (www.vbsso.com) 
    7 Version: 1.2.4 
     6Author: www.vbsso.com 
     7Version: 1.2.5 
    88Author URI: http://www.vbsso.com 
    99License: GPL version 2 or later - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 
     
    1717 * via secure Single Sign-On. 
    1818 * 
    19  * Copyright (c) 2011-2012 vBSSO. All Rights Reserved. 
     19 * Copyright (c) 2011-2013 vBSSO. All Rights Reserved. 
    2020 * This software is the proprietary information of vBSSO. 
    2121 * 
     
    2323 * License: GPL version 2 or later - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 
    2424 * ----------------------------------------------------------------------- 
    25  * $Revision: 730 $: 
    26  * $Date: 2012-09-23 08:58:36 +0300 (Вс, 23 сен 2012) $: 
     25 * $Revision: 998 $: 
     26 * $Date: 2013-02-06 19:43:36 +0200 (Ср, 06 фев 2013) $: 
    2727 */ 
    2828 
Note: See TracChangeset for help on using the changeset viewer.