Subversion Repositories oidplus

Rev

Rev 1267 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1267 Rev 1316
Line 144... Line 144...
144
        private static function myglob(string $reldir, bool $onlydir=false): array {
144
        private static function myglob(string $reldir, bool $onlydir=false): array {
145
                $out = array();
145
                $out = array();
146
 
146
 
147
                $root = OIDplus::localpath().'userdata/resources/';
147
                $root = OIDplus::localpath().'userdata/resources/';
148
                $res = $onlydir ? @glob($root.ltrim($reldir,'/'), GLOB_ONLYDIR) : @glob($root.ltrim($reldir,'/'));
148
                $res = $onlydir ? @glob($root.ltrim($reldir,'/'), GLOB_ONLYDIR) : @glob($root.ltrim($reldir,'/'));
149
                if ($res) foreach ($res as &$x) {
149
                if ($res) foreach ($res as $x) {
150
                        $x = substr($x, strlen($root));
150
                        $x = substr($x, strlen($root));
151
                        if (strpos($x,'$') !== false) continue;
151
                        if (strpos($x,'$') !== false) continue;
152
                        $out[] = $x;
152
                        $out[] = $x;
153
                }
153
                }
154
 
154