daily pastebin goal
65%
SHARE
TWEET

Untitled

a guest Dec 16th, 2018 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class Config {
  2.  
  3.     public $config_file = "../../config/config.xml";   
  4.     public $config;
  5.    
  6.     function __construct() {          
  7.         $this->config = $this->load_config_file(); 
  8.     }
  9.    
  10.     function load_config_file()
  11.     {
  12.         return simplexml_load_file($this->config_file);
  13.     }
  14.    
  15.     function print_config()
  16.     {
  17.         echo "<h3>Your Settings</h3> \n";
  18.         echo 'Web Site SSL: ' . $this->config->web_configuration->SSL . "<br> \n";
  19.     }
  20. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top