X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;f=php%2Fconfig.php;h=3ae649f4d96e7f4d7f2114154a4c76cb5fbd2f5f;hb=ca33eb6a816b02a621896aa446cc9317e770993d;hp=220da451ac57ee42e5ced5ff5ce80e6c3faa90e2;hpb=9f4608bb190f3cd49c45aefbb4076182a1449cf8;p=cl7.git diff --git a/php/config.php b/php/config.php index 220da45..3ae649f 100644 --- a/php/config.php +++ b/php/config.php @@ -1,29 +1,20 @@ -config[$val->nom] = $val->valeur; + } + + function get($nom) + { + return $this->config[$nom]; + } + + private $config; +} -$COUT_PERIODE = 15; -$COUT_TOTAL = 40; - -# nombre maximum de participant -$NB_MAX_PARTICIPANT = 25; - -# nombre de votes possibles par participants -$NB_VOTES_JEUX = 3; - -# mettre à TRUE pour cloturer les inscriptions -$INSCRIPTIONS_TERMINEES = FALSE; - -# si la partie pizza est visible -$PIZZA_VISIBLE = 0; - -# si on peut commander des pizza (mettre a 0 lorsque on telephone pour commander ! ;) -$PIZZA_PEUT_COMMANDER = 1; -?> +$config = new Config(); +?>