X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2FObj%2Fbrisk.phh;h=942a90c2ea6dd01de2d36dc21ee890ee68e7e9a9;hb=3610477b5c8d4a8e1e9996014a81e257ba33c075;hp=e7ff7142ecbc78624ecda015ca77e89c2248ba89;hpb=9fa54af90b8e5fe7acf1c1db401c8d9998c0385e;p=brisk.git diff --git a/web/Obj/brisk.phh b/web/Obj/brisk.phh index e7ff714..942a90c 100644 --- a/web/Obj/brisk.phh +++ b/web/Obj/brisk.phh @@ -1655,9 +1655,9 @@ class Room { * if ($idx == -$idx && ret == user) => SUCCESS (but the login exists in the auth db) */ - function add_user(&$sess, &$idx, $name, $pass, $ip) + function add_user(&$sess, &$idx, $name, $pass, $ip, $cookie) { - GLOBAL $G_base, $CO_list; + GLOBAL $G_base; $idx = 0; @@ -1797,12 +1797,12 @@ class Room { $this->user[$idx]->code = $authenticate->code_get(); $this->user[$idx]->flags |= USER_FLAG_LISTAUTH; - if (isset($CO_list)) { - if (strcmp($CO_list, "auth") == 0) { + if (isset($cookie['CO_list'])) { + if (strcmp($cookie['CO_list'], "auth") == 0) { $this->user[$idx]->flags &= ~USER_FLAG_MAP_AUTH; $this->user[$idx]->flags |= USER_FLAG_LISTAUTH; } - if (strcmp($CO_list, "isolation") == 0) { + if (strcmp($cookie['CO_list'], "isolation") == 0) { $this->user[$idx]->flags &= ~USER_FLAG_MAP_AUTH; $this->user[$idx]->flags |= USER_FLAG_ISOLAUTH; }