@@ 99-104 (lines=6) @@ | ||
96 | global $AR; |
|
97 | switch ($type) { |
|
98 | case 'pgroup': |
|
99 | foreach ($authconfig['groupdirs'] as $groupdir) { |
|
100 | $path = current($AR->user->find($groupdir, 'login.value=\''.$id.'\'', 'system.get.path.phtml')); |
|
101 | if ($path) { |
|
102 | break; |
|
103 | } |
|
104 | } |
|
105 | break; |
|
106 | case 'puser': |
|
107 | foreach ($authconfig['userdirs'] as $userdir) { |
|
@@ 107-112 (lines=6) @@ | ||
104 | } |
|
105 | break; |
|
106 | case 'puser': |
|
107 | foreach ($authconfig['userdirs'] as $userdir) { |
|
108 | $path = current($AR->user->find($userdir, 'login.value=\''.$id.'\'', 'system.get.path.phtml')); |
|
109 | if ($path) { |
|
110 | break; |
|
111 | } |
|
112 | } |
|
113 | break; |
|
114 | } |
|
115 | return $path; |