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

Software: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16. PHP/5.4.16 

uname -a: Linux roko-bkp 3.10.0-1160.102.1.el7.x86_64 #1 SMP Tue Oct 17 15:42:21 UTC 2023 x86_64 

uid=48(apache) gid=48(apache) groups=48(apache),1003(webmaster) 

Safe-mode: OFF (not secure)

/var/www/html/site/ipanel/app/cms/   drwxr-xr-x
Free 9.32 GB of 93.48 GB (9.97%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     IPanelConfig.php (2.7 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

require_once(APP_PATH "/system/yaml/Spyc.php");
if(!
class_exists('IPanel'))
    require_once(
APP_PATH."/cms/IPanel.php");

/**
 * Description of AdminConfig
 *
 * @author Cledson
 */
class IPanelConfig extends IPanel {
    
    var 
$configArea;
    var 
$fields;
    var 
$relations;
    var 
$uploadFolder;
    var 
$imageWidth;
    var 
$imageHeight;
    
    

    public function  
__construct($area=""$mode="") {
        if(!empty(
$area)){
            if(
$mode == "Report"){
                
$this->readConfigFile($areatrue);
            }else{
                
$this->readConfigFile($area);
            }
        }
    }
    

    public function 
readConfigFile($area$isReport=false){
        if(!
$isReport){
            
$array Spyc::YAMLLoad(IPANEL_PATH "//config//".$area.".yaml");
        }else{
            
$array Spyc::YAMLLoad(IPANEL_PATH "//config//reports//".$area.".yaml");
        }
        
$this->configArea $array[$area];
        
$this->fields = array("fields" => $this->configArea['fields']);
        if(
$this->configArea['relations'] != null){
            
$this->relations = array("fields" => $this->configArea['relations']);
        }
    }


    public function 
getFields(){
        return 
$this->fields;
    }

    public function 
getRelations(){
        return 
$this->relations;
    }


    public function 
getField($field$attribute){
        
$value null;
        if(
$this->fields[$field][$attribute] != null && $this->fields[$field][$attribute] != ""){
            
$value $this->fields[$field][$attribute];
        }
        return 
$value;
    }


    
    public function 
getParameter($parameter){
        
$return null;
        
$config $this->configArea;
        
$fields explode("."$parameter);
        switch(
count($fields)){
            case 
"0" $return ""; break;
            case 
"1" $return $config[$fields[0]]; break;
            case 
"2" $return $config[$fields[0]][$fields[1]]; break;
            case 
"3" $return $config[$fields[0]][$fields[1]][$fields[2]]; break;
            case 
"4" $return $config[$fields[0]][$fields[1]][$fields[2]][$fields[3]]; break;
            case 
"5" $return $config[$fields[0]][$fields[1]][$fields[2]][$fields[3]][$fields[4]]; break;
        }
        return 
$return;
    }


    
/**
     * Retorna a lista de setores disponíveis no setor administrativo
     * A leitura é realizada a partir do arquivo configMenu.yml
     *
     * @return array    Array com os links e abas do setor administrativo
     */
    
public function getConfig() {
        
$array Spyc::YAMLLoad(IPANEL_PATH '//config//configMenu.yaml');
        return 
$array;
    }
}
?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

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