403Webshell
Server IP : 104.26.2.156  /  Your IP : 216.73.216.185
Web Server : nginx/1.27.1
System : Linux us-1 5.15.0-131-generic #141-Ubuntu SMP Fri Jan 10 21:18:28 UTC 2025 x86_64
User : vinodai ( 3134)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /storage/v1396/woofsite3/public_html/wp-content/plugins/nextend-facebook-connect/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /storage/v1396/woofsite3/public_html/wp-content/plugins/nextend-facebook-connect/compat.php
<?php


class NextendSocialLoginCompatibility {

    public function __construct() {
        add_action('after_setup_theme', array(
            $this,
            'after_setup_theme'
        ), 11);

        add_action('wp_head', array(
            $this,
            'wplms_hide_duplicate_buttons'
        ), 10);

    }

    public function after_setup_theme() {
        global $pagenow;

        /** Compatibility fix for Socialize theme @SEE https://themeforest.net/item/socialize-multipurpose-buddypress-theme/12897637 */
        if (function_exists('ghostpool_login_redirect')) {
            if ('wp-login.php' === $pagenow && !empty($_GET['loginSocial'])) {
                /** If the action not removed, then the wp-login.php always redirected to {siteurl}/#login/ and it break social login */
                remove_action('init', 'ghostpool_login_redirect');
            }
        }
    }

    public function wplms_hide_duplicate_buttons() {
        if (class_exists('vibe_bp_login', false)) {
            echo "<style>
                /**
                    WPLMS triggers the same hook twice in the same form -> Hide duplicated social buttons.
                 */
                div#vibe_bp_login div#nsl-custom-login-form-2{
                    display:none;
                }
            </style>
        ";
        }
    }
}

new NextendSocialLoginCompatibility();

Youez - 2016 - github.com/yon3zu
LinuXploit