projects
/
cl7.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
FIX ortho
[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
?>