Subversion Repositories Applications.papyrus

Rev

Rev 1524 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1524 Rev 2145
Line 105... Line 105...
105
            if (isset($GLOBALS['_GEN_commun']['info_auth_bdd']->gsab_parametres)) {
105
            if (isset($GLOBALS['_GEN_commun']['info_auth_bdd']->gsab_parametres)) {
106
                $arguments = explode(' ', $GLOBALS['_GEN_commun']['info_auth_bdd']->gsab_parametres);
106
                $arguments = explode(' ', $GLOBALS['_GEN_commun']['info_auth_bdd']->gsab_parametres);
107
                for ($i = 0; $i < count($arguments); $i++) {
107
                for ($i = 0; $i < count($arguments); $i++) {
108
                    $attr = explode('=', $arguments[$i]);
108
                    $attr = explode('=', $arguments[$i]);
109
                    if ($attr[0] != '') {
109
                    if ($attr[0] != '') {
-
 
110
                        $cle = array_shift($attr);
-
 
111
                        $valeur = '';
-
 
112
                        if (count($attr) == 1) {
-
 
113
                           $valeur = $attr[0];
-
 
114
                        } else if (count($attr) > 1) {
-
 
115
                           $valeur = implode('=', $attr);
-
 
116
                        }
110
                        $GLOBALS['_GEN_commun']['info_auth_bdd']->$attr[0] = (isset($attr[1]) ? $attr[1] : '');
117
                        $GLOBALS['_GEN_commun']['info_auth_bdd']->$cle = $valeur;
111
                    }
118
                    }
112
                }
119
                }
113
            }
120
            }
114
        }
121
        }