GRAYBYTE WORDPRESS FILE MANAGER3045

Server IP : 68.65.123.43 / Your IP : 216.73.216.162
System : Linux server266.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
PHP Version : 8.0.30
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /home/inteuuod/public_html/wp-content/plugins/userswp/includes/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/inteuuod/public_html/wp-content/plugins/userswp/includes//class-notices.php
<?php
/**
 * UsersWP Notice display functions.
 *
 * All UsersWP notice display related functions can be found here.
 *
 * @since      1.0.0
 * @author     GeoDirectory Team <info@wpgeodirectory.com>
 */
class UsersWP_Notices {

    /**
     *  Displays notices when registration disabled.
     *
     * @since       1.0.0
     * @package     userswp
     * @return      void
     */
    function display_registration_disabled_notice($type) {
        if ($type == 'register') {
            if (!get_option('users_can_register')) {
                echo aui()->alert(array( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
                        'class' => 'text-center',
                        'type'=>'danger',
                        'heading'  => esc_attr__( 'Heads Up!', 'userswp' ),
                        'content'=> esc_attr__( 'User registration is currently not allowed.', 'userswp' )
                    )
                );
            }
        }
    }
    
    /**
     * Displays noticed based on notice key.
     * 
     * @param string $type
     * @param bool $echo
     *
     * @return string
     */
    public function form_notice_by_key($type = '', $echo = true, $user_id = 0) {
        $key = isset($_REQUEST['uwp_err']) ? sanitize_html_class($_GET['uwp_err']) : $type;
	    $user_id = isset($_REQUEST['user_id']) ? absint($_REQUEST['user_id']) : $user_id;
        $messages = array();
        $notice = $link = '';

        $messages['act_success'] = array(
            'message' => __('Account activated successfully. Please login to continue.', 'userswp'),
            'type' => 'success',
        );

	    if(isset($user_id) && !empty($user_id)){
		    $resend_link = uwp_get_login_page_url();
		    $resend_link = add_query_arg(
			    array(
				    'user_id' => $user_id,
				    'action'  => 'uwp_resend',
				    '_nonce'  => wp_create_nonce('uwp_resend'),
			    ),
			    $resend_link
		    );

		    $link = "<a href='".esc_url_raw($resend_link)."' >".__('Resend', 'userswp')."</a>";
	    }

	    $messages['act_email_success'] = array(
		    'message' => __('Email updated successfully.', 'userswp'),
		    'type' => 'success',
	    );

        $messages['act_pending'] = array(
            'message' => __('Your account is not activated yet. Please check your email for activation email.', 'userswp').$link,
            'type' => 'error',
        );
        $messages['act_error'] = array(
            'message' => __('Invalid activation key or account.', 'userswp'),
            'type' => 'error',
        );
        $messages['act_wrong'] = array(
            'message' => __('Invalid activation key or account.', 'userswp'),
            'type' => 'error',
        );

        $messages = apply_filters('uwp_form_error_messages', $messages, $echo, $user_id );

        if (!empty($key) && isset($messages[$key])) {
            $value = $messages[$key];
            $message = $value['message'];
            $type = $value['type'];
	        $notice = aui()->alert(array(
			        'type'=> $type,
			        'content'=> $message
		        )
	        );

        }

        if($notice && $echo){
            echo $notice; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
        }else{
            return $notice;
        }

    }

    public function show_admin_notices() {
        settings_errors( 'uwp-notices' );

        include_once dirname( __FILE__ ) . '/class-uwp-background-updater.php';
        $updater = new UsersWP_Background_Updater();
        if ( $updater->is_updating() || ! empty( $_GET['force_sync_data'] ) ) {
            ?>
            <div id="message" class="updated notice notice-alt uwp-message">
                <p><strong><?php esc_attr_e( 'UsersWP data sync', 'userswp' ); ?></strong> &#8211; <?php esc_attr_e( 'Users data sync is running in the background.', 'userswp' ); ?> <a href="<?php echo esc_url( add_query_arg( array( 'force_sync_data' => 'true', '_nonce' => wp_create_nonce( 'force_sync_data' ) ), admin_url( 'admin.php?page=userswp' ) ) ); ?>"><?php esc_attr_e( 'Taking a while? Click here to run it now.', 'userswp' ); ?></a></p>
            </div>
            <?php
        }
    }

	/**
	 * Displays admin side notice to try Bootstrap layout
	 *
	 * @since       2.0.0
	 * @package     userswp
	 *
	 * @return      void
	 */
    public static function try_bootstrap(){
        $show = get_option("uwp_notice_try_bootstrap");
        if( $show && uwp_get_option('design_style','bootstrap') != 'bootstrap'){
            $settings_link = admin_url("admin.php?page=userswp&tab=general&section=developer&try-bootstrap=true");
            // set the setting on the fly if set to do so
            if(is_admin() && current_user_can( 'manage_options' )  && isset($_REQUEST['page']) && $_REQUEST['page']=='userswp' && !empty($_REQUEST['try-bootstrap']) ){
                uwp_update_option('design_style','bootstrap');
                ?>
                <div class="notice notice-success">
                    <p><strong>UsersWP - </strong><?php esc_attr_e( 'Congratulations your site is now set to use the new Bootstrap styles!', 'userswp' ); ?></p>
                </div>
                <?php
            }else{
            ?>
            <div class="notice notice-info is-dismissible uwp-notice-try-bootstrap">
                <p><strong>UsersWP - </strong><?php esc_attr_e( 'Try our exciting new bootstrap styling for a more modern and clean look (switch back at any time).', 'userswp' ); ?>
                    <a href="<?php echo esc_url_raw( $settings_link );?>" class="button button-primary"><?php esc_attr_e( 'Try Now', 'userswp' ); ?></a>
                </p>
            </div>
                <script>
                    jQuery(function() {
                        setTimeout(function(){
                            jQuery('.uwp-notice-try-bootstrap .notice-dismiss').click(function(){
                                jQuery.post("<?php echo esc_url( admin_url("admin-ajax.php?action=uwp_notice_clear_try_bootstrap")); ?>", function(data, status){
                                });
                            });
                        }, 300);
                    });
                </script>
            <?php
            }

        }

    }

    public static function yoast_user_archives_disabled(){
	    if( !current_user_can( 'manage_options' ) ) {
            return;
	    }

        if( defined( 'WPSEO_VERSION' ) && version_compare( WPSEO_VERSION, '7.0', '>=' ) && class_exists('WPSEO_Options') && WPSEO_Options::get( 'disable-author', false ) ){
            $settings_link = admin_url("admin.php?page=wpseo_page_settings#/author-archives");

	        $profile_page_id = uwp_get_page_id( 'profile_page' );
	        if ($profile_page_id > 0 && ( $page_object = get_post( $profile_page_id ) )) {
		        if ('page' === $page_object->post_type && in_array($page_object->post_status, array('publish'))) {
			        if ( !get_user_meta( get_current_user_id(), 'uwp_seo_author_disabled_notice_dismissed' ) ) {
				        ?>
                        <div class="notice notice-error">
                            <p><strong>UsersWP
                                    - </strong><?php esc_attr_e( 'Yoast SEO has disabled user profiles, please enable them.', 'userswp' ); ?>
                                <a href="<?php echo esc_url_raw( $settings_link ); ?>"
                                   class="button button-primary"><?php esc_attr_e( 'View Settings', 'userswp' ); ?></a>
                                <a href="<?php echo esc_url( add_query_arg('uwp-seo-notice-dismissed', 1, uwp_current_page_url()) ); ?>"
                                   class="button button-primary"><?php esc_attr_e( 'Dismiss', 'userswp' ); ?></a>
                            </p>
                        </div>
				        <?php
			        }
		        }
	        }
        }

    }

    public function admin_init_handler(){
	    $user_id = get_current_user_id();
	    if ( isset( $_GET['uwp-seo-notice-dismissed'] ) ) {
		    add_user_meta( $user_id, 'uwp_seo_author_disabled_notice_dismissed', 'true', true );
	    }
    }
    
}

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 10 2025 04:32:23
inteuuod / inteuuod
0755
helpers
--
July 10 2025 04:32:23
inteuuod / inteuuod
0755
libraries
--
July 10 2025 04:32:23
inteuuod / inteuuod
0755
.htaccess
0.41 KB
July 10 2025 04:32:23
inteuuod / inteuuod
0644
abstract-uwp-privacy.php
3.543 KB
May 24 2018 18:32:58
inteuuod / inteuuod
0644
class-account.php
9.071 KB
January 09 2025 21:52:58
inteuuod / inteuuod
0644
class-activator.php
30.118 KB
February 04 2025 23:32:52
inteuuod / inteuuod
0644
class-addons.php
9.592 KB
March 13 2024 17:47:28
inteuuod / inteuuod
0644
class-ajax.php
2.782 KB
March 13 2024 17:47:28
inteuuod / inteuuod
0644
class-countries.php
11.445 KB
April 28 2022 17:18:48
inteuuod / inteuuod
0644
class-date.php
6.316 KB
September 19 2017 17:57:46
inteuuod / inteuuod
0644
class-emails.php
22.155 KB
April 10 2025 19:10:18
inteuuod / inteuuod
0644
class-files.php
23.46 KB
July 16 2024 18:34:28
inteuuod / inteuuod
0644
class-forms.php
170.66 KB
February 19 2025 22:09:02
inteuuod / inteuuod
0644
class-meta.php
12.987 KB
May 25 2022 16:36:12
inteuuod / inteuuod
0644
class-notices.php
7.954 KB
December 12 2024 21:47:10
inteuuod / inteuuod
0644
class-pages.php
17.646 KB
June 01 2021 17:14:04
inteuuod / inteuuod
0644
class-profile.php
60.792 KB
March 13 2024 17:47:28
inteuuod / inteuuod
0644
class-status.php
19.468 KB
July 16 2020 17:09:12
inteuuod / inteuuod
0644
class-tables.php
13.046 KB
June 25 2024 02:23:32
inteuuod / inteuuod
0644
class-templates.php
43.835 KB
March 19 2025 15:13:04
inteuuod / inteuuod
0644
class-tools.php
38.828 KB
March 13 2024 17:47:28
inteuuod / inteuuod
0644
class-user-notifications.php
5.606 KB
February 19 2025 22:09:02
inteuuod / inteuuod
0644
class-userswp.php
35.552 KB
February 04 2025 23:32:52
inteuuod / inteuuod
0644
class-uwp-background-updater.php
3.044 KB
June 27 2019 18:13:34
inteuuod / inteuuod
0644
class-uwp-compatibility.php
3.123 KB
October 10 2024 19:01:40
inteuuod / inteuuod
0644
class-uwp-defaults.php
9.666 KB
February 04 2025 23:32:52
inteuuod / inteuuod
0644
class-uwp-privacy-erasers.php
1.328 KB
May 24 2018 18:32:58
inteuuod / inteuuod
0644
class-uwp-privacy-exporters.php
3.309 KB
February 19 2020 16:22:32
inteuuod / inteuuod
0644
class-uwp-privacy.php
3.062 KB
December 20 2024 18:16:58
inteuuod / inteuuod
0644
class-uwp-seo.php
11.987 KB
March 13 2024 17:47:28
inteuuod / inteuuod
0644
class-validation.php
15.852 KB
November 01 2023 11:49:38
inteuuod / inteuuod
0644
deprecated-functions.php
0.181 KB
January 23 2020 19:10:04
inteuuod / inteuuod
0644
helpers.php
0.502 KB
January 23 2020 19:10:04
inteuuod / inteuuod
0644
index.php
0.025 KB
July 27 2017 16:44:24
inteuuod / inteuuod
0644
template-functions.php
6.082 KB
December 12 2024 21:47:10
inteuuod / inteuuod
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF