Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Config {
- var $config_file = "../../config/config.xml";
- var $config;
- function __construct() {
- $this->config = $this->load_config_file();
- }
- function load_config_file()
- {
- $this->config = simplexml_load_file($this->config_file);
- }
- function print_config()
- {
- echo "<h3>Your Settings</h3> \n";
- echo 'Web Site SSL: ' . $this->config->web_configuration->SSL . "<br> \n";
- }
- }
Add Comment
Please, Sign In to add comment