3ae649f4d96e7f4d7f2114154a4c76cb5fbd2f5f
[cl7.git] / php / config.php
1 <?php # encoding:utf-8
2 class Config
3 {
4 function Config()
5 {
6 $config_req = mysql_query("SELECT nom, valeur FROM config");
7 while ($val = mysql_fetch_object($config_req))
8 $this->config[$val->nom] = $val->valeur;
9 }
10
11 function get($nom)
12 {
13 return $this->config[$nom];
14 }
15
16 private $config;
17 }
18
19 $config = new Config();
20 ?>