Plugin Directory

Changeset 1011553


Ignore:
Timestamp:
10/21/2014 03:22:47 PM (11 years ago)
Author:
miled
Message:

wsl 2.2.3-rc.2

Location:
wordpress-social-login
Files:
4 added
10 edited

Legend:

Unmodified
Added
Removed
  • wordpress-social-login/trunk/includes/admin/wsl.admin.ui.php

    r1010987 r1011553  
    2626    do_action( "wsl_admin_main_start" );
    2727
    28     if ( ! wsl_check_requirements() )
     28    if ( ! current_user_can('manage_options') )
     29    {
     30        wp_die( 'You do not have sufficient permissions to access this page.' );
     31    }
     32
     33    if( ! wsl_check_requirements() )
    2934    {
    3035        wsl_admin_ui_fail();
     
    168173    ?>
    169174
    170     <h1>
     175    <h1 <?php if( is_rtl() ) echo 'style="margin: 20px 0;"'; ?>>
    171176        <?php _wsl_e( 'WordPress Social Login', 'wordpress-social-login' ) ?>
    172177
     
    181186                if( $settings["enabled"] && ( $settings["visible"] || $wslp == $name ) )
    182187                {
    183                     ?><a class="nav-tab <?php if( $wslp == $name ) echo "nav-tab-active"; ?>" <?php if( isset( $settings["pull-right"] ) && $settings["pull-right"] ) echo 'style="float:right"'; ?> href="options-general.php?page=wordpress-social-login&wslp=<?php echo $name ?>"><?php if( isset( $settings["ico"] ) ) echo '<img style="margin: 0px; padding: 0px; border: 0px none;width: 16px; height: 16px;" src="' . WORDPRESS_SOCIAL_LOGIN_PLUGIN_URL . '/assets/img/' . $settings["ico"] . '" />'; else echo $settings["label"]; ?></a><?php
     188                    if( isset( $settings["pull-right"] ) && $settings["pull-right"] )
     189                    {
     190                        $css_pull_right = "float:right";
     191
     192                        if( is_rtl() )
     193                        {
     194                            $css_pull_right = "float:left";
     195                        }
     196                    }
     197
     198                    ?><a class="nav-tab <?php if( $wslp == $name ) echo "nav-tab-active"; ?>" style="<?php echo $css_pull_right; ?>" href="options-general.php?page=wordpress-social-login&wslp=<?php echo $name ?>"><?php if( isset( $settings["ico"] ) ) echo '<img style="margin: 0px; padding: 0px; border: 0px none;width: 16px; height: 16px;" src="' . WORDPRESS_SOCIAL_LOGIN_PLUGIN_URL . '/assets/img/' . $settings["ico"] . '" />'; else _wsl_e( $settings["label"], 'wordpress-social-login' ); ?></a><?php
    184199                }
    185200            }
     
    265280?>
    266281<div class="wsl-container">
    267     <h1><?php _e("WordPress Social Login - FAIL!", 'wordpress-social-login') ?></h1>
    268 
    269     <hr />
    270 
    271     <p>
    272         <?php _e('Despite the efforts, put into <b>WordPress Social Login</b> in terms of reliability, portability, and maintenance by this plugin <a href="http://profiles.wordpress.org/miled/" target="_blank">author</a> and <a href="https://github.com/hybridauth/WordPress-Social-Login/graphs/contributors" target="_blank">contributors</a>', 'wordpress-social-login') ?>.
    273         <b style="color:red;"><?php _e('Your server failed the requirements check for this plugin', 'wordpress-social-login') ?>.</b>
    274     </p>
    275 
    276     <p>
    277         <?php _e('These requirements are usually met by default by most "modern" web hosting providers, however some complications may occur with <b>shared hosting</b> and, or <b>custom wordpress installations</b>', 'wordpress-social-login') ?>.
    278     </p>
    279 
    280     <p>
    281         <?php _wsl_e("The minimum server requirements are", 'wordpress-social-login') ?>:
    282     </p>
    283 
    284     <ul style="margin-left:60px;">
    285         <li><?php _wsl_e("PHP >= 5.2.0 installed", 'wordpress-social-login') ?></li>
    286         <li><?php _wsl_e("WSL Endpoint URLs reachable", 'wordpress-social-login') ?></li>
    287         <li><?php _wsl_e("PHP's default SESSION handling", 'wordpress-social-login') ?></li>
    288         <li><?php _wsl_e("PHP/CURL/SSL Extension enabled", 'wordpress-social-login') ?></li>
    289         <li><?php _wsl_e("PHP/JSON Extension enabled", 'wordpress-social-login') ?></li>
    290         <li><?php _wsl_e("PHP/REGISTER_GLOBALS Off", 'wordpress-social-login') ?></li>
    291         <li><?php _wsl_e("jQuery installed on WordPress backoffice", 'wordpress-social-login') ?></li>
    292     </ul>
     282        <div style="background: none repeat scroll 0 0 #fff;border: 1px solid #e5e5e5;box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);padding:20px;">
     283            <h1><?php _e("WordPress Social Login - FAIL!", 'wordpress-social-login') ?></h1>
     284
     285            <hr />
     286
     287            <p>
     288                <?php _e('Despite the efforts, put into <b>WordPress Social Login</b> in terms of reliability, portability, and maintenance by the plugin <a href="http://profiles.wordpress.org/miled/" target="_blank">author</a> and <a href="https://github.com/hybridauth/WordPress-Social-Login/graphs/contributors" target="_blank">contributors</a>', 'wordpress-social-login') ?>.
     289                <b style="color:red;"><?php _e('Your server failed the requirements check for this plugin', 'wordpress-social-login') ?>:</b>
     290            </p>
     291
     292            <p>
     293                <?php _e('These requirements are usually met by default by most "modern" web hosting providers, however some complications may occur with <b>shared hosting</b> and, or <b>custom wordpress installations</b>', 'wordpress-social-login') ?>.
     294            </p>
     295
     296            <p>
     297                <?php _wsl_e("The minimum server requirements are", 'wordpress-social-login') ?>:
     298            </p>
     299
     300            <ul style="margin-left:60px;">
     301                <li><?php _wsl_e("PHP >= 5.2.0 installed", 'wordpress-social-login') ?></li>
     302                <li><?php _wsl_e("WSL Endpoint URLs reachable", 'wordpress-social-login') ?></li>
     303                <li><?php _wsl_e("PHP's default SESSION handling", 'wordpress-social-login') ?></li>
     304                <li><?php _wsl_e("PHP/CURL/SSL Extension enabled", 'wordpress-social-login') ?></li>
     305                <li><?php _wsl_e("PHP/JSON Extension enabled", 'wordpress-social-login') ?></li>
     306                <li><?php _wsl_e("PHP/REGISTER_GLOBALS Off", 'wordpress-social-login') ?></li>
     307                <li><?php _wsl_e("jQuery installed on WordPress backoffice", 'wordpress-social-login') ?></li>
     308            </ul>
     309        </div>
     310
     311<?php
     312    include_once( WORDPRESS_SOCIAL_LOGIN_ABS_PATH . '/includes/admin/components/tools/wsl.components.tools.actions.job.php' );
     313
     314    wsl_component_tools_do_diagnostics();
     315?>
    293316</div>
    294 
     317<style>.wsl-container .button-secondary { display:none; }</style>
    295318<?php
    296319    // HOOKABLE:
     
    333356-->
    334357<div id="wsl-w-panel">
    335     <a href="options-general.php?page=wordpress-social-login&wslp=<?php echo $wslp ?>&wsldwp=1" id="wsl-w-panel-dismiss"><?php _e("Dismiss", 'wordpress-social-login') ?></a>
     358    <a href="options-general.php?page=wordpress-social-login&wslp=<?php echo $wslp ?>&wsldwp=1" id="wsl-w-panel-dismiss" <?php if( is_rtl() ) echo 'style="left: 10px;right: auto;"'; ?>><?php _e("Dismiss", 'wordpress-social-login') ?></a>
    336359   
    337360    <table width="100%" border="0" style="margin:0;padding:0;">
  • wordpress-social-login/trunk/includes/services/wsl.utilities.php

    r1010987 r1011553  
    119119    }
    120120
    121     // Remove standard ports
     121    //Remove standard ports
    122122    $request_port = (!in_array($request_port, array (80, 443)) ? $request_port : '');
    123123
    124124    //Build url
    125125    $current_url = $request_protocol . '://' . $request_host . ( ! empty ($request_port) ? (':'.$request_port) : '') . $request_uri;
     126
     127    // overwrite all the above if ajax
     128    if( strpos( $current_url, 'admin-ajax.php') && isset( $_SERVER ['HTTP_REFERER'] ) && $_SERVER ['HTTP_REFERER'] )
     129    {
     130        $current_url = $_SERVER ['HTTP_REFERER'];
     131    }
    126132
    127133    // HOOKABLE:
  • wordpress-social-login/trunk/includes/settings/wsl.initialization.php

    r1010987 r1011553  
    6565    "buddypress"   => array( "label" => __("BuddyPress"    , 'wordpress-social-login') , "visible" => true  , "component" => "buddypress"    ),
    6666
    67     "watchdog"     => array( "label" => __("Log viewer"    , 'wordpress-social-login') , "visible" => false , "component" => "core"           , "pull-right" => true , 'ico' => 'debug.png'      ), 
    68     "help"         => array( "label" => __('?'             , 'wordpress-social-login') , "visible" => true  , "component" => "core"           , "pull-right" => true , 'ico' => 'help.png'       ),
    69     "tools"        => array( "label" => __("Tools"         , 'wordpress-social-login') , "visible" => true  , "component" => "core"           , "pull-right" => true , 'ico' => 'tools.png'      ), 
    70     "components"   => array( "label" => __("Components"    , 'wordpress-social-login') , "visible" => true  , "component" => "core"           , "pull-right" => true , 'ico' => 'components.png' ), 
     67    "watchdog"     => array( "label" => __("Log viewer"    , 'wordpress-social-login') , "visible" => false , "component" => "core"           , "pull-right" => true , 'ico' => 'debug.png'      ),
     68    "help"         => array( "label" => __('Help'          , 'wordpress-social-login') , "visible" => true  , "component" => "core"           , "pull-right" => true , 'ico' => 'help.png'       ),
     69    "tools"        => array( "label" => __("Tools"         , 'wordpress-social-login') , "visible" => true  , "component" => "core"           , "pull-right" => true , 'ico' => 'tools.png'      ),
     70    "components"   => array( "label" => __("Components"    , 'wordpress-social-login') , "visible" => true  , "component" => "core"           , "pull-right" => true , 'ico' => 'components.png' ),
    7171);
    7272
     
    104104    $config = array();
    105105
    106     $config["type"]       = "addon"; // < force to addon
    107106    $config["component"]  = $component;
    108107    $config["label"]      = $label;
  • wordpress-social-login/trunk/includes/widgets/wsl.auth.widget.php

    r1010987 r1011553  
    269269add_action( 'bp_before_account_details_fields', 'wsl_render_wsl_widget_in_wp_login_form' );
    270270add_action( 'bp_before_sidebar_login_form'    , 'wsl_render_wsl_widget_in_wp_login_form' );
     271add_action( 'edd_checkout_login_fields_after' , 'wsl_render_wsl_widget_in_wp_login_form' );
     272add_action( 'wppb_before_login'               , 'wsl_render_wsl_widget_in_wp_login_form' );
    271273
    272274// --------------------------------------------------------------------
  • wordpress-social-login/trunk/wp-social-login.php

    r1010987 r1011553  
    44Plugin URI: http://miled.github.io/wordpress-social-login/
    55Description: Allow your visitors to comment and login with social networks such as Twitter, Facebook, Google, Yahoo and more.
    6 Version: 2.2.3-rc.1
     6Version: 2.2.3-rc.2
    77Author: Miled
    88Author URI: https://github.com/miled
     
    186186
    187187# WSL Settings
    188 require_once( dirname(__FILE__) . '/includes/settings/wsl.providers.php'            ); // List of provider supported by WSL (provided by hybridauth library)
    189 require_once( dirname(__FILE__) . '/includes/settings/wsl.database.php'             ); // Functions & utilities related to WSL database installation and migrations
    190 require_once( dirname(__FILE__) . '/includes/settings/wsl.initialization.php'       ); // Check WSL requirements and register WSL settings
    191 require_once( dirname(__FILE__) . '/includes/settings/wsl.compatibilities.php'      ); // Check and upgrade WSL database/settings (for older WSL versions)
     188require_once( WORDPRESS_SOCIAL_LOGIN_ABS_PATH . '/includes/settings/wsl.providers.php'            ); // List of provider supported by WSL (provided by hybridauth library)
     189require_once( WORDPRESS_SOCIAL_LOGIN_ABS_PATH . '/includes/settings/wsl.database.php'             ); // Functions & utilities related to WSL database installation and migrations
     190require_once( WORDPRESS_SOCIAL_LOGIN_ABS_PATH . '/includes/settings/wsl.initialization.php'       ); // Check WSL requirements and register WSL settings
     191require_once( WORDPRESS_SOCIAL_LOGIN_ABS_PATH . '/includes/settings/wsl.compatibilities.php'      ); // Check and upgrade WSL database/settings (for older WSL versions)
    192192
    193193# Services & Utilities
    194 require_once( dirname(__FILE__) . '/includes/services/wsl.authentication.php'       ); // Authenticate users via social networks. <- that's the most important script.
    195 require_once( dirname(__FILE__) . '/includes/services/wsl.mail.notification.php'    ); // Emails and notifications.
    196 require_once( dirname(__FILE__) . '/includes/services/wsl.user.avatar.php'          ); // Displaying the user avatar when available on the comment section
    197 require_once( dirname(__FILE__) . '/includes/services/wsl.user.data.php'            ); // User data functions (database related)
    198 require_once( dirname(__FILE__) . '/includes/services/wsl.utilities.php'            ); // Few utilities and functions
    199 require_once( dirname(__FILE__) . '/includes/services/wsl.watchdog.php'             ); // Logging agent
     194require_once( WORDPRESS_SOCIAL_LOGIN_ABS_PATH . '/includes/services/wsl.authentication.php'       ); // Authenticate users via social networks. <- that's the most important script.
     195require_once( WORDPRESS_SOCIAL_LOGIN_ABS_PATH . '/includes/services/wsl.mail.notification.php'    ); // Emails and notifications.
     196require_once( WORDPRESS_SOCIAL_LOGIN_ABS_PATH . '/includes/services/wsl.user.avatar.php'          ); // Displaying the user avatar when available on the comment section
     197require_once( WORDPRESS_SOCIAL_LOGIN_ABS_PATH . '/includes/services/wsl.user.data.php'            ); // User data functions (database related)
     198require_once( WORDPRESS_SOCIAL_LOGIN_ABS_PATH . '/includes/services/wsl.utilities.php'            ); // Few utilities and functions
     199require_once( WORDPRESS_SOCIAL_LOGIN_ABS_PATH . '/includes/services/wsl.watchdog.php'             ); // Logging agent
    200200
    201201# WSL Widget and GUIs generators
    202 require_once( dirname(__FILE__) . '/includes/widgets/wsl.auth.widget.php'           ); // Authentication widget generators (where WSL widget/icons are displayed)
    203 require_once( dirname(__FILE__) . '/includes/widgets/wsl.complete.registration.php' ); // Force users to complete their profile after they register.
    204 require_once( dirname(__FILE__) . '/includes/widgets/wsl.account.linking.php'       ); // Planned for WSL 2.3.
    205 require_once( dirname(__FILE__) . '/includes/widgets/wsl.error.pages.php'           ); // Generate WSL notices end errors pages.
    206 require_once( dirname(__FILE__) . '/includes/widgets/wsl.loading.screens.php'       ); // Generate WSL loading screens.
     202require_once( WORDPRESS_SOCIAL_LOGIN_ABS_PATH . '/includes/widgets/wsl.auth.widget.php'           ); // Authentication widget generators (where WSL widget/icons are displayed)
     203require_once( WORDPRESS_SOCIAL_LOGIN_ABS_PATH . '/includes/widgets/wsl.complete.registration.php' ); // Force users to complete their profile after they register.
     204require_once( WORDPRESS_SOCIAL_LOGIN_ABS_PATH . '/includes/widgets/wsl.account.linking.php'       ); // Planned for WSL 2.3.
     205require_once( WORDPRESS_SOCIAL_LOGIN_ABS_PATH . '/includes/widgets/wsl.error.pages.php'           ); // Generate WSL notices end errors pages.
     206require_once( WORDPRESS_SOCIAL_LOGIN_ABS_PATH . '/includes/widgets/wsl.loading.screens.php'       ); // Generate WSL loading screens.
    207207
    208208# WSL Admin UI
    209209if( is_admin() )
    210210{
    211     require_once( dirname(__FILE__) . '/includes/admin/wsl.admin.ui.php'        ); // The entry point to WSL Admin interfaces
     211    require_once( WORDPRESS_SOCIAL_LOGIN_ABS_PATH . '/includes/admin/wsl.admin.ui.php'        ); // The entry point to WSL Admin interfaces
    212212}
    213213
Note: See TracChangeset for help on using the changeset viewer.