Logo white

Administrator / extremepride

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • extremepride
  • application
  • config.class.php
  • init
    8d65d0ce
    andryeyev authored
    2016-01-27 15:54:16 +0200  
    Browse Code ยป
config.class.php 331 Bytes
Edit Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
<?php

Class Config{
static $vars = array();

public function init() {
  $row = include($_SERVER['DOCUMENT_ROOT'] . '/config/config.php');
  foreach($row as $key=>$value){
   self::$vars[$key] = $value;
  }
}

public function get($key){
 return self::$vars[$key];
}

public function __get($key){
 return self::$vars[$key];
}

}

?>